@shotstack/schemas 1.4.3 → 1.4.5

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,7 +91,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
91
91
  *
92
92
  */
93
93
  export const captionassetCaptionAssetSchema = z.object({
94
- type: z.enum(['caption']),
94
+ type: z.enum(["caption"]),
95
95
  src: z.string(),
96
96
  font: z.optional(captionpropertiesCaptionFontSchema),
97
97
  background: z.optional(captionpropertiesCaptionBackgroundSchema),
@@ -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.string().default('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.string().default('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.string().default('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.string().default('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.string().default('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,43 +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.string().default('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"])),
823
+ download: z.optional(z.boolean()),
824
+ add: z.optional(z.boolean()),
828
825
  });
829
826
  export const vimeoDestinationPrivacyOptionsSchema = vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
830
827
  /**
@@ -834,15 +831,15 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
834
831
  name: z.optional(z.string()),
835
832
  description: z.optional(z.string()),
836
833
  privacy: z.optional(vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
837
- folderUri: z.optional(z.string())
834
+ folderUri: z.optional(z.string()),
838
835
  });
839
836
  export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestinationOptionsSchema;
840
837
  /**
841
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.
842
839
  */
843
840
  export const vimeoDestinationVimeoDestinationSchema = z.object({
844
- provider: z.string().default('vimeo'),
845
- options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
841
+ provider: z.literal("vimeo"),
842
+ options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
846
843
  });
847
844
  export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
848
845
  /**
@@ -850,28 +847,14 @@ export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
850
847
  *
851
848
  * By default all ingested and generated assets are automatically sent to the [Shotstack hosting destination](https://shotstack.io/docs/guide/serving-assets/hosting/). You can [opt-out](https://shotstack.io/docs/guide/serving-assets/self-host/) from by setting the Shotstack destination **exclude** property to **true**.
852
849
  */
853
- export const destinationsDestinationsSchema = z.union([
854
- z.object({
855
- destinations: z.optional(z.literal('shotstackDestination_ShotstackDestination'))
856
- }).and(shotstackDestinationShotstackDestinationSchema),
857
- z.object({
858
- destinations: z.optional(z.literal('muxDestination_MuxDestination'))
859
- }).and(muxDestinationMuxDestinationSchema),
860
- z.object({
861
- destinations: z.optional(z.literal('s3Destination_S3Destination'))
862
- }).and(s3DestinationS3DestinationSchema),
863
- z.object({
864
- destinations: z.optional(z.literal('googleCloudStorageDestination_GoogleCloudStorageDestination'))
865
- }).and(googleCloudStorageDestinationGoogleCloudStorageDestinationSchema),
866
- z.object({
867
- destinations: z.optional(z.literal('googleDriveDestination_GoogleDriveDestination'))
868
- }).and(googleDriveDestinationGoogleDriveDestinationSchema),
869
- z.object({
870
- destinations: z.optional(z.literal('vimeoDestination_VimeoDestination'))
871
- }).and(vimeoDestinationVimeoDestinationSchema),
872
- z.object({
873
- destinations: z.optional(z.literal('tiktokDestination_TiktokDestination'))
874
- }).and(tiktokDestinationTiktokDestinationSchema)
850
+ export const destinationsDestinationsSchema = z.discriminatedUnion("provider", [
851
+ shotstackDestinationShotstackDestinationSchema,
852
+ muxDestinationMuxDestinationSchema,
853
+ s3DestinationS3DestinationSchema,
854
+ googleCloudStorageDestinationGoogleCloudStorageDestinationSchema,
855
+ googleDriveDestinationGoogleDriveDestinationSchema,
856
+ vimeoDestinationVimeoDestinationSchema,
857
+ tiktokDestinationTiktokDestinationSchema
875
858
  ]);
876
859
  export const destinationsSchema = destinationsDestinationsSchema;
877
860
  /**
@@ -879,14 +862,14 @@ export const destinationsSchema = destinationsDestinationsSchema;
879
862
  */
880
863
  export const fliptransformationFlipTransformationSchema = z.object({
881
864
  horizontal: z.optional(z.boolean()),
882
- vertical: z.optional(z.boolean())
865
+ vertical: z.optional(z.boolean()),
883
866
  });
884
867
  export const flipTransformationSchema = fliptransformationFlipTransformationSchema;
885
868
  /**
886
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.
887
870
  */
888
871
  export const fontFontSchema = z.object({
889
- src: z.string()
872
+ src: z.string(),
890
873
  });
891
874
  export const fontSchema = fontFontSchema;
892
875
  /**
@@ -900,7 +883,7 @@ export const fontSchema = fontFontSchema;
900
883
  * @deprecated
901
884
  */
902
885
  export const htmlassetHtmlAssetSchema = z.object({
903
- type: z.enum(['html']),
886
+ type: z.enum(["html"]),
904
887
  html: z.string(),
905
888
  css: z.optional(z.string()),
906
889
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -913,48 +896,40 @@ export const htmlassetHtmlAssetSchema = z.object({
913
896
  return Number(v); return v; }), z.number().int())),
914
897
  background: z.optional(z.string()),
915
898
  position: z.optional(z.enum([
916
- 'top',
917
- 'topRight',
918
- 'right',
919
- 'bottomRight',
920
- 'bottom',
921
- 'bottomLeft',
922
- 'left',
923
- 'topLeft',
924
- 'center'
925
- ]))
899
+ "top",
900
+ "topRight",
901
+ "right",
902
+ "bottomRight",
903
+ "bottom",
904
+ "bottomLeft",
905
+ "left",
906
+ "topLeft",
907
+ "center",
908
+ ])),
926
909
  });
927
910
  export const htmlAssetSchema = htmlassetHtmlAssetSchema;
928
911
  /**
929
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.
930
913
  */
931
914
  export const imageassetImageAssetSchema = z.object({
932
- type: z.enum(['image']),
915
+ type: z.enum(["image"]),
933
916
  src: z.string(),
934
- crop: z.optional(cropCropSchema)
917
+ crop: z.optional(cropCropSchema),
935
918
  });
936
919
  export const imageAssetSchema = imageassetImageAssetSchema;
937
920
  /**
938
921
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
939
922
  */
940
923
  export const imagetovideoassetImageToVideoAssetSchema = z.object({
941
- type: z.optional(z.enum(['image-to-video'])),
924
+ type: z.optional(z.enum(["image-to-video"])),
942
925
  src: z.optional(z.string()),
943
926
  prompt: z.optional(z.string()),
944
- aspectRatio: z.optional(z.enum([
945
- '1:1',
946
- '4:3',
947
- '16:9',
948
- '9:16',
949
- '3:4',
950
- '21:9',
951
- '9:21'
952
- ])),
927
+ aspectRatio: z.optional(z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
953
928
  speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
954
929
  return undefined; if (Array.isArray(v))
955
930
  return v; if (typeof v === 'string')
956
931
  return Number(v); return v; }), z.number().gte(0).lte(10))),
957
- crop: z.optional(cropCropSchema)
932
+ crop: z.optional(cropCropSchema),
958
933
  });
959
934
  export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
960
935
  /**
@@ -962,24 +937,24 @@ export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
962
937
  */
963
938
  export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
964
939
  preset: z.enum([
965
- 'conference',
966
- 'interview',
967
- 'lecture',
968
- 'meeting',
969
- 'mobile_phone',
970
- 'music',
971
- 'podcast',
972
- 'studio',
973
- 'voice_over'
974
- ])
940
+ "conference",
941
+ "interview",
942
+ "lecture",
943
+ "meeting",
944
+ "mobile_phone",
945
+ "music",
946
+ "podcast",
947
+ "studio",
948
+ "voice_over",
949
+ ]),
975
950
  });
976
951
  export const dolbyEnhancementOptionsSchema = dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
977
952
  /**
978
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.
979
954
  */
980
955
  export const dolbyEnhancementDolbyEnhancementSchema = z.object({
981
- provider: z.string().default('dolby'),
982
- options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
956
+ provider: z.string().default("dolby"),
957
+ options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
983
958
  });
984
959
  export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
985
960
  /**
@@ -988,15 +963,17 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
988
963
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
989
964
  * </ul>
990
965
  */
991
- export const audioEnhancementAudioEnhancementSchema = z.object({
992
- enhancement: z.literal('dolbyEnhancement_DolbyEnhancement')
993
- }).and(dolbyEnhancementDolbyEnhancementSchema);
966
+ export const audioEnhancementAudioEnhancementSchema = z
967
+ .object({
968
+ enhancement: z.literal("dolbyEnhancement_DolbyEnhancement"),
969
+ })
970
+ .and(dolbyEnhancementDolbyEnhancementSchema);
994
971
  export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
995
972
  /**
996
973
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
997
974
  */
998
975
  export const enhancementsEnhancementsSchema = z.object({
999
- audio: z.optional(audioEnhancementAudioEnhancementSchema)
976
+ audio: z.optional(audioEnhancementAudioEnhancementSchema),
1000
977
  });
1001
978
  export const enhancementsSchema = enhancementsEnhancementsSchema;
1002
979
  /**
@@ -1005,14 +982,14 @@ export const enhancementsSchema = enhancementsEnhancementsSchema;
1005
982
  export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
1006
983
  status: z.string(),
1007
984
  title: z.string(),
1008
- detail: z.string()
985
+ detail: z.string(),
1009
986
  });
1010
987
  export const ingestErrorResponseDataSchema = ingesterrorresponsedataIngestErrorResponseDataSchema;
1011
988
  /**
1012
989
  * Error response data for validation and other errors returned by the Ingest API.
1013
990
  */
1014
991
  export const ingesterrorresponseIngestErrorResponseSchema = z.object({
1015
- errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
992
+ errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
1016
993
  });
1017
994
  export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseSchema;
1018
995
  /**
@@ -1020,14 +997,14 @@ export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseS
1020
997
  */
1021
998
  export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
1022
999
  type: z.string(),
1023
- id: z.string()
1000
+ id: z.string(),
1024
1001
  });
1025
1002
  export const queuedSourceResponseDataSchema = queuedsourceresponsedataQueuedSourceResponseDataSchema;
1026
1003
  /**
1027
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.
1028
1005
  */
1029
1006
  export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
1030
- data: queuedsourceresponsedataQueuedSourceResponseDataSchema
1007
+ data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
1031
1008
  });
1032
1009
  export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceResponseSchema;
1033
1010
  /**
@@ -1036,7 +1013,7 @@ export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceRespon
1036
1013
  export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
1037
1014
  id: z.string(),
1038
1015
  url: z.string(),
1039
- expires: z.string()
1016
+ expires: z.string(),
1040
1017
  });
1041
1018
  export const uploadResponseAttributesSchema = uploadresponseattributesUploadResponseAttributesSchema;
1042
1019
  /**
@@ -1045,14 +1022,14 @@ export const uploadResponseAttributesSchema = uploadresponseattributesUploadResp
1045
1022
  export const uploadresponsedataUploadResponseDataSchema = z.object({
1046
1023
  type: z.string(),
1047
1024
  id: z.string(),
1048
- attributes: uploadresponseattributesUploadResponseAttributesSchema
1025
+ attributes: uploadresponseattributesUploadResponseAttributesSchema,
1049
1026
  });
1050
1027
  export const uploadResponseDataSchema = uploadresponsedataUploadResponseDataSchema;
1051
1028
  /**
1052
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.
1053
1030
  */
1054
1031
  export const uploadresponseUploadResponseSchema = z.object({
1055
- data: uploadresponsedataUploadResponseDataSchema
1032
+ data: uploadresponsedataUploadResponseDataSchema,
1056
1033
  });
1057
1034
  export const uploadResponseSchema = uploadresponseUploadResponseSchema;
1058
1035
  /**
@@ -1063,26 +1040,26 @@ export const speedSpeedSchema = z.object({
1063
1040
  return undefined; if (Array.isArray(v))
1064
1041
  return v; if (typeof v === 'string')
1065
1042
  return Number(v); return v; }), z.number().gte(0).lte(10))),
1066
- preservePitch: z.optional(z.boolean())
1043
+ preservePitch: z.optional(z.boolean()),
1067
1044
  });
1068
1045
  export const speedSchema = speedSpeedSchema;
1069
1046
  /**
1070
1047
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
1071
1048
  */
1072
1049
  export const transcriptionTranscriptionSchema = z.object({
1073
- format: z.optional(z.enum(['srt', 'vtt']))
1050
+ format: z.optional(z.enum(["srt", "vtt"])),
1074
1051
  });
1075
1052
  export const transcriptionSchema = transcriptionTranscriptionSchema;
1076
1053
  /**
1077
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.
1078
1055
  */
