@shotstack/schemas 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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(),
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(),
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(),
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.optional(z.enum(["image-to-video"])),
1045
+ src: z.optional(z.string()),
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(),
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.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,70 @@ 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
+ 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),
1407
+ 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))),
1408
+ style: z.optional(z.enum(["character", "word"])),
1409
+ direction: z.optional(z.enum(["left", "right", "up", "down"])),
1335
1410
  });
1336
1411
 
1337
- export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
1412
+ export const richTextAnimationSchema =
1413
+ richtextpropertiesRichTextAnimationSchema;
1338
1414
 
1339
1415
  /**
1340
1416
  * Background styling properties for the text bounding box.
1341
1417
  */
1342
1418
  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)
1419
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1420
+ 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),
1421
+ 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
1422
  });
1347
1423
 
1348
- export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
1424
+ export const richTextBackgroundSchema =
1425
+ richtextpropertiesRichTextBackgroundSchema;
1349
1426
 
1350
1427
  /**
1351
1428
  * Border styling properties for the text bounding box.
1352
1429
  */
1353
1430
  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)
1431
+ 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),
1432
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1433
+ 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),
1434
+ 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
1435
  });
1359
1436
 
1360
1437
  /**
1361
1438
  * Gradient properties for text fill.
1362
1439
  */
1363
1440
  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({
1441
+ type: z.optional(z.enum(["linear", "radial"])),
1442
+ 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),
1443
+ stops: z
1444
+ .array(
1445
+ z.object({
1367
1446
  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)
1447
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1448
+ }),
1449
+ )
1450
+ .min(2),
1370
1451
  });
1371
1452
 
1372
1453
  export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
@@ -1375,21 +1456,21 @@ export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
1375
1456
  * Padding properties for individual sides of the text bounding box.
1376
1457
  */
1377
1458
  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)
1459
+ 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),
1460
+ 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),
1461
+ 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),
1462
+ 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
1463
  });
1383
1464
 
1384
1465
  /**
1385
1466
  * Text shadow properties.
1386
1467
  */
1387
1468
  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)
1469
+ 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),
1470
+ 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),
1471
+ 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),
1472
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1473
+ 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
1474
  });
1394
1475
 
1395
1476
  export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
@@ -1398,9 +1479,9 @@ export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
1398
1479
  * Text stroke (outline) properties.
1399
1480
  */
1400
1481
  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)
1482
+ 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),
1483
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1484
+ 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
1485
  });
1405
1486
 
1406
1487
  export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
@@ -1409,13 +1490,13 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
1409
1490
  * Font properties for rich text.
1410
1491
  */
1411
1492
  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)
1493
+ family: z.optional(z.string()).default("Open Sans"),
1494
+ 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),
1495
+ weight: z.optional(z.unknown()).default("400"),
1496
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
1497
+ 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),
1498
+ background: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1499
+ stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
1419
1500
  });
1420
1501
 
1421
1502
  export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
@@ -1424,20 +1505,13 @@ export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
1424
1505
  * Text style properties including spacing, line height, and transformations.
1425
1506
  */
1426
1507
  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)
1508
+ 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),
1509
+ 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),
1510
+ textTransform: z.optional(
1511
+ z.enum(["none", "uppercase", "lowercase", "capitalize"]),
1512
+ ),
1513
+ textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
1514
+ gradient: z.optional(richtextpropertiesRichTextGradientSchema),
1441
1515
  });
1442
1516
 
1443
1517
  export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
@@ -1448,19 +1522,18 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
1448
1522
  *
1449
1523
  */
1450
1524
  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)
1525
+ type: z.enum(["rich-text"]),
1526
+ text: z.string().max(5000),
1527
+ font: z.optional(richtextpropertiesRichTextFontSchema),
1528
+ style: z.optional(richtextpropertiesRichTextStyleSchema),
1529
+ shadow: z.optional(richtextpropertiesRichTextShadowSchema),
1530
+ background: z.optional(richtextpropertiesRichTextBackgroundSchema),
1531
+ border: z.optional(richtextpropertiesRichTextBorderSchema),
1532
+ padding: z.optional(
1533
+ 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]),
1534
+ ),
1535
+ align: z.optional(richtextpropertiesRichTextAlignmentSchema),
1536
+ animation: z.optional(richtextpropertiesRichTextAnimationSchema),
1464
1537
  });
1465
1538
 
1466
1539
  export const richTextAssetSchema = richtextassetRichTextAssetSchema;
@@ -1468,30 +1541,35 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
1468
1541
  /**
1469
1542
  * The transfer request attributes inlcudling the user specified ID and status. Returned with [TransferResponseData](#tocs_transferresponsedata).
1470
1543
  */
1471
- export const transferresponseattributesTransferResponseAttributesSchema = z.object({
1544
+ export const transferresponseattributesTransferResponseAttributesSchema =
1545
+ z.object({
1472
1546
  id: z.optional(z.string()),
1473
1547
  owner: z.optional(z.string()),
1474
- status: z.optional(z.enum(['queued', 'failed'])),
1475
- created: z.optional(z.string())
1476
- });
1548
+ status: z.optional(z.enum(["queued", "failed"])),
1549
+ created: z.optional(z.string()),
1550
+ });
1477
1551
 
1478
- export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
1552
+ export const transferResponseAttributesSchema =
1553
+ transferresponseattributesTransferResponseAttributesSchema;
1479
1554
 
1480
1555
  /**
1481
1556
  * The type of resource (an asset) and the transfer attributes. Returned with [TransferResponse](#tocs_transferresponse).
1482
1557
  */
1483
1558
  export const transferresponsedataTransferResponseDataSchema = z.object({
1484
- type: z.optional(z.string()),
1485
- attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
1559
+ type: z.optional(z.string()),
1560
+ attributes: z.optional(
1561
+ transferresponseattributesTransferResponseAttributesSchema,
1562
+ ),
1486
1563
  });
1487
1564
 
1488
- export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
1565
+ export const transferResponseDataSchema =
1566
+ transferresponsedataTransferResponseDataSchema;
1489
1567
 
1490
1568
  /**
1491
1569
  * 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
1570
  */
1493
1571
  export const transferresponseTransferResponseSchema = z.object({
1494
- data: transferresponsedataTransferResponseDataSchema
1572
+ data: transferresponsedataTransferResponseDataSchema,
1495
1573
  });
1496
1574
 
1497
1575
  export const transferResponseSchema = transferresponseTransferResponseSchema;
@@ -1500,9 +1578,9 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
1500
1578
  * The asset URL to fetch and transfer to a destination.
1501
1579
  */
1502
1580
  export const transferTransferSchema = z.object({
1503
- url: z.string(),
1504
- id: z.string(),
1505
- destinations: z.array(destinationsDestinationsSchema)
1581
+ url: z.string(),
1582
+ id: z.string(),
1583
+ destinations: z.array(destinationsDestinationsSchema),
1506
1584
  });
1507
1585
 
1508
1586
  export const transferSchema = transferTransferSchema;
@@ -1513,34 +1591,40 @@ export const transferSchema = transferTransferSchema;
1513
1591
  *
1514
1592
  */
1515
1593
  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
