@shotstack/schemas 1.5.7 → 1.5.9
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 +100 -5
- package/dist/schema.d.ts +11 -2
- package/dist/zod/zod.gen.cjs +174 -173
- package/dist/zod/zod.gen.d.ts +3812 -3727
- package/dist/zod/zod.gen.js +174 -173
- package/dist/zod/zod.gen.ts +174 -173
- package/package.json +1 -1
package/dist/zod/zod.gen.ts
CHANGED
|
@@ -42,7 +42,7 @@ export const captionpropertiesCaptionBackgroundSchema = z.object({
|
|
|
42
42
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
43
43
|
padding: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
44
44
|
borderRadius: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
45
|
-
});
|
|
45
|
+
}).strict();
|
|
46
46
|
|
|
47
47
|
export const captionBackgroundSchema = captionpropertiesCaptionBackgroundSchema;
|
|
48
48
|
|
|
@@ -57,7 +57,7 @@ export const captionpropertiesCaptionFontSchema = z.object({
|
|
|
57
57
|
lineHeight: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
58
58
|
stroke: z.optional(z.string()),
|
|
59
59
|
strokeWidth: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
60
|
-
});
|
|
60
|
+
}).strict();
|
|
61
61
|
|
|
62
62
|
export const captionFontSchema = captionpropertiesCaptionFontSchema;
|
|
63
63
|
|
|
@@ -68,7 +68,7 @@ export const captionpropertiesCaptionMarginSchema = z.object({
|
|
|
68
68
|
top: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
69
69
|
left: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
70
70
|
right: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
71
|
-
});
|
|
71
|
+
}).strict();
|
|
72
72
|
|
|
73
73
|
export const captionMarginSchema = captionpropertiesCaptionMarginSchema;
|
|
74
74
|
|
|
@@ -92,7 +92,7 @@ export const captionassetCaptionAssetSchema = z.object({
|
|
|
92
92
|
margin: z.optional(captionpropertiesCaptionMarginSchema),
|
|
93
93
|
trim: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
94
94
|
speed: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
95
|
-
});
|
|
95
|
+
}).strict();
|
|
96
96
|
|
|
97
97
|
export const captionAssetSchema = captionassetCaptionAssetSchema;
|
|
98
98
|
|
|
@@ -103,7 +103,7 @@ export const chromakeyChromaKeySchema = z.object({
|
|
|
103
103
|
color: z.union([z.string().regex(/^#[0-9a-fA-F]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
104
104
|
threshold: 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().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
105
105
|
halo: 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().int().gte(0).lte(250)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
106
|
-
});
|
|
106
|
+
}).strict();
|
|
107
107
|
|
|
108
108
|
export const chromaKeySchema = chromakeyChromaKeySchema;
|
|
109
109
|
|
|
@@ -115,7 +115,7 @@ export const didTextToAvatarOptionsDidTextToAvatarOptionsSchema = z.object({
|
|
|
115
115
|
text: z.string(),
|
|
116
116
|
avatar: z.enum(["jack", "lana", "lily", "matt", "rian"]),
|
|
117
117
|
background: z.optional(z.string()),
|
|
118
|
-
});
|
|
118
|
+
}).strict();
|
|
119
119
|
|
|
120
120
|
export const didTextToAvatarOptionsSchema =
|
|
121
121
|
didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
|
|
@@ -142,7 +142,7 @@ export const didGeneratedAssetOptionsSchema =
|
|
|
142
142
|
export const didGeneratedAssetDidGeneratedAssetSchema = z.object({
|
|
143
143
|
provider: z.enum(["d-id"]),
|
|
144
144
|
options: didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
|
|
145
|
-
});
|
|
145
|
+
}).strict();
|
|
146
146
|
|
|
147
147
|
export const didGeneratedAssetSchema = didGeneratedAssetDidGeneratedAssetSchema;
|
|
148
148
|
|
|
@@ -164,7 +164,7 @@ export const elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema =
|
|
|
164
164
|
"Rachel",
|
|
165
165
|
"Sam",
|
|
166
166
|
]),
|
|
167
|
-
});
|
|
167
|
+
}).strict();
|
|
168
168
|
|
|
169
169
|
export const elevenLabsTextToSpeechOptionsSchema =
|
|
170
170
|
elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
|
|
@@ -194,7 +194,7 @@ export const elevenLabsGeneratedAssetOptionsSchema =
|
|
|
194
194
|
export const elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = z.object({
|
|
195
195
|
provider: z.enum(["elevenlabs"]),
|
|
196
196
|
options: elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
|
|
197
|
-
});
|
|
197
|
+
}).strict();
|
|
198
198
|
|
|
199
199
|
export const elevenLabsGeneratedAssetSchema =
|
|
200
200
|
elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
|
|
@@ -323,7 +323,7 @@ export const heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema =
|
|
|
323
323
|
background: z.optional(z.string()),
|
|
324
324
|
ratio: z.optional(z.enum(["16:9", "9:16"])),
|
|
325
325
|
test: z.optional(z.boolean()),
|
|
326
|
-
});
|
|
326
|
+
}).strict();
|
|
327
327
|
|
|
328
328
|
export const heyGenTextToAvatarOptionsSchema =
|
|
329
329
|
heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
|
|
@@ -350,7 +350,7 @@ export const heyGenGeneratedAssetOptionsSchema =
|
|
|
350
350
|
export const heygenGeneratedAssetHeyGenGeneratedAssetSchema = z.object({
|
|
351
351
|
provider: z.enum(["heygen"]),
|
|
352
352
|
options: heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
|
|
353
|
-
});
|
|
353
|
+
}).strict();
|
|
354
354
|
|
|
355
355
|
export const heyGenGeneratedAssetSchema =
|
|
356
356
|
heygenGeneratedAssetHeyGenGeneratedAssetSchema;
|
|
@@ -364,7 +364,7 @@ export const openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema =
|
|
|
364
364
|
prompt: z.string(),
|
|
365
365
|
model: z.enum(["gpt-3.5-turbo", "gpt-4"]),
|
|
366
366
|
systemPrompt: z.optional(z.string()),
|
|
367
|
-
});
|
|
367
|
+
}).strict();
|
|
368
368
|
|
|
369
369
|
export const openAiTextGeneratorOptionsSchema =
|
|
370
370
|
openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
|
|
@@ -391,7 +391,7 @@ export const openAiGeneratedAssetOptionsSchema =
|
|
|
391
391
|
export const openaiGeneratedAssetOpenAiGeneratedAssetSchema = z.object({
|
|
392
392
|
provider: z.enum(["openai"]),
|
|
393
393
|
options: openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
|
|
394
|
-
});
|
|
394
|
+
}).strict();
|
|
395
395
|
|
|
396
396
|
export const openAiGeneratedAssetSchema =
|
|
397
397
|
openaiGeneratedAssetOpenAiGeneratedAssetSchema;
|
|
@@ -404,7 +404,7 @@ export const generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchem
|
|
|
404
404
|
status: z.string(),
|
|
405
405
|
title: z.string(),
|
|
406
406
|
detail: z.string(),
|
|
407
|
-
});
|
|
407
|
+
}).strict();
|
|
408
408
|
|
|
409
409
|
export const generatedAssetErrorResponseDataSchema =
|
|
410
410
|
generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
|
|
@@ -417,7 +417,7 @@ export const generatedAssetErrorResponseGeneratedAssetErrorResponseSchema =
|
|
|
417
417
|
errors: z.array(
|
|
418
418
|
generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema,
|
|
419
419
|
),
|
|
420
|
-
});
|
|
420
|
+
}).strict();
|
|
421
421
|
|
|
422
422
|
export const generatedAssetErrorResponseSchema =
|
|
423
423
|
generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
|
|
@@ -434,7 +434,7 @@ export const generatedAssetResponseAttributesGeneratedAssetResponseAttributesSch
|
|
|
434
434
|
status: z.enum(["queued", "processing", "saving", "done", "failed"]),
|
|
435
435
|
created: z.string(),
|
|
436
436
|
updated: z.string(),
|
|
437
|
-
});
|
|
437
|
+
}).strict();
|
|
438
438
|
|
|
439
439
|
export const generatedAssetResponseAttributesSchema =
|
|
440
440
|
generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
|
|
@@ -448,7 +448,7 @@ export const generatedAssetResponseDataGeneratedAssetResponseDataSchema =
|
|
|
448
448
|
id: z.string(),
|
|
449
449
|
attributes:
|
|
450
450
|
generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
|
|
451
|
-
});
|
|
451
|
+
}).strict();
|
|
452
452
|
|
|
453
453
|
export const generatedAssetResponseDataSchema =
|
|
454
454
|
generatedAssetResponseDataGeneratedAssetResponseDataSchema;
|
|
@@ -458,7 +458,7 @@ export const generatedAssetResponseDataSchema =
|
|
|
458
458
|
*/
|
|
459
459
|
export const generatedAssetResponseGeneratedAssetResponseSchema = z.object({
|
|
460
460
|
data: generatedAssetResponseDataGeneratedAssetResponseDataSchema,
|
|
461
|
-
});
|
|
461
|
+
}).strict();
|
|
462
462
|
|
|
463
463
|
export const generatedAssetResponseSchema =
|
|
464
464
|
generatedAssetResponseGeneratedAssetResponseSchema;
|
|
@@ -472,7 +472,7 @@ export const shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema =
|
|
|
472
472
|
imageUrl: z.string(),
|
|
473
473
|
guidanceScale: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.8),
|
|
474
474
|
motion: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127),
|
|
475
|
-
});
|
|
475
|
+
}).strict();
|
|
476
476
|
|
|
477
477
|
export const shotstackImageToVideoOptionsSchema =
|
|
478
478
|
shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
|
|
@@ -484,7 +484,7 @@ export const shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema =
|
|
|
484
484
|
z.object({
|
|
485
485
|
type: z.enum(["text-generator"]),
|
|
486
486
|
prompt: z.string(),
|
|
487
|
-
});
|
|
487
|
+
}).strict();
|
|
488
488
|
|
|
489
489
|
export const shotstackTextGeneratorOptionsSchema =
|
|
490
490
|
shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
|
|
@@ -498,7 +498,7 @@ export const shotstackTextToImageOptionsShotstackTextToImageOptionsSchema =
|
|
|
498
498
|
prompt: z.string(),
|
|
499
499
|
width: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
500
500
|
height: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
501
|
-
});
|
|
501
|
+
}).strict();
|
|
502
502
|
|
|
503
503
|
export const shotstackTextToImageOptionsSchema =
|
|
504
504
|
shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
|
|
@@ -603,7 +603,7 @@ export const shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema =
|
|
|
603
603
|
]),
|
|
604
604
|
),
|
|
605
605
|
newscaster: z.optional(z.boolean()).default(false),
|
|
606
|
-
});
|
|
606
|
+
}).strict();
|
|
607
607
|
|
|
608
608
|
export const shotstackTextToSpeechOptionsSchema =
|
|
609
609
|
shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
|
|
@@ -652,7 +652,7 @@ export const shotstackGeneratedAssetOptionsSchema =
|
|
|
652
652
|
export const shotstackGeneratedAssetShotstackGeneratedAssetSchema = z.object({
|
|
653
653
|
provider: z.enum(["shotstack"]),
|
|
654
654
|
options: shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
|
|
655
|
-
});
|
|
655
|
+
}).strict();
|
|
656
656
|
|
|
657
657
|
export const shotstackGeneratedAssetSchema =
|
|
658
658
|
shotstackGeneratedAssetShotstackGeneratedAssetSchema;
|
|
@@ -699,7 +699,7 @@ export const stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema =
|
|
|
699
699
|
"tile-texture",
|
|
700
700
|
]),
|
|
701
701
|
),
|
|
702
|
-
});
|
|
702
|
+
}).strict();
|
|
703
703
|
|
|
704
704
|
export const stabilityAiTextToImageOptionsSchema =
|
|
705
705
|
stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
|
|
@@ -731,7 +731,7 @@ export const stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema =
|
|
|
731
731
|
provider: z.enum(["stability-ai"]),
|
|
732
732
|
options:
|
|
733
733
|
stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
|
|
734
|
-
});
|
|
734
|
+
}).strict();
|
|
735
735
|
|
|
736
736
|
export const stabilityAiGeneratedAssetSchema =
|
|
737
737
|
stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
|
|
@@ -784,7 +784,7 @@ export const cropCropSchema = z.object({
|
|
|
784
784
|
bottom: 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*\}\}$/)])),
|
|
785
785
|
left: 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*\}\}$/)])),
|
|
786
786
|
right: 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*\}\}$/)])),
|
|
787
|
-
});
|
|
787
|
+
}).strict();
|
|
788
788
|
|
|
789
789
|
export const cropSchema = cropCropSchema;
|
|
790
790
|
|
|
@@ -796,7 +796,7 @@ export const googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOp
|
|
|
796
796
|
bucket: z.string(),
|
|
797
797
|
prefix: z.optional(z.string()),
|
|
798
798
|
filename: z.optional(z.string()),
|
|
799
|
-
});
|
|
799
|
+
}).strict();
|
|
800
800
|
|
|
801
801
|
export const googleCloudStorageDestinationOptionsSchema =
|
|
802
802
|
googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
|
|
@@ -810,7 +810,7 @@ export const googleCloudStorageDestinationGoogleCloudStorageDestinationSchema =
|
|
|
810
810
|
options: z.optional(
|
|
811
811
|
googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema,
|
|
812
812
|
),
|
|
813
|
-
});
|
|
813
|
+
}).strict();
|
|
814
814
|
|
|
815
815
|
export const googleCloudStorageDestinationSchema =
|
|
816
816
|
googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
|
|
@@ -822,7 +822,7 @@ export const googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema =
|
|
|
822
822
|
z.object({
|
|
823
823
|
folderId: z.string(),
|
|
824
824
|
filename: z.optional(z.string()),
|
|
825
|
-
});
|
|
825
|
+
}).strict();
|
|
826
826
|
|
|
827
827
|
export const googleDriveDestinationOptionsSchema =
|
|
828
828
|
googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
|
|
@@ -833,7 +833,7 @@ export const googleDriveDestinationOptionsSchema =
|
|
|
833
833
|
export const googleDriveDestinationGoogleDriveDestinationSchema = z.object({
|
|
834
834
|
provider: z.literal("google-drive"),
|
|
835
835
|
options: googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
|
|
836
|
-
});
|
|
836
|
+
}).strict();
|
|
837
837
|
|
|
838
838
|
export const googleDriveDestinationSchema =
|
|
839
839
|
googleDriveDestinationGoogleDriveDestinationSchema;
|
|
@@ -844,7 +844,7 @@ export const googleDriveDestinationSchema =
|
|
|
844
844
|
export const muxDestinationOptionsMuxDestinationOptionsSchema = z.object({
|
|
845
845
|
playbackPolicy: z.optional(z.array(z.enum(["public", "signed"]))),
|
|
846
846
|
passthrough: z.optional(z.string().max(255)),
|
|
847
|
-
});
|
|
847
|
+
}).strict();
|
|
848
848
|
|
|
849
849
|
export const muxDestinationOptionsSchema =
|
|
850
850
|
muxDestinationOptionsMuxDestinationOptionsSchema;
|
|
@@ -855,7 +855,7 @@ export const muxDestinationOptionsSchema =
|
|
|
855
855
|
export const muxDestinationMuxDestinationSchema = z.object({
|
|
856
856
|
provider: z.literal("mux"),
|
|
857
857
|
options: z.optional(muxDestinationOptionsMuxDestinationOptionsSchema),
|
|
858
|
-
});
|
|
858
|
+
}).strict();
|
|
859
859
|
|
|
860
860
|
export const muxDestinationSchema = muxDestinationMuxDestinationSchema;
|
|
861
861
|
|
|
@@ -868,7 +868,7 @@ export const s3DestinationOptionsS3DestinationOptionsSchema = z.object({
|
|
|
868
868
|
prefix: z.optional(z.string()),
|
|
869
869
|
filename: z.optional(z.string()),
|
|
870
870
|
acl: z.optional(z.string()),
|
|
871
|
-
});
|
|
871
|
+
}).strict();
|
|
872
872
|
|
|
873
873
|
export const s3DestinationOptionsSchema =
|
|
874
874
|
s3DestinationOptionsS3DestinationOptionsSchema;
|
|
@@ -879,7 +879,7 @@ export const s3DestinationOptionsSchema =
|
|
|
879
879
|
export const s3DestinationS3DestinationSchema = z.object({
|
|
880
880
|
provider: z.literal("s3"),
|
|
881
881
|
options: z.optional(s3DestinationOptionsS3DestinationOptionsSchema),
|
|
882
|
-
});
|
|
882
|
+
}).strict();
|
|
883
883
|
|
|
884
884
|
export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
885
885
|
|
|
@@ -889,7 +889,7 @@ export const s3DestinationSchema = s3DestinationS3DestinationSchema;
|
|
|
889
889
|
export const shotstackDestinationShotstackDestinationSchema = z.object({
|
|
890
890
|
provider: z.literal("shotstack"),
|
|
891
891
|
exclude: z.optional(z.boolean()),
|
|
892
|
-
});
|
|
892
|
+
}).strict();
|
|
893
893
|
|
|
894
894
|
export const shotstackDestinationSchema =
|
|
895
895
|
shotstackDestinationShotstackDestinationSchema;
|
|
@@ -903,7 +903,7 @@ export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
|
|
|
903
903
|
disableDuet: z.optional(z.boolean()).default(false),
|
|
904
904
|
disableStitch: z.optional(z.boolean()).default(false),
|
|
905
905
|
disableComment: z.optional(z.boolean()).default(false),
|
|
906
|
-
});
|
|
906
|
+
}).strict();
|
|
907
907
|
|
|
908
908
|
/**
|
|
909
909
|
* Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
|
|
@@ -911,7 +911,7 @@ export const tiktokDestinationOptionsTiktokDestinationOptionsSchema = z.object({
|
|
|
911
911
|
export const tiktokDestinationTiktokDestinationSchema = z.object({
|
|
912
912
|
provider: z.literal("tiktok"),
|
|
913
913
|
options: z.optional(tiktokDestinationOptionsTiktokDestinationOptionsSchema),
|
|
914
|
-
});
|
|
914
|
+
}).strict();
|
|
915
915
|
|
|
916
916
|
/**
|
|
917
917
|
* Options to control the visibility of videos and privacy features.
|
|
@@ -925,7 +925,7 @@ export const vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema
|
|
|
925
925
|
comments: z.optional(z.enum(["anybody", "nobody", "contacts"])),
|
|
926
926
|
download: z.optional(z.boolean()),
|
|
927
927
|
add: z.optional(z.boolean()),
|
|
928
|
-
});
|
|
928
|
+
}).strict();
|
|
929
929
|
|
|
930
930
|
export const vimeoDestinationPrivacyOptionsSchema =
|
|
931
931
|
vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
|
|
@@ -940,7 +940,7 @@ export const vimeoDestinationOptionsVimeoDestinationOptionsSchema = z.object({
|
|
|
940
940
|
vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema,
|
|
941
941
|
),
|
|
942
942
|
folderUri: z.optional(z.string()),
|
|
943
|
-
});
|
|
943
|
+
}).strict();
|
|
944
944
|
|
|
945
945
|
export const vimeoDestinationOptionsSchema =
|
|
946
946
|
vimeoDestinationOptionsVimeoDestinationOptionsSchema;
|
|
@@ -951,7 +951,7 @@ export const vimeoDestinationOptionsSchema =
|
|
|
951
951
|
export const vimeoDestinationVimeoDestinationSchema = z.object({
|
|
952
952
|
provider: z.literal("vimeo"),
|
|
953
953
|
options: z.optional(vimeoDestinationOptionsVimeoDestinationOptionsSchema),
|
|
954
|
-
});
|
|
954
|
+
}).strict();
|
|
955
955
|
|
|
956
956
|
export const vimeoDestinationSchema = vimeoDestinationVimeoDestinationSchema;
|
|
957
957
|
|
|
@@ -978,7 +978,7 @@ export const destinationsSchema = destinationsDestinationsSchema;
|
|
|
978
978
|
export const fliptransformationFlipTransformationSchema = z.object({
|
|
979
979
|
horizontal: z.optional(z.boolean()),
|
|
980
980
|
vertical: z.optional(z.boolean()),
|
|
981
|
-
});
|
|
981
|
+
}).strict();
|
|
982
982
|
|
|
983
983
|
export const flipTransformationSchema =
|
|
984
984
|
fliptransformationFlipTransformationSchema;
|
|
@@ -988,7 +988,7 @@ export const flipTransformationSchema =
|
|
|
988
988
|
*/
|
|
989
989
|
export const fontFontSchema = z.object({
|
|
990
990
|
src: z.string(),
|
|
991
|
-
});
|
|
991
|
+
}).strict();
|
|
992
992
|
|
|
993
993
|
export const fontSchema = fontFontSchema;
|
|
994
994
|
|
|
@@ -1022,7 +1022,7 @@ export const htmlassetHtmlAssetSchema = z.object({
|
|
|
1022
1022
|
"center",
|
|
1023
1023
|
]),
|
|
1024
1024
|
),
|
|
1025
|
-
});
|
|
1025
|
+
}).strict();
|
|
1026
1026
|
|
|
1027
1027
|
export const htmlAssetSchema = htmlassetHtmlAssetSchema;
|
|
1028
1028
|
|
|
@@ -1033,7 +1033,7 @@ export const imageassetImageAssetSchema = z.object({
|
|
|
1033
1033
|
type: z.enum(["image"]),
|
|
1034
1034
|
src: z.string().min(1).regex(/\S/),
|
|
1035
1035
|
crop: z.optional(cropCropSchema),
|
|
1036
|
-
});
|
|
1036
|
+
}).strict();
|
|
1037
1037
|
|
|
1038
1038
|
export const imageAssetSchema = imageassetImageAssetSchema;
|
|
1039
1039
|
|
|
@@ -1049,7 +1049,7 @@ export const imagetovideoassetImageToVideoAssetSchema = z.object({
|
|
|
1049
1049
|
),
|
|
1050
1050
|
speed: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1051
1051
|
crop: z.optional(cropCropSchema),
|
|
1052
|
-
});
|
|
1052
|
+
}).strict();
|
|
1053
1053
|
|
|
1054
1054
|
export const imageToVideoAssetSchema = imagetovideoassetImageToVideoAssetSchema;
|
|
1055
1055
|
|
|
@@ -1068,7 +1068,7 @@ export const dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = z.object({
|
|
|
1068
1068
|
"studio",
|
|
1069
1069
|
"voice_over",
|
|
1070
1070
|
]),
|
|
1071
|
-
});
|
|
1071
|
+
}).strict();
|
|
1072
1072
|
|
|
1073
1073
|
export const dolbyEnhancementOptionsSchema =
|
|
1074
1074
|
dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
|
|
@@ -1079,7 +1079,7 @@ export const dolbyEnhancementOptionsSchema =
|
|
|
1079
1079
|
export const dolbyEnhancementDolbyEnhancementSchema = z.object({
|
|
1080
1080
|
provider: z.string().default("dolby"),
|
|
1081
1081
|
options: dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
|
|
1082
|
-
});
|
|
1082
|
+
}).strict();
|
|
1083
1083
|
|
|
1084
1084
|
export const dolbyEnhancementSchema = dolbyEnhancementDolbyEnhancementSchema;
|
|
1085
1085
|
|
|
@@ -1102,7 +1102,7 @@ export const audioEnhancementSchema = audioEnhancementAudioEnhancementSchema;
|
|
|
1102
1102
|
*/
|
|
1103
1103
|
export const enhancementsEnhancementsSchema = z.object({
|
|
1104
1104
|
audio: z.optional(audioEnhancementAudioEnhancementSchema),
|
|
1105
|
-
});
|
|
1105
|
+
}).strict();
|
|
1106
1106
|
|
|
1107
1107
|
export const enhancementsSchema = enhancementsEnhancementsSchema;
|
|
1108
1108
|
|
|
@@ -1113,7 +1113,7 @@ export const ingesterrorresponsedataIngestErrorResponseDataSchema = z.object({
|
|
|
1113
1113
|
status: z.string(),
|
|
1114
1114
|
title: z.string(),
|
|
1115
1115
|
detail: z.string(),
|
|
1116
|
-
});
|
|
1116
|
+
}).strict();
|
|
1117
1117
|
|
|
1118
1118
|
export const ingestErrorResponseDataSchema =
|
|
1119
1119
|
ingesterrorresponsedataIngestErrorResponseDataSchema;
|
|
@@ -1123,7 +1123,7 @@ export const ingestErrorResponseDataSchema =
|
|
|
1123
1123
|
*/
|
|
1124
1124
|
export const ingesterrorresponseIngestErrorResponseSchema = z.object({
|
|
1125
1125
|
errors: z.array(ingesterrorresponsedataIngestErrorResponseDataSchema),
|
|
1126
|
-
});
|
|
1126
|
+
}).strict();
|
|
1127
1127
|
|
|
1128
1128
|
export const ingestErrorResponseSchema =
|
|
1129
1129
|
ingesterrorresponseIngestErrorResponseSchema;
|
|
@@ -1134,7 +1134,7 @@ export const ingestErrorResponseSchema =
|
|
|
1134
1134
|
export const queuedsourceresponsedataQueuedSourceResponseDataSchema = z.object({
|
|
1135
1135
|
type: z.string(),
|
|
1136
1136
|
id: z.string(),
|
|
1137
|
-
});
|
|
1137
|
+
}).strict();
|
|
1138
1138
|
|
|
1139
1139
|
export const queuedSourceResponseDataSchema =
|
|
1140
1140
|
queuedsourceresponsedataQueuedSourceResponseDataSchema;
|
|
@@ -1144,7 +1144,7 @@ export const queuedSourceResponseDataSchema =
|
|
|
1144
1144
|
*/
|
|
1145
1145
|
export const queuedsourceresponseQueuedSourceResponseSchema = z.object({
|
|
1146
1146
|
data: queuedsourceresponsedataQueuedSourceResponseDataSchema,
|
|
1147
|
-
});
|
|
1147
|
+
}).strict();
|
|
1148
1148
|
|
|
1149
1149
|
export const queuedSourceResponseSchema =
|
|
1150
1150
|
queuedsourceresponseQueuedSourceResponseSchema;
|
|
@@ -1156,7 +1156,7 @@ export const uploadresponseattributesUploadResponseAttributesSchema = z.object({
|
|
|
1156
1156
|
id: z.string(),
|
|
1157
1157
|
url: z.string(),
|
|
1158
1158
|
expires: z.string(),
|
|
1159
|
-
});
|
|
1159
|
+
}).strict();
|
|
1160
1160
|
|
|
1161
1161
|
export const uploadResponseAttributesSchema =
|
|
1162
1162
|
uploadresponseattributesUploadResponseAttributesSchema;
|
|
@@ -1168,7 +1168,7 @@ export const uploadresponsedataUploadResponseDataSchema = z.object({
|
|
|
1168
1168
|
type: z.string(),
|
|
1169
1169
|
id: z.string(),
|
|
1170
1170
|
attributes: uploadresponseattributesUploadResponseAttributesSchema,
|
|
1171
|
-
});
|
|
1171
|
+
}).strict();
|
|
1172
1172
|
|
|
1173
1173
|
export const uploadResponseDataSchema =
|
|
1174
1174
|
uploadresponsedataUploadResponseDataSchema;
|
|
@@ -1178,7 +1178,7 @@ export const uploadResponseDataSchema =
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
export const uploadresponseUploadResponseSchema = z.object({
|
|
1180
1180
|
data: uploadresponsedataUploadResponseDataSchema,
|
|
1181
|
-
});
|
|
1181
|
+
}).strict();
|
|
1182
1182
|
|
|
1183
1183
|
export const uploadResponseSchema = uploadresponseUploadResponseSchema;
|
|
1184
1184
|
|
|
@@ -1188,7 +1188,7 @@ export const uploadResponseSchema = uploadresponseUploadResponseSchema;
|
|
|
1188
1188
|
export const speedSpeedSchema = z.object({
|
|
1189
1189
|
speed: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1190
1190
|
preservePitch: z.optional(z.boolean()),
|
|
1191
|
-
});
|
|
1191
|
+
}).strict();
|
|
1192
1192
|
|
|
1193
1193
|
export const speedSchema = speedSpeedSchema;
|
|
1194
1194
|
|
|
@@ -1197,7 +1197,7 @@ export const speedSchema = speedSpeedSchema;
|
|
|
1197
1197
|
*/
|
|
1198
1198
|
export const transcriptionTranscriptionSchema = z.object({
|
|
1199
1199
|
format: z.optional(z.enum(["srt", "vtt"])),
|
|
1200
|
-
});
|
|
1200
|
+
}).strict();
|
|
1201
1201
|
|
|
1202
1202
|
export const transcriptionSchema = transcriptionTranscriptionSchema;
|
|
1203
1203
|
|
|
@@ -1208,7 +1208,7 @@ export const lumaassetLumaAssetSchema = z.object({
|
|
|
1208
1208
|
type: z.enum(["luma"]),
|
|
1209
1209
|
src: z.string().min(1).regex(/\S/),
|
|
1210
1210
|
trim: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1211
|
-
});
|
|
1211
|
+
}).strict();
|
|
1212
1212
|
|
|
1213
1213
|
export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
1214
1214
|
|
|
@@ -1218,7 +1218,7 @@ export const lumaAssetSchema = lumaassetLumaAssetSchema;
|
|
|
1218
1218
|
export const mergefieldMergeFieldSchema = z.object({
|
|
1219
1219
|
find: z.string(),
|
|
1220
1220
|
replace: z.union([z.string(), z.number(), z.boolean(), z.null(), z.record(z.string(), z.unknown()), z.array(z.unknown())]),
|
|
1221
|
-
});
|
|
1221
|
+
}).strict();
|
|
1222
1222
|
|
|
1223
1223
|
export const mergeFieldSchema = mergefieldMergeFieldSchema;
|
|
1224
1224
|
|
|
@@ -1227,7 +1227,7 @@ export const mergeFieldSchema = mergefieldMergeFieldSchema;
|
|
|
1227
1227
|
*/
|
|
1228
1228
|
export const posterPosterSchema = z.object({
|
|
1229
1229
|
capture: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1230
|
-
});
|
|
1230
|
+
}).strict();
|
|
1231
1231
|
|
|
1232
1232
|
export const posterSchema = posterPosterSchema;
|
|
1233
1233
|
|
|
@@ -1237,7 +1237,7 @@ export const posterSchema = posterPosterSchema;
|
|
|
1237
1237
|
export const rangeRangeSchema = z.object({
|
|
1238
1238
|
start: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1239
1239
|
length: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1240
|
-
});
|
|
1240
|
+
}).strict();
|
|
1241
1241
|
|
|
1242
1242
|
export const rangeSchema = rangeRangeSchema;
|
|
1243
1243
|
|
|
@@ -1255,7 +1255,7 @@ export const assetresponseattributesAssetResponseAttributesSchema = z.object({
|
|
|
1255
1255
|
status: z.enum(["importing", "ready", "failed", "deleted"]),
|
|
1256
1256
|
created: z.optional(z.string()),
|
|
1257
1257
|
updated: z.optional(z.string()),
|
|
1258
|
-
});
|
|
1258
|
+
}).strict();
|
|
1259
1259
|
|
|
1260
1260
|
export const assetResponseAttributesSchema =
|
|
1261
1261
|
assetresponseattributesAssetResponseAttributesSchema;
|
|
@@ -1266,7 +1266,7 @@ export const assetResponseAttributesSchema =
|
|
|
1266
1266
|
export const assetresponsedataAssetResponseDataSchema = z.object({
|
|
1267
1267
|
type: z.string(),
|
|
1268
1268
|
attributes: assetresponseattributesAssetResponseAttributesSchema,
|
|
1269
|
-
});
|
|
1269
|
+
}).strict();
|
|
1270
1270
|
|
|
1271
1271
|
export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
|
|
1272
1272
|
|
|
@@ -1275,7 +1275,7 @@ export const assetResponseDataSchema = assetresponsedataAssetResponseDataSchema;
|
|
|
1275
1275
|
*/
|
|
1276
1276
|
export const assetrenderresponseAssetRenderResponseSchema = z.object({
|
|
1277
1277
|
data: z.array(assetresponsedataAssetResponseDataSchema),
|
|
1278
|
-
});
|
|
1278
|
+
}).strict();
|
|
1279
1279
|
|
|
1280
1280
|
export const assetRenderResponseSchema =
|
|
1281
1281
|
assetrenderresponseAssetRenderResponseSchema;
|
|
@@ -1285,7 +1285,7 @@ export const assetRenderResponseSchema =
|
|
|
1285
1285
|
*/
|
|
1286
1286
|
export const assetresponseAssetResponseSchema = z.object({
|
|
1287
1287
|
data: assetresponsedataAssetResponseDataSchema,
|
|
1288
|
-
});
|
|
1288
|
+
}).strict();
|
|
1289
1289
|
|
|
1290
1290
|
export const assetResponseSchema = assetresponseAssetResponseSchema;
|
|
1291
1291
|
|
|
@@ -1296,7 +1296,7 @@ export const proberesponseProbeResponseSchema = z.object({
|
|
|
1296
1296
|
success: z.boolean(),
|
|
1297
1297
|
message: z.string(),
|
|
1298
1298
|
response: z.record(z.string(), z.unknown()),
|
|
1299
|
-
});
|
|
1299
|
+
}).strict();
|
|
1300
1300
|
|
|
1301
1301
|
export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
1302
1302
|
|
|
@@ -1306,7 +1306,7 @@ export const probeResponseSchema = proberesponseProbeResponseSchema;
|
|
|
1306
1306
|
export const queuedresponsedataQueuedResponseDataSchema = z.object({
|
|
1307
1307
|
message: z.string(),
|
|
1308
1308
|
id: z.string(),
|
|
1309
|
-
});
|
|
1309
|
+
}).strict();
|
|
1310
1310
|
|
|
1311
1311
|
export const queuedResponseDataSchema =
|
|
1312
1312
|
queuedresponsedataQueuedResponseDataSchema;
|
|
@@ -1318,7 +1318,7 @@ export const queuedresponseQueuedResponseSchema = z.object({
|
|
|
1318
1318
|
success: z.boolean(),
|
|
1319
1319
|
message: z.string(),
|
|
1320
1320
|
response: queuedresponsedataQueuedResponseDataSchema,
|
|
1321
|
-
});
|
|
1321
|
+
}).strict();
|
|
1322
1322
|
|
|
1323
1323
|
export const queuedResponseSchema = queuedresponseQueuedResponseSchema;
|
|
1324
1324
|
|
|
@@ -1330,7 +1330,7 @@ export const templatelistresponseitemTemplateListResponseItemSchema = z.object({
|
|
|
1330
1330
|
name: z.string(),
|
|
1331
1331
|
created: z.optional(z.string()),
|
|
1332
1332
|
updated: z.optional(z.string()),
|
|
1333
|
-
});
|
|
1333
|
+
}).strict();
|
|
1334
1334
|
|
|
1335
1335
|
export const templateListResponseItemSchema =
|
|
1336
1336
|
templatelistresponseitemTemplateListResponseItemSchema;
|
|
@@ -1341,7 +1341,7 @@ export const templateListResponseItemSchema =
|
|
|
1341
1341
|
export const templatelistresponsedataTemplateListResponseDataSchema = z.object({
|
|
1342
1342
|
owner: z.string(),
|
|
1343
1343
|
templates: z.array(templatelistresponseitemTemplateListResponseItemSchema),
|
|
1344
|
-
});
|
|
1344
|
+
}).strict();
|
|
1345
1345
|
|
|
1346
1346
|
export const templateListResponseDataSchema =
|
|
1347
1347
|
templatelistresponsedataTemplateListResponseDataSchema;
|
|
@@ -1353,7 +1353,7 @@ export const templatelistresponseTemplateListResponseSchema = z.object({
|
|
|
1353
1353
|
success: z.boolean(),
|
|
1354
1354
|
message: z.string(),
|
|
1355
1355
|
response: templatelistresponsedataTemplateListResponseDataSchema,
|
|
1356
|
-
});
|
|
1356
|
+
}).strict();
|
|
1357
1357
|
|
|
1358
1358
|
export const templateListResponseSchema =
|
|
1359
1359
|
templatelistresponseTemplateListResponseSchema;
|
|
@@ -1364,7 +1364,7 @@ export const templateListResponseSchema =
|
|
|
1364
1364
|
export const templateresponsedataTemplateResponseDataSchema = z.object({
|
|
1365
1365
|
message: z.string(),
|
|
1366
1366
|
id: z.string(),
|
|
1367
|
-
});
|
|
1367
|
+
}).strict();
|
|
1368
1368
|
|
|
1369
1369
|
export const templateResponseDataSchema =
|
|
1370
1370
|
templateresponsedataTemplateResponseDataSchema;
|
|
@@ -1376,7 +1376,7 @@ export const templateresponseTemplateResponseSchema = z.object({
|
|
|
1376
1376
|
success: z.boolean(),
|
|
1377
1377
|
message: z.string(),
|
|
1378
1378
|
response: templateresponsedataTemplateResponseDataSchema,
|
|
1379
|
-
});
|
|
1379
|
+
}).strict();
|
|
1380
1380
|
|
|
1381
1381
|
export const templateResponseSchema = templateresponseTemplateResponseSchema;
|
|
1382
1382
|
|
|
@@ -1387,7 +1387,7 @@ export const richcaptionpropertiesRichCaptionActiveFontSchema = z.object({
|
|
|
1387
1387
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffff00"),
|
|
1388
1388
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1389
1389
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1390
|
-
});
|
|
1390
|
+
}).strict();
|
|
1391
1391
|
|
|
1392
1392
|
export const richCaptionActiveFontSchema =
|
|
1393
1393
|
richcaptionpropertiesRichCaptionActiveFontSchema;
|
|
@@ -1408,7 +1408,7 @@ export const richcaptionpropertiesRichCaptionWordAnimationSchema = z.object({
|
|
|
1408
1408
|
]),
|
|
1409
1409
|
speed: 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.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1410
1410
|
direction: z.optional(z.enum(["left", "right", "up", "down"])),
|
|
1411
|
-
});
|
|
1411
|
+
}).strict();
|
|
1412
1412
|
|
|
1413
1413
|
export const richCaptionWordAnimationSchema =
|
|
1414
1414
|
richcaptionpropertiesRichCaptionWordAnimationSchema;
|
|
@@ -1421,7 +1421,7 @@ export const richcaptionpropertiesWordTimingSchema = z.object({
|
|
|
1421
1421
|
start: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1422
1422
|
end: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1423
1423
|
confidence: 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*\}\}$/)])),
|
|
1424
|
-
});
|
|
1424
|
+
}).strict();
|
|
1425
1425
|
|
|
1426
1426
|
export const wordTimingSchema = richcaptionpropertiesWordTimingSchema;
|
|
1427
1427
|
|
|
@@ -1431,7 +1431,7 @@ export const wordTimingSchema = richcaptionpropertiesWordTimingSchema;
|
|
|
1431
1431
|
export const richtextpropertiesRichTextAlignmentSchema = z.object({
|
|
1432
1432
|
horizontal: z.optional(z.enum(["left", "center", "right"])),
|
|
1433
1433
|
vertical: z.optional(z.enum(["top", "middle", "bottom"])),
|
|
1434
|
-
});
|
|
1434
|
+
}).strict();
|
|
1435
1435
|
|
|
1436
1436
|
export const richTextAlignmentSchema =
|
|
1437
1437
|
richtextpropertiesRichTextAlignmentSchema;
|
|
@@ -1451,7 +1451,7 @@ export const richtextpropertiesRichTextAnimationSchema = z.object({
|
|
|
1451
1451
|
duration: 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.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1452
1452
|
style: z.optional(z.enum(["character", "word"])),
|
|
1453
1453
|
direction: z.optional(z.enum(["left", "right", "up", "down"])),
|
|
1454
|
-
});
|
|
1454
|
+
}).strict();
|
|
1455
1455
|
|
|
1456
1456
|
export const richTextAnimationSchema =
|
|
1457
1457
|
richtextpropertiesRichTextAnimationSchema;
|
|
@@ -1463,7 +1463,7 @@ export const richtextpropertiesRichTextBackgroundSchema = z.object({
|
|
|
1463
1463
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1464
1464
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1465
1465
|
borderRadius: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1466
|
-
});
|
|
1466
|
+
}).strict();
|
|
1467
1467
|
|
|
1468
1468
|
export const richTextBackgroundSchema =
|
|
1469
1469
|
richtextpropertiesRichTextBackgroundSchema;
|
|
@@ -1476,7 +1476,7 @@ export const richtextpropertiesRichTextBorderSchema = z.object({
|
|
|
1476
1476
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
1477
1477
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1478
1478
|
radius: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1479
|
-
});
|
|
1479
|
+
}).strict();
|
|
1480
1480
|
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Gradient properties for text fill.
|
|
@@ -1492,7 +1492,7 @@ export const richtextpropertiesRichTextGradientSchema = z.object({
|
|
|
1492
1492
|
}),
|
|
1493
1493
|
)
|
|
1494
1494
|
.min(2),
|
|
1495
|
-
});
|
|
1495
|
+
}).strict();
|
|
1496
1496
|
|
|
1497
1497
|
export const richTextGradientSchema = richtextpropertiesRichTextGradientSchema;
|
|
1498
1498
|
|
|
@@ -1504,7 +1504,7 @@ export const richtextpropertiesRichTextPaddingSchema = z.object({
|
|
|
1504
1504
|
right: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1505
1505
|
bottom: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1506
1506
|
left: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1507
|
-
});
|
|
1507
|
+
}).strict();
|
|
1508
1508
|
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Text shadow properties.
|
|
@@ -1515,7 +1515,7 @@ export const richtextpropertiesRichTextShadowSchema = z.object({
|
|
|
1515
1515
|
blur: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1516
1516
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
1517
1517
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(0.5),
|
|
1518
|
-
});
|
|
1518
|
+
}).strict();
|
|
1519
1519
|
|
|
1520
1520
|
export const richTextShadowSchema = richtextpropertiesRichTextShadowSchema;
|
|
1521
1521
|
|
|
@@ -1526,7 +1526,7 @@ export const richtextpropertiesRichTextStrokeSchema = z.object({
|
|
|
1526
1526
|
width: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1527
1527
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
1528
1528
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1529
|
-
});
|
|
1529
|
+
}).strict();
|
|
1530
1530
|
|
|
1531
1531
|
export const richTextStrokeSchema = richtextpropertiesRichTextStrokeSchema;
|
|
1532
1532
|
|
|
@@ -1537,7 +1537,7 @@ export const richcaptionpropertiesRichCaptionActiveSchema = z.object({
|
|
|
1537
1537
|
font: z.optional(richcaptionpropertiesRichCaptionActiveFontSchema),
|
|
1538
1538
|
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1539
1539
|
scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.5).lte(2)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
1540
|
-
});
|
|
1540
|
+
}).strict();
|
|
1541
1541
|
|
|
1542
1542
|
export const richCaptionActiveSchema =
|
|
1543
1543
|
richcaptionpropertiesRichCaptionActiveSchema;
|
|
@@ -1553,7 +1553,7 @@ export const richtextpropertiesRichTextFontSchema = z.object({
|
|
|
1553
1553
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1554
1554
|
background: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1555
1555
|
stroke: z.optional(richtextpropertiesRichTextStrokeSchema),
|
|
1556
|
-
});
|
|
1556
|
+
}).strict();
|
|
1557
1557
|
|
|
1558
1558
|
export const richTextFontSchema = richtextpropertiesRichTextFontSchema;
|
|
1559
1559
|
|
|
@@ -1569,7 +1569,7 @@ export const richtextpropertiesRichTextStyleSchema = z.object({
|
|
|
1569
1569
|
),
|
|
1570
1570
|
textDecoration: z.optional(z.enum(["none", "underline", "line-through"])),
|
|
1571
1571
|
gradient: z.optional(richtextpropertiesRichTextGradientSchema),
|
|
1572
|
-
});
|
|
1572
|
+
}).strict();
|
|
1573
1573
|
|
|
1574
1574
|
export const richTextStyleSchema = richtextpropertiesRichTextStyleSchema;
|
|
1575
1575
|
|
|
@@ -1599,7 +1599,7 @@ export const richcaptionassetRichCaptionAssetSchema = z.object({
|
|
|
1599
1599
|
position: z.optional(z.enum(["top", "center", "bottom"])),
|
|
1600
1600
|
maxWidth: 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.1).lte(1)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.9),
|
|
1601
1601
|
maxLines: 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().int().gte(1).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2),
|
|
1602
|
-
});
|
|
1602
|
+
}).strict();
|
|
1603
1603
|
|
|
1604
1604
|
export const richCaptionAssetSchema = richcaptionassetRichCaptionAssetSchema;
|
|
1605
1605
|
|
|
@@ -1622,7 +1622,7 @@ export const richtextassetRichTextAssetSchema = z.object({
|
|
|
1622
1622
|
),
|
|
1623
1623
|
align: z.optional(richtextpropertiesRichTextAlignmentSchema),
|
|
1624
1624
|
animation: z.optional(richtextpropertiesRichTextAnimationSchema),
|
|
1625
|
-
});
|
|
1625
|
+
}).strict();
|
|
1626
1626
|
|
|
1627
1627
|
export const richTextAssetSchema = richtextassetRichTextAssetSchema;
|
|
1628
1628
|
|
|
@@ -1635,7 +1635,7 @@ export const transferresponseattributesTransferResponseAttributesSchema =
|
|
|
1635
1635
|
owner: z.optional(z.string()),
|
|
1636
1636
|
status: z.optional(z.enum(["queued", "failed"])),
|
|
1637
1637
|
created: z.optional(z.string()),
|
|
1638
|
-
});
|
|
1638
|
+
}).strict();
|
|
1639
1639
|
|
|
1640
1640
|
export const transferResponseAttributesSchema =
|
|
1641
1641
|
transferresponseattributesTransferResponseAttributesSchema;
|
|
@@ -1648,7 +1648,7 @@ export const transferresponsedataTransferResponseDataSchema = z.object({
|
|
|
1648
1648
|
attributes: z.optional(
|
|
1649
1649
|
transferresponseattributesTransferResponseAttributesSchema,
|
|
1650
1650
|
),
|
|
1651
|
-
});
|
|
1651
|
+
}).strict();
|
|
1652
1652
|
|
|
1653
1653
|
export const transferResponseDataSchema =
|
|
1654
1654
|
transferresponsedataTransferResponseDataSchema;
|
|
@@ -1658,7 +1658,7 @@ export const transferResponseDataSchema =
|
|
|
1658
1658
|
*/
|
|
1659
1659
|
export const transferresponseTransferResponseSchema = z.object({
|
|
1660
1660
|
data: transferresponsedataTransferResponseDataSchema,
|
|
1661
|
-
});
|
|
1661
|
+
}).strict();
|
|
1662
1662
|
|
|
1663
1663
|
export const transferResponseSchema = transferresponseTransferResponseSchema;
|
|
1664
1664
|
|
|
@@ -1669,7 +1669,7 @@ export const transferTransferSchema = z.object({
|
|
|
1669
1669
|
url: z.string(),
|
|
1670
1670
|
id: z.string(),
|
|
1671
1671
|
destinations: z.array(destinationsDestinationsSchema),
|
|
1672
|
-
});
|
|
1672
|
+
}).strict();
|
|
1673
1673
|
|
|
1674
1674
|
export const transferSchema = transferTransferSchema;
|
|
1675
1675
|
|
|
@@ -1713,7 +1713,7 @@ export const shapeassetShapeAssetSchema = z.object({
|
|
|
1713
1713
|
thickness: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1714
1714
|
}),
|
|
1715
1715
|
),
|
|
1716
|
-
});
|
|
1716
|
+
}).strict();
|
|
1717
1717
|
|
|
1718
1718
|
export const shapeAssetSchema = shapeassetShapeAssetSchema;
|
|
1719
1719
|
|
|
@@ -1723,7 +1723,7 @@ export const shapeAssetSchema = shapeassetShapeAssetSchema;
|
|
|
1723
1723
|
export const sizeSizeSchema = z.object({
|
|
1724
1724
|
width: 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().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1725
1725
|
height: 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().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1726
|
-
});
|
|
1726
|
+
}).strict();
|
|
1727
1727
|
|
|
1728
1728
|
export const sizeSchema = sizeSizeSchema;
|
|
1729
1729
|
|
|
@@ -1775,7 +1775,7 @@ export const renditionRenditionSchema = z.object({
|
|
|
1775
1775
|
fixRotation: z.optional(z.boolean()),
|
|
1776
1776
|
enhance: z.optional(enhancementsEnhancementsSchema),
|
|
1777
1777
|
filename: z.optional(z.string()),
|
|
1778
|
-
});
|
|
1778
|
+
}).strict();
|
|
1779
1779
|
|
|
1780
1780
|
export const renditionSchema = renditionRenditionSchema;
|
|
1781
1781
|
|
|
@@ -1785,7 +1785,7 @@ export const renditionSchema = renditionRenditionSchema;
|
|
|
1785
1785
|
export const outputsOutputsSchema = z.object({
|
|
1786
1786
|
renditions: z.optional(z.array(renditionRenditionSchema)),
|
|
1787
1787
|
transcription: z.optional(transcriptionTranscriptionSchema),
|
|
1788
|
-
});
|
|
1788
|
+
}).strict();
|
|
1789
1789
|
|
|
1790
1790
|
export const outputsSchema = outputsOutputsSchema;
|
|
1791
1791
|
|
|
@@ -1812,7 +1812,7 @@ export const renditionresponseattributesRenditionResponseAttributesSchema =
|
|
|
1812
1812
|
height: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1813
1813
|
duration: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1814
1814
|
fps: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1815
|
-
});
|
|
1815
|
+
}).strict();
|
|
1816
1816
|
|
|
1817
1817
|
export const renditionResponseAttributesSchema =
|
|
1818
1818
|
renditionresponseattributesRenditionResponseAttributesSchema;
|
|
@@ -1824,7 +1824,7 @@ export const outputsresponseOutputsResponseSchema = z.object({
|
|
|
1824
1824
|
renditions: z.optional(
|
|
1825
1825
|
z.array(renditionresponseattributesRenditionResponseAttributesSchema),
|
|
1826
1826
|
),
|
|
1827
|
-
});
|
|
1827
|
+
}).strict();
|
|
1828
1828
|
|
|
1829
1829
|
export const outputsResponseSchema = outputsresponseOutputsResponseSchema;
|
|
1830
1830
|
|
|
@@ -1853,7 +1853,7 @@ export const sourceresponseattributesSourceResponseAttributesSchema = z.object({
|
|
|
1853
1853
|
fps: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1854
1854
|
created: z.optional(z.string()),
|
|
1855
1855
|
updated: z.optional(z.string()),
|
|
1856
|
-
});
|
|
1856
|
+
}).strict();
|
|
1857
1857
|
|
|
1858
1858
|
export const sourceResponseAttributesSchema =
|
|
1859
1859
|
sourceresponseattributesSourceResponseAttributesSchema;
|
|
@@ -1865,7 +1865,7 @@ export const sourceresponsedataSourceResponseDataSchema = z.object({
|
|
|
1865
1865
|
type: z.string(),
|
|
1866
1866
|
id: z.string(),
|
|
1867
1867
|
attributes: sourceresponseattributesSourceResponseAttributesSchema,
|
|
1868
|
-
});
|
|
1868
|
+
}).strict();
|
|
1869
1869
|
|
|
1870
1870
|
export const sourceResponseDataSchema =
|
|
1871
1871
|
sourceresponsedataSourceResponseDataSchema;
|
|
@@ -1875,7 +1875,7 @@ export const sourceResponseDataSchema =
|
|
|
1875
1875
|
*/
|
|
1876
1876
|
export const sourcelistresponseSourceListResponseSchema = z.object({
|
|
1877
1877
|
data: z.array(sourceresponsedataSourceResponseDataSchema),
|
|
1878
|
-
});
|
|
1878
|
+
}).strict();
|
|
1879
1879
|
|
|
1880
1880
|
export const sourceListResponseSchema =
|
|
1881
1881
|
sourcelistresponseSourceListResponseSchema;
|
|
@@ -1885,7 +1885,7 @@ export const sourceListResponseSchema =
|
|
|
1885
1885
|
*/
|
|
1886
1886
|
export const sourceresponseSourceResponseSchema = z.object({
|
|
1887
1887
|
data: sourceresponsedataSourceResponseDataSchema,
|
|
1888
|
-
});
|
|
1888
|
+
}).strict();
|
|
1889
1889
|
|
|
1890
1890
|
export const sourceResponseSchema = sourceresponseSourceResponseSchema;
|
|
1891
1891
|
|
|
@@ -1898,7 +1898,7 @@ export const sourceSourceSchema = z.object({
|
|
|
1898
1898
|
outputs: z.optional(outputsOutputsSchema),
|
|
1899
1899
|
destinations: z.optional(destinationsDestinationsSchema),
|
|
1900
1900
|
callback: z.optional(z.string()),
|
|
1901
|
-
});
|
|
1901
|
+
}).strict();
|
|
1902
1902
|
|
|
1903
1903
|
export const sourceSchema = sourceSourceSchema;
|
|
1904
1904
|
|
|
@@ -1909,7 +1909,7 @@ export const soundtrackSoundtrackSchema = z.object({
|
|
|
1909
1909
|
src: z.string().min(1).regex(/\S/),
|
|
1910
1910
|
effect: z.optional(z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
1911
1911
|
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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
1912
|
-
});
|
|
1912
|
+
}).strict();
|
|
1913
1913
|
|
|
1914
1914
|
export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
1915
1915
|
|
|
@@ -1921,7 +1921,7 @@ export const soundtrackSchema = soundtrackSoundtrackSchema;
|
|
|
1921
1921
|
export const svgpropertiesSvgGradientStopSchema = z.object({
|
|
1922
1922
|
offset: 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*\}\}$/)]),
|
|
1923
1923
|
color: z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
1924
|
-
});
|
|
1924
|
+
}).strict();
|
|
1925
1925
|
|
|
1926
1926
|
export const svgGradientStopSchema = svgpropertiesSvgGradientStopSchema;
|
|
1927
1927
|
|
|
@@ -1935,7 +1935,7 @@ export const svgpropertiesSvgLinearGradientFillSchema = z.object({
|
|
|
1935
1935
|
angle: 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(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1936
1936
|
stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
|
|
1937
1937
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1938
|
-
});
|
|
1938
|
+
}).strict();
|
|
1939
1939
|
|
|
1940
1940
|
export const svgLinearGradientFillSchema =
|
|
1941
1941
|
svgpropertiesSvgLinearGradientFillSchema;
|
|
@@ -1949,7 +1949,7 @@ export const svgpropertiesSvgRadialGradientFillSchema = z.object({
|
|
|
1949
1949
|
type: z.enum(["radial"]),
|
|
1950
1950
|
stops: z.array(svgpropertiesSvgGradientStopSchema).min(2),
|
|
1951
1951
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1952
|
-
});
|
|
1952
|
+
}).strict();
|
|
1953
1953
|
|
|
1954
1954
|
export const svgRadialGradientFillSchema =
|
|
1955
1955
|
svgpropertiesSvgRadialGradientFillSchema;
|
|
@@ -1964,7 +1964,7 @@ export const svgpropertiesSvgShadowSchema = z.object({
|
|
|
1964
1964
|
blur: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
1965
1965
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
|
|
1966
1966
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(0.5),
|
|
1967
|
-
});
|
|
1967
|
+
}).strict();
|
|
1968
1968
|
|
|
1969
1969
|
export const svgShadowSchema = svgpropertiesSvgShadowSchema;
|
|
1970
1970
|
|
|
@@ -1978,7 +1978,7 @@ export const svgpropertiesSvgSolidFillSchema = z.object({
|
|
|
1978
1978
|
.regex(/^#[A-Fa-f0-9]{6}$/)
|
|
1979
1979
|
.default("#000000"),
|
|
1980
1980
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
1981
|
-
});
|
|
1981
|
+
}).strict();
|
|
1982
1982
|
|
|
1983
1983
|
export const svgSolidFillSchema = svgpropertiesSvgSolidFillSchema;
|
|
1984
1984
|
|
|
@@ -2008,7 +2008,7 @@ export const svgpropertiesSvgStrokeSchema = z.object({
|
|
|
2008
2008
|
lineJoin: z.optional(z.enum(["miter", "round", "bevel"])),
|
|
2009
2009
|
dashArray: z.optional(z.array(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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),
|
|
2010
2010
|
dashOffset: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2011
|
-
});
|
|
2011
|
+
}).strict();
|
|
2012
2012
|
|
|
2013
2013
|
export const svgStrokeSchema = svgpropertiesSvgStrokeSchema;
|
|
2014
2014
|
|
|
@@ -2023,7 +2023,7 @@ export const svgpropertiesSvgTransformSchema = z.object({
|
|
|
2023
2023
|
scale: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v)) return v; return Number(v); } return v; }), z.number().gte(0.01).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
2024
2024
|
originX: 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*\}\}$/)])).default(0.5),
|
|
2025
2025
|
originY: 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*\}\}$/)])).default(0.5),
|
|
2026
|
-
});
|
|
2026
|
+
}).strict();
|
|
2027
2027
|
|
|
2028
2028
|
export const svgTransformSchema = svgpropertiesSvgTransformSchema;
|
|
2029
2029
|
|
|
@@ -2038,7 +2038,7 @@ export const svgshapesSvgArrowShapeSchema = z.object({
|
|
|
2038
2038
|
headWidth: 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(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2039
2039
|
headLength: 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(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2040
2040
|
shaftWidth: 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(1).lte(1000)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2041
|
-
});
|
|
2041
|
+
}).strict();
|
|
2042
2042
|
|
|
2043
2043
|
export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
2044
2044
|
|
|
@@ -2050,7 +2050,7 @@ export const svgArrowShapeSchema = svgshapesSvgArrowShapeSchema;
|
|
|
2050
2050
|
export const svgshapesSvgCircleShapeSchema = z.object({
|
|
2051
2051
|
type: z.enum(["circle"]),
|
|
2052
2052
|
radius: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2053
|
-
});
|
|
2053
|
+
}).strict();
|
|
2054
2054
|
|
|
2055
2055
|
export const svgCircleShapeSchema = svgshapesSvgCircleShapeSchema;
|
|
2056
2056
|
|
|
@@ -2064,7 +2064,7 @@ export const svgshapesSvgCrossShapeSchema = z.object({
|
|
|
2064
2064
|
width: 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(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2065
2065
|
height: 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(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2066
2066
|
thickness: 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(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2067
|
-
});
|
|
2067
|
+
}).strict();
|
|
2068
2068
|
|
|
2069
2069
|
export const svgCrossShapeSchema = svgshapesSvgCrossShapeSchema;
|
|
2070
2070
|
|
|
@@ -2077,7 +2077,7 @@ export const svgshapesSvgEllipseShapeSchema = z.object({
|
|
|
2077
2077
|
type: z.enum(["ellipse"]),
|
|
2078
2078
|
radiusX: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2079
2079
|
radiusY: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2080
|
-
});
|
|
2080
|
+
}).strict();
|
|
2081
2081
|
|
|
2082
2082
|
export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
2083
2083
|
|
|
@@ -2089,7 +2089,7 @@ export const svgEllipseShapeSchema = svgshapesSvgEllipseShapeSchema;
|
|
|
2089
2089
|
export const svgshapesSvgHeartShapeSchema = z.object({
|
|
2090
2090
|
type: z.enum(["heart"]),
|
|
2091
2091
|
size: 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(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2092
|
-
});
|
|
2092
|
+
}).strict();
|
|
2093
2093
|
|
|
2094
2094
|
export const svgHeartShapeSchema = svgshapesSvgHeartShapeSchema;
|
|
2095
2095
|
|
|
@@ -2102,7 +2102,7 @@ export const svgshapesSvgLineShapeSchema = z.object({
|
|
|
2102
2102
|
type: z.enum(["line"]),
|
|
2103
2103
|
length: 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(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2104
2104
|
thickness: 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(1).lte(500)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2105
|
-
});
|
|
2105
|
+
}).strict();
|
|
2106
2106
|
|
|
2107
2107
|
export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
2108
2108
|
|
|
@@ -2126,7 +2126,7 @@ export const svgLineShapeSchema = svgshapesSvgLineShapeSchema;
|
|
|
2126
2126
|
export const svgshapesSvgPathShapeSchema = z.object({
|
|
2127
2127
|
type: z.enum(["path"]),
|
|
2128
2128
|
d: z.string().min(1).max(100000),
|
|
2129
|
-
});
|
|
2129
|
+
}).strict();
|
|
2130
2130
|
|
|
2131
2131
|
export const svgPathShapeSchema = svgshapesSvgPathShapeSchema;
|
|
2132
2132
|
|
|
@@ -2140,7 +2140,7 @@ export const svgshapesSvgPolygonShapeSchema = z.object({
|
|
|
2140
2140
|
type: z.enum(["polygon"]),
|
|
2141
2141
|
sides: 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().int().gte(3).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2142
2142
|
radius: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2143
|
-
});
|
|
2143
|
+
}).strict();
|
|
2144
2144
|
|
|
2145
2145
|
export const svgPolygonShapeSchema = svgshapesSvgPolygonShapeSchema;
|
|
2146
2146
|
|
|
@@ -2154,7 +2154,7 @@ export const svgshapesSvgRectangleShapeSchema = z.object({
|
|
|
2154
2154
|
width: 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(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2155
2155
|
height: 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(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2156
2156
|
cornerRadius: 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(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
|
|
2157
|
-
});
|
|
2157
|
+
}).strict();
|
|
2158
2158
|
|
|
2159
2159
|
export const svgRectangleShapeSchema = svgshapesSvgRectangleShapeSchema;
|
|
2160
2160
|
|
|
@@ -2167,7 +2167,7 @@ export const svgshapesSvgRingShapeSchema = z.object({
|
|
|
2167
2167
|
type: z.enum(["ring"]),
|
|
2168
2168
|
outerRadius: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2169
2169
|
innerRadius: 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(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2170
|
-
});
|
|
2170
|
+
}).strict();
|
|
2171
2171
|
|
|
2172
2172
|
export const svgRingShapeSchema = svgshapesSvgRingShapeSchema;
|
|
2173
2173
|
|
|
@@ -2182,7 +2182,7 @@ export const svgshapesSvgStarShapeSchema = z.object({
|
|
|
2182
2182
|
points: 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().int().gte(3).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2183
2183
|
outerRadius: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2184
2184
|
innerRadius: 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(1).lte(2048)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2185
|
-
});
|
|
2185
|
+
}).strict();
|
|
2186
2186
|
|
|
2187
2187
|
export const svgStarShapeSchema = svgshapesSvgStarShapeSchema;
|
|
2188
2188
|
|
|
@@ -2262,7 +2262,7 @@ export const svgassetSvgAssetSchema = z.object({
|
|
|
2262
2262
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])).default(1),
|
|
2263
2263
|
width: 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().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2264
2264
|
height: 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().int().gte(1).lte(4096)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2265
|
-
}).superRefine((data, ctx) => {
|
|
2265
|
+
}).strict().superRefine((data, ctx) => {
|
|
2266
2266
|
const hasShape = data.shape !== undefined;
|
|
2267
2267
|
const hasSrc = data.src !== undefined && data.src.trim() !== "";
|
|
2268
2268
|
|
|
@@ -2304,7 +2304,7 @@ export const svgAssetSchema = svgassetSvgAssetSchema;
|
|
|
2304
2304
|
export const templaterenderTemplateRenderSchema = z.object({
|
|
2305
2305
|
id: z.string(),
|
|
2306
2306
|
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
2307
|
-
});
|
|
2307
|
+
}).strict();
|
|
2308
2308
|
|
|
2309
2309
|
export const templateRenderSchema = templaterenderTemplateRenderSchema;
|
|
2310
2310
|
|
|
@@ -2314,7 +2314,7 @@ export const templateRenderSchema = templaterenderTemplateRenderSchema;
|
|
|
2314
2314
|
export const textpropertiesTextAlignmentSchema = z.object({
|
|
2315
2315
|
horizontal: z.optional(z.enum(["left", "center", "right"])),
|
|
2316
2316
|
vertical: z.optional(z.enum(["top", "center", "bottom"])),
|
|
2317
|
-
});
|
|
2317
|
+
}).strict();
|
|
2318
2318
|
|
|
2319
2319
|
export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
|
|
2320
2320
|
|
|
@@ -2324,7 +2324,7 @@ export const textAlignmentSchema = textpropertiesTextAlignmentSchema;
|
|
|
2324
2324
|
export const textpropertiesTextAnimationSchema = z.object({
|
|
2325
2325
|
preset: z.enum(["typewriter"]),
|
|
2326
2326
|
duration: 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.1).lte(30)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2327
|
-
});
|
|
2327
|
+
}).strict();
|
|
2328
2328
|
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Displays a background box behind the text.
|
|
@@ -2334,7 +2334,7 @@ export const textpropertiesTextBackgroundSchema = z.object({
|
|
|
2334
2334
|
opacity: z.optional(z.union([z.preprocess(((v: unknown) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') { 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*\}\}$/)])),
|
|
2335
2335
|
padding: 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(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2336
2336
|
borderRadius: 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)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2337
|
-
});
|
|
2337
|
+
}).strict();
|
|
2338
2338
|
|
|
2339
2339
|
export const textBackgroundSchema = textpropertiesTextBackgroundSchema;
|
|
2340
2340
|
|
|
@@ -2348,7 +2348,7 @@ export const textpropertiesTextFontSchema = z.object({
|
|
|
2348
2348
|
size: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2349
2349
|
weight: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2350
2350
|
lineHeight: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2351
|
-
});
|
|
2351
|
+
}).strict();
|
|
2352
2352
|
|
|
2353
2353
|
export const textFontSchema = textpropertiesTextFontSchema;
|
|
2354
2354
|
|
|
@@ -2358,7 +2358,7 @@ export const textFontSchema = textpropertiesTextFontSchema;
|
|
|
2358
2358
|
export const textpropertiesTextStrokeSchema = z.object({
|
|
2359
2359
|
width: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2360
2360
|
color: z.optional(z.union([z.string().regex(/^#[A-Fa-f0-9]{6}$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2361
|
-
});
|
|
2361
|
+
}).strict();
|
|
2362
2362
|
|
|
2363
2363
|
/**
|
|
2364
2364
|
* The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
|
|
@@ -2376,7 +2376,7 @@ export const textassetTextAssetSchema = z.object({
|
|
|
2376
2376
|
stroke: z.optional(textpropertiesTextStrokeSchema),
|
|
2377
2377
|
animation: z.optional(textpropertiesTextAnimationSchema),
|
|
2378
2378
|
ellipsis: z.optional(z.string()),
|
|
2379
|
-
});
|
|
2379
|
+
}).strict();
|
|
2380
2380
|
|
|
2381
2381
|
export const textAssetSchema = textassetTextAssetSchema;
|
|
2382
2382
|
|
|
@@ -2389,7 +2389,7 @@ export const texttoimageassetTextToImageAssetSchema = z.object({
|
|
|
2389
2389
|
width: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2390
2390
|
height: 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().int()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2391
2391
|
crop: z.optional(cropCropSchema),
|
|
2392
|
-
});
|
|
2392
|
+
}).strict();
|
|
2393
2393
|
|
|
2394
2394
|
export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
2395
2395
|
|
|
@@ -2399,7 +2399,7 @@ export const textToImageAssetSchema = texttoimageassetTextToImageAssetSchema;
|
|
|
2399
2399
|
export const thumbnailThumbnailSchema = z.object({
|
|
2400
2400
|
capture: 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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
2401
2401
|
scale: 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*\}\}$/)]),
|
|
2402
|
-
});
|
|
2402
|
+
}).strict();
|
|
2403
2403
|
|
|
2404
2404
|
export const thumbnailSchema = thumbnailThumbnailSchema;
|
|
2405
2405
|
|
|
@@ -2436,7 +2436,7 @@ export const outputOutputSchema = z.object({
|
|
|
2436
2436
|
poster: z.optional(posterPosterSchema),
|
|
2437
2437
|
thumbnail: z.optional(thumbnailThumbnailSchema),
|
|
2438
2438
|
destinations: z.optional(z.array(destinationsDestinationsSchema)),
|
|
2439
|
-
});
|
|
2439
|
+
}).strict();
|
|
2440
2440
|
|
|
2441
2441
|
export const outputSchema = outputOutputSchema;
|
|
2442
2442
|
|
|
@@ -2576,7 +2576,7 @@ export const transitionTransitionSchema = z.object({
|
|
|
2576
2576
|
"zoom",
|
|
2577
2577
|
]),
|
|
2578
2578
|
),
|
|
2579
|
-
});
|
|
2579
|
+
}).strict();
|
|
2580
2580
|
|
|
2581
2581
|
export const transitionSchema = transitionTransitionSchema;
|
|
2582
2582
|
|
|
@@ -2628,7 +2628,7 @@ export const tweenTweenSchema = z.object({
|
|
|
2628
2628
|
"easeInOutBack",
|
|
2629
2629
|
]),
|
|
2630
2630
|
),
|
|
2631
|
-
});
|
|
2631
|
+
}).strict();
|
|
2632
2632
|
|
|
2633
2633
|
export const tweenSchema = tweenTweenSchema;
|
|
2634
2634
|
|
|
@@ -2644,7 +2644,7 @@ export const audioassetAudioAssetSchema = z.object({
|
|
|
2644
2644
|
),
|
|
2645
2645
|
speed: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2646
2646
|
effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
2647
|
-
});
|
|
2647
|
+
}).strict();
|
|
2648
2648
|
|
|
2649
2649
|
export const audioAssetSchema = audioassetAudioAssetSchema;
|
|
2650
2650
|
|
|
@@ -2658,7 +2658,7 @@ export const offsetOffsetSchema = z.object({
|
|
|
2658
2658
|
y: z.optional(
|
|
2659
2659
|
z.union([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(-10).lte(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
|
|
2660
2660
|
),
|
|
2661
|
-
});
|
|
2661
|
+
}).strict();
|
|
2662
2662
|
|
|
2663
2663
|
export const offsetSchema = offsetOffsetSchema;
|
|
2664
2664
|
|
|
@@ -2669,7 +2669,7 @@ export const rotatetransformationRotateTransformationSchema = z.object({
|
|
|
2669
2669
|
angle: z.optional(
|
|
2670
2670
|
z.union([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(-360).lte(360)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
|
|
2671
2671
|
),
|
|
2672
|
-
});
|
|
2672
|
+
}).strict();
|
|
2673
2673
|
|
|
2674
2674
|
export const rotateTransformationSchema =
|
|
2675
2675
|
rotatetransformationRotateTransformationSchema;
|
|
@@ -2684,7 +2684,7 @@ export const skewtransformationSkewTransformationSchema = z.object({
|
|
|
2684
2684
|
y: z.optional(
|
|
2685
2685
|
z.union([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(-100).lte(100)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)]),
|
|
2686
2686
|
),
|
|
2687
|
-
});
|
|
2687
|
+
}).strict();
|
|
2688
2688
|
|
|
2689
2689
|
export const skewTransformationSchema =
|
|
2690
2690
|
skewtransformationSkewTransformationSchema;
|
|
@@ -2704,7 +2704,7 @@ export const texttospeechassetTextToSpeechAssetSchema = z.object({
|
|
|
2704
2704
|
),
|
|
2705
2705
|
speed: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2706
2706
|
effect: z.optional(z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
|
|
2707
|
-
});
|
|
2707
|
+
}).strict();
|
|
2708
2708
|
|
|
2709
2709
|
export const textToSpeechAssetSchema = texttospeechassetTextToSpeechAssetSchema;
|
|
2710
2710
|
|
|
@@ -2760,7 +2760,7 @@ export const titleassetTitleAssetSchema = z.object({
|
|
|
2760
2760
|
]),
|
|
2761
2761
|
),
|
|
2762
2762
|
offset: z.optional(offsetOffsetSchema),
|
|
2763
|
-
});
|
|
2763
|
+
}).strict();
|
|
2764
2764
|
|
|
2765
2765
|
export const titleAssetSchema = titleassetTitleAssetSchema;
|
|
2766
2766
|
|
|
@@ -2771,7 +2771,7 @@ export const transformationTransformationSchema = z.object({
|
|
|
2771
2771
|
rotate: z.optional(rotatetransformationRotateTransformationSchema),
|
|
2772
2772
|
skew: z.optional(skewtransformationSkewTransformationSchema),
|
|
2773
2773
|
flip: z.optional(fliptransformationFlipTransformationSchema),
|
|
2774
|
-
});
|
|
2774
|
+
}).strict();
|
|
2775
2775
|
|
|
2776
2776
|
export const transformationSchema = transformationTransformationSchema;
|
|
2777
2777
|
|
|
@@ -2792,7 +2792,7 @@ export const videoassetVideoAssetSchema = z.object({
|
|
|
2792
2792
|
speed: 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(10)), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2793
2793
|
crop: z.optional(cropCropSchema),
|
|
2794
2794
|
chromaKey: z.optional(chromakeyChromaKeySchema),
|
|
2795
|
-
});
|
|
2795
|
+
}).strict();
|
|
2796
2796
|
|
|
2797
2797
|
export const videoAssetSchema = videoassetVideoAssetSchema;
|
|
2798
2798
|
|
|
@@ -2889,7 +2889,7 @@ export const clipClipSchema = z.object({
|
|
|
2889
2889
|
opacity: z.optional(z.union([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()), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), z.array(tweenTweenSchema)])),
|
|
2890
2890
|
transform: z.optional(transformationTransformationSchema),
|
|
2891
2891
|
alias: z.optional(z.union([z.string().regex(/^[A-Za-z0-9_-]+$/), z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
2892
|
-
});
|
|
2892
|
+
}).strict();
|
|
2893
2893
|
|
|
2894
2894
|
export const clipSchema = clipClipSchema;
|
|
2895
2895
|
|
|
@@ -2911,7 +2911,7 @@ const clipClipSchemaWithFitFilter = clipClipSchema.transform((clip) => {
|
|
|
2911
2911
|
*/
|
|
2912
2912
|
export const trackTrackSchema = z.object({
|
|
2913
2913
|
clips: z.array(clipClipSchemaWithFitFilter).min(1),
|
|
2914
|
-
});
|
|
2914
|
+
}).strict();
|
|
2915
2915
|
|
|
2916
2916
|
export const trackSchema = trackTrackSchema;
|
|
2917
2917
|
|
|
@@ -2924,7 +2924,7 @@ export const timelineTimelineSchema = z.object({
|
|
|
2924
2924
|
fonts: z.optional(z.array(fontFontSchema)),
|
|
2925
2925
|
tracks: z.array(trackTrackSchema).min(1),
|
|
2926
2926
|
cache: z.optional(z.boolean()),
|
|
2927
|
-
});
|
|
2927
|
+
}).strict();
|
|
2928
2928
|
|
|
2929
2929
|
export const timelineSchema = timelineTimelineSchema;
|
|
2930
2930
|
|
|
@@ -2937,7 +2937,8 @@ export const editEditSchema = z.object({
|
|
|
2937
2937
|
merge: z.optional(z.array(mergefieldMergeFieldSchema)),
|
|
2938
2938
|
callback: z.optional(z.string()),
|
|
2939
2939
|
disk: z.optional(z.enum(["local", "mount"])),
|
|
2940
|
-
|
|
2940
|
+
instance: z.optional(z.enum(["s1", "s2", "a1"])),
|
|
2941
|
+
}).strict();
|
|
2941
2942
|
|
|
2942
2943
|
export const editSchema = editEditSchema;
|
|
2943
2944
|
|
|
@@ -2966,7 +2967,7 @@ export const renderresponsedataRenderResponseDataSchema = z.object({
|
|
|
2966
2967
|
data: z.optional(editEditSchema),
|
|
2967
2968
|
created: z.optional(z.string()),
|
|
2968
2969
|
updated: z.optional(z.string()),
|
|
2969
|
-
});
|
|
2970
|
+
}).strict();
|
|
2970
2971
|
|
|
2971
2972
|
export const renderResponseDataSchema =
|
|
2972
2973
|
renderresponsedataRenderResponseDataSchema;
|
|
@@ -2978,7 +2979,7 @@ export const renderresponseRenderResponseSchema = z.object({
|
|
|
2978
2979
|
success: z.boolean(),
|
|
2979
2980
|
message: z.string(),
|
|
2980
2981
|
response: renderresponsedataRenderResponseDataSchema,
|
|
2981
|
-
});
|
|
2982
|
+
}).strict();
|
|
2982
2983
|
|
|
2983
2984
|
export const renderResponseSchema = renderresponseRenderResponseSchema;
|
|
2984
2985
|
|
|
@@ -2990,7 +2991,7 @@ export const templatedataresponsedataTemplateDataResponseDataSchema = z.object({
|
|
|
2990
2991
|
name: z.string(),
|
|
2991
2992
|
owner: z.string(),
|
|
2992
2993
|
template: editEditSchema,
|
|
2993
|
-
});
|
|
2994
|
+
}).strict();
|
|
2994
2995
|
|
|
2995
2996
|
export const templateDataResponseDataSchema =
|
|
2996
2997
|
templatedataresponsedataTemplateDataResponseDataSchema;
|
|
@@ -3002,7 +3003,7 @@ export const templatedataresponseTemplateDataResponseSchema = z.object({
|
|
|
3002
3003
|
success: z.boolean(),
|
|
3003
3004
|
message: z.string(),
|
|
3004
3005
|
response: templatedataresponsedataTemplateDataResponseDataSchema,
|
|
3005
|
-
});
|
|
3006
|
+
}).strict();
|
|
3006
3007
|
|
|
3007
3008
|
export const templateDataResponseSchema =
|
|
3008
3009
|
templatedataresponseTemplateDataResponseSchema;
|
|
@@ -3013,7 +3014,7 @@ export const templateDataResponseSchema =
|
|
|
3013
3014
|
export const templateTemplateSchema = z.object({
|
|
3014
3015
|
name: z.string(),
|
|
3015
3016
|
template: z.optional(editEditSchema),
|
|
3016
|
-
});
|
|
3017
|
+
}).strict();
|
|
3017
3018
|
|
|
3018
3019
|
export const templateSchema = templateTemplateSchema;
|
|
3019
3020
|
|
|
@@ -3021,7 +3022,7 @@ export const postRenderRequest = z.object({
|
|
|
3021
3022
|
body: editEditSchema,
|
|
3022
3023
|
path: z.optional(z.never()),
|
|
3023
3024
|
query: z.optional(z.never()),
|
|
3024
|
-
});
|
|
3025
|
+
}).strict();
|
|
3025
3026
|
|
|
3026
3027
|
/**
|
|
3027
3028
|
* The queued render details
|
|
@@ -3043,7 +3044,7 @@ export const getRenderRequest = z.object({
|
|
|
3043
3044
|
merged: z.optional(z.boolean()),
|
|
3044
3045
|
}),
|
|
3045
3046
|
),
|
|
3046
|
-
});
|
|
3047
|
+
}).strict();
|
|
3047
3048
|
|
|
3048
3049
|
/**
|
|
3049
3050
|
* The render status details
|
|
@@ -3054,7 +3055,7 @@ export const getTemplatesRequest = z.object({
|
|
|
3054
3055
|
body: z.optional(z.never()),
|
|
3055
3056
|
path: z.optional(z.never()),
|
|
3056
3057
|
query: z.optional(z.never()),
|
|
3057
|
-
});
|
|
3058
|
+
}).strict();
|
|
3058
3059
|
|
|
3059
3060
|
/**
|
|
3060
3061
|
* The list of templates stored against a users account
|
|
@@ -3066,7 +3067,7 @@ export const postTemplateRequest = z.object({
|
|
|
3066
3067
|
body: templateTemplateSchema,
|
|
3067
3068
|
path: z.optional(z.never()),
|
|
3068
3069
|
query: z.optional(z.never()),
|
|
3069
|
-
});
|
|
3070
|
+
}).strict();
|
|
3070
3071
|
|
|
3071
3072
|
/**
|
|
3072
3073
|
* The saved template status including the id
|
|
@@ -3083,7 +3084,7 @@ export const deleteTemplateRequest = z.object({
|
|
|
3083
3084
|
),
|
|
3084
3085
|
}),
|
|
3085
3086
|
query: z.optional(z.never()),
|
|
3086
|
-
});
|
|
3087
|
+
}).strict();
|
|
3087
3088
|
|
|
3088
3089
|
/**
|
|
3089
3090
|
* An empty response signifying the template has been deleted
|
|
@@ -3100,7 +3101,7 @@ export const getTemplateRequest = z.object({
|
|
|
3100
3101
|
),
|
|
3101
3102
|
}),
|
|
3102
3103
|
query: z.optional(z.never()),
|
|
3103
|
-
});
|
|
3104
|
+
}).strict();
|
|
3104
3105
|
|
|
3105
3106
|
/**
|
|
3106
3107
|
* The template details including the [Edit](#tocs_edit)
|
|
@@ -3118,7 +3119,7 @@ export const putTemplateRequest = z.object({
|
|
|
3118
3119
|
),
|
|
3119
3120
|
}),
|
|
3120
3121
|
query: z.optional(z.never()),
|
|
3121
|
-
});
|
|
3122
|
+
}).strict();
|
|
3122
3123
|
|
|
3123
3124
|
/**
|
|
3124
3125
|
* Update a templates name and [Edit](#tocs_edit)
|
|
@@ -3129,7 +3130,7 @@ export const postTemplateRenderRequest = z.object({
|
|
|
3129
3130
|
body: templaterenderTemplateRenderSchema,
|
|
3130
3131
|
path: z.optional(z.never()),
|
|
3131
3132
|
query: z.optional(z.never()),
|
|
3132
|
-
});
|
|
3133
|
+
}).strict();
|
|
3133
3134
|
|
|
3134
3135
|
/**
|
|
3135
3136
|
* The queued status including the render id. Check the status of the render using the id and the [render status](#get-render-status) endpoint.
|
|
@@ -3142,7 +3143,7 @@ export const probeRequest = z.object({
|
|
|
3142
3143
|
url: z.string(),
|
|
3143
3144
|
}),
|
|
3144
3145
|
query: z.optional(z.never()),
|
|
3145
|
-
});
|
|
3146
|
+
}).strict();
|
|
3146
3147
|
|
|
3147
3148
|
/**
|
|
3148
3149
|
* FFprobe response formatted as JSON.
|
|
@@ -3159,7 +3160,7 @@ export const deleteAssetRequest = z.object({
|
|
|
3159
3160
|
),
|
|
3160
3161
|
}),
|
|
3161
3162
|
query: z.optional(z.never()),
|
|
3162
|
-
});
|
|
3163
|
+
}).strict();
|
|
3163
3164
|
|
|
3164
3165
|
/**
|
|
3165
3166
|
* An empty response signifying the asset has been deleted
|
|
@@ -3176,7 +3177,7 @@ export const getAssetRequest = z.object({
|
|
|
3176
3177
|
),
|
|
3177
3178
|
}),
|
|
3178
3179
|
query: z.optional(z.never()),
|
|
3179
|
-
});
|
|
3180
|
+
}).strict();
|
|
3180
3181
|
|
|
3181
3182
|
/**
|
|
3182
3183
|
* Get asset by asset id
|
|
@@ -3193,7 +3194,7 @@ export const getAssetByRenderIdRequest = z.object({
|
|
|
3193
3194
|
),
|
|
3194
3195
|
}),
|
|
3195
3196
|
query: z.optional(z.never()),
|
|
3196
|
-
});
|
|
3197
|
+
}).strict();
|
|
3197
3198
|
|
|
3198
3199
|
/**
|
|
3199
3200
|
* Get one or more assets by render id
|
|
@@ -3205,7 +3206,7 @@ export const postServeAssetRequest = z.object({
|
|
|
3205
3206
|
body: transferTransferSchema,
|
|
3206
3207
|
path: z.optional(z.never()),
|
|
3207
3208
|
query: z.optional(z.never()),
|
|
3208
|
-
});
|
|
3209
|
+
}).strict();
|
|
3209
3210
|
|
|
3210
3211
|
/**
|
|
3211
3212
|
* The transfer request details and status
|
|
@@ -3216,7 +3217,7 @@ export const getSourcesRequest = z.object({
|
|
|
3216
3217
|
body: z.optional(z.never()),
|
|
3217
3218
|
path: z.optional(z.never()),
|
|
3218
3219
|
query: z.optional(z.never()),
|
|
3219
|
-
});
|
|
3220
|
+
}).strict();
|
|
3220
3221
|
|
|
3221
3222
|
/**
|
|
3222
3223
|
* The list of ingested source files stored against a users account
|
|
@@ -3227,7 +3228,7 @@ export const postSourceRequest = z.object({
|
|
|
3227
3228
|
body: sourceSourceSchema,
|
|
3228
3229
|
path: z.optional(z.never()),
|
|
3229
3230
|
query: z.optional(z.never()),
|
|
3230
|
-
});
|
|
3231
|
+
}).strict();
|
|
3231
3232
|
|
|
3232
3233
|
/**
|
|
3233
3234
|
* The queued source file details
|
|
@@ -3245,7 +3246,7 @@ export const deleteSourceRequest = z.object({
|
|
|
3245
3246
|
),
|
|
3246
3247
|
}),
|
|
3247
3248
|
query: z.optional(z.never()),
|
|
3248
|
-
});
|
|
3249
|
+
}).strict();
|
|
3249
3250
|
|
|
3250
3251
|
/**
|
|
3251
3252
|
* An empty response signifying the ingested source file has been deleted.
|
|
@@ -3262,7 +3263,7 @@ export const getSourceRequest = z.object({
|
|
|
3262
3263
|
),
|
|
3263
3264
|
}),
|
|
3264
3265
|
query: z.optional(z.never()),
|
|
3265
|
-
});
|
|
3266
|
+
}).strict();
|
|
3266
3267
|
|
|
3267
3268
|
/**
|
|
3268
3269
|
* Get source file details by id
|
|
@@ -3273,7 +3274,7 @@ export const getUploadSignedUrlRequest = z.object({
|
|
|
3273
3274
|
body: z.optional(z.never()),
|
|
3274
3275
|
path: z.optional(z.never()),
|
|
3275
3276
|
query: z.optional(z.never()),
|
|
3276
|
-
});
|
|
3277
|
+
}).strict();
|
|
3277
3278
|
|
|
3278
3279
|
/**
|
|
3279
3280
|
* The id and signed URL to upload to.
|
|
@@ -3284,7 +3285,7 @@ export const postGenerateAssetRequest = z.object({
|
|
|
3284
3285
|
body: generatedAssetGeneratedAssetSchema,
|
|
3285
3286
|
path: z.optional(z.never()),
|
|
3286
3287
|
query: z.optional(z.never()),
|
|
3287
|
-
});
|
|
3288
|
+
}).strict();
|
|
3288
3289
|
|
|
3289
3290
|
/**
|
|
3290
3291
|
* The generated asset details
|
|
@@ -3302,7 +3303,7 @@ export const getGeneratedAssetRequest = z.object({
|
|
|
3302
3303
|
),
|
|
3303
3304
|
}),
|
|
3304
3305
|
query: z.optional(z.never()),
|
|
3305
|
-
});
|
|
3306
|
+
}).strict();
|
|
3306
3307
|
|
|
3307
3308
|
/**
|
|
3308
3309
|
* The generated asset details
|