1079
1056
  export const lumaassetLumaAssetSchema = z.object({
1080
- type: z.enum(['luma']),
1057
+ type: z.enum(["luma"]),
1081
1058
  src: z.string(),
1082
1059
  trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1083
1060
  return undefined; if (Array.isArray(v))
1084
1061
  return v; if (typeof v === 'string')
1085
- return Number(v); return v; }), z.number()))
1062
+ return Number(v); return v; }), z.number())),
1086
1063
  });
1087
1064
  export const lumaAssetSchema = lumaassetLumaAssetSchema;
1088
1065
  /**
@@ -1090,7 +1067,7 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
1090
1067
  */
1091
1068
  export const mergefieldMergeFieldSchema = z.object({
1092
1069
  find: z.string(),
1093
- replace: z.unknown()
1070
+ replace: z.unknown(),
1094
1071
  });
1095
1072
  export const mergeFieldSchema = mergefieldMergeFieldSchema;
1096
1073
  /**
@@ -1100,7 +1077,7 @@ export const posterPosterSchema = z.object({
1100
1077
  capture: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1101
1078
  return undefined; if (Array.isArray(v))
1102
1079
  return v; if (typeof v === 'string')
1103
- return Number(v); return v; }), z.number())
1080
+ return Number(v); return v; }), z.number()),
1104
1081
  });
1105
1082
  export const posterSchema = posterPosterSchema;
1106
1083
  /**
@@ -1114,7 +1091,7 @@ export const rangeRangeSchema = z.object({
1114
1091
  length: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1115
1092
  return undefined; if (Array.isArray(v))
1116
1093
  return v; if (typeof v === 'string')
1117
- return Number(v); return v; }), z.number().gte(0)))
1094
+ return Number(v); return v; }), z.number().gte(0))),
1118
1095
  });
1119
1096
  export const rangeSchema = rangeRangeSchema;
1120
1097
  /**
@@ -1128,14 +1105,9 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
1128
1105
  providerId: z.optional(z.string()),
1129
1106
  filename: z.optional(z.string()),
1130
1107
  url: z.optional(z.string()),
1131
- status: z.enum([
1132
- 'importing',
1133
- 'ready',
1134
- 'failed',
1135
- 'deleted'
1136
- ]),
1108
+ status: z.enum(["importing", "ready", "failed", "deleted"]),
1137
1109
  created: z.optional(z.string()),
1138
- updated: z.optional(z.string())
1110
+ updated: z.optional(z.string()),
1139
1111
  });
1140
1112
  export const assetResponseAttributesSchema = assetresponseattributesAssetResponseAttributesSchema;
1141
1113
  /**
@@ -1143,21 +1115,21 @@ export const assetResponseAttributesSchema = assetresponseattributesAssetRespons
1143
1115
  */
1144
1116
  export const assetresponsedataAssetResponseDataSchema = z.object({
1145
1117
  type: z.string(),
1146
- attributes: assetresponseattributesAssetResponseAttributesSchema
1118
+ attributes: assetresponseattributesAssetResponseAttributesSchema,
1147
1119
  });
1148
1120
  export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
1149
1121
  /**
1150
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.
1151
1123
  */
1152
1124
  export const assetrenderresponseAssetRenderResponseSchema = z.object({
1153
- data: z.array(assetresponsedataAssetResponseDataSchema)
1125
+ data: z.array(assetresponsedataAssetResponseDataSchema),
1154
1126
  });
1155
1127
  export const assetRenderResponseSchema = assetrenderresponseAssetRenderResponseSchema;
1156
1128
  /**
1157
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.
1158
1130
  */
1159
1131
  export const assetresponseAssetResponseSchema = z.object({
1160
- data: assetresponsedataAssetResponseDataSchema
1132
+ data: assetresponsedataAssetResponseDataSchema,
1161
1133
  });
1162
1134
  export const assetResponseSchema = assetresponseAssetResponseSchema;
1163
1135
  /**
@@ -1166,7 +1138,7 @@ export const assetResponseSchema = assetresponseAssetResponseSchema;
1166
1138
  export const proberesponseProbeResponseSchema = z.object({
1167
1139
  success: z.boolean(),
1168
1140
  message: z.string(),
1169
- response: z.record(z.string(), z.unknown())
1141
+ response: z.record(z.string(), z.unknown()),
1170
1142
  });
1171
1143
  export const probeResponseSchema = proberesponseProbeResponseSchema;
1172
1144
  /**
@@ -1174,7 +1146,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
1174
1146
  */
1175
1147
  export const queuedresponsedataQueuedResponseDataSchema = z.object({
1176
1148
  message: z.string(),
1177
- id: z.string()
1149
+ id: z.string(),
1178
1150
  });
1179
1151
  export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSchema;
1180
1152
  /**
@@ -1183,7 +1155,7 @@ export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSche
1183
1155
  export const queuedresponseQueuedResponseSchema = z.object({
1184
1156
  success: z.boolean(),
1185
1157
  message: z.string(),
1186
- response: queuedresponsedataQueuedResponseDataSchema
1158
+ response: queuedresponsedataQueuedResponseDataSchema,
1187
1159
  });
1188
1160
  export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
1189
1161
  /**
@@ -1193,7 +1165,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
1193
1165
  id: z.string(),
1194
1166
  name: z.string(),
1195
1167
  created: z.optional(z.string()),
1196
- updated: z.optional(z.string())
1168
+ updated: z.optional(z.string()),
1197
1169
  });
1198
1170
  export const templateListResponseItemSchema = templatelistresponseitemTemplateListResponseItemSchema;
1199
1171
  /**
@@ -1201,7 +1173,7 @@ export const templateListResponseItemSchema = templatelistresponseitemTemplateLi
1201
1173
  */
1202
1174
  export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
1203
1175
  owner: z.string(),
1204
- templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
1176
+ templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
1205
1177
  });
1206
1178
  export const templateListResponseDataSchema = templatelistresponsedataTemplateListResponseDataSchema;
1207
1179
  /**
@@ -1210,7 +1182,7 @@ export const templateListResponseDataSchema = templatelistresponsedataTemplateLi
1210
1182
  export const templatelistresponseTemplateListResponseSchema = z.object({
1211
1183
  success: z.boolean(),
1212
1184
  message: z.string(),
1213
- response: templatelistresponsedataTemplateListResponseDataSchema
1185
+ response: templatelistresponsedataTemplateListResponseDataSchema,
1214
1186
  });
1215
1187
  export const templateListResponseSchema = templatelistresponseTemplateListResponseSchema;
1216
1188
  /**
@@ -1218,7 +1190,7 @@ export const templateListResponseSchema = templatelistresponseTemplateListRespon
1218
1190
  */
1219
1191
  export const templateresponsedataTemplateResponseDataSchema = z.object({
1220
1192
  message: z.string(),
1221
- id: z.string()
1193
+ id: z.string(),
1222
1194
  });
1223
1195
  export const templateResponseDataSchema = templateresponsedataTemplateResponseDataSchema;
1224
1196
  /**
@@ -1227,23 +1199,15 @@ export const templateResponseDataSchema = templateresponsedataTemplateResponseDa
1227
1199
  export const templateresponseTemplateResponseSchema = z.object({
1228
1200
  success: z.boolean(),
1229
1201
  message: z.string(),
1230
- response: templateresponsedataTemplateResponseDataSchema
1202
+ response: templateresponsedataTemplateResponseDataSchema,
1231
1203
  });
1232
1204
  export const templateResponseSchema = templateresponseTemplateResponseSchema;
1233
1205
  /**
1234
1206
  * Text alignment properties (horizontal and vertical).
1235
1207
  */
1236
1208
  export const richtextpropertiesRichTextAlignmentSchema = z.object({
1237
- horizontal: z.optional(z.enum([
1238
- 'left',
1239
- 'center',
1240
- 'right'
1241
- ])),
1242
- vertical: z.optional(z.enum([
1243
- 'top',
1244
- 'middle',
1245
- 'bottom'
1246
- ]))
1209
+ horizontal: z.optional(z.enum(["left", "center", "right"])),
1210
+ vertical: z.optional(z.enum(["top", "middle", "bottom"])),
1247
1211
  });
1248
1212
  export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
1249
1213
  /**
@@ -1251,12 +1215,12 @@ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema
1251
1215
  */
1252
1216
  export const richtextpropertiesRichTextAnimationSchema = z.object({
1253
1217
  preset: z.enum([
1254
- 'fadeIn',
1255
- 'slideIn',
1256
- 'typewriter',
1257
- 'ascend',
1258
- 'shift',
1259
- 'movingLetters'
1218
+ "fadeIn",
1219
+ "slideIn",
1220
+ "typewriter",
1221
+ "ascend",
1222
+ "shift",
1223
+ "movingLetters",
1260
1224
  ]),
1261
1225
  speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1262
1226
  return undefined; if (Array.isArray(v))
@@ -1266,13 +1230,8 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
1266
1230
  return undefined; if (Array.isArray(v))
1267
1231
  return v; if (typeof v === 'string')
1268
1232
  return Number(v); return v; }), z.number().gte(0.1).lte(30))),
1269
- style: z.optional(z.enum(['character', 'word'])),
1270
- direction: z.optional(z.enum([
1271
- 'left',
1272
- 'right',
1273
- 'up',
1274
- 'down'
1275
- ]))
1233
+ style: z.optional(z.enum(["character", "word"])),
1234
+ direction: z.optional(z.enum(["left", "right", "up", "down"])),
1276
1235
  });
1277
1236
  export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
1278
1237
  /**
@@ -1287,7 +1246,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
1287
1246
  borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1288
1247
  return undefined; if (Array.isArray(v))
1289
1248
  return v; if (typeof v === 'string')
1290
- return Number(v); return v; }), z.number().gte(0))).default(0)
1249
+ return Number(v); return v; }), z.number().gte(0))).default(0),
1291
1250
  });
1292
1251
  export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
1293
1252
  /**
@@ -1298,7 +1257,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1298
1257
  return undefined; if (Array.isArray(v))
1299
1258
  return v; if (typeof v === 'string')
1300
1259
  return Number(v); return v; }), z.number().gte(0))).default(0),
1301
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1260
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1302
1261
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1303
1262
  return undefined; if (Array.isArray(v))
1304
1263
  return v; if (typeof v === 'string')
@@ -1306,24 +1265,26 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
1306
1265
  radius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1307
1266
  return undefined; if (Array.isArray(v))
1308
1267
  return v; if (typeof v === 'string')
1309
- return Number(v); return v; }), z.number().gte(0))).default(0)
1268
+ return Number(v); return v; }), z.number().gte(0))).default(0),
1310
1269
  });
1311
1270
  /**
1312
1271
  * Gradient properties for text fill.
1313
1272
  */
1314
1273
  export const richtextpropertiesRichTextGradientSchema = z.object({
1315
- type: z.optional(z.enum(['linear', 'radial'])),
1274
+ type: z.optional(z.enum(["linear", "radial"])),
1316
1275
  angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1317
1276
  return undefined; if (Array.isArray(v))
1318
1277
  return v; if (typeof v === 'string')
1319
1278
  return Number(v); return v; }), z.number().gte(0).lte(360))).default(0),
1320
- stops: z.array(z.object({
1279
+ stops: z
1280
+ .array(z.object({
1321
1281
  offset: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1322
1282
  return undefined; if (Array.isArray(v))
1323
1283
  return v; if (typeof v === 'string')
1324
1284
  return Number(v); return v; }), z.number().gte(0).lte(1)),
1325
- color: z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1326
- })).min(2)
1285
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1286
+ }))
1287
+ .min(2),
1327
1288
  });
1328
1289
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1329
1290
  /**
@@ -1345,7 +1306,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
1345
1306
  left: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1346
1307
  return undefined; if (Array.isArray(v))
1347
1308
  return v; if (typeof v === 'string')
1348
- return Number(v); return v; }), z.number().gte(0))).default(0)
1309
+ return Number(v); return v; }), z.number().gte(0))).default(0),
1349
1310
  });
1350
1311
  /**
1351
1312
  * Text shadow properties.
@@ -1363,11 +1324,11 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
1363
1324
  return undefined; if (Array.isArray(v))
1364
1325
  return v; if (typeof v === 'string')
1365
1326
  return Number(v); return v; }), z.number().gte(0))).default(0),
1366
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1327
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1367
1328
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1368
1329
  return undefined; if (Array.isArray(v))
1369
1330
  return v; if (typeof v === 'string')
1370
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
1331
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1371
1332
  });
1372
1333
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1373
1334
  /**
@@ -1378,30 +1339,30 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
1378
1339
  return undefined; if (Array.isArray(v))
1379
1340
  return v; if (typeof v === 'string')
1380
1341
  return Number(v); return v; }), z.number().gte(0))).default(0),
1381
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1342
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1382
1343
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1383
1344
  return undefined; if (Array.isArray(v))
1384
1345
  return v; if (typeof v === 'string')
1385
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1346
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1386
1347
  });
1387
1348
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1388
1349
  /**
1389
1350
  * Font properties for rich text.
1390
1351
  */
