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