@shotstack/schemas 1.5.2 → 1.5.4

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.
@@ -7,8 +7,8 @@ exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema = exports.lumaAsse
7
7
  exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema = exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema = exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema = exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema = exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema = exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema = exports.richtextpropertiesRichTextPaddingSchema = exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema = exports.richtextpropertiesRichTextBorderSchema = exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema = exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema = exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema = exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema = exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema = exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema = exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema = exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema = exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema = exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema = exports.probeResponseSchema = exports.proberesponseProbeResponseSchema = exports.assetResponseSchema = exports.assetresponseAssetResponseSchema = exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema = exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema = exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema = exports.rangeSchema = exports.rangeRangeSchema = exports.posterSchema = exports.posterPosterSchema = void 0;
8
8
  exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema = exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema = exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema = exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema = exports.svgFillSchema = exports.svgpropertiesSvgFillSchema = exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema = exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema = exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema = exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema = exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema = exports.soundtrackSchema = exports.soundtrackSoundtrackSchema = exports.sourceSchema = exports.sourceSourceSchema = exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema = exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema = exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema = exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema = exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema = exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema = exports.outputsSchema = exports.outputsOutputsSchema = exports.renditionSchema = exports.renditionRenditionSchema = exports.sizeSchema = exports.sizeSizeSchema = exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema = exports.transferSchema = exports.transferTransferSchema = exports.transferResponseSchema = exports.transferresponseTransferResponseSchema = exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema = void 0;
9
9
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema = exports.offsetSchema = exports.offsetOffsetSchema = exports.audioAssetSchema = exports.audioassetAudioAssetSchema = exports.tweenSchema = exports.tweenTweenSchema = exports.transitionSchema = exports.transitionTransitionSchema = exports.outputSchema = exports.outputOutputSchema = exports.thumbnailSchema = exports.thumbnailThumbnailSchema = exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema = exports.textAssetSchema = exports.textassetTextAssetSchema = exports.textpropertiesTextStrokeSchema = exports.textFontSchema = exports.textpropertiesTextFontSchema = exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema = exports.textpropertiesTextAnimationSchema = exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema = exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema = exports.svgAssetSchema = exports.svgassetSvgAssetSchema = exports.svgShapeSchema = exports.svgshapesSvgShapeSchema = exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema = exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema = exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema = exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema = exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema = exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema = exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema = exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema = exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema = void 0;
10
- exports.getAssetResponse = exports.getAssetRequest = exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = void 0;
11
- exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = void 0;
10
+ exports.deleteAssetResponse = exports.deleteAssetRequest = exports.probeResponse = exports.probeRequest = exports.postTemplateRenderResponse = exports.postTemplateRenderRequest = exports.putTemplateResponse = exports.putTemplateRequest = exports.getTemplateResponse = exports.getTemplateRequest = exports.deleteTemplateResponse = exports.deleteTemplateRequest = exports.postTemplateResponse = exports.postTemplateRequest = exports.getTemplatesResponse = exports.getTemplatesRequest = exports.getRenderResponse = exports.getRenderRequest = exports.postRenderResponse = exports.postRenderRequest = exports.templateSchema = exports.templateTemplateSchema = exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema = exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema = exports.renderResponseSchema = exports.renderresponseRenderResponseSchema = exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema = exports.editSchema = exports.editEditSchema = exports.timelineSchema = exports.timelineTimelineSchema = exports.trackSchema = exports.trackTrackSchema = exports.clipSchema = exports.clipClipSchema = exports.assetSchema = exports.assetAssetSchema = exports.videoAssetSchema = exports.videoassetVideoAssetSchema = exports.transformationSchema = exports.transformationTransformationSchema = exports.titleAssetSchema = exports.titleassetTitleAssetSchema = exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema = exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema = void 0;
11
+ exports.getGeneratedAssetResponse = exports.getGeneratedAssetRequest = exports.postGenerateAssetResponse = exports.postGenerateAssetRequest = exports.getUploadSignedUrlResponse = exports.getUploadSignedUrlRequest = exports.getSourceResponse = exports.getSourceRequest = exports.deleteSourceResponse = exports.deleteSourceRequest = exports.postSourceResponse = exports.postSourceRequest = exports.getSourcesResponse = exports.getSourcesRequest = exports.postServeAssetResponse = exports.postServeAssetRequest = exports.getAssetByRenderIdResponse = exports.getAssetByRenderIdRequest = exports.getAssetResponse = exports.getAssetRequest = void 0;
12
12
  const zod_1 = require("zod");
13
13
  exports.editRootSchema = zod_1.z.unknown();
14
14
  exports.sourceRootSchema = zod_1.z.unknown();
@@ -31,19 +31,28 @@ exports.uploadRootSchema = zod_1.z.unknown();
31
31
  */
32
32
  exports.captionpropertiesCaptionBackgroundSchema = zod_1.z.object({
33
33
  color: zod_1.z.optional(zod_1.z.string()),
34
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
35
- return undefined; if (Array.isArray(v))
36
- return v; if (typeof v === 'string')
37
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
38
- padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
39
- return undefined; if (Array.isArray(v))
40
- return v; if (typeof v === 'string')
41
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
42
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
43
- return undefined; if (Array.isArray(v))
44
- return v; if (typeof v === 'string')
45
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
46
- }).strict();
34
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
35
+ return undefined; if (Array.isArray(v))
36
+ return v; if (typeof v === 'string') {
37
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
38
+ return v;
39
+ return Number(v);
40
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
41
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
42
+ return undefined; if (Array.isArray(v))
43
+ return v; if (typeof v === 'string') {
44
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
45
+ return v;
46
+ return Number(v);
47
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
48
+ borderRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
49
+ return undefined; if (Array.isArray(v))
50
+ return v; if (typeof v === 'string') {
51
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
52
+ return v;
53
+ return Number(v);
54
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
55
+ });
47
56
  exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSchema;
48
57
  /**
49
58
  * Font properties for captions text.
@@ -51,46 +60,63 @@ exports.captionBackgroundSchema = exports.captionpropertiesCaptionBackgroundSche
51
60
  exports.captionpropertiesCaptionFontSchema = zod_1.z.object({
52
61
  family: zod_1.z.optional(zod_1.z.string()),
53
62
  color: zod_1.z.optional(zod_1.z.string()),
54
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
55
- return undefined; if (Array.isArray(v))
56
- return v; if (typeof v === 'string')
57
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
58
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
59
- return undefined; if (Array.isArray(v))
60
- return v; if (typeof v === 'string')
61
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
62
- lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
63
- return undefined; if (Array.isArray(v))
64
- return v; if (typeof v === 'string')
65
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
63
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
64
+ return undefined; if (Array.isArray(v))
65
+ return v; if (typeof v === 'string') {
66
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
67
+ return v;
68
+ return Number(v);
69
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
70
+ size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
71
+ return undefined; if (Array.isArray(v))
72
+ return v; if (typeof v === 'string') {
73
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
74
+ return v;
75
+ return Number(v);
76
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
77
+ lineHeight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
78
+ return undefined; if (Array.isArray(v))
79
+ return v; if (typeof v === 'string') {
80
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
81
+ return v;
82
+ return Number(v);
83
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
66
84
  stroke: zod_1.z.optional(zod_1.z.string()),
67
- strokeWidth: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
68
- return undefined; if (Array.isArray(v))
69
- return v; if (typeof v === 'string')
70
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
71
- }).strict();
85
+ strokeWidth: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
86
+ return undefined; if (Array.isArray(v))
87
+ return v; if (typeof v === 'string') {
88
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
89
+ return v;
90
+ return Number(v);
91
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
92
+ });
72
93
  exports.captionFontSchema = exports.captionpropertiesCaptionFontSchema;
73
94
  /**
74
95
  * The margin properties for captions. Margins are used to position the caption text and background on the screen.
75
96
  */
76
97
  exports.captionpropertiesCaptionMarginSchema = zod_1.z.object({
77
- top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
78
- return undefined; if (Array.isArray(v))
79
- return v; if (typeof v === 'string')
80
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
81
- bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
82
- return undefined; if (Array.isArray(v))
83
- return v; if (typeof v === 'string')
84
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
85
- left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
86
- return undefined; if (Array.isArray(v))
87
- return v; if (typeof v === 'string')
88
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
89
- right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
90
- return undefined; if (Array.isArray(v))
91
- return v; if (typeof v === 'string')
92
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
93
- }).strict();
98
+ top: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
99
+ return undefined; if (Array.isArray(v))
100
+ return v; if (typeof v === 'string') {
101
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
102
+ return v;
103
+ return Number(v);
104
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
105
+ left: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
106
+ return undefined; if (Array.isArray(v))
107
+ return v; if (typeof v === 'string') {
108
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
109
+ return v;
110
+ return Number(v);
111
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
112
+ right: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
113
+ return undefined; if (Array.isArray(v))
114
+ return v; if (typeof v === 'string') {
115
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
116
+ return v;
117
+ return Number(v);
118
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
119
+ });
94
120
  exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
95
121
  /**
96
122
  * The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will
@@ -106,34 +132,46 @@ exports.captionMarginSchema = exports.captionpropertiesCaptionMarginSchema;
106
132
  */
107
133
  exports.captionassetCaptionAssetSchema = zod_1.z.object({
108
134
  type: zod_1.z.enum(["caption"]),
109
- src: zod_1.z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
135
+ src: zod_1.z.string().min(1).regex(/\S/),
110
136
  font: zod_1.z.optional(exports.captionpropertiesCaptionFontSchema),
111
137
  background: zod_1.z.optional(exports.captionpropertiesCaptionBackgroundSchema),
112
138
  margin: zod_1.z.optional(exports.captionpropertiesCaptionMarginSchema),
113
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
114
- return undefined; if (Array.isArray(v))
115
- return v; if (typeof v === 'string')
116
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
117
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
118
- return undefined; if (Array.isArray(v))
119
- return v; if (typeof v === 'string')
120
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
121
- }).strict();
139
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
140
+ return undefined; if (Array.isArray(v))
141
+ return v; if (typeof v === 'string') {
142
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
143
+ return v;
144
+ return Number(v);
145
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
146
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
147
+ return undefined; if (Array.isArray(v))
148
+ return v; if (typeof v === 'string') {
149
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
150
+ return v;
151
+ return Number(v);
152
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
153
+ });
122
154
  exports.captionAssetSchema = exports.captionassetCaptionAssetSchema;
123
155
  /**
124
156
  * Chroma key is a technique that replaces a specific color in a video with a different background image or video, enabling seamless integration of diverse environments. Commonly used for green screen and blue screen effects.
125
157
  */
126
158
  exports.chromakeyChromaKeySchema = zod_1.z.object({
127
- color: zod_1.z.string().regex(/^#[0-9a-fA-F]{6}$/),
128
- threshold: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
129
- return undefined; if (Array.isArray(v))
130
- return v; if (typeof v === 'string')
131
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250)))),
132
- halo: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
133
- return undefined; if (Array.isArray(v))
134
- return v; if (typeof v === 'string')
135
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(0).lte(250)))),
136
- }).strict();
159
+ color: zod_1.z.union([zod_1.z.string().regex(/^#[0-9a-fA-F]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
160
+ threshold: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
161
+ return undefined; if (Array.isArray(v))
162
+ return v; if (typeof v === 'string') {
163
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
164
+ return v;
165
+ return Number(v);
166
+ } return v; }), zod_1.z.number().int().gte(0).lte(250)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
167
+ halo: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
168
+ return undefined; if (Array.isArray(v))
169
+ return v; if (typeof v === 'string') {
170
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
171
+ return v;
172
+ return Number(v);
173
+ } return v; }), zod_1.z.number().int().gte(0).lte(250)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
174
+ });
137
175
  exports.chromaKeySchema = exports.chromakeyChromaKeySchema;
138
176
  /**
139
177
  * Options for the D-ID text-to-avatar service. Set the text to be converted to an avatar and configure the avatar and background. The output will be generated as an MP4 video file.
@@ -143,7 +181,7 @@ exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema = zod_1.z.object({
143
181
  text: zod_1.z.string(),
144
182
  avatar: zod_1.z.enum(["jack", "lana", "lily", "matt", "rian"]),
145
183
  background: zod_1.z.optional(zod_1.z.string()),
146
- }).strict();
184
+ });
147
185
  exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema;
148
186
  /**
149
187
  * Generate assets using the third party D-ID provider AI services.
@@ -152,7 +190,11 @@ exports.didTextToAvatarOptionsSchema = exports.didTextToAvatarOptionsDidTextToAv
152
190
  * <li><a href="#tocs_didtexttoavataroptions">DidTextToAvatarOptions</a></li>
153
191
  * </ul>
154
192
  */