1391
1352
  export const richtextpropertiesRichTextFontSchema = z.object({
1392
- family: z.optional(z.string()).default('Open Sans'),
1353
+ family: z.optional(z.string()).default("Open Sans"),
1393
1354
  size: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1394
1355
  return undefined; if (Array.isArray(v))
1395
1356
  return v; if (typeof v === 'string')
1396
1357
  return Number(v); return v; }), z.number().int().gte(1).lte(500))).default(24),
1397
- weight: z.optional(z.unknown()).default('400'),
1398
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#ffffff'),
1358
+ weight: z.optional(z.unknown()).default("400"),
1359
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
1399
1360
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1400
1361
  return undefined; if (Array.isArray(v))
1401
1362
  return v; if (typeof v === 'string')
1402
1363
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1403
1364
  background: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1404
- stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
1365
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1405
1366
  });
1406
1367
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1407
1368
  /**
@@ -1416,18 +1377,9 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
1416
1377
  return undefined; if (Array.isArray(v))
1417
1378
  return v; if (typeof v === 'string')
1418
1379
  return Number(v); return v; }), z.number().gte(0).lte(10))).default(1.2),
1419
- textTransform: z.optional(z.enum([
1420
- 'none',
1421
- 'uppercase',
1422
- 'lowercase',
1423
- 'capitalize'
1424
- ])),
1425
- textDecoration: z.optional(z.enum([
1426
- 'none',
1427
- 'underline',
1428
- 'line-through'
1429
- ])),
1430
- gradient: z.optional(richtextpropertiesRichTextGradientSchema)
1380
+ textTransform: z.optional(z.enum(["none", "uppercase", "lowercase", "capitalize"])),
1381
+ textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
1382
+ gradient: z.optional(richtextpropertiesRichTextGradientSchema),
1431
1383
  });
1432
1384
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1433
1385
  /**
@@ -1436,22 +1388,19 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1436
1388
  *
1437
1389
  */
1438
1390
  export const richtextassetRichTextAssetSchema = z.object({
1439
- type: z.enum(['rich-text']),
1391
+ type: z.enum(["rich-text"]),
1440
1392
  text: z.string().max(5000),
1441
1393
  font: z.optional(richtextpropertiesRichTextFontSchema),
1442
1394
  style: z.optional(richtextpropertiesRichTextStyleSchema),
1443
1395
  shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1444
1396
  background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1445
1397
  border: z.optional(richtextpropertiesRichTextBorderSchema),
1446
- padding: z.optional(z.union([
1447
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1398
+ padding: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1448
1399
  return undefined; if (Array.isArray(v))
1449
1400
  return v; if (typeof v === 'string')
1450
- return Number(v); return v; }), z.number().gte(0)),
1451
- richtextpropertiesRichTextPaddingSchema
1452
- ])),
1401
+ return Number(v); return v; }), z.number().gte(0)), richtextpropertiesRichTextPaddingSchema])),
1453
1402
  align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1454
- animation: z.optional(richtextpropertiesRichTextAnimationSchema)
1403
+ animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1455
1404
  });
1456
1405
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1457
1406
  /**
@@ -1460,8 +1409,8 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1460
1409
  export const transferresponseattributesTransferResponseAttributesSchema = z.object({
1461
1410
  id: z.optional(z.string()),
1462
1411
  owner: z.optional(z.string()),
1463
- status: z.optional(z.enum(['queued', 'failed'])),
1464
- created: z.optional(z.string())
1412
+ status: z.optional(z.enum(["queued", "failed"])),
1413
+ created: z.optional(z.string()),
1465
1414
  });
1466
1415
  export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
1467
1416
  /**
@@ -1469,14 +1418,14 @@ export const transferResponseAttributesSchema = transferresponseattributesTransf
1469
1418
  */
1470
1419
  export const transferresponsedataTransferResponseDataSchema = z.object({
1471
1420
  type: z.optional(z.string()),
1472
- attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
1421
+ attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema),
1473
1422
  });
1474
1423
  export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
1475
1424
  /**
1476
1425
  * 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.
1477
1426
  */
1478
1427
  export const transferresponseTransferResponseSchema = z.object({
1479
- data: transferresponsedataTransferResponseDataSchema
1428
+ data: transferresponsedataTransferResponseDataSchema,
1480
1429
  });
1481
1430
  export const transferResponseSchema = transferresponseTransferResponseSchema;
1482
1431
  /**
@@ -1485,7 +1434,7 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
1485
1434
  export const transferTransferSchema = z.object({
1486
1435
  url: z.string(),
1487
1436
  id: z.string(),
1488
- destinations: z.array(destinationsDestinationsSchema)
1437
+ destinations: z.array(destinationsDestinationsSchema),
1489
1438
  });
1490
1439
  export const transferSchema = transferTransferSchema;
1491
1440
  /**
@@ -1494,12 +1443,8 @@ export const transferSchema = transferTransferSchema;
1494
1443
  *
1495
1444
  */
1496
1445
  export const shapeassetShapeAssetSchema = z.object({
1497
- type: z.enum(['shape']),
1498
- shape: z.enum([
1499
- 'rectangle',
1500
- 'circle',
1501
- 'line'
1502
- ]),
1446
+ type: z.enum(["shape"]),
1447
+ shape: z.enum(["rectangle", "circle", "line"]),
1503
1448
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1504
1449
  return undefined; if (Array.isArray(v))
1505
1450
  return v; if (typeof v === 'string')
@@ -1513,14 +1458,14 @@ export const shapeassetShapeAssetSchema = z.object({
1513
1458
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1514
1459
  return undefined; if (Array.isArray(v))
1515
1460
  return v; if (typeof v === 'string')
1516
- return Number(v); return v; }), z.number()))
1461
+ return Number(v); return v; }), z.number())),
1517
1462
  })),
1518
1463
  stroke: z.optional(z.object({
1519
1464
  color: z.optional(z.string()),
1520
1465
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1521
1466
  return undefined; if (Array.isArray(v))
1522
1467
  return v; if (typeof v === 'string')
1523
- return Number(v); return v; }), z.number()))
1468
+ return Number(v); return v; }), z.number())),
1524
1469
  })),
1525
1470
  rectangle: z.optional(z.object({
1526
1471
  width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1534,13 +1479,13 @@ export const shapeassetShapeAssetSchema = z.object({
1534
1479
  cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1535
1480
  return undefined; if (Array.isArray(v))
1536
1481
  return v; if (typeof v === 'string')
1537
- return Number(v); return v; }), z.number().int()))
1482
+ return Number(v); return v; }), z.number().int())),
1538
1483
  })),
1539
1484
  circle: z.optional(z.object({
1540
1485
  radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1541
1486
  return undefined; if (Array.isArray(v))
1542
1487
  return v; if (typeof v === 'string')
1543
- return Number(v); return v; }), z.number().int())
1488
+ return Number(v); return v; }), z.number().int()),
1544
1489
  })),
1545
1490
  line: z.optional(z.object({
1546
1491
  length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1550,8 +1495,8 @@ export const shapeassetShapeAssetSchema = z.object({
1550
1495
  thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1551
1496
  return undefined; if (Array.isArray(v))
1552
1497
  return v; if (typeof v === 'string')
1553
- return Number(v); return v; }), z.number().int())
1554
- }))
1498
+ return Number(v); return v; }), z.number().int()),
1499
+ })),
1555
1500
  });
1556
1501
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
1557
1502
  /**
@@ -1565,7 +1510,7 @@ export const sizeSizeSchema = z.object({
1565
1510
  height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1566
1511
  return undefined; if (Array.isArray(v))
1567
1512
  return v; if (typeof v === 'string')
1568
- return Number(v); return v; }), z.number().int().gte(1).lte(4096)))
1513
+ return Number(v); return v; }), z.number().int().gte(1).lte(4096))),
1569
1514
  });
1570
1515
  export const sizeSchema = sizeSizeSchema;
1571
1516
  /**
@@ -1573,35 +1518,25 @@ export const sizeSchema = sizeSizeSchema;
1573
1518
  */
1574
1519
  export const renditionRenditionSchema = z.object({
1575
1520
  format: z.optional(z.enum([
1576
- 'mp4',
1577
- 'webm',
1578
- 'mov',
1579
- 'avi',
1580
- 'mkv',
1581
- 'ogv',
1582
- 'wmv',
1583
- 'avif',
1584
- 'gif',
1585
- 'mp3',
1586
- 'wav',
1587
- 'jpg',
1588
- 'png',
1589
- 'webp',
1590
- 'tif'
1521
+ "mp4",
1522
+ "webm",
1523
+ "mov",
1524
+ "avi",
1525
+ "mkv",
1526
+ "ogv",
1527
+ "wmv",
1528
+ "avif",
1529
+ "gif",
1530
+ "mp3",
1531
+ "wav",
1532
+ "jpg",
1533
+ "png",
1534
+ "webp",
1535
+ "tif",
1591
1536
  ])),
1592
1537
  size: z.optional(sizeSizeSchema),
1593
- fit: z.optional(z.enum([
1594
- 'cover',
1595
- 'contain',
1596
- 'crop'
1597
- ])),
1598
- resolution: z.optional(z.enum([
1599
- 'preview',
1600
- 'mobile',
1601
- 'sd',
1602
- 'hd',
1603
- 'fhd'
1604
- ])),
1538
+ fit: z.optional(z.enum(["cover", "contain", "crop"])),
1539
+ resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1605
1540
  quality: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1606
1541
  return undefined; if (Array.isArray(v))
1607
1542
  return v; if (typeof v === 'string')
@@ -1617,7 +1552,7 @@ export const renditionRenditionSchema = z.object({
1617
1552
  z.literal(48),
1618
1553
  z.literal(50),
1619
1554
  z.literal(59.94),
1620
- z.literal(60)
1555
+ z.literal(60),
1621
1556
  ])),
1622
1557
  speed: z.optional(speedSpeedSchema),
1623
1558
  keyframeInterval: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1627,7 +1562,7 @@ export const renditionRenditionSchema = z.object({
1627
1562
  fixOffset: z.optional(z.boolean()),
1628
1563
  fixRotation: z.optional(z.boolean()),
1629
1564
  enhance: z.optional(enhancementsEnhancementsSchema),
1630
- filename: z.optional(z.string())
1565
+ filename: z.optional(z.string()),
1631
1566
  });
1632
1567
  export const renditionSchema = renditionRenditionSchema;
1633
1568
  /**
@@ -1635,7 +1570,7 @@ export const renditionSchema = renditionRenditionSchema;
1635
1570
  */
1636
1571
  export const outputsOutputsSchema = z.object({
1637
1572
  renditions: z.optional(z.array(renditionRenditionSchema)),
1638
- transcription: z.optional(transcriptionTranscriptionSchema)
1573
+ transcription: z.optional(transcriptionTranscriptionSchema),
1639
1574
  });
1640
1575
  export const outputsSchema = outputsOutputsSchema;
1641
1576
  /**
@@ -1644,12 +1579,12 @@ export const outputsSchema = outputsOutputsSchema;
1644
1579
  export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
1645
1580
  id: z.string(),
1646
1581
  status: z.optional(z.enum([
1647
- 'queued',
1648
- 'importing',
1649
- 'ready',
1650
- 'failed',
1651
- 'deleted',
1652
- 'overwritten'
1582
+ "queued",
1583
+ "importing",
1584
+ "ready",
1585
+ "failed",
1586
+ "deleted",
1587
+ "overwritten",
1653
1588
  ])),
1654
1589
  url: z.optional(z.string()),
1655
1590
  executionTime: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1672,14 +1607,14 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
1672
1607
  fps: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1673
1608
  return undefined; if (Array.isArray(v))
1674
1609
  return v; if (typeof v === 'string')
1675
- return Number(v); return v; }), z.number()))
1610
+ return Number(v); return v; }), z.number())),
1676
1611
  });
1677
1612
  export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
1678
1613
  /**
1679
1614
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1680
1615
  */
1681
1616
  export const outputsresponseOutputsResponseSchema = z.object({
1682
- renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
1617
+ renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema)),
1683
1618
  });
