@shotstack/schemas 1.8.6 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -89
- package/dist/api.bundled.json +76 -75
- package/dist/json-schema/asset.json +137 -100
- package/dist/json-schema/clip.json +137 -100
- package/dist/json-schema/edit.json +137 -100
- package/dist/json-schema/rich-caption-active-font.json +18 -1
- package/dist/json-schema/rich-caption-active.json +105 -1
- package/dist/json-schema/rich-caption-asset.json +278 -241
- package/dist/json-schema/schemas.json +150 -112
- package/dist/json-schema/timeline.json +137 -100
- package/dist/json-schema/track.json +137 -100
- package/dist/schema.d.ts +56 -47
- package/dist/zod/zod.gen.cjs +1116 -970
- package/dist/zod/zod.gen.d.ts +1921 -1709
- package/dist/zod/zod.gen.js +1112 -966
- package/dist/zod/zod.gen.ts +1605 -1674
- package/package.json +95 -79
- package/dist/json-schema/word-timing.json +0 -44
package/dist/zod/zod.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { z } from
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
export const editRootSchema = z.unknown();
|
|
4
4
|
export const sourceRootSchema = z.unknown();
|
|
5
5
|
export const assetsRootSchema = z.unknown();
|
|
@@ -41,7 +41,7 @@ export const captionpropertiesCaptionBackgroundSchema = z.object({
|
|
|
41
41
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
42
42
|
return v;
|
|
43
43
|
return Number(v);
|
|
44
|
-
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
44
|
+
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
45
45
|
}).strict();
|
|
46
46
|
export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
|
|
47
47
|
/**
|
|
@@ -78,7 +78,7 @@ export const captionpropertiesCaptionFontSchema = z.object({
|
|
|
78
78
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
79
79
|
return v;
|
|
80
80
|
return Number(v);
|
|
81
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
81
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
82
82
|
}).strict();
|
|
83
83
|
export const captionFontSchema = captionpropertiesCaptionFontSchema;
|
|
84
84
|
/**
|
|
@@ -105,7 +105,7 @@ export const captionpropertiesCaptionMarginSchema = z.object({
|
|
|
105
105
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
106
106
|
return v;
|
|
107
107
|
return Number(v);
|
|
108
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
108
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
109
109
|
}).strict();
|
|
110
110
|
export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
111
111
|
/**
|
|
@@ -121,7 +121,7 @@ export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
|
121
121
|
*
|
|
122
122
|
*/
|
|
123
123
|
export const captionassetCaptionAssetSchema = z.object({
|
|
124
|
-
type: z.enum([
|
|
124
|
+
type: z.enum(['caption']),
|
|
125
125
|
src: z.string().min(1).regex(/\S/),
|
|
126
126
|
font: z.optional(captionpropertiesCaptionFontSchema),
|
|
127
127
|
background: z.optional(captionpropertiesCaptionBackgroundSchema),
|
|
@@ -139,7 +139,7 @@ export const captionassetCaptionAssetSchema = z.object({
|
|
|
139
139
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
140
140
|
return v;
|
|
141
141
|
return Number(v);
|
|
142
|
-
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
142
|
+
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
143
143
|
}).strict();
|
|
144
144
|
export const captionAssetSchema = captionassetCaptionAssetSchema;
|
|
145
145
|
/**
|
|
@@ -160,17 +160,23 @@ export const chromakeyChromaKeySchema = z.object({
|
|
|
160
160
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
161
161
|
return v;
|
|
162
162
|
return Number(v);
|
|
163
|
-
} return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
163
|
+
} return v; }), z.number().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
164
164
|
}).strict();
|
|
165
165
|
export const chromaKeySchema = chromakeyChromaKeySchema;
|
|
166
166
|
/**
|
|
167
167
|
* Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
|
|
168
168
|
*/
|
|
169
169
|
export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
|
|
170
|
-
type: z.enum([
|
|
170
|
+
type: z.enum(['text-to-avatar']),
|
|
171
171
|
text: z.string(),
|
|
172
|
-
avatar: z.enum([
|
|
173
|
-
|
|
172
|
+
avatar: z.enum([
|
|
173
|
+
'jack',
|
|
174
|
+
'lana',
|
|
175
|
+
'lily',
|
|
176
|
+
'matt',
|
|
177
|
+
'rian'
|
|
178
|
+
]),
|
|
179
|
+
background: z.optional(z.string())
|
|
174
180
|
}).strict();
|
|
175
181
|
export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
176
182
|
/**
|
|
@@ -180,37 +186,35 @@ export const didTextToAvatarOptionsSchema = didTextToAvatarOptionsDidTextToAvata
|
|
|
180
186
|
* <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
|
|
181
187
|
* </ul>
|
|
182
188
|
*/
|
|
183
|
-
export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z
|
|
184
|
-
.
|
|
185
|
-
|
|
186
|
-
})
|
|
187
|
-
.and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
189
|
+
export const didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = z.object({
|
|
190
|
+
type: z.literal('didTextToAvatarOptions_DIDTextToAvatarOptions')
|
|
191
|
+
}).strict().and(didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
|
|
188
192
|
export const didGeneratedAssetOptionsSchema = didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
|
|
189
193
|
/**
|
|
190
194
|
* Generate assets using D-ID. D-ID provide a text-to-avatar service. The D-ID provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/d-id), not in the request.
|
|
191
195
|
*/
|
|
192
196
|
export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
|
|
193
|
-
provider: z.enum([
|
|
194
|
-
options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
|
|
197
|
+
provider: z.enum(['d-id']),
|
|
198
|
+
options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema
|
|
195
199
|
}).strict();
|
|
196
200
|
export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
|
|
197
201
|
/**
|
|
198
202
|
* Options for the ElevenLabs text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
199
203
|
*/
|
|
200
204
|
export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = z.object({
|
|
201
|
-
type: z.enum([
|
|
205
|
+
type: z.enum(['text-to-speech']),
|
|
202
206
|
text: z.string(),
|
|
203
207
|
voice: z.enum([
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
])
|
|
208
|
+
'Adam',
|
|
209
|
+
'Antoni',
|
|
210
|
+
'Arnold',
|
|
211
|
+
'Bella',
|
|
212
|
+
'Domi',
|
|
213
|
+
'Elli',
|
|
214
|
+
'Josh',
|
|
215
|
+
'Rachel',
|
|
216
|
+
'Sam'
|
|
217
|
+
])
|
|
214
218
|
}).strict();
|
|
215
219
|
export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
216
220
|
/**
|
|
@@ -220,143 +224,141 @@ export const elevenLabsTextToSpeechOptionsSchema = elevenlabsTextToSpeechOptions
|
|
|
220
224
|
* <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
|
|
221
225
|
* </ul>
|
|
222
226
|
*/
|
|
223
|
-
export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z
|
|
224
|
-
.
|
|
225
|
-
|
|
226
|
-
})
|
|
227
|
-
.and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
227
|
+
export const elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = z.object({
|
|
228
|
+
type: z.literal('elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions')
|
|
229
|
+
}).strict().and(elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
|
|
228
230
|
export const elevenLabsGeneratedAssetOptionsSchema = elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
|
|
229
231
|
/**
|
|
230
232
|
* Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service. The ElevenLabs provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/elevenlabs), not in the request.
|
|
231
233
|
*/
|
|
232
234
|
export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
|
|
233
|
-
provider: z.enum([
|
|
234
|
-
options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
|
|
235
|
+
provider: z.enum(['elevenlabs']),
|
|
236
|
+
options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema
|
|
235
237
|
}).strict();
|
|
236
238
|
export const elevenLabsGeneratedAssetSchema = elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
237
239
|
/**
|
|
238
240
|
* Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
|
|
239
241
|
*/
|
|
240
242
|
export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = z.object({
|
|
241
|
-
type: z.enum([
|
|
243
|
+
type: z.enum(['text-to-avatar']),
|
|
242
244
|
text: z.string(),
|
|
243
245
|
avatar: z.enum([
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
246
|
+
'Angela',
|
|
247
|
+
'Bill',
|
|
248
|
+
'Daisy',
|
|
249
|
+
'Derek',
|
|
250
|
+
'Eva',
|
|
251
|
+
'Jake',
|
|
252
|
+
'Jeff',
|
|
253
|
+
'Jerome',
|
|
254
|
+
'Joon',
|
|
255
|
+
'Kayla',
|
|
256
|
+
'Kent',
|
|
257
|
+
'Luna',
|
|
258
|
+
'Mark',
|
|
259
|
+
'Matthew',
|
|
260
|
+
'Monica',
|
|
261
|
+
'Peter',
|
|
262
|
+
'Selina',
|
|
263
|
+
'Tanya',
|
|
264
|
+
'Thomas',
|
|
265
|
+
'Tina',
|
|
266
|
+
'Tyler',
|
|
267
|
+
'Vanessa',
|
|
268
|
+
'Vera',
|
|
269
|
+
'Wilson',
|
|
270
|
+
'Zoey'
|
|
269
271
|
]),
|
|
270
272
|
voice: z.enum([
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
273
|
+
'Abbi - Natural',
|
|
274
|
+
'Adam - Natural',
|
|
275
|
+
'Aiston - Friendly',
|
|
276
|
+
'Alice - Newscaster',
|
|
277
|
+
'Alison - Cheerful',
|
|
278
|
+
'Amber - Friendly',
|
|
279
|
+
'Amy - Warm',
|
|
280
|
+
'Ana - Cheerful',
|
|
281
|
+
'Antoni - Friendly',
|
|
282
|
+
'Aria - Newscaster',
|
|
283
|
+
'Arnold - Cheerful',
|
|
284
|
+
'Arthur - Natural',
|
|
285
|
+
'Bella - Friendly',
|
|
286
|
+
'Belle - Natural',
|
|
287
|
+
'Brandon - Warm',
|
|
288
|
+
'Brian - Natural',
|
|
289
|
+
'Bruce - Natural',
|
|
290
|
+
'Cerise - Cheerful',
|
|
291
|
+
'Christopher - Calm',
|
|
292
|
+
'Clara - Professional',
|
|
293
|
+
'Connor - Natural',
|
|
294
|
+
'Dahlia - Friendly',
|
|
295
|
+
'Davis - Professional',
|
|
296
|
+
'Dean - Natural',
|
|
297
|
+
'Delbert - Cheerful',
|
|
298
|
+
'Edward - Friendly',
|
|
299
|
+
'Elaine - Calm',
|
|
300
|
+
'Emily - Natural',
|
|
301
|
+
'Emma - Newscaster',
|
|
302
|
+
'Eric - Newscaster',
|
|
303
|
+
'Grace - Natural',
|
|
304
|
+
'Hailey - Calm',
|
|
305
|
+
'Indira - Cheerful',
|
|
306
|
+
'Isabella - Cheerful',
|
|
307
|
+
'Jacob - Natural',
|
|
308
|
+
'Jahmai - Friendly',
|
|
309
|
+
'Jane - Serious',
|
|
310
|
+
'Jason - Serious',
|
|
311
|
+
'Jelle - Friendly',
|
|
312
|
+
'Jen - Natural',
|
|
313
|
+
'Jenny - Professional',
|
|
314
|
+
'Jodi - Cheerful',
|
|
315
|
+
'Joey - Calm',
|
|
316
|
+
'Johan - Friendly',
|
|
317
|
+
'Josie - Cheerful',
|
|
318
|
+
'Keanan - Natural',
|
|
319
|
+
'Keith - Cheerful',
|
|
320
|
+
'Kellie - Friendly',
|
|
321
|
+
'Lauren - Friendly',
|
|
322
|
+
'Leah - Natural',
|
|
323
|
+
'Liam - Professional',
|
|
324
|
+
'Libby - Natural',
|
|
325
|
+
'Lily - Professional',
|
|
326
|
+
'Lucas - Natural',
|
|
327
|
+
'Luke - Professional',
|
|
328
|
+
'Luna - Natural',
|
|
329
|
+
'Marieke - Natural',
|
|
330
|
+
'Matthew - Professional',
|
|
331
|
+
'Michelle - Natural',
|
|
332
|
+
'Mitchell - Natural',
|
|
333
|
+
'Molly - Newscaster',
|
|
334
|
+
'Monica - Calm',
|
|
335
|
+
'Natasha - Professional',
|
|
336
|
+
'Neerja - Newscaster',
|
|
337
|
+
'Noah - Serious',
|
|
338
|
+
'Oliver - Newscaster',
|
|
339
|
+
'Olivia - Calm',
|
|
340
|
+
'Paul - Natural',
|
|
341
|
+
'Prabhat - Natural',
|
|
342
|
+
'Raveena - Natural',
|
|
343
|
+
'Rudi - Friendly',
|
|
344
|
+
'Ryan - Professional',
|
|
345
|
+
'Sam - Natural',
|
|
346
|
+
'Sara - Cheerful',
|
|
347
|
+
'Sherry - Friendly',
|
|
348
|
+
'Sonia - Warm',
|
|
349
|
+
'Thomas - Natural',
|
|
350
|
+
'Todd - Professional',
|
|
351
|
+
'Tony - Professional',
|
|
352
|
+
'Tracy - Cheerful',
|
|
353
|
+
'Wayne - Natural',
|
|
354
|
+
'Wilder - Natural',
|
|
355
|
+
'Wille - Natural',
|
|
356
|
+
'William - Friendly'
|
|
355
357
|
]),
|
|
356
|
-
avatarStyle: z.optional(z.enum([
|
|
358
|
+
avatarStyle: z.optional(z.enum(['normal', 'circle'])),
|
|
357
359
|
background: z.optional(z.string()),
|
|
358
|
-
ratio: z.optional(z.enum([
|
|
359
|
-
test: z.optional(z.boolean())
|
|
360
|
+
ratio: z.optional(z.enum(['16:9', '9:16'])),
|
|
361
|
+
test: z.optional(z.boolean())
|
|
360
362
|
}).strict();
|
|
361
363
|
export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
362
364
|
/**
|
|
@@ -366,28 +368,26 @@ export const heyGenTextToAvatarOptionsSchema = heygenTextToAvatarOptionsHeyGenTe
|
|
|
366
368
|
* <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
|
|
367
369
|
* </ul>
|
|
368
370
|
*/
|
|
369
|
-
export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z
|
|
370
|
-
.
|
|
371
|
-
|
|
372
|
-
})
|
|
373
|
-
.and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
371
|
+
export const heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = z.object({
|
|
372
|
+
type: z.literal('heygenTextToAvatarOptions_HeyGenTextToAvatarOptions')
|
|
373
|
+
}).strict().and(heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
|
|
374
374
|
export const heyGenGeneratedAssetOptionsSchema = heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
|
|
375
375
|
/**
|
|
376
376
|
* Generate assets using HeyGen. HeyGen provide a text-to-avatar service. The HeyGen provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/heygen), not in the request.
|
|
377
377
|
*/
|
|
378
378
|
export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
|
|
379
|
-
provider: z.enum([
|
|
380
|
-
options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
|
|
379
|
+
provider: z.enum(['heygen']),
|
|
380
|
+
options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema
|
|
381
381
|
}).strict();
|
|
382
382
|
export const heyGenGeneratedAssetSchema = heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
383
383
|
/**
|
|
384
384
|
* Options for the OpenAI text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
385
385
|
*/
|
|
386
386
|
export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = z.object({
|
|
387
|
-
type: z.enum([
|
|
387
|
+
type: z.enum(['text-generator']),
|
|
388
388
|
prompt: z.string(),
|
|
389
|
-
model: z.enum([
|
|
390
|
-
systemPrompt: z.optional(z.string())
|
|
389
|
+
model: z.enum(['gpt-3.5-turbo', 'gpt-4']),
|
|
390
|
+
systemPrompt: z.optional(z.string())
|
|
391
391
|
}).strict();
|
|
392
392
|
export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
393
393
|
/**
|
|
@@ -397,18 +397,16 @@ export const openAiTextGeneratorOptionsSchema = openaiTextGeneratorOptionsOpenAi
|
|
|
397
397
|
* <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
|
|
398
398
|
* </ul>
|
|
399
399
|
*/
|
|
400
|
-
export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z
|
|
401
|
-
.
|
|
402
|
-
|
|
403
|
-
})
|
|
404
|
-
.and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
400
|
+
export const openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = z.object({
|
|
401
|
+
type: z.literal('openaiTextGeneratorOptions_OpenAiTextGeneratorOptions')
|
|
402
|
+
}).strict().and(openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
|
|
405
403
|
export const openAiGeneratedAssetOptionsSchema = openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
|
|
406
404
|
/**
|
|
407
405
|
* Generate assets using OpenAI. OpenAI provide a text generation service using ChatGPT 3.5 and 4. The OpenAI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/openai), not in the request.
|
|
408
406
|
*/
|
|
409
407
|
export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
|
|
410
|
-
provider: z.enum([
|
|
411
|
-
options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
|
|
408
|
+
provider: z.enum(['openai']),
|
|
409
|
+
options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema
|
|
412
410
|
}).strict();
|
|
413
411
|
export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
414
412
|
/**
|
|
@@ -417,14 +415,14 @@ export const openAiGeneratedAssetSchema = openaiGeneratedAssetOpenAiGeneratedAss
|
|
|
417
415
|
export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = z.object({
|
|
418
416
|
status: z.string(),
|
|
419
417
|
title: z.string(),
|
|
420
|
-
detail: z.string()
|
|
418
|
+
detail: z.string()
|
|
421
419
|
}).strict();
|
|
422
420
|
export const generatedAssetErrorResponseDataSchema = generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
423
421
|
/**
|
|
424
422
|
* Error response data for validation and other errors returned by the Create API.
|
|
425
423
|
*/
|
|
426
424
|
export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = z.object({
|
|
427
|
-
errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
|
|
425
|
+
errors: z.array(generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema)
|
|
428
426
|
}).strict();
|
|
429
427
|
export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
430
428
|
/**
|
|
@@ -432,12 +430,23 @@ export const generatedAssetErrorResponseSchema = generatedAssetErrorResponseGene
|
|
|
432
430
|
*/
|
|
433
431
|
export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema = z.object({
|
|
434
432
|
owner: z.string(),
|
|
435
|
-
provider: z.enum([
|
|
436
|
-
|
|
433
|
+
provider: z.enum([
|
|
434
|
+
'shotstack',
|
|
435
|
+
'elevenlabs',
|
|
436
|
+
'heygen',
|
|
437
|
+
'd-id'
|
|
438
|
+
]),
|
|
439
|
+
type: z.enum(['text-to-speech', 'text-to-avatar']),
|
|
437
440
|
url: z.optional(z.string()),
|
|
438
|
-
status: z.enum([
|
|
441
|
+
status: z.enum([
|
|
442
|
+
'queued',
|
|
443
|
+
'processing',
|
|
444
|
+
'saving',
|
|
445
|
+
'done',
|
|
446
|
+
'failed'
|
|
447
|
+
]),
|
|
439
448
|
created: z.string(),
|
|
440
|
-
updated: z.string()
|
|
449
|
+
updated: z.string()
|
|
441
450
|
}).strict();
|
|
442
451
|
export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
443
452
|
/**
|
|
@@ -446,21 +455,21 @@ export const generatedAssetResponseAttributesSchema = generatedAssetResponseAttr
|
|
|
446
455
|
export const generatedAssetResponseDataGeneratedAssetResponseDataSchema = z.object({
|
|
447
456
|
type: z.string(),
|
|
448
457
|
id: z.string(),
|
|
449
|
-
attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
|
|
458
|
+
attributes: generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema
|
|
450
459
|
}).strict();
|
|
451
460
|
export const generatedAssetResponseDataSchema = generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
452
461
|
/**
|
|
453
462
|
* The response returned by the Create API [generate asset](#generate-asset) and [get generated asset](#get-generated-asset) requests. Includes status and details of the generated asset. The response follows the [json:api](https://jsonapi.org/) specification.
|
|
454
463
|
*/
|
|
455
464
|
export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
|
|
456
|
-
data: generatedAssetResponseDataGeneratedAssetResponseDataSchema
|
|
465
|
+
data: generatedAssetResponseDataGeneratedAssetResponseDataSchema
|
|
457
466
|
}).strict();
|
|
458
467
|
export const generatedAssetResponseSchema = generatedAssetResponseGeneratedAssetResponseSchema;
|
|
459
468
|
/**
|
|
460
469
|
* Options for the Shotstack image-to-video service. Set the URL of an image to convert in to a video. The output will be generated as an MP4 file available at the URL returned in the response.
|
|
461
470
|
*/
|
|
462
471
|
export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.object({
|
|
463
|
-
type: z.enum([
|
|
472
|
+
type: z.enum(['image-to-video']),
|
|
464
473
|
imageUrl: z.string(),
|
|
465
474
|
guidanceScale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
466
475
|
return undefined; if (Array.isArray(v))
|
|
@@ -475,22 +484,22 @@ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = z.
|
|
|
475
484
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
476
485
|
return v;
|
|
477
486
|
return Number(v);
|
|
478
|
-
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
|
|
487
|
+
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
|
|
479
488
|
}).strict();
|
|
480
489
|
export const shotstackImageToVideoOptionsSchema = shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
481
490
|
/**
|
|
482
491
|
* Options for the Shotstack text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
|
|
483
492
|
*/
|
|
484
493
|
export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = z.object({
|
|
485
|
-
type: z.enum([
|
|
486
|
-
prompt: z.string()
|
|
494
|
+
type: z.enum(['text-generator']),
|
|
495
|
+
prompt: z.string()
|
|
487
496
|
}).strict();
|
|
488
497
|
export const shotstackTextGeneratorOptionsSchema = shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
489
498
|
/**
|
|
490
499
|
* Options for the Shotstack text-to-image service. Set a text prompt to generate an image from. The output will be generated as a PNG file available at the URL returned in the response.
|
|
491
500
|
*/
|
|
492
501
|
export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.object({
|
|
493
|
-
type: z.enum([
|
|
502
|
+
type: z.enum(['text-to-image']),
|
|
494
503
|
prompt: z.string(),
|
|
495
504
|
width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
496
505
|
return undefined; if (Array.isArray(v))
|
|
@@ -505,154 +514,146 @@ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = z.ob
|
|
|
505
514
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
506
515
|
return v;
|
|
507
516
|
return Number(v);
|
|
508
|
-
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
517
|
+
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
509
518
|
}).strict();
|
|
510
519
|
export const shotstackTextToImageOptionsSchema = shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
511
520
|
/**
|
|
512
521
|
* Options for the Shotstack text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
|
|
513
522
|
*/
|
|
514
523
|
export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = z.object({
|
|
515
|
-
type: z.enum([
|
|
524
|
+
type: z.enum(['text-to-speech']),
|
|
516
525
|
text: z.string(),
|
|
517
526
|
voice: z.enum([
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
527
|
+
'Hala',
|
|
528
|
+
'Lisa',
|
|
529
|
+
'Arlet',
|
|
530
|
+
'Hiujin',
|
|
531
|
+
'Zhiyu',
|
|
532
|
+
'Sofie',
|
|
533
|
+
'Laura',
|
|
534
|
+
'Olivia',
|
|
535
|
+
'Amy',
|
|
536
|
+
'Emma',
|
|
537
|
+
'Brian',
|
|
538
|
+
'Arthur',
|
|
539
|
+
'Kajal',
|
|
540
|
+
'Niamh',
|
|
541
|
+
'Aria',
|
|
542
|
+
'Ayanda',
|
|
543
|
+
'Ivy',
|
|
544
|
+
'Joanna',
|
|
545
|
+
'Kendra',
|
|
546
|
+
'Kimberly',
|
|
547
|
+
'Salli',
|
|
548
|
+
'Joey',
|
|
549
|
+
'Justin',
|
|
550
|
+
'Kevin',
|
|
551
|
+
'Matthew',
|
|
552
|
+
'Ruth',
|
|
553
|
+
'Stephen',
|
|
554
|
+
'Suvi',
|
|
555
|
+
'Léa',
|
|
556
|
+
'Rémi',
|
|
557
|
+
'Gabrielle',
|
|
558
|
+
'Liam',
|
|
559
|
+
'Vicki',
|
|
560
|
+
'Daniel',
|
|
561
|
+
'Hannah',
|
|
562
|
+
'Kajal',
|
|
563
|
+
'Bianca',
|
|
564
|
+
'Adriano',
|
|
565
|
+
'Takumi',
|
|
566
|
+
'Kazuha',
|
|
567
|
+
'Tomoko',
|
|
568
|
+
'Seoyeon',
|
|
569
|
+
'Ida',
|
|
570
|
+
'Ola',
|
|
571
|
+
'Camila',
|
|
572
|
+
'Vitória',
|
|
573
|
+
'Vitoria',
|
|
574
|
+
'Thiago',
|
|
575
|
+
'Inês',
|
|
576
|
+
'Ines',
|
|
577
|
+
'Lucia',
|
|
578
|
+
'Sergio',
|
|
579
|
+
'Mia',
|
|
580
|
+
'Andrés',
|
|
581
|
+
'Lupe',
|
|
582
|
+
'Pedro',
|
|
583
|
+
'Elin'
|
|
575
584
|
]),
|
|
576
585
|
language: z.optional(z.enum([
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
586
|
+
'cmn-CN',
|
|
587
|
+
'da-DK',
|
|
588
|
+
'de-DE',
|
|
589
|
+
'en-AU',
|
|
590
|
+
'en-GB',
|
|
591
|
+
'en-IN',
|
|
592
|
+
'en-US',
|
|
593
|
+
'es-ES',
|
|
594
|
+
'es-MX',
|
|
595
|
+
'es-US',
|
|
596
|
+
'fr-CA',
|
|
597
|
+
'fr-FR',
|
|
598
|
+
'it-IT',
|
|
599
|
+
'ja-JP',
|
|
600
|
+
'hi-IN',
|
|
601
|
+
'ko-KR',
|
|
602
|
+
'nb-NO',
|
|
603
|
+
'nl-NL',
|
|
604
|
+
'pl-PL',
|
|
605
|
+
'pt-BR',
|
|
606
|
+
'pt-PT',
|
|
607
|
+
'sv-SE',
|
|
608
|
+
'en-NZ',
|
|
609
|
+
'en-ZA',
|
|
610
|
+
'ca-ES',
|
|
611
|
+
'de-AT',
|
|
612
|
+
'yue-CN',
|
|
613
|
+
'ar-AE',
|
|
614
|
+
'fi-FI'
|
|
606
615
|
])),
|
|
607
|
-
newscaster: z.optional(z.boolean()).default(false)
|
|
616
|
+
newscaster: z.optional(z.boolean()).default(false)
|
|
608
617
|
}).strict();
|
|
609
618
|
export const shotstackTextToSpeechOptionsSchema = shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
610
619
|
/**
|
|
611
620
|
* Generate assets using the native Shotstack provider AI services.
|
|
612
621
|
*/
|
|
613
622
|
export const shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = z.union([
|
|
614
|
-
z
|
|
615
|
-
.
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
.
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
type: z.literal(
|
|
622
|
-
})
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
type: z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
|
|
627
|
-
})
|
|
628
|
-
.and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
629
|
-
z
|
|
630
|
-
.object({
|
|
631
|
-
type: z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
|
|
632
|
-
})
|
|
633
|
-
.and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
|
|
623
|
+
z.object({
|
|
624
|
+
type: z.literal('shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions')
|
|
625
|
+
}).strict().and(shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
|
|
626
|
+
z.object({
|
|
627
|
+
type: z.literal('shotstackTextToImageOptions_ShotstackTextToImageOptions')
|
|
628
|
+
}).strict().and(shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
|
|
629
|
+
z.object({
|
|
630
|
+
type: z.literal('shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions')
|
|
631
|
+
}).strict().and(shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
|
|
632
|
+
z.object({
|
|
633
|
+
type: z.literal('shotstackImageToVideoOptions_ShotstackImageToVideoOptions')
|
|
634
|
+
}).strict().and(shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema)
|
|
634
635
|
]);
|
|
635
636
|
export const shotstackGeneratedAssetOptionsSchema = shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
|
|
636
637
|
/**
|
|
637
638
|
* Generate assets using the native Shotstack provider. Shotstack provides a text-to-speech and a text-to-image service. The Shotstack provider works natively with your existing API key, no additional credentials are required.
|
|
638
639
|
*/
|
|
639
640
|
export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
|
|
640
|
-
provider: z.enum([
|
|
641
|
-
options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
|
|
641
|
+
provider: z.enum(['shotstack']),
|
|
642
|
+
options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema
|
|
642
643
|
}).strict();
|
|
643
644
|
export const shotstackGeneratedAssetSchema = shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
644
645
|
/**
|
|
645
646
|
* Options for the Stability AI text-to-image service. Set a text prompt to generate an image from plus other engine and configuration options. The output will be generated as a JPG file available at the URL returned in the response.
|
|
646
647
|
*/
|
|
647
648
|
export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = z.object({
|
|
648
|
-
type: z.enum([
|
|
649
|
+
type: z.enum(['text-to-image']),
|
|
649
650
|
prompt: z.string(),
|
|
650
651
|
engine: z.optional(z.enum([
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
652
|
+
'stable-diffusion-xl-1024-v0-9',
|
|
653
|
+
'stable-diffusion-xl-1024-v1-0',
|
|
654
|
+
'stable-diffusion-v1-6',
|
|
655
|
+
'stable-diffusion-512-v2-1',
|
|
656
|
+
'stable-diffusion-xl-beta-v2-2-2'
|
|
656
657
|
])),
|
|
657
658
|
width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
658
659
|
return undefined; if (Array.isArray(v))
|
|
@@ -690,24 +691,24 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
|
|
|
690
691
|
return Number(v);
|
|
691
692
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),
|
|
692
693
|
stylePreset: z.optional(z.enum([
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
]))
|
|
694
|
+
'3d-model',
|
|
695
|
+
'analog-film',
|
|
696
|
+
'anime',
|
|
697
|
+
'cinematic',
|
|
698
|
+
'comic-book',
|
|
699
|
+
'digital-art',
|
|
700
|
+
'enhance',
|
|
701
|
+
'fantasy-art',
|
|
702
|
+
'isometric',
|
|
703
|
+
'line-art',
|
|
704
|
+
'low-poly',
|
|
705
|
+
'modeling-compound',
|
|
706
|
+
'neon-punk',
|
|
707
|
+
'origami',
|
|
708
|
+
'photographic',
|
|
709
|
+
'pixel-art',
|
|
710
|
+
'tile-texture'
|
|
711
|
+
]))
|
|
711
712
|
}).strict();
|
|
712
713
|
export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
713
714
|
/**
|
|
@@ -717,54 +718,40 @@ export const stabilityAiTextToImageOptionsSchema = stabilityAiTextToImageOptions
|
|
|
717
718
|
* <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
|
|
718
719
|
* </ul>
|
|
719
720
|
*/
|
|
720
|
-
export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z
|
|
721
|
-
.
|
|
722
|
-
|
|
723
|
-
})
|
|
724
|
-
.and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
721
|
+
export const stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = z.object({
|
|
722
|
+
type: z.literal('stabilityAiTextToImageOptions_StabilityAiTextToImageOptions')
|
|
723
|
+
}).strict().and(stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
|
|
725
724
|
export const stabilityAiGeneratedAssetOptionsSchema = stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
|
|
726
725
|
/**
|
|
727
726
|
* Generate assets using Stability AI. Stability AI provide a text-to-image service using Stable Diffusion. The Stability AI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/stability-ai), not in the request.
|
|
728
727
|
*/
|
|
729
728
|
export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = z.object({
|
|
730
|
-
provider: z.enum([
|
|
731
|
-
options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
|
|
729
|
+
provider: z.enum(['stability-ai']),
|
|
730
|
+
options: stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema
|
|
732
731
|
}).strict();
|
|
733
732
|
export const stabilityAiGeneratedAssetSchema = stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
734
733
|
/**
|
|
735
734
|
* A generated asset is a media asset created by the Create API. You can use native or third party providers to generate video, audio and image files using Generative AI services like text-to-speech and text-to-avatar.
|
|
736
735
|
*/
|
|
737
736
|
export const generatedAssetGeneratedAssetSchema = z.union([
|
|
738
|
-
z
|
|
739
|
-
.
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
.
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
provider: z.literal(
|
|
746
|
-
})
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
z
|
|
754
|
-
.
|
|
755
|
-
|
|
756
|
-
})
|
|
757
|
-
.and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
758
|
-
z
|
|
759
|
-
.object({
|
|
760
|
-
provider: z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
|
|
761
|
-
})
|
|
762
|
-
.and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
763
|
-
z
|
|
764
|
-
.object({
|
|
765
|
-
provider: z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
|
|
766
|
-
})
|
|
767
|
-
.and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
|
|
737
|
+
z.object({
|
|
738
|
+
provider: z.literal('shotstackGeneratedAsset_ShotstackGeneratedAsset')
|
|
739
|
+
}).strict().and(shotstackGeneratedAssetShotstackGeneratedAssetSchema),
|
|
740
|
+
z.object({
|
|
741
|
+
provider: z.literal('didGeneratedAsset_DIDGeneratedAsset')
|
|
742
|
+
}).strict().and(didGeneratedAssetDidGeneratedAssetSchema),
|
|
743
|
+
z.object({
|
|
744
|
+
provider: z.literal('elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset')
|
|
745
|
+
}).strict().and(elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
|
|
746
|
+
z.object({
|
|
747
|
+
provider: z.literal('heygenGeneratedAsset_HeyGenGeneratedAsset')
|
|
748
|
+
}).strict().and(heygenGeneratedAssetHeyGenGeneratedAssetSchema),
|
|
749
|
+
z.object({
|
|
750
|
+
provider: z.literal('openaiGeneratedAsset_OpenAiGeneratedAsset')
|
|
751
|
+
}).strict().and(openaiGeneratedAssetOpenAiGeneratedAssetSchema),
|
|
752
|
+
z.object({
|
|
753
|
+
provider: z.literal('stabilityAiGeneratedAsset_StabilityAiGeneratedAsset')
|
|
754
|
+
}).strict().and(stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema)
|
|
768
755
|
]);
|
|
769
756
|
export const generatedAssetSchema = generatedAssetGeneratedAssetSchema;
|
|
770
757
|
/**
|
|
@@ -798,7 +785,7 @@ export const cropCropSchema = z.object({
|
|
|
798
785
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
799
786
|
return v;
|
|
800
787
|
return Number(v);
|
|
801
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
788
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
802
789
|
}).strict();
|
|
803
790
|
export const cropSchema = cropCropSchema;
|
|
804
791
|
/**
|
|
@@ -808,14 +795,14 @@ export const akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOption
|
|
|
808
795
|
host: z.string(),
|
|
809
796
|
cpCode: z.string(),
|
|
810
797
|
path: z.optional(z.unknown()),
|
|
811
|
-
filename: z.optional(z.unknown())
|
|
798
|
+
filename: z.optional(z.unknown())
|
|
812
799
|
}).strict();
|
|
813
800
|
/**
|
|
814
801
|
* Send videos and assets to [Akamai NetStorage](https://techdocs.akamai.com/netstorage-usage/docs). Send files to your NetStorage upload directory with a custom path and filename. Akamai credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/akamai-netstorage), not in the request.
|
|
815
802
|
*/
|
|
816
803
|
export const akamaiNetStorageDestinationAkamaiNetStorageDestinationSchema = z.object({
|
|
817
804
|
provider: z.literal("akamai-netstorage"),
|
|
818
|
-
options: z.optional(akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema)
|
|
805
|
+
options: z.optional(akamaiNetStorageDestinationOptionsAkamaiNetStorageDestinationOptionsSchema)
|
|
819
806
|
}).strict();
|
|
820
807
|
/**
|
|
821
808
|
* Pass additional options to control how files are stored in Azure Blob Storage.
|
|
@@ -824,14 +811,14 @@ export const azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOption
|
|
|
824
811
|
accountName: z.string(),
|
|
825
812
|
container: z.string(),
|
|
826
813
|
prefix: z.optional(z.unknown()),
|
|
827
|
-
filename: z.optional(z.unknown())
|
|
814
|
+
filename: z.optional(z.unknown())
|
|
828
815
|
}).strict();
|
|
829
816
|
/**
|
|
830
817
|
* Send videos and assets to [Azure Blob Storage](https://learn.microsoft.com/en-us/azure/storage/blobs/). Send files to any container with a custom prefix and filename. Azure credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/azure-blob-storage), not in the request.
|
|
831
818
|
*/
|
|
832
819
|
export const azureBlobStorageDestinationAzureBlobStorageDestinationSchema = z.object({
|
|
833
820
|
provider: z.literal("azure-blob-storage"),
|
|
834
|
-
options: z.optional(azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema)
|
|
821
|
+
options: z.optional(azureBlobStorageDestinationOptionsAzureBlobStorageDestinationOptionsSchema)
|
|
835
822
|
}).strict();
|
|
836
823
|
/**
|
|
837
824
|
* Pass additional options to control how files are stored in Google Cloud Storage.
|
|
@@ -839,7 +826,7 @@ export const azureBlobStorageDestinationAzureBlobStorageDestinationSchema = z.ob
|
|
|
839
826
|
export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema = z.object({
|
|
840
827
|
bucket: z.string(),
|
|
841
828
|
prefix: z.optional(z.string()),
|
|
842
|
-
filename: z.optional(z.string())
|
|
829
|
+
filename: z.optional(z.string())
|
|
843
830
|
}).strict();
|
|
844
831
|
export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
845
832
|
/**
|
|
@@ -847,7 +834,7 @@ export const googleCloudStorageDestinationOptionsSchema = googleCloudStorageDest
|
|
|
847
834
|
*/
|
|
848
835
|
export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = z.object({
|
|
849
836
|
provider: z.literal("google-cloud-storage"),
|
|
850
|
-
options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
837
|
+
options: z.optional(googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema)
|
|
851
838
|
}).strict();
|
|
852
839
|
export const googleCloudStorageDestinationSchema = googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
853
840
|
/**
|
|
@@ -855,7 +842,7 @@ export const googleCloudStorageDestinationSchema = googleCloudStorageDestination
|
|
|
855
842
|
*/
|
|
856
843
|
export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = z.object({
|
|
857
844
|
folderId: z.string(),
|
|
858
|
-
filename: z.optional(z.string())
|
|
845
|
+
filename: z.optional(z.string())
|
|
859
846
|
}).strict();
|
|
860
847
|
export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
861
848
|
/**
|
|
@@ -863,15 +850,15 @@ export const googleDriveDestinationOptionsSchema = googleDriveDestinationOptions
|
|
|
863
850
|
*/
|
|
864
851
|
export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
|
|
865
852
|
provider: z.literal("google-drive"),
|
|
866
|
-
options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
853
|
+
options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
867
854
|
}).strict();
|
|
868
855
|
export const googleDriveDestinationSchema = googleDriveDestinationGoogleDriveDestinationSchema;
|
|
869
856
|
/**
|
|
870
857
|
* Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
|
|
871
858
|
*/
|
|
872
859
|
export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
|
|
873
|
-
playbackPolicy: z.optional(z.array(z.enum([
|
|
874
|
-
passthrough: z.optional(z.string().max(255))
|
|
860
|
+
playbackPolicy: z.optional(z.array(z.enum(['public', 'signed']))),
|
|
861
|
+
passthrough: z.optional(z.string().max(255))
|
|
875
862
|
}).strict();
|
|
876
863
|
export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
877
864
|
/**
|
|
@@ -879,7 +866,7 @@ export const muxDestinationOptionsSchema = muxDestinationOptionsMuxDestinationOp
|
|
|
879
866
|
*/
|
|
880
867
|
export const muxDestinationMuxDestinationSchema = z.object({
|
|
881
868
|
provider: z.literal("mux"),
|
|
882
|
-
options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
869
|
+
options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema)
|
|
883
870
|
}).strict();
|
|
884
871
|
export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
|
|
885
872
|
/**
|
|
@@ -890,7 +877,7 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
|
|
|
890
877
|
bucket: z.string(),
|
|
891
878
|
prefix: z.optional(z.string()),
|
|
892
879
|
filename: z.optional(z.string()),
|
|
893
|
-
acl: z.optional(z.string())
|
|
880
|
+
acl: z.optional(z.string())
|
|
894
881
|
}).strict();
|
|
895
882
|
export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptionsSchema;
|
|
896
883
|
/**
|
|
@@ -898,7 +885,7 @@ export const s3DestinationOptionsSchema = s3DestinationOptionsS3DestinationOptio
|
|
|
898
885
|
*/
|
|
899
886
|
export const s3DestinationS3DestinationSchema = z.object({
|
|
900
887
|
provider: z.literal("s3"),
|
|
901
|
-
options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema)
|
|
888
|
+
options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema)
|
|
902
889
|
}).strict();
|
|
903
890
|
export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
904
891
|
/**
|
|
@@ -906,7 +893,7 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
|
906
893
|
*/
|
|
907
894
|
export const shotstackDestinationShotstackDestinationSchema = z.object({
|
|
908
895
|
provider: z.literal("shotstack"),
|
|
909
|
-
exclude: z.optional(z.boolean())
|
|
896
|
+
exclude: z.optional(z.boolean())
|
|
910
897
|
}).strict();
|
|
911
898
|
export const shotstackDestinationSchema = shotstackDestinationShotstackDestinationSchema;
|
|
912
899
|
/**
|
|
@@ -914,27 +901,45 @@ export const shotstackDestinationSchema = shotstackDestinationShotstackDestinati
|
|
|
914
901
|
*/
|
|
915
902
|
export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
|
|
916
903
|
title: z.optional(z.string().max(150)),
|
|
917
|
-
privacyLevel: z.optional(z.enum([
|
|
904
|
+
privacyLevel: z.optional(z.enum([
|
|
905
|
+
'public',
|
|
906
|
+
'friends',
|
|
907
|
+
'private'
|
|
908
|
+
])),
|
|
918
909
|
disableDuet: z.optional(z.boolean()).default(false),
|
|
919
910
|
disableStitch: z.optional(z.boolean()).default(false),
|
|
920
|
-
disableComment: z.optional(z.boolean()).default(false)
|
|
911
|
+
disableComment: z.optional(z.boolean()).default(false)
|
|
921
912
|
}).strict();
|
|
922
913
|
/**
|
|
923
914
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
924
915
|
*/
|
|
925
916
|
export const tiktokDestinationTiktokDestinationSchema = z.object({
|
|
926
917
|
provider: z.literal("tiktok"),
|
|
927
|
-
options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
918
|
+
options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema)
|
|
928
919
|
}).strict();
|
|
929
920
|
/**
|
|
930
921
|
* Options to control the visibility of videos and privacy features.
|
|
931
922
|
*/
|
|
932
923
|
export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = z.object({
|
|
933
|
-
view: z.optional(z.enum([
|
|
934
|
-
|
|
935
|
-
|
|
924
|
+
view: z.optional(z.enum([
|
|
925
|
+
'anybody',
|
|
926
|
+
'nobody',
|
|
927
|
+
'contacts',
|
|
928
|
+
'password',
|
|
929
|
+
'unlisted'
|
|
930
|
+
])),
|
|
931
|
+
embed: z.optional(z.enum([
|
|
932
|
+
'public',
|
|
933
|
+
'private',
|
|
934
|
+
'whitelist'
|
|
935
|
+
])),
|
|
936
|
+
comments: z.optional(z.enum([
|
|
937
|
+
'anybody',
|
|
938
|
+
'nobody',
|
|
939
|
+
'contacts'
|
|
940
|
+
])),
|
|
936
941
|
download: z.optional(z.boolean()),
|
|
937
|
-
add: z.optional(z.boolean())
|
|
942
|
+
add: z.optional(z.boolean())
|
|
938
943
|
}).strict();
|
|
939
944
|
export const vimeoDestinationPrivacyOptionsSchema = vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
940
945
|
/**
|
|
@@ -944,7 +949,7 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
|
|
|
944
949
|
name: z.optional(z.string()),
|
|
945
950
|
description: z.optional(z.string()),
|
|
946
951
|
privacy: z.optional(vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
|
|
947
|
-
folderUri: z.optional(z.string())
|
|
952
|
+
folderUri: z.optional(z.string())
|
|
948
953
|
}).strict();
|
|
949
954
|
export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
950
955
|
/**
|
|
@@ -952,7 +957,7 @@ export const vimeoDestinationOptionsSchema = vimeoDestinationOptionsVimeoDestina
|
|
|
952
957
|
*/
|
|
953
958
|
export const vimeoDestinationVimeoDestinationSchema = z.object({
|
|
954
959
|
provider: z.literal("vimeo"),
|
|
955
|
-
options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
960
|
+
options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema)
|
|
956
961
|
}).strict();
|
|
957
962
|
export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
|
|
958
963
|
/**
|
|
@@ -977,14 +982,14 @@ export const destinationsSchema = destinationsDestinationsSchema;
|
|
|
977
982
|
*/
|
|
978
983
|
export const fliptransformationFlipTransformationSchema = z.object({
|
|
979
984
|
horizontal: z.optional(z.boolean()),
|
|
980
|
-
vertical: z.optional(z.boolean())
|
|
985
|
+
vertical: z.optional(z.boolean())
|
|
981
986
|
}).strict();
|
|
982
987
|
export const flipTransformationSchema = fliptransformationFlipTransformationSchema;
|
|
983
988
|
/**
|
|
984
989
|
* 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.
|
|
985
990
|
*/
|
|
986
991
|
export const fontFontSchema = z.object({
|
|
987
|
-
src: z.string()
|
|
992
|
+
src: z.string()
|
|
988
993
|
}).strict();
|
|
989
994
|
export const fontSchema = fontFontSchema;
|
|
990
995
|
/**
|
|
@@ -998,7 +1003,7 @@ export const fontSchema = fontFontSchema;
|
|
|
998
1003
|
* @deprecated
|
|
999
1004
|
*/
|
|
1000
1005
|
export const htmlassetHtmlAssetSchema = z.object({
|
|
1001
|
-
type: z.enum([
|
|
1006
|
+
type: z.enum(['html']),
|
|
1002
1007
|
html: z.string(),
|
|
1003
1008
|
css: z.optional(z.string()),
|
|
1004
1009
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1017,35 +1022,43 @@ export const htmlassetHtmlAssetSchema = z.object({
|
|
|
1017
1022
|
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1018
1023
|
background: z.optional(z.string()),
|
|
1019
1024
|
position: z.optional(z.enum([
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
]))
|
|
1025
|
+
'top',
|
|
1026
|
+
'topRight',
|
|
1027
|
+
'right',
|
|
1028
|
+
'bottomRight',
|
|
1029
|
+
'bottom',
|
|
1030
|
+
'bottomLeft',
|
|
1031
|
+
'left',
|
|
1032
|
+
'topLeft',
|
|
1033
|
+
'center'
|
|
1034
|
+
]))
|
|
1030
1035
|
}).strict();
|
|
1031
1036
|
export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
1032
1037
|
/**
|
|
1033
1038
|
* 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.
|
|
1034
1039
|
*/
|
|
1035
1040
|
export const imageassetImageAssetSchema = z.object({
|
|
1036
|
-
type: z.enum([
|
|
1041
|
+
type: z.enum(['image']),
|
|
1037
1042
|
src: z.string().min(1).regex(/\S/),
|
|
1038
|
-
crop: z.optional(cropCropSchema)
|
|
1043
|
+
crop: z.optional(cropCropSchema)
|
|
1039
1044
|
}).strict();
|
|
1040
1045
|
export const imageAssetSchema = imageassetImageAssetSchema;
|
|
1041
1046
|
/**
|
|
1042
1047
|
* The ImageToVideoAsset lets you create a video from an image and a text prompt.
|
|
1043
1048
|
*/
|
|
1044
1049
|
export const imagetovideoassetImageToVideoAssetSchema = z.object({
|
|
1045
|
-
type: z.enum([
|
|
1050
|
+
type: z.enum(['image-to-video']),
|
|
1046
1051
|
src: z.string().min(1),
|
|
1047
1052
|
prompt: z.optional(z.string()),
|
|
1048
|
-
aspectRatio: z.optional(z.enum([
|
|
1053
|
+
aspectRatio: z.optional(z.enum([
|
|
1054
|
+
'1:1',
|
|
1055
|
+
'4:3',
|
|
1056
|
+
'16:9',
|
|
1057
|
+
'9:16',
|
|
1058
|
+
'3:4',
|
|
1059
|
+
'21:9',
|
|
1060
|
+
'9:21'
|
|
1061
|
+
])),
|
|
1049
1062
|
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1050
1063
|
return undefined; if (Array.isArray(v))
|
|
1051
1064
|
return v; if (typeof v === 'string') {
|
|
@@ -1053,7 +1066,7 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
|
|
|
1053
1066
|
return v;
|
|
1054
1067
|
return Number(v);
|
|
1055
1068
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1056
|
-
crop: z.optional(cropCropSchema)
|
|
1069
|
+
crop: z.optional(cropCropSchema)
|
|
1057
1070
|
}).strict();
|
|
1058
1071
|
export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
|
|
1059
1072
|
/**
|
|
@@ -1061,24 +1074,24 @@ export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
|
|
|
1061
1074
|
*/
|
|
1062
1075
|
export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
|
|
1063
1076
|
preset: z.enum([
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
])
|
|
1077
|
+
'conference',
|
|
1078
|
+
'interview',
|
|
1079
|
+
'lecture',
|
|
1080
|
+
'meeting',
|
|
1081
|
+
'mobile_phone',
|
|
1082
|
+
'music',
|
|
1083
|
+
'podcast',
|
|
1084
|
+
'studio',
|
|
1085
|
+
'voice_over'
|
|
1086
|
+
])
|
|
1074
1087
|
}).strict();
|
|
1075
1088
|
export const dolbyEnhancementOptionsSchema = dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
1076
1089
|
/**
|
|
1077
1090
|
* 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.
|
|
1078
1091
|
*/
|
|
1079
1092
|
export const dolbyEnhancementDolbyEnhancementSchema = z.object({
|
|
1080
|
-
provider: z.string().default(
|
|
1081
|
-
options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
|
|
1093
|
+
provider: z.string().default('dolby'),
|
|
1094
|
+
options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema
|
|
1082
1095
|
}).strict();
|
|
1083
1096
|
export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
1084
1097
|
/**
|
|
@@ -1087,17 +1100,15 @@ export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
|
1087
1100
|
* <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
|
|
1088
1101
|
* </ul>
|
|
1089
1102
|
*/
|
|
1090
|
-
export const audioEnhancementAudioEnhancementSchema = z
|
|
1091
|
-
.
|
|
1092
|
-
|
|
1093
|
-
})
|
|
1094
|
-
.and(dolbyEnhancementDolbyEnhancementSchema);
|
|
1103
|
+
export const audioEnhancementAudioEnhancementSchema = z.object({
|
|
1104
|
+
enhancement: z.literal('dolbyEnhancement_DolbyEnhancement')
|
|
1105
|
+
}).strict().and(dolbyEnhancementDolbyEnhancementSchema);
|
|
1095
1106
|
export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
|
|
1096
1107
|
/**
|
|
1097
1108
|
* Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
|
|
1098
1109
|
*/
|
|
1099
1110
|
export const enhancementsEnhancementsSchema = z.object({
|
|
1100
|
-
audio: z.optional(audioEnhancementAudioEnhancementSchema)
|
|
1111
|
+
audio: z.optional(audioEnhancementAudioEnhancementSchema)
|
|
1101
1112
|
}).strict();
|
|
1102
1113
|
export const enhancementsSchema = enhancementsEnhancementsSchema;
|
|
1103
1114
|
/**
|
|
@@ -1106,14 +1117,14 @@ export const enhancementsSchema = enhancementsEnhancementsSchema;
|
|
|
1106
1117
|
export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
|
|
1107
1118
|
status: z.string(),
|
|
1108
1119
|
title: z.string(),
|
|
1109
|
-
detail: z.string()
|
|
1120
|
+
detail: z.string()
|
|
1110
1121
|
}).strict();
|
|
1111
1122
|
export const ingestErrorResponseDataSchema = ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
1112
1123
|
/**
|
|
1113
1124
|
* Error response data for validation and other errors returned by the Ingest API.
|
|
1114
1125
|
*/
|
|
1115
1126
|
export const ingesterrorresponseIngestErrorResponseSchema = z.object({
|
|
1116
|
-
errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
|
|
1127
|
+
errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema)
|
|
1117
1128
|
}).strict();
|
|
1118
1129
|
export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseSchema;
|
|
1119
1130
|
/**
|
|
@@ -1121,14 +1132,14 @@ export const ingestErrorResponseSchema = ingesterrorresponseIngestErrorResponseS
|
|
|
1121
1132
|
*/
|
|
1122
1133
|
export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
|
|
1123
1134
|
type: z.string(),
|
|
1124
|
-
id: z.string()
|
|
1135
|
+
id: z.string()
|
|
1125
1136
|
}).strict();
|
|
1126
1137
|
export const queuedSourceResponseDataSchema = queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
1127
1138
|
/**
|
|
1128
1139
|
* 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.
|
|
1129
1140
|
*/
|
|
1130
1141
|
export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
|
|
1131
|
-
data: queuedsourceresponsedataQueuedSourceResponseDataSchema
|
|
1142
|
+
data: queuedsourceresponsedataQueuedSourceResponseDataSchema
|
|
1132
1143
|
}).strict();
|
|
1133
1144
|
export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceResponseSchema;
|
|
1134
1145
|
/**
|
|
@@ -1137,7 +1148,7 @@ export const queuedSourceResponseSchema = queuedsourceresponseQueuedSourceRespon
|
|
|
1137
1148
|
export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
|
|
1138
1149
|
id: z.string(),
|
|
1139
1150
|
url: z.string(),
|
|
1140
|
-
expires: z.string()
|
|
1151
|
+
expires: z.string()
|
|
1141
1152
|
}).strict();
|
|
1142
1153
|
export const uploadResponseAttributesSchema = uploadresponseattributesUploadResponseAttributesSchema;
|
|
1143
1154
|
/**
|
|
@@ -1146,14 +1157,14 @@ export const uploadResponseAttributesSchema = uploadresponseattributesUploadResp
|
|
|
1146
1157
|
export const uploadresponsedataUploadResponseDataSchema = z.object({
|
|
1147
1158
|
type: z.string(),
|
|
1148
1159
|
id: z.string(),
|
|
1149
|
-
attributes: uploadresponseattributesUploadResponseAttributesSchema
|
|
1160
|
+
attributes: uploadresponseattributesUploadResponseAttributesSchema
|
|
1150
1161
|
}).strict();
|
|
1151
1162
|
export const uploadResponseDataSchema = uploadresponsedataUploadResponseDataSchema;
|
|
1152
1163
|
/**
|
|
1153
1164
|
* 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.
|
|
1154
1165
|
*/
|
|
1155
1166
|
export const uploadresponseUploadResponseSchema = z.object({
|
|
1156
|
-
data: uploadresponsedataUploadResponseDataSchema
|
|
1167
|
+
data: uploadresponsedataUploadResponseDataSchema
|
|
1157
1168
|
}).strict();
|
|
1158
1169
|
export const uploadResponseSchema = uploadresponseUploadResponseSchema;
|
|
1159
1170
|
/**
|
|
@@ -1167,21 +1178,21 @@ export const speedSpeedSchema = z.object({
|
|
|
1167
1178
|
return v;
|
|
1168
1179
|
return Number(v);
|
|
1169
1180
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1170
|
-
preservePitch: z.optional(z.boolean())
|
|
1181
|
+
preservePitch: z.optional(z.boolean())
|
|
1171
1182
|
}).strict();
|
|
1172
1183
|
export const speedSchema = speedSpeedSchema;
|
|
1173
1184
|
/**
|
|
1174
1185
|
* Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
|
|
1175
1186
|
*/
|
|
1176
1187
|
export const transcriptionTranscriptionSchema = z.object({
|
|
1177
|
-
format: z.optional(z.enum([
|
|
1188
|
+
format: z.optional(z.enum(['srt', 'vtt']))
|
|
1178
1189
|
}).strict();
|
|
1179
1190
|
export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
1180
1191
|
/**
|
|
1181
1192
|
* 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.
|
|
1182
1193
|
*/
|
|
1183
1194
|
export const lumaassetLumaAssetSchema = z.object({
|
|
1184
|
-
type: z.enum([
|
|
1195
|
+
type: z.enum(['luma']),
|
|
1185
1196
|
src: z.string().min(1).regex(/\S/),
|
|
1186
1197
|
trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1187
1198
|
return undefined; if (Array.isArray(v))
|
|
@@ -1189,7 +1200,7 @@ export const lumaassetLumaAssetSchema = z.object({
|
|
|
1189
1200
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1190
1201
|
return v;
|
|
1191
1202
|
return Number(v);
|
|
1192
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1203
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1193
1204
|
}).strict();
|
|
1194
1205
|
export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
1195
1206
|
/**
|
|
@@ -1197,7 +1208,7 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
|
1197
1208
|
*/
|
|
1198
1209
|
export const mergefieldMergeFieldSchema = z.object({
|
|
1199
1210
|
find: z.string(),
|
|
1200
|
-
replace: z.
|
|
1211
|
+
replace: z.unknown()
|
|
1201
1212
|
}).strict();
|
|
1202
1213
|
export const mergeFieldSchema = mergefieldMergeFieldSchema;
|
|
1203
1214
|
/**
|
|
@@ -1210,7 +1221,7 @@ export const posterPosterSchema = z.object({
|
|
|
1210
1221
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1211
1222
|
return v;
|
|
1212
1223
|
return Number(v);
|
|
1213
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1224
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1214
1225
|
}).strict();
|
|
1215
1226
|
export const posterSchema = posterPosterSchema;
|
|
1216
1227
|
/**
|
|
@@ -1230,7 +1241,7 @@ export const rangeRangeSchema = z.object({
|
|
|
1230
1241
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1231
1242
|
return v;
|
|
1232
1243
|
return Number(v);
|
|
1233
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1244
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1234
1245
|
}).strict();
|
|
1235
1246
|
export const rangeSchema = rangeRangeSchema;
|
|
1236
1247
|
/**
|
|
@@ -1244,9 +1255,14 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
|
|
|
1244
1255
|
providerId: z.optional(z.string()),
|
|
1245
1256
|
filename: z.optional(z.string()),
|
|
1246
1257
|
url: z.optional(z.string()),
|
|
1247
|
-
status: z.enum([
|
|
1258
|
+
status: z.enum([
|
|
1259
|
+
'importing',
|
|
1260
|
+
'ready',
|
|
1261
|
+
'failed',
|
|
1262
|
+
'deleted'
|
|
1263
|
+
]),
|
|
1248
1264
|
created: z.optional(z.string()),
|
|
1249
|
-
updated: z.optional(z.string())
|
|
1265
|
+
updated: z.optional(z.string())
|
|
1250
1266
|
}).strict();
|
|
1251
1267
|
export const assetResponseAttributesSchema = assetresponseattributesAssetResponseAttributesSchema;
|
|
1252
1268
|
/**
|
|
@@ -1254,21 +1270,21 @@ export const assetResponseAttributesSchema = assetresponseattributesAssetRespons
|
|
|
1254
1270
|
*/
|
|
1255
1271
|
export const assetresponsedataAssetResponseDataSchema = z.object({
|
|
1256
1272
|
type: z.string(),
|
|
1257
|
-
attributes: assetresponseattributesAssetResponseAttributesSchema
|
|
1273
|
+
attributes: assetresponseattributesAssetResponseAttributesSchema
|
|
1258
1274
|
}).strict();
|
|
1259
1275
|
export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
|
|
1260
1276
|
/**
|
|
1261
1277
|
* 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.
|
|
1262
1278
|
*/
|
|
1263
1279
|
export const assetrenderresponseAssetRenderResponseSchema = z.object({
|
|
1264
|
-
data: z.array(assetresponsedataAssetResponseDataSchema)
|
|
1280
|
+
data: z.array(assetresponsedataAssetResponseDataSchema)
|
|
1265
1281
|
}).strict();
|
|
1266
1282
|
export const assetRenderResponseSchema = assetrenderresponseAssetRenderResponseSchema;
|
|
1267
1283
|
/**
|
|
1268
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.
|
|
1269
1285
|
*/
|
|
1270
1286
|
export const assetresponseAssetResponseSchema = z.object({
|
|
1271
|
-
data: assetresponsedataAssetResponseDataSchema
|
|
1287
|
+
data: assetresponsedataAssetResponseDataSchema
|
|
1272
1288
|
}).strict();
|
|
1273
1289
|
export const assetResponseSchema = assetresponseAssetResponseSchema;
|
|
1274
1290
|
/**
|
|
@@ -1277,7 +1293,7 @@ export const assetResponseSchema = assetresponseAssetResponseSchema;
|
|
|
1277
1293
|
export const proberesponseProbeResponseSchema = z.object({
|
|
1278
1294
|
success: z.boolean(),
|
|
1279
1295
|
message: z.string(),
|
|
1280
|
-
response: z.record(z.string(), z.unknown())
|
|
1296
|
+
response: z.record(z.string(), z.unknown())
|
|
1281
1297
|
}).strict();
|
|
1282
1298
|
export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
1283
1299
|
/**
|
|
@@ -1285,7 +1301,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
|
1285
1301
|
*/
|
|
1286
1302
|
export const queuedresponsedataQueuedResponseDataSchema = z.object({
|
|
1287
1303
|
message: z.string(),
|
|
1288
|
-
id: z.string()
|
|
1304
|
+
id: z.string()
|
|
1289
1305
|
}).strict();
|
|
1290
1306
|
export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSchema;
|
|
1291
1307
|
/**
|
|
@@ -1294,7 +1310,7 @@ export const queuedResponseDataSchema = queuedresponsedataQueuedResponseDataSche
|
|
|
1294
1310
|
export const queuedresponseQueuedResponseSchema = z.object({
|
|
1295
1311
|
success: z.boolean(),
|
|
1296
1312
|
message: z.string(),
|
|
1297
|
-
response: queuedresponsedataQueuedResponseDataSchema
|
|
1313
|
+
response: queuedresponsedataQueuedResponseDataSchema
|
|
1298
1314
|
}).strict();
|
|
1299
1315
|
export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
|
|
1300
1316
|
/**
|
|
@@ -1304,7 +1320,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
|
|
|
1304
1320
|
id: z.string(),
|
|
1305
1321
|
name: z.string(),
|
|
1306
1322
|
created: z.optional(z.string()),
|
|
1307
|
-
updated: z.optional(z.string())
|
|
1323
|
+
updated: z.optional(z.string())
|
|
1308
1324
|
}).strict();
|
|
1309
1325
|
export const templateListResponseItemSchema = templatelistresponseitemTemplateListResponseItemSchema;
|
|
1310
1326
|
/**
|
|
@@ -1312,7 +1328,7 @@ export const templateListResponseItemSchema = templatelistresponseitemTemplateLi
|
|
|
1312
1328
|
*/
|
|
1313
1329
|
export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
|
|
1314
1330
|
owner: z.string(),
|
|
1315
|
-
templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
|
|
1331
|
+
templates: z.array(templatelistresponseitemTemplateListResponseItemSchema)
|
|
1316
1332
|
}).strict();
|
|
1317
1333
|
export const templateListResponseDataSchema = templatelistresponsedataTemplateListResponseDataSchema;
|
|
1318
1334
|
/**
|
|
@@ -1321,7 +1337,7 @@ export const templateListResponseDataSchema = templatelistresponsedataTemplateLi
|
|
|
1321
1337
|
export const templatelistresponseTemplateListResponseSchema = z.object({
|
|
1322
1338
|
success: z.boolean(),
|
|
1323
1339
|
message: z.string(),
|
|
1324
|
-
response: templatelistresponsedataTemplateListResponseDataSchema
|
|
1340
|
+
response: templatelistresponsedataTemplateListResponseDataSchema
|
|
1325
1341
|
}).strict();
|
|
1326
1342
|
export const templateListResponseSchema = templatelistresponseTemplateListResponseSchema;
|
|
1327
1343
|
/**
|
|
@@ -1329,7 +1345,7 @@ export const templateListResponseSchema = templatelistresponseTemplateListRespon
|
|
|
1329
1345
|
*/
|
|
1330
1346
|
export const templateresponsedataTemplateResponseDataSchema = z.object({
|
|
1331
1347
|
message: z.string(),
|
|
1332
|
-
id: z.string()
|
|
1348
|
+
id: z.string()
|
|
1333
1349
|
}).strict();
|
|
1334
1350
|
export const templateResponseDataSchema = templateresponsedataTemplateResponseDataSchema;
|
|
1335
1351
|
/**
|
|
@@ -1338,14 +1354,14 @@ export const templateResponseDataSchema = templateresponsedataTemplateResponseDa
|
|
|
1338
1354
|
export const templateresponseTemplateResponseSchema = z.object({
|
|
1339
1355
|
success: z.boolean(),
|
|
1340
1356
|
message: z.string(),
|
|
1341
|
-
response: templateresponsedataTemplateResponseDataSchema
|
|
1357
|
+
response: templateresponsedataTemplateResponseDataSchema
|
|
1342
1358
|
}).strict();
|
|
1343
1359
|
export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
1344
1360
|
/**
|
|
1345
1361
|
* Font properties for the active/highlighted word.
|
|
1346
1362
|
*/
|
|
1347
1363
|
export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
1348
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1364
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffff00'),
|
|
1349
1365
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1350
1366
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1351
1367
|
return undefined; if (Array.isArray(v))
|
|
@@ -1354,66 +1370,84 @@ export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
|
1354
1370
|
return v;
|
|
1355
1371
|
return Number(v);
|
|
1356
1372
|
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1373
|
+
textDecoration: z.optional(z.enum([
|
|
1374
|
+
'none',
|
|
1375
|
+
'underline',
|
|
1376
|
+
'line-through'
|
|
1377
|
+
]))
|
|
1357
1378
|
}).strict();
|
|
1358
1379
|
export const richCaptionActiveFontSchema = richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
1359
1380
|
/**
|
|
1360
|
-
*
|
|
1361
|
-
*/
|
|
1362
|
-
export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
1363
|
-
style: z.enum([
|
|
1364
|
-
"karaoke",
|
|
1365
|
-
"highlight",
|
|
1366
|
-
"pop",
|
|
1367
|
-
"fade",
|
|
1368
|
-
"slide",
|
|
1369
|
-
"bounce",
|
|
1370
|
-
"typewriter",
|
|
1371
|
-
"none",
|
|
1372
|
-
]),
|
|
1373
|
-
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1374
|
-
return undefined; if (Array.isArray(v))
|
|
1375
|
-
return v; if (typeof v === 'string') {
|
|
1376
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1377
|
-
return v;
|
|
1378
|
-
return Number(v);
|
|
1379
|
-
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1380
|
-
direction: z.optional(z.enum(["left", "right", "up", "down"])),
|
|
1381
|
-
}).strict();
|
|
1382
|
-
export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1383
|
-
/**
|
|
1384
|
-
* Word-level timing information for caption animation.
|
|
1381
|
+
* Font properties for rich captions. Defaults to Roboto.
|
|
1385
1382
|
*/
|
|
1386
|
-
export const
|
|
1387
|
-
|
|
1388
|
-
|
|
1383
|
+
export const richcaptionpropertiesRichCaptionFontSchema = z.object({
|
|
1384
|
+
family: z.optional(z.string()).default('Roboto'),
|
|
1385
|
+
size: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1389
1386
|
return undefined; if (Array.isArray(v))
|
|
1390
1387
|
return v; if (typeof v === 'string') {
|
|
1391
1388
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1392
1389
|
return v;
|
|
1393
1390
|
return Number(v);
|
|
1394
|
-
} return v; }), z.number().gte(
|
|
1395
|
-
|
|
1391
|
+
} return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1392
|
+
weight: z.optional(z.unknown()).default('400'),
|
|
1393
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#ffffff'),
|
|
1394
|
+
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1396
1395
|
return undefined; if (Array.isArray(v))
|
|
1397
1396
|
return v; if (typeof v === 'string') {
|
|
1398
1397
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1399
1398
|
return v;
|
|
1400
1399
|
return Number(v);
|
|
1401
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1402
|
-
|
|
1400
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1401
|
+
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1402
|
+
textDecoration: z.optional(z.enum([
|
|
1403
|
+
'none',
|
|
1404
|
+
'underline',
|
|
1405
|
+
'line-through'
|
|
1406
|
+
]))
|
|
1407
|
+
}).strict();
|
|
1408
|
+
/**
|
|
1409
|
+
* Word-level animation properties for caption effects.
|
|
1410
|
+
*/
|
|
1411
|
+
export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
1412
|
+
style: z.enum([
|
|
1413
|
+
'karaoke',
|
|
1414
|
+
'highlight',
|
|
1415
|
+
'pop',
|
|
1416
|
+
'fade',
|
|
1417
|
+
'slide',
|
|
1418
|
+
'bounce',
|
|
1419
|
+
'typewriter',
|
|
1420
|
+
'none'
|
|
1421
|
+
]),
|
|
1422
|
+
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1403
1423
|
return undefined; if (Array.isArray(v))
|
|
1404
1424
|
return v; if (typeof v === 'string') {
|
|
1405
1425
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1406
1426
|
return v;
|
|
1407
1427
|
return Number(v);
|
|
1408
|
-
} return v; }), z.number().gte(0).lte(
|
|
1428
|
+
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1429
|
+
direction: z.optional(z.enum([
|
|
1430
|
+
'left',
|
|
1431
|
+
'right',
|
|
1432
|
+
'up',
|
|
1433
|
+
'down'
|
|
1434
|
+
]))
|
|
1409
1435
|
}).strict();
|
|
1410
|
-
export const
|
|
1436
|
+
export const richCaptionWordAnimationSchema = richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
1411
1437
|
/**
|
|
1412
1438
|
* Text alignment properties (horizontal and vertical).
|
|
1413
1439
|
*/
|
|
1414
1440
|
export const richtextpropertiesRichTextAlignmentSchema = z.object({
|
|
1415
|
-
horizontal: z.optional(z.enum([
|
|
1416
|
-
|
|
1441
|
+
horizontal: z.optional(z.enum([
|
|
1442
|
+
'left',
|
|
1443
|
+
'center',
|
|
1444
|
+
'right'
|
|
1445
|
+
])),
|
|
1446
|
+
vertical: z.optional(z.enum([
|
|
1447
|
+
'top',
|
|
1448
|
+
'middle',
|
|
1449
|
+
'bottom'
|
|
1450
|
+
]))
|
|
1417
1451
|
}).strict();
|
|
1418
1452
|
export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema;
|
|
1419
1453
|
/**
|
|
@@ -1421,12 +1455,12 @@ export const richTextAlignmentSchema = richtextpropertiesRichTextAlignmentSchema
|
|
|
1421
1455
|
*/
|
|
1422
1456
|
export const richtextpropertiesRichTextAnimationSchema = z.object({
|
|
1423
1457
|
preset: z.enum([
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1458
|
+
'fadeIn',
|
|
1459
|
+
'slideIn',
|
|
1460
|
+
'typewriter',
|
|
1461
|
+
'ascend',
|
|
1462
|
+
'shift',
|
|
1463
|
+
'movingLetters'
|
|
1430
1464
|
]),
|
|
1431
1465
|
duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1432
1466
|
return undefined; if (Array.isArray(v))
|
|
@@ -1435,8 +1469,13 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
|
|
|
1435
1469
|
return v;
|
|
1436
1470
|
return Number(v);
|
|
1437
1471
|
} return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1438
|
-
style: z.optional(z.enum([
|
|
1439
|
-
direction: z.optional(z.enum([
|
|
1472
|
+
style: z.optional(z.enum(['character', 'word'])),
|
|
1473
|
+
direction: z.optional(z.enum([
|
|
1474
|
+
'left',
|
|
1475
|
+
'right',
|
|
1476
|
+
'up',
|
|
1477
|
+
'down'
|
|
1478
|
+
]))
|
|
1440
1479
|
}).strict();
|
|
1441
1480
|
export const richTextAnimationSchema = richtextpropertiesRichTextAnimationSchema;
|
|
1442
1481
|
/**
|
|
@@ -1457,7 +1496,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
|
1457
1496
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1458
1497
|
return v;
|
|
1459
1498
|
return Number(v);
|
|
1460
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1499
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1461
1500
|
}).strict();
|
|
1462
1501
|
export const richTextBackgroundSchema = richtextpropertiesRichTextBackgroundSchema;
|
|
1463
1502
|
/**
|
|
@@ -1471,7 +1510,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
|
|
|
1471
1510
|
return v;
|
|
1472
1511
|
return Number(v);
|
|
1473
1512
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1474
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1513
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1475
1514
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1476
1515
|
return undefined; if (Array.isArray(v))
|
|
1477
1516
|
return v; if (typeof v === 'string') {
|
|
@@ -1485,13 +1524,13 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
|
|
|
1485
1524
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1486
1525
|
return v;
|
|
1487
1526
|
return Number(v);
|
|
1488
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1527
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1489
1528
|
}).strict();
|
|
1490
1529
|
/**
|
|
1491
1530
|
* Gradient properties for text fill.
|
|
1492
1531
|
*/
|
|
1493
1532
|
export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
1494
|
-
type: z.optional(z.enum([
|
|
1533
|
+
type: z.optional(z.enum(['linear', 'radial'])),
|
|
1495
1534
|
angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1496
1535
|
return undefined; if (Array.isArray(v))
|
|
1497
1536
|
return v; if (typeof v === 'string') {
|
|
@@ -1499,8 +1538,7 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
|
1499
1538
|
return v;
|
|
1500
1539
|
return Number(v);
|
|
1501
1540
|
} return v; }), z.number().gte(0).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1502
|
-
stops: z
|
|
1503
|
-
.array(z.object({
|
|
1541
|
+
stops: z.array(z.object({
|
|
1504
1542
|
offset: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1505
1543
|
return undefined; if (Array.isArray(v))
|
|
1506
1544
|
return v; if (typeof v === 'string') {
|
|
@@ -1508,9 +1546,8 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
|
1508
1546
|
return v;
|
|
1509
1547
|
return Number(v);
|
|
1510
1548
|
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1511
|
-
color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1512
|
-
}))
|
|
1513
|
-
.min(2),
|
|
1549
|
+
color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1550
|
+
})).min(2)
|
|
1514
1551
|
}).strict();
|
|
1515
1552
|
export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
1516
1553
|
/**
|
|
@@ -1544,7 +1581,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
|
|
|
1544
1581
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1545
1582
|
return v;
|
|
1546
1583
|
return Number(v);
|
|
1547
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1584
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
1548
1585
|
}).strict();
|
|
1549
1586
|
/**
|
|
1550
1587
|
* Text shadow properties.
|
|
@@ -1571,14 +1608,14 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
|
|
|
1571
1608
|
return v;
|
|
1572
1609
|
return Number(v);
|
|
1573
1610
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1574
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1611
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1575
1612
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1576
1613
|
return undefined; if (Array.isArray(v))
|
|
1577
1614
|
return v; if (typeof v === 'string') {
|
|
1578
1615
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1579
1616
|
return v;
|
|
1580
1617
|
return Number(v);
|
|
1581
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
1618
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
1582
1619
|
}).strict();
|
|
1583
1620
|
export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
|
|
1584
1621
|
/**
|
|
@@ -1592,14 +1629,14 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
|
|
|
1592
1629
|
return v;
|
|
1593
1630
|
return Number(v);
|
|
1594
1631
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1595
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1632
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1596
1633
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1597
1634
|
return undefined; if (Array.isArray(v))
|
|
1598
1635
|
return v; if (typeof v === 'string') {
|
|
1599
1636
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1600
1637
|
return v;
|
|
1601
1638
|
return Number(v);
|
|
1602
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1639
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1603
1640
|
}).strict();
|
|
1604
1641
|
export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
1605
1642
|
/**
|
|
@@ -1608,20 +1645,21 @@ export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
|
1608
1645
|
export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
1609
1646
|
font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
|
|
1610
1647
|
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1648
|
+
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1611
1649
|
scale: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1612
1650
|
return undefined; if (Array.isArray(v))
|
|
1613
1651
|
return v; if (typeof v === 'string') {
|
|
1614
1652
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1615
1653
|
return v;
|
|
1616
1654
|
return Number(v);
|
|
1617
|
-
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1655
|
+
} return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
1618
1656
|
}).strict();
|
|
1619
1657
|
export const richCaptionActiveSchema = richcaptionpropertiesRichCaptionActiveSchema;
|
|
1620
1658
|
/**
|
|
1621
1659
|
* Font properties for rich text.
|
|
1622
1660
|
*/
|
|
1623
1661
|
export const richtextpropertiesRichTextFontSchema = z.object({
|
|
1624
|
-
family: z.optional(z.string()).default(
|
|
1662
|
+
family: z.optional(z.string()).default('Open Sans'),
|
|
1625
1663
|
size: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1626
1664
|
return undefined; if (Array.isArray(v))
|
|
1627
1665
|
return v; if (typeof v === 'string') {
|
|
@@ -1629,8 +1667,8 @@ export const richtextpropertiesRichTextFontSchema = z.object({
|
|
|
1629
1667
|
return v;
|
|
1630
1668
|
return Number(v);
|
|
1631
1669
|
} return v; }), z.number().int().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
|
|
1632
|
-
weight: z.optional(z.unknown()).default(
|
|
1633
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
1670
|
+
weight: z.optional(z.unknown()).default('400'),
|
|
1671
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
1634
1672
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1635
1673
|
return undefined; if (Array.isArray(v))
|
|
1636
1674
|
return v; if (typeof v === 'string') {
|
|
@@ -1639,7 +1677,7 @@ export const richtextpropertiesRichTextFontSchema = z.object({
|
|
|
1639
1677
|
return Number(v);
|
|
1640
1678
|
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1641
1679
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1642
|
-
stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
|
|
1680
|
+
stroke: z.optional(richtextpropertiesRichTextStrokeSchema)
|
|
1643
1681
|
}).strict();
|
|
1644
1682
|
export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
|
|
1645
1683
|
/**
|
|
@@ -1667,9 +1705,18 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
|
|
|
1667
1705
|
return v;
|
|
1668
1706
|
return Number(v);
|
|
1669
1707
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
|
|
1670
|
-
textTransform: z.optional(z.enum([
|
|
1671
|
-
|
|
1672
|
-
|
|
1708
|
+
textTransform: z.optional(z.enum([
|
|
1709
|
+
'none',
|
|
1710
|
+
'uppercase',
|
|
1711
|
+
'lowercase',
|
|
1712
|
+
'capitalize'
|
|
1713
|
+
])),
|
|
1714
|
+
textDecoration: z.optional(z.enum([
|
|
1715
|
+
'none',
|
|
1716
|
+
'underline',
|
|
1717
|
+
'line-through'
|
|
1718
|
+
])),
|
|
1719
|
+
gradient: z.optional(richtextpropertiesRichTextGradientSchema)
|
|
1673
1720
|
}).strict();
|
|
1674
1721
|
export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
1675
1722
|
/**
|
|
@@ -1679,39 +1726,27 @@ export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
|
1679
1726
|
*
|
|
1680
1727
|
*/
|
|
1681
1728
|
export const richcaptionassetRichCaptionAssetSchema = z.object({
|
|
1682
|
-
type: z.enum([
|
|
1683
|
-
src: z.
|
|
1684
|
-
|
|
1685
|
-
font: z.optional(richtextpropertiesRichTextFontSchema),
|
|
1729
|
+
type: z.enum(['rich-caption']),
|
|
1730
|
+
src: z.string().min(1),
|
|
1731
|
+
font: z.optional(richcaptionpropertiesRichCaptionFontSchema),
|
|
1686
1732
|
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
1687
1733
|
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1688
1734
|
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1689
1735
|
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1690
|
-
|
|
1736
|
+
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1737
|
+
padding: z.optional(z.union([
|
|
1738
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1691
1739
|
return undefined; if (Array.isArray(v))
|
|
1692
1740
|
return v; if (typeof v === 'string') {
|
|
1693
1741
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1694
1742
|
return v;
|
|
1695
1743
|
return Number(v);
|
|
1696
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1744
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1745
|
+
richtextpropertiesRichTextPaddingSchema
|
|
1746
|
+
])),
|
|
1697
1747
|
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1698
1748
|
active: z.optional(richcaptionpropertiesRichCaptionActiveSchema),
|
|
1699
|
-
wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1700
|
-
position: z.optional(z.enum(["top", "center", "bottom"])),
|
|
1701
|
-
maxWidth: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1702
|
-
return undefined; if (Array.isArray(v))
|
|
1703
|
-
return v; if (typeof v === 'string') {
|
|
1704
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1705
|
-
return v;
|
|
1706
|
-
return Number(v);
|
|
1707
|
-
} return v; }), z.number().gte(0.1).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.9),
|
|
1708
|
-
maxLines: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1709
|
-
return undefined; if (Array.isArray(v))
|
|
1710
|
-
return v; if (typeof v === 'string') {
|
|
1711
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1712
|
-
return v;
|
|
1713
|
-
return Number(v);
|
|
1714
|
-
} return v; }), z.number().int().gte(1).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2),
|
|
1749
|
+
wordAnimation: z.optional(richcaptionpropertiesRichCaptionWordAnimationSchema)
|
|
1715
1750
|
}).strict();
|
|
1716
1751
|
export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
1717
1752
|
/**
|
|
@@ -1720,7 +1755,7 @@ export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
|
1720
1755
|
*
|
|
1721
1756
|
*/
|
|
1722
1757
|
export const richtextassetRichTextAssetSchema = z.object({
|
|
1723
|
-
type: z.enum([
|
|
1758
|
+
type: z.enum(['rich-text']),
|
|
1724
1759
|
text: z.string().max(5000),
|
|
1725
1760
|
font: z.optional(richtextpropertiesRichTextFontSchema),
|
|
1726
1761
|
style: z.optional(richtextpropertiesRichTextStyleSchema),
|
|
@@ -1728,15 +1763,18 @@ export const richtextassetRichTextAssetSchema = z.object({
|
|
|
1728
1763
|
shadow: z.optional(richtextpropertiesRichTextShadowSchema),
|
|
1729
1764
|
background: z.optional(richtextpropertiesRichTextBackgroundSchema),
|
|
1730
1765
|
border: z.optional(richtextpropertiesRichTextBorderSchema),
|
|
1731
|
-
padding: z.optional(z.union([
|
|
1766
|
+
padding: z.optional(z.union([
|
|
1767
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1732
1768
|
return undefined; if (Array.isArray(v))
|
|
1733
1769
|
return v; if (typeof v === 'string') {
|
|
1734
1770
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1735
1771
|
return v;
|
|
1736
1772
|
return Number(v);
|
|
1737
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1773
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1774
|
+
richtextpropertiesRichTextPaddingSchema
|
|
1775
|
+
])),
|
|
1738
1776
|
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1739
|
-
animation: z.optional(richtextpropertiesRichTextAnimationSchema)
|
|
1777
|
+
animation: z.optional(richtextpropertiesRichTextAnimationSchema)
|
|
1740
1778
|
}).strict();
|
|
1741
1779
|
export const richTextAssetSchema = richtextassetRichTextAssetSchema;
|
|
1742
1780
|
/**
|
|
@@ -1745,8 +1783,8 @@ export const richTextAssetSchema = richtextassetRichTextAssetSchema;
|
|
|
1745
1783
|
export const transferresponseattributesTransferResponseAttributesSchema = z.object({
|
|
1746
1784
|
id: z.optional(z.string()),
|
|
1747
1785
|
owner: z.optional(z.string()),
|
|
1748
|
-
status: z.optional(z.enum([
|
|
1749
|
-
created: z.optional(z.string())
|
|
1786
|
+
status: z.optional(z.enum(['queued', 'failed'])),
|
|
1787
|
+
created: z.optional(z.string())
|
|
1750
1788
|
}).strict();
|
|
1751
1789
|
export const transferResponseAttributesSchema = transferresponseattributesTransferResponseAttributesSchema;
|
|
1752
1790
|
/**
|
|
@@ -1754,14 +1792,14 @@ export const transferResponseAttributesSchema = transferresponseattributesTransf
|
|
|
1754
1792
|
*/
|
|
1755
1793
|
export const transferresponsedataTransferResponseDataSchema = z.object({
|
|
1756
1794
|
type: z.optional(z.string()),
|
|
1757
|
-
attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
|
|
1795
|
+
attributes: z.optional(transferresponseattributesTransferResponseAttributesSchema)
|
|
1758
1796
|
}).strict();
|
|
1759
1797
|
export const transferResponseDataSchema = transferresponsedataTransferResponseDataSchema;
|
|
1760
1798
|
/**
|
|
1761
1799
|
* 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.
|
|
1762
1800
|
*/
|
|
1763
1801
|
export const transferresponseTransferResponseSchema = z.object({
|
|
1764
|
-
data: transferresponsedataTransferResponseDataSchema
|
|
1802
|
+
data: transferresponsedataTransferResponseDataSchema
|
|
1765
1803
|
}).strict();
|
|
1766
1804
|
export const transferResponseSchema = transferresponseTransferResponseSchema;
|
|
1767
1805
|
/**
|
|
@@ -1770,7 +1808,7 @@ export const transferResponseSchema = transferresponseTransferResponseSchema;
|
|
|
1770
1808
|
export const transferTransferSchema = z.object({
|
|
1771
1809
|
url: z.string(),
|
|
1772
1810
|
id: z.string(),
|
|
1773
|
-
destinations: z.array(destinationsDestinationsSchema)
|
|
1811
|
+
destinations: z.array(destinationsDestinationsSchema)
|
|
1774
1812
|
}).strict();
|
|
1775
1813
|
export const transferSchema = transferTransferSchema;
|
|
1776
1814
|
/**
|
|
@@ -1779,8 +1817,12 @@ export const transferSchema = transferTransferSchema;
|
|
|
1779
1817
|
*
|
|
1780
1818
|
*/
|
|
1781
1819
|
export const shapeassetShapeAssetSchema = z.object({
|
|
1782
|
-
type: z.enum([
|
|
1783
|
-
shape: z.enum([
|
|
1820
|
+
type: z.enum(['shape']),
|
|
1821
|
+
shape: z.enum([
|
|
1822
|
+
'rectangle',
|
|
1823
|
+
'circle',
|
|
1824
|
+
'line'
|
|
1825
|
+
]),
|
|
1784
1826
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1785
1827
|
return undefined; if (Array.isArray(v))
|
|
1786
1828
|
return v; if (typeof v === 'string') {
|
|
@@ -1803,7 +1845,7 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1803
1845
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1804
1846
|
return v;
|
|
1805
1847
|
return Number(v);
|
|
1806
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1848
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1807
1849
|
})),
|
|
1808
1850
|
stroke: z.optional(z.object({
|
|
1809
1851
|
color: z.optional(z.string()),
|
|
@@ -1813,7 +1855,7 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1813
1855
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1814
1856
|
return v;
|
|
1815
1857
|
return Number(v);
|
|
1816
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1858
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1817
1859
|
})),
|
|
1818
1860
|
rectangle: z.optional(z.object({
|
|
1819
1861
|
width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1836,7 +1878,7 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1836
1878
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1837
1879
|
return v;
|
|
1838
1880
|
return Number(v);
|
|
1839
|
-
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1881
|
+
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1840
1882
|
})),
|
|
1841
1883
|
circle: z.optional(z.object({
|
|
1842
1884
|
radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1845,7 +1887,7 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1845
1887
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1846
1888
|
return v;
|
|
1847
1889
|
return Number(v);
|
|
1848
|
-
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1890
|
+
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1849
1891
|
})),
|
|
1850
1892
|
line: z.optional(z.object({
|
|
1851
1893
|
length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1861,8 +1903,8 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1861
1903
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1862
1904
|
return v;
|
|
1863
1905
|
return Number(v);
|
|
1864
|
-
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1865
|
-
}))
|
|
1906
|
+
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
1907
|
+
}))
|
|
1866
1908
|
}).strict();
|
|
1867
1909
|
export const shapeAssetSchema = shapeassetShapeAssetSchema;
|
|
1868
1910
|
/**
|
|
@@ -1882,7 +1924,7 @@ export const sizeSizeSchema = z.object({
|
|
|
1882
1924
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
1883
1925
|
return v;
|
|
1884
1926
|
return Number(v);
|
|
1885
|
-
} return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1927
|
+
} return v; }), z.number().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
1886
1928
|
}).strict();
|
|
1887
1929
|
export const sizeSchema = sizeSizeSchema;
|
|
1888
1930
|
/**
|
|
@@ -1890,25 +1932,35 @@ export const sizeSchema = sizeSizeSchema;
|
|
|
1890
1932
|
*/
|
|
1891
1933
|
export const renditionRenditionSchema = z.object({
|
|
1892
1934
|
format: z.optional(z.enum([
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1935
|
+
'mp4',
|
|
1936
|
+
'webm',
|
|
1937
|
+
'mov',
|
|
1938
|
+
'avi',
|
|
1939
|
+
'mkv',
|
|
1940
|
+
'ogv',
|
|
1941
|
+
'wmv',
|
|
1942
|
+
'avif',
|
|
1943
|
+
'gif',
|
|
1944
|
+
'mp3',
|
|
1945
|
+
'wav',
|
|
1946
|
+
'jpg',
|
|
1947
|
+
'png',
|
|
1948
|
+
'webp',
|
|
1949
|
+
'tif'
|
|
1908
1950
|
])),
|
|
1909
1951
|
size: z.optional(sizeSizeSchema),
|
|
1910
|
-
fit: z.optional(z.enum([
|
|
1911
|
-
|
|
1952
|
+
fit: z.optional(z.enum([
|
|
1953
|
+
'cover',
|
|
1954
|
+
'contain',
|
|
1955
|
+
'crop'
|
|
1956
|
+
])),
|
|
1957
|
+
resolution: z.optional(z.enum([
|
|
1958
|
+
'preview',
|
|
1959
|
+
'mobile',
|
|
1960
|
+
'sd',
|
|
1961
|
+
'hd',
|
|
1962
|
+
'fhd'
|
|
1963
|
+
])),
|
|
1912
1964
|
quality: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
1913
1965
|
return undefined; if (Array.isArray(v))
|
|
1914
1966
|
return v; if (typeof v === 'string') {
|
|
@@ -1927,7 +1979,7 @@ export const renditionRenditionSchema = z.object({
|
|
|
1927
1979
|
z.literal(48),
|
|
1928
1980
|
z.literal(50),
|
|
1929
1981
|
z.literal(59.94),
|
|
1930
|
-
z.literal(60)
|
|
1982
|
+
z.literal(60)
|
|
1931
1983
|
])),
|
|
1932
1984
|
speed: z.optional(speedSpeedSchema),
|
|
1933
1985
|
keyframeInterval: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -1940,7 +1992,7 @@ export const renditionRenditionSchema = z.object({
|
|
|
1940
1992
|
fixOffset: z.optional(z.boolean()),
|
|
1941
1993
|
fixRotation: z.optional(z.boolean()),
|
|
1942
1994
|
enhance: z.optional(enhancementsEnhancementsSchema),
|
|
1943
|
-
filename: z.optional(z.string())
|
|
1995
|
+
filename: z.optional(z.string())
|
|
1944
1996
|
}).strict();
|
|
1945
1997
|
export const renditionSchema = renditionRenditionSchema;
|
|
1946
1998
|
/**
|
|
@@ -1948,7 +2000,7 @@ export const renditionSchema = renditionRenditionSchema;
|
|
|
1948
2000
|
*/
|
|
1949
2001
|
export const outputsOutputsSchema = z.object({
|
|
1950
2002
|
renditions: z.optional(z.array(renditionRenditionSchema)),
|
|
1951
|
-
transcription: z.optional(transcriptionTranscriptionSchema)
|
|
2003
|
+
transcription: z.optional(transcriptionTranscriptionSchema)
|
|
1952
2004
|
}).strict();
|
|
1953
2005
|
export const outputsSchema = outputsOutputsSchema;
|
|
1954
2006
|
/**
|
|
@@ -1957,12 +2009,12 @@ export const outputsSchema = outputsOutputsSchema;
|
|
|
1957
2009
|
export const renditionresponseattributesRenditionResponseAttributesSchema = z.object({
|
|
1958
2010
|
id: z.string(),
|
|
1959
2011
|
status: z.optional(z.enum([
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
2012
|
+
'queued',
|
|
2013
|
+
'importing',
|
|
2014
|
+
'ready',
|
|
2015
|
+
'failed',
|
|
2016
|
+
'deleted',
|
|
2017
|
+
'overwritten'
|
|
1966
2018
|
])),
|
|
1967
2019
|
url: z.optional(z.string()),
|
|
1968
2020
|
executionTime: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2000,14 +2052,14 @@ export const renditionresponseattributesRenditionResponseAttributesSchema = z.ob
|
|
|
2000
2052
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2001
2053
|
return v;
|
|
2002
2054
|
return Number(v);
|
|
2003
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2055
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2004
2056
|
}).strict();
|
|
2005
2057
|
export const renditionResponseAttributesSchema = renditionresponseattributesRenditionResponseAttributesSchema;
|
|
2006
2058
|
/**
|
|
2007
2059
|
* The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
|
|
2008
2060
|
*/
|
|
2009
2061
|
export const outputsresponseOutputsResponseSchema = z.object({
|
|
2010
|
-
renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
|
|
2062
|
+
renditions: z.optional(z.array(renditionresponseattributesRenditionResponseAttributesSchema))
|
|
2011
2063
|
}).strict();
|
|
2012
2064
|
export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
|
|
2013
2065
|
/**
|
|
@@ -2019,12 +2071,12 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
|
|
|
2019
2071
|
input: z.optional(z.string()),
|
|
2020
2072
|
source: z.optional(z.string()),
|
|
2021
2073
|
status: z.optional(z.enum([
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2074
|
+
'queued',
|
|
2075
|
+
'importing',
|
|
2076
|
+
'ready',
|
|
2077
|
+
'failed',
|
|
2078
|
+
'deleted',
|
|
2079
|
+
'overwritten'
|
|
2028
2080
|
])),
|
|
2029
2081
|
outputs: z.optional(outputsresponseOutputsResponseSchema),
|
|
2030
2082
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -2056,7 +2108,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
|
|
|
2056
2108
|
return Number(v);
|
|
2057
2109
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2058
2110
|
created: z.optional(z.string()),
|
|
2059
|
-
updated: z.optional(z.string())
|
|
2111
|
+
updated: z.optional(z.string())
|
|
2060
2112
|
}).strict();
|
|
2061
2113
|
export const sourceResponseAttributesSchema = sourceresponseattributesSourceResponseAttributesSchema;
|
|
2062
2114
|
/**
|
|
@@ -2065,21 +2117,21 @@ export const sourceResponseAttributesSchema = sourceresponseattributesSourceResp
|
|
|
2065
2117
|
export const sourceresponsedataSourceResponseDataSchema = z.object({
|
|
2066
2118
|
type: z.string(),
|
|
2067
2119
|
id: z.string(),
|
|
2068
|
-
attributes: sourceresponseattributesSourceResponseAttributesSchema
|
|
2120
|
+
attributes: sourceresponseattributesSourceResponseAttributesSchema
|
|
2069
2121
|
}).strict();
|
|
2070
2122
|
export const sourceResponseDataSchema = sourceresponsedataSourceResponseDataSchema;
|
|
2071
2123
|
/**
|
|
2072
2124
|
* A list of all ingested source files fetched or uploaded to a users account.
|
|
2073
2125
|
*/
|
|
2074
2126
|
export const sourcelistresponseSourceListResponseSchema = z.object({
|
|
2075
|
-
data: z.array(sourceresponsedataSourceResponseDataSchema)
|
|
2127
|
+
data: z.array(sourceresponsedataSourceResponseDataSchema)
|
|
2076
2128
|
}).strict();
|
|
2077
2129
|
export const sourceListResponseSchema = sourcelistresponseSourceListResponseSchema;
|
|
2078
2130
|
/**
|
|
2079
2131
|
* 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.
|
|
2080
2132
|
*/
|
|
2081
2133
|
export const sourceresponseSourceResponseSchema = z.object({
|
|
2082
|
-
data: sourceresponsedataSourceResponseDataSchema
|
|
2134
|
+
data: sourceresponsedataSourceResponseDataSchema
|
|
2083
2135
|
}).strict();
|
|
2084
2136
|
export const sourceResponseSchema = sourceresponseSourceResponseSchema;
|
|
2085
2137
|
/**
|
|
@@ -2090,7 +2142,7 @@ export const sourceSourceSchema = z.object({
|
|
|
2090
2142
|
url: z.optional(z.string()),
|
|
2091
2143
|
outputs: z.optional(outputsOutputsSchema),
|
|
2092
2144
|
destinations: z.optional(destinationsDestinationsSchema),
|
|
2093
|
-
callback: z.optional(z.string())
|
|
2145
|
+
callback: z.optional(z.string())
|
|
2094
2146
|
}).strict();
|
|
2095
2147
|
export const sourceSchema = sourceSourceSchema;
|
|
2096
2148
|
/**
|
|
@@ -2098,14 +2150,18 @@ export const sourceSchema = sourceSourceSchema;
|
|
|
2098
2150
|
*/
|
|
2099
2151
|
export const soundtrackSoundtrackSchema = z.object({
|
|
2100
2152
|
src: z.string().min(1).regex(/\S/),
|
|
2101
|
-
effect: z.optional(z.enum([
|
|
2153
|
+
effect: z.optional(z.enum([
|
|
2154
|
+
'fadeIn',
|
|
2155
|
+
'fadeOut',
|
|
2156
|
+
'fadeInFadeOut'
|
|
2157
|
+
])),
|
|
2102
2158
|
volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2103
2159
|
return undefined; if (Array.isArray(v))
|
|
2104
2160
|
return v; if (typeof v === 'string') {
|
|
2105
2161
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2106
2162
|
return v;
|
|
2107
2163
|
return Number(v);
|
|
2108
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2164
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2109
2165
|
}).strict();
|
|
2110
2166
|
export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
2111
2167
|
/**
|
|
@@ -2121,7 +2177,7 @@ export const svgpropertiesSvgGradientStopSchema = z.object({
|
|
|
2121
2177
|
return v;
|
|
2122
2178
|
return Number(v);
|
|
2123
2179
|
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2124
|
-
color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2180
|
+
color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2125
2181
|
}).strict();
|
|
2126
2182
|
export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
2127
2183
|
/**
|
|
@@ -2130,7 +2186,7 @@ export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
|
2130
2186
|
*
|
|
2131
2187
|
*/
|
|
2132
2188
|
export const svgpropertiesSvgLinearGradientFillSchema = z.object({
|
|
2133
|
-
type: z.enum([
|
|
2189
|
+
type: z.enum(['linear']),
|
|
2134
2190
|
angle: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2135
2191
|
return undefined; if (Array.isArray(v))
|
|
2136
2192
|
return v; if (typeof v === 'string') {
|
|
@@ -2145,7 +2201,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
|
|
|
2145
2201
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2146
2202
|
return v;
|
|
2147
2203
|
return Number(v);
|
|
2148
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2204
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2149
2205
|
}).strict();
|
|
2150
2206
|
export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSchema;
|
|
2151
2207
|
/**
|
|
@@ -2154,7 +2210,7 @@ export const svgLinearGradientFillSchema = svgpropertiesSvgLinearGradientFillSch
|
|
|
2154
2210
|
*
|
|
2155
2211
|
*/
|
|
2156
2212
|
export const svgpropertiesSvgRadialGradientFillSchema = z.object({
|
|
2157
|
-
type: z.enum([
|
|
2213
|
+
type: z.enum(['radial']),
|
|
2158
2214
|
stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
|
|
2159
2215
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2160
2216
|
return undefined; if (Array.isArray(v))
|
|
@@ -2162,7 +2218,7 @@ export const svgpropertiesSvgRadialGradientFillSchema = z.object({
|
|
|
2162
2218
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2163
2219
|
return v;
|
|
2164
2220
|
return Number(v);
|
|
2165
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2221
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2166
2222
|
}).strict();
|
|
2167
2223
|
export const svgRadialGradientFillSchema = svgpropertiesSvgRadialGradientFillSchema;
|
|
2168
2224
|
/**
|
|
@@ -2191,32 +2247,29 @@ export const svgpropertiesSvgShadowSchema = z.object({
|
|
|
2191
2247
|
return v;
|
|
2192
2248
|
return Number(v);
|
|
2193
2249
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2194
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
2250
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
2195
2251
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2196
2252
|
return undefined; if (Array.isArray(v))
|
|
2197
2253
|
return v; if (typeof v === 'string') {
|
|
2198
2254
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2199
2255
|
return v;
|
|
2200
2256
|
return Number(v);
|
|
2201
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2257
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2202
2258
|
}).strict();
|
|
2203
2259
|
export const svgShadowSchema = svgpropertiesSvgShadowSchema;
|
|
2204
2260
|
/**
|
|
2205
2261
|
* A solid color fill for SVG shapes.
|
|
2206
2262
|
*/
|
|
2207
2263
|
export const svgpropertiesSvgSolidFillSchema = z.object({
|
|
2208
|
-
type: z.enum([
|
|
2209
|
-
color: z
|
|
2210
|
-
.string()
|
|
2211
|
-
.regex(/^#[A-Fa-f0-9]{6}$/)
|
|
2212
|
-
.default("#000000"),
|
|
2264
|
+
type: z.enum(['solid']),
|
|
2265
|
+
color: z.string().regex(/^#[A-Fa-f0-9]{6}$/).default('#000000'),
|
|
2213
2266
|
opacity: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2214
2267
|
return undefined; if (Array.isArray(v))
|
|
2215
2268
|
return v; if (typeof v === 'string') {
|
|
2216
2269
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2217
2270
|
return v;
|
|
2218
2271
|
return Number(v);
|
|
2219
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2272
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
2220
2273
|
}).strict();
|
|
2221
2274
|
export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
|
|
2222
2275
|
/**
|
|
@@ -2236,7 +2289,7 @@ export const svgFillSchema = svgpropertiesSvgFillSchema;
|
|
|
2236
2289
|
*
|
|
2237
2290
|
*/
|
|
2238
2291
|
export const svgpropertiesSvgStrokeSchema = z.object({
|
|
2239
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(
|
|
2292
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default('#000000'),
|
|
2240
2293
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2241
2294
|
return undefined; if (Array.isArray(v))
|
|
2242
2295
|
return v; if (typeof v === 'string') {
|
|
@@ -2251,8 +2304,16 @@ export const svgpropertiesSvgStrokeSchema = z.object({
|
|
|
2251
2304
|
return v;
|
|
2252
2305
|
return Number(v);
|
|
2253
2306
|
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2254
|
-
lineCap: z.optional(z.enum([
|
|
2255
|
-
|
|
2307
|
+
lineCap: z.optional(z.enum([
|
|
2308
|
+
'butt',
|
|
2309
|
+
'round',
|
|
2310
|
+
'square'
|
|
2311
|
+
])),
|
|
2312
|
+
lineJoin: z.optional(z.enum([
|
|
2313
|
+
'miter',
|
|
2314
|
+
'round',
|
|
2315
|
+
'bevel'
|
|
2316
|
+
])),
|
|
2256
2317
|
dashArray: z.optional(z.array(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2257
2318
|
return undefined; if (Array.isArray(v))
|
|
2258
2319
|
return v; if (typeof v === 'string') {
|
|
@@ -2266,7 +2327,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
|
|
|
2266
2327
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2267
2328
|
return v;
|
|
2268
2329
|
return Number(v);
|
|
2269
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2330
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2270
2331
|
}).strict();
|
|
2271
2332
|
export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
|
|
2272
2333
|
/**
|
|
@@ -2315,7 +2376,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
|
|
|
2315
2376
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2316
2377
|
return v;
|
|
2317
2378
|
return Number(v);
|
|
2318
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2379
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
|
|
2319
2380
|
}).strict();
|
|
2320
2381
|
export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
2321
2382
|
/**
|
|
@@ -2324,7 +2385,7 @@ export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
|
2324
2385
|
*
|
|
2325
2386
|
*/
|
|
2326
2387
|
export const svgshapesSvgArrowShapeSchema = z.object({
|
|
2327
|
-
type: z.enum([
|
|
2388
|
+
type: z.enum(['arrow']),
|
|
2328
2389
|
length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2329
2390
|
return undefined; if (Array.isArray(v))
|
|
2330
2391
|
return v; if (typeof v === 'string') {
|
|
@@ -2352,7 +2413,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
|
|
|
2352
2413
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2353
2414
|
return v;
|
|
2354
2415
|
return Number(v);
|
|
2355
|
-
} return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2416
|
+
} return v; }), z.number().gte(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2356
2417
|
}).strict();
|
|
2357
2418
|
export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
2358
2419
|
/**
|
|
@@ -2361,14 +2422,14 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
|
2361
2422
|
*
|
|
2362
2423
|
*/
|
|
2363
2424
|
export const svgshapesSvgCircleShapeSchema = z.object({
|
|
2364
|
-
type: z.enum([
|
|
2425
|
+
type: z.enum(['circle']),
|
|
2365
2426
|
radius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2366
2427
|
return undefined; if (Array.isArray(v))
|
|
2367
2428
|
return v; if (typeof v === 'string') {
|
|
2368
2429
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2369
2430
|
return v;
|
|
2370
2431
|
return Number(v);
|
|
2371
|
-
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2432
|
+
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2372
2433
|
}).strict();
|
|
2373
2434
|
export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
2374
2435
|
/**
|
|
@@ -2377,7 +2438,7 @@ export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
|
2377
2438
|
*
|
|
2378
2439
|
*/
|
|
2379
2440
|
export const svgshapesSvgCrossShapeSchema = z.object({
|
|
2380
|
-
type: z.enum([
|
|
2441
|
+
type: z.enum(['cross']),
|
|
2381
2442
|
width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2382
2443
|
return undefined; if (Array.isArray(v))
|
|
2383
2444
|
return v; if (typeof v === 'string') {
|
|
@@ -2398,7 +2459,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
|
|
|
2398
2459
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2399
2460
|
return v;
|
|
2400
2461
|
return Number(v);
|
|
2401
|
-
} return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2462
|
+
} return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2402
2463
|
}).strict();
|
|
2403
2464
|
export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
2404
2465
|
/**
|
|
@@ -2407,7 +2468,7 @@ export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
|
2407
2468
|
*
|
|
2408
2469
|
*/
|
|
2409
2470
|
export const svgshapesSvgEllipseShapeSchema = z.object({
|
|
2410
|
-
type: z.enum([
|
|
2471
|
+
type: z.enum(['ellipse']),
|
|
2411
2472
|
radiusX: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2412
2473
|
return undefined; if (Array.isArray(v))
|
|
2413
2474
|
return v; if (typeof v === 'string') {
|
|
@@ -2421,7 +2482,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
|
|
|
2421
2482
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2422
2483
|
return v;
|
|
2423
2484
|
return Number(v);
|
|
2424
|
-
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2485
|
+
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2425
2486
|
}).strict();
|
|
2426
2487
|
export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
2427
2488
|
/**
|
|
@@ -2430,14 +2491,14 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
|
2430
2491
|
*
|
|
2431
2492
|
*/
|
|
2432
2493
|
export const svgshapesSvgHeartShapeSchema = z.object({
|
|
2433
|
-
type: z.enum([
|
|
2494
|
+
type: z.enum(['heart']),
|
|
2434
2495
|
size: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2435
2496
|
return undefined; if (Array.isArray(v))
|
|
2436
2497
|
return v; if (typeof v === 'string') {
|
|
2437
2498
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2438
2499
|
return v;
|
|
2439
2500
|
return Number(v);
|
|
2440
|
-
} return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2501
|
+
} return v; }), z.number().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2441
2502
|
}).strict();
|
|
2442
2503
|
export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
2443
2504
|
/**
|
|
@@ -2446,7 +2507,7 @@ export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
|
2446
2507
|
*
|
|
2447
2508
|
*/
|
|
2448
2509
|
export const svgshapesSvgLineShapeSchema = z.object({
|
|
2449
|
-
type: z.enum([
|
|
2510
|
+
type: z.enum(['line']),
|
|
2450
2511
|
length: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2451
2512
|
return undefined; if (Array.isArray(v))
|
|
2452
2513
|
return v; if (typeof v === 'string') {
|
|
@@ -2460,7 +2521,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
|
|
|
2460
2521
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2461
2522
|
return v;
|
|
2462
2523
|
return Number(v);
|
|
2463
|
-
} return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2524
|
+
} return v; }), z.number().gte(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2464
2525
|
}).strict();
|
|
2465
2526
|
export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
2466
2527
|
/**
|
|
@@ -2481,8 +2542,8 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
|
2481
2542
|
*
|
|
2482
2543
|
*/
|
|
2483
2544
|
export const svgshapesSvgPathShapeSchema = z.object({
|
|
2484
|
-
type: z.enum([
|
|
2485
|
-
d: z.string().min(1).max(100000)
|
|
2545
|
+
type: z.enum(['path']),
|
|
2546
|
+
d: z.string().min(1).max(100000)
|
|
2486
2547
|
}).strict();
|
|
2487
2548
|
export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
2488
2549
|
/**
|
|
@@ -2492,7 +2553,7 @@ export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
|
2492
2553
|
*
|
|
2493
2554
|
*/
|
|
2494
2555
|
export const svgshapesSvgPolygonShapeSchema = z.object({
|
|
2495
|
-
type: z.enum([
|
|
2556
|
+
type: z.enum(['polygon']),
|
|
2496
2557
|
sides: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2497
2558
|
return undefined; if (Array.isArray(v))
|
|
2498
2559
|
return v; if (typeof v === 'string') {
|
|
@@ -2506,7 +2567,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
|
|
|
2506
2567
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2507
2568
|
return v;
|
|
2508
2569
|
return Number(v);
|
|
2509
|
-
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2570
|
+
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2510
2571
|
}).strict();
|
|
2511
2572
|
export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
2512
2573
|
/**
|
|
@@ -2515,7 +2576,7 @@ export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
|
2515
2576
|
*
|
|
2516
2577
|
*/
|
|
2517
2578
|
export const svgshapesSvgRectangleShapeSchema = z.object({
|
|
2518
|
-
type: z.enum([
|
|
2579
|
+
type: z.enum(['rectangle']),
|
|
2519
2580
|
width: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2520
2581
|
return undefined; if (Array.isArray(v))
|
|
2521
2582
|
return v; if (typeof v === 'string') {
|
|
@@ -2536,7 +2597,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
|
|
|
2536
2597
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2537
2598
|
return v;
|
|
2538
2599
|
return Number(v);
|
|
2539
|
-
} return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2600
|
+
} return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
|
|
2540
2601
|
}).strict();
|
|
2541
2602
|
export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
2542
2603
|
/**
|
|
@@ -2545,7 +2606,7 @@ export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
|
2545
2606
|
*
|
|
2546
2607
|
*/
|
|
2547
2608
|
export const svgshapesSvgRingShapeSchema = z.object({
|
|
2548
|
-
type: z.enum([
|
|
2609
|
+
type: z.enum(['ring']),
|
|
2549
2610
|
outerRadius: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2550
2611
|
return undefined; if (Array.isArray(v))
|
|
2551
2612
|
return v; if (typeof v === 'string') {
|
|
@@ -2559,7 +2620,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
|
|
|
2559
2620
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2560
2621
|
return v;
|
|
2561
2622
|
return Number(v);
|
|
2562
|
-
} return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2623
|
+
} return v; }), z.number().gte(0).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2563
2624
|
}).strict();
|
|
2564
2625
|
export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
2565
2626
|
/**
|
|
@@ -2569,7 +2630,7 @@ export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
|
2569
2630
|
*
|
|
2570
2631
|
*/
|
|
2571
2632
|
export const svgshapesSvgStarShapeSchema = z.object({
|
|
2572
|
-
type: z.enum([
|
|
2633
|
+
type: z.enum(['star']),
|
|
2573
2634
|
points: z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2574
2635
|
return undefined; if (Array.isArray(v))
|
|
2575
2636
|
return v; if (typeof v === 'string') {
|
|
@@ -2590,7 +2651,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
|
|
|
2590
2651
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2591
2652
|
return v;
|
|
2592
2653
|
return Number(v);
|
|
2593
|
-
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2654
|
+
} return v; }), z.number().gte(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2594
2655
|
}).strict();
|
|
2595
2656
|
export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
|
|
2596
2657
|
/**
|
|
@@ -2721,29 +2782,37 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
|
|
|
2721
2782
|
*/
|
|
2722
2783
|
export const templaterenderTemplateRenderSchema = z.object({
|
|
2723
2784
|
id: z.string(),
|
|
2724
|
-
merge: z.optional(z.array(mergefieldMergeFieldSchema))
|
|
2785
|
+
merge: z.optional(z.array(mergefieldMergeFieldSchema))
|
|
2725
2786
|
}).strict();
|
|
2726
2787
|
export const templateRenderSchema = templaterenderTemplateRenderSchema;
|
|
2727
2788
|
/**
|
|
2728
2789
|
* Horizontal and vertical alignment properties for text.
|
|
2729
2790
|
*/
|
|
2730
2791
|
export const textpropertiesTextAlignmentSchema = z.object({
|
|
2731
|
-
horizontal: z.optional(z.enum([
|
|
2732
|
-
|
|
2792
|
+
horizontal: z.optional(z.enum([
|
|
2793
|
+
'left',
|
|
2794
|
+
'center',
|
|
2795
|
+
'right'
|
|
2796
|
+
])),
|
|
2797
|
+
vertical: z.optional(z.enum([
|
|
2798
|
+
'top',
|
|
2799
|
+
'center',
|
|
2800
|
+
'bottom'
|
|
2801
|
+
]))
|
|
2733
2802
|
}).strict();
|
|
2734
2803
|
export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
|
|
2735
2804
|
/**
|
|
2736
2805
|
* Animation properties for text entrance effects.
|
|
2737
2806
|
*/
|
|
2738
2807
|
export const textpropertiesTextAnimationSchema = z.object({
|
|
2739
|
-
preset: z.enum([
|
|
2808
|
+
preset: z.enum(['typewriter']),
|
|
2740
2809
|
duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2741
2810
|
return undefined; if (Array.isArray(v))
|
|
2742
2811
|
return v; if (typeof v === 'string') {
|
|
2743
2812
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2744
2813
|
return v;
|
|
2745
2814
|
return Number(v);
|
|
2746
|
-
} return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2815
|
+
} return v; }), z.number().gte(0.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2747
2816
|
}).strict();
|
|
2748
2817
|
/**
|
|
2749
2818
|
* Displays a background box behind the text.
|
|
@@ -2770,7 +2839,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
|
|
|
2770
2839
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2771
2840
|
return v;
|
|
2772
2841
|
return Number(v);
|
|
2773
|
-
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2842
|
+
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2774
2843
|
}).strict();
|
|
2775
2844
|
export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
|
|
2776
2845
|
/**
|
|
@@ -2806,7 +2875,7 @@ export const textpropertiesTextFontSchema = z.object({
|
|
|
2806
2875
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2807
2876
|
return v;
|
|
2808
2877
|
return Number(v);
|
|
2809
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2878
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2810
2879
|
}).strict();
|
|
2811
2880
|
export const textFontSchema = textpropertiesTextFontSchema;
|
|
2812
2881
|
/**
|
|
@@ -2820,7 +2889,7 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
2820
2889
|
return v;
|
|
2821
2890
|
return Number(v);
|
|
2822
2891
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2823
|
-
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2892
|
+
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
2824
2893
|
}).strict();
|
|
2825
2894
|
/**
|
|
2826
2895
|
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
@@ -2828,7 +2897,7 @@ export const textpropertiesTextStrokeSchema = z.object({
|
|
|
2828
2897
|
*
|
|
2829
2898
|
*/
|
|
2830
2899
|
export const textassetTextAssetSchema = z.object({
|
|
2831
|
-
type: z.enum([
|
|
2900
|
+
type: z.enum(['text']),
|
|
2832
2901
|
text: z.string(),
|
|
2833
2902
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2834
2903
|
return undefined; if (Array.isArray(v))
|
|
@@ -2849,14 +2918,14 @@ export const textassetTextAssetSchema = z.object({
|
|
|
2849
2918
|
alignment: z.optional(textpropertiesTextAlignmentSchema),
|
|
2850
2919
|
stroke: z.optional(textpropertiesTextStrokeSchema),
|
|
2851
2920
|
animation: z.optional(textpropertiesTextAnimationSchema),
|
|
2852
|
-
ellipsis: z.optional(z.string())
|
|
2921
|
+
ellipsis: z.optional(z.string())
|
|
2853
2922
|
}).strict();
|
|
2854
2923
|
export const textAssetSchema = textassetTextAssetSchema;
|
|
2855
2924
|
/**
|
|
2856
2925
|
* The TextToImageAsset lets you create a dynamic image from a text prompt.
|
|
2857
2926
|
*/
|
|
2858
2927
|
export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
2859
|
-
type: z.enum([
|
|
2928
|
+
type: z.enum(['text-to-image']),
|
|
2860
2929
|
prompt: z.string(),
|
|
2861
2930
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2862
2931
|
return undefined; if (Array.isArray(v))
|
|
@@ -2872,7 +2941,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
|
2872
2941
|
return v;
|
|
2873
2942
|
return Number(v);
|
|
2874
2943
|
} return v; }), z.number().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2875
|
-
crop: z.optional(cropCropSchema)
|
|
2944
|
+
crop: z.optional(cropCropSchema)
|
|
2876
2945
|
}).strict();
|
|
2877
2946
|
export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
2878
2947
|
/**
|
|
@@ -2892,16 +2961,36 @@ export const thumbnailThumbnailSchema = z.object({
|
|
|
2892
2961
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2893
2962
|
return v;
|
|
2894
2963
|
return Number(v);
|
|
2895
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2964
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
2896
2965
|
}).strict();
|
|
2897
2966
|
export const thumbnailSchema = thumbnailThumbnailSchema;
|
|
2898
2967
|
/**
|
|
2899
2968
|
* The output format, render range and type of media to generate.
|
|
2900
2969
|
*/
|
|
2901
2970
|
export const outputOutputSchema = z.object({
|
|
2902
|
-
format: z.enum([
|
|
2903
|
-
|
|
2904
|
-
|
|
2971
|
+
format: z.enum([
|
|
2972
|
+
'mp4',
|
|
2973
|
+
'gif',
|
|
2974
|
+
'mp3',
|
|
2975
|
+
'jpg',
|
|
2976
|
+
'png',
|
|
2977
|
+
'bmp'
|
|
2978
|
+
]),
|
|
2979
|
+
resolution: z.optional(z.enum([
|
|
2980
|
+
'preview',
|
|
2981
|
+
'mobile',
|
|
2982
|
+
'sd',
|
|
2983
|
+
'hd',
|
|
2984
|
+
'1080',
|
|
2985
|
+
'4k'
|
|
2986
|
+
])),
|
|
2987
|
+
aspectRatio: z.optional(z.enum([
|
|
2988
|
+
'16:9',
|
|
2989
|
+
'9:16',
|
|
2990
|
+
'1:1',
|
|
2991
|
+
'4:5',
|
|
2992
|
+
'4:3'
|
|
2993
|
+
])),
|
|
2905
2994
|
size: z.optional(sizeSizeSchema),
|
|
2906
2995
|
fps: z.optional(z.union([
|
|
2907
2996
|
z.literal(12),
|
|
@@ -2914,16 +3003,29 @@ export const outputOutputSchema = z.object({
|
|
|
2914
3003
|
z.literal(48),
|
|
2915
3004
|
z.literal(50),
|
|
2916
3005
|
z.literal(59.94),
|
|
2917
|
-
z.literal(60)
|
|
3006
|
+
z.literal(60)
|
|
3007
|
+
])),
|
|
3008
|
+
scaleTo: z.optional(z.enum([
|
|
3009
|
+
'preview',
|
|
3010
|
+
'mobile',
|
|
3011
|
+
'sd',
|
|
3012
|
+
'hd',
|
|
3013
|
+
'1080',
|
|
3014
|
+
'4k'
|
|
3015
|
+
])),
|
|
3016
|
+
quality: z.optional(z.enum([
|
|
3017
|
+
'verylow',
|
|
3018
|
+
'low',
|
|
3019
|
+
'medium',
|
|
3020
|
+
'high',
|
|
3021
|
+
'veryhigh'
|
|
2918
3022
|
])),
|
|
2919
|
-
scaleTo: z.optional(z.enum(["preview", "mobile", "sd", "hd", "1080", "4k"])),
|
|
2920
|
-
quality: z.optional(z.enum(["verylow", "low", "medium", "high", "veryhigh"])),
|
|
2921
3023
|
repeat: z.optional(z.boolean()),
|
|
2922
3024
|
mute: z.optional(z.boolean()),
|
|
2923
3025
|
range: z.optional(rangeRangeSchema),
|
|
2924
3026
|
poster: z.optional(posterPosterSchema),
|
|
2925
3027
|
thumbnail: z.optional(thumbnailThumbnailSchema),
|
|
2926
|
-
destinations: z.optional(z.array(destinationsDestinationsSchema))
|
|
3028
|
+
destinations: z.optional(z.array(destinationsDestinationsSchema))
|
|
2927
3029
|
}).strict();
|
|
2928
3030
|
export const outputSchema = outputOutputSchema;
|
|
2929
3031
|
/**
|
|
@@ -2931,133 +3033,133 @@ export const outputSchema = outputOutputSchema;
|
|
|
2931
3033
|
*/
|
|
2932
3034
|
export const transitionTransitionSchema = z.object({
|
|
2933
3035
|
in: z.optional(z.enum([
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
3036
|
+
'none',
|
|
3037
|
+
'fade',
|
|
3038
|
+
'fadeSlow',
|
|
3039
|
+
'fadeFast',
|
|
3040
|
+
'reveal',
|
|
3041
|
+
'revealSlow',
|
|
3042
|
+
'revealFast',
|
|
3043
|
+
'wipeLeft',
|
|
3044
|
+
'wipeLeftSlow',
|
|
3045
|
+
'wipeLeftFast',
|
|
3046
|
+
'wipeRight',
|
|
3047
|
+
'wipeRightSlow',
|
|
3048
|
+
'wipeRightFast',
|
|
3049
|
+
'slideLeft',
|
|
3050
|
+
'slideLeftSlow',
|
|
3051
|
+
'slideLeftFast',
|
|
3052
|
+
'slideRight',
|
|
3053
|
+
'slideRightSlow',
|
|
3054
|
+
'slideRightFast',
|
|
3055
|
+
'slideUp',
|
|
3056
|
+
'slideUpSlow',
|
|
3057
|
+
'slideUpFast',
|
|
3058
|
+
'slideDown',
|
|
3059
|
+
'slideDownSlow',
|
|
3060
|
+
'slideDownFast',
|
|
3061
|
+
'carouselLeft',
|
|
3062
|
+
'carouselLeftSlow',
|
|
3063
|
+
'carouselLeftFast',
|
|
3064
|
+
'carouselRight',
|
|
3065
|
+
'carouselRightSlow',
|
|
3066
|
+
'carouselRightFast',
|
|
3067
|
+
'carouselUp',
|
|
3068
|
+
'carouselUpSlow',
|
|
3069
|
+
'carouselUpFast',
|
|
3070
|
+
'carouselDown',
|
|
3071
|
+
'carouselDownSlow',
|
|
3072
|
+
'carouselDownFast',
|
|
3073
|
+
'shuffleTopRight',
|
|
3074
|
+
'shuffleTopRightSlow',
|
|
3075
|
+
'shuffleTopRightFast',
|
|
3076
|
+
'shuffleRightTop',
|
|
3077
|
+
'shuffleRightTopSlow',
|
|
3078
|
+
'shuffleRightTopFast',
|
|
3079
|
+
'shuffleRightBottom',
|
|
3080
|
+
'shuffleRightBottomSlow',
|
|
3081
|
+
'shuffleRightBottomFast',
|
|
3082
|
+
'shuffleBottomRight',
|
|
3083
|
+
'shuffleBottomRightSlow',
|
|
3084
|
+
'shuffleBottomRightFast',
|
|
3085
|
+
'shuffleBottomLeft',
|
|
3086
|
+
'shuffleBottomLeftSlow',
|
|
3087
|
+
'shuffleBottomLeftFast',
|
|
3088
|
+
'shuffleLeftBottom',
|
|
3089
|
+
'shuffleLeftBottomSlow',
|
|
3090
|
+
'shuffleLeftBottomFast',
|
|
3091
|
+
'shuffleLeftTop',
|
|
3092
|
+
'shuffleLeftTopSlow',
|
|
3093
|
+
'shuffleLeftTopFast',
|
|
3094
|
+
'shuffleTopLeft',
|
|
3095
|
+
'shuffleTopLeftSlow',
|
|
3096
|
+
'shuffleTopLeftFast',
|
|
3097
|
+
'zoom'
|
|
2996
3098
|
])),
|
|
2997
3099
|
out: z.optional(z.enum([
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
]))
|
|
3100
|
+
'none',
|
|
3101
|
+
'fade',
|
|
3102
|
+
'fadeSlow',
|
|
3103
|
+
'fadeFast',
|
|
3104
|
+
'reveal',
|
|
3105
|
+
'revealSlow',
|
|
3106
|
+
'revealFast',
|
|
3107
|
+
'wipeLeft',
|
|
3108
|
+
'wipeLeftSlow',
|
|
3109
|
+
'wipeLeftFast',
|
|
3110
|
+
'wipeRight',
|
|
3111
|
+
'wipeRightSlow',
|
|
3112
|
+
'wipeRightFast',
|
|
3113
|
+
'slideLeft',
|
|
3114
|
+
'slideLeftSlow',
|
|
3115
|
+
'slideLeftFast',
|
|
3116
|
+
'slideRight',
|
|
3117
|
+
'slideRightSlow',
|
|
3118
|
+
'slideRightFast',
|
|
3119
|
+
'slideUp',
|
|
3120
|
+
'slideUpSlow',
|
|
3121
|
+
'slideUpFast',
|
|
3122
|
+
'slideDown',
|
|
3123
|
+
'slideDownSlow',
|
|
3124
|
+
'slideDownFast',
|
|
3125
|
+
'carouselLeft',
|
|
3126
|
+
'carouselLeftSlow',
|
|
3127
|
+
'carouselLeftFast',
|
|
3128
|
+
'carouselRight',
|
|
3129
|
+
'carouselRightSlow',
|
|
3130
|
+
'carouselRightFast',
|
|
3131
|
+
'carouselUp',
|
|
3132
|
+
'carouselUpSlow',
|
|
3133
|
+
'carouselUpFast',
|
|
3134
|
+
'carouselDown',
|
|
3135
|
+
'carouselDownSlow',
|
|
3136
|
+
'carouselDownFast',
|
|
3137
|
+
'shuffleTopRight',
|
|
3138
|
+
'shuffleTopRightSlow',
|
|
3139
|
+
'shuffleTopRightFast',
|
|
3140
|
+
'shuffleRightTop',
|
|
3141
|
+
'shuffleRightTopSlow',
|
|
3142
|
+
'shuffleRightTopFast',
|
|
3143
|
+
'shuffleRightBottom',
|
|
3144
|
+
'shuffleRightBottomSlow',
|
|
3145
|
+
'shuffleRightBottomFast',
|
|
3146
|
+
'shuffleBottomRight',
|
|
3147
|
+
'shuffleBottomRightSlow',
|
|
3148
|
+
'shuffleBottomRightFast',
|
|
3149
|
+
'shuffleBottomLeft',
|
|
3150
|
+
'shuffleBottomLeftSlow',
|
|
3151
|
+
'shuffleBottomLeftFast',
|
|
3152
|
+
'shuffleLeftBottom',
|
|
3153
|
+
'shuffleLeftBottomSlow',
|
|
3154
|
+
'shuffleLeftBottomFast',
|
|
3155
|
+
'shuffleLeftTop',
|
|
3156
|
+
'shuffleLeftTopSlow',
|
|
3157
|
+
'shuffleLeftTopFast',
|
|
3158
|
+
'shuffleTopLeft',
|
|
3159
|
+
'shuffleTopLeftSlow',
|
|
3160
|
+
'shuffleTopLeftFast',
|
|
3161
|
+
'zoom'
|
|
3162
|
+
]))
|
|
3061
3163
|
}).strict();
|
|
3062
3164
|
export const transitionSchema = transitionTransitionSchema;
|
|
3063
3165
|
/**
|
|
@@ -3087,44 +3189,48 @@ export const tweenTweenSchema = z.object({
|
|
|
3087
3189
|
return v;
|
|
3088
3190
|
return Number(v);
|
|
3089
3191
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3090
|
-
interpolation: z.optional(z.enum([
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
"easeOut",
|
|
3095
|
-
"easeInOut",
|
|
3096
|
-
"easeInQuad",
|
|
3097
|
-
"easeInCubic",
|
|
3098
|
-
"easeInQuart",
|
|
3099
|
-
"easeInQuint",
|
|
3100
|
-
"easeInSine",
|
|
3101
|
-
"easeInExpo",
|
|
3102
|
-
"easeInCirc",
|
|
3103
|
-
"easeInBack",
|
|
3104
|
-
"easeOutQuad",
|
|
3105
|
-
"easeOutCubic",
|
|
3106
|
-
"easeOutQuart",
|
|
3107
|
-
"easeOutQuint",
|
|
3108
|
-
"easeOutSine",
|
|
3109
|
-
"easeOutExpo",
|
|
3110
|
-
"easeOutCirc",
|
|
3111
|
-
"easeOutBack",
|
|
3112
|
-
"easeInOutQuad",
|
|
3113
|
-
"easeInOutCubic",
|
|
3114
|
-
"easeInOutQuart",
|
|
3115
|
-
"easeInOutQuint",
|
|
3116
|
-
"easeInOutSine",
|
|
3117
|
-
"easeInOutExpo",
|
|
3118
|
-
"easeInOutCirc",
|
|
3119
|
-
"easeInOutBack",
|
|
3192
|
+
interpolation: z.optional(z.enum([
|
|
3193
|
+
'linear',
|
|
3194
|
+
'bezier',
|
|
3195
|
+
'constant'
|
|
3120
3196
|
])),
|
|
3197
|
+
easing: z.optional(z.enum([
|
|
3198
|
+
'ease',
|
|
3199
|
+
'easeIn',
|
|
3200
|
+
'easeOut',
|
|
3201
|
+
'easeInOut',
|
|
3202
|
+
'easeInQuad',
|
|
3203
|
+
'easeInCubic',
|
|
3204
|
+
'easeInQuart',
|
|
3205
|
+
'easeInQuint',
|
|
3206
|
+
'easeInSine',
|
|
3207
|
+
'easeInExpo',
|
|
3208
|
+
'easeInCirc',
|
|
3209
|
+
'easeInBack',
|
|
3210
|
+
'easeOutQuad',
|
|
3211
|
+
'easeOutCubic',
|
|
3212
|
+
'easeOutQuart',
|
|
3213
|
+
'easeOutQuint',
|
|
3214
|
+
'easeOutSine',
|
|
3215
|
+
'easeOutExpo',
|
|
3216
|
+
'easeOutCirc',
|
|
3217
|
+
'easeOutBack',
|
|
3218
|
+
'easeInOutQuad',
|
|
3219
|
+
'easeInOutCubic',
|
|
3220
|
+
'easeInOutQuart',
|
|
3221
|
+
'easeInOutQuint',
|
|
3222
|
+
'easeInOutSine',
|
|
3223
|
+
'easeInOutExpo',
|
|
3224
|
+
'easeInOutCirc',
|
|
3225
|
+
'easeInOutBack'
|
|
3226
|
+
]))
|
|
3121
3227
|
}).strict();
|
|
3122
3228
|
export const tweenSchema = tweenTweenSchema;
|
|
3123
3229
|
/**
|
|
3124
3230
|
* 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.
|
|
3125
3231
|
*/
|
|
3126
3232
|
export const audioassetAudioAssetSchema = z.object({
|
|
3127
|
-
type: z.enum([
|
|
3233
|
+
type: z.enum(['audio']),
|
|
3128
3234
|
src: z.string().min(1).regex(/\S/),
|
|
3129
3235
|
trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3130
3236
|
return undefined; if (Array.isArray(v))
|
|
@@ -3133,13 +3239,16 @@ export const audioassetAudioAssetSchema = z.object({
|
|
|
3133
3239
|
return v;
|
|
3134
3240
|
return Number(v);
|
|
3135
3241
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3136
|
-
volume: z.optional(z.union([
|
|
3242
|
+
volume: z.optional(z.union([
|
|
3243
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3137
3244
|
return undefined; if (Array.isArray(v))
|
|
3138
3245
|
return v; if (typeof v === 'string') {
|
|
3139
3246
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3140
3247
|
return v;
|
|
3141
3248
|
return Number(v);
|
|
3142
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3249
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3250
|
+
z.array(tweenTweenSchema)
|
|
3251
|
+
])),
|
|
3143
3252
|
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3144
3253
|
return undefined; if (Array.isArray(v))
|
|
3145
3254
|
return v; if (typeof v === 'string') {
|
|
@@ -3147,67 +3256,87 @@ export const audioassetAudioAssetSchema = z.object({
|
|
|
3147
3256
|
return v;
|
|
3148
3257
|
return Number(v);
|
|
3149
3258
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3150
|
-
effect: z.optional(z.enum([
|
|
3259
|
+
effect: z.optional(z.enum([
|
|
3260
|
+
'none',
|
|
3261
|
+
'fadeIn',
|
|
3262
|
+
'fadeOut',
|
|
3263
|
+
'fadeInFadeOut'
|
|
3264
|
+
]))
|
|
3151
3265
|
}).strict();
|
|
3152
3266
|
export const audioAssetSchema = audioassetAudioAssetSchema;
|
|
3153
3267
|
/**
|
|
3154
3268
|
* Offsets the position of an asset horizontally or vertically by a relative distance.
|
|
3155
3269
|
*/
|
|
3156
3270
|
export const offsetOffsetSchema = z.object({
|
|
3157
|
-
x: z.optional(z.union([
|
|
3271
|
+
x: z.optional(z.union([
|
|
3272
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3158
3273
|
return undefined; if (Array.isArray(v))
|
|
3159
3274
|
return v; if (typeof v === 'string') {
|
|
3160
3275
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3161
3276
|
return v;
|
|
3162
3277
|
return Number(v);
|
|
3163
|
-
} return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3164
|
-
|
|
3278
|
+
} return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3279
|
+
z.array(tweenTweenSchema)
|
|
3280
|
+
])),
|
|
3281
|
+
y: z.optional(z.union([
|
|
3282
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3165
3283
|
return undefined; if (Array.isArray(v))
|
|
3166
3284
|
return v; if (typeof v === 'string') {
|
|
3167
3285
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3168
3286
|
return v;
|
|
3169
3287
|
return Number(v);
|
|
3170
|
-
} return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3288
|
+
} return v; }), z.number().gte(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3289
|
+
z.array(tweenTweenSchema)
|
|
3290
|
+
]))
|
|
3171
3291
|
}).strict();
|
|
3172
3292
|
export const offsetSchema = offsetOffsetSchema;
|
|
3173
3293
|
/**
|
|
3174
3294
|
* Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
|
|
3175
3295
|
*/
|
|
3176
3296
|
export const rotatetransformationRotateTransformationSchema = z.object({
|
|
3177
|
-
angle: z.optional(z.union([
|
|
3297
|
+
angle: z.optional(z.union([
|
|
3298
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3178
3299
|
return undefined; if (Array.isArray(v))
|
|
3179
3300
|
return v; if (typeof v === 'string') {
|
|
3180
3301
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3181
3302
|
return v;
|
|
3182
3303
|
return Number(v);
|
|
3183
|
-
} return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3304
|
+
} return v; }), z.number().gte(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3305
|
+
z.array(tweenTweenSchema)
|
|
3306
|
+
]))
|
|
3184
3307
|
}).strict();
|
|
3185
3308
|
export const rotateTransformationSchema = rotatetransformationRotateTransformationSchema;
|
|
3186
3309
|
/**
|
|
3187
3310
|
* 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.
|
|
3188
3311
|
*/
|
|
3189
3312
|
export const skewtransformationSkewTransformationSchema = z.object({
|
|
3190
|
-
x: z.optional(z.union([
|
|
3313
|
+
x: z.optional(z.union([
|
|
3314
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3191
3315
|
return undefined; if (Array.isArray(v))
|
|
3192
3316
|
return v; if (typeof v === 'string') {
|
|
3193
3317
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3194
3318
|
return v;
|
|
3195
3319
|
return Number(v);
|
|
3196
|
-
} return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3197
|
-
|
|
3320
|
+
} return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3321
|
+
z.array(tweenTweenSchema)
|
|
3322
|
+
])),
|
|
3323
|
+
y: z.optional(z.union([
|
|
3324
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3198
3325
|
return undefined; if (Array.isArray(v))
|
|
3199
3326
|
return v; if (typeof v === 'string') {
|
|
3200
3327
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3201
3328
|
return v;
|
|
3202
3329
|
return Number(v);
|
|
3203
|
-
} return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3330
|
+
} return v; }), z.number().gte(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3331
|
+
z.array(tweenTweenSchema)
|
|
3332
|
+
]))
|
|
3204
3333
|
}).strict();
|
|
3205
3334
|
export const skewTransformationSchema = skewtransformationSkewTransformationSchema;
|
|
3206
3335
|
/**
|
|
3207
3336
|
* The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.
|
|
3208
3337
|
*/
|
|
3209
3338
|
export const texttospeechassetTextToSpeechAssetSchema = z.object({
|
|
3210
|
-
type: z.enum([
|
|
3339
|
+
type: z.enum(['text-to-speech']),
|
|
3211
3340
|
text: z.string(),
|
|
3212
3341
|
voice: z.string(),
|
|
3213
3342
|
language: z.optional(z.string()),
|
|
@@ -3219,13 +3348,16 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
|
|
|
3219
3348
|
return v;
|
|
3220
3349
|
return Number(v);
|
|
3221
3350
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3222
|
-
volume: z.optional(z.union([
|
|
3351
|
+
volume: z.optional(z.union([
|
|
3352
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3223
3353
|
return undefined; if (Array.isArray(v))
|
|
3224
3354
|
return v; if (typeof v === 'string') {
|
|
3225
3355
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3226
3356
|
return v;
|
|
3227
3357
|
return Number(v);
|
|
3228
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3358
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3359
|
+
z.array(tweenTweenSchema)
|
|
3360
|
+
])),
|
|
3229
3361
|
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3230
3362
|
return undefined; if (Array.isArray(v))
|
|
3231
3363
|
return v; if (typeof v === 'string') {
|
|
@@ -3233,7 +3365,12 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
|
|
|
3233
3365
|
return v;
|
|
3234
3366
|
return Number(v);
|
|
3235
3367
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3236
|
-
effect: z.optional(z.enum([
|
|
3368
|
+
effect: z.optional(z.enum([
|
|
3369
|
+
'none',
|
|
3370
|
+
'fadeIn',
|
|
3371
|
+
'fadeOut',
|
|
3372
|
+
'fadeInFadeOut'
|
|
3373
|
+
]))
|
|
3237
3374
|
}).strict();
|
|
3238
3375
|
export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
|
|
3239
3376
|
/**
|
|
@@ -3245,43 +3382,43 @@ export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
|
|
|
3245
3382
|
* @deprecated
|
|
3246
3383
|
*/
|
|
3247
3384
|
export const titleassetTitleAssetSchema = z.object({
|
|
3248
|
-
type: z.enum([
|
|
3385
|
+
type: z.enum(['title']),
|
|
3249
3386
|
text: z.string(),
|
|
3250
3387
|
style: z.optional(z.enum([
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3388
|
+
'minimal',
|
|
3389
|
+
'blockbuster',
|
|
3390
|
+
'vogue',
|
|
3391
|
+
'sketchy',
|
|
3392
|
+
'skinny',
|
|
3393
|
+
'chunk',
|
|
3394
|
+
'chunkLight',
|
|
3395
|
+
'marker',
|
|
3396
|
+
'future',
|
|
3397
|
+
'subtitle'
|
|
3261
3398
|
])),
|
|
3262
3399
|
color: z.optional(z.string()),
|
|
3263
3400
|
size: z.optional(z.enum([
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3401
|
+
'xx-small',
|
|
3402
|
+
'x-small',
|
|
3403
|
+
'small',
|
|
3404
|
+
'medium',
|
|
3405
|
+
'large',
|
|
3406
|
+
'x-large',
|
|
3407
|
+
'xx-large'
|
|
3271
3408
|
])),
|
|
3272
3409
|
background: z.optional(z.string()),
|
|
3273
3410
|
position: z.optional(z.enum([
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3411
|
+
'top',
|
|
3412
|
+
'topRight',
|
|
3413
|
+
'right',
|
|
3414
|
+
'bottomRight',
|
|
3415
|
+
'bottom',
|
|
3416
|
+
'bottomLeft',
|
|
3417
|
+
'left',
|
|
3418
|
+
'topLeft',
|
|
3419
|
+
'center'
|
|
3283
3420
|
])),
|
|
3284
|
-
offset: z.optional(offsetOffsetSchema)
|
|
3421
|
+
offset: z.optional(offsetOffsetSchema)
|
|
3285
3422
|
}).strict();
|
|
3286
3423
|
export const titleAssetSchema = titleassetTitleAssetSchema;
|
|
3287
3424
|
/**
|
|
@@ -3290,14 +3427,14 @@ export const titleAssetSchema = titleassetTitleAssetSchema;
|
|
|
3290
3427
|
export const transformationTransformationSchema = z.object({
|
|
3291
3428
|
rotate: z.optional(rotatetransformationRotateTransformationSchema),
|
|
3292
3429
|
skew: z.optional(skewtransformationSkewTransformationSchema),
|
|
3293
|
-
flip: z.optional(fliptransformationFlipTransformationSchema)
|
|
3430
|
+
flip: z.optional(fliptransformationFlipTransformationSchema)
|
|
3294
3431
|
}).strict();
|
|
3295
3432
|
export const transformationSchema = transformationTransformationSchema;
|
|
3296
3433
|
/**
|
|
3297
3434
|
* 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.
|
|
3298
3435
|
*/
|
|
3299
3436
|
export const videoassetVideoAssetSchema = z.object({
|
|
3300
|
-
type: z.enum([
|
|
3437
|
+
type: z.enum(['video']),
|
|
3301
3438
|
src: z.string().min(1).regex(/\S/),
|
|
3302
3439
|
transcode: z.optional(z.boolean()),
|
|
3303
3440
|
trim: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3307,14 +3444,22 @@ export const videoassetVideoAssetSchema = z.object({
|
|
|
3307
3444
|
return v;
|
|
3308
3445
|
return Number(v);
|
|
3309
3446
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3310
|
-
volume: z.optional(z.union([
|
|
3447
|
+
volume: z.optional(z.union([
|
|
3448
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3311
3449
|
return undefined; if (Array.isArray(v))
|
|
3312
3450
|
return v; if (typeof v === 'string') {
|
|
3313
3451
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3314
3452
|
return v;
|
|
3315
3453
|
return Number(v);
|
|
3316
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3317
|
-
|
|
3454
|
+
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3455
|
+
z.array(tweenTweenSchema)
|
|
3456
|
+
])),
|
|
3457
|
+
volumeEffect: z.optional(z.enum([
|
|
3458
|
+
'none',
|
|
3459
|
+
'fadeIn',
|
|
3460
|
+
'fadeOut',
|
|
3461
|
+
'fadeInFadeOut'
|
|
3462
|
+
])),
|
|
3318
3463
|
speed: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3319
3464
|
return undefined; if (Array.isArray(v))
|
|
3320
3465
|
return v; if (typeof v === 'string') {
|
|
@@ -3323,7 +3468,7 @@ export const videoassetVideoAssetSchema = z.object({
|
|
|
3323
3468
|
return Number(v);
|
|
3324
3469
|
} return v; }), z.number().gte(0).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3325
3470
|
crop: z.optional(cropCropSchema),
|
|
3326
|
-
chromaKey: z.optional(chromakeyChromaKeySchema)
|
|
3471
|
+
chromaKey: z.optional(chromakeyChromaKeySchema)
|
|
3327
3472
|
}).strict();
|
|
3328
3473
|
export const videoAssetSchema = videoassetVideoAssetSchema;
|
|
3329
3474
|
/**
|
|
@@ -3360,7 +3505,7 @@ export const clipClipSchema = z.object({
|
|
|
3360
3505
|
return v;
|
|
3361
3506
|
return Number(v);
|
|
3362
3507
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3363
|
-
z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3508
|
+
z.union([z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3364
3509
|
]),
|
|
3365
3510
|
length: z.union([
|
|
3366
3511
|
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3370,16 +3515,24 @@ export const clipClipSchema = z.object({
|
|
|
3370
3515
|
return v;
|
|
3371
3516
|
return Number(v);
|
|
3372
3517
|
} return v; }), z.number().gte(0)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3373
|
-
z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3518
|
+
z.union([z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3374
3519
|
]),
|
|
3375
|
-
fit: z.optional(z.enum([
|
|
3376
|
-
|
|
3520
|
+
fit: z.optional(z.enum([
|
|
3521
|
+
'cover',
|
|
3522
|
+
'contain',
|
|
3523
|
+
'crop',
|
|
3524
|
+
'none'
|
|
3525
|
+
])),
|
|
3526
|
+
scale: z.optional(z.union([
|
|
3527
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3377
3528
|
return undefined; if (Array.isArray(v))
|
|
3378
3529
|
return v; if (typeof v === 'string') {
|
|
3379
3530
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3380
3531
|
return v;
|
|
3381
3532
|
return Number(v);
|
|
3382
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3533
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3534
|
+
z.array(tweenTweenSchema)
|
|
3535
|
+
])),
|
|
3383
3536
|
width: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3384
3537
|
return undefined; if (Array.isArray(v))
|
|
3385
3538
|
return v; if (typeof v === 'string') {
|
|
@@ -3395,58 +3548,61 @@ export const clipClipSchema = z.object({
|
|
|
3395
3548
|
return Number(v);
|
|
3396
3549
|
} return v; }), z.number().gte(1).lte(2160)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3397
3550
|
position: z.optional(z.enum([
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3551
|
+
'top',
|
|
3552
|
+
'topRight',
|
|
3553
|
+
'right',
|
|
3554
|
+
'bottomRight',
|
|
3555
|
+
'bottom',
|
|
3556
|
+
'bottomLeft',
|
|
3557
|
+
'left',
|
|
3558
|
+
'topLeft',
|
|
3559
|
+
'center'
|
|
3407
3560
|
])),
|
|
3408
3561
|
offset: z.optional(offsetOffsetSchema),
|
|
3409
3562
|
transition: z.optional(transitionTransitionSchema),
|
|
3410
3563
|
effect: z.optional(z.enum([
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3564
|
+
'zoomIn',
|
|
3565
|
+
'zoomInSlow',
|
|
3566
|
+
'zoomInFast',
|
|
3567
|
+
'zoomOut',
|
|
3568
|
+
'zoomOutSlow',
|
|
3569
|
+
'zoomOutFast',
|
|
3570
|
+
'slideLeft',
|
|
3571
|
+
'slideLeftSlow',
|
|
3572
|
+
'slideLeftFast',
|
|
3573
|
+
'slideRight',
|
|
3574
|
+
'slideRightSlow',
|
|
3575
|
+
'slideRightFast',
|
|
3576
|
+
'slideUp',
|
|
3577
|
+
'slideUpSlow',
|
|
3578
|
+
'slideUpFast',
|
|
3579
|
+
'slideDown',
|
|
3580
|
+
'slideDownSlow',
|
|
3581
|
+
'slideDownFast'
|
|
3429
3582
|
])),
|
|
3430
3583
|
filter: z.optional(z.enum([
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3584
|
+
'none',
|
|
3585
|
+
'blur',
|
|
3586
|
+
'boost',
|
|
3587
|
+
'contrast',
|
|
3588
|
+
'darken',
|
|
3589
|
+
'greyscale',
|
|
3590
|
+
'lighten',
|
|
3591
|
+
'muted',
|
|
3592
|
+
'negative'
|
|
3440
3593
|
])),
|
|
3441
|
-
opacity: z.optional(z.union([
|
|
3594
|
+
opacity: z.optional(z.union([
|
|
3595
|
+
z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
3442
3596
|
return undefined; if (Array.isArray(v))
|
|
3443
3597
|
return v; if (typeof v === 'string') {
|
|
3444
3598
|
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
3445
3599
|
return v;
|
|
3446
3600
|
return Number(v);
|
|
3447
|
-
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3601
|
+
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
3602
|
+
z.array(tweenTweenSchema)
|
|
3603
|
+
])),
|
|
3448
3604
|
transform: z.optional(transformationTransformationSchema),
|
|
3449
|
-
alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
3605
|
+
alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
3450
3606
|
}).strict();
|
|
3451
3607
|
export const clipSchema = clipClipSchema;
|
|
3452
3608
|
// Clip schema with fit property filter for rich-text assets
|
|
@@ -3465,7 +3621,7 @@ const clipClipSchemaWithFitFilter = clipClipSchema.transform((clip) => {
|
|
|
3465
3621
|
* 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.
|
|
3466
3622
|
*/
|
|
3467
3623
|
export const trackTrackSchema = z.object({
|
|
3468
|
-
clips: z.array(clipClipSchemaWithFitFilter).min(1)
|
|
3624
|
+
clips: z.array(clipClipSchemaWithFitFilter).min(1)
|
|
3469
3625
|
}).strict();
|
|
3470
3626
|
export const trackSchema = trackTrackSchema;
|
|
3471
3627
|
/**
|
|
@@ -3476,7 +3632,7 @@ export const timelineTimelineSchema = z.object({
|
|
|
3476
3632
|
background: z.optional(z.string()),
|
|
3477
3633
|
fonts: z.optional(z.array(fontFontSchema)),
|
|
3478
3634
|
tracks: z.array(trackTrackSchema).min(1),
|
|
3479
|
-
cache: z.optional(z.boolean())
|
|
3635
|
+
cache: z.optional(z.boolean())
|
|
3480
3636
|
}).strict();
|
|
3481
3637
|
export const timelineSchema = timelineTimelineSchema;
|
|
3482
3638
|
/**
|
|
@@ -3487,8 +3643,12 @@ export const editEditSchema = z.object({
|
|
|
3487
3643
|
output: outputOutputSchema,
|
|
3488
3644
|
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
3489
3645
|
callback: z.optional(z.string()),
|
|
3490
|
-
disk: z.optional(z.enum([
|
|
3491
|
-
instance: z.optional(z.enum([
|
|
3646
|
+
disk: z.optional(z.enum(['local', 'mount'])),
|
|
3647
|
+
instance: z.optional(z.enum([
|
|
3648
|
+
's1',
|
|
3649
|
+
's2',
|
|
3650
|
+
'a1'
|
|
3651
|
+
]))
|
|
3492
3652
|
}).strict();
|
|
3493
3653
|
export const editSchema = editEditSchema;
|
|
3494
3654
|
/**
|
|
@@ -3499,13 +3659,13 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
|
|
|
3499
3659
|
owner: z.string(),
|
|
3500
3660
|
plan: z.optional(z.string()),
|
|
3501
3661
|
status: z.enum([
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3662
|
+
'queued',
|
|
3663
|
+
'fetching',
|
|
3664
|
+
'preprocessing',
|
|
3665
|
+
'rendering',
|
|
3666
|
+
'saving',
|
|
3667
|
+
'done',
|
|
3668
|
+
'failed'
|
|
3509
3669
|
]),
|
|
3510
3670
|
error: z.optional(z.string()),
|
|
3511
3671
|
duration: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
@@ -3523,11 +3683,17 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
|
|
|
3523
3683
|
return Number(v);
|
|
3524
3684
|
} return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
3525
3685
|
url: z.optional(z.string()),
|
|
3526
|
-
poster: z.optional(z.union([
|
|
3527
|
-
|
|
3686
|
+
poster: z.optional(z.union([
|
|
3687
|
+
z.string(),
|
|
3688
|
+
z.null()
|
|
3689
|
+
])),
|
|
3690
|
+
thumbnail: z.optional(z.union([
|
|
3691
|
+
z.string(),
|
|
3692
|
+
z.null()
|
|
3693
|
+
])),
|
|
3528
3694
|
data: z.optional(editEditSchema),
|
|
3529
3695
|
created: z.optional(z.string()),
|
|
3530
|
-
updated: z.optional(z.string())
|
|
3696
|
+
updated: z.optional(z.string())
|
|
3531
3697
|
}).strict();
|
|
3532
3698
|
export const renderResponseDataSchema = renderresponsedataRenderResponseDataSchema;
|
|
3533
3699
|
/**
|
|
@@ -3536,7 +3702,7 @@ export const renderResponseDataSchema = renderresponsedataRenderResponseDataSche
|
|
|
3536
3702
|
export const renderresponseRenderResponseSchema = z.object({
|
|
3537
3703
|
success: z.boolean(),
|
|
3538
3704
|
message: z.string(),
|
|
3539
|
-
response: renderresponsedataRenderResponseDataSchema
|
|
3705
|
+
response: renderresponsedataRenderResponseDataSchema
|
|
3540
3706
|
}).strict();
|
|
3541
3707
|
export const renderResponseSchema = renderresponseRenderResponseSchema;
|
|
3542
3708
|
/**
|
|
@@ -3546,7 +3712,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
|
|
|
3546
3712
|
id: z.string(),
|
|
3547
3713
|
name: z.string(),
|
|
3548
3714
|
owner: z.string(),
|
|
3549
|
-
template: editEditSchema
|
|
3715
|
+
template: editEditSchema
|
|
3550
3716
|
}).strict();
|
|
3551
3717
|
export const templateDataResponseDataSchema = templatedataresponsedataTemplateDataResponseDataSchema;
|
|
3552
3718
|
/**
|
|
@@ -3555,7 +3721,7 @@ export const templateDataResponseDataSchema = templatedataresponsedataTemplateDa
|
|
|
3555
3721
|
export const templatedataresponseTemplateDataResponseSchema = z.object({
|
|
3556
3722
|
success: z.boolean(),
|
|
3557
3723
|
message: z.string(),
|
|
3558
|
-
response: templatedataresponsedataTemplateDataResponseDataSchema
|
|
3724
|
+
response: templatedataresponsedataTemplateDataResponseDataSchema
|
|
3559
3725
|
}).strict();
|
|
3560
3726
|
export const templateDataResponseSchema = templatedataresponseTemplateDataResponseSchema;
|
|
3561
3727
|
/**
|
|
@@ -3563,13 +3729,13 @@ export const templateDataResponseSchema = templatedataresponseTemplateDataRespon
|
|
|
3563
3729
|
*/
|
|
3564
3730
|
export const templateTemplateSchema = z.object({
|
|
3565
3731
|
name: z.string(),
|
|
3566
|
-
template: z.optional(editEditSchema)
|
|
3732
|
+
template: z.optional(editEditSchema)
|
|
3567
3733
|
}).strict();
|
|
3568
3734
|
export const templateSchema = templateTemplateSchema;
|
|
3569
3735
|
export const postRenderRequest = z.object({
|
|
3570
3736
|
body: editEditSchema,
|
|
3571
3737
|
path: z.optional(z.never()),
|
|
3572
|
-
query: z.optional(z.never())
|
|
3738
|
+
query: z.optional(z.never())
|
|
3573
3739
|
}).strict();
|
|
3574
3740
|
/**
|
|
3575
3741
|
* The queued render details
|
|
@@ -3578,14 +3744,12 @@ export const postRenderResponse = queuedresponseQueuedResponseSchema;
|
|
|
3578
3744
|
export const getRenderRequest = z.object({
|
|
3579
3745
|
body: z.optional(z.never()),
|
|
3580
3746
|
path: z.object({
|
|
3581
|
-
id: z
|
|
3582
|
-
.string()
|
|
3583
|
-
.regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
3747
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3584
3748
|
}),
|
|
3585
3749
|
query: z.optional(z.object({
|
|
3586
3750
|
data: z.optional(z.boolean()),
|
|
3587
|
-
merged: z.optional(z.boolean())
|
|
3588
|
-
}))
|
|
3751
|
+
merged: z.optional(z.boolean())
|
|
3752
|
+
}))
|
|
3589
3753
|
}).strict();
|
|
3590
3754
|
/**
|
|
3591
3755
|
* The render status details
|
|
@@ -3594,7 +3758,7 @@ export const getRenderResponse = renderresponseRenderResponseSchema;
|
|
|
3594
3758
|
export const getTemplatesRequest = z.object({
|
|
3595
3759
|
body: z.optional(z.never()),
|
|
3596
3760
|
path: z.optional(z.never()),
|
|
3597
|
-
query: z.optional(z.never())
|
|
3761
|
+
query: z.optional(z.never())
|
|
3598
3762
|
}).strict();
|
|
3599
3763
|
/**
|
|
3600
3764
|
* The list of templates stored against a users account
|
|
@@ -3603,7 +3767,7 @@ export const getTemplatesResponse = templatelistresponseTemplateListResponseSche
|
|
|
3603
3767
|
export const postTemplateRequest = z.object({
|
|
3604
3768
|
body: templateTemplateSchema,
|
|
3605
3769
|
path: z.optional(z.never()),
|
|
3606
|
-
query: z.optional(z.never())
|
|
3770
|
+
query: z.optional(z.never())
|
|
3607
3771
|
}).strict();
|
|
3608
3772
|
/**
|
|
3609
3773
|
* The saved template status including the id
|
|
@@ -3612,11 +3776,9 @@ export const postTemplateResponse = templateresponseTemplateResponseSchema;
|
|
|
3612
3776
|
export const deleteTemplateRequest = z.object({
|
|
3613
3777
|
body: z.optional(z.never()),
|
|
3614
3778
|
path: z.object({
|
|
3615
|
-
id: z
|
|
3616
|
-
.string()
|
|
3617
|
-
.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}$/),
|
|
3779
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3618
3780
|
}),
|
|
3619
|
-
query: z.optional(z.never())
|
|
3781
|
+
query: z.optional(z.never())
|
|
3620
3782
|
}).strict();
|
|
3621
3783
|
/**
|
|
3622
3784
|
* An empty response signifying the template has been deleted
|
|
@@ -3625,11 +3787,9 @@ export const deleteTemplateResponse = z.void();
|
|
|
3625
3787
|
export const getTemplateRequest = z.object({
|
|
3626
3788
|
body: z.optional(z.never()),
|
|
3627
3789
|
path: z.object({
|
|
3628
|
-
id: z
|
|
3629
|
-
.string()
|
|
3630
|
-
.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}$/),
|
|
3790
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3631
3791
|
}),
|
|
3632
|
-
query: z.optional(z.never())
|
|
3792
|
+
query: z.optional(z.never())
|
|
3633
3793
|
}).strict();
|
|
3634
3794
|
/**
|
|
3635
3795
|
* The template details including the [Edit](#tocs_edit)
|
|
@@ -3638,11 +3798,9 @@ export const getTemplateResponse = templatedataresponseTemplateDataResponseSchem
|
|
|
3638
3798
|
export const putTemplateRequest = z.object({
|
|
3639
3799
|
body: templateTemplateSchema,
|
|
3640
3800
|
path: z.object({
|
|
3641
|
-
id: z
|
|
3642
|
-
.string()
|
|
3643
|
-
.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}$/),
|
|
3801
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3644
3802
|
}),
|
|
3645
|
-
query: z.optional(z.never())
|
|
3803
|
+
query: z.optional(z.never())
|
|
3646
3804
|
}).strict();
|
|
3647
3805
|
/**
|
|
3648
3806
|
* Update a templates name and [Edit](#tocs_edit)
|
|
@@ -3651,7 +3809,7 @@ export const putTemplateResponse = templateresponseTemplateResponseSchema;
|
|
|
3651
3809
|
export const postTemplateRenderRequest = z.object({
|
|
3652
3810
|
body: templaterenderTemplateRenderSchema,
|
|
3653
3811
|
path: z.optional(z.never()),
|
|
3654
|
-
query: z.optional(z.never())
|
|
3812
|
+
query: z.optional(z.never())
|
|
3655
3813
|
}).strict();
|
|
3656
3814
|
/**
|
|
3657
3815
|
* The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
|
|
@@ -3660,9 +3818,9 @@ export const postTemplateRenderResponse = queuedresponseQueuedResponseSchema;
|
|
|
3660
3818
|
export const probeRequest = z.object({
|
|
3661
3819
|
body: z.optional(z.never()),
|
|
3662
3820
|
path: z.object({
|
|
3663
|
-
url: z.string()
|
|
3821
|
+
url: z.string()
|
|
3664
3822
|
}),
|
|
3665
|
-
query: z.optional(z.never())
|
|
3823
|
+
query: z.optional(z.never())
|
|
3666
3824
|
}).strict();
|
|
3667
3825
|
/**
|
|
3668
3826
|
* FFprobe response formatted as JSON.
|
|
@@ -3671,11 +3829,9 @@ export const probeResponse = proberesponseProbeResponseSchema;
|
|
|
3671
3829
|
export const deleteAssetRequest = z.object({
|
|
3672
3830
|
body: z.optional(z.never()),
|
|
3673
3831
|
path: z.object({
|
|
3674
|
-
id: z
|
|
3675
|
-
.string()
|
|
3676
|
-
.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}$/),
|
|
3832
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3677
3833
|
}),
|
|
3678
|
-
query: z.optional(z.never())
|
|
3834
|
+
query: z.optional(z.never())
|
|
3679
3835
|
}).strict();
|
|
3680
3836
|
/**
|
|
3681
3837
|
* An empty response signifying the asset has been deleted
|
|
@@ -3684,11 +3840,9 @@ export const deleteAssetResponse = z.void();
|
|
|
3684
3840
|
export const getAssetRequest = z.object({
|
|
3685
3841
|
body: z.optional(z.never()),
|
|
3686
3842
|
path: z.object({
|
|
3687
|
-
id: z
|
|
3688
|
-
.string()
|
|
3689
|
-
.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}$/),
|
|
3843
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3690
3844
|
}),
|
|
3691
|
-
query: z.optional(z.never())
|
|
3845
|
+
query: z.optional(z.never())
|
|
3692
3846
|
}).strict();
|
|
3693
3847
|
/**
|
|
3694
3848
|
* Get asset by asset id
|
|
@@ -3697,11 +3851,9 @@ export const getAssetResponse = assetresponseAssetResponseSchema;
|
|
|
3697
3851
|
export const getAssetByRenderIdRequest = z.object({
|
|
3698
3852
|
body: z.optional(z.never()),
|
|
3699
3853
|
path: z.object({
|
|
3700
|
-
id: z
|
|
3701
|
-
.string()
|
|
3702
|
-
.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}$/),
|
|
3854
|
+
id: z.union([z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3703
3855
|
}),
|
|
3704
|
-
query: z.optional(z.never())
|
|
3856
|
+
query: z.optional(z.never())
|
|
3705
3857
|
}).strict();
|
|
3706
3858
|
/**
|
|
3707
3859
|
* Get one or more assets by render id
|
|
@@ -3710,7 +3862,7 @@ export const getAssetByRenderIdResponse = assetrenderresponseAssetRenderResponse
|
|
|
3710
3862
|
export const postServeAssetRequest = z.object({
|
|
3711
3863
|
body: transferTransferSchema,
|
|
3712
3864
|
path: z.optional(z.never()),
|
|
3713
|
-
query: z.optional(z.never())
|
|
3865
|
+
query: z.optional(z.never())
|
|
3714
3866
|
}).strict();
|
|
3715
3867
|
/**
|
|
3716
3868
|
* The transfer request details and status
|
|
@@ -3719,7 +3871,7 @@ export const postServeAssetResponse = transferresponseTransferResponseSchema;
|
|
|
3719
3871
|
export const getSourcesRequest = z.object({
|
|
3720
3872
|
body: z.optional(z.never()),
|
|
3721
3873
|
path: z.optional(z.never()),
|
|
3722
|
-
query: z.optional(z.never())
|
|
3874
|
+
query: z.optional(z.never())
|
|
3723
3875
|
}).strict();
|
|
3724
3876
|
/**
|
|
3725
3877
|
* The list of ingested source files stored against a users account
|
|
@@ -3728,7 +3880,7 @@ export const getSourcesResponse = sourcelistresponseSourceListResponseSchema;
|
|
|
3728
3880
|
export const postSourceRequest = z.object({
|
|
3729
3881
|
body: sourceSourceSchema,
|
|
3730
3882
|
path: z.optional(z.never()),
|
|
3731
|
-
query: z.optional(z.never())
|
|
3883
|
+
query: z.optional(z.never())
|
|
3732
3884
|
}).strict();
|
|
3733
3885
|
/**
|
|
3734
3886
|
* The queued source file details
|
|
@@ -3737,11 +3889,9 @@ export const postSourceResponse = queuedsourceresponseQueuedSourceResponseSchema
|
|
|
3737
3889
|
export const deleteSourceRequest = z.object({
|
|
3738
3890
|
body: z.optional(z.never()),
|
|
3739
3891
|
path: z.object({
|
|
3740
|
-
id: z
|
|
3741
|
-
.string()
|
|
3742
|
-
.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}$/),
|
|
3892
|
+
id: z.union([z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3743
3893
|
}),
|
|
3744
|
-
query: z.optional(z.never())
|
|
3894
|
+
query: z.optional(z.never())
|
|
3745
3895
|
}).strict();
|
|
3746
3896
|
/**
|
|
3747
3897
|
* An empty response signifying the ingested source file has been deleted.
|
|
@@ -3750,11 +3900,9 @@ export const deleteSourceResponse = z.void();
|
|
|
3750
3900
|
export const getSourceRequest = z.object({
|
|
3751
3901
|
body: z.optional(z.never()),
|
|
3752
3902
|
path: z.object({
|
|
3753
|
-
id: z
|
|
3754
|
-
.string()
|
|
3755
|
-
.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}$/),
|
|
3903
|
+
id: z.union([z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3756
3904
|
}),
|
|
3757
|
-
query: z.optional(z.never())
|
|
3905
|
+
query: z.optional(z.never())
|
|
3758
3906
|
}).strict();
|
|
3759
3907
|
/**
|
|
3760
3908
|
* Get source file details by id
|
|
@@ -3763,7 +3911,7 @@ export const getSourceResponse = sourceresponseSourceResponseSchema;
|
|
|
3763
3911
|
export const getUploadSignedUrlRequest = z.object({
|
|
3764
3912
|
body: z.optional(z.never()),
|
|
3765
3913
|
path: z.optional(z.never()),
|
|
3766
|
-
query: z.optional(z.never())
|
|
3914
|
+
query: z.optional(z.never())
|
|
3767
3915
|
}).strict();
|
|
3768
3916
|
/**
|
|
3769
3917
|
* The id and signed URL to upload to.
|
|
@@ -3772,7 +3920,7 @@ export const getUploadSignedUrlResponse = uploadresponseUploadResponseSchema;
|
|
|
3772
3920
|
export const postGenerateAssetRequest = z.object({
|
|
3773
3921
|
body: generatedAssetGeneratedAssetSchema,
|
|
3774
3922
|
path: z.optional(z.never()),
|
|
3775
|
-
query: z.optional(z.never())
|
|
3923
|
+
query: z.optional(z.never())
|
|
3776
3924
|
}).strict();
|
|
3777
3925
|
/**
|
|
3778
3926
|
* The generated asset details
|
|
@@ -3781,11 +3929,9 @@ export const postGenerateAssetResponse = generatedAssetResponseGeneratedAssetRes
|
|
|
3781
3929
|
export const getGeneratedAssetRequest = z.object({
|
|
3782
3930
|
body: z.optional(z.never()),
|
|
3783
3931
|
path: z.object({
|
|
3784
|
-
id: z
|
|
3785
|
-
.string()
|
|
3786
|
-
.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}$/),
|
|
3932
|
+
id: z.union([z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
3787
3933
|
}),
|
|
3788
|
-
query: z.optional(z.never())
|
|
3934
|
+
query: z.optional(z.never())
|
|
3789
3935
|
}).strict();
|
|
3790
3936
|
/**
|
|
3791
3937
|
* The generated asset details
|