@shotstack/schemas 1.5.1 → 1.5.3

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,
@@ -1341,13 +1572,16 @@ exports.richtextassetRichTextAssetSchema = zod_1.z.object({
1341
1572
  shadow: zod_1.z.optional(exports.richtextpropertiesRichTextShadowSchema),
1342
1573
  background: zod_1.z.optional(exports.richtextpropertiesRichTextBackgroundSchema),
1343
1574
  border: zod_1.z.optional(exports.richtextpropertiesRichTextBorderSchema),
1344
- padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1345
- return undefined; if (Array.isArray(v))
1346
- return v; if (typeof v === 'string')
1347
- 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])),
1575
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1576
+ return undefined; if (Array.isArray(v))
1577
+ return v; if (typeof v === 'string') {
1578
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1579
+ return v;
1580
+ return Number(v);
1581
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), exports.richtextpropertiesRichTextPaddingSchema])),
1348
1582
  align: zod_1.z.optional(exports.richtextpropertiesRichTextAlignmentSchema),
1349
1583
  animation: zod_1.z.optional(exports.richtextpropertiesRichTextAnimationSchema),
1350
- }).strict();
1584
+ });
1351
1585
  exports.richTextAssetSchema = exports.richtextassetRichTextAssetSchema;
1352
1586
  /**
1353
1587
  * The transfer request attributes inlcudling the user specified ID and status. Returned with [TransferResponseData](#tocs_transferresponsedata).
@@ -1357,7 +1591,7 @@ exports.transferresponseattributesTransferResponseAttributesSchema = zod_1.z.obj
1357
1591
  owner: zod_1.z.optional(zod_1.z.string()),
1358
1592
  status: zod_1.z.optional(zod_1.z.enum(["queued", "failed"])),
1359
1593
  created: zod_1.z.optional(zod_1.z.string()),
1360
- }).strict();
1594
+ });
1361
1595
  exports.transferResponseAttributesSchema = exports.transferresponseattributesTransferResponseAttributesSchema;
1362
1596
  /**
1363
1597
  * The type of resource (an asset) and the transfer attributes. Returned with [TransferResponse](#tocs_transferresponse).
@@ -1365,14 +1599,14 @@ exports.transferResponseAttributesSchema = exports.transferresponseattributesTra
1365
1599
  exports.transferresponsedataTransferResponseDataSchema = zod_1.z.object({
1366
1600
  type: zod_1.z.optional(zod_1.z.string()),
1367
1601
  attributes: zod_1.z.optional(exports.transferresponseattributesTransferResponseAttributesSchema),
1368
- }).strict();
1602
+ });
1369
1603
  exports.transferResponseDataSchema = exports.transferresponsedataTransferResponseDataSchema;
1370
1604
  /**
1371
1605
  * 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.
1372
1606
  */
1373
1607
  exports.transferresponseTransferResponseSchema = zod_1.z.object({
1374
1608
  data: exports.transferresponsedataTransferResponseDataSchema,
1375
- }).strict();
1609
+ });
1376
1610
  exports.transferResponseSchema = exports.transferresponseTransferResponseSchema;
1377
1611
  /**
1378
1612
  * The asset URL to fetch and transfer to a destination.
@@ -1381,7 +1615,7 @@ exports.transferTransferSchema = zod_1.z.object({
1381
1615
  url: zod_1.z.string(),
1382
1616
  id: zod_1.z.string(),
1383
1617
  destinations: zod_1.z.array(exports.destinationsDestinationsSchema),
1384
- }).strict();
1618
+ });
1385
1619
  exports.transferSchema = exports.transferTransferSchema;
1386
1620
  /**
1387
1621
  * The ShapeAsset is used to add shapes to a video. The shape can be styled with a fill and a stroke.
@@ -1391,73 +1625,109 @@ exports.transferSchema = exports.transferTransferSchema;
1391
1625
  exports.shapeassetShapeAssetSchema = zod_1.z.object({
1392
1626
  type: zod_1.z.enum(["shape"]),
1393
1627
  shape: zod_1.z.enum(["rectangle", "circle", "line"]),
1394
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1395
- return undefined; if (Array.isArray(v))
1396
- return v; if (typeof v === 'string')
1397
- 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()))),
1398
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1399
- return undefined; if (Array.isArray(v))
1400
- return v; if (typeof v === 'string')
1401
- 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()))),
1628
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1629
+ return undefined; if (Array.isArray(v))
1630
+ return v; if (typeof v === 'string') {
1631
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1632
+ return v;
1633
+ return Number(v);
1634
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1635
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1636
+ return undefined; if (Array.isArray(v))
1637
+ return v; if (typeof v === 'string') {
1638
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1639
+ return v;
1640
+ return Number(v);
1641
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1402
1642
  fill: zod_1.z.optional(zod_1.z.object({
1403
1643
  color: zod_1.z.optional(zod_1.z.string()),
1404
- opacity: zod_1.z.optional(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
- 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()))),
1644
+ opacity: zod_1.z.optional(zod_1.z.union([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
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1648
+ return v;
1649
+ return Number(v);
1650
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1408
1651
  })),
1409
1652
  stroke: zod_1.z.optional(zod_1.z.object({
1410
1653
  color: zod_1.z.optional(zod_1.z.string()),
1411
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1412
- return undefined; if (Array.isArray(v))
1413
- return v; if (typeof v === 'string')
1414
- 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()))),
1654
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1655
+ return undefined; if (Array.isArray(v))
1656
+ return v; if (typeof v === 'string') {
1657
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1658
+ return v;
1659
+ return Number(v);
1660
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1415
1661
  })),
1416
1662
  rectangle: zod_1.z.optional(zod_1.z.object({
1417
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1418
- return undefined; if (Array.isArray(v))
1419
- return v; if (typeof v === 'string')
1420
- 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())),
1421
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1422
- return undefined; if (Array.isArray(v))
1423
- return v; if (typeof v === 'string')
1424
- 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())),
1425
- cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1426
- return undefined; if (Array.isArray(v))
1427
- return v; if (typeof v === 'string')
1428
- 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()))),
1663
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1664
+ return undefined; if (Array.isArray(v))
1665
+ return v; if (typeof v === 'string') {
1666
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1667
+ return v;
1668
+ return Number(v);
1669
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1670
+ height: zod_1.z.union([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
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1674
+ return v;
1675
+ return Number(v);
1676
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1677
+ cornerRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1678
+ return undefined; if (Array.isArray(v))
1679
+ return v; if (typeof v === 'string') {
1680
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1681
+ return v;
1682
+ return Number(v);
1683
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1429
1684
  })),
1430
1685
  circle: zod_1.z.optional(zod_1.z.object({
1431
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1432
- return undefined; if (Array.isArray(v))
1433
- return v; if (typeof v === 'string')
1434
- 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())),
1686
+ radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1687
+ return undefined; if (Array.isArray(v))
1688
+ return v; if (typeof v === 'string') {
1689
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1690
+ return v;
1691
+ return Number(v);
1692
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1435
1693
  })),
1436
1694
  line: zod_1.z.optional(zod_1.z.object({
1437
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1438
- return undefined; if (Array.isArray(v))
1439
- return v; if (typeof v === 'string')
1440
- 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())),
1441
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1442
- return undefined; if (Array.isArray(v))
1443
- return v; if (typeof v === 'string')
1444
- 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())),
1695
+ length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1696
+ return undefined; if (Array.isArray(v))
1697
+ return v; if (typeof v === 'string') {
1698
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1699
+ return v;
1700
+ return Number(v);
1701
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1702
+ thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1703
+ return undefined; if (Array.isArray(v))
1704
+ return v; if (typeof v === 'string') {
1705
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1706
+ return v;
1707
+ return Number(v);
1708
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1445
1709
  })),
1446
- }).strict();
1710
+ });
1447
1711
  exports.shapeAssetSchema = exports.shapeassetShapeAssetSchema;
1448
1712
  /**
1449
1713
  * 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.
1450
1714
  */
1451
1715
  exports.sizeSizeSchema = zod_1.z.object({
1452
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1453
- return undefined; if (Array.isArray(v))
1454
- return v; if (typeof v === 'string')
1455
- 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)))),
1456
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1457
- return undefined; if (Array.isArray(v))
1458
- return v; if (typeof v === 'string')
1459
- 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)))),
1460
- }).strict();
1716
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1717
+ return undefined; if (Array.isArray(v))
1718
+ return v; if (typeof v === 'string') {
1719
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1720
+ return v;
1721
+ return Number(v);
1722
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1723
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1724
+ return undefined; if (Array.isArray(v))
1725
+ return v; if (typeof v === 'string') {
1726
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1727
+ return v;
1728
+ return Number(v);
1729
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1730
+ });
1461
1731
  exports.sizeSchema = exports.sizeSizeSchema;