1684
1619
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1685
1620
  /**
@@ -1691,12 +1626,12 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1691
1626
  input: z.optional(z.string()),
1692
1627
  source: z.optional(z.string()),
1693
1628
  status: z.optional(z.enum([
1694
- 'queued',
1695
- 'importing',
1696
- 'ready',
1697
- 'failed',
1698
- 'deleted',
1699
- 'overwritten'
1629
+ "queued",
1630
+ "importing",
1631
+ "ready",
1632
+ "failed",
1633
+ "deleted",
1634
+ "overwritten",
1700
1635
  ])),
1701
1636
  outputs: z.optional(outputsresponseOutputsResponseSchema),
1702
1637
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -1716,7 +1651,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
1716
1651
  return v; if (typeof v === 'string')
1717
1652
  return Number(v); return v; }), z.number())),
1718
1653
  created: z.optional(z.string()),
1719
- updated: z.optional(z.string())
1654
+ updated: z.optional(z.string()),
1720
1655
  });
1721
1656
  export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
1722
1657
  /**
@@ -1725,21 +1660,21 @@ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResp
1725
1660
  export const sourceresponsedataSourceResponseDataSchema = z.object({
1726
1661
  type: z.string(),
1727
1662
  id: z.string(),
1728
- attributes: sourceresponseattributesSourceResponseAttributesSchema
1663
+ attributes: sourceresponseattributesSourceResponseAttributesSchema,
1729
1664
  });
1730
1665
  export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
1731
1666
  /**
1732
1667
  * A list of all ingested source files fetched or uploaded to a users account.
1733
1668
  */
1734
1669
  export const sourcelistresponseSourceListResponseSchema = z.object({
1735
- data: z.array(sourceresponsedataSourceResponseDataSchema)
1670
+ data: z.array(sourceresponsedataSourceResponseDataSchema),
1736
1671
  });
1737
1672
  export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
1738
1673
  /**
1739
1674
  * 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.
1740
1675
  */
1741
1676
  export const sourceresponseSourceResponseSchema = z.object({
1742
- data: sourceresponsedataSourceResponseDataSchema
1677
+ data: sourceresponsedataSourceResponseDataSchema,
1743
1678
  });
1744
1679
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
1745
1680
  /**
@@ -1750,7 +1685,7 @@ export const sourceSourceSchema = z.object({
1750
1685
  url: z.optional(z.string()),
1751
1686
  outputs: z.optional(outputsOutputsSchema),
1752
1687
  destinations: z.optional(destinationsDestinationsSchema),
1753
- callback: z.optional(z.string())
1688
+ callback: z.optional(z.string()),
1754
1689
  });
1755
1690
  export const sourceSchema = sourceSourceSchema;
1756
1691
  /**
@@ -1758,15 +1693,11 @@ export const sourceSchema = sourceSourceSchema;
1758
1693
  */
1759
1694
  export const soundtrackSoundtrackSchema = z.object({
1760
1695
  src: z.string(),
1761
- effect: z.optional(z.enum([
1762
- 'fadeIn',
1763
- 'fadeOut',
1764
- 'fadeInFadeOut'
1765
- ])),
1696
+ effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1766
1697
  volume: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1767
1698
  return undefined; if (Array.isArray(v))
1768
1699
  return v; if (typeof v === 'string')
1769
- return Number(v); return v; }), z.number()))
1700
+ return Number(v); return v; }), z.number())),
1770
1701
  });
1771
1702
  export const soundtrackSchema = soundtrackSoundtrackSchema;
1772
1703
  /**
@@ -1779,7 +1710,7 @@ export const svgpropertiesSvgGradientStopSchema = z.object({
1779
1710
  return undefined; if (Array.isArray(v))
1780
1711
  return v; if (typeof v === 'string')
1781
1712
  return Number(v); return v; }), z.number().gte(0).lte(1)),
1782
- color: z.string().regex(/^#[A-Fa-f0-9]{6}$/)
1713
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1783
1714
  });
1784
1715
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1785
1716
  /**
@@ -1788,7 +1719,7 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1788
1719
  *
1789
1720
  */
1790
1721
  export const svgpropertiesSvgLinearGradientFillSchema = z.object({
1791
- type: z.enum(['linear']),
1722
+ type: z.enum(["linear"]),
1792
1723
  angle: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1793
1724
  return undefined; if (Array.isArray(v))
1794
1725
  return v; if (typeof v === 'string')
@@ -1797,7 +1728,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
1797
1728
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1798
1729
  return undefined; if (Array.isArray(v))
1799
1730
  return v; if (typeof v === 'string')
1800
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1731
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1801
1732
  });
1802
1733
  export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
1803
1734
  /**
@@ -1806,12 +1737,12 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
1806
1737
  *
1807
1738
  */
1808
1739
  export const svgpropertiesSvgRadialGradientFillSchema = z.object({
1809
- type: z.enum(['radial']),
1740
+ type: z.enum(["radial"]),
1810
1741
  stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1811
1742
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1812
1743
  return undefined; if (Array.isArray(v))
1813
1744
  return v; if (typeof v === 'string')
1814
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1745
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1815
1746
  });
1816
1747
  export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
1817
1748
  /**
@@ -1831,23 +1762,26 @@ export const svgpropertiesSvgShadowSchema = z.object({
1831
1762
  return undefined; if (Array.isArray(v))
1832
1763
  return v; if (typeof v === 'string')
1833
1764
  return Number(v); return v; }), z.number().gte(0))).default(0),
1834
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1765
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1835
1766
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1836
1767
  return undefined; if (Array.isArray(v))
1837
1768
  return v; if (typeof v === 'string')
1838
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
1769
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1839
1770
  });
1840
1771
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
1841
1772
  /**
1842
1773
  * A solid color fill for SVG shapes.
1843
1774
  */
1844
1775
  export const svgpropertiesSvgSolidFillSchema = z.object({
1845
- type: z.enum(['solid']),
1846
- color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
1776
+ type: z.enum(["solid"]),
1777
+ color: z
1778
+ .string()
1779
+ .regex(/^#[A-Fa-f0-9]{6}$/)
1780
+ .default("#000000"),
1847
1781
  opacity: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1848
1782
  return undefined; if (Array.isArray(v))
1849
1783
  return v; if (typeof v === 'string')
1850
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(1)
1784
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1851
1785
  });
1852
1786
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
1853
1787
  /**
@@ -1867,7 +1801,7 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
1867
1801
  *
1868
1802
  */
1869
1803
  export const svgpropertiesSvgStrokeSchema = z.object({
1870
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default('#000000'),
1804
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1871
1805
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1872
1806
  return undefined; if (Array.isArray(v))
1873
1807
  return v; if (typeof v === 'string')
@@ -1876,16 +1810,8 @@ export const svgpropertiesSvgStrokeSchema = z.object({
1876
1810
  return undefined; if (Array.isArray(v))
1877
1811
  return v; if (typeof v === 'string')
1878
1812
  return Number(v); return v; }), z.number().gte(0).lte(1))).default(1),
1879
- lineCap: z.optional(z.enum([
1880
- 'butt',
1881
- 'round',
1882
- 'square'
1883
- ])),
1884
- lineJoin: z.optional(z.enum([
1885
- 'miter',
1886
- 'round',
1887
- 'bevel'
1888
- ])),
1813
+ lineCap: z.optional(z.enum(["butt", "round", "square"])),
1814
+ lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
1889
1815
  dashArray: z.optional(z.array(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1890
1816
  return undefined; if (Array.isArray(v))
1891
1817
  return v; if (typeof v === 'string')
@@ -1893,7 +1819,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
1893
1819
  dashOffset: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1894
1820
  return undefined; if (Array.isArray(v))
1895
1821
  return v; if (typeof v === 'string')
1896
- return Number(v); return v; }), z.number())).default(0)
1822
+ return Number(v); return v; }), z.number())).default(0),
1897
1823
  });
1898
1824
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
1899
1825
  /**
@@ -1924,7 +1850,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
1924
1850
  originY: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1925
1851
  return undefined; if (Array.isArray(v))
1926
1852
  return v; if (typeof v === 'string')
1927
- return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5)
1853
+ return Number(v); return v; }), z.number().gte(0).lte(1))).default(0.5),
1928
1854
  });
1929
1855
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
1930
1856
  /**
@@ -1933,7 +1859,7 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
1933
1859
  *
1934
1860
  */
1935
1861
  export const svgshapesSvgArrowShapeSchema = z.object({
1936
- type: z.enum(['arrow']),
1862
+ type: z.enum(["arrow"]),
1937
1863
  length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1938
1864
  return undefined; if (Array.isArray(v))
1939
1865
  return v; if (typeof v === 'string')
@@ -1949,7 +1875,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
1949
1875
  shaftWidth: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1950
1876
  return undefined; if (Array.isArray(v))
1951
1877
  return v; if (typeof v === 'string')
1952
- return Number(v); return v; }), z.number().gte(1).lte(1000))
1878
+ return Number(v); return v; }), z.number().gte(1).lte(1000)),
1953
1879
  });
1954
1880
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
1955
1881
  /**
@@ -1958,11 +1884,11 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
1958
1884
  *
1959
1885
  */
1960
1886
  export const svgshapesSvgCircleShapeSchema = z.object({
1961
- type: z.enum(['circle']),
1887
+ type: z.enum(["circle"]),
1962
1888
  radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1963
1889
  return undefined; if (Array.isArray(v))
1964
1890
  return v; if (typeof v === 'string')
1965
- return Number(v); return v; }), z.number().gte(1).lte(2048))
1891
+ return Number(v); return v; }), z.number().gte(1).lte(2048)),
1966
1892
  });
1967
1893
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
1968
1894
  /**
@@ -1971,7 +1897,7 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
1971
1897
  *
1972
1898
  */
1973
1899
  export const svgshapesSvgCrossShapeSchema = z.object({
1974
- type: z.enum(['cross']),
1900
+ type: z.enum(["cross"]),
1975
1901
  width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1976
1902
  return undefined; if (Array.isArray(v))
1977
1903
  return v; if (typeof v === 'string')
@@ -1983,7 +1909,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
1983
1909
  thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1984
1910
  return undefined; if (Array.isArray(v))
1985
1911
  return v; if (typeof v === 'string')
1986
- return Number(v); return v; }), z.number().gte(1).lte(500))
1912
+ return Number(v); return v; }), z.number().gte(1).lte(500)),
1987
1913
  });
1988
1914
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
1989
1915
  /**
@@ -1992,7 +1918,7 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
1992
1918
  *
1993
1919
  */
1994
1920
  export const svgshapesSvgEllipseShapeSchema = z.object({
1995
- type: z.enum(['ellipse']),
1921
+ type: z.enum(["ellipse"]),
1996
1922
  radiusX: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1997
1923
  return undefined; if (Array.isArray(v))
1998
1924
  return v; if (typeof v === 'string')
@@ -2000,7 +1926,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
2000
1926
  radiusY: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2001
1927
  return undefined; if (Array.isArray(v))
2002
1928
  return v; if (typeof v === 'string')
2003
- return Number(v); return v; }), z.number().gte(1).lte(2048))
1929
+ return Number(v); return v; }), z.number().gte(1).lte(2048)),
2004
1930
  });
2005
1931
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2006
1932
  /**
@@ -2009,11 +1935,11 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
2009
1935
  *
2010
1936
  */
2011
1937
  export const svgshapesSvgHeartShapeSchema = z.object({
2012
- type: z.enum(['heart']),
1938
+ type: z.enum(["heart"]),
2013
1939
  size: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2014
1940
  return undefined; if (Array.isArray(v))
2015
1941
  return v; if (typeof v === 'string')
2016
- return Number(v); return v; }), z.number().gte(1).lte(4096))
1942
+ return Number(v); return v; }), z.number().gte(1).lte(4096)),
2017
1943
  });
2018
1944
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2019
1945
  /**
@@ -2022,7 +1948,7 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
2022
1948
  *
2023
1949
  */
2024
1950
  export const svgshapesSvgLineShapeSchema = z.object({
2025
- type: z.enum(['line']),
1951
+ type: z.enum(["line"]),
2026
1952
  length: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2027
1953
  return undefined; if (Array.isArray(v))
2028
1954
  return v; if (typeof v === 'string')
@@ -2030,7 +1956,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
2030
1956
  thickness: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2031
1957
  return undefined; if (Array.isArray(v))
2032
1958
  return v; if (typeof v === 'string')
2033
- return Number(v); return v; }), z.number().gte(1).lte(500))
1959
+ return Number(v); return v; }), z.number().gte(1).lte(500)),
2034
1960
  });
2035
1961
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2036
1962
  /**
@@ -2051,8 +1977,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
2051
1977
  *
2052
1978
  */
2053
1979
  export const svgshapesSvgPathShapeSchema = z.object({
2054
- type: z.enum(['path']),
2055
- d: z.string().min(1).max(100000)
1980
+ type: z.enum(["path"]),
1981
+ d: z.string().min(1).max(100000),
2056
1982
  });