- }))
1594
+ type: z.enum(["shape"]),
1595
+ shape: z.enum(["rectangle", "circle", "line"]),
1596
+ 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())),
1597
+ 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())),
1598
+ fill: z.optional(
1599
+ z.object({
1600
+ color: z.optional(z.string()),
1601
+ 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())),
1602
+ }),
1603
+ ),
1604
+ stroke: z.optional(
1605
+ z.object({
1606
+ color: z.optional(z.string()),
1607
+ 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())),
1608
+ }),
1609
+ ),
1610
+ rectangle: z.optional(
1611
+ z.object({
1612
+ 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()),
1613
+ 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()),
1614
+ 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())),
1615
+ }),
1616
+ ),
1617
+ circle: z.optional(
1618
+ z.object({
1619
+ 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()),
1620
+ }),
1621
+ ),
1622
+ line: z.optional(
1623
+ z.object({
1624
+ 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()),
1625
+ 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()),
1626
+ }),
1627
+ ),
1544
1628
  });
1545
1629
 
1546
1630
  export const shapeAssetSchema = shapeassetShapeAssetSchema;
@@ -1549,8 +1633,8 @@ export const shapeAssetSchema = shapeassetShapeAssetSchema;
1549
1633
  * 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
1634
  */
1551
1635
  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)))
1636
+ 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))),
1637
+ 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
1638
  });
1555
1639
 
1556
1640
  export const sizeSchema = sizeSizeSchema;
@@ -1559,56 +1643,50 @@ export const sizeSchema = sizeSizeSchema;
1559
1643
  * 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
1644
  */
1561
1645
  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())
1646
+ format: z.optional(
1647
+ z.enum([
1648
+ "mp4",
1649
+ "webm",
1650
+ "mov",
1651
+ "avi",
1652
+ "mkv",
1653
+ "ogv",
1654
+ "wmv",
1655
+ "avif",
1656
+ "gif",
1657
+ "mp3",
1658
+ "wav",
1659
+ "jpg",
1660
+ "png",
1661
+ "webp",
1662
+ "tif",
1663
+ ]),
1664
+ ),
1665
+ size: z.optional(sizeSizeSchema),
1666
+ fit: z.optional(z.enum(["cover", "contain", "crop"])),
1667
+ resolution: z.optional(z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1668
+ 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))),
1669
+ fps: z.optional(
1670
+ z.union([
1671
+ z.literal(12),
1672
+ z.literal(15),
1673
+ z.literal(23.976),
1674
+ z.literal(24),
1675
+ z.literal(25),
1676
+ z.literal(29.97),
1677
+ z.literal(30),
1678
+ z.literal(48),
1679
+ z.literal(50),
1680
+ z.literal(59.94),
1681
+ z.literal(60),
1682
+ ]),
1683
+ ),
1684
+ speed: z.optional(speedSpeedSchema),
1685
+ 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))),
1686
+ fixOffset: z.optional(z.boolean()),
1687
+ fixRotation: z.optional(z.boolean()),
1688
+ enhance: z.optional(enhancementsEnhancementsSchema),
1689
+ filename: z.optional(z.string()),
1612
1690
  });
1613
1691
 
1614
1692
  export const renditionSchema = renditionRenditionSchema;
@@ -1617,8 +1695,8 @@ export const renditionSchema = renditionRenditionSchema;
1617
1695
  * The output renditions and transformations that should be generated from the source file.
1618
1696
  */
1619
1697
  export const outputsOutputsSchema = z.object({
1620
- renditions: z.optional(z.array(renditionRenditionSchema)),
1621
- transcription: z.optional(transcriptionTranscriptionSchema)
1698
+ renditions: z.optional(z.array(renditionRenditionSchema)),
1699
+ transcription: z.optional(transcriptionTranscriptionSchema),
1622
1700
  });
1623
1701
 
1624
1702
  export const outputsSchema = outputsOutputsSchema;
@@ -1626,32 +1704,38 @@ export const outputsSchema = outputsOutputsSchema;
1626
1704
  /**
1627
1705
  * The id and attributes of the generated rendition file.
1628
1706
  */
1629
- export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
1707
+ export const renditionresponseattributesRenditionResponseAttributesSchema =
1708
+ z.object({
1630
1709
  id: z.string(),
1631
- status: z.optional(z.enum([
1632
- 'queued',
1633
- 'importing',
1634
- 'ready',
1635
- 'failed',
1636
- 'deleted',
1637
- 'overwritten'
1638
- ])),
1710
+ status: z.optional(
1711
+ z.enum([
1712
+ "queued",
1713
+ "importing",
1714
+ "ready",
1715
+ "failed",
1716
+ "deleted",
1717
+ "overwritten",
1718
+ ]),
1719
+ ),
1639
1720
  url: z.optional(z.string()),
1640
1721
  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
1722
  transformation: z.optional(renditionRenditionSchema),
1642
1723
  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
1724
  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
1725
  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
- });
1726
+ 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())),
1727
+ });
1647
1728
 
1648
- export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
1729
+ export const renditionResponseAttributesSchema =
1730
+ renditionresponseattributesRenditionResponseAttributesSchema;
1649
1731
 
1650
1732
  /**
1651
1733
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1652
1734
  */
1653
1735
  export const outputsresponseOutputsResponseSchema = z.object({
1654
- renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
1736
+ renditions: z.optional(
1737
+ z.array(renditionresponseattributesRenditionResponseAttributesSchema),
1738
+ ),
1655
1739
  });
1656
1740
 
1657
1741
  export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
@@ -1660,54 +1744,59 @@ export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
1660
1744
  * The id and attributes of the source file.
1661
1745
  */
1662
1746
  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())
1747
+ id: z.string(),
1748
+ owner: z.string(),
1749
+ input: z.optional(z.string()),
1750
+ source: z.optional(z.string()),
1751
+ status: z.optional(
1752
+ z.enum([
1753
+ "queued",
1754
+ "importing",
1755
+ "ready",
1756
+ "failed",
1757
+ "deleted",
1758
+ "overwritten",
1759
+ ]),
1760
+ ),
1761
+ outputs: z.optional(outputsresponseOutputsResponseSchema),
1762
+ 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())),
1763
+ 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())),
1764
+ 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())),
1765
+ 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())),
1766
+ created: z.optional(z.string()),
1767
+ updated: z.optional(z.string()),
1682
1768
  });
1683
1769
 
1684
- export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
1770
+ export const sourceResponseAttributesSchema =
1771
+ sourceresponseattributesSourceResponseAttributesSchema;
1685
1772
 
1686
1773
  /**
1687
1774
  * The type of resource (a source), it's id and attributes of the source file.
1688
1775
  */
1689
1776
  export const sourceresponsedataSourceResponseDataSchema = z.object({
1690
- type: z.string(),
1691
- id: z.string(),
1692
- attributes: sourceresponseattributesSourceResponseAttributesSchema
1777
+ type: z.string(),
1778
+ id: z.string(),
1779
+ attributes: sourceresponseattributesSourceResponseAttributesSchema,
1693
1780
  });
1694
1781
 
1695
- export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
1782
+ export const sourceResponseDataSchema =
1783
+ sourceresponsedataSourceResponseDataSchema;
1696
1784
 
1697
1785
  /**
1698
1786
  * A list of all ingested source files fetched or uploaded to a users account.
1699
1787
  */
1700
1788
  export const sourcelistresponseSourceListResponseSchema = z.object({
1701
- data: z.array(sourceresponsedataSourceResponseDataSchema)
1789
+ data: z.array(sourceresponsedataSourceResponseDataSchema),
1702
1790
  });
1703
1791
 
