@shotstack/schemas 1.4.4 → 1.4.6

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