2057
1983
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2058
1984
  /**
@@ -2062,7 +1988,7 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
2062
1988
  *
2063
1989
  */
2064
1990
  export const svgshapesSvgPolygonShapeSchema = z.object({
2065
- type: z.enum(['polygon']),
1991
+ type: z.enum(["polygon"]),
2066
1992
  sides: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2067
1993
  return undefined; if (Array.isArray(v))
2068
1994
  return v; if (typeof v === 'string')
@@ -2070,7 +1996,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
2070
1996
  radius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2071
1997
  return undefined; if (Array.isArray(v))
2072
1998
  return v; if (typeof v === 'string')
2073
- return Number(v); return v; }), z.number().gte(1).lte(2048))
1999
+ return Number(v); return v; }), z.number().gte(1).lte(2048)),
2074
2000
  });
2075
2001
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2076
2002
  /**
@@ -2079,7 +2005,7 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
2079
2005
  *
2080
2006
  */
2081
2007
  export const svgshapesSvgRectangleShapeSchema = z.object({
2082
- type: z.enum(['rectangle']),
2008
+ type: z.enum(["rectangle"]),
2083
2009
  width: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2084
2010
  return undefined; if (Array.isArray(v))
2085
2011
  return v; if (typeof v === 'string')
@@ -2091,7 +2017,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
2091
2017
  cornerRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2092
2018
  return undefined; if (Array.isArray(v))
2093
2019
  return v; if (typeof v === 'string')
2094
- return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0)
2020
+ return Number(v); return v; }), z.number().gte(0).lte(2048))).default(0),
2095
2021
  });
2096
2022
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2097
2023
  /**
@@ -2100,7 +2026,7 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
2100
2026
  *
2101
2027
  */
2102
2028
  export const svgshapesSvgRingShapeSchema = z.object({
2103
- type: z.enum(['ring']),
2029
+ type: z.enum(["ring"]),
2104
2030
  outerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2105
2031
  return undefined; if (Array.isArray(v))
2106
2032
  return v; if (typeof v === 'string')
@@ -2108,7 +2034,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
2108
2034
  innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2109
2035
  return undefined; if (Array.isArray(v))
2110
2036
  return v; if (typeof v === 'string')
2111
- return Number(v); return v; }), z.number().gte(0).lte(2048))
2037
+ return Number(v); return v; }), z.number().gte(0).lte(2048)),
2112
2038
  });
2113
2039
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2114
2040
  /**
@@ -2118,7 +2044,7 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2118
2044
  *
2119
2045
  */
2120
2046
  export const svgshapesSvgStarShapeSchema = z.object({
2121
- type: z.enum(['star']),
2047
+ type: z.enum(["star"]),
2122
2048
  points: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2123
2049
  return undefined; if (Array.isArray(v))
2124
2050
  return v; if (typeof v === 'string')
@@ -2130,7 +2056,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
2130
2056
  innerRadius: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2131
2057
  return undefined; if (Array.isArray(v))
2132
2058
  return v; if (typeof v === 'string')
2133
- return Number(v); return v; }), z.number().gte(1).lte(2048))
2059
+ return Number(v); return v; }), z.number().gte(1).lte(2048)),
2134
2060
  });
2135
2061
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
2136
2062
  /**
@@ -2261,34 +2187,26 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2261
2187
  */
2262
2188
  export const templaterenderTemplateRenderSchema = z.object({
2263
2189
  id: z.string(),
2264
- merge: z.optional(z.array(mergefieldMergeFieldSchema))
2190
+ merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2265
2191
  });
2266
2192
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
2267
2193
  /**
2268
2194
  * Horizontal and vertical alignment properties for text.
2269
2195
  */
2270
2196
  export const textpropertiesTextAlignmentSchema = z.object({
2271
- horizontal: z.optional(z.enum([
2272
- 'left',
2273
- 'center',
2274
- 'right'
2275
- ])),
2276
- vertical: z.optional(z.enum([
2277
- 'top',
2278
- 'center',
2279
- 'bottom'
2280
- ]))
2197
+ horizontal: z.optional(z.enum(["left", "center", "right"])),
2198
+ vertical: z.optional(z.enum(["top", "center", "bottom"])),
2281
2199
  });
2282
2200
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2283
2201
  /**
2284
2202
  * Animation properties for text entrance effects.
2285
2203
  */
2286
2204
  export const textpropertiesTextAnimationSchema = z.object({
2287
- preset: z.enum(['typewriter']),
2205
+ preset: z.enum(["typewriter"]),
2288
2206
  duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2289
2207
  return undefined; if (Array.isArray(v))
2290
2208
  return v; if (typeof v === 'string')
2291
- return Number(v); return v; }), z.number().gte(0.1).lte(30)))
2209
+ return Number(v); return v; }), z.number().gte(0.1).lte(30))),
2292
2210
  });
2293
2211
  /**
2294
2212
  * Displays a background box behind the text.
@@ -2306,7 +2224,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
2306
2224
  borderRadius: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2307
2225
  return undefined; if (Array.isArray(v))
2308
2226
  return v; if (typeof v === 'string')
2309
- return Number(v); return v; }), z.number().gte(0)))
2227
+ return Number(v); return v; }), z.number().gte(0))),
2310
2228
  });
2311
2229
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2312
2230
  /**
@@ -2330,7 +2248,7 @@ export const textpropertiesTextFontSchema = z.object({
2330
2248
  lineHeight: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2331
2249
  return undefined; if (Array.isArray(v))
2332
2250
  return v; if (typeof v === 'string')
2333
- return Number(v); return v; }), z.number()))
2251
+ return Number(v); return v; }), z.number())),
2334
2252
  });
2335
2253
  export const textFontSchema = textpropertiesTextFontSchema;
2336
2254
  /**
@@ -2341,7 +2259,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2341
2259
  return undefined; if (Array.isArray(v))
2342
2260
  return v; if (typeof v === 'string')
2343
2261
  return Number(v); return v; }), z.number().gte(0).lte(10))),
2344
- color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/))
2262
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2345
2263
  });
2346
2264
  /**
2347
2265
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
@@ -2349,7 +2267,7 @@ export const textpropertiesTextStrokeSchema = z.object({
2349
2267
  *
2350
2268
  */
2351
2269
  export const textassetTextAssetSchema = z.object({
2352
- type: z.enum(['text']),
2270
+ type: z.enum(["text"]),
2353
2271
  text: z.string(),
2354
2272
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2355
2273
  return undefined; if (Array.isArray(v))
@@ -2364,14 +2282,14 @@ export const textassetTextAssetSchema = z.object({
2364
2282
  alignment: z.optional(textpropertiesTextAlignmentSchema),
2365
2283
  stroke: z.optional(textpropertiesTextStrokeSchema),
2366
2284
  animation: z.optional(textpropertiesTextAnimationSchema),
2367
- ellipsis: z.optional(z.string())
2285
+ ellipsis: z.optional(z.string()),
2368
2286
  });
2369
2287
  export const textAssetSchema = textassetTextAssetSchema;
2370
2288
  /**
2371
2289
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2372
2290
  */
2373
2291
  export const texttoimageassetTextToImageAssetSchema = z.object({
2374
- type: z.enum(['text-to-image']),
2292
+ type: z.enum(["text-to-image"]),
2375
2293
  prompt: z.string(),
2376
2294
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2377
2295
  return undefined; if (Array.isArray(v))
@@ -2381,7 +2299,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
2381
2299
  return undefined; if (Array.isArray(v))
2382
2300
  return v; if (typeof v === 'string')
2383
2301
  return Number(v); return v; }), z.number().int())),
2384
- crop: z.optional(cropCropSchema)
2302
+ crop: z.optional(cropCropSchema),
2385
2303
  });
2386
2304
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2387
2305
  /**
@@ -2395,36 +2313,16 @@ export const thumbnailThumbnailSchema = z.object({
2395
2313
  scale: z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2396
2314
  return undefined; if (Array.isArray(v))
2397
2315
  return v; if (typeof v === 'string')
2398
- return Number(v); return v; }), z.number().gte(0).lte(1))
2316
+ return Number(v); return v; }), z.number().gte(0).lte(1)),
2399
2317
  });
2400
2318
  export const thumbnailSchema = thumbnailThumbnailSchema;
2401
2319
  /**
2402
2320
  * The output format, render range and type of media to generate.
2403
2321
  */