1704
- export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
1792
+ export const sourceListResponseSchema =
1793
+ sourcelistresponseSourceListResponseSchema;
1705
1794
 
1706
1795
  /**
1707
1796
  * 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
1797
  */
1709
1798
  export const sourceresponseSourceResponseSchema = z.object({
1710
- data: sourceresponsedataSourceResponseDataSchema
1799
+ data: sourceresponsedataSourceResponseDataSchema,
1711
1800
  });
1712
1801
 
1713
1802
  export const sourceResponseSchema = sourceresponseSourceResponseSchema;
@@ -1717,10 +1806,10 @@ export const sourceResponseSchema = sourceresponseSourceResponseSchema;
1717
1806
  * 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
1807
  */
1719
1808
  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())
1809
+ url: z.optional(z.string()),
1810
+ outputs: z.optional(outputsOutputsSchema),
1811
+ destinations: z.optional(destinationsDestinationsSchema),
1812
+ callback: z.optional(z.string()),
1724
1813
  });
1725
1814
 
1726
1815
  export const sourceSchema = sourceSourceSchema;
@@ -1729,13 +1818,9 @@ export const sourceSchema = sourceSourceSchema;
1729
1818
  * 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
1819
  */
1731
1820
  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()))
1821
+ src: z.string(),
1822
+ effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1823
+ 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
1824
  });
1740
1825
 
1741
1826
  export const soundtrackSchema = soundtrackSoundtrackSchema;
@@ -1746,8 +1831,8 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
1746
1831
  *
1747
1832
  */
1748
1833
  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}$/)
1834
+ 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)),
1835
+ color: z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1751
1836
  });
1752
1837
 
1753
1838
  export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
@@ -1758,13 +1843,14 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
1758
1843
  *
1759
1844
  */
1760
1845
  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)
1846
+ type: z.enum(["linear"]),
1847
+ 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),
1848
+ stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1849
+ 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
1850
  });
1766
1851
 
1767
- export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
1852
+ export const svgLinearGradientFillSchema =
1853
+ svgpropertiesSvgLinearGradientFillSchema;
1768
1854
 
1769
1855
  /**
1770
1856
  * A radial gradient fill that transitions colors radiating outward from a center point.
@@ -1772,23 +1858,24 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
1772
1858
  *
1773
1859
  */
1774
1860
  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)
1861
+ type: z.enum(["radial"]),
1862
+ stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
1863
+ 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
1864
  });
1779
1865
 
1780
- export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
1866
+ export const svgRadialGradientFillSchema =
1867
+ svgpropertiesSvgRadialGradientFillSchema;
1781
1868
 
1782
1869
  /**
1783
1870
  * Drop shadow properties for SVG shapes. Creates a shadow effect behind the shape.
1784
1871
  *
1785
1872
  */
1786
1873
  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)
1874
+ 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),
1875
+ 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),
1876
+ 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),
1877
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1878
+ 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
1879
  });
1793
1880
 
1794
1881
  export const svgShadowSchema = svgpropertiesSvgShadowSchema;
@@ -1797,9 +1884,12 @@ export const svgShadowSchema = svgpropertiesSvgShadowSchema;
1797
1884
  * A solid color fill for SVG shapes.
1798
1885
  */
1799
1886
  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)
1887
+ type: z.enum(["solid"]),
1888
+ color: z
1889
+ .string()
1890
+ .regex(/^#[A-Fa-f0-9]{6}$/)
1891
+ .default("#000000"),
1892
+ 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
1893
  });
1804
1894
 
1805
1895
  export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
@@ -1823,21 +1913,13 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
1823
1913
  *
1824
1914
  */
1825
1915
  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)
1916
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1917
+ 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),
1918
+ 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),
1919
+ lineCap: z.optional(z.enum(["butt", "round", "square"])),
1920
+ lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
1921
+ 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)))),
1922
+ 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
1923
  });
1842
1924
 
1843
1925
  export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
@@ -1847,12 +1929,12 @@ export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
1847
1929
  *
1848
1930
  */
1849
1931
  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)
1932
+ 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),
1933
+ 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),
1934
+ 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),
1935
+ 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),
1936
+ 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),
1937
+ 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
1938
  });
1857
1939
 
1858
1940
  export const svgTransformSchema = svgpropertiesSvgTransformSchema;
@@ -1863,11 +1945,11 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
1863
1945
  *
1864
1946
  */
1865
1947
  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))
1948
+ type: z.enum(["arrow"]),
1949
+ 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)),
1950
+ 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)),
1951
+ 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)),
1952
+ 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
1953
  });
1872
1954
 
1873
1955
  export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
@@ -1878,8 +1960,8 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
1878
1960
  *
1879
1961
  */
1880
1962
  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))
1963
+ type: z.enum(["circle"]),
1964
+ 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
1965
  });
1884
1966
 
1885
1967
  export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
@@ -1890,10 +1972,10 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
1890
1972
  *
1891
1973
  */
1892
1974
  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))
1975
+ type: z.enum(["cross"]),
1976
+ 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)),
1977
+ 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)),
1978
+ 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
1979
  });
1898
1980
 
1899
1981
  export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
@@ -1904,9 +1986,9 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
1904
1986
  *
1905
1987
  */
1906
1988
  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))
1989
+ type: z.enum(["ellipse"]),
1990
+ 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)),
1991
+ 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
1992
  });
1911
1993
 
1912
1994
  export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
@@ -1917,8 +1999,8 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
1917
1999
  *
1918
2000
  */
1919
2001
  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))
2002
+ type: z.enum(["heart"]),
2003
+ 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
2004
  });
1923
2005
 
1924
2006
  export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
@@ -1929,9 +2011,9 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
1929
2011
  *
1930
2012
  */
1931
2013
  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))
2014
+ type: z.enum(["line"]),
2015
+ 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)),
2016
+ 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
2017
  });
1936
2018
 
1937
2019
  export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
@@ -1954,8 +2036,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
1954
2036
  *
1955
2037
  */
1956
2038
  export const svgshapesSvgPathShapeSchema = z.object({
1957
- type: z.enum(['path']),
1958
- d: z.string().min(1).max(100000)
2039
+ type: z.enum(["path"]),
2040
+ d: z.string().min(1).max(100000),
1959
2041
  });
1960
2042
 
1961
2043
  export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
@@ -1967,9 +2049,9 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
1967
2049
  *
1968
2050
  */
1969
2051
  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))
2052
+ type: z.enum(["polygon"]),
2053
+ 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)),
2054
+ 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
2055
  });
1974
2056
 
1975
2057
  export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
@@ -1980,10 +2062,10 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
1980
2062
  *
1981
2063
  */
1982
2064
  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)
2065
+ type: z.enum(["rectangle"]),
2066
+ 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)),
2067
+ 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)),
2068
+ 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
2069
  });
1988
2070
 
1989
2071
  export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
@@ -1994,9 +2076,9 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
1994
2076
  *
1995
2077
  */
1996
2078
  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))
2079
+ type: z.enum(["ring"]),
2080
+ 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)),
2081
+ 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
2082
  });
2001
2083
 
2002
2084
  export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
@@ -2008,10 +2090,10 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
2008
2090
  *
2009
2091
  */
2010
2092
  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))
2093
+ type: z.enum(["star"]),
2094
+ 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)),
2095
+ 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)),
2096
+ 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
2097
  });
2016
2098
 
