@shotstack/schemas 1.13.3 → 1.14.1
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/dist/api.bundled.json +98 -11
- package/dist/json-schema/asset.json +144 -0
- package/dist/json-schema/audio-asset.json +59 -21
- package/dist/json-schema/clip.json +144 -0
- package/dist/json-schema/destinations.json +19 -5
- package/dist/json-schema/edit.json +163 -5
- package/dist/json-schema/google-drive-destination-options.json +12 -5
- package/dist/json-schema/google-drive-destination.json +21 -7
- package/dist/json-schema/image-asset.json +39 -1
- package/dist/json-schema/output.json +19 -5
- package/dist/json-schema/schemas.json +177 -10
- package/dist/json-schema/template.json +145 -1
- package/dist/json-schema/timeline.json +144 -0
- package/dist/json-schema/track.json +144 -0
- package/dist/json-schema/video-asset.json +106 -29
- package/dist/schema.d.ts +55 -7
- package/dist/zod/zod.gen.cjs +55 -2
- package/dist/zod/zod.gen.d.ts +1824 -177
- package/dist/zod/zod.gen.js +55 -2
- package/dist/zod/zod.gen.ts +49 -2
- package/package.json +1 -1
package/dist/zod/zod.gen.cjs
CHANGED
|
@@ -268,7 +268,7 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
|
|
|
268
268
|
* Pass the folder ID and options to configure how assets are stored in Google Drive.
|
|
269
269
|
*/
|
|
270
270
|
exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
|
|
271
|
-
folderId: zod_1.z.string(),
|
|
271
|
+
folderId: zod_1.z.optional(zod_1.z.string()),
|
|
272
272
|
filename: zod_1.z.optional(zod_1.z.string())
|
|
273
273
|
}).strict();
|
|
274
274
|
exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
@@ -277,7 +277,7 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
|
|
|
277
277
|
*/
|
|
278
278
|
exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
|
|
279
279
|
provider: zod_1.z.literal("google-drive"),
|
|
280
|
-
options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema
|
|
280
|
+
options: zod_1.z.optional(exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema)
|
|
281
281
|
}).strict();
|
|
282
282
|
exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
|
|
283
283
|
/**
|
|
@@ -487,6 +487,20 @@ exports.imageassetImageAssetSchema = zod_1.z.object({
|
|
|
487
487
|
src: zod_1.z.optional(zod_1.z.string().min(1).regex(/\S/)),
|
|
488
488
|
prompt: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
489
489
|
model: zod_1.z.optional(zod_1.z.string()),
|
|
490
|
+
resolution: zod_1.z.optional(zod_1.z.enum([
|
|
491
|
+
'1K',
|
|
492
|
+
'2K',
|
|
493
|
+
'4K'
|
|
494
|
+
])),
|
|
495
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
496
|
+
'1:1',
|
|
497
|
+
'16:9',
|
|
498
|
+
'9:16',
|
|
499
|
+
'4:3',
|
|
500
|
+
'3:4',
|
|
501
|
+
'21:9',
|
|
502
|
+
'9:21'
|
|
503
|
+
])),
|
|
490
504
|
crop: zod_1.z.optional(exports.cropCropSchema)
|
|
491
505
|
}).strict().superRefine((data, ctx) => {
|
|
492
506
|
var hasSrc = typeof data.src === "string" && data.src.trim().length > 0;
|
|
@@ -2190,6 +2204,15 @@ exports.audioassetAudioAssetSchema = zod_1.z.object({
|
|
|
2190
2204
|
language: zod_1.z.optional(zod_1.z.string()),
|
|
2191
2205
|
newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
2192
2206
|
model: zod_1.z.optional(zod_1.z.string()),
|
|
2207
|
+
musicLengthMs: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2208
|
+
return undefined; if (Array.isArray(v))
|
|
2209
|
+
return v; if (typeof v === 'string') {
|
|
2210
|
+
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
2211
|
+
return v;
|
|
2212
|
+
return Number(v);
|
|
2213
|
+
} return v; }), zod_1.z.number().gte(3000).lte(600000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2214
|
+
forceInstrumental: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
2215
|
+
compositionPlan: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
2193
2216
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2194
2217
|
return undefined; if (Array.isArray(v))
|
|
2195
2218
|
return v; if (typeof v === 'string') {
|
|
@@ -2426,6 +2449,36 @@ exports.videoassetVideoAssetSchema = zod_1.z.object({
|
|
|
2426
2449
|
prompt: zod_1.z.optional(zod_1.z.string().max(4000)),
|
|
2427
2450
|
inputSrc: zod_1.z.optional(zod_1.z.string().min(1)),
|
|
2428
2451
|
model: zod_1.z.optional(zod_1.z.string()),
|
|
2452
|
+
resolution: zod_1.z.optional(zod_1.z.enum([
|
|
2453
|
+
'480p',
|
|
2454
|
+
'720p',
|
|
2455
|
+
'1080p'
|
|
2456
|
+
])),
|
|
2457
|
+
duration: zod_1.z.optional(zod_1.z.enum([
|
|
2458
|
+
'auto',
|
|
2459
|
+
'4',
|
|
2460
|
+
'5',
|
|
2461
|
+
'6',
|
|
2462
|
+
'7',
|
|
2463
|
+
'8',
|
|
2464
|
+
'9',
|
|
2465
|
+
'10',
|
|
2466
|
+
'11',
|
|
2467
|
+
'12',
|
|
2468
|
+
'13',
|
|
2469
|
+
'14',
|
|
2470
|
+
'15'
|
|
2471
|
+
])),
|
|
2472
|
+
aspectRatio: zod_1.z.optional(zod_1.z.enum([
|
|
2473
|
+
'1:1',
|
|
2474
|
+
'16:9',
|
|
2475
|
+
'9:16',
|
|
2476
|
+
'4:3',
|
|
2477
|
+
'3:4',
|
|
2478
|
+
'21:9',
|
|
2479
|
+
'9:21'
|
|
2480
|
+
])),
|
|
2481
|
+
generateAudio: zod_1.z.optional(zod_1.z.boolean()).default(false),
|
|
2429
2482
|
transcode: zod_1.z.optional(zod_1.z.boolean()),
|
|
2430
2483
|
trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
2431
2484
|
return undefined; if (Array.isArray(v))
|