1462
1732
  /**
1463
1733
  * 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...
@@ -1483,10 +1753,13 @@ exports.renditionRenditionSchema = zod_1.z.object({
1483
1753
  size: zod_1.z.optional(exports.sizeSizeSchema),
1484
1754
  fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop"])),
1485
1755
  resolution: zod_1.z.optional(zod_1.z.enum(["preview", "mobile", "sd", "hd", "fhd"])),
1486
- quality: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1487
- return undefined; if (Array.isArray(v))
1488
- return v; if (typeof v === 'string')
1489
- 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)))),
1756
+ quality: zod_1.z.optional(zod_1.z.union([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
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1760
+ return v;
1761
+ return Number(v);
1762
+ } return v; }), zod_1.z.number().int().gte(1).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1490
1763
  fps: zod_1.z.optional(zod_1.z.union([
1491
1764
  zod_1.z.literal(12),
1492
1765
  zod_1.z.literal(15),
@@ -1501,15 +1774,18 @@ exports.renditionRenditionSchema = zod_1.z.object({
1501
1774
  zod_1.z.literal(60),
1502
1775
  ])),
1503
1776
  speed: zod_1.z.optional(exports.speedSpeedSchema),
1504
- keyframeInterval: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1505
- return undefined; if (Array.isArray(v))
1506
- return v; if (typeof v === 'string')
1507
- 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)))),
1777
+ keyframeInterval: zod_1.z.optional(zod_1.z.union([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
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1781
+ return v;
1782
+ return Number(v);
1783
+ } return v; }), zod_1.z.number().int().gte(1).lte(300)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1508
1784
  fixOffset: zod_1.z.optional(zod_1.z.boolean()),
1509
1785
  fixRotation: zod_1.z.optional(zod_1.z.boolean()),
1510
1786
  enhance: zod_1.z.optional(exports.enhancementsEnhancementsSchema),
1511
1787
  filename: zod_1.z.optional(zod_1.z.string()),
1512
- }).strict();
1788
+ });
1513
1789
  exports.renditionSchema = exports.renditionRenditionSchema;
1514
1790
  /**
1515
1791
  * The output renditions and transformations that should be generated from the source file.
@@ -1517,7 +1793,7 @@ exports.renditionSchema = exports.renditionRenditionSchema;
1517
1793
  exports.outputsOutputsSchema = zod_1.z.object({
1518
1794
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionRenditionSchema)),
1519
1795
  transcription: zod_1.z.optional(exports.transcriptionTranscriptionSchema),
1520
- }).strict();
1796
+ });
1521
1797
  exports.outputsSchema = exports.outputsOutputsSchema;
1522
1798
  /**
1523
1799
  * The id and attributes of the generated rendition file.
@@ -1533,35 +1809,50 @@ exports.renditionresponseattributesRenditionResponseAttributesSchema = zod_1.z.o
1533
1809
  "overwritten",
1534
1810
  ])),
1535
1811
  url: zod_1.z.optional(zod_1.z.string()),
1536
- executionTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1537
- return undefined; if (Array.isArray(v))
1538
- return v; if (typeof v === 'string')
1539
- 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()))),
1812
+ executionTime: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1813
+ return undefined; if (Array.isArray(v))
1814
+ return v; if (typeof v === 'string') {
1815
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1816
+ return v;
1817
+ return Number(v);
1818
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1540
1819
  transformation: zod_1.z.optional(exports.renditionRenditionSchema),
1541
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1542
- return undefined; if (Array.isArray(v))
1543
- return v; if (typeof v === 'string')
1544
- 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()))),
1545
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1546
- return undefined; if (Array.isArray(v))
1547
- return v; if (typeof v === 'string')
1548
- 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()))),
1549
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1550
- return undefined; if (Array.isArray(v))
1551
- return v; if (typeof v === 'string')
1552
- 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()))),
1553
- fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1554
- return undefined; if (Array.isArray(v))
1555
- return v; if (typeof v === 'string')
1556
- 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()))),
1557
- }).strict();
1820
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1821
+ return undefined; if (Array.isArray(v))
1822
+ return v; if (typeof v === 'string') {
1823
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1824
+ return v;
1825
+ return Number(v);
1826
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1827
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1828
+ return undefined; if (Array.isArray(v))
1829
+ return v; if (typeof v === 'string') {
1830
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1831
+ return v;
1832
+ return Number(v);
1833
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1834
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1835
+ return undefined; if (Array.isArray(v))
1836
+ return v; if (typeof v === 'string') {
1837
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1838
+ return v;
1839
+ return Number(v);
1840
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1841
+ fps: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1842
+ return undefined; if (Array.isArray(v))
1843
+ return v; if (typeof v === 'string') {
1844
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1845
+ return v;
1846
+ return Number(v);
1847
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1848
+ });
1558
1849
  exports.renditionResponseAttributesSchema = exports.renditionresponseattributesRenditionResponseAttributesSchema;
1559
1850
  /**
1560
1851
  * The list of outputs generated from the source file. Currently supports renditions which are versions of the source file with different transformations applied.
1561
1852
  */
1562
1853
  exports.outputsresponseOutputsResponseSchema = zod_1.z.object({
1563
1854
  renditions: zod_1.z.optional(zod_1.z.array(exports.renditionresponseattributesRenditionResponseAttributesSchema)),
1564
- }).strict();
1855
+ });
1565
1856
  exports.outputsResponseSchema = exports.outputsresponseOutputsResponseSchema;
1566
1857
  /**
1567
1858
  * The id and attributes of the source file.
@@ -1580,25 +1871,37 @@ exports.sourceresponseattributesSourceResponseAttributesSchema = zod_1.z.object(
1580
1871
  "overwritten",
1581
1872
  ])),
1582
1873
  outputs: zod_1.z.optional(exports.outputsresponseOutputsResponseSchema),
1583
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1584
- return undefined; if (Array.isArray(v))
1585
- return v; if (typeof v === 'string')
1586
- 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()))),
1587
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1588
- return undefined; if (Array.isArray(v))
1589
- return v; if (typeof v === 'string')
1590
- 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()))),
1591
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1592
- return undefined; if (Array.isArray(v))
1593
- return v; if (typeof v === 'string')
1594
- 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()))),
1595
- fps: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1596
- return undefined; if (Array.isArray(v))
1597
- return v; if (typeof v === 'string')
1598
- 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()))),
1874
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1875
+ return undefined; if (Array.isArray(v))
1876
+ return v; if (typeof v === 'string') {
1877
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1878
+ return v;
1879
+ return Number(v);
1880
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1881
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1882
+ return undefined; if (Array.isArray(v))
1883
+ return v; if (typeof v === 'string') {
1884
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1885
+ return v;
1886
+ return Number(v);
1887
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1888
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1889
+ return undefined; if (Array.isArray(v))
1890
+ return v; if (typeof v === 'string') {
1891
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1892
+ return v;
1893
+ return Number(v);
1894
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1895
+ fps: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1896
+ return undefined; if (Array.isArray(v))
1897
+ return v; if (typeof v === 'string') {
1898
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1899
+ return v;
1900
+ return Number(v);
1901
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1599
1902
  created: zod_1.z.optional(zod_1.z.string()),
1600
1903
  updated: zod_1.z.optional(zod_1.z.string()),
1601
- }).strict();
1904
+ });
1602
1905
  exports.sourceResponseAttributesSchema = exports.sourceresponseattributesSourceResponseAttributesSchema;
1603
1906
  /**
1604
1907
  * The type of resource (a source), it's id and attributes of the source file.
@@ -1607,21 +1910,21 @@ exports.sourceresponsedataSourceResponseDataSchema = zod_1.z.object({
1607
1910
  type: zod_1.z.string(),
1608
1911
  id: zod_1.z.string(),
1609
1912
  attributes: exports.sourceresponseattributesSourceResponseAttributesSchema,
1610
- }).strict();
1913
+ });
1611
1914
  exports.sourceResponseDataSchema = exports.sourceresponsedataSourceResponseDataSchema;
1612
1915
  /**
1613
1916
  * A list of all ingested source files fetched or uploaded to a users account.
1614
1917
  */
1615
1918
  exports.sourcelistresponseSourceListResponseSchema = zod_1.z.object({
1616
1919
  data: zod_1.z.array(exports.sourceresponsedataSourceResponseDataSchema),
1617
- }).strict();
1920
+ });
1618
1921
  exports.sourceListResponseSchema = exports.sourcelistresponseSourceListResponseSchema;
1619
1922
  /**
1620
1923
  * 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.
1621
1924
  */
1622
1925
  exports.sourceresponseSourceResponseSchema = zod_1.z.object({
1623
1926
  data: exports.sourceresponsedataSourceResponseDataSchema,
1624
- }).strict();
1927
+ });
1625
1928
  exports.sourceResponseSchema = exports.sourceresponseSourceResponseSchema;
1626
1929
  /**
1627
1930
  * 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.
@@ -1632,7 +1935,7 @@ exports.sourceSourceSchema = zod_1.z.object({
1632
1935
  outputs: zod_1.z.optional(exports.outputsOutputsSchema),
1633
1936
  destinations: zod_1.z.optional(exports.destinationsDestinationsSchema),
1634
1937
  callback: zod_1.z.optional(zod_1.z.string()),
1635
- }).strict();
1938
+ });
1636
1939
  exports.sourceSchema = exports.sourceSourceSchema;
1637
1940
  /**
1638
1941
  * 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.
@@ -1640,11 +1943,14 @@ exports.sourceSchema = exports.sourceSourceSchema;
1640
1943
  exports.soundtrackSoundtrackSchema = zod_1.z.object({
1641
1944
  src: zod_1.z.string().min(1).regex(/\S/),
1642
1945
  effect: zod_1.z.optional(zod_1.z.enum(["fadeIn", "fadeOut", "fadeInFadeOut"])),
1643
- volume: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1644
- return undefined; if (Array.isArray(v))
1645
- return v; if (typeof v === 'string')
1646
- 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()))),
1647
- }).strict();
1946
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1947
+ return undefined; if (Array.isArray(v))
1948
+ return v; if (typeof v === 'string') {
1949
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1950
+ return v;
1951
+ return Number(v);
1952
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
1953
+ });
1648
1954
  exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1649
1955
  /**
1650
1956
  * A color stop in a gradient. Each stop defines a color at a specific position
@@ -1652,12 +1958,15 @@ exports.soundtrackSchema = exports.soundtrackSoundtrackSchema;
1652
1958
  *
1653
1959
  */