2017
2099
  export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
@@ -2132,8 +2214,8 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
2132
2214
  * Configure the id and optional merge fields to render a template by id.
2133
2215
  */
2134
2216
  export const templaterenderTemplateRenderSchema = z.object({
2135
- id: z.string(),
2136
- merge: z.optional(z.array(mergefieldMergeFieldSchema))
2217
+ id: z.string(),
2218
+ merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2137
2219
  });
2138
2220
 
2139
2221
  export const templateRenderSchema = templaterenderTemplateRenderSchema;
@@ -2142,16 +2224,8 @@ export const templateRenderSchema = templaterenderTemplateRenderSchema;
2142
2224
  * Horizontal and vertical alignment properties for text.
2143
2225
  */
2144
2226
  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
- ]))
2227
+ horizontal: z.optional(z.enum(["left", "center", "right"])),
2228
+ vertical: z.optional(z.enum(["top", "center", "bottom"])),
2155
2229
  });
2156
2230
 
2157
2231
  export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
@@ -2160,18 +2234,18 @@ export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
2160
2234
  * Animation properties for text entrance effects.
2161
2235
  */
2162
2236
  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)))
2237
+ preset: z.enum(["typewriter"]),
2238
+ 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
2239
  });
2166
2240
 
2167
2241
  /**
2168
2242
  * Displays a background box behind the text.
2169
2243
  */
2170
2244
  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)))
2245
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2246
+ 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))),
2247
+ 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))),
2248
+ 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
2249
  });
2176
2250
 
2177
2251
  export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
@@ -2180,12 +2254,12 @@ export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
2180
2254
  * Font properties for text.
2181
2255
  */
2182
2256
  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()))
2257
+ family: z.optional(z.string()),
2258
+ color: z.optional(z.string()),
2259
+ 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())),
2260
+ 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())),
2261
+ 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())),
2262
+ 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
2263
  });
2190
2264
 
2191
2265
  export const textFontSchema = textpropertiesTextFontSchema;
@@ -2194,8 +2268,8 @@ export const textFontSchema = textpropertiesTextFontSchema;
2194
2268
  * Text stroke (outline) properties.
2195
2269
  */
2196
2270
  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}$/))
2271
+ 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))),
2272
+ color: z.optional(z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2199
2273
  });
2200
2274
 
2201
2275
  /**
@@ -2204,16 +2278,16 @@ export const textpropertiesTextStrokeSchema = z.object({
2204
2278
  *
2205
2279
  */
2206
2280
  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())
2281
+ type: z.enum(["text"]),
2282
+ text: z.string(),
2283
+ 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())),
2284
+ 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())),
2285
+ font: z.optional(textpropertiesTextFontSchema),
2286
+ background: z.optional(textpropertiesTextBackgroundSchema),
2287
+ alignment: z.optional(textpropertiesTextAlignmentSchema),
2288
+ stroke: z.optional(textpropertiesTextStrokeSchema),
2289
+ animation: z.optional(textpropertiesTextAnimationSchema),
2290
+ ellipsis: z.optional(z.string()),
2217
2291
  });
2218
2292
 
2219
2293
  export const textAssetSchema = textassetTextAssetSchema;
@@ -2222,11 +2296,11 @@ export const textAssetSchema = textassetTextAssetSchema;
2222
2296
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
2223
2297
  */
2224
2298
  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)
2299
+ type: z.enum(["text-to-image"]),
2300
+ prompt: z.string(),
2301
+ 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())),
2302
+ 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())),
2303
+ crop: z.optional(cropCropSchema),
2230
2304
  });
2231
2305
 
2232
2306
  export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
@@ -2235,8 +2309,8 @@ export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
2235
2309
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2236
2310
  */
2237
2311
  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))
2312
+ 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()),
2313
+ 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
2314
  });
2241
2315
 
2242
2316
  export const thumbnailSchema = thumbnailThumbnailSchema;
@@ -2245,64 +2319,35 @@ export const thumbnailSchema = thumbnailThumbnailSchema;
2245
2319
  * The output format, render range and type of media to generate.
2246
2320
  */
2247
2321
  export const outputOutputSchema = z.object({
2248
- format: z.enum([
2249
- 'mp4',
2250
- 'gif',
2251
- 'mp3',
2252
- 'jpg',
2253
- 'png',
2254
- 'bmp'
2322
+ format: z.enum(["mp4", "gif", "mp3", "jpg", "png", "bmp"]),
2323
+ resolution: z.optional(
2324
+ z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"]),
2325
+ ),
2326
+ aspectRatio: z.optional(z.enum(["16:9", "9:16", "1:1", "4:5", "4:3"])),
2327
+ size: z.optional(sizeSizeSchema),
2328
+ fps: z.optional(
2329
+ z.union([
2330
+ z.literal(12),
2331
+ z.literal(15),
2332
+ z.literal(23.976),
2333
+ z.literal(24),
2334
+ z.literal(25),
2335
+ z.literal(29.97),
2336
+ z.literal(30),
2337
+ z.literal(48),
2338
+ z.literal(50),
2339
+ z.literal(59.94),
2340
+ z.literal(60),
2255
2341
  ]),
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))
2342
+ ),
2343
+ scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
2344
+ quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
2345
+ repeat: z.optional(z.boolean()),
2346
+ mute: z.optional(z.boolean()),
2347
+ range: z.optional(rangeRangeSchema),
2348
+ poster: z.optional(posterPosterSchema),
2349
+ thumbnail: z.optional(thumbnailThumbnailSchema),
2350
+ destinations: z.optional(z.array(destinationsDestinationsSchema)),
2306
2351
  });
2307
2352
 
2308
2353
  export const outputSchema = outputOutputSchema;
@@ -2311,134 +2356,138 @@ export const outputSchema = outputOutputSchema;
2311
2356
  * In and out transitions for a clip - i.e. fade in and fade out
2312
2357
  */
2313
2358
  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