155
- exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema.extend({ type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions") }).strict();
193
+ exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema = zod_1.z
194
+ .object({
195
+ type: zod_1.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions"),
196
+ })
197
+ .and(exports.didTextToAvatarOptionsDidTextToAvatarOptionsSchema);
156
198
  exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema;
157
199
  /**
158
200
  * Generate assets using D-ID. D-ID provide a text-to-avatar service. The D-ID provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/d-id), not in the request.
@@ -160,7 +202,7 @@ exports.didGeneratedAssetOptionsSchema = exports.didGeneratedAssetOptionsDidGene
160
202
  exports.didGeneratedAssetDidGeneratedAssetSchema = zod_1.z.object({
161
203
  provider: zod_1.z.enum(["d-id"]),
162
204
  options: exports.didGeneratedAssetOptionsDidGeneratedAssetOptionsSchema,
163
- }).strict();
205
+ });
164
206
  exports.didGeneratedAssetSchema = exports.didGeneratedAssetDidGeneratedAssetSchema;
165
207
  /**
166
208
  * Options for the ElevenLabs text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
@@ -179,7 +221,7 @@ exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema = zod_1
179
221
  "Rachel",
180
222
  "Sam",
181
223
  ]),
182
- }).strict();
224
+ });
183
225
  exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema;
184
226
  /**
185
227
  * Generate assets using the third party ElevenLabs provider AI services.
@@ -188,7 +230,11 @@ exports.elevenLabsTextToSpeechOptionsSchema = exports.elevenlabsTextToSpeechOpti
188
230
  * <li><a href="#tocs_elevenlabstexttospeechoptions">ElevenLabsTextToSpeechOptions</a></li>
189
231
  * </ul>
190
232
  */
191
- exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema.extend({ type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions") }).strict();
233
+ exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema = zod_1.z
234
+ .object({
235
+ type: zod_1.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions"),
236
+ })
237
+ .and(exports.elevenlabsTextToSpeechOptionsElevenLabsTextToSpeechOptionsSchema);
192
238
  exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema;
193
239
  /**
194
240
  * Generate assets using ElevenLabs. ElevenLabs provide a text-to-speech service. The ElevenLabs provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/elevenlabs), not in the request.
@@ -196,7 +242,7 @@ exports.elevenLabsGeneratedAssetOptionsSchema = exports.elevenlabsGeneratedAsset
196
242
  exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema = zod_1.z.object({
197
243
  provider: zod_1.z.enum(["elevenlabs"]),
198
244
  options: exports.elevenlabsGeneratedAssetOptionsElevenLabsGeneratedAssetOptionsSchema,
199
- }).strict();
245
+ });
200
246
  exports.elevenLabsGeneratedAssetSchema = exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema;
201
247
  /**
202
248
  * Options for the HeyGen text-to-avatar service. Set the text to be converted to an avatar and configure the avatars voice, speaking style, appearance and background. The output will be generated as an MP4 video file available at the URL returned in the response.
@@ -321,7 +367,7 @@ exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema = zod_1.z.objec
321
367
  background: zod_1.z.optional(zod_1.z.string()),
322
368
  ratio: zod_1.z.optional(zod_1.z.enum(["16:9", "9:16"])),
323
369
  test: zod_1.z.optional(zod_1.z.boolean()),
324
- }).strict();
370
+ });
325
371
  exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema;
326
372
  /**
327
373
  * Generate assets using the third party HeyGen provider AI services.
@@ -330,7 +376,11 @@ exports.heyGenTextToAvatarOptionsSchema = exports.heygenTextToAvatarOptionsHeyGe
330
376
  * <li><a href="#tocs_heygentexttoavataroptions">HeyGenTextToAvatarOptions</a></li>
331
377
  * </ul>
332
378
  */
333
- exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema.extend({ type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions") }).strict();
379
+ exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema = zod_1.z
380
+ .object({
381
+ type: zod_1.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions"),
382
+ })
383
+ .and(exports.heygenTextToAvatarOptionsHeyGenTextToAvatarOptionsSchema);
334
384
  exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema;
335
385
  /**
336
386
  * Generate assets using HeyGen. HeyGen provide a text-to-avatar service. The HeyGen provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/heygen), not in the request.
@@ -338,7 +388,7 @@ exports.heyGenGeneratedAssetOptionsSchema = exports.heygenGeneratedAssetOptionsH
338
388
  exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema = zod_1.z.object({
339
389
  provider: zod_1.z.enum(["heygen"]),
340
390
  options: exports.heygenGeneratedAssetOptionsHeyGenGeneratedAssetOptionsSchema,
341
- }).strict();
391
+ });
342
392
  exports.heyGenGeneratedAssetSchema = exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema;
343
393
  /**
344
394
  * Options for the OpenAI text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
@@ -348,7 +398,7 @@ exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema = zod_1.z.obj
348
398
  prompt: zod_1.z.string(),
349
399
  model: zod_1.z.enum(["gpt-3.5-turbo", "gpt-4"]),
350
400
  systemPrompt: zod_1.z.optional(zod_1.z.string()),
351
- }).strict();
401
+ });
352
402
  exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema;
353
403
  /**
354
404
  * Generate assets using OpenAI provider AI services.
@@ -357,7 +407,11 @@ exports.openAiTextGeneratorOptionsSchema = exports.openaiTextGeneratorOptionsOpe
357
407
  * <li><a href="#tocs_openaitextgeneratoroptions">OpenAiTextGeneratorOptions</a></li>
358
408
  * </ul>
359
409
  */
360
- exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema.extend({ type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions") }).strict();
410
+ exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema = zod_1.z
411
+ .object({
412
+ type: zod_1.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions"),
413
+ })
414
+ .and(exports.openaiTextGeneratorOptionsOpenAiTextGeneratorOptionsSchema);
361
415
  exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema;
362
416
  /**
363
417
  * Generate assets using OpenAI. OpenAI provide a text generation service using ChatGPT 3.5 and 4. The OpenAI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/openai), not in the request.
@@ -365,7 +419,7 @@ exports.openAiGeneratedAssetOptionsSchema = exports.openaiGeneratedAssetOptionsO
365
419
  exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema = zod_1.z.object({
366
420
  provider: zod_1.z.enum(["openai"]),
367
421
  options: exports.openaiGeneratedAssetOptionsOpenAiGeneratedAssetOptionsSchema,
368
- }).strict();
422
+ });
369
423
  exports.openAiGeneratedAssetSchema = exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema;
370
424
  /**
371
425
  * Individual errors returned by the Create API.
@@ -374,14 +428,14 @@ exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema = z
374
428
  status: zod_1.z.string(),
375
429
  title: zod_1.z.string(),
376
430
  detail: zod_1.z.string(),
377
- }).strict();
431
+ });
378
432
  exports.generatedAssetErrorResponseDataSchema = exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema;
379
433
  /**
380
434
  * Error response data for validation and other errors returned by the Create API.
381
435
  */
382
436
  exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema = zod_1.z.object({
383
437
  errors: zod_1.z.array(exports.generatedAssetErrorResponseDataGeneratedAssetErrorResponseDataSchema),
384
- }).strict();
438
+ });
385
439
  exports.generatedAssetErrorResponseSchema = exports.generatedAssetErrorResponseGeneratedAssetErrorResponseSchema;
386
440
  /**
387
441
  * The id and attributes of the generated asset.
@@ -394,7 +448,7 @@ exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema =
394
448
  status: zod_1.z.enum(["queued", "processing", "saving", "done", "failed"]),
395
449
  created: zod_1.z.string(),
396
450
  updated: zod_1.z.string(),
397
- }).strict();
451
+ });
398
452
  exports.generatedAssetResponseAttributesSchema = exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema;
399
453
  /**
400
454
  * The type of resource (an asset), it's id and attributes of the generated file.
@@ -403,14 +457,14 @@ exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema = zod_1.z.obj
403
457
  type: zod_1.z.string(),
404
458
  id: zod_1.z.string(),
405
459
  attributes: exports.generatedAssetResponseAttributesGeneratedAssetResponseAttributesSchema,
406
- }).strict();
460
+ });
407
461
  exports.generatedAssetResponseDataSchema = exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema;
408
462
  /**
409
463
  * The response returned by the Create API [generate asset](#generate-asset) and [get generated asset](#get-generated-asset) requests. Includes status and details of the generated asset. The response follows the [json:api](https://jsonapi.org/) specification.
410
464
  */
411
465
  exports.generatedAssetResponseGeneratedAssetResponseSchema = zod_1.z.object({
412
466
  data: exports.generatedAssetResponseDataGeneratedAssetResponseDataSchema,
413
- }).strict();
467
+ });
414
468
  exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAssetResponseSchema;
415
469
  /**
416
470
  * Options for the Shotstack image-to-video service. Set the URL of an image to convert in to a video. The output will be generated as an MP4 file available at the URL returned in the response.
@@ -418,15 +472,21 @@ exports.generatedAssetResponseSchema = exports.generatedAssetResponseGeneratedAs
418
472
  exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema = zod_1.z.object({
419
473
  type: zod_1.z.enum(["image-to-video"]),
420
474
  imageUrl: zod_1.z.string(),
421
- guidanceScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
422
- return undefined; if (Array.isArray(v))
423
- return v; if (typeof v === 'string')
424
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(1.8),
425
- motion: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
426
- return undefined; if (Array.isArray(v))
427
- return v; if (typeof v === 'string')
428
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))).default(127),
429
- }).strict();
475
+ guidanceScale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
476
+ return undefined; if (Array.isArray(v))
477
+ return v; if (typeof v === 'string') {
478
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
479
+ return v;
480
+ return Number(v);
481
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.8),
482
+ motion: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
483
+ return undefined; if (Array.isArray(v))
484
+ return v; if (typeof v === 'string') {
485
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
486
+ return v;
487
+ return Number(v);
488
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127),
489
+ });
430
490
  exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema;
431
491
  /**
432
492
  * Options for the Shotstack text-generator service. Set a text prompt that will be used to generate a new body of text. The output will be generated as a text (txt) file available at the URL returned in the response.
@@ -434,7 +494,7 @@ exports.shotstackImageToVideoOptionsSchema = exports.shotstackImageToVideoOption
434
494
  exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema = zod_1.z.object({
435
495
  type: zod_1.z.enum(["text-generator"]),
436
496
  prompt: zod_1.z.string(),
437
- }).strict();
497
+ });
438
498
  exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema;
439
499
  /**
440
500
  * Options for the Shotstack text-to-image service. Set a text prompt to generate an image from. The output will be generated as a PNG file available at the URL returned in the response.
@@ -442,15 +502,21 @@ exports.shotstackTextGeneratorOptionsSchema = exports.shotstackTextGeneratorOpti
442
502
  exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema = zod_1.z.object({
443
503
  type: zod_1.z.enum(["text-to-image"]),
444
504
  prompt: zod_1.z.string(),
445
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
446
- return undefined; if (Array.isArray(v))
447
- return v; if (typeof v === 'string')
448
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
449
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
450
- return undefined; if (Array.isArray(v))
451
- return v; if (typeof v === 'string')
452
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
453
- }).strict();
505
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
506
+ return undefined; if (Array.isArray(v))
507
+ return v; if (typeof v === 'string') {
508
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
509
+ return v;
510
+ return Number(v);
511
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
512
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
513
+ return undefined; if (Array.isArray(v))
514
+ return v; if (typeof v === 'string') {
515
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
516
+ return v;
517
+ return Number(v);
518
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
519
+ });
454
520
  exports.shotstackTextToImageOptionsSchema = exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema;
455
521
  /**
456
522
  * Options for the Shotstack text-to-speech service. Set the text to be converted to speech and choose a voice to set the speaking style. The output will be generated as an MP3 audio file available at the URL returned in the response.
@@ -549,16 +615,32 @@ exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema = zod_1.z
549
615
  "fi-FI",
550
616
  ])),
551
617
  newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
552
- }).strict();
618
+ });
553
619
  exports.shotstackTextToSpeechOptionsSchema = exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema;
554
620
  /**
555
621
  * Generate assets using the native Shotstack provider AI services.
556
622
  */
557
623
  exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema = zod_1.z.union([
558
- exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema.extend({ type: zod_1.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions") }).strict(),
559
- exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema.extend({ type: zod_1.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions") }).strict(),
560
- exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema.extend({ type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions") }).strict(),
561
- exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema.extend({ type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions") }).strict(),
624
+ zod_1.z
625
+ .object({
626
+ type: zod_1.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions"),
627
+ })
628
+ .and(exports.shotstackTextToSpeechOptionsShotstackTextToSpeechOptionsSchema),
629
+ zod_1.z
630
+ .object({
631
+ type: zod_1.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions"),
632
+ })
633
+ .and(exports.shotstackTextToImageOptionsShotstackTextToImageOptionsSchema),
634
+ zod_1.z
635
+ .object({
636
+ type: zod_1.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions"),
637
+ })
638
+ .and(exports.shotstackTextGeneratorOptionsShotstackTextGeneratorOptionsSchema),
639
+ zod_1.z
640
+ .object({
641
+ type: zod_1.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions"),
642
+ })
643
+ .and(exports.shotstackImageToVideoOptionsShotstackImageToVideoOptionsSchema),
562
644
  ]);
563
645
  exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema;
564
646
  /**
@@ -567,7 +649,7 @@ exports.shotstackGeneratedAssetOptionsSchema = exports.shotstackGeneratedAssetOp
567
649
  exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema = zod_1.z.object({
568
650
  provider: zod_1.z.enum(["shotstack"]),
569
651
  options: exports.shotstackGeneratedAssetOptionsShotstackGeneratedAssetOptionsSchema,
570
- }).strict();
652
+ });
571
653
  exports.shotstackGeneratedAssetSchema = exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema;
572
654
  /**
573
655
  * Options for the Stability AI text-to-image service. Set a text prompt to generate an image from plus other engine and configuration options. The output will be generated as a JPG file available at the URL returned in the response.
@@ -582,26 +664,41 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
582
664
  "stable-diffusion-512-v2-1",
583
665
  "stable-diffusion-xl-beta-v2-2-2",
584
666
  ])),
585
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
586
- return undefined; if (Array.isArray(v))
587
- return v; if (typeof v === 'string')
588
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
589
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
590
- return undefined; if (Array.isArray(v))
591
- return v; if (typeof v === 'string')
592
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
593
- steps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
594
- return undefined; if (Array.isArray(v))
595
- return v; if (typeof v === 'string')
596
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))).default(30),
597
- seed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
598
- return undefined; if (Array.isArray(v))
599
- return v; if (typeof v === 'string')
600
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))).default(0),
601
- cfgScale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
602
- return undefined; if (Array.isArray(v))
603
- return v; if (typeof v === 'string')
604
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(7),
667
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
668
+ return undefined; if (Array.isArray(v))
669
+ return v; if (typeof v === 'string') {
670
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
671
+ return v;
672
+ return Number(v);
673
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
674
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
675
+ return undefined; if (Array.isArray(v))
676
+ return v; if (typeof v === 'string') {
677
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
678
+ return v;
679
+ return Number(v);
680
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
681
+ steps: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
682
+ return undefined; if (Array.isArray(v))
683
+ return v; if (typeof v === 'string') {
684
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
685
+ return v;
686
+ return Number(v);
687
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(30),
688
+ seed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
689
+ return undefined; if (Array.isArray(v))
690
+ return v; if (typeof v === 'string') {
691
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
692
+ return v;
693
+ return Number(v);
694
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
695
+ cfgScale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
696
+ return undefined; if (Array.isArray(v))
697
+ return v; if (typeof v === 'string') {
698
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
699
+ return v;
700
+ return Number(v);
701
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),
605
702
  stylePreset: zod_1.z.optional(zod_1.z.enum([
606
703
  "3d-model",
607
704
  "analog-film",
@@ -621,7 +718,7 @@ exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema = zod_1
621
718
  "pixel-art",
622
719
  "tile-texture",
623
720
  ])),
624
- }).strict();
721
+ });
625
722
  exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema;
626
723
  /**
627
724
  * Generate assets using Stability AI provider AI services.
@@ -630,7 +727,11 @@ exports.stabilityAiTextToImageOptionsSchema = exports.stabilityAiTextToImageOpti
630
727
  * <li><a href="#tocs_stabilityaitexttoimageoptions">StabilityAiTextToImageOptions</a></li>
631
728
  * </ul>
632
729
  */
633
- exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema.extend({ type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions") }).strict();
730
+ exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema = zod_1.z
731
+ .object({
732
+ type: zod_1.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions"),
733
+ })
734
+ .and(exports.stabilityAiTextToImageOptionsStabilityAiTextToImageOptionsSchema);
634
735
  exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema;
635
736
  /**
636
737
  * Generate assets using Stability AI. Stability AI provide a text-to-image service using Stable Diffusion. The Stability AI provider works on a bring-your-own-key basis, credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/stability-ai), not in the request.
@@ -638,41 +739,77 @@ exports.stabilityAiGeneratedAssetOptionsSchema = exports.stabilityAiGeneratedAss
638
739
  exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema = zod_1.z.object({
639
740
  provider: zod_1.z.enum(["stability-ai"]),
640
741
  options: exports.stabilityAiGeneratedAssetOptionsStabilityAiGeneratedAssetOptionsSchema,
641
- }).strict();
742
+ });
642
743
  exports.stabilityAiGeneratedAssetSchema = exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema;
643
744
  /**
644
745
  * A generated asset is a media asset created by the Create API. You can use native or third party providers to generate video, audio and image files using Generative AI services like text-to-speech and text-to-avatar.
645
746
  */
646
747
  exports.generatedAssetGeneratedAssetSchema = zod_1.z.union([
647
- exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema.extend({ provider: zod_1.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset") }).strict(),
648
- exports.didGeneratedAssetDidGeneratedAssetSchema.extend({ provider: zod_1.z.literal("didGeneratedAsset_DIDGeneratedAsset") }).strict(),
649
- exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema.extend({ provider: zod_1.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset") }).strict(),
650
- exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema.extend({ provider: zod_1.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset") }).strict(),
651
- exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema.extend({ provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset") }).strict(),
652
- exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema.extend({ provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset") }).strict(),
748
+ zod_1.z
749
+ .object({
750
+ provider: zod_1.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset"),
751
+ })
752
+ .and(exports.shotstackGeneratedAssetShotstackGeneratedAssetSchema),
753
+ zod_1.z
754
+ .object({
755
+ provider: zod_1.z.literal("didGeneratedAsset_DIDGeneratedAsset"),
756
+ })
757
+ .and(exports.didGeneratedAssetDidGeneratedAssetSchema),
758
+ zod_1.z
759
+ .object({
760
+ provider: zod_1.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset"),
761
+ })
762
+ .and(exports.elevenlabsGeneratedAssetElevenLabsGeneratedAssetSchema),
763
+ zod_1.z
764
+ .object({
765
+ provider: zod_1.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset"),
766
+ })
767
+ .and(exports.heygenGeneratedAssetHeyGenGeneratedAssetSchema),
768
+ zod_1.z
769
+ .object({
770
+ provider: zod_1.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset"),
771
+ })
772
+ .and(exports.openaiGeneratedAssetOpenAiGeneratedAssetSchema),
773
+ zod_1.z
774
+ .object({
775
+ provider: zod_1.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset"),
776
+ })
777
+ .and(exports.stabilityAiGeneratedAssetStabilityAiGeneratedAssetSchema),
653
778
  ]);
654
779
  exports.generatedAssetSchema = exports.generatedAssetGeneratedAssetSchema;
655
780
  /**
656
781
  * Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset.
657
782
  */
658
783
  exports.cropCropSchema = zod_1.z.object({
659
- top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
660
- return undefined; if (Array.isArray(v))
661
- return v; if (typeof v === 'string')
662
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
663
- bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
664
- return undefined; if (Array.isArray(v))
665
- return v; if (typeof v === 'string')
666
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
667
- left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
668
- return undefined; if (Array.isArray(v))
669
- return v; if (typeof v === 'string')
670
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
671
- right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
672
- return undefined; if (Array.isArray(v))
673
- return v; if (typeof v === 'string')
674
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
675
- }).strict();
784
+ top: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
785
+ return undefined; if (Array.isArray(v))
786
+ return v; if (typeof v === 'string') {
787
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
788
+ return v;
789
+ return Number(v);
790
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
791
+ bottom: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
792
+ return undefined; if (Array.isArray(v))
793
+ return v; if (typeof v === 'string') {
794
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
795
+ return v;
796
+ return Number(v);
797
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
798
+ left: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
799
+ return undefined; if (Array.isArray(v))
800
+ return v; if (typeof v === 'string') {
801
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
802
+ return v;
803
+ return Number(v);
804
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
805
+ right: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
806
+ return undefined; if (Array.isArray(v))
807
+ return v; if (typeof v === 'string') {
808
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
809
+ return v;
810
+ return Number(v);
811
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
812
+ });
676
813
  exports.cropSchema = exports.cropCropSchema;
677
814
  /**
678
815
  * Pass additional options to control how files are stored in Google Cloud Storage.
@@ -681,7 +818,7 @@ exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptions
681
818
  bucket: zod_1.z.string(),
682
819
  prefix: zod_1.z.optional(zod_1.z.string()),
683
820
  filename: zod_1.z.optional(zod_1.z.string()),
684
- }).strict();
821
+ });
685
822
  exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema;
686
823
  /**
687
824
  * Send videos and assets to a [Google Cloud Storage](https://cloud.google.com/storage) bucket. Send files with your own prefix and filename. Google Cloud credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/google-cloud-storage), not in the request.
@@ -689,7 +826,7 @@ exports.googleCloudStorageDestinationOptionsSchema = exports.googleCloudStorageD
689
826
  exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema = zod_1.z.object({
690
827
  provider: zod_1.z.literal("google-cloud-storage"),
691
828
  options: zod_1.z.optional(exports.googleCloudStorageDestinationOptionsGoogleCloudStorageDestinationOptionsSchema),
692
- }).strict();
829
+ });
693
830
  exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinationGoogleCloudStorageDestinationSchema;
694
831
  /**
695
832
  * Pass the folder ID and options to configure how assets are stored in Google Drive.
@@ -697,7 +834,7 @@ exports.googleCloudStorageDestinationSchema = exports.googleCloudStorageDestinat
697
834
  exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema = zod_1.z.object({
698
835
  folderId: zod_1.z.string(),
699
836
  filename: zod_1.z.optional(zod_1.z.string()),
700
- }).strict();
837
+ });
701
838
  exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema;
702
839
  /**
703
840
  * Send rendered videos and assets to the [Google Drive](https://shotstack.io/docs/guide/serving-assets/destinations/google-drive/) cloud storage service. Google Drive uses OAuth and you must authenticate and link your Google account via [dashboard](https://dashboard.shotstack.io/integrations/google-drive), not in the request.
@@ -705,7 +842,7 @@ exports.googleDriveDestinationOptionsSchema = exports.googleDriveDestinationOpti
705
842
  exports.googleDriveDestinationGoogleDriveDestinationSchema = zod_1.z.object({
706
843
  provider: zod_1.z.literal("google-drive"),
707
844
  options: exports.googleDriveDestinationOptionsGoogleDriveDestinationOptionsSchema,
708
- }).strict();
845
+ });
709
846
  exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDriveDestinationSchema;
710
847
  /**
711
848
  * Pass additional options to control how Mux processes video. Currently supports playback_policy and passthrough options.
@@ -713,7 +850,7 @@ exports.googleDriveDestinationSchema = exports.googleDriveDestinationGoogleDrive
713
850
  exports.muxDestinationOptionsMuxDestinationOptionsSchema = zod_1.z.object({
714
851
  playbackPolicy: zod_1.z.optional(zod_1.z.array(zod_1.z.enum(["public", "signed"]))),
715
852
  passthrough: zod_1.z.optional(zod_1.z.string().max(255)),
716
- }).strict();
853
+ });
717
854
  exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinationOptionsSchema;
718
855
  /**
719
856
  * Send videos to the [Mux](https://shotstack.io/docs/guide/serving-assets/destinations/mux/) video hosting and streaming service. Mux credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/mux), not in the request.
@@ -721,7 +858,7 @@ exports.muxDestinationOptionsSchema = exports.muxDestinationOptionsMuxDestinatio
721
858
  exports.muxDestinationMuxDestinationSchema = zod_1.z.object({
722
859
  provider: zod_1.z.literal("mux"),
723
860
  options: zod_1.z.optional(exports.muxDestinationOptionsMuxDestinationOptionsSchema),
724
- }).strict();
861
+ });
725
862
  exports.muxDestinationSchema = exports.muxDestinationMuxDestinationSchema;
726
863
  /**
727
864
  * Pass additional options to control how files are stored in S3.
@@ -732,7 +869,7 @@ exports.s3DestinationOptionsS3DestinationOptionsSchema = zod_1.z.object({
732
869
  prefix: zod_1.z.optional(zod_1.z.string()),
733
870
  filename: zod_1.z.optional(zod_1.z.string()),
734
871
  acl: zod_1.z.optional(zod_1.z.string()),
735
- }).strict();
872
+ });
736
873
  exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOptionsSchema;
737
874
  /**
738
875
  * Send videos and assets to an [Amazon S3](https://shotstack.io/docs/guide/serving-assets/destinations/s3/) bucket. Send files to any region with your own prefix and filename. AWS credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/s3), not in the request.
@@ -740,7 +877,7 @@ exports.s3DestinationOptionsSchema = exports.s3DestinationOptionsS3DestinationOp
740
877
  exports.s3DestinationS3DestinationSchema = zod_1.z.object({
741
878
  provider: zod_1.z.literal("s3"),
742
879
  options: zod_1.z.optional(exports.s3DestinationOptionsS3DestinationOptionsSchema),
743
- }).strict();
880
+ });
744
881
  exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
745
882
  /**
746
883
  * Send videos and assets to the [Shotstack hosting and CDN](https://shotstack.io/docs/guide/serving-assets/destinations/shotstack/) service. This destination is enabled by default.
@@ -748,7 +885,7 @@ exports.s3DestinationSchema = exports.s3DestinationS3DestinationSchema;
748
885
  exports.shotstackDestinationShotstackDestinationSchema = zod_1.z.object({
749
886
  provider: zod_1.z.literal("shotstack"),
750
887
  exclude: zod_1.z.optional(zod_1.z.boolean()),
751
- }).strict();
888
+ });
752
889
  exports.shotstackDestinationSchema = exports.shotstackDestinationShotstackDestinationSchema;
753
890
  /**
754
891
  * Pass additional options to control how TikTok publishes video.
@@ -759,14 +896,14 @@ exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema = zod_1.z.object(
759
896
  disableDuet: zod_1.z.optional(zod_1.z.boolean()).default(false),
760
897
  disableStitch: zod_1.z.optional(zod_1.z.boolean()).default(false),
761
898
  disableComment: zod_1.z.optional(zod_1.z.boolean()).default(false),
762
- }).strict();
899
+ });
763
900
  /**
764
901
  * Send videos to TikTok. TikTok credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/tiktok), not in the request.
765
902
  */
766
903
  exports.tiktokDestinationTiktokDestinationSchema = zod_1.z.object({
767
904
  provider: zod_1.z.literal("tiktok"),
768
905
  options: zod_1.z.optional(exports.tiktokDestinationOptionsTiktokDestinationOptionsSchema),
769
- }).strict();
906
+ });
770
907
  /**
771
908
  * Options to control the visibility of videos and privacy features.
772
909
  */
@@ -776,7 +913,7 @@ exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema = zod
776
913
  comments: zod_1.z.optional(zod_1.z.enum(["anybody", "nobody", "contacts"])),
777
914
  download: zod_1.z.optional(zod_1.z.boolean()),
778
915
  add: zod_1.z.optional(zod_1.z.boolean()),
779
- }).strict();
916
+ });
780
917
  exports.vimeoDestinationPrivacyOptionsSchema = exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema;
781
918
  /**
782
919
  * Pass additional options to control how Vimeo publishes video, including name, description and privacy settings.
@@ -786,7 +923,7 @@ exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema = zod_1.z.object({
786
923
  description: zod_1.z.optional(zod_1.z.string()),
787
924
  privacy: zod_1.z.optional(exports.vimeoDestinationPrivacyOptionsVimeoDestinationPrivacyOptionsSchema),
788
925
  folderUri: zod_1.z.optional(zod_1.z.string()),
789
- }).strict();
926
+ });
790
927
  exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema;
791
928
  /**
792
929
  * Send videos to [Vimeo](https://shotstack.io/docs/guide/serving-assets/destinations/vimeo/) video hosting and streaming service. Vimeo credentials are required and added via the [dashboard](https://dashboard.shotstack.io/integrations/vimeo), not in the request.
@@ -794,7 +931,7 @@ exports.vimeoDestinationOptionsSchema = exports.vimeoDestinationOptionsVimeoDest
794
931
  exports.vimeoDestinationVimeoDestinationSchema = zod_1.z.object({
795
932
  provider: zod_1.z.literal("vimeo"),
796
933
  options: zod_1.z.optional(exports.vimeoDestinationOptionsVimeoDestinationOptionsSchema),
797
- }).strict();
934
+ });
798
935
  exports.vimeoDestinationSchema = exports.vimeoDestinationVimeoDestinationSchema;
799
936
  /**
800
937
  * A destination is a location where assets can be sent to for serving or hosting. Videos, images and audio files that are rendered by the [Edit API](#shotstack-edit) and [source](#tocs_source) and [rendition](#tocs_rendition) files generated by the [Ingest API](#shotstack-ingest) can be sent to destinations. You can also fetch a file from any public URL and [transfer](#transfer-asset) it to a destination. A file can be sent to one or more destinations including 3rd party destinations.
@@ -817,14 +954,14 @@ exports.destinationsSchema = exports.destinationsDestinationsSchema;
817
954
  exports.fliptransformationFlipTransformationSchema = zod_1.z.object({
818
955
  horizontal: zod_1.z.optional(zod_1.z.boolean()),
819
956
  vertical: zod_1.z.optional(zod_1.z.boolean()),
820
- }).strict();
957
+ });
821
958
  exports.flipTransformationSchema = exports.fliptransformationFlipTransformationSchema;
822
959
  /**
823
960
  * Download a custom font to use with the HTML asset type, using the font name in the CSS or font tag. See our [custom fonts](https://shotstack.io/learn/html-custom-fonts/) getting started guide for more details.
824
961
  */
825
962
  exports.fontFontSchema = zod_1.z.object({
826
963
  src: zod_1.z.string(),
827
- }).strict();
964
+ });
828
965
  exports.fontSchema = exports.fontFontSchema;
829
966
  /**
830
967
  * **Notice: The HtmlAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
@@ -840,14 +977,20 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
840
977
  type: zod_1.z.enum(["html"]),
841
978
  html: zod_1.z.string(),
842
979
  css: zod_1.z.optional(zod_1.z.string()),
843
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
844
- return undefined; if (Array.isArray(v))
845
- return v; if (typeof v === 'string')
846
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
847
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
848
- return undefined; if (Array.isArray(v))
849
- return v; if (typeof v === 'string')
850
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
980
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
981
+ return undefined; if (Array.isArray(v))
982
+ return v; if (typeof v === 'string') {
983
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
984
+ return v;
985
+ return Number(v);
986
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
987
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
988
+ return undefined; if (Array.isArray(v))
989
+ return v; if (typeof v === 'string') {
990
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
991
+ return v;
992
+ return Number(v);
993
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
851
994
  background: zod_1.z.optional(zod_1.z.string()),
852
995
  position: zod_1.z.optional(zod_1.z.enum([
853
996
  "top",
@@ -860,16 +1003,16 @@ exports.htmlassetHtmlAssetSchema = zod_1.z.object({
860
1003
  "topLeft",
861
1004
  "center",
862
1005
  ])),
863
- }).strict();
1006
+ });
864
1007
  exports.htmlAssetSchema = exports.htmlassetHtmlAssetSchema;
865
1008
  /**
866
1009
  * The ImageAsset is used to create video from images to compose an image. The src must be a publicly accessible URL to an image resource such as a jpg or png file.
867
1010
  */
868
1011
  exports.imageassetImageAssetSchema = zod_1.z.object({
869
1012
  type: zod_1.z.enum(["image"]),
870
- src: zod_1.z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
1013
+ src: zod_1.z.string().min(1).regex(/\S/),
871
1014
  crop: zod_1.z.optional(exports.cropCropSchema),
872
- }).strict();
1015
+ });
873
1016
  exports.imageAssetSchema = exports.imageassetImageAssetSchema;
874
1017
  /**
875
1018
  * The ImageToVideoAsset lets you create a video from an image and a text prompt.
@@ -879,12 +1022,15 @@ exports.imagetovideoassetImageToVideoAssetSchema = zod_1.z.object({
879
1022
  src: zod_1.z.string().min(1),
880
1023
  prompt: zod_1.z.optional(zod_1.z.string()),
881
1024
  aspectRatio: zod_1.z.optional(zod_1.z.enum(["1:1", "4:3", "16:9", "9:16", "3:4", "21:9", "9:21"])),
882
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
883
- return undefined; if (Array.isArray(v))
884
- return v; if (typeof v === 'string')
885
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
1025
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1026
+ return undefined; if (Array.isArray(v))
1027
+ return v; if (typeof v === 'string') {
1028
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1029
+ return v;
1030
+ return Number(v);
1031
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
886
1032
  crop: zod_1.z.optional(exports.cropCropSchema),
887
- }).strict();
1033
+ });
888
1034
  exports.imageToVideoAssetSchema = exports.imagetovideoassetImageToVideoAssetSchema;
889
1035
  /**
890
1036
  * Options for the Dolby.io audio enhancement provider.
@@ -901,7 +1047,7 @@ exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema = zod_1.z.object({
901
1047
  "studio",
902
1048
  "voice_over",
903
1049
  ]),
904
- }).strict();
1050
+ });
905
1051
  exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema;
906
1052
  /**
907
1053
  * Dolby.io audio enhancement provider. Credentials are required and must be added via the [dashboard](https://dashboard.shotstack.io/integrations/dolby), not in the request.
@@ -909,7 +1055,7 @@ exports.dolbyEnhancementOptionsSchema = exports.dolbyEnhancementOptionsDolbyEnha
909
1055
  exports.dolbyEnhancementDolbyEnhancementSchema = zod_1.z.object({
910
1056
  provider: zod_1.z.string().default("dolby"),
911
1057
  options: exports.dolbyEnhancementOptionsDolbyEnhancementOptionsSchema,
912
- }).strict();
1058
+ });
913
1059
  exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
914
1060
  /**
915
1061
  * An audio enhancement that can be applied to the audio content of a rendition.
@@ -917,14 +1063,18 @@ exports.dolbyEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema;
917
1063
  * <li><a href="#tocs_dolbyenhancement">DolbyEnhancement</a></li>
918
1064
  * </ul>
919
1065
  */
920
- exports.audioEnhancementAudioEnhancementSchema = exports.dolbyEnhancementDolbyEnhancementSchema.extend({ enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement") }).strict();
1066
+ exports.audioEnhancementAudioEnhancementSchema = zod_1.z
1067
+ .object({
1068
+ enhancement: zod_1.z.literal("dolbyEnhancement_DolbyEnhancement"),
1069
+ })
1070
+ .and(exports.dolbyEnhancementDolbyEnhancementSchema);
921
1071
  exports.audioEnhancementSchema = exports.audioEnhancementAudioEnhancementSchema;
922
1072
  /**
923
1073
  * Enhancements that can be applied to a rendition. Currently only supports the Dolby audio enhancement.
924
1074
  */
925
1075
  exports.enhancementsEnhancementsSchema = zod_1.z.object({
926
1076
  audio: zod_1.z.optional(exports.audioEnhancementAudioEnhancementSchema),
927
- }).strict();
1077
+ });
928
1078
  exports.enhancementsSchema = exports.enhancementsEnhancementsSchema;
929
1079
  /**
930
1080
  * Individual errors returned by the Ingest API.
@@ -933,14 +1083,14 @@ exports.ingesterrorresponsedataIngestErrorResponseDataSchema = zod_1.z.object({
933
1083
  status: zod_1.z.string(),
934
1084
  title: zod_1.z.string(),
935
1085
  detail: zod_1.z.string(),
936
- }).strict();
1086
+ });
937
1087
  exports.ingestErrorResponseDataSchema = exports.ingesterrorresponsedataIngestErrorResponseDataSchema;
938
1088
  /**
939
1089
  * Error response data for validation and other errors returned by the Ingest API.
940
1090
  */
941
1091
  exports.ingesterrorresponseIngestErrorResponseSchema = zod_1.z.object({
942
1092
  errors: zod_1.z.array(exports.ingesterrorresponsedataIngestErrorResponseDataSchema),
943
- }).strict();
1093
+ });
944
1094
  exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorResponseSchema;
945
1095
  /**
946
1096
  * The type of resource (a source) and the newly created source id. Returned with [QueuedSourceResponse](#tocs_queuedsourceresponse).
@@ -948,14 +1098,14 @@ exports.ingestErrorResponseSchema = exports.ingesterrorresponseIngestErrorRespon
948
1098
  exports.queuedsourceresponsedataQueuedSourceResponseDataSchema = zod_1.z.object({
949
1099
  type: zod_1.z.string(),
950
1100
  id: zod_1.z.string(),
951
- }).strict();
1101
+ });
952
1102
  exports.queuedSourceResponseDataSchema = exports.queuedsourceresponsedataQueuedSourceResponseDataSchema;
953
1103
  /**
954
1104
  * The response returned by the Ingest API [fetch source](#fetch-source) request. Includes the id of the source file. The response follows the [json:api](https://jsonapi.org/) specification.
955
1105
  */
956
1106
  exports.queuedsourceresponseQueuedSourceResponseSchema = zod_1.z.object({
957
1107
  data: exports.queuedsourceresponsedataQueuedSourceResponseDataSchema,
958
- }).strict();
1108
+ });
959
1109
  exports.queuedSourceResponseSchema = exports.queuedsourceresponseQueuedSourceResponseSchema;
960
1110
  /**
961
1111
  * The id and attributes of the upload file including the signed URL to send the binary file data to.
@@ -964,7 +1114,7 @@ exports.uploadresponseattributesUploadResponseAttributesSchema = zod_1.z.object(
964
1114
  id: zod_1.z.string(),
965
1115
  url: zod_1.z.string(),
966
1116
  expires: zod_1.z.string(),
967
- }).strict();
1117
+ });
968
1118
  exports.uploadResponseAttributesSchema = exports.uploadresponseattributesUploadResponseAttributesSchema;
969
1119
  /**
970
1120
  * The type of resource (an upload), it's id and attributes of the upload request.
@@ -973,76 +1123,91 @@ exports.uploadresponsedataUploadResponseDataSchema = zod_1.z.object({
973
1123
  type: zod_1.z.string(),
974
1124
  id: zod_1.z.string(),
975
1125
  attributes: exports.uploadresponseattributesUploadResponseAttributesSchema,
976
- }).strict();
1126
+ });
977
1127
  exports.uploadResponseDataSchema = exports.uploadresponsedataUploadResponseDataSchema;
978
1128
  /**
979
1129
  * The response returned by the Ingest API [direct upload](#direct-upload) request. Includes the id of the file and the signed url to send the binary file to. The response follows the [json:api](https://jsonapi.org/) specification.
980
1130
  */
981
1131
  exports.uploadresponseUploadResponseSchema = zod_1.z.object({
982
1132
  data: exports.uploadresponsedataUploadResponseDataSchema,
983
- }).strict();
1133
+ });
984
1134
  exports.uploadResponseSchema = exports.uploadresponseUploadResponseSchema;
985
1135
  /**
986
1136
  * Set the playback speed of a video or audio file. Allows you to preserve the pitch of the audio so that it is sped up without sounding too high pitched or too low.
987
1137
  */
988
1138
  exports.speedSpeedSchema = zod_1.z.object({
989
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
990
- return undefined; if (Array.isArray(v))
991
- return v; if (typeof v === 'string')
992
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
1139
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1140
+ return undefined; if (Array.isArray(v))
1141
+ return v; if (typeof v === 'string') {
1142
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1143
+ return v;
1144
+ return Number(v);
1145
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
993
1146
  preservePitch: zod_1.z.optional(zod_1.z.boolean()),
994
- }).strict();
1147
+ });
995
1148
  exports.speedSchema = exports.speedSpeedSchema;
996
1149
  /**
997
1150
  * Generate a transcription of the audio in the video. The transcription can be output as a file in SRT or VTT format.
998
1151
  */
999
1152
  exports.transcriptionTranscriptionSchema = zod_1.z.object({
1000
1153
  format: zod_1.z.optional(zod_1.z.enum(["srt", "vtt"])),
1001
- }).strict();
1154
+ });
1002
1155
  exports.transcriptionSchema = exports.transcriptionTranscriptionSchema;
1003
1156
  /**
1004
1157
  * The LumaAsset is used to create luma matte masks, transitions and effects between other assets. A luma matte is a grey scale image or animated video where the black areas are transparent and the white areas solid. The luma matte animation should be provided as an mp4 video file. The src must be a publicly accessible URL to the file.
1005
1158
  */
1006
1159
  exports.lumaassetLumaAssetSchema = zod_1.z.object({
1007
1160
  type: zod_1.z.enum(["luma"]),
1008
- src: zod_1.z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
1009
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1010
- return undefined; if (Array.isArray(v))
1011
- return v; if (typeof v === 'string')
1012
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1013
- }).strict();
1161
+ src: zod_1.z.string().min(1).regex(/\S/),
1162
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1163
+ return undefined; if (Array.isArray(v))
1164
+ return v; if (typeof v === 'string') {
1165
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1166
+ return v;
1167
+ return Number(v);
1168
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1169
+ });
1014
1170
  exports.lumaAssetSchema = exports.lumaassetLumaAssetSchema;
1015
1171
  /**
1016
1172
  * A merge field consists of a key; `find`, and a value; `replace`. Merge fields can be used to replace placeholders within the JSON edit to create re-usable templates. Placeholders should be a string with double brace delimiters, i.e. `"{{NAME}}"`. A placeholder can be used for any value within the JSON edit.
1017
1173
  */
1018
1174
  exports.mergefieldMergeFieldSchema = zod_1.z.object({
1019
1175
  find: zod_1.z.string(),
1020
- replace: zod_1.z.union([zod_1.z.string(), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown())]),
1021
- }).strict();
1176
+ replace: zod_1.z.union([zod_1.z.string(), zod_1.z.number(), zod_1.z.boolean(), zod_1.z.null(), zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.array(zod_1.z.unknown())]),
1177
+ });
1022
1178
  exports.mergeFieldSchema = exports.mergefieldMergeFieldSchema;
1023
1179
  /**
1024
1180
  * Generate a poster image for the video at a specific point from the timeline. The poster image size will match the size of the output video.
1025
1181
  */
1026
1182
  exports.posterPosterSchema = zod_1.z.object({
1027
- capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1028
- return undefined; if (Array.isArray(v))
1029
- return v; if (typeof v === 'string')
1030
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
1031
- }).strict();
1183
+ capture: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1184
+ return undefined; if (Array.isArray(v))
1185
+ return v; if (typeof v === 'string') {
1186
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1187
+ return v;
1188
+ return Number(v);
1189
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1190
+ });
1032
1191
  exports.posterSchema = exports.posterPosterSchema;
1033
1192
  /**
1034
1193
  * Specify a time range to render, i.e. to render only a portion of a video or audio file. Omit this setting to export the entire video. Range can also be used to render a frame at a specific time point - setting a range and output format as `jpg` will output a single frame image at the range `start` point.
1035
1194
  */
1036
1195
  exports.rangeRangeSchema = zod_1.z.object({
1037
- start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1038
- return undefined; if (Array.isArray(v))
1039
- return v; if (typeof v === 'string')
1040
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))),
1041
- length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1042
- return undefined; if (Array.isArray(v))
1043
- return v; if (typeof v === 'string')
1044
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))),
1045
- }).strict();
1196
+ start: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1197
+ return undefined; if (Array.isArray(v))
1198
+ return v; if (typeof v === 'string') {
1199
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1200
+ return v;
1201
+ return Number(v);
1202
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1203
+ length: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1204
+ return undefined; if (Array.isArray(v))
1205
+ return v; if (typeof v === 'string') {
1206
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1207
+ return v;
1208
+ return Number(v);
1209
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1210
+ });
1046
1211
  exports.rangeSchema = exports.rangeRangeSchema;