1654
1960
  exports.svgpropertiesSvgGradientStopSchema = zod_1.z.object({
1655
- offset: 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
- 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))),
1659
- color: zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/),
1660
- }).strict();
1961
+ offset: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1962
+ return undefined; if (Array.isArray(v))
1963
+ return v; if (typeof v === 'string') {
1964
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1965
+ return v;
1966
+ return Number(v);
1967
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
1968
+ 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*\}\}$/)]),
1969
+ });
1661
1970
  exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1662
1971
  /**
1663
1972
  * A linear gradient fill that transitions colors along a straight line.
@@ -1666,16 +1975,22 @@ exports.svgGradientStopSchema = exports.svgpropertiesSvgGradientStopSchema;
1666
1975
  */
1667
1976
  exports.svgpropertiesSvgLinearGradientFillSchema = zod_1.z.object({
1668
1977
  type: zod_1.z.enum(["linear"]),
1669
- angle: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1670
- return undefined; if (Array.isArray(v))
1671
- return v; if (typeof v === 'string')
1672
- 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),
1978
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1979
+ return undefined; if (Array.isArray(v))
1980
+ return v; if (typeof v === 'string') {
1981
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1982
+ return v;
1983
+ return Number(v);
1984
+ } return v; }), zod_1.z.number().gte(0).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
1673
1985
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1674
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1675
- return undefined; if (Array.isArray(v))
1676
- return v; if (typeof v === 'string')
1677
- 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),
1678
- }).strict();
1986
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1987
+ return undefined; if (Array.isArray(v))
1988
+ return v; if (typeof v === 'string') {
1989
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
1990
+ return v;
1991
+ return Number(v);
1992
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1993
+ });
1679
1994
  exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFillSchema;
1680
1995
  /**
1681
1996
  * A radial gradient fill that transitions colors radiating outward from a center point.
@@ -1685,35 +2000,50 @@ exports.svgLinearGradientFillSchema = exports.svgpropertiesSvgLinearGradientFill
1685
2000
  exports.svgpropertiesSvgRadialGradientFillSchema = zod_1.z.object({
1686
2001
  type: zod_1.z.enum(["radial"]),
1687
2002
  stops: zod_1.z.array(exports.svgpropertiesSvgGradientStopSchema).min(2),
1688
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1689
- return undefined; if (Array.isArray(v))
1690
- return v; if (typeof v === 'string')
1691
- 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),
1692
- }).strict();
2003
+ opacity: zod_1.z.optional(zod_1.z.union([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
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2007
+ return v;
2008
+ return Number(v);
2009
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2010
+ });
1693
2011
  exports.svgRadialGradientFillSchema = exports.svgpropertiesSvgRadialGradientFillSchema;
1694
2012
  /**
1695
2013
  * Drop shadow properties for SVG shapes. Creates a shadow effect behind the shape.
1696
2014
  *
1697
2015
  */
1698
2016
  exports.svgpropertiesSvgShadowSchema = zod_1.z.object({
1699
- offsetX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1700
- return undefined; if (Array.isArray(v))
1701
- return v; if (typeof v === 'string')
1702
- 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),
1703
- offsetY: zod_1.z.optional(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
- 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),
1707
- blur: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1708
- return undefined; if (Array.isArray(v))
1709
- return v; if (typeof v === 'string')
1710
- 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),
1711
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1712
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1713
- return undefined; if (Array.isArray(v))
1714
- return v; if (typeof v === 'string')
1715
- 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),
1716
- }).strict();
2017
+ offsetX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2018
+ return undefined; if (Array.isArray(v))
2019
+ return v; if (typeof v === 'string') {
2020
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2021
+ return v;
2022
+ return Number(v);
2023
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2024
+ offsetY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2025
+ return undefined; if (Array.isArray(v))
2026
+ return v; if (typeof v === 'string') {
2027
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2028
+ return v;
2029
+ return Number(v);
2030
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2031
+ blur: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2032
+ return undefined; if (Array.isArray(v))
2033
+ return v; if (typeof v === 'string') {
2034
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2035
+ return v;
2036
+ return Number(v);
2037
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2038
+ 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"),
2039
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2040
+ return undefined; if (Array.isArray(v))
2041
+ return v; if (typeof v === 'string') {
2042
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2043
+ return v;
2044
+ return Number(v);
2045
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2046
+ });
1717
2047
  exports.svgShadowSchema = exports.svgpropertiesSvgShadowSchema;
1718
2048
  /**
1719
2049
  * A solid color fill for SVG shapes.
@@ -1724,11 +2054,14 @@ exports.svgpropertiesSvgSolidFillSchema = zod_1.z.object({
1724
2054
  .string()
1725
2055
  .regex(/^#[A-Fa-f0-9]{6}$/)
1726
2056
  .default("#000000"),
1727
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1728
- return undefined; if (Array.isArray(v))
1729
- return v; if (typeof v === 'string')
1730
- 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),
1731
- }).strict();
2057
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2058
+ return undefined; if (Array.isArray(v))
2059
+ return v; if (typeof v === 'string') {
2060
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2061
+ return v;
2062
+ return Number(v);
2063
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2064
+ });
1732
2065
  exports.svgSolidFillSchema = exports.svgpropertiesSvgSolidFillSchema;
1733
2066
  /**
1734
2067
  * Fill properties for SVG shapes. Supports solid colors and gradients.
@@ -1747,57 +2080,87 @@ exports.svgFillSchema = exports.svgpropertiesSvgFillSchema;
1747
2080
  *
1748
2081
  */
1749
2082
  exports.svgpropertiesSvgStrokeSchema = zod_1.z.object({
1750
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),
1751
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1752
- return undefined; if (Array.isArray(v))
1753
- return v; if (typeof v === 'string')
1754
- 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),
1755
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1756
- return undefined; if (Array.isArray(v))
1757
- return v; if (typeof v === 'string')
1758
- 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),
2083
+ 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"),
2084
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2085
+ return undefined; if (Array.isArray(v))
2086
+ return v; if (typeof v === 'string') {
2087
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2088
+ return v;
2089
+ return Number(v);
2090
+ } return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2091
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2092
+ return undefined; if (Array.isArray(v))
2093
+ return v; if (typeof v === 'string') {
2094
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2095
+ return v;
2096
+ return Number(v);
2097
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
1759
2098
  lineCap: zod_1.z.optional(zod_1.z.enum(["butt", "round", "square"])),
1760
2099
  lineJoin: zod_1.z.optional(zod_1.z.enum(["miter", "round", "bevel"])),
1761
- dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1762
- return undefined; if (Array.isArray(v))
1763
- return v; if (typeof v === 'string')
1764
- 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))))),
1765
- dashOffset: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1766
- return undefined; if (Array.isArray(v))
1767
- return v; if (typeof v === 'string')
1768
- 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),
1769
- }).strict();
2100
+ dashArray: zod_1.z.optional(zod_1.z.array(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2101
+ return undefined; if (Array.isArray(v))
2102
+ return v; if (typeof v === 'string') {
2103
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2104
+ return v;
2105
+ return Number(v);
2106
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),
2107
+ dashOffset: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2108
+ return undefined; if (Array.isArray(v))
2109
+ return v; if (typeof v === 'string') {
2110
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2111
+ return v;
2112
+ return Number(v);
2113
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2114
+ });
1770
2115
  exports.svgStrokeSchema = exports.svgpropertiesSvgStrokeSchema;
1771
2116
  /**
1772
2117
  * Transformation properties for positioning, rotating, and scaling SVG shapes.
1773
2118
  *
1774
2119
  */
1775
2120
  exports.svgpropertiesSvgTransformSchema = zod_1.z.object({
1776
- x: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1777
- return undefined; if (Array.isArray(v))
1778
- return v; if (typeof v === 'string')
1779
- 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),
1780
- y: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1781
- return undefined; if (Array.isArray(v))
1782
- return v; if (typeof v === 'string')
1783
- 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),
1784
- rotation: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1785
- return undefined; if (Array.isArray(v))
1786
- return v; if (typeof v === 'string')
1787
- 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),
1788
- scale: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1789
- return undefined; if (Array.isArray(v))
1790
- return v; if (typeof v === 'string')
1791
- 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),
1792
- originX: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1793
- return undefined; if (Array.isArray(v))
1794
- return v; if (typeof v === 'string')
1795
- 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),
1796
- originY: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1797
- return undefined; if (Array.isArray(v))
1798
- return v; if (typeof v === 'string')
1799
- 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),
1800
- }).strict();
2121
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2122
+ return undefined; if (Array.isArray(v))
2123
+ return v; if (typeof v === 'string') {
2124
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2125
+ return v;
2126
+ return Number(v);
2127
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2128
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2129
+ return undefined; if (Array.isArray(v))
2130
+ return v; if (typeof v === 'string') {
2131
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2132
+ return v;
2133
+ return Number(v);
2134
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2135
+ rotation: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2136
+ return undefined; if (Array.isArray(v))
2137
+ return v; if (typeof v === 'string') {
2138
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2139
+ return v;
2140
+ return Number(v);
2141
+ } return v; }), zod_1.z.number().gte(-360).lte(360)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2142
+ scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2143
+ return undefined; if (Array.isArray(v))
2144
+ return v; if (typeof v === 'string') {
2145
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2146
+ return v;
2147
+ return Number(v);
2148
+ } return v; }), zod_1.z.number().gte(0.01).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2149
+ originX: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2150
+ return undefined; if (Array.isArray(v))
2151
+ return v; if (typeof v === 'string') {
2152
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2153
+ return v;
2154
+ return Number(v);
2155
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2156
+ originY: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2157
+ return undefined; if (Array.isArray(v))
2158
+ return v; if (typeof v === 'string') {
2159
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2160
+ return v;
2161
+ return Number(v);
2162
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5),
2163
+ });
1801
2164
  exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1802