- ]))
2359
+ in: z.optional(
2360
+ z.enum([
2361
+ "none",
2362
+ "fade",
2363
+ "fadeSlow",
2364
+ "fadeFast",
2365
+ "reveal",
2366
+ "revealSlow",
2367
+ "revealFast",
2368
+ "wipeLeft",
2369
+ "wipeLeftSlow",
2370
+ "wipeLeftFast",
2371
+ "wipeRight",
2372
+ "wipeRightSlow",
2373
+ "wipeRightFast",
2374
+ "slideLeft",
2375
+ "slideLeftSlow",
2376
+ "slideLeftFast",
2377
+ "slideRight",
2378
+ "slideRightSlow",
2379
+ "slideRightFast",
2380
+ "slideUp",
2381
+ "slideUpSlow",
2382
+ "slideUpFast",
2383
+ "slideDown",
2384
+ "slideDownSlow",
2385
+ "slideDownFast",
2386
+ "carouselLeft",
2387
+ "carouselLeftSlow",
2388
+ "carouselLeftFast",
2389
+ "carouselRight",
2390
+ "carouselRightSlow",
2391
+ "carouselRightFast",
2392
+ "carouselUp",
2393
+ "carouselUpSlow",
2394
+ "carouselUpFast",
2395
+ "carouselDown",
2396
+ "carouselDownSlow",
2397
+ "carouselDownFast",
2398
+ "shuffleTopRight",
2399
+ "shuffleTopRightSlow",
2400
+ "shuffleTopRightFast",
2401
+ "shuffleRightTop",
2402
+ "shuffleRightTopSlow",
2403
+ "shuffleRightTopFast",
2404
+ "shuffleRightBottom",
2405
+ "shuffleRightBottomSlow",
2406
+ "shuffleRightBottomFast",
2407
+ "shuffleBottomRight",
2408
+ "shuffleBottomRightSlow",
2409
+ "shuffleBottomRightFast",
2410
+ "shuffleBottomLeft",
2411
+ "shuffleBottomLeftSlow",
2412
+ "shuffleBottomLeftFast",
2413
+ "shuffleLeftBottom",
2414
+ "shuffleLeftBottomSlow",
2415
+ "shuffleLeftBottomFast",
2416
+ "shuffleLeftTop",
2417
+ "shuffleLeftTopSlow",
2418
+ "shuffleLeftTopFast",
2419
+ "shuffleTopLeft",
2420
+ "shuffleTopLeftSlow",
2421
+ "shuffleTopLeftFast",
2422
+ "zoom",
2423
+ ]),
2424
+ ),
2425
+ out: z.optional(
2426
+ z.enum([
2427
+ "none",
2428
+ "fade",
2429
+ "fadeSlow",
2430
+ "fadeFast",
2431
+ "reveal",
2432
+ "revealSlow",
2433
+ "revealFast",
2434
+ "wipeLeft",
2435
+ "wipeLeftSlow",
2436
+ "wipeLeftFast",
2437
+ "wipeRight",
2438
+ "wipeRightSlow",
2439
+ "wipeRightFast",
2440
+ "slideLeft",
2441
+ "slideLeftSlow",
2442
+ "slideLeftFast",
2443
+ "slideRight",
2444
+ "slideRightSlow",
2445
+ "slideRightFast",
2446
+ "slideUp",
2447
+ "slideUpSlow",
2448
+ "slideUpFast",
2449
+ "slideDown",
2450
+ "slideDownSlow",
2451
+ "slideDownFast",
2452
+ "carouselLeft",
2453
+ "carouselLeftSlow",
2454
+ "carouselLeftFast",
2455
+ "carouselRight",
2456
+ "carouselRightSlow",
2457
+ "carouselRightFast",
2458
+ "carouselUp",
2459
+ "carouselUpSlow",
2460
+ "carouselUpFast",
2461
+ "carouselDown",
2462
+ "carouselDownSlow",
2463
+ "carouselDownFast",
2464
+ "shuffleTopRight",
2465
+ "shuffleTopRightSlow",
2466
+ "shuffleTopRightFast",
2467
+ "shuffleRightTop",
2468
+ "shuffleRightTopSlow",
2469
+ "shuffleRightTopFast",
2470
+ "shuffleRightBottom",
2471
+ "shuffleRightBottomSlow",
2472
+ "shuffleRightBottomFast",
2473
+ "shuffleBottomRight",
2474
+ "shuffleBottomRightSlow",
2475
+ "shuffleBottomRightFast",
2476
+ "shuffleBottomLeft",
2477
+ "shuffleBottomLeftSlow",
2478
+ "shuffleBottomLeftFast",
2479
+ "shuffleLeftBottom",
2480
+ "shuffleLeftBottomSlow",
2481
+ "shuffleLeftBottomFast",
2482
+ "shuffleLeftTop",
2483
+ "shuffleLeftTopSlow",
2484
+ "shuffleLeftTopFast",
2485
+ "shuffleTopLeft",
2486
+ "shuffleTopLeftSlow",
2487
+ "shuffleTopLeftFast",
2488
+ "zoom",
2489
+ ]),
2490
+ ),
2442
2491
  });
2443
2492
 
2444
2493
  export const transitionSchema = transitionTransitionSchema;
@@ -2454,45 +2503,43 @@ export const transitionSchema = transitionTransitionSchema;
2454
2503
  * </ul>
2455
2504
  */
2456
2505
  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
- ]))
2506
+ from: z.optional(z.unknown()),
2507
+ to: z.optional(z.unknown()),
2508
+ 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())),
2509
+ 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())),
2510
+ interpolation: z.optional(z.enum(["linear", "bezier", "constant"])),
2511
+ easing: z.optional(
2512
+ z.enum([
2513
+ "ease",
2514
+ "easeIn",
2515
+ "easeOut",
2516
+ "easeInOut",
2517
+ "easeInQuad",
2518
+ "easeInCubic",
2519
+ "easeInQuart",
2520
+ "easeInQuint",
2521
+ "easeInSine",
2522
+ "easeInExpo",
2523
+ "easeInCirc",
2524
+ "easeInBack",
2525
+ "easeOutQuad",
2526
+ "easeOutCubic",
2527
+ "easeOutQuart",
2528
+ "easeOutQuint",
2529
+ "easeOutSine",
2530
+ "easeOutExpo",
2531
+ "easeOutCirc",
2532
+ "easeOutBack",
2533
+ "easeInOutQuad",
2534
+ "easeInOutCubic",
2535
+ "easeInOutQuart",
2536
+ "easeInOutQuint",
2537
+ "easeInOutSine",
2538
+ "easeInOutExpo",
2539
+ "easeInOutCirc",
2540
+ "easeInOutBack",
2541
+ ]),
2542
+ ),
2496
2543
  });
2497
2544
 
2498
2545
  export const tweenSchema = tweenTweenSchema;
@@ -2501,20 +2548,14 @@ export const tweenSchema = tweenTweenSchema;
2501
2548
  * 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
2549
  */
2503
2550
  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
- ]))
2551
+ type: z.enum(["audio"]),
2552
+ src: z.string(),
2553
+ 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())),
2554
+ volume: z.optional(
2555
+ 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)]),
2556
+ ),
2557
+ 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))),
2558
+ effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2518
2559
  });
2519
2560
 
2520
2561
  export const audioAssetSchema = audioassetAudioAssetSchema;
@@ -2523,14 +2564,12 @@ export const audioAssetSchema = audioassetAudioAssetSchema;
2523
2564
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2524
2565
  */
2525
2566
  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
- ]))
2567
+ x: z.optional(
2568
+ 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)]),
2569
+ ),
2570
+ y: z.optional(
2571
+ 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)]),
2572
+ ),
2534
2573
  });
2535
2574
 
2536
2575
  export const offsetSchema = offsetOffsetSchema;
@@ -2539,29 +2578,28 @@ export const offsetSchema = offsetOffsetSchema;
2539
2578
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2540
2579
  */
2541
2580
  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
- ]))
2581
+ angle: z.optional(
2582
+ 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)]),
2583
+ ),
2546
2584
  });
2547
2585
 
2548
- export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
2586
+ export const rotateTransformationSchema =
2587
+ rotatetransformationRotateTransformationSchema;
2549
2588
 
2550
2589
  /**
2551
2590
  * 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
2591
  */
2553
2592
  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
- ]))
2593
+ x: z.optional(
2594
+ 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)]),
2595
+ ),
2596
+ y: z.optional(
2597
+ 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)]),
2598
+ ),
2562
2599
  });
2563
2600
 
2564
- export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
2601
+ export const skewTransformationSchema =
2602
+ skewtransformationSkewTransformationSchema;
2565
2603
 
2566
2604
  /**
2567
2605
  * **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
@@ -2572,43 +2610,49 @@ export const skewTransformationSchema = skewtransformationSkewTransformationSche
2572
2610
  * @deprecated
2573
2611
  */