1047
1212
  /**
1048
1213
  * The list of asset attributes and their values.
@@ -1058,7 +1223,7 @@ exports.assetresponseattributesAssetResponseAttributesSchema = zod_1.z.object({
1058
1223
  status: zod_1.z.enum(["importing", "ready", "failed", "deleted"]),
1059
1224
  created: zod_1.z.optional(zod_1.z.string()),
1060
1225
  updated: zod_1.z.optional(zod_1.z.string()),
1061
- }).strict();
1226
+ });
1062
1227
  exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResponseAttributesSchema;
1063
1228
  /**
1064
1229
  * The type of resource (an asset) and attributes of the asset.
@@ -1066,21 +1231,21 @@ exports.assetResponseAttributesSchema = exports.assetresponseattributesAssetResp
1066
1231
  exports.assetresponsedataAssetResponseDataSchema = zod_1.z.object({
1067
1232
  type: zod_1.z.string(),
1068
1233
  attributes: exports.assetresponseattributesAssetResponseAttributesSchema,
1069
- }).strict();
1234
+ });
1070
1235
  exports.assetResponseDataSchema = exports.assetresponsedataAssetResponseDataSchema;
1071
1236
  /**
1072
1237
  * The response returned by the Serve API [get asset by render id](#get-asset-by-render-id) request. The response is an array of asset resources, including video, image, audio, thumbnail and poster image. The response follows the [json:api](https://jsonapi.org/) specification.
1073
1238
  */