2404
2322
  export const outputOutputSchema = z.object({
2405
- format: z.enum([
2406
- 'mp4',
2407
- 'gif',
2408
- 'mp3',
2409
- 'jpg',
2410
- 'png',
2411
- 'bmp'
2412
- ]),
2413
- resolution: z.optional(z.enum([
2414
- 'preview',
2415
- 'mobile',
2416
- 'sd',
2417
- 'hd',
2418
- '1080',
2419
- '4k'
2420
- ])),
2421
- aspectRatio: z.optional(z.enum([
2422
- '16:9',
2423
- '9:16',
2424
- '1:1',
2425
- '4:5',
2426
- '4:3'
2427
- ])),
2323
+ format: z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
2324
+ resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2325
+ aspectRatio: z.optional(z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
2428
2326
  size: z.optional(sizeSizeSchema),
2429
2327
  fps: z.optional(z.union([
2430
2328
  z.literal(12),
@@ -2437,29 +2335,16 @@ export const outputOutputSchema = z.object({
2437
2335
  z.literal(48),
2438
2336
  z.literal(50),
2439
2337
  z.literal(59.94),
2440
- z.literal(60)
2441
- ])),
2442
- scaleTo: z.optional(z.enum([
2443
- 'preview',
2444
- 'mobile',
2445
- 'sd',
2446
- 'hd',
2447
- '1080',
2448
- '4k'
2449
- ])),
2450
- quality: z.optional(z.enum([
2451
- 'verylow',
2452
- 'low',
2453
- 'medium',
2454
- 'high',
2455
- 'veryhigh'
2338
+ z.literal(60),
2456
2339
  ])),
2340
+ scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2341
+ quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2457
2342
  repeat: z.optional(z.boolean()),
2458
2343
  mute: z.optional(z.boolean()),
2459
2344
  range: z.optional(rangeRangeSchema),
2460
2345
  poster: z.optional(posterPosterSchema),
2461
2346
  thumbnail: z.optional(thumbnailThumbnailSchema),
2462
- destinations: z.optional(z.array(destinationsDestinationsSchema))
2347
+ destinations: z.optional(z.array(destinationsDestinationsSchema)),
2463
2348
  });
2464
2349
  export const outputSchema = outputOutputSchema;
2465
2350
  /**
@@ -2467,133 +2352,133 @@ export const outputSchema = outputOutputSchema;
2467
2352
  */
2468
2353
  export const transitionTransitionSchema = z.object({
2469
2354
  in: z.optional(z.enum([
2470
- 'none',
2471
- 'fade',
2472
- 'fadeSlow',
2473
- 'fadeFast',
2474
- 'reveal',
2475
- 'revealSlow',
2476
- 'revealFast',
2477
- 'wipeLeft',
2478
- 'wipeLeftSlow',
2479
- 'wipeLeftFast',
2480
- 'wipeRight',
2481
- 'wipeRightSlow',
2482
- 'wipeRightFast',
2483
- 'slideLeft',
2484
- 'slideLeftSlow',
2485
- 'slideLeftFast',
2486
- 'slideRight',
2487
- 'slideRightSlow',
2488
- 'slideRightFast',
2489
- 'slideUp',
2490
- 'slideUpSlow',
2491
- 'slideUpFast',
2492
- 'slideDown',
2493
- 'slideDownSlow',
2494
- 'slideDownFast',
2495
- 'carouselLeft',
2496
- 'carouselLeftSlow',
2497
- 'carouselLeftFast',
2498
- 'carouselRight',
2499
- 'carouselRightSlow',
2500
- 'carouselRightFast',
2501
- 'carouselUp',
2502
- 'carouselUpSlow',
2503
- 'carouselUpFast',
2504
- 'carouselDown',
2505
- 'carouselDownSlow',
2506
- 'carouselDownFast',
2507
- 'shuffleTopRight',
2508
- 'shuffleTopRightSlow',
2509
- 'shuffleTopRightFast',
2510
- 'shuffleRightTop',
2511
- 'shuffleRightTopSlow',
2512
- 'shuffleRightTopFast',
2513
- 'shuffleRightBottom',
2514
- 'shuffleRightBottomSlow',
2515
- 'shuffleRightBottomFast',
2516
- 'shuffleBottomRight',
2517
- 'shuffleBottomRightSlow',
2518
- 'shuffleBottomRightFast',
2519
- 'shuffleBottomLeft',
2520
- 'shuffleBottomLeftSlow',
2521
- 'shuffleBottomLeftFast',
2522
- 'shuffleLeftBottom',
2523
- 'shuffleLeftBottomSlow',
2524
- 'shuffleLeftBottomFast',
2525
- 'shuffleLeftTop',
2526
- 'shuffleLeftTopSlow',
2527
- 'shuffleLeftTopFast',
2528
- 'shuffleTopLeft',
2529
- 'shuffleTopLeftSlow',
2530
- 'shuffleTopLeftFast',
2531
- 'zoom'
2355
+ "none",
2356
+ "fade",
2357
+ "fadeSlow",
2358
+ "fadeFast",
2359
+ "reveal",
2360
+ "revealSlow",
2361
+ "revealFast",
2362
+ "wipeLeft",
2363
+ "wipeLeftSlow",
2364
+ "wipeLeftFast",
2365
+ "wipeRight",
2366
+ "wipeRightSlow",
2367
+ "wipeRightFast",
2368
+ "slideLeft",
2369
+ "slideLeftSlow",
2370
+ "slideLeftFast",
2371
+ "slideRight",
2372
+ "slideRightSlow",
2373
+ "slideRightFast",
2374
+ "slideUp",
2375
+ "slideUpSlow",
2376
+ "slideUpFast",
2377
+ "slideDown",
2378
+ "slideDownSlow",
2379
+ "slideDownFast",
2380
+ "carouselLeft",
2381
+ "carouselLeftSlow",
2382
+ "carouselLeftFast",
2383
+ "carouselRight",
2384
+ "carouselRightSlow",
2385
+ "carouselRightFast",
2386
+ "carouselUp",
2387
+ "carouselUpSlow",
2388
+ "carouselUpFast",
2389
+ "carouselDown",
2390
+ "carouselDownSlow",
2391
+ "carouselDownFast",
2392
+ "shuffleTopRight",
2393
+ "shuffleTopRightSlow",
2394
+ "shuffleTopRightFast",
2395
+ "shuffleRightTop",
2396
+ "shuffleRightTopSlow",
2397
+ "shuffleRightTopFast",
2398
+ "shuffleRightBottom",
2399
+ "shuffleRightBottomSlow",
2400
+ "shuffleRightBottomFast",
2401
+ "shuffleBottomRight",
2402
+ "shuffleBottomRightSlow",
2403
+ "shuffleBottomRightFast",
2404
+ "shuffleBottomLeft",
2405
+ "shuffleBottomLeftSlow",
2406
+ "shuffleBottomLeftFast",
2407
+ "shuffleLeftBottom",
2408
+ "shuffleLeftBottomSlow",
2409
+ "shuffleLeftBottomFast",
2410
+ "shuffleLeftTop",
2411
+ "shuffleLeftTopSlow",
2412
+ "shuffleLeftTopFast",
2413
+ "shuffleTopLeft",
2414
+ "shuffleTopLeftSlow",
2415
+ "shuffleTopLeftFast",
2416
+ "zoom",
2532
2417
  ])),
2533
2418
  out: z.optional(z.enum([
2534
- 'none',
2535
- 'fade',
2536
- 'fadeSlow',
2537
- 'fadeFast',
2538
- 'reveal',
2539
- 'revealSlow',
2540
- 'revealFast',
2541
- 'wipeLeft',
2542
- 'wipeLeftSlow',
2543
- 'wipeLeftFast',
2544
- 'wipeRight',
2545
- 'wipeRightSlow',
2546
- 'wipeRightFast',
2547
- 'slideLeft',
2548
- 'slideLeftSlow',
2549
- 'slideLeftFast',
2550
- 'slideRight',
2551
- 'slideRightSlow',
2552
- 'slideRightFast',
2553
- 'slideUp',
2554
- 'slideUpSlow',
2555
- 'slideUpFast',
2556
- 'slideDown',
2557
- 'slideDownSlow',
2558
- 'slideDownFast',
2559
- 'carouselLeft',
2560
- 'carouselLeftSlow',
2561
- 'carouselLeftFast',
2562
- 'carouselRight',
2563
- 'carouselRightSlow',
2564
- 'carouselRightFast',
2565
- 'carouselUp',
2566
- 'carouselUpSlow',
2567
- 'carouselUpFast',
2568
- 'carouselDown',
2569
- 'carouselDownSlow',
2570
- 'carouselDownFast',
2571
- 'shuffleTopRight',
2572
- 'shuffleTopRightSlow',
2573
- 'shuffleTopRightFast',
2574
- 'shuffleRightTop',
2575
- 'shuffleRightTopSlow',
2576
- 'shuffleRightTopFast',
2577
- 'shuffleRightBottom',
2578
- 'shuffleRightBottomSlow',
2579
- 'shuffleRightBottomFast',
2580
- 'shuffleBottomRight',
2581
- 'shuffleBottomRightSlow',
2582
- 'shuffleBottomRightFast',
2583
- 'shuffleBottomLeft',
2584
- 'shuffleBottomLeftSlow',
2585
- 'shuffleBottomLeftFast',
2586
- 'shuffleLeftBottom',
2587
- 'shuffleLeftBottomSlow',
2588
- 'shuffleLeftBottomFast',
2589
- 'shuffleLeftTop',
2590
- 'shuffleLeftTopSlow',
2591
- 'shuffleLeftTopFast',
2592
- 'shuffleTopLeft',
2593
- 'shuffleTopLeftSlow',
2594
- 'shuffleTopLeftFast',
2595
- 'zoom'
2596
- ]))
2419
+ "none",
2420
+ "fade",
2421
+ "fadeSlow",
2422
+ "fadeFast",
2423
+ "reveal",
2424
+ "revealSlow",
2425
+ "revealFast",
2426
+ "wipeLeft",
2427
+ "wipeLeftSlow",
2428
+ "wipeLeftFast",
2429
+ "wipeRight",
2430
+ "wipeRightSlow",
2431
+ "wipeRightFast",
2432
+ "slideLeft",
2433
+ "slideLeftSlow",
2434
+ "slideLeftFast",
2435
+ "slideRight",
2436
+ "slideRightSlow",
2437
+ "slideRightFast",
2438
+ "slideUp",
2439
+ "slideUpSlow",
2440
+ "slideUpFast",
2441
+ "slideDown",
2442
+ "slideDownSlow",
2443
+ "slideDownFast",
2444
+ "carouselLeft",
2445
+ "carouselLeftSlow",
2446
+ "carouselLeftFast",
2447
+ "carouselRight",
2448
+ "carouselRightSlow",
2449
+ "carouselRightFast",
2450
+ "carouselUp",
2451
+ "carouselUpSlow",
2452
+ "carouselUpFast",
2453
+ "carouselDown",
2454
+ "carouselDownSlow",
2455
+ "carouselDownFast",
2456
+ "shuffleTopRight",
2457
+ "shuffleTopRightSlow",
2458
+ "shuffleTopRightFast",
2459
+ "shuffleRightTop",
2460
+ "shuffleRightTopSlow",
2461
+ "shuffleRightTopFast",
2462
+ "shuffleRightBottom",
2463
+ "shuffleRightBottomSlow",
2464
+ "shuffleRightBottomFast",
2465
+ "shuffleBottomRight",
2466
+ "shuffleBottomRightSlow",
2467
+ "shuffleBottomRightFast",
2468
+ "shuffleBottomLeft",
2469
+ "shuffleBottomLeftSlow",
2470
+ "shuffleBottomLeftFast",
2471
+ "shuffleLeftBottom",
2472
+ "shuffleLeftBottomSlow",
2473
+ "shuffleLeftBottomFast",
2474
+ "shuffleLeftTop",
2475
+ "shuffleLeftTopSlow",
2476
+ "shuffleLeftTopFast",
2477
+ "shuffleTopLeft",
2478
+ "shuffleTopLeftSlow",
2479
+ "shuffleTopLeftFast",
2480
+ "zoom",
2481
+ ])),
2597
2482
  });
2598
2483
  export const transitionSchema = transitionTransitionSchema;
2599
2484
  /**
@@ -2617,123 +2502,96 @@ export const tweenTweenSchema = z.object({
2617
2502
  return undefined; if (Array.isArray(v))
2618
2503
  return v; if (typeof v === 'string')
2619
2504
  return Number(v); return v; }), z.number())),
2620
- interpolation: z.optional(z.enum([
2621
- 'linear',
2622
- 'bezier',
2623
- 'constant'
2624
- ])),
2505
+ interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
2625
2506
  easing: z.optional(z.enum([
2626
- 'ease',
2627
- 'easeIn',
2628
- 'easeOut',
2629
- 'easeInOut',
2630
- 'easeInQuad',
2631
- 'easeInCubic',
2632
- 'easeInQuart',
2633
- 'easeInQuint',
2634
- 'easeInSine',
2635
- 'easeInExpo',
2636
- 'easeInCirc',
2637
- 'easeInBack',
2638
- 'easeOutQuad',
2639
- 'easeOutCubic',
2640
- 'easeOutQuart',
2641
- 'easeOutQuint',
2642
- 'easeOutSine',
2643
- 'easeOutExpo',
2644
- 'easeOutCirc',
2645
- 'easeOutBack',
2646
- 'easeInOutQuad',
2647
- 'easeInOutCubic',
2648
- 'easeInOutQuart',
2649
- 'easeInOutQuint',
2650
- 'easeInOutSine',
2651
- 'easeInOutExpo',
2652
- 'easeInOutCirc',
2653
- 'easeInOutBack'
2654
- ]))
2507
+ "ease",
2508
+ "easeIn",
2509
+ "easeOut",
2510
+ "easeInOut",
2511
+ "easeInQuad",
2512
+ "easeInCubic",
2513
+ "easeInQuart",
2514
+ "easeInQuint",
2515
+ "easeInSine",
2516
+ "easeInExpo",
2517
+ "easeInCirc",
2518
+ "easeInBack",
2519
+ "easeOutQuad",
2520
+ "easeOutCubic",
2521
+ "easeOutQuart",
2522
+ "easeOutQuint",
2523
+ "easeOutSine",
2524
+ "easeOutExpo",
2525
+ "easeOutCirc",
2526
+ "easeOutBack",
2527
+ "easeInOutQuad",
2528
+ "easeInOutCubic",
2529
+ "easeInOutQuart",
2530
+ "easeInOutQuint",
2531
+ "easeInOutSine",
2532
+ "easeInOutExpo",
2533
+ "easeInOutCirc",
2534
+ "easeInOutBack",
2535
+ ])),
2655
2536
  });
2656
2537
  export const tweenSchema = tweenTweenSchema;
2657
2538
  /**
2658
2539
  * 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.
2659
2540
  */
2660
2541
  export const audioassetAudioAssetSchema = z.object({
2661
- type: z.enum(['audio']),
2542
+ type: z.enum(["audio"]),
2662
2543
  src: z.string(),
2663
2544
  trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2664
2545
  return undefined; if (Array.isArray(v))
2665
2546
  return v; if (typeof v === 'string')
2666
2547
  return Number(v); return v; }), z.number())),
2667
- volume: z.optional(z.union([
2668
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2548
+ volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2669
2549
  return undefined; if (Array.isArray(v))
2670
2550
  return v; if (typeof v === 'string')
2671
- return Number(v); return v; }), z.number().gte(0).lte(1)),
2672
- z.array(tweenTweenSchema)
2673
- ])),
2551
+ return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)])),
2674
2552
  speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2675
2553
  return undefined; if (Array.isArray(v))
2676
2554
  return v; if (typeof v === 'string')
2677
2555
  return Number(v); return v; }), z.number().gte(0).lte(10))),
2678
- effect: z.optional(z.enum([
2679
- 'none',
2680
- 'fadeIn',
2681
- 'fadeOut',
2682
- 'fadeInFadeOut'
2683
- ]))
2556
+ effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2684
2557
  });
2685
2558
  export const audioAssetSchema = audioassetAudioAssetSchema;
2686
2559
  /**
2687
2560
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2688
2561
  */
2689
2562
  export const offsetOffsetSchema = z.object({
2690
- x: z.optional(z.union([
2691
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2563
+ x: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2692
2564
  return undefined; if (Array.isArray(v))
2693
2565
  return v; if (typeof v === 'string')
2694
- return Number(v); return v; }), z.number().gte(-10).lte(10)),
2695
- z.array(tweenTweenSchema)
2696
- ])),
2697
- y: z.optional(z.union([
2698
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2566
+ return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)])),
2567
+ y: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2699
2568
  return undefined; if (Array.isArray(v))
2700
2569
  return v; if (typeof v === 'string')
2701
- return Number(v); return v; }), z.number().gte(-10).lte(10)),
2702
- z.array(tweenTweenSchema)
2703
- ]))
2570
+ return Number(v); return v; }), z.number().gte(-10).lte(10)), z.array(tweenTweenSchema)])),
2704
2571
  });