2165
  /**
1803
2166
  * An arrow shape pointing to the right by default.
@@ -1806,23 +2169,35 @@ exports.svgTransformSchema = exports.svgpropertiesSvgTransformSchema;
1806
2169
  */
1807
2170
  exports.svgshapesSvgArrowShapeSchema = zod_1.z.object({
1808
2171
  type: zod_1.z.enum(["arrow"]),
1809
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1810
- return undefined; if (Array.isArray(v))
1811
- return v; if (typeof v === 'string')
1812
- 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))),
1813
- headWidth: 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
- 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))),
1817
- headLength: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1818
- return undefined; if (Array.isArray(v))
1819
- return v; if (typeof v === 'string')
1820
- 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))),
1821
- shaftWidth: 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
- 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))),
1825
- }).strict();
2172
+ length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2173
+ return undefined; if (Array.isArray(v))
2174
+ return v; if (typeof v === 'string') {
2175
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2176
+ return v;
2177
+ return Number(v);
2178
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2179
+ headWidth: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2180
+ return undefined; if (Array.isArray(v))
2181
+ return v; if (typeof v === 'string') {
2182
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2183
+ return v;
2184
+ return Number(v);
2185
+ } return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2186
+ headLength: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2187
+ return undefined; if (Array.isArray(v))
2188
+ return v; if (typeof v === 'string') {
2189
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2190
+ return v;
2191
+ return Number(v);
2192
+ } return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2193
+ shaftWidth: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2194
+ return undefined; if (Array.isArray(v))
2195
+ return v; if (typeof v === 'string') {
2196
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2197
+ return v;
2198
+ return Number(v);
2199
+ } return v; }), zod_1.z.number().gte(1).lte(1000)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2200
+ });
1826
2201
  exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1827
2202
  /**
1828
2203
  * A perfect circle shape defined by its radius.
@@ -1831,11 +2206,14 @@ exports.svgArrowShapeSchema = exports.svgshapesSvgArrowShapeSchema;
1831
2206
  */
1832
2207
  exports.svgshapesSvgCircleShapeSchema = zod_1.z.object({
1833
2208
  type: zod_1.z.enum(["circle"]),
1834
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1835
- return undefined; if (Array.isArray(v))
1836
- return v; if (typeof v === 'string')
1837
- 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))),
1838
- }).strict();
2209
+ radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2210
+ return undefined; if (Array.isArray(v))
2211
+ return v; if (typeof v === 'string') {
2212
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2213
+ return v;
2214
+ return Number(v);
2215
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2216
+ });
1839
2217
  exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1840
2218
  /**
1841
2219
  * A cross or plus shape with equal or different arm lengths.
@@ -1844,19 +2222,28 @@ exports.svgCircleShapeSchema = exports.svgshapesSvgCircleShapeSchema;
1844
2222
  */
1845
2223
  exports.svgshapesSvgCrossShapeSchema = zod_1.z.object({
1846
2224
  type: zod_1.z.enum(["cross"]),
1847
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1848
- return undefined; if (Array.isArray(v))
1849
- return v; if (typeof v === 'string')
1850
- 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))),
1851
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1852
- return undefined; if (Array.isArray(v))
1853
- return v; if (typeof v === 'string')
1854
- 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))),
1855
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1856
- return undefined; if (Array.isArray(v))
1857
- return v; if (typeof v === 'string')
1858
- 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))),
1859
- }).strict();
2225
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2226
+ return undefined; if (Array.isArray(v))
2227
+ return v; if (typeof v === 'string') {
2228
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2229
+ return v;
2230
+ return Number(v);
2231
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2232
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2233
+ return undefined; if (Array.isArray(v))
2234
+ return v; if (typeof v === 'string') {
2235
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2236
+ return v;
2237
+ return Number(v);
2238
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2239
+ thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2240
+ return undefined; if (Array.isArray(v))
2241
+ return v; if (typeof v === 'string') {
2242
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2243
+ return v;
2244
+ return Number(v);
2245
+ } return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2246
+ });
1860
2247
  exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1861
2248
  /**
1862
2249
  * An ellipse (oval) shape with separate horizontal and vertical radii.
@@ -1865,15 +2252,21 @@ exports.svgCrossShapeSchema = exports.svgshapesSvgCrossShapeSchema;
1865
2252
  */
1866
2253
  exports.svgshapesSvgEllipseShapeSchema = zod_1.z.object({
1867
2254
  type: zod_1.z.enum(["ellipse"]),
1868
- radiusX: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1869
- return undefined; if (Array.isArray(v))
1870
- return v; if (typeof v === 'string')
1871
- 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))),
1872
- radiusY: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1873
- return undefined; if (Array.isArray(v))
1874
- return v; if (typeof v === 'string')
1875
- 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))),
1876
- }).strict();
2255
+ radiusX: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2256
+ return undefined; if (Array.isArray(v))
2257
+ return v; if (typeof v === 'string') {
2258
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2259
+ return v;
2260
+ return Number(v);
2261
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2262
+ radiusY: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2263
+ return undefined; if (Array.isArray(v))
2264
+ return v; if (typeof v === 'string') {
2265
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2266
+ return v;
2267
+ return Number(v);
2268
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2269
+ });
1877
2270
  exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
1878
2271
  /**
1879
2272
  * A heart shape commonly used for love/like icons.
@@ -1882,11 +2275,14 @@ exports.svgEllipseShapeSchema = exports.svgshapesSvgEllipseShapeSchema;
1882
2275
  */
1883
2276
  exports.svgshapesSvgHeartShapeSchema = zod_1.z.object({
1884
2277
  type: zod_1.z.enum(["heart"]),
1885
- size: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1886
- return undefined; if (Array.isArray(v))
1887
- return v; if (typeof v === 'string')
1888
- 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))),
1889
- }).strict();
2278
+ size: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2279
+ return undefined; if (Array.isArray(v))
2280
+ return v; if (typeof v === 'string') {
2281
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2282
+ return v;
2283
+ return Number(v);
2284
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2285
+ });
1890
2286
  exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
1891
2287
  /**
1892
2288
  * A straight line shape with a specified length and thickness.
@@ -1895,15 +2291,21 @@ exports.svgHeartShapeSchema = exports.svgshapesSvgHeartShapeSchema;
1895
2291
  */
1896
2292
  exports.svgshapesSvgLineShapeSchema = zod_1.z.object({
1897
2293
  type: zod_1.z.enum(["line"]),
1898
- length: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1899
- return undefined; if (Array.isArray(v))
1900
- return v; if (typeof v === 'string')
1901
- 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))),
1902
- thickness: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1903
- return undefined; if (Array.isArray(v))
1904
- return v; if (typeof v === 'string')
1905
- 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))),
1906
- }).strict();
2294
+ length: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2295
+ return undefined; if (Array.isArray(v))
2296
+ return v; if (typeof v === 'string') {
2297
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2298
+ return v;
2299
+ return Number(v);
2300
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2301
+ thickness: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2302
+ return undefined; if (Array.isArray(v))
2303
+ return v; if (typeof v === 'string') {
2304
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2305
+ return v;
2306
+ return Number(v);
2307
+ } return v; }), zod_1.z.number().gte(1).lte(500)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2308
+ });
1907
2309
  exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
1908
2310
  /**
1909
2311
  * A custom shape defined by SVG path data.
@@ -1925,7 +2327,7 @@ exports.svgLineShapeSchema = exports.svgshapesSvgLineShapeSchema;
1925
2327
  exports.svgshapesSvgPathShapeSchema = zod_1.z.object({
1926
2328
  type: zod_1.z.enum(["path"]),
1927
2329
  d: zod_1.z.string().min(1).max(100000),
1928
- }).strict();
2330
+ });
1929
2331
  exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
1930
2332
  /**
1931
2333
  * A regular polygon shape with a specified number of sides.
@@ -1935,15 +2337,21 @@ exports.svgPathShapeSchema = exports.svgshapesSvgPathShapeSchema;
1935
2337
  */
1936
2338
  exports.svgshapesSvgPolygonShapeSchema = zod_1.z.object({
1937
2339
  type: zod_1.z.enum(["polygon"]),
1938
- sides: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1939
- return undefined; if (Array.isArray(v))
1940
- return v; if (typeof v === 'string')
1941
- 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))),
1942
- radius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1943
- return undefined; if (Array.isArray(v))
1944
- return v; if (typeof v === 'string')
1945
- 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))),
1946
- }).strict();
2340
+ sides: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2341
+ return undefined; if (Array.isArray(v))
2342
+ return v; if (typeof v === 'string') {
2343
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2344
+ return v;
2345
+ return Number(v);
2346
+ } return v; }), zod_1.z.number().int().gte(3).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2347
+ radius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2348
+ return undefined; if (Array.isArray(v))
2349
+ return v; if (typeof v === 'string') {
2350
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2351
+ return v;
2352
+ return Number(v);
2353
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2354
+ });
1947
2355
  exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
1948
2356
  /**
1949
2357
  * A rectangle shape with optional rounded corners.
@@ -1952,19 +2360,28 @@ exports.svgPolygonShapeSchema = exports.svgshapesSvgPolygonShapeSchema;
1952
2360
  */