1074
1239
  exports.assetrenderresponseAssetRenderResponseSchema = zod_1.z.object({
1075
1240
  data: zod_1.z.array(exports.assetresponsedataAssetResponseDataSchema),
1076
- }).strict();
1241
+ });
1077
1242
  exports.assetRenderResponseSchema = exports.assetrenderresponseAssetRenderResponseSchema;
1078
1243
  /**
1079
1244
  * The response returned by the Serve API [get asset](#get-asset) request. Includes details of a hosted video, image, audio file, thumbnail or poster image. The response follows the [json:api](https://jsonapi.org/) specification.
1080
1245
  */
1081
1246
  exports.assetresponseAssetResponseSchema = zod_1.z.object({
1082
1247
  data: exports.assetresponsedataAssetResponseDataSchema,
1083
- }).strict();
1248
+ });
1084
1249
  exports.assetResponseSchema = exports.assetresponseAssetResponseSchema;
1085
1250
  /**
1086
1251
  * The response received after a [probe request](#inspect-media) is submitted. The probe requests returns data from FFprobe formatted as JSON.
@@ -1089,7 +1254,7 @@ exports.proberesponseProbeResponseSchema = zod_1.z.object({
1089
1254
  success: zod_1.z.boolean(),
1090
1255
  message: zod_1.z.string(),
1091
1256
  response: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
1092
- }).strict();
1257
+ });
1093
1258
  exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
1094
1259
  /**
1095
1260
  * The response data returned with the [QueuedResponse](#tocs_queuedresponse).
@@ -1097,7 +1262,7 @@ exports.probeResponseSchema = exports.proberesponseProbeResponseSchema;
1097
1262
  exports.queuedresponsedataQueuedResponseDataSchema = zod_1.z.object({
1098
1263
  message: zod_1.z.string(),
1099
1264
  id: zod_1.z.string(),
1100
- }).strict();
1265
+ });
1101
1266
  exports.queuedResponseDataSchema = exports.queuedresponsedataQueuedResponseDataSchema;
1102
1267
  /**
1103
1268
  * The response received after a [render request](#render-asset) or [template render](#render-template) is submitted. The render task is queued for rendering and a unique render id is returned.
@@ -1106,7 +1271,7 @@ exports.queuedresponseQueuedResponseSchema = zod_1.z.object({
1106
1271
  success: zod_1.z.boolean(),
1107
1272
  message: zod_1.z.string(),
1108
1273
  response: exports.queuedresponsedataQueuedResponseDataSchema,
1109
- }).strict();
1274
+ });
1110
1275
  exports.queuedResponseSchema = exports.queuedresponseQueuedResponseSchema;
1111
1276
  /**
1112
1277
  * The individual template item returned with the [TemplateListResponseData](#tocs_templatelistresponsedata) templates list.
@@ -1116,7 +1281,7 @@ exports.templatelistresponseitemTemplateListResponseItemSchema = zod_1.z.object(
1116
1281
  name: zod_1.z.string(),
1117
1282
  created: zod_1.z.optional(zod_1.z.string()),
1118
1283
  updated: zod_1.z.optional(zod_1.z.string()),
1119
- }).strict();
1284
+ });
1120
1285
  exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplateListResponseItemSchema;
1121
1286
  /**
1122
1287
  * The response data returned with the [TemplateListResponse](#tocs_templatelistresponse).
@@ -1124,7 +1289,7 @@ exports.templateListResponseItemSchema = exports.templatelistresponseitemTemplat
1124
1289
  exports.templatelistresponsedataTemplateListResponseDataSchema = zod_1.z.object({
1125
1290
  owner: zod_1.z.string(),
1126
1291
  templates: zod_1.z.array(exports.templatelistresponseitemTemplateListResponseItemSchema),
1127
- }).strict();
1292
+ });
1128
1293
  exports.templateListResponseDataSchema = exports.templatelistresponsedataTemplateListResponseDataSchema;
1129
1294
  /**
1130
1295
  * A list of previously saved templates.
@@ -1133,7 +1298,7 @@ exports.templatelistresponseTemplateListResponseSchema = zod_1.z.object({
1133
1298
  success: zod_1.z.boolean(),
1134
1299
  message: zod_1.z.string(),
1135
1300
  response: exports.templatelistresponsedataTemplateListResponseDataSchema,
1136
- }).strict();
1301
+ });
1137
1302
  exports.templateListResponseSchema = exports.templatelistresponseTemplateListResponseSchema;
1138
1303
  /**
1139
1304
  * The response data returned with the [TemplateResponse](#tocs_templateresponse).
@@ -1141,7 +1306,7 @@ exports.templateListResponseSchema = exports.templatelistresponseTemplateListRes
1141
1306
  exports.templateresponsedataTemplateResponseDataSchema = zod_1.z.object({
1142
1307
  message: zod_1.z.string(),
1143
1308
  id: zod_1.z.string(),
1144
- }).strict();
1309
+ });
1145
1310
  exports.templateResponseDataSchema = exports.templateresponsedataTemplateResponseDataSchema;
1146
1311
  /**
1147
1312
  * The response received after a [template](#create-template) is submitted. The template is saved and a unique template id is returned.
@@ -1150,7 +1315,7 @@ exports.templateresponseTemplateResponseSchema = zod_1.z.object({
1150
1315
  success: zod_1.z.boolean(),
1151
1316
  message: zod_1.z.string(),
1152
1317
  response: exports.templateresponsedataTemplateResponseDataSchema,
1153
- }).strict();
1318
+ });
1154
1319
  exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
1155
1320
  /**
1156
1321
  * Text alignment properties (horizontal and vertical).
@@ -1158,7 +1323,7 @@ exports.templateResponseSchema = exports.templateresponseTemplateResponseSchema;
1158
1323
  exports.richtextpropertiesRichTextAlignmentSchema = zod_1.z.object({
1159
1324
  horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
1160
1325
  vertical: zod_1.z.optional(zod_1.z.enum(["top", "middle", "bottom"])),
1161
- }).strict();
1326
+ });
1162
1327
  exports.richTextAlignmentSchema = exports.richtextpropertiesRichTextAlignmentSchema;
1163
1328
  /**
1164
1329
  * Animation properties for text entrance effects.
@@ -1172,161 +1337,227 @@ exports.richtextpropertiesRichTextAnimationSchema = zod_1.z.object({
1172
1337
  "shift",
1173
1338
  "movingLetters",
1174
1339
  ]),
1175
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1176
- return undefined; if (Array.isArray(v))
1177
- return v; if (typeof v === 'string')
1178
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30)))),
1340
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1341
+ return undefined; if (Array.isArray(v))
1342
+ return v; if (typeof v === 'string') {
1343
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1344
+ return v;
1345
+ return Number(v);
1346
+ } return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1179
1347
  style: zod_1.z.optional(zod_1.z.enum(["character", "word"])),
1180
1348
  direction: zod_1.z.optional(zod_1.z.enum(["left", "right", "up", "down"])),
1181
- }).strict();
1349
+ });
1182
1350
  exports.richTextAnimationSchema = exports.richtextpropertiesRichTextAnimationSchema;
1183
1351
  /**
1184
1352
  * Background styling properties for the text bounding box.
1185
1353
  */
1186
1354
  exports.richtextpropertiesRichTextBackgroundSchema = zod_1.z.object({
1187
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1188
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1189
- return undefined; if (Array.isArray(v))
1190
- return v; if (typeof v === 'string')
1191
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1192
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1193
- return undefined; if (Array.isArray(v))
1194
- return v; if (typeof v === 'string')
1195
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1196
- }).strict();
1355
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1356
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1357
+ return undefined; if (Array.isArray(v))
1358
+ return v; if (typeof v === 'string') {
1359
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1360
+ return v;
1361
+ return Number(v);
1362
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1363
+ borderRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1364
+ return undefined; if (Array.isArray(v))
1365
+ return v; if (typeof v === 'string') {
1366
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1367
+ return v;
1368
+ return Number(v);
1369
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1370
+ });
1197
1371
  exports.richTextBackgroundSchema = exports.richtextpropertiesRichTextBackgroundSchema;
1198
1372
  /**
1199
1373
  * Border styling properties for the text bounding box.
1200
1374
  */
1201
1375
  exports.richtextpropertiesRichTextBorderSchema = zod_1.z.object({
1202
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1203
- return undefined; if (Array.isArray(v))
1204
- return v; if (typeof v === 'string')
1205
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1206
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1207
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1208
- return undefined; if (Array.isArray(v))
1209
- return v; if (typeof v === 'string')
1210
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1211
- radius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1212
- return undefined; if (Array.isArray(v))
1213
- return v; if (typeof v === 'string')
1214
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1215
- }).strict();
1376
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1377
+ return undefined; if (Array.isArray(v))
1378
+ return v; if (typeof v === 'string') {
1379
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1380
+ return v;
1381
+ return Number(v);
1382
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1383
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1384
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1385
+ return undefined; if (Array.isArray(v))
1386
+ return v; if (typeof v === 'string') {
1387
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1388
+ return v;
1389
+ return Number(v);
1390
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1391
+ radius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1392
+ return undefined; if (Array.isArray(v))
1393
+ return v; if (typeof v === 'string') {
1394
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1395
+ return v;
1396
+ return Number(v);
1397
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1398
+ });
1216
1399
  /**
1217
1400
  * Gradient properties for text fill.
1218
1401
  */
1219
1402
  exports.richtextpropertiesRichTextGradientSchema = zod_1.z.object({
1220
1403
  type: zod_1.z.optional(zod_1.z.enum(["linear", "radial"])),
1221
- angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1222
- return undefined; if (Array.isArray(v))
1223
- return v; if (typeof v === 'string')
1224
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(360)))).default(0),
1404
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1405
+ return undefined; if (Array.isArray(v))
1406
+ return v; if (typeof v === 'string') {
1407
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1408
+ return v;
1409
+ return Number(v);
1410
+ } return v; }), zod_1.z.number().gte(0).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1225
1411
  stops: zod_1.z
1226
1412
  .array(zod_1.z.object({
1227
- offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1228
- return undefined; if (Array.isArray(v))
1229
- return v; if (typeof v === 'string')
1230
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
1231
- color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1413
+ offset: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1414
+ return undefined; if (Array.isArray(v))
1415
+ return v; if (typeof v === 'string') {
1416
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1417
+ return v;
1418
+ return Number(v);
1419
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1420
+ color: zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1232
1421
  }))
1233
1422
  .min(2),
1234
- }).strict();
1423
+ });
1235
1424
  exports.richTextGradientSchema = exports.richtextpropertiesRichTextGradientSchema;
1236
1425
  /**
1237
1426
  * Padding properties for individual sides of the text bounding box.
1238
1427
  */