2705
2572
  export const offsetSchema = offsetOffsetSchema;
2706
2573
  /**
2707
2574
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2708
2575
  */
2709
2576
  export const rotatetransformationRotateTransformationSchema = z.object({
2710
- angle: z.optional(z.union([
2711
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2577
+ angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2712
2578
  return undefined; if (Array.isArray(v))
2713
2579
  return v; if (typeof v === 'string')
2714
- return Number(v); return v; }), z.number().gte(-360).lte(360)),
2715
- z.array(tweenTweenSchema)
2716
- ]))
2580
+ return Number(v); return v; }), z.number().gte(-360).lte(360)), z.array(tweenTweenSchema)])),
2717
2581
  });
2718
2582
  export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
2719
2583
  /**
2720
2584
  * 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.
2721
2585
  */
2722
2586
  export const skewtransformationSkewTransformationSchema = z.object({
2723
- x: z.optional(z.union([
2724
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2587
+ x: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2725
2588
  return undefined; if (Array.isArray(v))
2726
2589
  return v; if (typeof v === 'string')
2727
- return Number(v); return v; }), z.number().gte(-100).lte(100)),
2728
- z.array(tweenTweenSchema)
2729
- ])),
2730
- y: z.optional(z.union([
2731
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2590
+ return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)])),
2591
+ y: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2732
2592
  return undefined; if (Array.isArray(v))
2733
2593
  return v; if (typeof v === 'string')
2734
- return Number(v); return v; }), z.number().gte(-100).lte(100)),
2735
- z.array(tweenTweenSchema)
2736
- ]))
2594
+ return Number(v); return v; }), z.number().gte(-100).lte(100)), z.array(tweenTweenSchema)])),
2737
2595
  });
2738
2596
  export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
2739
2597
  /**
@@ -2745,43 +2603,43 @@ export const skewTransformationSchema = skewtransformationSkewTransformationSche
2745
2603
  * @deprecated
2746
2604
  */
2747
2605
  export const titleassetTitleAssetSchema = z.object({
2748
- type: z.enum(['title']),
2606
+ type: z.enum(["title"]),
2749
2607
  text: z.string(),
2750
2608
  style: z.optional(z.enum([
2751
- 'minimal',
2752
- 'blockbuster',
2753
- 'vogue',
2754
- 'sketchy',
2755
- 'skinny',
2756
- 'chunk',
2757
- 'chunkLight',
2758
- 'marker',
2759
- 'future',
2760
- 'subtitle'
2609
+ "minimal",
2610
+ "blockbuster",
2611
+ "vogue",
2612
+ "sketchy",
2613
+ "skinny",
2614
+ "chunk",
2615
+ "chunkLight",
2616
+ "marker",
2617
+ "future",
2618
+ "subtitle",
2761
2619
  ])),
2762
2620
  color: z.optional(z.string()),
2763
2621
  size: z.optional(z.enum([
2764
- 'xx-small',
2765
- 'x-small',
2766
- 'small',
2767
- 'medium',
2768
- 'large',
2769
- 'x-large',
2770
- 'xx-large'
2622
+ "xx-small",
2623
+ "x-small",
2624
+ "small",
2625
+ "medium",
2626
+ "large",
2627
+ "x-large",
2628
+ "xx-large",
2771
2629
  ])),
2772
2630
  background: z.optional(z.string()),
2773
2631
  position: z.optional(z.enum([
2774
- 'top',
2775
- 'topRight',
2776
- 'right',
2777
- 'bottomRight',
2778
- 'bottom',
2779
- 'bottomLeft',
2780
- 'left',
2781
- 'topLeft',
2782
- 'center'
2632
+ "top",
2633
+ "topRight",
2634
+ "right",
2635
+ "bottomRight",
2636
+ "bottom",
2637
+ "bottomLeft",
2638
+ "left",
2639
+ "topLeft",
2640
+ "center",
2783
2641
  ])),
2784
- offset: z.optional(offsetOffsetSchema)
2642
+ offset: z.optional(offsetOffsetSchema),
2785
2643
  });
2786
2644
  export const titleAssetSchema = titleassetTitleAssetSchema;
2787
2645
  /**
@@ -2790,39 +2648,31 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
2790
2648
  export const transformationTransformationSchema = z.object({
2791
2649
  rotate: z.optional(rotatetransformationRotateTransformationSchema),
2792
2650
  skew: z.optional(skewtransformationSkewTransformationSchema),
2793
- flip: z.optional(fliptransformationFlipTransformationSchema)
2651
+ flip: z.optional(fliptransformationFlipTransformationSchema),
2794
2652
  });
2795
2653
  export const transformationSchema = transformationTransformationSchema;
2796
2654
  /**
2797
2655
  * 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.
2798
2656
  */
2799
2657
  export const videoassetVideoAssetSchema = z.object({
2800
- type: z.enum(['video']),
2658
+ type: z.enum(["video"]),
2801
2659
  src: z.string(),
2802
2660
  transcode: z.optional(z.boolean()),
2803
2661
  trim: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2804
2662
  return undefined; if (Array.isArray(v))
2805
2663
  return v; if (typeof v === 'string')
2806
2664
  return Number(v); return v; }), z.number())),
2807
- volume: z.optional(z.union([
2808
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2665
+ volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2809
2666
  return undefined; if (Array.isArray(v))
2810
2667
  return v; if (typeof v === 'string')
2811
- return Number(v); return v; }), z.number().gte(0).lte(1)),
2812
- z.array(tweenTweenSchema)
2813
- ])),
2814
- volumeEffect: z.optional(z.enum([
2815
- 'none',
2816
- 'fadeIn',
2817
- 'fadeOut',
2818
- 'fadeInFadeOut'
2819
- ])),
2668
+ return Number(v); return v; }), z.number().gte(0).lte(1)), z.array(tweenTweenSchema)])),
2669
+ volumeEffect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2820
2670
  speed: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2821
2671
  return undefined; if (Array.isArray(v))
2822
2672
  return v; if (typeof v === 'string')
2823
2673
  return Number(v); return v; }), z.number().gte(0).lte(10))),
2824
2674
  crop: z.optional(cropCropSchema),
2825
- chromaKey: z.optional(chromakeyChromaKeySchema)
2675
+ chromaKey: z.optional(chromakeyChromaKeySchema),
2826
2676
  });
2827
2677
  export const videoAssetSchema = videoassetVideoAssetSchema;
2828
2678
  /**
@@ -2854,96 +2704,85 @@ export const clipClipSchema = z.object({
2854
2704
  return undefined; if (Array.isArray(v))
2855
2705
  return v; if (typeof v === 'string')
2856
2706
  return Number(v); return v; }), z.number()),
2857
- z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/)
2707
+ z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
2858
2708
  ]),
2859
2709
  length: z.union([
2860
2710
  z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2861
2711
  return undefined; if (Array.isArray(v))
2862
2712
  return v; if (typeof v === 'string')
2863
2713
  return Number(v); return v; }), z.number()),
2864
- z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/)
2714
+ z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
2865
2715
  ]),
2866
- fit: z.optional(z.enum([
2867
- 'cover',
2868
- 'contain',
2869
- 'crop',
2870
- 'none'
2871
- ])),
2872
- scale: z.optional(z.union([
2873
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2716
+ fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
2717
+ scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2874
2718
  return undefined; if (Array.isArray(v))
2875
2719
  return v; if (typeof v === 'string')
2876
- return Number(v); return v; }), z.number()),
2877
- z.array(tweenTweenSchema)
2878
- ])),
2720
+ return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
2879
2721
  width: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2880
2722
  return undefined; if (Array.isArray(v))
2881
2723
  return v; if (typeof v === 'string')
2882
- return Number(v); return v; }), z.number().int().gte(1).lte(3840))),
2724
+ return Number(v); return v; }), z.number().gte(1).lte(3840))),
2883
2725
  height: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2884
2726
  return undefined; if (Array.isArray(v))
2885
2727
  return v; if (typeof v === 'string')
2886
- return Number(v); return v; }), z.number().int().gte(1).lte(2160))),
2728
+ return Number(v); return v; }), z.number().gte(1).lte(2160))),
2887
2729
  position: z.optional(z.enum([
2888
- 'top',
2889
- 'topRight',
2890
- 'right',
2891
- 'bottomRight',
2892
- 'bottom',
2893
- 'bottomLeft',
2894
- 'left',
2895
- 'topLeft',
2896
- 'center'
2730
+ "top",
2731
+ "topRight",
2732
+ "right",
2733
+ "bottomRight",
2734
+ "bottom",
2735
+ "bottomLeft",
2736
+ "left",
2737
+ "topLeft",
2738
+ "center",
2897
2739
  ])),
2898
2740
  offset: z.optional(offsetOffsetSchema),
2899
2741
  transition: z.optional(transitionTransitionSchema),
2900
2742
  effect: z.optional(z.enum([
2901
- 'zoomIn',
2902
- 'zoomInSlow',
2903
- 'zoomInFast',
2904
- 'zoomOut',
2905
- 'zoomOutSlow',
2906
- 'zoomOutFast',
2907
- 'slideLeft',
2908
- 'slideLeftSlow',
2909
- 'slideLeftFast',
2910
- 'slideRight',
2911
- 'slideRightSlow',
2912
- 'slideRightFast',
2913
- 'slideUp',
2914
- 'slideUpSlow',
2915
- 'slideUpFast',
2916
- 'slideDown',
2917
- 'slideDownSlow',
2918
- 'slideDownFast'
2743
+ "zoomIn",
2744
+ "zoomInSlow",
2745
+ "zoomInFast",
2746
+ "zoomOut",
2747
+ "zoomOutSlow",
2748
+ "zoomOutFast",
2749
+ "slideLeft",
2750
+ "slideLeftSlow",
2751
+ "slideLeftFast",
2752
+ "slideRight",
2753
+ "slideRightSlow",
2754
+ "slideRightFast",
2755
+ "slideUp",
2756
+ "slideUpSlow",
2757
+ "slideUpFast",
2758
+ "slideDown",
2759
+ "slideDownSlow",
2760
+ "slideDownFast",
2919
2761
  ])),
2920
2762
  filter: z.optional(z.enum([
2921
- 'none',
2922
- 'blur',
2923
- 'boost',
2924
- 'contrast',
2925
- 'darken',
2926
- 'greyscale',
2927
- 'lighten',
2928
- 'muted',
2929
- 'negative'
2763
+ "none",
2764
+ "blur",
2765
+ "boost",
2766
+ "contrast",
2767
+ "darken",
2768
+ "greyscale",
2769
+ "lighten",
2770
+ "muted",
2771
+ "negative",
2930
2772
  ])),
2931
- opacity: z.optional(z.union([
2932
- z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2773
+ opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2933
2774
  return undefined; if (Array.isArray(v))
2934
2775
  return v; if (typeof v === 'string')
2935
- return Number(v); return v; }), z.number()),
2936
- z.array(tweenTweenSchema)
2937
- ])),
2776
+ return Number(v); return v; }), z.number()), z.array(tweenTweenSchema)])),
2938
2777
  transform: z.optional(transformationTransformationSchema),
2939
- alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/))
2778
+ alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/)),
2940
2779
  });
2941
2780
  export const clipSchema = clipClipSchema;
2942
2781
  /**
2943
2782
  * 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.
2944
2783
  */
2945
2784
  export const trackTrackSchema = z.object({
2946
- clips: z.array(clipClipSchema)
2785
+ clips: z.array(clipClipSchema),
2947
2786
  });
2948
2787
  export const trackSchema = trackTrackSchema;