2574
2612
  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)
2613
+ type: z.enum(["title"]),
2614
+ text: z.string(),
2615
+ style: z.optional(
2616
+ z.enum([
2617
+ "minimal",
2618
+ "blockbuster",
2619
+ "vogue",
2620
+ "sketchy",
2621
+ "skinny",
2622
+ "chunk",
2623
+ "chunkLight",
2624
+ "marker",
2625
+ "future",
2626
+ "subtitle",
2627
+ ]),
2628
+ ),
2629
+ color: z.optional(z.string()),
2630
+ size: z.optional(
2631
+ z.enum([
2632
+ "xx-small",
2633
+ "x-small",
2634
+ "small",
2635
+ "medium",
2636
+ "large",
2637
+ "x-large",
2638
+ "xx-large",
2639
+ ]),
2640
+ ),
2641
+ background: z.optional(z.string()),
2642
+ position: z.optional(
2643
+ z.enum([
2644
+ "top",
2645
+ "topRight",
2646
+ "right",
2647
+ "bottomRight",
2648
+ "bottom",
2649
+ "bottomLeft",
2650
+ "left",
2651
+ "topLeft",
2652
+ "center",
2653
+ ]),
2654
+ ),
2655
+ offset: z.optional(offsetOffsetSchema),
2612
2656
  });
2613
2657
 
2614
2658
  export const titleAssetSchema = titleassetTitleAssetSchema;
@@ -2617,9 +2661,9 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
2617
2661
  * 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
2662
  */
2619
2663
  export const transformationTransformationSchema = z.object({
2620
- rotate: z.optional(rotatetransformationRotateTransformationSchema),
2621
- skew: z.optional(skewtransformationSkewTransformationSchema),
2622
- flip: z.optional(fliptransformationFlipTransformationSchema)
2664
+ rotate: z.optional(rotatetransformationRotateTransformationSchema),
2665
+ skew: z.optional(skewtransformationSkewTransformationSchema),
2666
+ flip: z.optional(fliptransformationFlipTransformationSchema),
2623
2667
  });
2624
2668
 
2625
2669
  export const transformationSchema = transformationTransformationSchema;
@@ -2628,23 +2672,19 @@ export const transformationSchema = transformationTransformationSchema;
2628
2672
  * 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
2673
  */
2630
2674
  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)
2675
+ type: z.enum(["video"]),
2676
+ src: z.string(),
2677
+ transcode: z.optional(z.boolean()),
2678
+ 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())),
2679
+ volume: z.optional(
2680
+ 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)]),
2681
+ ),
2682
+ volumeEffect: z.optional(
2683
+ z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"]),
2684
+ ),
2685
+ 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))),
2686
+ crop: z.optional(cropCropSchema),
2687
+ chromaKey: z.optional(chromakeyChromaKeySchema),
2648
2688
  });
2649
2689
 
2650
2690
  export const videoAssetSchema = videoassetVideoAssetSchema;
@@ -2674,77 +2714,72 @@ export const assetSchema = assetAssetSchema;
2674
2714
  * 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
2715
  */
2676
2716
  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_-]+)$/)
2717
+ asset: assetAssetSchema,
2718
+ start: z.union([
2719
+ z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()),
2720
+ z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
2721
+ ]),
2722
+ length: z.union([
2723
+ z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), z.number()),
2724
+ z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
2725
+ ]),
2726
+ fit: z.optional(z.enum(["cover", "contain", "crop", "none"])),
2727
+ 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)])),
2728
+ 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))),
2729
+ 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))),
2730
+ position: z.optional(
2731
+ z.enum([
2732
+ "top",
2733
+ "topRight",
2734
+ "right",
2735
+ "bottomRight",
2736
+ "bottom",
2737
+ "bottomLeft",
2738
+ "left",
2739
+ "topLeft",
2740
+ "center",
2681
2741
  ]),
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_-]+)$/)
2742
+ ),
2743
+ offset: z.optional(offsetOffsetSchema),
2744
+ transition: z.optional(transitionTransitionSchema),
2745
+ effect: z.optional(
2746
+ z.enum([
2747
+ "zoomIn",
2748
+ "zoomInSlow",
2749
+ "zoomInFast",
2750
+ "zoomOut",
2751
+ "zoomOutSlow",
2752
+ "zoomOutFast",
2753
+ "slideLeft",
2754
+ "slideLeftSlow",
2755
+ "slideLeftFast",
2756
+ "slideRight",
2757
+ "slideRightSlow",
2758
+ "slideRightFast",
2759
+ "slideUp",
2760
+ "slideUpSlow",
2761
+ "slideUpFast",
2762
+ "slideDown",
2763
+ "slideDownSlow",
2764
+ "slideDownFast",
2685
2765
  ]),
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_-]+$/))
2766
+ ),
2767
+ filter: z.optional(
2768
+ z.enum([
2769
+ "none",
2770
+ "blur",
2771
+ "boost",
2772
+ "contrast",
2773
+ "darken",
2774
+ "greyscale",
2775
+ "lighten",
2776
+ "muted",
2777
+ "negative",
2778
+ ]),
2779
+ ),
2780
+ 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)])),
2781
+ transform: z.optional(transformationTransformationSchema),
2782
+ alias: z.optional(z.string().regex(/^[A-Za-z0-9_-]+$/)),
2748
2783
  });
2749
2784
 
2750
2785
  export const clipSchema = clipClipSchema;
@@ -2753,7 +2788,7 @@ export const clipSchema = clipClipSchema;
2753
2788
  * 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
2789
  */
2755
2790
  export const trackTrackSchema = z.object({
2756
- clips: z.array(clipClipSchema)
2791
+ clips: z.array(clipClipSchema),
2757
2792
  });
2758
2793
 
2759
2794
  export const trackSchema = trackTrackSchema;
@@ -2762,11 +2797,11 @@ export const trackSchema = trackTrackSchema;
2762
2797
  * 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
2798
  */
2764
2799
  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())
2800
+ soundtrack: z.optional(soundtrackSoundtrackSchema),
2801
+ background: z.optional(z.string()),
2802
+ fonts: z.optional(z.array(fontFontSchema)),
2803
+ tracks: z.array(trackTrackSchema),
2804
+ cache: z.optional(z.boolean()),
2770
2805
  });
2771
2806
 
2772
2807
  export const timelineSchema = timelineTimelineSchema;
@@ -2775,11 +2810,11 @@ export const timelineSchema = timelineTimelineSchema;
2775
2810
  * 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
2811
  */
2777
2812
  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']))
2813
+ timeline: timelineTimelineSchema,
2814
+ output: outputOutputSchema,
2815
+ merge: z.optional(z.array(mergefieldMergeFieldSchema)),
2816
+ callback: z.optional(z.string()),
2817
+ disk: z.optional(z.enum(["local", "mount"])),
2783
2818
  });
2784
2819
 
2785
2820
  export const editSchema = editEditSchema;
@@ -2788,44 +2823,39 @@ export const editSchema = editEditSchema;
2788
2823
  * The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL.
2789
2824
  */
2790
2825
  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;