1239
1428
  exports.richtextpropertiesRichTextPaddingSchema = zod_1.z.object({
1240
- top: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1241
- return undefined; if (Array.isArray(v))
1242
- return v; if (typeof v === 'string')
1243
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1244
- right: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1245
- return undefined; if (Array.isArray(v))
1246
- return v; if (typeof v === 'string')
1247
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1248
- bottom: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1249
- return undefined; if (Array.isArray(v))
1250
- return v; if (typeof v === 'string')
1251
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1252
- left: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1253
- return undefined; if (Array.isArray(v))
1254
- return v; if (typeof v === 'string')
1255
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1256
- }).strict();
1429
+ top: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1430
+ return undefined; if (Array.isArray(v))
1431
+ return v; if (typeof v === 'string') {
1432
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1433
+ return v;
1434
+ return Number(v);
1435
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1436
+ right: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1437
+ return undefined; if (Array.isArray(v))
1438
+ return v; if (typeof v === 'string') {
1439
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1440
+ return v;
1441
+ return Number(v);
1442
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1443
+ bottom: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1444
+ return undefined; if (Array.isArray(v))
1445
+ return v; if (typeof v === 'string') {
1446
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1447
+ return v;
1448
+ return Number(v);
1449
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1450
+ left: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1451
+ return undefined; if (Array.isArray(v))
1452
+ return v; if (typeof v === 'string') {
1453
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1454
+ return v;
1455
+ return Number(v);
1456
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1457
+ });
1257
1458
  /**
1258
1459
  * Text shadow properties.
1259
1460
  */
1260
1461
  exports.richtextpropertiesRichTextShadowSchema = zod_1.z.object({
1261
- offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1262
- return undefined; if (Array.isArray(v))
1263
- return v; if (typeof v === 'string')
1264
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1265
- offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1266
- return undefined; if (Array.isArray(v))
1267
- return v; if (typeof v === 'string')
1268
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1269
- blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1270
- return undefined; if (Array.isArray(v))
1271
- return v; if (typeof v === 'string')
1272
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1273
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1274
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1275
- return undefined; if (Array.isArray(v))
1276
- return v; if (typeof v === 'string')
1277
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1278
- }).strict();
1462
+ offsetX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1463
+ return undefined; if (Array.isArray(v))
1464
+ return v; if (typeof v === 'string') {
1465
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1466
+ return v;
1467
+ return Number(v);
1468
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1469
+ offsetY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1470
+ return undefined; if (Array.isArray(v))
1471
+ return v; if (typeof v === 'string') {
1472
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1473
+ return v;
1474
+ return Number(v);
1475
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1476
+ blur: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1477
+ return undefined; if (Array.isArray(v))
1478
+ return v; if (typeof v === 'string') {
1479
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1480
+ return v;
1481
+ return Number(v);
1482
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1483
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1484
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1485
+ return undefined; if (Array.isArray(v))
1486
+ return v; if (typeof v === 'string') {
1487
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1488
+ return v;
1489
+ return Number(v);
1490
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
1491
+ });
1279
1492
  exports.richTextShadowSchema = exports.richtextpropertiesRichTextShadowSchema;
1280
1493
  /**
1281
1494
  * Text stroke (outline) properties.
1282
1495
  */
1283
1496
  exports.richtextpropertiesRichTextStrokeSchema = zod_1.z.object({
1284
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1285
- return undefined; if (Array.isArray(v))
1286
- return v; if (typeof v === 'string')
1287
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1288
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1289
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1290
- return undefined; if (Array.isArray(v))
1291
- return v; if (typeof v === 'string')
1292
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1293
- }).strict();
1497
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1498
+ return undefined; if (Array.isArray(v))
1499
+ return v; if (typeof v === 'string') {
1500
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1501
+ return v;
1502
+ return Number(v);
1503
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1504
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
1505
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1506
+ return undefined; if (Array.isArray(v))
1507
+ return v; if (typeof v === 'string') {
1508
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1509
+ return v;
1510
+ return Number(v);
1511
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1512
+ });
1294
1513
  exports.richTextStrokeSchema = exports.richtextpropertiesRichTextStrokeSchema;
1295
1514
  /**
1296
1515
  * Font properties for rich text.
1297
1516
  */
1298
1517
  exports.richtextpropertiesRichTextFontSchema = zod_1.z.object({
1299
1518
  family: zod_1.z.optional(zod_1.z.string()).default("Open Sans"),
1300
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1301
- return undefined; if (Array.isArray(v))
1302
- return v; if (typeof v === 'string')
1303
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(500)))).default(24),
1519
+ size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1520
+ return undefined; if (Array.isArray(v))
1521
+ return v; if (typeof v === 'string') {
1522
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1523
+ return v;
1524
+ return Number(v);
1525
+ } return v; }), zod_1.z.number().int().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
1304
1526
  weight: zod_1.z.optional(zod_1.z.unknown()).default("400"),
1305
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),
1306
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1307
- return undefined; if (Array.isArray(v))
1308
- return v; if (typeof v === 'string')
1309
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1310
- background: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
1527
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
1528
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1529
+ return undefined; if (Array.isArray(v))
1530
+ return v; if (typeof v === 'string') {
1531
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1532
+ return v;
1533
+ return Number(v);
1534
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1535
+ background: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1311
1536
  stroke: zod_1.z.optional(exports.richtextpropertiesRichTextStrokeSchema),
1312
- }).strict();
1537
+ });
1313
1538
  exports.richTextFontSchema = exports.richtextpropertiesRichTextFontSchema;
1314
1539
  /**
1315
1540
  * Text style properties including spacing, line height, and transformations.
1316
1541
  */
1317
1542
  exports.richtextpropertiesRichTextStyleSchema = zod_1.z.object({
1318
- letterSpacing: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1319
- return undefined; if (Array.isArray(v))
1320
- return v; if (typeof v === 'string')
1321
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1322
- lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1323
- return undefined; if (Array.isArray(v))
1324
- return v; if (typeof v === 'string')
1325
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))).default(1.2),
1543
+ letterSpacing: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1544
+ return undefined; if (Array.isArray(v))
1545
+ return v; if (typeof v === 'string') {
1546
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1547
+ return v;
1548
+ return Number(v);
1549
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1550
+ lineHeight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1551
+ return undefined; if (Array.isArray(v))
1552
+ return v; if (typeof v === 'string') {
1553
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1554
+ return v;
1555
+ return Number(v);
1556
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),
1326
1557
  textTransform: zod_1.z.optional(zod_1.z.enum(["none", "uppercase", "lowercase", "capitalize"])),
1327
1558
  textDecoration: zod_1.z.optional(zod_1.z.enum(["none", "underline", "line-through"])),
1328
1559
  gradient: zod_1.z.optional(exports.richtextpropertiesRichTextGradientSchema),
1329
- }).strict();
1560
+ });
1330
1561
  exports.richTextStyleSchema = exports.richtextpropertiesRichTextStyleSchema;
1331
1562
  /**
1332
1563
  * The RichTextAsset provides advanced text rendering with support for custom fonts, gradients, shadows, strokes,
@@ -1342,13 +1573,16 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
1342
1573
  shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
1343
1574
  background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
1344
1575
  border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
1345
- padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1346
- return undefined; if (Array.isArray(v))
1347
- return v; if (typeof v === 'string')
1348
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))), exports.richtextpropertiesRichTextPaddingSchema])),
1576
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1577
+ return undefined; if (Array.isArray(v))
1578
+ return v; if (typeof v === 'string') {
1579
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1580
+ return v;
1581
+ return Number(v);
1582
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), exports.richtextpropertiesRichTextPaddingSchema])),
1349
1583
  align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
1350
1584
  animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema),
1351
- }).strict();
1585
+ });
1352
1586
  exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
1353
1587
  /**
1354
1588
  * The transfer request attributes inlcudling the user specified ID and status. Returned with [TransferResponseData](#tocs_transferresponsedata).
@@ -1358,7 +1592,7 @@ exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.obj
1358
1592
  owner: zod_1.z.optional(zod_1.z.string()),
1359
1593
  status: zod_1.z.optional(zod_1.z.enum(["queued", "failed"])),
1360
1594
  created: zod_1.z.optional(zod_1.z.string()),
1361
- }).strict();
1595
+ });
1362
1596
  exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
1363
1597
  /**
1364
1598
  * The type of resource (an asset) and the transfer attributes. Returned with [TransferResponse](#tocs_transferresponse).
@@ -1366,14 +1600,14 @@ exports.transferResponseAttributesSchema = exports.transferresponseattributesTra
1366
1600
  exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
1367
1601
  type: zod_1.z.optional(zod_1.z.string()),
1368
1602
  attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema),
1369
- }).strict();
1603
+ });
1370
1604
  exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
1371
1605
  /**
1372
1606
  * The response returned by the Serve API [transfer asset](#transfer-asset) request. The response includes the ID and transfer status. The response follows the [json:api](https://jsonapi.org/) specification.
1373
1607
  */
1374
1608
  exports.transferresponseTransferResponseSchema = zod_1.z.object({
1375
1609
  data: exports.transferresponsedataTransferResponseDataSchema,
1376
- }).strict();
1610
+ });
1377
1611
  exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
1378
1612
  /**
1379
1613
  * The asset URL to fetch and transfer to a destination.
@@ -1382,7 +1616,7 @@ exports.transferTransferSchema = zod_1.z.object({
1382
1616
  url: zod_1.z.string(),
1383
1617
  id: zod_1.z.string(),
1384
1618
  destinations: zod_1.z.array(exports.destinationsDestinationsSchema),
1385
- }).strict();
1619
+ });
1386
1620
  exports.transferSchema = exports.transferTransferSchema;
1387
1621
  /**
1388
1622
  * The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.
@@ -1392,73 +1626,109 @@ exports.transferSchema = exports.transferTransferSchema;
1392
1626
  exports.shapeassetShapeAssetSchema = zod_1.z.object({
1393
1627
  type: zod_1.z.enum(["shape"]),
1394
1628
  shape: zod_1.z.enum(["rectangle", "circle", "line"]),
1395
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1396
- return undefined; if (Array.isArray(v))
1397
- return v; if (typeof v === 'string')
1398
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1399
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1400
- return undefined; if (Array.isArray(v))
1401
- return v; if (typeof v === 'string')
1402
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1629
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1630
+ return undefined; if (Array.isArray(v))
1631
+ return v; if (typeof v === 'string') {
1632
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1633
+ return v;
1634
+ return Number(v);
1635
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1636
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1637
+ return undefined; if (Array.isArray(v))
1638
+ return v; if (typeof v === 'string') {
1639
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1640
+ return v;
1641
+ return Number(v);
1642
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1403
1643
  fill: zod_1.z.optional(zod_1.z.object({
1404
1644
  color: zod_1.z.optional(zod_1.z.string()),
1405
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1406
- return undefined; if (Array.isArray(v))
1407
- return v; if (typeof v === 'string')
1408
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1645
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1646
+ return undefined; if (Array.isArray(v))
1647
+ return v; if (typeof v === 'string') {
1648
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1649
+ return v;
1650
+ return Number(v);
1651
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1409
1652
  })),
1410
1653
  stroke: zod_1.z.optional(zod_1.z.object({
1411
1654
  color: zod_1.z.optional(zod_1.z.string()),
1412
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1413
- return undefined; if (Array.isArray(v))
1414
- return v; if (typeof v === 'string')
1415
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1655
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1656
+ return undefined; if (Array.isArray(v))
1657
+ return v; if (typeof v === 'string') {
1658
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1659
+ return v;
1660
+ return Number(v);
1661
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1416
1662
  })),
1417
1663
  rectangle: zod_1.z.optional(zod_1.z.object({
1418
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1419
- return undefined; if (Array.isArray(v))
1420
- return v; if (typeof v === 'string')
1421
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1422
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1423
- return undefined; if (Array.isArray(v))
1424
- return v; if (typeof v === 'string')
1425
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1426
- cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1427
- return undefined; if (Array.isArray(v))
1428
- return v; if (typeof v === 'string')
1429
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1664
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1665
+ return undefined; if (Array.isArray(v))
1666
+ return v; if (typeof v === 'string') {
1667
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1668
+ return v;
1669
+ return Number(v);
1670
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1671
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1672
+ return undefined; if (Array.isArray(v))
1673
+ return v; if (typeof v === 'string') {
1674
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1675
+ return v;
1676
+ return Number(v);
1677
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1678
+ cornerRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1679
+ return undefined; if (Array.isArray(v))
1680
+ return v; if (typeof v === 'string') {
1681
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1682
+ return v;
1683
+ return Number(v);
1684
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1430
1685
  })),
1431
1686
  circle: zod_1.z.optional(zod_1.z.object({
1432
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1433
- return undefined; if (Array.isArray(v))
1434
- return v; if (typeof v === 'string')
1435
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1687
+ radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1688
+ return undefined; if (Array.isArray(v))
1689
+ return v; if (typeof v === 'string') {
1690
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1691
+ return v;
1692
+ return Number(v);
1693
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1436
1694
  })),
1437
1695
  line: zod_1.z.optional(zod_1.z.object({
1438
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1439
- return undefined; if (Array.isArray(v))
1440
- return v; if (typeof v === 'string')
1441
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1442
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1443
- return undefined; if (Array.isArray(v))
1444
- return v; if (typeof v === 'string')
1445
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int())),
1696
+ length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1697
+ return undefined; if (Array.isArray(v))
1698
+ return v; if (typeof v === 'string') {
1699
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1700
+ return v;
1701
+ return Number(v);
1702
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1703
+ thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1704
+ return undefined; if (Array.isArray(v))
1705
+ return v; if (typeof v === 'string') {
1706
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1707
+ return v;
1708
+ return Number(v);
1709
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1446
1710
  })),
1447
- }).strict();
1711
+ });
1448
1712
  exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
1449
1713
  /**
1450
1714
  * Set a custom size for a video or image in pixels. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications.
1451
1715
  */
1452
1716
  exports.sizeSizeSchema = zod_1.z.object({
1453
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1454
- return undefined; if (Array.isArray(v))
1455
- return v; if (typeof v === 'string')
1456
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
1457
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1458
- return undefined; if (Array.isArray(v))
1459
- return v; if (typeof v === 'string')
1460
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096)))),
1461
- }).strict();
1717
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1718
+ return undefined; if (Array.isArray(v))
1719
+ return v; if (typeof v === 'string') {
1720
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1721
+ return v;
1722
+ return Number(v);
1723
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1724
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1725
+ return undefined; if (Array.isArray(v))
1726
+ return v; if (typeof v === 'string') {
1727
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1728
+ return v;
1729
+ return Number(v);
1730
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1731
+ });
1462
1732
  exports.sizeSchema = exports.sizeSizeSchema;
1463
1733
  /**
1464
1734
  * A rendition is a new output file that is generated from the source. The rendition can be encoded to a different format and have transformations applied to it such as resizing, cropping, etc...
@@ -1484,10 +1754,13 @@ exports.renditionRenditionSchema = zod_1.z.object({
1484
1754
  size: zod_1.z.optional(exports.sizeSizeSchema),
1485
1755
  fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop"])),
1486
1756
  resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1487
- quality: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1488
- return undefined; if (Array.isArray(v))
1489
- return v; if (typeof v === 'string')
1490
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(100)))),
1757
+ quality: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1758
+ return undefined; if (Array.isArray(v))
1759
+ return v; if (typeof v === 'string') {
1760
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1761
+ return v;
1762
+ return Number(v);
1763
+ } return v; }), zod_1.z.number().int().gte(1).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1491
1764
  fps: zod_1.z.optional(zod_1.z.union([
1492
1765
  zod_1.z.literal(12),
1493
1766
  zod_1.z.literal(15),
@@ -1502,15 +1775,18 @@ exports.renditionRenditionSchema = zod_1.z.object({
1502
1775
  zod_1.z.literal(60),
1503
1776
  ])),
1504
1777
  speed: zod_1.z.optional(exports.speedSpeedSchema),
1505
- keyframeInterval: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1506
- return undefined; if (Array.isArray(v))
1507
- return v; if (typeof v === 'string')
1508
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(300)))),
1778
+ keyframeInterval: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1779
+ return undefined; if (Array.isArray(v))
1780
+ return v; if (typeof v === 'string') {
1781
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1782
+ return v;
1783
+ return Number(v);
1784
+ } return v; }), zod_1.z.number().int().gte(1).lte(300)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1509
1785
  fixOffset: zod_1.z.optional(zod_1.z.boolean()),
1510
1786
  fixRotation: zod_1.z.optional(zod_1.z.boolean()),
1511
1787
  enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
1512
1788
  filename: zod_1.z.optional(zod_1.z.string()),
1513
- }).strict();
1789
+ });
1514
1790
  exports.renditionSchema = exports.renditionRenditionSchema;
1515
1791
  /**
1516
1792
  * The output renditions and transformations that should be generated from the source file.
@@ -1518,7 +1794,7 @@ exports.renditionSchema = exports.renditionRenditionSchema;
1518
1794
  exports.outputsOutputsSchema = zod_1.z.object({
1519
1795
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
1520
1796
  transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema),
1521
- }).strict();
1797
+ });
1522
1798
  exports.outputsSchema = exports.outputsOutputsSchema;
1523
1799
  /**
1524
1800
  * The id and attributes of the generated rendition file.
@@ -1534,35 +1810,50 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
1534
1810
  "overwritten",
1535
1811
  ])),
1536
1812
  url: zod_1.z.optional(zod_1.z.string()),
1537
- executionTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1538
- return undefined; if (Array.isArray(v))
1539
- return v; if (typeof v === 'string')
1540
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1813
+ executionTime: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1814
+ return undefined; if (Array.isArray(v))
1815
+ return v; if (typeof v === 'string') {
1816
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1817
+ return v;
1818
+ return Number(v);
1819
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1541
1820
  transformation: zod_1.z.optional(exports.renditionRenditionSchema),
1542
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1543
- return undefined; if (Array.isArray(v))
1544
- return v; if (typeof v === 'string')
1545
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1546
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1547
- return undefined; if (Array.isArray(v))
1548
- return v; if (typeof v === 'string')
1549
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1550
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1551
- return undefined; if (Array.isArray(v))
1552
- return v; if (typeof v === 'string')
1553
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1554
- fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1555
- return undefined; if (Array.isArray(v))
1556
- return v; if (typeof v === 'string')
1557
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1558
- }).strict();
1821
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1822
+ return undefined; if (Array.isArray(v))
1823
+ return v; if (typeof v === 'string') {
1824
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1825
+ return v;
1826
+ return Number(v);
1827
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1828
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1829
+ return undefined; if (Array.isArray(v))
1830
+ return v; if (typeof v === 'string') {
1831
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1832
+ return v;
1833
+ return Number(v);
1834
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1835
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1836
+ return undefined; if (Array.isArray(v))
1837
+ return v; if (typeof v === 'string') {
1838
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1839
+ return v;
1840
+ return Number(v);
1841
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1842
+ fps: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1843
+ return undefined; if (Array.isArray(v))
1844
+ return v; if (typeof v === 'string') {
1845
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1846
+ return v;
1847
+ return Number(v);
1848
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1849
+ });
1559
1850
  exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
1560
1851
  /**
1561
1852
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1562
1853
  */
1563
1854
  exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
1564
1855
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema)),
1565
- }).strict();
1856
+ });
1566
1857
  exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