1953
2361
  exports.svgshapesSvgRectangleShapeSchema = zod_1.z.object({
1954
2362
  type: zod_1.z.enum(["rectangle"]),
1955
- width: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1956
- return undefined; if (Array.isArray(v))
1957
- return v; if (typeof v === 'string')
1958
- 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))),
1959
- height: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1960
- return undefined; if (Array.isArray(v))
1961
- return v; if (typeof v === 'string')
1962
- 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))),
1963
- cornerRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1964
- return undefined; if (Array.isArray(v))
1965
- return v; if (typeof v === 'string')
1966
- 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),
1967
- }).strict();
2363
+ width: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2364
+ return undefined; if (Array.isArray(v))
2365
+ return v; if (typeof v === 'string') {
2366
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2367
+ return v;
2368
+ return Number(v);
2369
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2370
+ height: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2371
+ return undefined; if (Array.isArray(v))
2372
+ return v; if (typeof v === 'string') {
2373
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2374
+ return v;
2375
+ return Number(v);
2376
+ } return v; }), zod_1.z.number().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2377
+ cornerRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2378
+ return undefined; if (Array.isArray(v))
2379
+ return v; if (typeof v === 'string') {
2380
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2381
+ return v;
2382
+ return Number(v);
2383
+ } return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
2384
+ });
1968
2385
  exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
1969
2386
  /**
1970
2387
  * A ring (donut/annulus) shape - a circle with a circular hole in the center.
@@ -1973,15 +2390,21 @@ exports.svgRectangleShapeSchema = exports.svgshapesSvgRectangleShapeSchema;
1973
2390
  */
1974
2391
  exports.svgshapesSvgRingShapeSchema = zod_1.z.object({
1975
2392
  type: zod_1.z.enum(["ring"]),
1976
- outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1977
- return undefined; if (Array.isArray(v))
1978
- return v; if (typeof v === 'string')
1979
- 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))),
1980
- innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1981
- return undefined; if (Array.isArray(v))
1982
- return v; if (typeof v === 'string')
1983
- 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))),
1984
- }).strict();
2393
+ outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2394
+ return undefined; if (Array.isArray(v))
2395
+ return v; if (typeof v === 'string') {
2396
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2397
+ return v;
2398
+ return Number(v);
2399
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2400
+ innerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2401
+ return undefined; if (Array.isArray(v))
2402
+ return v; if (typeof v === 'string') {
2403
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2404
+ return v;
2405
+ return Number(v);
2406
+ } return v; }), zod_1.z.number().gte(0).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2407
+ });
1985
2408
  exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
1986
2409
  /**
1987
2410
  * A star shape with a specified number of points.
@@ -1991,19 +2414,28 @@ exports.svgRingShapeSchema = exports.svgshapesSvgRingShapeSchema;
1991
2414
  */
1992
2415
  exports.svgshapesSvgStarShapeSchema = zod_1.z.object({
1993
2416
  type: zod_1.z.enum(["star"]),
1994
- points: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1995
- return undefined; if (Array.isArray(v))
1996
- return v; if (typeof v === 'string')
1997
- 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))),
1998
- outerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
1999
- return undefined; if (Array.isArray(v))
2000
- return v; if (typeof v === 'string')
2001
- 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))),
2002
- innerRadius: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2003
- return undefined; if (Array.isArray(v))
2004
- return v; if (typeof v === 'string')
2005
- 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))),
2006
- }).strict();
2417
+ points: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2418
+ return undefined; if (Array.isArray(v))
2419
+ return v; if (typeof v === 'string') {
2420
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2421
+ return v;
2422
+ return Number(v);
2423
+ } return v; }), zod_1.z.number().int().gte(3).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2424
+ outerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2425
+ return undefined; if (Array.isArray(v))
2426
+ return v; if (typeof v === 'string') {
2427
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2428
+ return v;
2429
+ return Number(v);
2430
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2431
+ innerRadius: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2432
+ return undefined; if (Array.isArray(v))
2433
+ return v; if (typeof v === 'string') {
2434
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2435
+ return v;
2436
+ return Number(v);
2437
+ } return v; }), zod_1.z.number().gte(1).lte(2048)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2438
+ });
2007
2439
  exports.svgStarShapeSchema = exports.svgshapesSvgStarShapeSchema;
2008
2440
  /**
2009
2441
  * The shape definition for an SVG asset. Each shape type has its own specific
@@ -2076,28 +2508,28 @@ exports.svgassetSvgAssetSchema = zod_1.z.object({
2076
2508
  stroke: zod_1.z.optional(exports.svgpropertiesSvgStrokeSchema),
2077
2509
  shadow: zod_1.z.optional(exports.svgpropertiesSvgShadowSchema),
2078
2510
  transform: zod_1.z.optional(exports.svgpropertiesSvgTransformSchema),
2079
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2080
- return undefined; if (Array.isArray(v))
2081
- return v; if (typeof v === 'string')
2082
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2083
- return undefined; if (Array.isArray(v))
2084
- return v; if (typeof v === 'string')
2085
- 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),
2086
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2087
- return undefined; if (Array.isArray(v))
2088
- return v; if (typeof v === 'string')
2089
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2090
- return undefined; if (Array.isArray(v))
2091
- return v; if (typeof v === 'string')
2092
- 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))))),
2093
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2094
- return undefined; if (Array.isArray(v))
2095
- return v; if (typeof v === 'string')
2096
- return Number(v); return v; }), zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2097
- return undefined; if (Array.isArray(v))
2098
- return v; if (typeof v === 'string')
2099
- 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))))),
2100
- }).strict().superRefine((data, ctx) => {
2511
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2512
+ return undefined; if (Array.isArray(v))
2513
+ return v; if (typeof v === 'string') {
2514
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2515
+ return v;
2516
+ return Number(v);
2517
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
2518
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2519
+ return undefined; if (Array.isArray(v))
2520
+ return v; if (typeof v === 'string') {
2521
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2522
+ return v;
2523
+ return Number(v);
2524
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2525
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2526
+ return undefined; if (Array.isArray(v))
2527
+ return v; if (typeof v === 'string') {
2528
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2529
+ return v;
2530
+ return Number(v);
2531
+ } return v; }), zod_1.z.number().int().gte(1).lte(4096)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2532
+ }).superRefine((data, ctx) => {
2101
2533
  const hasShape = data.shape !== undefined;
2102
2534
  const hasSrc = data.src !== undefined && data.src.trim() !== "";
2103
2535
  if (!hasShape && !hasSrc) {
@@ -2134,7 +2566,7 @@ exports.svgAssetSchema = exports.svgassetSvgAssetSchema;
2134
2566
  exports.templaterenderTemplateRenderSchema = zod_1.z.object({
2135
2567
  id: zod_1.z.string(),
2136
2568
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2137
- }).strict();
2569
+ });
2138
2570
  exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2139
2571
  /**
2140
2572
  * Horizontal and vertical alignment properties for text.
@@ -2142,36 +2574,48 @@ exports.templateRenderSchema = exports.templaterenderTemplateRenderSchema;
2142
2574
  exports.textpropertiesTextAlignmentSchema = zod_1.z.object({
2143
2575
  horizontal: zod_1.z.optional(zod_1.z.enum(["left", "center", "right"])),
2144
2576
  vertical: zod_1.z.optional(zod_1.z.enum(["top", "center", "bottom"])),
2145
- }).strict();
2577
+ });
2146
2578
  exports.textAlignmentSchema = exports.textpropertiesTextAlignmentSchema;
2147
2579
  /**
2148
2580
  * Animation properties for text entrance effects.
2149
2581
  */
2150
2582
  exports.textpropertiesTextAnimationSchema = zod_1.z.object({
2151
2583
  preset: zod_1.z.enum(["typewriter"]),
2152
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2153
- return undefined; if (Array.isArray(v))
2154
- return v; if (typeof v === 'string')
2155
- 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)))),
2156
- }).strict();
2584
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2585
+ return undefined; if (Array.isArray(v))
2586
+ return v; if (typeof v === 'string') {
2587
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2588
+ return v;
2589
+ return Number(v);
2590
+ } return v; }), zod_1.z.number().gte(0.1).lte(30)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2591
+ });
2157
2592
  /**
2158
2593
  * Displays a background box behind the text.
2159
2594
  */
2160
2595
  exports.textpropertiesTextBackgroundSchema = zod_1.z.object({
2161
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2162
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2163
- return undefined; if (Array.isArray(v))
2164
- return v; if (typeof v === 'string')
2165
- 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)))),
2166
- padding: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2167
- return undefined; if (Array.isArray(v))
2168
- return v; if (typeof v === 'string')
2169
- 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)))),
2170
- borderRadius: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2171
- return undefined; if (Array.isArray(v))
2172
- return v; if (typeof v === 'string')
2173
- 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)))),
2174
- }).strict();
2596
+ 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*\}\}$/)])),
2597
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2598
+ return undefined; if (Array.isArray(v))
2599
+ return v; if (typeof v === 'string') {
2600
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2601
+ return v;
2602
+ return Number(v);
2603
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2604
+ padding: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2605
+ return undefined; if (Array.isArray(v))
2606
+ return v; if (typeof v === 'string') {
2607
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2608
+ return v;
2609
+ return Number(v);
2610
+ } return v; }), zod_1.z.number().gte(0).lte(100)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2611
+ borderRadius: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2612
+ return undefined; if (Array.isArray(v))
2613
+ return v; if (typeof v === 'string') {
2614
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2615
+ return v;
2616
+ return Number(v);
2617
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2618
+ });
2175
2619
  exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2176