2826
+ id: z.string(),
2827
+ owner: z.string(),
2828
+ plan: z.optional(z.string()),
2829
+ status: z.enum([
2830
+ "queued",
2831
+ "fetching",
2832
+ "preprocessing",
2833
+ "rendering",
2834
+ "saving",
2835
+ "done",
2836
+ "failed",
2837
+ ]),
2838
+ error: z.optional(z.string()),
2839
+ 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())),
2840
+ 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())),
2841
+ url: z.optional(z.string()),
2842
+ poster: z.optional(z.union([z.string(), z.null()])),
2843
+ thumbnail: z.optional(z.union([z.string(), z.null()])),
2844
+ data: z.optional(editEditSchema),
2845
+ created: z.optional(z.string()),
2846
+ updated: z.optional(z.string()),
2847
+ });
2848
+
2849
+ export const renderResponseDataSchema =
2850
+ renderresponsedataRenderResponseDataSchema;
2821
2851
 
2822
2852
  /**
2823
2853
  * 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
2854
  */
2825
2855
  export const renderresponseRenderResponseSchema = z.object({
2826
- success: z.boolean(),
2827
- message: z.string(),
2828
- response: renderresponsedataRenderResponseDataSchema
2856
+ success: z.boolean(),
2857
+ message: z.string(),
2858
+ response: renderresponsedataRenderResponseDataSchema,
2829
2859
  });
2830
2860
 
2831
2861
  export const renderResponseSchema = renderresponseRenderResponseSchema;
@@ -2834,39 +2864,41 @@ export const renderResponseSchema = renderresponseRenderResponseSchema;
2834
2864
  * The response data returned with the [TemplateDataResponse](#tocs_templatedataresponse).
2835
2865
  */
2836
2866
  export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
2837
- id: z.string(),
2838
- name: z.string(),
2839
- owner: z.string(),
2840
- template: editEditSchema
2867
+ id: z.string(),
2868
+ name: z.string(),
2869
+ owner: z.string(),
2870
+ template: editEditSchema,
2841
2871
  });
2842
2872
 
2843
- export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
2873
+ export const templateDataResponseDataSchema =
2874
+ templatedataresponsedataTemplateDataResponseDataSchema;
2844
2875
 
2845
2876
  /**
2846
2877
  * The template data including the template name and [Edit](#tocs_edit).
2847
2878
  */
2848
2879
  export const templatedataresponseTemplateDataResponseSchema = z.object({
2849
- success: z.boolean(),
2850
- message: z.string(),
2851
- response: templatedataresponsedataTemplateDataResponseDataSchema
2880
+ success: z.boolean(),
2881
+ message: z.string(),
2882
+ response: templatedataresponsedataTemplateDataResponseDataSchema,
2852
2883
  });
2853
2884
 
2854
- export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
2885
+ export const templateDataResponseSchema =
2886
+ templatedataresponseTemplateDataResponseSchema;
2855
2887
 
2856
2888
  /**
2857
2889
  * A template is a saved [Edit](#tocs_edit) than can be loaded and re-used.
2858
2890
  */
2859
2891
  export const templateTemplateSchema = z.object({
2860
- name: z.string(),
2861
- template: z.optional(editEditSchema)
2892
+ name: z.string(),
2893
+ template: z.optional(editEditSchema),
2862
2894
  });
2863
2895
 
2864
2896
  export const templateSchema = templateTemplateSchema;
2865
2897
 
2866
2898
  export const postRenderRequest = z.object({
2867
- body: editEditSchema,
2868
- path: z.optional(z.never()),
2869
- query: z.optional(z.never())
2899
+ body: editEditSchema,
2900
+ path: z.optional(z.never()),
2901
+ query: z.optional(z.never()),
2870
2902
  });
2871
2903
 
2872
2904
  /**
@@ -2875,14 +2907,20 @@ export const postRenderRequest = z.object({
2875
2907
  export const postRenderResponse = queuedresponseQueuedResponseSchema;
2876
2908
 
2877
2909
  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}$/)
2910
+ body: z.optional(z.never()),
2911
+ path: z.object({
2912
+ id: z
2913
+ .string()
2914
+ .regex(
2915
+ /^[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}$/,
2916
+ ),
2917
+ }),
2918
+ query: z.optional(
2919
+ z.object({
2920
+ data: z.optional(z.boolean()),
2921
+ merged: z.optional(z.boolean()),
2881
2922
  }),
2882
- query: z.optional(z.object({
2883
- data: z.optional(z.boolean()),
2884
- merged: z.optional(z.boolean())
2885
- }))
2923
+ ),
2886
2924
  });
2887
2925
 
2888
2926
  /**
@@ -2891,20 +2929,21 @@ export const getRenderRequest = z.object({
2891
2929
  export const getRenderResponse = renderresponseRenderResponseSchema;
2892
2930
 
2893
2931
  export const getTemplatesRequest = z.object({
2894
- body: z.optional(z.never()),
2895
- path: z.optional(z.never()),
2896
- query: z.optional(z.never())
2932
+ body: z.optional(z.never()),
2933
+ path: z.optional(z.never()),
2934
+ query: z.optional(z.never()),
2897
2935
  });
2898
2936
 
2899
2937
  /**
2900
2938
  * The list of templates stored against a users account
2901
2939
  */
2902
- export const getTemplatesResponse = templatelistresponseTemplateListResponseSchema;
2940
+ export const getTemplatesResponse =
2941
+ templatelistresponseTemplateListResponseSchema;
2903
2942
 
2904
2943
  export const postTemplateRequest = z.object({
2905
- body: templateTemplateSchema,
2906
- path: z.optional(z.never()),
2907
- query: z.optional(z.never())
2944
+ body: templateTemplateSchema,
2945
+ path: z.optional(z.never()),
2946
+ query: z.optional(z.never()),
2908
2947
  });
2909
2948
 
2910
2949
  /**
@@ -2913,11 +2952,15 @@ export const postTemplateRequest = z.object({
2913
2952
  export const postTemplateResponse = templateresponseTemplateResponseSchema;
2914
2953
 
2915
2954
  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())
2955
+ body: z.optional(z.never()),
2956
+ path: z.object({
2957
+ id: z
2958
+ .string()
2959
+ .regex(
2960
+ /^[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}$/,
2961
+ ),
2962
+ }),
2963
+ query: z.optional(z.never()),
2921
2964
  });
2922
2965
 
2923
2966
  /**
@@ -2926,24 +2969,33 @@ export const deleteTemplateRequest = z.object({
2926
2969
  export const deleteTemplateResponse = z.void();
2927
2970
 
2928
2971
  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())
2972
+ body: z.optional(z.never()),
2973
+ path: z.object({
2974
+ id: z
2975
+ .string()
2976
+ .regex(
2977
+ /^[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}$/,
2978
+ ),
2979
+ }),
2980
+ query: z.optional(z.never()),
2934
2981
  });
2935
2982
 
2936
2983
  /**
2937
2984
  * The template details including the [Edit](#tocs_edit)
2938
2985
  */
2939
- export const getTemplateResponse = templatedataresponseTemplateDataResponseSchema;
2986
+ export const getTemplateResponse =
2987
+ templatedataresponseTemplateDataResponseSchema;
2940
2988
 
2941
2989
  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())
2990
+ body: templateTemplateSchema,
2991
+ path: z.object({
2992
+ id: z
2993
+ .string()
2994
+ .regex(
2995
+ /^[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}$/,
2996
+ ),
2997
+ }),
2998
+ query: z.optional(z.never()),
2947
2999
  });
2948
3000
 