1567
1858
  /**
1568
1859
  * The id and attributes of the source file.
@@ -1581,25 +1872,37 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1581
1872
  "overwritten",
1582
1873
  ])),
1583
1874
  outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
1584
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1585
- return undefined; if (Array.isArray(v))
1586
- return v; if (typeof v === 'string')
1587
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1588
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1589
- return undefined; if (Array.isArray(v))
1590
- return v; if (typeof v === 'string')
1591
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
1592
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1593
- return undefined; if (Array.isArray(v))
1594
- return v; if (typeof v === 'string')
1595
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1596
- fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1597
- return undefined; if (Array.isArray(v))
1598
- return v; if (typeof v === 'string')
1599
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1875
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1876
+ return undefined; if (Array.isArray(v))
1877
+ return v; if (typeof v === 'string') {
1878
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1879
+ return v;
1880
+ return Number(v);
1881
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1882
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1883
+ return undefined; if (Array.isArray(v))
1884
+ return v; if (typeof v === 'string') {
1885
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1886
+ return v;
1887
+ return Number(v);
1888
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1889
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1890
+ return undefined; if (Array.isArray(v))
1891
+ return v; if (typeof v === 'string') {
1892
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1893
+ return v;
1894
+ return Number(v);
1895
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1896
+ fps: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1897
+ return undefined; if (Array.isArray(v))
1898
+ return v; if (typeof v === 'string') {
1899
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1900
+ return v;
1901
+ return Number(v);
1902
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1600
1903
  created: zod_1.z.optional(zod_1.z.string()),
1601
1904
  updated: zod_1.z.optional(zod_1.z.string()),
1602
- }).strict();
1905
+ });
1603
1906
  exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
1604
1907
  /**
1605
1908
  * The type of resource (a source), it's id and attributes of the source file.
@@ -1608,21 +1911,21 @@ exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
1608
1911
  type: zod_1.z.string(),
1609
1912
  id: zod_1.z.string(),
1610
1913
  attributes: exports.sourceresponseattributesSourceResponseAttributesSchema,
1611
- }).strict();
1914
+ });
1612
1915
  exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
1613
1916
  /**
1614
1917
  * A list of all ingested source files fetched or uploaded to a users account.
1615
1918
  */
1616
1919
  exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
1617
1920
  data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema),
1618
- }).strict();
1921
+ });
1619
1922
  exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
1620
1923
  /**
1621
1924
  * The response returned by the Ingest API [get source](#get-source) request. Includes details of the ingested source file. The response follows the [json:api](https://jsonapi.org/) specification.
1622
1925
  */
1623
1926
  exports.sourceresponseSourceResponseSchema = zod_1.z.object({
1624
1927
  data: exports.sourceresponsedataSourceResponseDataSchema,
1625
- }).strict();
1928
+ });
1626
1929
  exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
1627
1930
  /**
1628
1931
  * The details of the file to be ingested and any transformations to be applied. Once the source file has been ingested, new renditions can be created from it. The renditions are specified in the **outputs** property.
@@ -1633,7 +1936,7 @@ exports.sourceSourceSchema = zod_1.z.object({
1633
1936
  outputs: zod_1.z.optional(exports.outputsOutputsSchema),
1634
1937
  destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
1635
1938
  callback: zod_1.z.optional(zod_1.z.string()),
1636
- }).strict();
1939
+ });
1637
1940
  exports.sourceSchema = exports.sourceSourceSchema;
1638
1941
  /**
1639
1942
  * A music or audio file in mp3 format that plays for the duration of the rendered video or the length of the audio file, which ever is shortest.
@@ -1641,11 +1944,14 @@ exports.sourceSchema = exports.sourceSourceSchema;
1641
1944
  exports.soundtrackSoundtrackSchema = zod_1.z.object({
1642
1945
  src: zod_1.z.string().min(1).regex(/\S/),
1643
1946
  effect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1644
- volume: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1645
- return undefined; if (Array.isArray(v))
1646
- return v; if (typeof v === 'string')
1647
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
1648
- }).strict();
1947
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1948
+ return undefined; if (Array.isArray(v))
1949
+ return v; if (typeof v === 'string') {
1950
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1951
+ return v;
1952
+ return Number(v);
1953
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1954
+ });
1649
1955
  exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1650
1956
  /**
1651
1957
  * A color stop in a gradient. Each stop defines a color at a specific position
@@ -1653,12 +1959,15 @@ exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1653
1959
  *
1654
1960
  */
1655
1961
  exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
1656
- offset: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1657
- return undefined; if (Array.isArray(v))
1658
- return v; if (typeof v === 'string')
1659
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
1660
- color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1661
- }).strict();
1962
+ offset: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1963
+ return undefined; if (Array.isArray(v))
1964
+ return v; if (typeof v === 'string') {
1965
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1966
+ return v;
1967
+ return Number(v);
1968
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1969
+ color: zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1970
+ });
1662
1971
  exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1663
1972
  /**
1664
1973
  * A linear gradient fill that transitions colors along a straight line.
@@ -1667,16 +1976,22 @@ exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1667
1976
  */
1668
1977
  exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
1669
1978
  type: zod_1.z.enum(["linear"]),
1670
- angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1671
- return undefined; if (Array.isArray(v))
1672
- return v; if (typeof v === 'string')
1673
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(360)))).default(0),
1979
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1980
+ return undefined; if (Array.isArray(v))
1981
+ return v; if (typeof v === 'string') {
1982
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1983
+ return v;
1984
+ return Number(v);
1985
+ } return v; }), zod_1.z.number().gte(0).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1674
1986
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1675
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1676
- return undefined; if (Array.isArray(v))
1677
- return v; if (typeof v === 'string')
1678
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1679
- }).strict();
1987
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1988
+ return undefined; if (Array.isArray(v))
1989
+ return v; if (typeof v === 'string') {
1990
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1991
+ return v;
1992
+ return Number(v);
1993
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1994
+ });
1680
1995
  exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
1681
1996
  /**
1682
1997
  * A radial gradient fill that transitions colors radiating outward from a center point.
@@ -1686,35 +2001,50 @@ exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFill
1686
2001
  exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
1687
2002
  type: zod_1.z.enum(["radial"]),
1688
2003
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1689
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1690
- return undefined; if (Array.isArray(v))
1691
- return v; if (typeof v === 'string')
1692
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1693
- }).strict();
2004
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2005
+ return undefined; if (Array.isArray(v))
2006
+ return v; if (typeof v === 'string') {
2007
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2008
+ return v;
2009
+ return Number(v);
2010
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2011
+ });
1694
2012
  exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
1695
2013
  /**
1696
2014
  * Drop shadow properties for SVG shapes. Creates a shadow effect behind the shape.
1697
2015
  *
1698
2016
  */
1699
2017
  exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
1700
- offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1701
- return undefined; if (Array.isArray(v))
1702
- return v; if (typeof v === 'string')
1703
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1704
- offsetY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1705
- return undefined; if (Array.isArray(v))
1706
- return v; if (typeof v === 'string')
1707
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1708
- blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1709
- return undefined; if (Array.isArray(v))
1710
- return v; if (typeof v === 'string')
1711
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))).default(0),
1712
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1713
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1714
- return undefined; if (Array.isArray(v))
1715
- return v; if (typeof v === 'string')
1716
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1717
- }).strict();
2018
+ offsetX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2019
+ return undefined; if (Array.isArray(v))
2020
+ return v; if (typeof v === 'string') {
2021
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2022
+ return v;
2023
+ return Number(v);
2024
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2025
+ offsetY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2026
+ return undefined; if (Array.isArray(v))
2027
+ return v; if (typeof v === 'string') {
2028
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2029
+ return v;
2030
+ return Number(v);
2031
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2032
+ blur: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2033
+ return undefined; if (Array.isArray(v))
2034
+ return v; if (typeof v === 'string') {
2035
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2036
+ return v;
2037
+ return Number(v);
2038
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2039
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2040
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2041
+ return undefined; if (Array.isArray(v))
2042
+ return v; if (typeof v === 'string') {
2043
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2044
+ return v;
2045
+ return Number(v);
2046
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2047
+ });
1718
2048
  exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
1719
2049
  /**
1720
2050
  * A solid color fill for SVG shapes.
@@ -1725,11 +2055,14 @@ exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
1725
2055
  .string()
1726
2056
  .regex(/^#[A-Fa-f0-9]{6}$/)
1727
2057
  .default("#000000"),
1728
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1729
- return undefined; if (Array.isArray(v))
1730
- return v; if (typeof v === 'string')
1731
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
1732
- }).strict();
2058
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2059
+ return undefined; if (Array.isArray(v))
2060
+ return v; if (typeof v === 'string') {
2061
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2062
+ return v;
2063
+ return Number(v);
2064
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2065
+ });
1733
2066
  exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
1734
2067
  /**
1735
2068
  * Fill properties for SVG shapes. Supports solid colors and gradients.
@@ -1748,57 +2081,87 @@ exports.svgFillSchema = exports.svgpropertiesSvgFillSchema;
1748
2081
  *
1749
2082
  */
1750
2083
  exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1751
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1752
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1753
- return undefined; if (Array.isArray(v))
1754
- return v; if (typeof v === 'string')
1755
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(100)))).default(1),
1756
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1757
- return undefined; if (Array.isArray(v))
1758
- return v; if (typeof v === 'string')
1759
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(1),
2084
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
2085
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2086
+ return undefined; if (Array.isArray(v))
2087
+ return v; if (typeof v === 'string') {
2088
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2089
+ return v;
2090
+ return Number(v);
2091
+ } return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2092
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2093
+ return undefined; if (Array.isArray(v))
2094
+ return v; if (typeof v === 'string') {
2095
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2096
+ return v;
2097
+ return Number(v);
2098
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1760
2099
  lineCap: zod_1.z.optional(zod_1.z.enum(["butt", "round", "square"])),
1761
2100
  lineJoin: zod_1.z.optional(zod_1.z.enum(["miter", "round", "bevel"])),
1762
- dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1763
- return undefined; if (Array.isArray(v))
1764
- return v; if (typeof v === 'string')
1765
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))))),
1766
- dashOffset: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1767
- return undefined; if (Array.isArray(v))
1768
- return v; if (typeof v === 'string')
1769
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1770
- }).strict();
2101
+ dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2102
+ return undefined; if (Array.isArray(v))
2103
+ return v; if (typeof v === 'string') {
2104
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2105
+ return v;
2106
+ return Number(v);
2107
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),
2108
+ dashOffset: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2109
+ return undefined; if (Array.isArray(v))
2110
+ return v; if (typeof v === 'string') {
2111
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2112
+ return v;
2113
+ return Number(v);
2114
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2115
+ });
1771
2116
  exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
1772
2117
  /**
1773
2118
  * Transformation properties for positioning, rotating, and scaling SVG shapes.
1774
2119
  *
1775
2120
  */
1776
2121
  exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
1777
- x: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1778
- return undefined; if (Array.isArray(v))
1779
- return v; if (typeof v === 'string')
1780
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1781
- y: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1782
- return undefined; if (Array.isArray(v))
1783
- return v; if (typeof v === 'string')
1784
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))).default(0),
1785
- rotation: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1786
- return undefined; if (Array.isArray(v))
1787
- return v; if (typeof v === 'string')
1788
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360)))).default(0),
1789
- scale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1790
- return undefined; if (Array.isArray(v))
1791
- return v; if (typeof v === 'string')
1792
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0.01).lte(100)))).default(1),
1793
- originX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1794
- return undefined; if (Array.isArray(v))
1795
- return v; if (typeof v === 'string')
1796
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1797
- originY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1798
- return undefined; if (Array.isArray(v))
1799
- return v; if (typeof v === 'string')
1800
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))).default(0.5),
1801
- }).strict();
2122
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2123
+ return undefined; if (Array.isArray(v))
2124
+ return v; if (typeof v === 'string') {
2125
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2126
+ return v;
2127
+ return Number(v);
2128
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2129
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2130
+ return undefined; if (Array.isArray(v))
2131
+ return v; if (typeof v === 'string') {
2132
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2133
+ return v;
2134
+ return Number(v);
2135
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2136
+ rotation: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2137
+ return undefined; if (Array.isArray(v))
2138
+ return v; if (typeof v === 'string') {
2139
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2140
+ return v;
2141
+ return Number(v);
2142
+ } return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2143
+ scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2144
+ return undefined; if (Array.isArray(v))
2145
+ return v; if (typeof v === 'string') {
2146
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2147
+ return v;
2148
+ return Number(v);
2149
+ } return v; }), zod_1.z.number().gte(0.01).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2150
+ originX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2151
+ return undefined; if (Array.isArray(v))
2152
+ return v; if (typeof v === 'string') {
2153
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2154
+ return v;
2155
+ return Number(v);
2156
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2157
+ originY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2158
+ return undefined; if (Array.isArray(v))
2159
+ return v; if (typeof v === 'string') {
2160
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2161
+ return v;
2162
+ return Number(v);
2163
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2164
+ });
1802
2165
  exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1803
2166
  /**
1804
2167
  * An arrow shape pointing to the right by default.
@@ -1807,23 +2170,35 @@ exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1807
2170
  */
1808
2171
  exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
1809
2172
  type: zod_1.z.enum(["arrow"]),
1810
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1811
- return undefined; if (Array.isArray(v))
1812
- return v; if (typeof v === 'string')
1813
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1814
- headWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1815
- return undefined; if (Array.isArray(v))
1816
- return v; if (typeof v === 'string')
1817
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))),
1818
- headLength: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1819
- return undefined; if (Array.isArray(v))
1820
- return v; if (typeof v === 'string')
1821
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))),
1822
- shaftWidth: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1823
- return undefined; if (Array.isArray(v))
1824
- return v; if (typeof v === 'string')
1825
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(1000))),
1826
- }).strict();
2173
+ length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2174
+ return undefined; if (Array.isArray(v))
2175
+ return v; if (typeof v === 'string') {
2176
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2177
+ return v;
2178
+ return Number(v);
2179
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2180
+ headWidth: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2181
+ return undefined; if (Array.isArray(v))
2182
+ return v; if (typeof v === 'string') {
2183
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2184
+ return v;
2185
+ return Number(v);
2186
+ } return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2187
+ headLength: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2188
+ return undefined; if (Array.isArray(v))
2189
+ return v; if (typeof v === 'string') {
2190
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2191
+ return v;
2192
+ return Number(v);
2193
+ } return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2194
+ shaftWidth: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2195
+ return undefined; if (Array.isArray(v))
2196
+ return v; if (typeof v === 'string') {
2197
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2198
+ return v;
2199
+ return Number(v);
2200
+ } return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2201
+ });
1827
2202
  exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1828
2203
  /**
1829
2204
  * A perfect circle shape defined by its radius.
@@ -1832,11 +2207,14 @@ exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1832
2207
  */
1833
2208
  exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
1834
2209
  type: zod_1.z.enum(["circle"]),
1835
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1836
- return undefined; if (Array.isArray(v))
1837
- return v; if (typeof v === 'string')
1838
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1839
- }).strict();
2210
+ radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2211
+ return undefined; if (Array.isArray(v))
2212
+ return v; if (typeof v === 'string') {
2213
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2214
+ return v;
2215
+ return Number(v);
2216
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2217
+ });
1840
2218
  exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1841
2219
  /**
1842
2220
  * A cross or plus shape with equal or different arm lengths.
@@ -1845,19 +2223,28 @@ exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1845
2223
  */
1846
2224
  exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
1847
2225
  type: zod_1.z.enum(["cross"]),
1848
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1849
- return undefined; if (Array.isArray(v))
1850
- return v; if (typeof v === 'string')
1851
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1852
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1853
- return undefined; if (Array.isArray(v))
1854
- return v; if (typeof v === 'string')
1855
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1856
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1857
- return undefined; if (Array.isArray(v))
1858
- return v; if (typeof v === 'string')
1859
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))),
1860
- }).strict();
2226
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2227
+ return undefined; if (Array.isArray(v))
2228
+ return v; if (typeof v === 'string') {
2229
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2230
+ return v;
2231
+ return Number(v);
2232
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2233
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2234
+ return undefined; if (Array.isArray(v))
2235
+ return v; if (typeof v === 'string') {
2236
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2237
+ return v;
2238
+ return Number(v);
2239
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2240
+ thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2241
+ return undefined; if (Array.isArray(v))
2242
+ return v; if (typeof v === 'string') {
2243
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2244
+ return v;
2245
+ return Number(v);
2246
+ } return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2247
+ });
1861
2248
  exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1862
2249
  /**
1863
2250
  * An ellipse (oval) shape with separate horizontal and vertical radii.
@@ -1866,15 +2253,21 @@ exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1866
2253
  */
1867
2254
  exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
1868
2255
  type: zod_1.z.enum(["ellipse"]),
1869
- radiusX: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1870
- return undefined; if (Array.isArray(v))
1871
- return v; if (typeof v === 'string')
1872
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1873
- radiusY: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1874
- return undefined; if (Array.isArray(v))
1875
- return v; if (typeof v === 'string')
1876
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1877
- }).strict();
2256
+ radiusX: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2257
+ return undefined; if (Array.isArray(v))
2258
+ return v; if (typeof v === 'string') {
2259
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2260
+ return v;
2261
+ return Number(v);
2262
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2263
+ radiusY: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2264
+ return undefined; if (Array.isArray(v))
2265
+ return v; if (typeof v === 'string') {
2266
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2267
+ return v;
2268
+ return Number(v);
2269
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2270
+ });
1878
2271
  exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
1879
2272
  /**
1880
2273
  * A heart shape commonly used for love/like icons.
@@ -1883,11 +2276,14 @@ exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
1883
2276
  */
1884
2277
  exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
1885
2278
  type: zod_1.z.enum(["heart"]),
1886
- size: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1887
- return undefined; if (Array.isArray(v))
1888
- return v; if (typeof v === 'string')
1889
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1890
- }).strict();
2279
+ size: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2280
+ return undefined; if (Array.isArray(v))
2281
+ return v; if (typeof v === 'string') {
2282
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2283
+ return v;
2284
+ return Number(v);
2285
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2286
+ });
1891
2287
  exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
1892
2288
  /**
1893
2289
  * A straight line shape with a specified length and thickness.
@@ -1896,15 +2292,21 @@ exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
1896
2292
  */
1897
2293
  exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
1898
2294
  type: zod_1.z.enum(["line"]),