2620
  /**
2177
2621
  * Font properties for text.
@@ -2179,34 +2623,49 @@ exports.textBackgroundSchema = exports.textpropertiesTextBackgroundSchema;
2179
2623
  exports.textpropertiesTextFontSchema = zod_1.z.object({
2180
2624
  family: zod_1.z.optional(zod_1.z.string()),
2181
2625
  color: zod_1.z.optional(zod_1.z.string()),
2182
- opacity: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2183
- return undefined; if (Array.isArray(v))
2184
- return v; if (typeof v === 'string')
2185
- 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()))),
2186
- size: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2187
- return undefined; if (Array.isArray(v))
2188
- return v; if (typeof v === 'string')
2189
- 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()))),
2190
- weight: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2191
- return undefined; if (Array.isArray(v))
2192
- return v; if (typeof v === 'string')
2193
- 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()))),
2194
- lineHeight: zod_1.z.optional(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
- 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()))),
2198
- }).strict();
2626
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2627
+ return undefined; if (Array.isArray(v))
2628
+ return v; if (typeof v === 'string') {
2629
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2630
+ return v;
2631
+ return Number(v);
2632
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2633
+ size: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2634
+ return undefined; if (Array.isArray(v))
2635
+ return v; if (typeof v === 'string') {
2636
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2637
+ return v;
2638
+ return Number(v);
2639
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2640
+ weight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2641
+ return undefined; if (Array.isArray(v))
2642
+ return v; if (typeof v === 'string') {
2643
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2644
+ return v;
2645
+ return Number(v);
2646
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2647
+ lineHeight: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2648
+ return undefined; if (Array.isArray(v))
2649
+ return v; if (typeof v === 'string') {
2650
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2651
+ return v;
2652
+ return Number(v);
2653
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2654
+ });
2199
2655
  exports.textFontSchema = exports.textpropertiesTextFontSchema;
2200
2656
  /**
2201
2657
  * Text stroke (outline) properties.
2202
2658
  */
2203
2659
  exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2204
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2205
- return undefined; if (Array.isArray(v))
2206
- return v; if (typeof v === 'string')
2207
- 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)))),
2208
- color: zod_1.z.optional(zod_1.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),
2209
- }).strict();
2660
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2661
+ return undefined; if (Array.isArray(v))
2662
+ return v; if (typeof v === 'string') {
2663
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2664
+ return v;
2665
+ return Number(v);
2666
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2667
+ 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*\}\}$/)])),
2668
+ });
2210
2669
  /**
2211
2670
  * The TextAsset is used to add text and titles to a video. The text can be styled with built in and custom
2212
2671
  * [Fonts](#tocs_font). You can also add a background bounding box used to control wrapping and overflow. Emoticons are also supported.
@@ -2215,21 +2674,27 @@ exports.textpropertiesTextStrokeSchema = zod_1.z.object({
2215
2674
  exports.textassetTextAssetSchema = zod_1.z.object({
2216
2675
  type: zod_1.z.enum(["text"]),
2217
2676
  text: zod_1.z.string(),
2218
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2219
- return undefined; if (Array.isArray(v))
2220
- return v; if (typeof v === 'string')
2221
- 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()))),
2222
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2223
- return undefined; if (Array.isArray(v))
2224
- return v; if (typeof v === 'string')
2225
- 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()))),
2677
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2678
+ return undefined; if (Array.isArray(v))
2679
+ return v; if (typeof v === 'string') {
2680
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2681
+ return v;
2682
+ return Number(v);
2683
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2684
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2685
+ return undefined; if (Array.isArray(v))
2686
+ return v; if (typeof v === 'string') {
2687
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2688
+ return v;
2689
+ return Number(v);
2690
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2226
2691
  font: zod_1.z.optional(exports.textpropertiesTextFontSchema),
2227
2692
  background: zod_1.z.optional(exports.textpropertiesTextBackgroundSchema),
2228
2693
  alignment: zod_1.z.optional(exports.textpropertiesTextAlignmentSchema),
2229
2694
  stroke: zod_1.z.optional(exports.textpropertiesTextStrokeSchema),
2230
2695
  animation: zod_1.z.optional(exports.textpropertiesTextAnimationSchema),
2231
2696
  ellipsis: zod_1.z.optional(zod_1.z.string()),
2232
- }).strict();
2697
+ });
2233
2698
  exports.textAssetSchema = exports.textassetTextAssetSchema;
2234
2699
  /**
2235
2700
  * The TextToImageAsset lets you create a dynamic image from a text prompt.
@@ -2237,30 +2702,42 @@ exports.textAssetSchema = exports.textassetTextAssetSchema;
2237
2702
  exports.texttoimageassetTextToImageAssetSchema = zod_1.z.object({
2238
2703
  type: zod_1.z.enum(["text-to-image"]),
2239
2704
  prompt: zod_1.z.string(),
2240
- width: zod_1.z.optional(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
- 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()))),
2244
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2245
- return undefined; if (Array.isArray(v))
2246
- return v; if (typeof v === 'string')
2247
- 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()))),
2705
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2706
+ return undefined; if (Array.isArray(v))
2707
+ return v; if (typeof v === 'string') {
2708
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2709
+ return v;
2710
+ return Number(v);
2711
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2712
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2713
+ return undefined; if (Array.isArray(v))
2714
+ return v; if (typeof v === 'string') {
2715
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2716
+ return v;
2717
+ return Number(v);
2718
+ } return v; }), zod_1.z.number().int()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2248
2719
  crop: zod_1.z.optional(exports.cropCropSchema),
2249
- }).strict();
2720
+ });
2250
2721
  exports.textToImageAssetSchema = exports.texttoimageassetTextToImageAssetSchema;
2251
2722
  /**
2252
2723
  * Generate a thumbnail image for the video or image at a specific point from the timeline.
2253
2724
  */
2254
2725
  exports.thumbnailThumbnailSchema = zod_1.z.object({
2255
- capture: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2256
- return undefined; if (Array.isArray(v))
2257
- return v; if (typeof v === 'string')
2258
- 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())),
2259
- scale: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2260
- return undefined; if (Array.isArray(v))
2261
- return v; if (typeof v === 'string')
2262
- 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))),
2263
- }).strict();
2726
+ capture: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2727
+ return undefined; if (Array.isArray(v))
2728
+ return v; if (typeof v === 'string') {
2729
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2730
+ return v;
2731
+ return Number(v);
2732
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2733
+ scale: zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2734
+ return undefined; if (Array.isArray(v))
2735
+ return v; if (typeof v === 'string') {
2736
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2737
+ return v;
2738
+ return Number(v);
2739
+ } return v; }), zod_1.z.number().gte(0).lte(1)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
2740
+ });
2264
2741
  exports.thumbnailSchema = exports.thumbnailThumbnailSchema;
2265
2742
  /**
2266
2743
  * The output format, render range and type of media to generate.
@@ -2291,7 +2768,7 @@ exports.outputOutputSchema = zod_1.z.object({
2291
2768
  poster: zod_1.z.optional(exports.posterPosterSchema),
2292
2769
  thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
2293
2770
  destinations: zod_1.z.optional(zod_1.z.array(exports.destinationsDestinationsSchema)),
2294
- }).strict();
2771
+ });
2295
2772
  exports.outputSchema = exports.outputOutputSchema;
2296
2773
  /**
2297
2774
  * In and out transitions for a clip - i.e. fade in and fade out
@@ -2425,7 +2902,7 @@ exports.transitionTransitionSchema = zod_1.z.object({
2425
2902
  "shuffleTopLeftFast",
2426
2903
  "zoom",
2427
2904
  ])),
2428
- }).strict();
2905
+ });
2429
2906
  exports.transitionSchema = exports.transitionTransitionSchema;
2430
2907
  /**
2431
2908
  * Use a Tween to [animate properties over time](/docs/guide/architecting-an-application/animations/). The following properties are currently supported and can be animated:
@@ -2438,22 +2915,22 @@ exports.transitionSchema = exports.transitionTransitionSchema;
2438
2915
  * </ul>
2439
2916
  */
2440
2917
  exports.tweenTweenSchema = zod_1.z.object({
2441
- from: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2442
- return undefined; if (Array.isArray(v))
2443
- return v; if (typeof v === 'string')
2444
- 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())),
2445
- to: zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2446
- return undefined; if (Array.isArray(v))
2447
- return v; if (typeof v === 'string')
2448
- 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())),
2449
- start: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2450
- return undefined; if (Array.isArray(v))
2451
- return v; if (typeof v === 'string')
2452
- 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()))),
2453
- length: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2454
- return undefined; if (Array.isArray(v))
2455
- return v; if (typeof v === 'string')
2456
- 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()))),
2918
+ from: zod_1.z.optional(zod_1.z.unknown()),
2919
+ to: zod_1.z.optional(zod_1.z.unknown()),
2920
+ start: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2921
+ return undefined; if (Array.isArray(v))
2922
+ return v; if (typeof v === 'string') {
2923
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2924
+ return v;
2925
+ return Number(v);
2926
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2927
+ length: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2928
+ return undefined; if (Array.isArray(v))
2929
+ return v; if (typeof v === 'string') {
2930
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2931
+ return v;
2932
+ return Number(v);
2933
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2457
2934
  interpolation: zod_1.z.optional(zod_1.z.enum(["linear", "bezier", "constant"])),
2458
2935
  easing: zod_1.z.optional(zod_1.z.enum([
2459
2936
  "ease",
@@ -2485,67 +2962,124 @@ exports.tweenTweenSchema = zod_1.z.object({
2485
2962
  "easeInOutCirc",
2486
2963
  "easeInOutBack",
2487
2964
  ])),
2488
- }).strict();
2965
+ });
2489
2966
  exports.tweenSchema = exports.tweenTweenSchema;