2949
3001
  /**
@@ -2952,9 +3004,9 @@ export const putTemplateRequest = z.object({
2952
3004
  export const putTemplateResponse = templateresponseTemplateResponseSchema;
2953
3005
 
2954
3006
  export const postTemplateRenderRequest = z.object({
2955
- body: templaterenderTemplateRenderSchema,
2956
- path: z.optional(z.never()),
2957
- query: z.optional(z.never())
3007
+ body: templaterenderTemplateRenderSchema,
3008
+ path: z.optional(z.never()),
3009
+ query: z.optional(z.never()),
2958
3010
  });
2959
3011
 
2960
3012
  /**
@@ -2963,11 +3015,11 @@ export const postTemplateRenderRequest = z.object({
2963
3015
  export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
2964
3016
 
2965
3017
  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())
3018
+ body: z.optional(z.never()),
3019
+ path: z.object({
3020
+ url: z.string(),
3021
+ }),
3022
+ query: z.optional(z.never()),
2971
3023
  });
2972
3024
 
2973
3025
  /**
@@ -2976,11 +3028,15 @@ export const probeRequest = z.object({
2976
3028
  export const probeResponse = proberesponseProbeResponseSchema;
2977
3029
 
2978
3030
  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())
3031
+ body: z.optional(z.never()),
3032
+ path: z.object({
3033
+ id: z
3034
+ .string()
3035
+ .regex(
3036
+ /^[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}$/,
3037
+ ),
3038
+ }),
3039
+ query: z.optional(z.never()),
2984
3040
  });
2985
3041
 
2986
3042
  /**
@@ -2989,11 +3045,15 @@ export const deleteAssetRequest = z.object({
2989
3045
  export const deleteAssetResponse = z.void();
2990
3046
 
2991
3047
  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())
3048
+ body: z.optional(z.never()),
3049
+ path: z.object({
3050
+ id: z
3051
+ .string()
3052
+ .regex(
3053
+ /^[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}$/,
3054
+ ),
3055
+ }),
3056
+ query: z.optional(z.never()),
2997
3057
  });
2998
3058
 
2999
3059
  /**
@@ -3002,22 +3062,27 @@ export const getAssetRequest = z.object({
3002
3062
  export const getAssetResponse = assetresponseAssetResponseSchema;
3003
3063
 
3004
3064
  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())
3065
+ body: z.optional(z.never()),
3066
+ path: z.object({
3067
+ id: z
3068
+ .string()
3069
+ .regex(
3070
+ /^[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}$/,
3071
+ ),
3072
+ }),
3073
+ query: z.optional(z.never()),
3010
3074
  });
3011
3075
 
3012
3076
  /**
3013
3077
  * Get one or more assets by render id
3014
3078
  */
3015
- export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponseSchema;
3079
+ export const getAssetByRenderIdResponse =
3080
+ assetrenderresponseAssetRenderResponseSchema;
3016
3081
 
3017
3082
  export const postServeAssetRequest = z.object({
3018
- body: transferTransferSchema,
3019
- path: z.optional(z.never()),
3020
- query: z.optional(z.never())
3083
+ body: transferTransferSchema,
3084
+ path: z.optional(z.never()),
3085
+ query: z.optional(z.never()),
3021
3086
  });
3022
3087
 
3023
3088
  /**
@@ -3026,9 +3091,9 @@ export const postServeAssetRequest = z.object({
3026
3091
  export const postServeAssetResponse = transferresponseTransferResponseSchema;
3027
3092
 
3028
3093
  export const getSourcesRequest = z.object({
3029
- body: z.optional(z.never()),
3030
- path: z.optional(z.never()),
3031
- query: z.optional(z.never())
3094
+ body: z.optional(z.never()),
3095
+ path: z.optional(z.never()),
3096
+ query: z.optional(z.never()),
3032
3097
  });
3033
3098
 
3034
3099
  /**
@@ -3037,22 +3102,27 @@ export const getSourcesRequest = z.object({
3037
3102
  export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
3038
3103
 
3039
3104
  export const postSourceRequest = z.object({
3040
- body: sourceSourceSchema,
3041
- path: z.optional(z.never()),
3042
- query: z.optional(z.never())
3105
+ body: sourceSourceSchema,
3106
+ path: z.optional(z.never()),
3107
+ query: z.optional(z.never()),
3043
3108
  });
3044
3109
 
3045
3110
  /**
3046
3111
  * The queued source file details
3047
3112
  */
3048
- export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema;
3113
+ export const postSourceResponse =
3114
+ queuedsourceresponseQueuedSourceResponseSchema;
3049
3115
 
3050
3116
  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())
3117
+ body: z.optional(z.never()),
3118
+ path: z.object({
3119
+ id: z
3120
+ .string()
3121
+ .regex(
3122
+ /^[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}$/,
3123
+ ),
3124
+ }),
3125
+ query: z.optional(z.never()),
3056
3126
  });
3057
3127
 
3058
3128
  /**
@@ -3061,11 +3131,15 @@ export const deleteSourceRequest = z.object({
3061
3131
  export const deleteSourceResponse = z.void();
3062
3132
 
3063
3133
  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())
3134
+ body: z.optional(z.never()),
3135
+ path: z.object({
3136
+ id: z
3137
+ .string()
3138
+ .regex(
3139
+ /^[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}$/,
3140
+ ),
3141
+ }),
3142
+ query: z.optional(z.never()),
3069
3143
  });
3070
3144
 
3071
3145
  /**
@@ -3074,9 +3148,9 @@ export const getSourceRequest = z.object({
3074
3148
  export const getSourceResponse = sourceresponseSourceResponseSchema;
3075
3149
 
3076
3150
  export const getUploadSignedUrlRequest = z.object({
3077
- body: z.optional(z.never()),
3078
- path: z.optional(z.never()),
3079
- query: z.optional(z.never())
3151
+ body: z.optional(z.never()),
3152
+ path: z.optional(z.never()),
3153
+ query: z.optional(z.never()),
3080
3154
  });
3081
3155
 
3082
3156
  /**
@@ -3085,25 +3159,31 @@ export const getUploadSignedUrlRequest = z.object({
3085
3159
  export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
3086
3160
 
3087
3161
  export const postGenerateAssetRequest = z.object({
3088
- body: generatedAssetGeneratedAssetSchema,
3089
- path: z.optional(z.never()),
3090
- query: z.optional(z.never())
3162
+ body: generatedAssetGeneratedAssetSchema,
3163
+ path: z.optional(z.never()),
3164
+ query: z.optional(z.never()),
3091
3165
  });
3092
3166
 
3093
3167
  /**
3094
3168
  * The generated asset details
3095
3169
  */
3096
- export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetResponseSchema;
3170
+ export const postGenerateAssetResponse =
3171
+ generatedAssetResponseGeneratedAssetResponseSchema;
3097
3172
 
3098
3173
  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())
3174
+ body: z.optional(z.never()),
3175
+ path: z.object({
3176
+ id: z
3177
+ .string()
3178
+ .regex(
3179
+ /^[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}$/,
3180
+ ),
3181
+ }),
3182
+ query: z.optional(z.never()),
3104
3183
  });
3105
3184
 
3106
3185
  /**
3107
3186
  * The generated asset details
3108
3187
  */
3109
- export const getGeneratedAssetResponse = generatedAssetResponseGeneratedAssetResponseSchema;
3188
+ export const getGeneratedAssetResponse =
3189
+ generatedAssetResponseGeneratedAssetResponseSchema;