1899
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1900
- return undefined; if (Array.isArray(v))
1901
- return v; if (typeof v === 'string')
1902
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1903
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1904
- return undefined; if (Array.isArray(v))
1905
- return v; if (typeof v === 'string')
1906
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(500))),
1907
- }).strict();
2295
+ length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2296
+ return undefined; if (Array.isArray(v))
2297
+ return v; if (typeof v === 'string') {
2298
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2299
+ return v;
2300
+ return Number(v);
2301
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2302
+ thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2303
+ return undefined; if (Array.isArray(v))
2304
+ return v; if (typeof v === 'string') {
2305
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2306
+ return v;
2307
+ return Number(v);
2308
+ } return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2309
+ });
1908
2310
  exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
1909
2311
  /**
1910
2312
  * A custom shape defined by SVG path data.
@@ -1926,7 +2328,7 @@ exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
1926
2328
  exports.svgshapesSvgPathShapeSchema = zod_1.z.object({
1927
2329
  type: zod_1.z.enum(["path"]),
1928
2330
  d: zod_1.z.string().min(1).max(100000),
1929
- }).strict();
2331
+ });
1930
2332
  exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
1931
2333
  /**
1932
2334
  * A regular polygon shape with a specified number of sides.
@@ -1936,15 +2338,21 @@ exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
1936
2338
  */
1937
2339
  exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
1938
2340
  type: zod_1.z.enum(["polygon"]),
1939
- sides: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1940
- return undefined; if (Array.isArray(v))
1941
- return v; if (typeof v === 'string')
1942
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100))),
1943
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1944
- return undefined; if (Array.isArray(v))
1945
- return v; if (typeof v === 'string')
1946
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1947
- }).strict();
2341
+ sides: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2342
+ return undefined; if (Array.isArray(v))
2343
+ return v; if (typeof v === 'string') {
2344
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2345
+ return v;
2346
+ return Number(v);
2347
+ } return v; }), zod_1.z.number().int().gte(3).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2348
+ radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2349
+ return undefined; if (Array.isArray(v))
2350
+ return v; if (typeof v === 'string') {
2351
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2352
+ return v;
2353
+ return Number(v);
2354
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2355
+ });
1948
2356
  exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
1949
2357
  /**
1950
2358
  * A rectangle shape with optional rounded corners.
@@ -1953,19 +2361,28 @@ exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
1953
2361
  */
1954
2362
  exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
1955
2363
  type: zod_1.z.enum(["rectangle"]),
1956
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1957
- return undefined; if (Array.isArray(v))
1958
- return v; if (typeof v === 'string')
1959
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1960
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1961
- return undefined; if (Array.isArray(v))
1962
- return v; if (typeof v === 'string')
1963
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(4096))),
1964
- cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1965
- return undefined; if (Array.isArray(v))
1966
- return v; if (typeof v === 'string')
1967
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048)))).default(0),
1968
- }).strict();
2364
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2365
+ return undefined; if (Array.isArray(v))
2366
+ return v; if (typeof v === 'string') {
2367
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2368
+ return v;
2369
+ return Number(v);
2370
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2371
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2372
+ return undefined; if (Array.isArray(v))
2373
+ return v; if (typeof v === 'string') {
2374
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2375
+ return v;
2376
+ return Number(v);
2377
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2378
+ cornerRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2379
+ return undefined; if (Array.isArray(v))
2380
+ return v; if (typeof v === 'string') {
2381
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2382
+ return v;
2383
+ return Number(v);
2384
+ } return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2385
+ });
1969
2386
  exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
1970
2387
  /**
1971
2388
  * A ring (donut/annulus) shape - a circle with a circular hole in the center.
@@ -1974,15 +2391,21 @@ exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
1974
2391
  */
1975
2392
  exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
1976
2393
  type: zod_1.z.enum(["ring"]),
1977
- outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1978
- return undefined; if (Array.isArray(v))
1979
- return v; if (typeof v === 'string')
1980
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
1981
- innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1982
- return undefined; if (Array.isArray(v))
1983
- return v; if (typeof v === 'string')
1984
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(2048))),
1985
- }).strict();
2394
+ outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2395
+ return undefined; if (Array.isArray(v))
2396
+ return v; if (typeof v === 'string') {
2397
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2398
+ return v;
2399
+ return Number(v);
2400
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2401
+ innerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2402
+ return undefined; if (Array.isArray(v))
2403
+ return v; if (typeof v === 'string') {
2404
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2405
+ return v;
2406
+ return Number(v);
2407
+ } return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2408
+ });
1986
2409
  exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
1987
2410
  /**
1988
2411
  * A star shape with a specified number of points.
@@ -1992,19 +2415,28 @@ exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
1992
2415
  */
1993
2416
  exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
1994
2417
  type: zod_1.z.enum(["star"]),
1995
- points: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1996
- return undefined; if (Array.isArray(v))
1997
- return v; if (typeof v === 'string')
1998
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(3).lte(100))),
1999
- outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2000
- return undefined; if (Array.isArray(v))
2001
- return v; if (typeof v === 'string')
2002
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
2003
- innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2004
- return undefined; if (Array.isArray(v))
2005
- return v; if (typeof v === 'string')
2006
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2048))),
2007
- }).strict();
2418
+ points: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2419
+ return undefined; if (Array.isArray(v))
2420
+ return v; if (typeof v === 'string') {
2421
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2422
+ return v;
2423
+ return Number(v);
2424
+ } return v; }), zod_1.z.number().int().gte(3).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2425
+ outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2426
+ return undefined; if (Array.isArray(v))
2427
+ return v; if (typeof v === 'string') {
2428
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2429
+ return v;
2430
+ return Number(v);
2431
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2432
+ innerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2433
+ return undefined; if (Array.isArray(v))
2434
+ return v; if (typeof v === 'string') {
2435
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2436
+ return v;
2437
+ return Number(v);
2438
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2439
+ });
2008
2440
  exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
2009
2441
  /**
2010
2442
  * The shape definition for an SVG asset. Each shape type has its own specific
@@ -2077,28 +2509,28 @@ exports.svgassetSvgAssetSchema = zod_1.z.object({
2077
2509
  stroke: zod_1.z.optional(exports.svgpropertiesSvgStrokeSchema),
2078
2510
  shadow: zod_1.z.optional(exports.svgpropertiesSvgShadowSchema),
2079
2511
  transform: zod_1.z.optional(exports.svgpropertiesSvgTransformSchema),
2080
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2081
- return undefined; if (Array.isArray(v))
2082
- return v; if (typeof v === 'string')
2083
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2084
- return undefined; if (Array.isArray(v))
2085
- return v; if (typeof v === 'string')
2086
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))))).default(1),
2087
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2088
- return undefined; if (Array.isArray(v))
2089
- return v; if (typeof v === 'string')
2090
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2091
- return undefined; if (Array.isArray(v))
2092
- return v; if (typeof v === 'string')
2093
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))))),
2094
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2095
- return undefined; if (Array.isArray(v))
2096
- return v; if (typeof v === 'string')
2097
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2098
- return undefined; if (Array.isArray(v))
2099
- return v; if (typeof v === 'string')
2100
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int().gte(1).lte(4096))))),
2101
- }).strict().superRefine((data, ctx) => {
2512
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2513
+ return undefined; if (Array.isArray(v))
2514
+ return v; if (typeof v === 'string') {
2515
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2516
+ return v;
2517
+ return Number(v);
2518
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2519
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2520
+ return undefined; if (Array.isArray(v))
2521
+ return v; if (typeof v === 'string') {
2522
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2523
+ return v;
2524
+ return Number(v);
2525
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2526
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2527
+ return undefined; if (Array.isArray(v))
2528
+ return v; if (typeof v === 'string') {
2529
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2530
+ return v;
2531
+ return Number(v);
2532
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2533
+ }).superRefine((data, ctx) => {
2102
2534
  const hasShape = data.shape !== undefined;
2103
2535
  const hasSrc = data.src !== undefined && data.src.trim() !== "";
2104
2536
  if (!hasShape && !hasSrc) {
@@ -2135,7 +2567,7 @@ exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
2135
2567
  exports.templaterenderTemplateRenderSchema = zod_1.z.object({
2136
2568
  id: zod_1.z.string(),
2137
2569
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2138
- }).strict();
2570
+ });
2139
2571
  exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2140
2572
  /**
2141
2573
  * Horizontal and vertical alignment properties for text.
@@ -2143,36 +2575,48 @@ exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2143
2575
  exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
2144
2576
  horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
2145
2577
  vertical: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
2146
- }).strict();
2578
+ });
2147
2579
  exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
2148
2580
  /**
2149
2581
  * Animation properties for text entrance effects.
2150
2582
  */
2151
2583
  exports.textpropertiesTextAnimationSchema = zod_1.z.object({
2152
2584
  preset: zod_1.z.enum(["typewriter"]),
2153
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2154
- return undefined; if (Array.isArray(v))
2155
- return v; if (typeof v === 'string')
2156
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0.1).lte(30)))),
2157
- }).strict();
2585
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2586
+ return undefined; if (Array.isArray(v))
2587
+ return v; if (typeof v === 'string') {
2588
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2589
+ return v;
2590
+ return Number(v);
2591
+ } return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2592
+ });
2158
2593
  /**
2159
2594
  * Displays a background box behind the text.
2160
2595
  */
2161
2596
  exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
2162
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2163
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2164
- return undefined; if (Array.isArray(v))
2165
- return v; if (typeof v === 'string')
2166
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1)))),
2167
- padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2168
- return undefined; if (Array.isArray(v))
2169
- return v; if (typeof v === 'string')
2170
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(100)))),
2171
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2172
- return undefined; if (Array.isArray(v))
2173
- return v; if (typeof v === 'string')
2174
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0)))),
2175
- }).strict();
2597
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2598
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2599
+ return undefined; if (Array.isArray(v))
2600
+ return v; if (typeof v === 'string') {
2601
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2602
+ return v;
2603
+ return Number(v);
2604
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2605
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2606
+ return undefined; if (Array.isArray(v))
2607
+ return v; if (typeof v === 'string') {
2608
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2609
+ return v;
2610
+ return Number(v);
2611
+ } return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2612
+ borderRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2613
+ return undefined; if (Array.isArray(v))
2614
+ return v; if (typeof v === 'string') {
2615
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2616
+ return v;
2617
+ return Number(v);
2618
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2619
+ });
2176
2620
  exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2177
2621
  /**
2178
2622
  * Font properties for text.
@@ -2180,34 +2624,49 @@ exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2180
2624
  exports.textpropertiesTextFontSchema = zod_1.z.object({
2181
2625
  family: zod_1.z.optional(zod_1.z.string()),
2182
2626
  color: zod_1.z.optional(zod_1.z.string()),
2183
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2184
- return undefined; if (Array.isArray(v))
2185
- return v; if (typeof v === 'string')
2186
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2187
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2188
- return undefined; if (Array.isArray(v))
2189
- return v; if (typeof v === 'string')
2190
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2191
- weight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2192
- return undefined; if (Array.isArray(v))
2193
- return v; if (typeof v === 'string')
2194
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2195
- lineHeight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2196
- return undefined; if (Array.isArray(v))
2197
- return v; if (typeof v === 'string')
2198
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2199
- }).strict();
2627
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2628
+ return undefined; if (Array.isArray(v))
2629
+ return v; if (typeof v === 'string') {
2630
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2631
+ return v;
2632
+ return Number(v);
2633
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2634
+ size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2635
+ return undefined; if (Array.isArray(v))
2636
+ return v; if (typeof v === 'string') {
2637
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2638
+ return v;
2639
+ return Number(v);
2640
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2641
+ weight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2642
+ return undefined; if (Array.isArray(v))
2643
+ return v; if (typeof v === 'string') {
2644
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2645
+ return v;
2646
+ return Number(v);
2647
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2648
+ lineHeight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2649
+ return undefined; if (Array.isArray(v))
2650
+ return v; if (typeof v === 'string') {
2651
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2652
+ return v;
2653
+ return Number(v);
2654
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2655
+ });
2200
2656
  exports.textFontSchema = exports.textpropertiesTextFontSchema;
2201
2657
  /**
2202
2658
  * Text stroke (outline) properties.
2203
2659
  */
2204
2660
  exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2205
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2206
- return undefined; if (Array.isArray(v))
2207
- return v; if (typeof v === 'string')
2208
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
2209
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2210
- }).strict();
2661
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2662
+ return undefined; if (Array.isArray(v))
2663
+ return v; if (typeof v === 'string') {
2664
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2665
+ return v;
2666
+ return Number(v);
2667
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2668
+ color: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2669
+ });
2211
2670
  /**
2212
2671
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
2213
2672
  * [Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.
@@ -2216,21 +2675,27 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2216
2675
  exports.textassetTextAssetSchema = zod_1.z.object({
2217
2676
  type: zod_1.z.enum(["text"]),
2218
2677
  text: zod_1.z.string(),
2219
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2220
- return undefined; if (Array.isArray(v))
2221
- return v; if (typeof v === 'string')
2222
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2223
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2224
- return undefined; if (Array.isArray(v))
2225
- return v; if (typeof v === 'string')
2226
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2678
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2679
+ return undefined; if (Array.isArray(v))
2680
+ return v; if (typeof v === 'string') {
2681
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2682
+ return v;
2683
+ return Number(v);
2684
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2685
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2686
+ return undefined; if (Array.isArray(v))
2687
+ return v; if (typeof v === 'string') {
2688
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2689
+ return v;
2690
+ return Number(v);
2691
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2227
2692
  font: zod_1.z.optional(exports.textpropertiesTextFontSchema),
2228
2693
  background: zod_1.z.optional(exports.textpropertiesTextBackgroundSchema),
2229
2694
  alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
2230
2695
  stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
2231
2696
  animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
2232
2697
  ellipsis: zod_1.z.optional(zod_1.z.string()),
2233
- }).strict();
2698
+ });
2234
2699
  exports.textAssetSchema = exports.textassetTextAssetSchema;
2235
2700
  /**
2236
2701
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
@@ -2238,30 +2703,42 @@ exports.textAssetSchema = exports.textassetTextAssetSchema;
2238
2703
  exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
2239
2704
  type: zod_1.z.enum(["text-to-image"]),
2240
2705
  prompt: zod_1.z.string(),
2241
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2242
- return undefined; if (Array.isArray(v))
2243
- return v; if (typeof v === 'string')
2244
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2245
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2246
- return undefined; if (Array.isArray(v))
2247
- return v; if (typeof v === 'string')
2248
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().int()))),
2706
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2707
+ return undefined; if (Array.isArray(v))
2708
+ return v; if (typeof v === 'string') {
2709
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2710
+ return v;
2711
+ return Number(v);
2712
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2713
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2714
+ return undefined; if (Array.isArray(v))
2715
+ return v; if (typeof v === 'string') {
2716
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2717
+ return v;
2718
+ return Number(v);
2719
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2249
2720
  crop: zod_1.z.optional(exports.cropCropSchema),
2250
- }).strict();
2721
+ });
2251
2722
  exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
2252
2723
  /**
2253
2724
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2254
2725
  */
2255
2726
  exports.thumbnailThumbnailSchema = zod_1.z.object({
2256
- capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2257
- return undefined; if (Array.isArray(v))
2258
- return v; if (typeof v === 'string')
2259
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
2260
- scale: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2261
- return undefined; if (Array.isArray(v))
2262
- return v; if (typeof v === 'string')
2263
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))),
2264
- }).strict();
2727
+ capture: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2728
+ return undefined; if (Array.isArray(v))
2729
+ return v; if (typeof v === 'string') {
2730
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2731
+ return v;
2732
+ return Number(v);
2733
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2734
+ scale: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2735
+ return undefined; if (Array.isArray(v))
2736
+ return v; if (typeof v === 'string') {
2737
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2738
+ return v;
2739
+ return Number(v);
2740
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2741
+ });
2265
2742
  exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
2266
2743
  /**
2267
2744
  * The output format, render range and type of media to generate.
@@ -2292,7 +2769,7 @@ exports.outputOutputSchema = zod_1.z.object({
2292
2769
  poster: zod_1.z.optional(exports.posterPosterSchema),
2293
2770
  thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
2294
2771
  destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
2295
- }).strict();
2772
+ });
2296
2773
  exports.outputSchema = exports.outputOutputSchema;
2297
2774
  /**
2298
2775
  * In and out transitions for a clip - i.e. fade in and fade out
@@ -2426,7 +2903,7 @@ exports.transitionTransitionSchema = zod_1.z.object({
2426
2903
  "shuffleTopLeftFast",
2427
2904
  "zoom",
2428
2905
  ])),
2429
- }).strict();
2906
+ });
2430
2907
  exports.transitionSchema = exports.transitionTransitionSchema;
2431
2908
  /**
2432
2909
  * Use a Tween to [animate properties over time](/docs/guide/architecting-an-application/animations/). The following properties are currently supported and can be animated:
@@ -2439,22 +2916,22 @@ exports.transitionSchema = exports.transitionTransitionSchema;
2439
2916
  * </ul>
2440
2917
  */
2441
2918
  exports.tweenTweenSchema = zod_1.z.object({
2442
- from: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2443
- return undefined; if (Array.isArray(v))
2444
- return v; if (typeof v === 'string')
2445
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
2446
- to: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2447
- return undefined; if (Array.isArray(v))
2448
- return v; if (typeof v === 'string')
2449
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())),
2450
- start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2451
- return undefined; if (Array.isArray(v))
2452
- return v; if (typeof v === 'string')
2453
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2454
- length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2455
- return undefined; if (Array.isArray(v))
2456
- return v; if (typeof v === 'string')
2457
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2919
+ from: zod_1.z.optional(zod_1.z.unknown()),
2920
+ to: zod_1.z.optional(zod_1.z.unknown()),
2921
+ start: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2922
+ return undefined; if (Array.isArray(v))
2923
+ return v; if (typeof v === 'string') {
2924
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2925
+ return v;
2926
+ return Number(v);
2927
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2928
+ length: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2929
+ return undefined; if (Array.isArray(v))
2930
+ return v; if (typeof v === 'string') {
2931
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2932
+ return v;
2933
+ return Number(v);
2934
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2458
2935
  interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
2459
2936
  easing: zod_1.z.optional(zod_1.z.enum([
2460
2937
  "ease",
@@ -2486,67 +2963,124 @@ exports.tweenTweenSchema = zod_1.z.object({
2486
2963
  "easeInOutCirc",
2487
2964
  "easeInOutBack",
2488
2965
  ])),
2489
- }).strict();
2966
+ });
2490
2967
  exports.tweenSchema = exports.tweenTweenSchema;