2490
2967
  /**
2491
2968
  * 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.
2492
2969
  */
2493
2970
  exports.audioassetAudioAssetSchema = zod_1.z.object({
2494
2971
  type: zod_1.z.enum(["audio"]),
2495
- 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/),
2496
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2497
- return undefined; if (Array.isArray(v))
2498
- return v; if (typeof v === 'string')
2499
- 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()))),
2500
- volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2972
+ src: zod_1.z.string().min(1).regex(/\S/),
2973
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2974
+ return undefined; if (Array.isArray(v))
2975
+ return v; if (typeof v === 'string') {
2976
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2977
+ return v;
2978
+ return Number(v);
2979
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2980
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2981
+ return undefined; if (Array.isArray(v))
2982
+ return v; if (typeof v === 'string') {
2983
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2984
+ return v;
2985
+ return Number(v);
2986
+ } 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)])),
2987
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2501
2988
  return undefined; if (Array.isArray(v))
2502
- return v; if (typeof v === 'string')
2503
- 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)])),
2504
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2505
- return undefined; if (Array.isArray(v))
2506
- return v; if (typeof v === 'string')
2507
- 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)))),
2989
+ return v; if (typeof v === 'string') {
2990
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
2991
+ return v;
2992
+ return Number(v);
2993
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2508
2994
  effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2509
- }).strict();
2995
+ });
2510
2996
  exports.audioAssetSchema = exports.audioassetAudioAssetSchema;
2511
2997
  /**
2512
2998
  * Offsets the position of an asset horizontally or vertically by a relative distance.
2513
2999
  */
2514
3000
  exports.offsetOffsetSchema = zod_1.z.object({
2515
- x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2516
- return undefined; if (Array.isArray(v))
2517
- return v; if (typeof v === 'string')
2518
- 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)])),
2519
- y: 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
- 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)])),
2523
- }).strict();
3001
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3002
+ return undefined; if (Array.isArray(v))
3003
+ return v; if (typeof v === 'string') {
3004
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3005
+ return v;
3006
+ return Number(v);
3007
+ } 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)])),
3008
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3009
+ return undefined; if (Array.isArray(v))
3010
+ return v; if (typeof v === 'string') {
3011
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3012
+ return v;
3013
+ return Number(v);
3014
+ } 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)])),
3015
+ });
2524
3016
  exports.offsetSchema = exports.offsetOffsetSchema;
2525
3017
  /**
2526
3018
  * Rotate a clip by the specified angle in degrees. Rotation origin is set based on the clips `position`.
2527
3019
  */
2528
3020
  exports.rotatetransformationRotateTransformationSchema = zod_1.z.object({
2529
- angle: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2530
- return undefined; if (Array.isArray(v))
2531
- return v; if (typeof v === 'string')
2532
- 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)])),
2533
- }).strict();
3021
+ angle: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3022
+ return undefined; if (Array.isArray(v))
3023
+ return v; if (typeof v === 'string') {
3024
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3025
+ return v;
3026
+ return Number(v);
3027
+ } 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)])),
3028
+ });
2534
3029
  exports.rotateTransformationSchema = exports.rotatetransformationRotateTransformationSchema;
2535
3030
  /**
2536
3031
  * 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.
2537
3032
  */
2538
3033
  exports.skewtransformationSkewTransformationSchema = zod_1.z.object({
2539
- x: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3034
+ x: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3035
+ return undefined; if (Array.isArray(v))
3036
+ return v; if (typeof v === 'string') {
3037
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3038
+ return v;
3039
+ return Number(v);
3040
+ } 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)])),
3041
+ y: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3042
+ return undefined; if (Array.isArray(v))
3043
+ return v; if (typeof v === 'string') {
3044
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3045
+ return v;
3046
+ return Number(v);
3047
+ } 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)])),
3048
+ });
3049
+ exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
3050
+ /**
3051
+ * 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.
3052
+ */
3053
+ exports.texttospeechassetTextToSpeechAssetSchema = zod_1.z.object({
3054
+ type: zod_1.z.enum(["text-to-speech"]),
3055
+ text: zod_1.z.string(),
3056
+ voice: zod_1.z.string(),
3057
+ language: zod_1.z.optional(zod_1.z.string()),
3058
+ newscaster: zod_1.z.optional(zod_1.z.boolean()).default(false),
3059
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2540
3060
  return undefined; if (Array.isArray(v))
2541
- return v; if (typeof v === 'string')
2542
- 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)])),
2543
- y: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3061
+ return v; if (typeof v === 'string') {
3062
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3063
+ return v;
3064
+ return Number(v);
3065
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3066
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3067
+ return undefined; if (Array.isArray(v))
3068
+ return v; if (typeof v === 'string') {
3069
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3070
+ return v;
3071
+ return Number(v);
3072
+ } 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)])),
3073
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2544
3074
  return undefined; if (Array.isArray(v))
2545
- return v; if (typeof v === 'string')
2546
- 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)])),
2547
- }).strict();
2548
- exports.skewTransformationSchema = exports.skewtransformationSkewTransformationSchema;
3075
+ return v; if (typeof v === 'string') {
3076
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3077
+ return v;
3078
+ return Number(v);
3079
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3080
+ effect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
3081
+ });
3082
+ exports.textToSpeechAssetSchema = exports.texttospeechassetTextToSpeechAssetSchema;
2549
3083
  /**
2550
3084
  * **Notice: The TitleAsset is deprecated, use the [TextAsset](#tocs_textasset) instead.**
2551
3085
  *
@@ -2592,7 +3126,7 @@ exports.titleassetTitleAssetSchema = zod_1.z.object({
2592
3126
  "center",
2593
3127
  ])),
2594
3128
  offset: zod_1.z.optional(exports.offsetOffsetSchema),
2595
- }).strict();
3129
+ });
2596
3130
  exports.titleAssetSchema = exports.titleassetTitleAssetSchema;
2597
3131
  /**
2598
3132
  * 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.
@@ -2601,31 +3135,40 @@ exports.transformationTransformationSchema = zod_1.z.object({
2601
3135
  rotate: zod_1.z.optional(exports.rotatetransformationRotateTransformationSchema),
2602
3136
  skew: zod_1.z.optional(exports.skewtransformationSkewTransformationSchema),
2603
3137
  flip: zod_1.z.optional(exports.fliptransformationFlipTransformationSchema),
2604
- }).strict();
3138
+ });
2605
3139
  exports.transformationSchema = exports.transformationTransformationSchema;
2606
3140
  /**
2607
3141
  * 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.
2608
3142
  */
2609
3143
  exports.videoassetVideoAssetSchema = zod_1.z.object({
2610
3144
  type: zod_1.z.enum(["video"]),
2611
- 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/),
3145
+ src: zod_1.z.string().min(1).regex(/\S/),
2612
3146
  transcode: zod_1.z.optional(zod_1.z.boolean()),
2613
- trim: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2614
- return undefined; if (Array.isArray(v))
2615
- return v; if (typeof v === 'string')
2616
- 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()))),
2617
- volume: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3147
+ trim: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2618
3148
  return undefined; if (Array.isArray(v))
2619
- return v; if (typeof v === 'string')
2620
- 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)])),
3149
+ return v; if (typeof v === 'string') {
3150
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3151
+ return v;
3152
+ return Number(v);
3153
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3154
+ volume: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3155
+ return undefined; if (Array.isArray(v))
3156
+ return v; if (typeof v === 'string') {
3157
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3158
+ return v;
3159
+ return Number(v);
3160
+ } 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)])),
2621
3161
  volumeEffect: zod_1.z.optional(zod_1.z.enum(["none", "fadeIn", "fadeOut", "fadeInFadeOut"])),
2622
- speed: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2623
- return undefined; if (Array.isArray(v))
2624
- return v; if (typeof v === 'string')
2625
- 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)))),
3162
+ speed: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3163
+ return undefined; if (Array.isArray(v))
3164
+ return v; if (typeof v === 'string') {
3165
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3166
+ return v;
3167
+ return Number(v);
3168
+ } return v; }), zod_1.z.number().gte(0).lte(10)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2626
3169
  crop: zod_1.z.optional(exports.cropCropSchema),
2627
3170
  chromaKey: zod_1.z.optional(exports.chromakeyChromaKeySchema),
2628
- }).strict();
3171
+ });
2629
3172
  exports.videoAssetSchema = exports.videoassetVideoAssetSchema;
