@shotstack/schemas 1.24.0-beta.2 → 1.24.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/dist/api.bundled.json +2 -41
- package/dist/json-schema/edit.json +2 -44
- package/dist/json-schema/index.cjs +1 -1
- package/dist/json-schema/index.js +1 -1
- package/dist/schema.d.ts +2 -14
- package/dist/zod/zod.gen.cjs +9 -27
- package/dist/zod/zod.gen.d.ts +2 -289
- package/dist/zod/zod.gen.js +3 -21
- package/dist/zod/zod.gen.ts +3 -17
- package/package.json +1 -1
package/dist/zod/zod.gen.js
CHANGED
|
@@ -417,23 +417,6 @@ export const destinationsDestinationsSchema = z.discriminatedUnion("provider", [
|
|
|
417
417
|
azureBlobStorageDestinationAzureBlobStorageDestinationSchema
|
|
418
418
|
]);
|
|
419
419
|
export const destinationsSchema = destinationsDestinationsSchema;
|
|
420
|
-
/**
|
|
421
|
-
* Lowers the clip's volume while other clips play and restores it afterwards, for example to keep music under a voiceover. The volume ramps down just before each referenced clip starts and back up after it ends. Requires a numeric `volume` on the clip and cannot be combined with `speed`.
|
|
422
|
-
*/
|
|
423
|
-
export const duckDuckSchema = z.object({
|
|
424
|
-
under: z.union([
|
|
425
|
-
z.union([z.string().regex(/^alias:\/\/[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
426
|
-
z.array(z.union([z.string().regex(/^alias:\/\/[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).min(1)
|
|
427
|
-
]),
|
|
428
|
-
volume: z.optional(z.union([z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
|
|
429
|
-
return undefined; if (Array.isArray(v))
|
|
430
|
-
return v; if (typeof v === 'string') {
|
|
431
|
-
if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
|
|
432
|
-
return v;
|
|
433
|
-
return Number(v);
|
|
434
|
-
} return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
435
|
-
}).strict();
|
|
436
|
-
export const duckSchema = duckDuckSchema;
|
|
437
420
|
/**
|
|
438
421
|
* Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.
|
|
439
422
|
*/
|
|
@@ -2396,8 +2379,7 @@ export const audioassetAudioAssetSchema = z.object({
|
|
|
2396
2379
|
'fadeIn',
|
|
2397
2380
|
'fadeOut',
|
|
2398
2381
|
'fadeInFadeOut'
|
|
2399
|
-
]))
|
|
2400
|
-
duck: z.optional(duckDuckSchema)
|
|
2382
|
+
]))
|
|
2401
2383
|
}).strict().superRefine((data, ctx) => {
|
|
2402
2384
|
var hasSrc = typeof data.src === "string" && data.src.trim().length > 0;
|
|
2403
2385
|
var hasPrompt = typeof data.prompt === "string" && data.prompt.trim().length > 0;
|
|
@@ -2609,7 +2591,7 @@ export const pixelatefilterPixelateFilterSchema = z.object({
|
|
|
2609
2591
|
}).strict();
|
|
2610
2592
|
export const pixelateFilterSchema = pixelatefilterPixelateFilterSchema;
|
|
2611
2593
|
/**
|
|
2612
|
-
* Offsets the red and blue channels in opposite directions to create a color fringing effect.
|
|
2594
|
+
* Offsets the red and blue channels in opposite directions to create a color fringing effect. Channels pushed past one edge of the frame reappear at the opposite edge, so small values such as 0.02 work best and 1 or -1 shows no split.
|
|
2613
2595
|
*/
|
|
2614
2596
|
export const rgbsplitfilterRgbSplitFilterSchema = z.object({
|
|
2615
2597
|
type: z.enum(['rgbSplit']),
|
|
@@ -2696,7 +2678,7 @@ export const sharpenfilterSharpenFilterSchema = z.object({
|
|
|
2696
2678
|
}).strict();
|
|
2697
2679
|
export const sharpenFilterSchema = sharpenfilterSharpenFilterSchema;
|
|
2698
2680
|
/**
|
|
2699
|
-
* A filter that adjusts the look of a Clip. Choose from one of the available filter types below.
|
|
2681
|
+
* A filter that adjusts the look of a Clip. Choose from one of the available filter types below. Tween values outside a field's range are limited to that range.
|
|
2700
2682
|
*/
|
|
2701
2683
|
export const filterFilterSchema = z.discriminatedUnion("type", [
|
|
2702
2684
|
brightnessfilterBrightnessFilterSchema,
|
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -374,19 +374,6 @@ export const destinationsDestinationsSchema = z.discriminatedUnion("provider", [
|
|
|
374
374
|
|
|
375
375
|
export const destinationsSchema = destinationsDestinationsSchema;
|
|
376
376
|
|
|
377
|
-
/**
|
|
378
|
-
* Lowers the clip's volume while other clips play and restores it afterwards, for example to keep music under a voiceover. The volume ramps down just before each referenced clip starts and back up after it ends. Requires a numeric `volume` on the clip and cannot be combined with `speed`.
|
|
379
|
-
*/
|
|
380
|
-
export const duckDuckSchema = z.object({
|
|
381
|
-
under: z.union([
|
|
382
|
-
z.union([z.string().regex(/^alias:\/\/[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
383
|
-
z.array(z.union([z.string().regex(/^alias:\/\/[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).min(1)
|
|
384
|
-
]),
|
|
385
|
-
volume: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
386
|
-
}).strict();
|
|
387
|
-
|
|
388
|
-
export const duckSchema = duckDuckSchema;
|
|
389
|
-
|
|
390
377
|
/**
|
|
391
378
|
* Flip a clip vertically or horizontally. Acts as a mirror effect of the clip along the selected plane.
|
|
392
379
|
*/
|
|
@@ -1997,8 +1984,7 @@ export const audioassetAudioAssetSchema = z.object({
|
|
|
1997
1984
|
'fadeIn',
|
|
1998
1985
|
'fadeOut',
|
|
1999
1986
|
'fadeInFadeOut'
|
|
2000
|
-
]))
|
|
2001
|
-
duck: z.optional(duckDuckSchema)
|
|
1987
|
+
]))
|
|
2002
1988
|
}).strict().superRefine((data, ctx) => {
|
|
2003
1989
|
var hasSrc = typeof data.src === "string" && data.src.trim().length > 0;
|
|
2004
1990
|
var hasPrompt = typeof data.prompt === "string" && data.prompt.trim().length > 0;
|
|
@@ -2136,7 +2122,7 @@ export const pixelatefilterPixelateFilterSchema = z.object({
|
|
|
2136
2122
|
export const pixelateFilterSchema = pixelatefilterPixelateFilterSchema;
|
|
2137
2123
|
|
|
2138
2124
|
/**
|
|
2139
|
-
* Offsets the red and blue channels in opposite directions to create a color fringing effect.
|
|
2125
|
+
* Offsets the red and blue channels in opposite directions to create a color fringing effect. Channels pushed past one edge of the frame reappear at the opposite edge, so small values such as 0.02 work best and 1 or -1 shows no split.
|
|
2140
2126
|
*/
|
|
2141
2127
|
export const rgbsplitfilterRgbSplitFilterSchema = z.object({
|
|
2142
2128
|
type: z.enum(['rgbSplit']),
|
|
@@ -2195,7 +2181,7 @@ export const sharpenfilterSharpenFilterSchema = z.object({
|
|
|
2195
2181
|
export const sharpenFilterSchema = sharpenfilterSharpenFilterSchema;
|
|
2196
2182
|
|
|
2197
2183
|
/**
|
|
2198
|
-
* A filter that adjusts the look of a Clip. Choose from one of the available filter types below.
|
|
2184
|
+
* A filter that adjusts the look of a Clip. Choose from one of the available filter types below. Tween values outside a field's range are limited to that range.
|
|
2199
2185
|
*/
|
|
2200
2186
|
export const filterFilterSchema = z.discriminatedUnion("type", [
|
|
2201
2187
|
brightnessfilterBrightnessFilterSchema,
|