2491
2968
  /**
2492
2969
  * The AudioAsset is used to add sound effects and audio at specific intervals on the timeline. The src must be a publicly accessible URL to an audio resource such as an mp3 file.
2493
2970
  */
2494
2971
  exports.audioassetAudioAssetSchema = zod_1.z.object({
2495
2972
  type: zod_1.z.enum(["audio"]),
2496
- src: zod_1.z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
2497
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2498
- return undefined; if (Array.isArray(v))
2499
- return v; if (typeof v === 'string')
2500
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2501
- volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2973
+ src: zod_1.z.string().min(1).regex(/\S/),
2974
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2975
+ return undefined; if (Array.isArray(v))
2976
+ return v; if (typeof v === 'string') {
2977
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2978
+ return v;
2979
+ return Number(v);
2980
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2981
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2982
+ return undefined; if (Array.isArray(v))
2983
+ return v; if (typeof v === 'string') {
2984
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2985
+ return v;
2986
+ return Number(v);
2987
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
2988
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2502
2989
  return undefined; if (Array.isArray(v))
2503
- return v; if (typeof v === 'string')
2504
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))), zod_1.z.array(exports.tweenTweenSchema)])),
2505
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2506
- return undefined; if (Array.isArray(v))
2507
- return v; if (typeof v === 'string')
2508
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
2990
+ return v; if (typeof v === 'string') {
2991
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2992
+ return v;
2993
+ return Number(v);
2994
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2509
2995
  effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2510
- }).strict();
2996
+ });
2511
2997
  exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
2512
2998
  /**
2513
2999
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2514
3000
  */
2515
3001
  exports.offsetOffsetSchema = zod_1.z.object({
2516
- x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2517
- return undefined; if (Array.isArray(v))
2518
- return v; if (typeof v === 'string')
2519
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10))), zod_1.z.array(exports.tweenTweenSchema)])),
2520
- y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2521
- return undefined; if (Array.isArray(v))
2522
- return v; if (typeof v === 'string')
2523
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-10).lte(10))), zod_1.z.array(exports.tweenTweenSchema)])),
2524
- }).strict();
3002
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3003
+ return undefined; if (Array.isArray(v))
3004
+ return v; if (typeof v === 'string') {
3005
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3006
+ return v;
3007
+ return Number(v);
3008
+ } return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3009
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3010
+ return undefined; if (Array.isArray(v))
3011
+ return v; if (typeof v === 'string') {
3012
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3013
+ return v;
3014
+ return Number(v);
3015
+ } return v; }), zod_1.z.number().gte(-10).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3016
+ });
2525
3017
  exports.offsetSchema = exports.offsetOffsetSchema;
2526
3018
  /**
2527
3019
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2528
3020
  */
2529
3021
  exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2530
- angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2531
- return undefined; if (Array.isArray(v))
2532
- return v; if (typeof v === 'string')
2533
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-360).lte(360))), zod_1.z.array(exports.tweenTweenSchema)])),
2534
- }).strict();
3022
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3023
+ return undefined; if (Array.isArray(v))
3024
+ return v; if (typeof v === 'string') {
3025
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3026
+ return v;
3027
+ return Number(v);
3028
+ } return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3029
+ });
2535
3030
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
2536
3031
  /**
2537
3032
  * Skew a clip so its edges are sheared at an angle. Use values between -100 and 100. Values over 3 or under -3 will skew the clip almost flat.
2538
3033
  */
2539
3034
  exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
2540
- x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3035
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3036
+ return undefined; if (Array.isArray(v))
3037
+ return v; if (typeof v === 'string') {
3038
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3039
+ return v;
3040
+ return Number(v);
3041
+ } return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3042
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3043
+ return undefined; if (Array.isArray(v))
3044
+ return v; if (typeof v === 'string') {
3045
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3046
+ return v;
3047
+ return Number(v);
3048
+ } return v; }), zod_1.z.number().gte(-100).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3049
+ });
3050
+ exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
3051
+ /**
3052
+ * The TextToSpeechAsset lets you generate a voice over from text using a text-to-speech service. The generated audio can be trimmed, faded and have its volume and speed adjusted using the same properties available on the AudioAsset.
3053
+ */
3054
+ exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
3055
+ type: zod_1.z.enum(["text-to-speech"]),
3056
+ text: zod_1.z.string(),
3057
+ voice: zod_1.z.string(),
3058
+ language: zod_1.z.optional(zod_1.z.string()),
3059
+ newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
3060
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2541
3061
  return undefined; if (Array.isArray(v))
2542
- return v; if (typeof v === 'string')
2543
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100))), zod_1.z.array(exports.tweenTweenSchema)])),
2544
- y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3062
+ return v; if (typeof v === 'string') {
3063
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3064
+ return v;
3065
+ return Number(v);
3066
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3067
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3068
+ return undefined; if (Array.isArray(v))
3069
+ return v; if (typeof v === 'string') {
3070
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3071
+ return v;
3072
+ return Number(v);
3073
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3074
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2545
3075
  return undefined; if (Array.isArray(v))
2546
- return v; if (typeof v === 'string')
2547
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(-100).lte(100))), zod_1.z.array(exports.tweenTweenSchema)])),
2548
- }).strict();
2549
- exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
3076
+ return v; if (typeof v === 'string') {
3077
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3078
+ return v;
3079
+ return Number(v);
3080
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3081
+ effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3082
+ });
3083
+ exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema;
2550
3084
  /**
2551
3085
  * **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
2552
3086
  *
@@ -2593,7 +3127,7 @@ exports.titleassetTitleAssetSchema = zod_1.z.object({
2593
3127
  "center",
2594
3128
  ])),
2595
3129
  offset: zod_1.z.optional(exports.offsetOffsetSchema),
2596
- }).strict();
3130
+ });
2597
3131
  exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2598
3132
  /**
2599
3133
  * Apply one or more transformations to a clip. Transformations alter the visual properties of a clip and can be combined to create new shapes and effects.
@@ -2602,31 +3136,40 @@ exports.transformationTransformationSchema = zod_1.z.object({
2602
3136
  rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
2603
3137
  skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
2604
3138
  flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
2605
- }).strict();
3139
+ });
2606
3140
  exports.transformationSchema = exports.transformationTransformationSchema;
2607
3141
  /**
2608
3142
  * The VideoAsset is used to create video sequences from video files. The src must be a publicly accessible URL to a video resource such as an mp4 file.
2609
3143
  */
2610
3144
  exports.videoassetVideoAssetSchema = zod_1.z.object({
2611
3145
  type: zod_1.z.enum(["video"]),
2612
- src: zod_1.z.string().regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").regex(/^(https?:\/\/|alias:\/\/)/, "URL must use http://, https://, or alias:// scheme").min(1).regex(/\S/),
3146
+ src: zod_1.z.string().min(1).regex(/\S/),
2613
3147
  transcode: zod_1.z.optional(zod_1.z.boolean()),
2614
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2615
- return undefined; if (Array.isArray(v))
2616
- return v; if (typeof v === 'string')
2617
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2618
- volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3148
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2619
3149
  return undefined; if (Array.isArray(v))
2620
- return v; if (typeof v === 'string')
2621
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(1))), zod_1.z.array(exports.tweenTweenSchema)])),
3150
+ return v; if (typeof v === 'string') {
3151
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3152
+ return v;
3153
+ return Number(v);
3154
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3155
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3156
+ return undefined; if (Array.isArray(v))
3157
+ return v; if (typeof v === 'string') {
3158
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3159
+ return v;
3160
+ return Number(v);
3161
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
2622
3162
  volumeEffect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2623
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2624
- return undefined; if (Array.isArray(v))
2625
- return v; if (typeof v === 'string')
2626
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0).lte(10)))),
3163
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3164
+ return undefined; if (Array.isArray(v))
3165
+ return v; if (typeof v === 'string') {
3166
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3167
+ return v;
3168
+ return Number(v);
3169
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2627
3170
  crop: zod_1.z.optional(exports.cropCropSchema),
2628
3171
  chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
2629
- }).strict();
3172
+ });
2630
3173
  exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
2631
3174
  /**
2632
3175
  * The type of asset to display for the duration of the Clip, i.e. a video clip or an image. Choose from one of the available asset types below.
@@ -2645,6 +3188,7 @@ exports.assetAssetSchema = zod_1.z.discriminatedUnion("type", [
2645
3188
  exports.svgassetSvgAssetSchema,
2646
3189
  exports.texttoimageassetTextToImageAssetSchema,
2647
3190
  exports.imagetovideoassetImageToVideoAssetSchema,
3191
+ exports.texttospeechassetTextToSpeechAssetSchema,
2648
3192
  ]);
2649
3193
  exports.assetSchema = exports.assetAssetSchema;
2650
3194
  /**
@@ -2653,30 +3197,47 @@ exports.assetSchema = exports.assetAssetSchema;
2653
3197
  exports.clipClipSchema = zod_1.z.object({
2654
3198
  asset: exports.assetAssetSchema,
2655
3199
  start: zod_1.z.union([
2656
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2657
- return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v))
2658
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))),
2659
- zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
3200
+ zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3201
+ return undefined; if (Array.isArray(v))
3202
+ return v; if (typeof v === 'string') {
3203
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3204
+ return v;
3205
+ return Number(v);
3206
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3207
+ zod_1.z.union([zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2660
3208
  ]),
2661
3209
  length: zod_1.z.union([
2662
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2663
- return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v))
2664
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(0))),
2665
- zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
3210
+ zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3211
+ return undefined; if (Array.isArray(v))
3212
+ return v; if (typeof v === 'string') {
3213
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3214
+ return v;
3215
+ return Number(v);
3216
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3217
+ zod_1.z.union([zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2666
3218
  ]),
2667
3219
  fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
2668
- scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3220
+ scale: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3221
+ return undefined; if (Array.isArray(v))
3222
+ return v; if (typeof v === 'string') {
3223
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3224
+ return v;
3225
+ return Number(v);
3226
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3227
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3228
+ return undefined; if (Array.isArray(v))
3229
+ return v; if (typeof v === 'string') {
3230
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3231
+ return v;
3232
+ return Number(v);
3233
+ } return v; }), zod_1.z.number().gte(1).lte(3840)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3234
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2669
3235
  return undefined; if (Array.isArray(v))
2670
- return v; if (typeof v === 'string')
2671
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())), zod_1.z.array(exports.tweenTweenSchema)])),
2672
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2673
- return undefined; if (Array.isArray(v))
2674
- return v; if (typeof v === 'string')
2675
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(3840)))),
2676
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2677
- return undefined; if (Array.isArray(v))
2678
- return v; if (typeof v === 'string')
2679
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number().gte(1).lte(2160)))),
3236
+ return v; if (typeof v === 'string') {
3237
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3238
+ return v;
3239
+ return Number(v);
3240
+ } return v; }), zod_1.z.number().gte(1).lte(2160)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2680
3241
  position: zod_1.z.optional(zod_1.z.enum([
2681
3242
  "top",
2682
3243
  "topRight",
@@ -2721,20 +3282,23 @@ exports.clipClipSchema = zod_1.z.object({
2721
3282
  "muted",
2722
3283
  "negative",
2723
3284
  ])),
2724
- opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2725
- return undefined; if (Array.isArray(v))
2726
- return v; if (typeof v === 'string')
2727
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number())), zod_1.z.array(exports.tweenTweenSchema)])),
3285
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3286
+ return undefined; if (Array.isArray(v))
3287
+ return v; if (typeof v === 'string') {
3288
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3289
+ return v;
3290
+ return Number(v);
3291
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
2728
3292
  transform: zod_1.z.optional(exports.transformationTransformationSchema),
2729
- alias: zod_1.z.optional(zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/)),
2730
- }).strict();
3293
+ alias: zod_1.z.optional(zod_1.z.union([zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3294
+ });
2731
3295
  exports.clipSchema = exports.clipClipSchema;
2732
3296
  /**
2733
3297
  * A track contains an array of clips. Tracks are layered on top of each other in the order in the array. The top most track will render on top of those below it.
2734
3298
  */
2735
3299
  exports.trackTrackSchema = zod_1.z.object({
2736
3300
  clips: zod_1.z.array(exports.clipClipSchema).min(1),
2737
- }).strict();
3301
+ });
2738
3302
  exports.trackSchema = exports.trackTrackSchema;
2739
3303
  /**
2740
3304
  * A timeline represents the contents of a video edit over time, an audio edit over time, in seconds, or an image layout. A timeline consists of layers called tracks. Tracks are composed of titles, images, audio, html or video segments referred to as clips which are placed along the track at specific starting point and lasting for a specific amount of time.
@@ -2745,7 +3309,7 @@ exports.timelineTimelineSchema = zod_1.z.object({
2745
3309
  fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
2746
3310
  tracks: zod_1.z.array(exports.trackTrackSchema).min(1),
2747
3311
  cache: zod_1.z.optional(zod_1.z.boolean()),
2748
- }).strict();
3312
+ });
2749
3313
  exports.timelineSchema = exports.timelineTimelineSchema;
2750
3314
  /**
2751
3315
  * An edit defines the arrangement of a video on a timeline, an audio edit or an image design and the output format. Video assets are automatically preprocessed to fix common compatibility issues before rendering. You can control preprocessing behavior using the `transcode` flag on video assets.
@@ -2756,10 +3320,7 @@ exports.editEditSchema = zod_1.z.object({
2756
3320
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2757
3321
  callback: zod_1.z.optional(zod_1.z.string()),
2758
3322
  disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
2759
- instance: zod_1.z.optional(zod_1.z.string()),
2760
- poster: zod_1.z.optional(exports.posterPosterSchema),
2761
- thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
2762
- }).strict();
3323
+ });
2763
3324
  exports.editSchema = exports.editEditSchema;
2764
3325
  /**
2765
3326
  * The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL.
@@ -2778,21 +3339,27 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2778
3339
  "failed",
2779
3340
  ]),
2780
3341
  error: zod_1.z.optional(zod_1.z.string()),
2781
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2782
- return undefined; if (Array.isArray(v))
2783
- return v; if (typeof v === 'string')
2784
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
2785
- renderTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2786
- return undefined; if (Array.isArray(v))
2787
- return v; if (typeof v === 'string')
2788
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined) return undefined; if (Array.isArray(v)) return v; if (typeof v === 'string') return Number(v); return v; }), zod_1.z.number()))),
3342
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3343
+ return undefined; if (Array.isArray(v))
3344
+ return v; if (typeof v === 'string') {
3345
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3346
+ return v;
3347
+ return Number(v);
3348
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3349
+ renderTime: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3350
+ return undefined; if (Array.isArray(v))
3351
+ return v; if (typeof v === 'string') {
3352
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3353
+ return v;
3354
+ return Number(v);
3355
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2789
3356
  url: zod_1.z.optional(zod_1.z.string()),
2790
3357
  poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2791
3358
  thumbnail: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2792
3359
  data: zod_1.z.optional(exports.editEditSchema),
2793
3360
  created: zod_1.z.optional(zod_1.z.string()),
2794
3361
  updated: zod_1.z.optional(zod_1.z.string()),
2795
- }).strict();
3362
+ });
2796
3363
  exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
2797
3364
  /**
2798
3365
  * The response received after a [render status request](#get-render-status) is submitted. The response includes details about status of a render and the output URL.
@@ -2801,7 +3368,7 @@ exports.renderresponseRenderResponseSchema = zod_1.z.object({
2801
3368
  success: zod_1.z.boolean(),
2802
3369
  message: zod_1.z.string(),
2803
3370
  response: exports.renderresponsedataRenderResponseDataSchema,
2804
- }).strict();
3371
+ });
2805
3372
  exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
2806
3373
  /**
2807
3374
  * The response data returned with the [TemplateDataResponse](#tocs_templatedataresponse).
@@ -2811,7 +3378,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
2811
3378
  name: zod_1.z.string(),
2812
3379
  owner: zod_1.z.string(),
2813
3380
  template: exports.editEditSchema,
2814
- }).strict();
3381
+ });
2815
3382
  exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
2816
3383
  /**
2817
3384
  * The template data including the template name and [Edit](#tocs_edit).
@@ -2820,7 +3387,7 @@ exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
2820
3387
  success: zod_1.z.boolean(),
2821
3388
  message: zod_1.z.string(),
2822
3389
  response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
2823
- }).strict();
3390
+ });
2824
3391
  exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
2825
3392
  /**
2826
3393
  * A template is a saved [Edit](#tocs_edit) than can be loaded and re-used.
@@ -2828,7 +3395,7 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
2828
3395
  exports.templateTemplateSchema = zod_1.z.object({
2829
3396
  name: zod_1.z.string(),
2830
3397
  template: zod_1.z.optional(exports.editEditSchema),
2831
- }).strict();
3398
+ });
2832
3399
  exports.templateSchema = exports.templateTemplateSchema;
2833
3400
  exports.postRenderRequest = zod_1.z.object({
2834
3401
  body: exports.editEditSchema,
@@ -2849,7 +3416,7 @@ exports.getRenderRequest = zod_1.z.object({
2849
3416
  query: zod_1.z.optional(zod_1.z.object({
2850
3417
  data: zod_1.z.optional(zod_1.z.boolean()),
2851
3418
  merged: zod_1.z.optional(zod_1.z.boolean()),
2852
- }).strict()),
3419
+ })),
2853
3420
  });
2854
3421
  /**
2855
3422
  * The render status details