2949
2788
  /**
@@ -2954,7 +2793,7 @@ export const timelineTimelineSchema = z.object({
2954
2793
  background: z.optional(z.string()),
2955
2794
  fonts: z.optional(z.array(fontFontSchema)),
2956
2795
  tracks: z.array(trackTrackSchema),
2957
- cache: z.optional(z.boolean())
2796
+ cache: z.optional(z.boolean()),
2958
2797
  });
2959
2798
  export const timelineSchema = timelineTimelineSchema;
2960
2799
  /**
@@ -2965,7 +2804,7 @@ export const editEditSchema = z.object({
2965
2804
  output: outputOutputSchema,
2966
2805
  merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2967
2806
  callback: z.optional(z.string()),
2968
- disk: z.optional(z.enum(['local', 'mount']))
2807
+ disk: z.optional(z.enum(["local", "mount"])),
2969
2808
  });
2970
2809
  export const editSchema = editEditSchema;
2971
2810
  /**
@@ -2976,13 +2815,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
2976
2815
  owner: z.string(),
2977
2816
  plan: z.optional(z.string()),
2978
2817
  status: z.enum([
2979
- 'queued',
2980
- 'fetching',
2981
- 'preprocessing',
2982
- 'rendering',
2983
- 'saving',
2984
- 'done',
2985
- 'failed'
2818
+ "queued",
2819
+ "fetching",
2820
+ "preprocessing",
2821
+ "rendering",
2822
+ "saving",
2823
+ "done",
2824
+ "failed",
2986
2825
  ]),
2987
2826
  error: z.optional(z.string()),
2988
2827
  duration: z.optional(z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
@@ -2994,17 +2833,11 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
2994
2833
  return v; if (typeof v === 'string')
2995
2834
  return Number(v); return v; }), z.number())),
2996
2835
  url: z.optional(z.string()),
2997
- poster: z.optional(z.union([
2998
- z.string(),
2999
- z.null()
3000
- ])),
3001
- thumbnail: z.optional(z.union([
3002
- z.string(),
3003
- z.null()
3004
- ])),
2836
+ poster: z.optional(z.union([z.string(), z.null()])),
2837
+ thumbnail: z.optional(z.union([z.string(), z.null()])),
3005
2838
  data: z.optional(editEditSchema),
3006
2839
  created: z.optional(z.string()),
3007
- updated: z.optional(z.string())
2840
+ updated: z.optional(z.string()),
3008
2841
  });
3009
2842
  export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
3010
2843
  /**
@@ -3013,7 +2846,7 @@ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSche
3013
2846
  export const renderresponseRenderResponseSchema = z.object({
3014
2847
  success: z.boolean(),
3015
2848
  message: z.string(),
3016
- response: renderresponsedataRenderResponseDataSchema
2849
+ response: renderresponsedataRenderResponseDataSchema,
3017
2850
  });
3018
2851
  export const renderResponseSchema = renderresponseRenderResponseSchema;
3019
2852
  /**
@@ -3023,7 +2856,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
3023
2856
  id: z.string(),
3024
2857
  name: z.string(),
3025
2858
  owner: z.string(),
3026
- template: editEditSchema
2859
+ template: editEditSchema,
3027
2860
  });
3028
2861
  export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
3029
2862
  /**
@@ -3032,7 +2865,7 @@ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDa
3032
2865
  export const templatedataresponseTemplateDataResponseSchema = z.object({
3033
2866
  success: z.boolean(),
3034
2867
  message: z.string(),
3035
- response: templatedataresponsedataTemplateDataResponseDataSchema
2868
+ response: templatedataresponsedataTemplateDataResponseDataSchema,
3036
2869
  });
3037
2870
  export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
3038
2871
  /**
@@ -3040,13 +2873,13 @@ export const templateDataResponseSchema = templatedataresponseTemplateDataRespon
3040
2873
  */
3041
2874
  export const templateTemplateSchema = z.object({
3042
2875
  name: z.string(),
3043
- template: z.optional(editEditSchema)
2876
+ template: z.optional(editEditSchema),
3044
2877
  });
3045
2878
  export const templateSchema = templateTemplateSchema;
3046
2879
  export const postRenderRequest = z.object({
3047
2880
  body: editEditSchema,
3048
2881
  path: z.optional(z.never()),
3049
- query: z.optional(z.never())
2882
+ query: z.optional(z.never()),
3050
2883
  });
3051
2884
  /**
3052
2885
  * The queued render details
@@ -3055,12 +2888,14 @@ export const postRenderResponse = queuedresponseQueuedResponseSchema;
3055
2888
  export const getRenderRequest = z.object({
3056
2889
  body: z.optional(z.never()),
3057
2890
  path: z.object({
3058
- 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}$/)
2891
+ id: z
2892
+ .string()
2893
+ .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}$/),
3059
2894
  }),
3060
2895
  query: z.optional(z.object({
3061
2896
  data: z.optional(z.boolean()),
3062
- merged: z.optional(z.boolean())
3063
- }))
2897
+ merged: z.optional(z.boolean()),
2898
+ })),
3064
2899
  });
3065
2900
  /**
3066
2901
  * The render status details
@@ -3069,7 +2904,7 @@ export const getRenderResponse = renderresponseRenderResponseSchema;
3069
2904
  export const getTemplatesRequest = z.object({
3070
2905
  body: z.optional(z.never()),
3071
2906
  path: z.optional(z.never()),
3072
- query: z.optional(z.never())
2907
+ query: z.optional(z.never()),
3073
2908
  });
3074
2909
  /**
3075
2910
  * The list of templates stored against a users account
@@ -3078,7 +2913,7 @@ export const getTemplatesResponse = templatelistresponseTemplateListResponseSche
3078
2913
  export const postTemplateRequest = z.object({
3079
2914
  body: templateTemplateSchema,
3080
2915
  path: z.optional(z.never()),
3081
- query: z.optional(z.never())
2916
+ query: z.optional(z.never()),
3082
2917
  });
3083
2918
  /**
3084
2919
  * The saved template status including the id
@@ -3087,9 +2922,11 @@ export const postTemplateResponse = templateresponseTemplateResponseSchema;
3087
2922
  export const deleteTemplateRequest = z.object({
3088
2923
  body: z.optional(z.never()),
3089
2924
  path: z.object({
3090
- 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}$/)
2925
+ id: z
2926
+ .string()
2927
+ .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}$/),
3091
2928
  }),
3092
- query: z.optional(z.never())
2929
+ query: z.optional(z.never()),
3093
2930
  });
3094
2931
  /**
3095
2932
  * An empty response signifying the template has been deleted
@@ -3098,9 +2935,11 @@ export const deleteTemplateResponse = z.void();
3098
2935
  export const getTemplateRequest = z.object({
3099
2936
  body: z.optional(z.never()),
3100
2937
  path: z.object({
3101
- 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}$/)
2938
+ id: z
2939
+ .string()
2940
+ .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}$/),
3102
2941
  }),
3103
- query: z.optional(z.never())
2942
+ query: z.optional(z.never()),
3104
2943
  });
3105
2944
  /**
3106
2945
  * The template details including the [Edit](#tocs_edit)
@@ -3109,9 +2948,11 @@ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchem
3109
2948
  export const putTemplateRequest = z.object({
3110
2949
  body: templateTemplateSchema,
3111
2950
  path: z.object({
3112
- 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}$/)
2951
+ id: z
2952
+ .string()
2953
+ .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}$/),
3113
2954
  }),
3114
- query: z.optional(z.never())
2955
+ query: z.optional(z.never()),
3115
2956
  });
3116
2957
  /**
3117
2958
  * Update a templates name and [Edit](#tocs_edit)
@@ -3120,7 +2961,7 @@ export const putTemplateResponse = templateresponseTemplateResponseSchema;
3120
2961
  export const postTemplateRenderRequest = z.object({
3121
2962
  body: templaterenderTemplateRenderSchema,
3122
2963
  path: z.optional(z.never()),
3123
- query: z.optional(z.never())
2964
+ query: z.optional(z.never()),
3124
2965
  });
3125
2966
  /**
3126
2967
  * The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
@@ -3129,9 +2970,9 @@ export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
3129
2970
  export const probeRequest = z.object({
3130
2971
  body: z.optional(z.never()),
3131
2972
  path: z.object({
3132
- url: z.string()
2973
+ url: z.string(),
3133
2974
  }),
3134
- query: z.optional(z.never())
2975
+ query: z.optional(z.never()),
3135
2976
  });
3136
2977
  /**
3137
2978
  * FFprobe response formatted as JSON.
@@ -3140,9 +2981,11 @@ export const probeResponse = proberesponseProbeResponseSchema;
3140
2981
  export const deleteAssetRequest = z.object({
3141
2982
  body: z.optional(z.never()),
3142
2983
  path: z.object({
3143
- 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}$/)
2984
+ id: z
2985
+ .string()
2986
+ .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}$/),
3144
2987
  }),
3145
- query: z.optional(z.never())
2988
+ query: z.optional(z.never()),
3146
2989
  });
3147
2990
  /**
3148
2991
  * An empty response signifying the asset has been deleted
@@ -3151,9 +2994,11 @@ export const deleteAssetResponse = z.void();
3151
2994
  export const getAssetRequest = z.object({
3152
2995
  body: z.optional(z.never()),
3153
2996
  path: z.object({
3154
- 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}$/)
2997
+ id: z
2998
+ .string()
2999
+ .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}$/),
3155
3000
  }),
3156
- query: z.optional(z.never())
3001
+ query: z.optional(z.never()),
3157
3002
  });
3158
3003
  /**
3159
3004
  * Get asset by asset id
@@ -3162,9 +3007,11 @@ export const getAssetResponse = assetresponseAssetResponseSchema;
3162
3007
  export const getAssetByRenderIdRequest = z.object({
3163
3008
  body: z.optional(z.never()),
3164
3009
  path: z.object({
3165
- 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}$/)
3010
+ id: z
3011
+ .string()
3012
+ .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}$/),
3166
3013
  }),
3167
- query: z.optional(z.never())
3014
+ query: z.optional(z.never()),
3168
3015
  });
3169
3016
  /**
3170
3017
  * Get one or more assets by render id
@@ -3173,7 +3020,7 @@ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponse
3173
3020
  export const postServeAssetRequest = z.object({
3174
3021
  body: transferTransferSchema,
3175
3022
  path: z.optional(z.never()),
3176
- query: z.optional(z.never())
3023
+ query: z.optional(z.never()),
3177
3024
  });
3178
3025
  /**
3179
3026
  * The transfer request details and status
@@ -3182,7 +3029,7 @@ export const postServeAssetResponse = transferresponseTransferResponseSchema;
3182
3029
  export const getSourcesRequest = z.object({
3183
3030
  body: z.optional(z.never()),
3184
3031
  path: z.optional(z.never()),
3185
- query: z.optional(z.never())
3032
+ query: z.optional(z.never()),
3186
3033
  });
3187
3034
  /**
3188
3035
  * The list of ingested source files stored against a users account
@@ -3191,7 +3038,7 @@ export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
3191
3038
  export const postSourceRequest = z.object({
3192
3039
  body: sourceSourceSchema,
3193
3040
  path: z.optional(z.never()),
3194
- query: z.optional(z.never())
3041
+ query: z.optional(z.never()),
3195
3042
  });
3196
3043
  /**
3197
3044
  * The queued source file details
@@ -3200,9 +3047,11 @@ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema
3200
3047
  export const deleteSourceRequest = z.object({
3201
3048
  body: z.optional(z.never()),
3202
3049
  path: z.object({
3203
- 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}$/)
3050
+ id: z
3051
+ .string()
3052
+ .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}$/),
3204
3053
  }),
3205
- query: z.optional(z.never())
3054
+ query: z.optional(z.never()),
3206
3055
  });
3207
3056
  /**
3208
3057
  * An empty response signifying the ingested source file has been deleted.
@@ -3211,9 +3060,11 @@ export const deleteSourceResponse = z.void();
3211
3060
  export const getSourceRequest = z.object({
3212
3061
  body: z.optional(z.never()),
3213
3062
  path: z.object({
3214
- 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}$/)
3063
+ id: z
3064
+ .string()
3065
+ .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}$/),
3215
3066
  }),
3216
- query: z.optional(z.never())
3067
+ query: z.optional(z.never()),
3217
3068
  });
3218
3069
  /**
3219
3070
  * Get source file details by id
@@ -3222,7 +3073,7 @@ export const getSourceResponse = sourceresponseSourceResponseSchema;
3222
3073
  export const getUploadSignedUrlRequest = z.object({
3223
3074
  body: z.optional(z.never()),
3224
3075
  path: z.optional(z.never()),
3225
- query: z.optional(z.never())
3076
+ query: z.optional(z.never()),
3226
3077
  });
3227
3078
  /**
3228
3079
  * The id and signed URL to upload to.
@@ -3231,7 +3082,7 @@ export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
3231
3082
  export const postGenerateAssetRequest = z.object({
3232
3083
  body: generatedAssetGeneratedAssetSchema,
3233
3084
  path: z.optional(z.never()),
3234
- query: z.optional(z.never())
3085
+ query: z.optional(z.never()),
3235
3086
  });
3236
3087
  /**
3237
3088
  * The generated asset details
@@ -3240,9 +3091,11 @@ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetRes
3240
3091
  export const getGeneratedAssetRequest = z.object({
3241
3092
  body: z.optional(z.never()),
3242
3093
  path: z.object({
3243
- 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}$/)
3094
+ id: z
3095
+ .string()
3096
+ .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}$/),
3244
3097
  }),
3245
- query: z.optional(z.never())
3098
+ query: z.optional(z.never()),
3246
3099
  });
3247
3100
  /**
3248
3101
  * The generated asset details