2630
3173
  /**
2631
3174
  * 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.
@@ -2644,6 +3187,7 @@ exports.assetAssetSchema = zod_1.z.discriminatedUnion("type", [
2644
3187
  exports.svgassetSvgAssetSchema,
2645
3188
  exports.texttoimageassetTextToImageAssetSchema,
2646
3189
  exports.imagetovideoassetImageToVideoAssetSchema,
3190
+ exports.texttospeechassetTextToSpeechAssetSchema,
2647
3191
  ]);
2648
3192
  exports.assetSchema = exports.assetAssetSchema;
2649
3193
  /**
@@ -2652,30 +3196,47 @@ exports.assetSchema = exports.assetAssetSchema;
2652
3196
  exports.clipClipSchema = zod_1.z.object({
2653
3197
  asset: exports.assetAssetSchema,
2654
3198
  start: zod_1.z.union([
2655
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2656
- return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v))
2657
- 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))),
2658
- zod_1.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),
3199
+ zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3200
+ return undefined; if (Array.isArray(v))
3201
+ return v; if (typeof v === 'string') {
3202
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3203
+ return v;
3204
+ return Number(v);
3205
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3206
+ 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*\}\}$/)]),
2659
3207
  ]),
2660
3208
  length: zod_1.z.union([
2661
- zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2662
- return undefined; if (typeof v === 'string' && /^-?\d+(\.\d+)?$/.test(v))
2663
- 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))),
2664
- zod_1.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),
3209
+ zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3210
+ return undefined; if (Array.isArray(v))
3211
+ return v; if (typeof v === 'string') {
3212
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3213
+ return v;
3214
+ return Number(v);
3215
+ } return v; }), zod_1.z.number().gte(0)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
3216
+ 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*\}\}$/)]),
2665
3217
  ]),
2666
3218
  fit: zod_1.z.optional(zod_1.z.enum(["cover", "contain", "crop", "none"])),
2667
- scale: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3219
+ scale: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3220
+ return undefined; if (Array.isArray(v))
3221
+ return v; if (typeof v === 'string') {
3222
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3223
+ return v;
3224
+ return Number(v);
3225
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
3226
+ width: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3227
+ return undefined; if (Array.isArray(v))
3228
+ return v; if (typeof v === 'string') {
3229
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3230
+ return v;
3231
+ return Number(v);
3232
+ } return v; }), zod_1.z.number().gte(1).lte(3840)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3233
+ height: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2668
3234
  return undefined; if (Array.isArray(v))
2669
- return v; if (typeof v === 'string')
2670
- 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)])),
2671
- width: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2672
- return undefined; if (Array.isArray(v))
2673
- return v; if (typeof v === 'string')
2674
- 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)))),
2675
- height: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2676
- return undefined; if (Array.isArray(v))
2677
- return v; if (typeof v === 'string')
2678
- 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)))),
3235
+ return v; if (typeof v === 'string') {
3236
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3237
+ return v;
3238
+ return Number(v);
3239
+ } return v; }), zod_1.z.number().gte(1).lte(2160)), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2679
3240
  position: zod_1.z.optional(zod_1.z.enum([
2680
3241
  "top",
2681
3242
  "topRight",
@@ -2720,20 +3281,23 @@ exports.clipClipSchema = zod_1.z.object({
2720
3281
  "muted",
2721
3282
  "negative",
2722
3283
  ])),
2723
- opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2724
- return undefined; if (Array.isArray(v))
2725
- return v; if (typeof v === 'string')
2726
- 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)])),
3284
+ opacity: zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3285
+ return undefined; if (Array.isArray(v))
3286
+ return v; if (typeof v === 'string') {
3287
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3288
+ return v;
3289
+ return Number(v);
3290
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]), zod_1.z.array(exports.tweenTweenSchema)])),
2727
3291
  transform: zod_1.z.optional(exports.transformationTransformationSchema),
2728
- alias: zod_1.z.optional(zod_1.z.string().regex(/^[A-Za-z0-9_-]+$/)),
2729
- }).strict();
3292
+ 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*\}\}$/)])),
3293
+ });
2730
3294
  exports.clipSchema = exports.clipClipSchema;
2731
3295
  /**
2732
3296
  * 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.
2733
3297
  */
2734
3298
  exports.trackTrackSchema = zod_1.z.object({
2735
3299
  clips: zod_1.z.array(exports.clipClipSchema).min(1),
2736
- }).strict();
3300
+ });
2737
3301
  exports.trackSchema = exports.trackTrackSchema;
2738
3302
  /**
2739
3303
  * 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.
@@ -2744,7 +3308,7 @@ exports.timelineTimelineSchema = zod_1.z.object({
2744
3308
  fonts: zod_1.z.optional(zod_1.z.array(exports.fontFontSchema)),
2745
3309
  tracks: zod_1.z.array(exports.trackTrackSchema).min(1),
2746
3310
  cache: zod_1.z.optional(zod_1.z.boolean()),
2747
- }).strict();
3311
+ });
2748
3312
  exports.timelineSchema = exports.timelineTimelineSchema;
2749
3313
  /**
2750
3314
  * 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.
@@ -2755,10 +3319,7 @@ exports.editEditSchema = zod_1.z.object({
2755
3319
  merge: zod_1.z.optional(zod_1.z.array(exports.mergefieldMergeFieldSchema)),
2756
3320
  callback: zod_1.z.optional(zod_1.z.string()),
2757
3321
  disk: zod_1.z.optional(zod_1.z.enum(["local", "mount"])),
2758
- instance: zod_1.z.optional(zod_1.z.string()),
2759
- poster: zod_1.z.optional(exports.posterPosterSchema),
2760
- thumbnail: zod_1.z.optional(exports.thumbnailThumbnailSchema),
2761
- }).strict();
3322
+ });
2762
3323
  exports.editSchema = exports.editEditSchema;
2763
3324
  /**
2764
3325
  * The response data returned with the [RenderResponse](#tocs_renderresponse) including status and URL.
@@ -2777,21 +3338,27 @@ exports.renderresponsedataRenderResponseDataSchema = zod_1.z.object({
2777
3338
  "failed",
2778
3339
  ]),
2779
3340
  error: zod_1.z.optional(zod_1.z.string()),
2780
- duration: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2781
- return undefined; if (Array.isArray(v))
2782
- return v; if (typeof v === 'string')
2783
- 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()))),
2784
- renderTime: zod_1.z.optional(zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
2785
- return undefined; if (Array.isArray(v))
2786
- return v; if (typeof v === 'string')
2787
- 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()))),
3341
+ duration: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3342
+ return undefined; if (Array.isArray(v))
3343
+ return v; if (typeof v === 'string') {
3344
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3345
+ return v;
3346
+ return Number(v);
3347
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
3348
+ renderTime: zod_1.z.optional(zod_1.z.union([zod_1.z.preprocess(((v) => { if (v === '' || v === null || v === undefined)
3349
+ return undefined; if (Array.isArray(v))
3350
+ return v; if (typeof v === 'string') {
3351
+ if (/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(v))
3352
+ return v;
3353
+ return Number(v);
3354
+ } return v; }), zod_1.z.number()), zod_1.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
2788
3355
  url: zod_1.z.optional(zod_1.z.string()),
2789
3356
  poster: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2790
3357
  thumbnail: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
2791
3358
  data: zod_1.z.optional(exports.editEditSchema),
2792
3359
  created: zod_1.z.optional(zod_1.z.string()),
2793
3360
  updated: zod_1.z.optional(zod_1.z.string()),
2794
- }).strict();
3361
+ });
2795
3362
  exports.renderResponseDataSchema = exports.renderresponsedataRenderResponseDataSchema;
2796
3363
  /**
2797
3364
  * 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.
@@ -2800,7 +3367,7 @@ exports.renderresponseRenderResponseSchema = zod_1.z.object({
2800
3367
  success: zod_1.z.boolean(),
2801
3368
  message: zod_1.z.string(),
2802
3369
  response: exports.renderresponsedataRenderResponseDataSchema,
2803
- }).strict();
3370
+ });
2804
3371
  exports.renderResponseSchema = exports.renderresponseRenderResponseSchema;
2805
3372
  /**
2806
3373
  * The response data returned with the [TemplateDataResponse](#tocs_templatedataresponse).
@@ -2810,7 +3377,7 @@ exports.templatedataresponsedataTemplateDataResponseDataSchema = zod_1.z.object(
2810
3377
  name: zod_1.z.string(),
2811
3378
  owner: zod_1.z.string(),
2812
3379
  template: exports.editEditSchema,
2813
- }).strict();
3380
+ });
2814
3381
  exports.templateDataResponseDataSchema = exports.templatedataresponsedataTemplateDataResponseDataSchema;
2815
3382
  /**
2816
3383
  * The template data including the template name and [Edit](#tocs_edit).
@@ -2819,7 +3386,7 @@ exports.templatedataresponseTemplateDataResponseSchema = zod_1.z.object({
2819
3386
  success: zod_1.z.boolean(),
2820
3387
  message: zod_1.z.string(),
2821
3388
  response: exports.templatedataresponsedataTemplateDataResponseDataSchema,
2822
- }).strict();
3389
+ });
2823
3390
  exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataResponseSchema;
2824
3391
  /**
2825
3392
  * A template is a saved [Edit](#tocs_edit) than can be loaded and re-used.
@@ -2827,7 +3394,7 @@ exports.templateDataResponseSchema = exports.templatedataresponseTemplateDataRes
2827
3394
  exports.templateTemplateSchema = zod_1.z.object({
2828
3395
  name: zod_1.z.string(),
2829
3396
  template: zod_1.z.optional(exports.editEditSchema),
2830
- }).strict();
3397
+ });
2831
3398
  exports.templateSchema = exports.templateTemplateSchema;
2832
3399
  exports.postRenderRequest = zod_1.z.object({
2833
3400
  body: exports.editEditSchema,
@@ -2848,7 +3415,7 @@ exports.getRenderRequest = zod_1.z.object({
2848
3415
  query: zod_1.z.optional(zod_1.z.object({
2849
3416
  data: zod_1.z.optional(zod_1.z.boolean()),
2850
3417
  merged: zod_1.z.optional(zod_1.z.boolean()),
2851
- }).strict()),
3418
+ })),
2852
3419
  });
2853
3420
  /**
2854
3421
  * The render status details