@shotstack/shotstack-studio 2.0.0-beta.2 → 2.0.0-beta.21

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("zod");function J(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const j=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(c,i,j.get?j:{enumerable:!0,get:()=>e[i]})}}return c.default=e,Object.freeze(c)}const t=J(q),I=t.enum(["linear","bezier","constant"]),k=t.enum(["smooth","ease","easeIn","easeOut","easeInOut","easeInQuad","easeInCubic","easeInQuart","easeInQuint","easeInSine","easeInExpo","easeInCirc","easeInBack","easeOutQuad","easeOutCubic","easeOutQuart","easeOutQuint","easeOutSine","easeOutExpo","easeOutCirc","easeOutBack","easeInOutQuad","easeInOutCubic","easeInOutQuart","easeInOutQuint","easeInOutSine","easeInOutExpo","easeInOutCirc","easeInOutBack"]),o=t.object({from:t.number(),to:t.number(),start:t.number().min(0),length:t.number().positive(),interpolation:I.optional(),easing:k.optional()}).strict(),T=t.string().url("Invalid audio url format."),O=o.extend({from:t.number().min(0).max(1),to:t.number().min(0).max(1)}).array().or(t.number().min(0).max(1)),tt=t.enum(["none","fadeIn","fadeOut","fadeInFadeOut"]),m=t.object({type:t.literal("audio"),src:T,trim:t.number().optional(),volume:O.optional(),effect:tt.optional()}).strict(),r=t.string().regex(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})|transparent$/,"Invalid color format."),F=t.object({family:t.string().optional(),size:t.coerce.number().min(1).max(512).optional(),weight:t.number().optional(),color:r.optional(),lineHeight:t.number().min(0).max(10).optional(),opacity:t.number().min(0).max(1).optional()}).strict(),R=t.object({width:t.number().min(0).max(10).optional(),color:r.optional()}).strict(),w=t.object({color:r.optional(),opacity:t.number().min(0).max(1).optional(),padding:t.number().min(0).max(100).optional(),borderRadius:t.number().min(0).optional()}).strict(),P=t.object({horizontal:t.enum(["left","center","right"]).optional(),vertical:t.enum(["top","center","bottom"]).optional()}).strict(),et=/^alias:\/\/[a-zA-Z0-9_-]+$/,l=t.object({type:t.literal("caption"),src:t.union([t.string().url("Invalid subtitle URL format."),t.string().regex(et,"Invalid alias reference format.")]),font:F.optional(),stroke:R.optional(),background:w.optional(),alignment:P.optional(),width:t.number().min(1).optional(),height:t.number().min(1).optional(),trim:t.number().min(0).optional()}).strict(),ot=t.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"]),u=t.object({type:t.literal("html"),html:t.string(),css:t.string(),width:t.number().positive().optional(),height:t.number().positive().optional(),position:ot.optional()}).strict(),E=t.string().url("Invalid image url format."),V=t.object({top:t.number().min(0).optional(),right:t.number().min(0).optional(),bottom:t.number().min(0).optional(),left:t.number().min(0).optional()}).strict(),p=t.object({type:t.literal("image"),src:E,crop:V.optional()}).strict(),z=t.string().url("Invalid luma url format."),h=t.object({type:t.literal("luma"),src:z}).strict(),n=t.string().regex(/^#[A-Fa-f0-9]{6}$/,"Invalid hex color format"),nt=t.object({offset:t.number().min(0).max(1),color:n}).strict(),at=t.object({type:t.enum(["linear","radial"]).default("linear"),angle:t.number().min(0).max(360).default(0),stops:t.array(nt).min(2)}).strict(),it=t.object({width:t.number().min(0).default(0),color:n.default("#000000"),opacity:t.number().min(0).max(1).default(1)}).strict(),rt=t.object({family:t.string().default("Roboto"),size:t.number().min(8).max(500).default(48),weight:t.union([t.string(),t.number()]).default("400"),color:n.default("#000000"),opacity:t.number().min(0).max(1).default(1),background:n.optional(),stroke:it.optional()}).strict(),st=t.object({letterSpacing:t.number().default(0),lineHeight:t.number().min(.1).max(10).default(1.2),textTransform:t.enum(["none","uppercase","lowercase","capitalize"]).default("none"),textDecoration:t.enum(["none","underline","line-through"]).default("none"),gradient:at.optional()}).strict(),ct=t.object({offsetX:t.number().default(0),offsetY:t.number().default(0),blur:t.number().min(0).default(0),color:n.default("#000000"),opacity:t.number().min(0).max(1).default(.5)}).strict(),mt=t.object({width:t.number().min(0).default(0),color:n.default("#000000"),opacity:t.number().min(0).max(1).default(1),radius:t.number().min(0).default(0)}).strict(),lt=t.object({color:n.optional(),opacity:t.number().min(0).max(1).default(1)}).strict(),ut=t.union([t.number().min(0),t.object({top:t.number().min(0).default(0),right:t.number().min(0).default(0),bottom:t.number().min(0).default(0),left:t.number().min(0).default(0)}).strict()]),pt=t.object({horizontal:t.enum(["left","center","right"]).default("left"),vertical:t.enum(["top","middle","bottom"]).default("middle")}).strict(),ht=t.object({preset:t.enum(["typewriter","fadeIn","slideIn","ascend","shift","movingLetters"]),duration:t.number().min(.1).max(60).optional(),style:t.enum(["character","word"]).optional(),direction:t.enum(["left","right","up","down"]).optional()}).strict(),b=t.object({type:t.literal("rich-text"),text:t.string().max(1e4).default(""),font:rt.optional(),style:st.optional(),shadow:ct.optional(),background:lt.optional(),border:mt.optional(),padding:ut.optional(),align:pt.optional(),animation:ht.optional()}).strict(),y=t.string().regex(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})|transparent$/,"Invalid color format."),f=t.object({width:t.number().positive(),height:t.number().positive()}).strict(),d=t.object({radius:t.number().positive()}).strict(),S=t.object({length:t.number().positive(),thickness:t.number().positive()}).strict(),L=t.object({color:y,opacity:t.number().min(0).max(1)}).strict(),D=t.object({color:y.optional(),width:t.number().min(0).optional()}).strict(),g=t.object({type:t.literal("shape"),width:t.number().positive().optional(),height:t.number().positive().optional(),shape:t.enum(["rectangle","circle","line"]),fill:L.optional(),stroke:D.optional(),rectangle:f.optional(),circle:d.optional(),line:S.optional()}).strict().refine(e=>e.shape==="rectangle"?f.safeParse(e.rectangle):e.shape==="circle"?d.safeParse(e.circle):e.shape==="line"?S.safeParse(e.line):!1),s=t.string().regex(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})|transparent$/,"Invalid color format."),H=t.object({color:s.optional(),family:t.string().optional(),size:t.coerce.number().positive().optional(),weight:t.number().optional(),lineHeight:t.number().optional(),opacity:t.number().min(0).max(1).optional()}).strict(),U=t.object({horizontal:t.enum(["left","center","right"]).optional(),vertical:t.enum(["top","center","bottom"]).optional()}).strict(),_=t.object({color:s.optional(),opacity:t.number().min(0).max(1).default(1),padding:t.number().min(0).max(100).optional(),borderRadius:t.number().min(0).optional()}).strict(),B=t.object({width:t.number().min(0).optional(),color:s.optional()}).strict(),A=t.object({type:t.literal("text"),text:t.string().optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),font:H.optional(),alignment:U.optional(),background:_.optional(),stroke:B.optional()}).strict(),Q=t.string().url("Invalid video url format."),$=t.object({top:t.number().min(0).optional(),right:t.number().min(0).optional(),bottom:t.number().min(0).optional(),left:t.number().min(0).optional()}).strict(),M=o.extend({from:t.number().min(0).max(1),to:t.number().min(0).max(1)}).array().or(t.number().min(0).max(1)),x=t.object({type:t.literal("video"),src:Q,trim:t.number().optional(),crop:$.optional(),volume:M.optional()}).strict(),K=t.union([A,b,g,u,p,x,h,m,l]).refine(e=>e.type==="text"?A.safeParse(e):e.type==="rich-text"?b.safeParse(e):e.type==="shape"?g.safeParse(e):e.type==="html"?u.safeParse(e):e.type==="image"?p.safeParse(e):e.type==="video"?x.safeParse(e):e.type==="luma"?h.safeParse(e):e.type==="audio"?m.safeParse(e):e.type==="caption"?l.safeParse(e):!1),v=/^alias:\/\/[a-zA-Z0-9_-]+$/,bt=t.enum(["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"]),ft=t.enum(["crop","cover","contain","none"]),a=t.coerce.number().min(-10).max(10).default(0),dt=o.extend({from:a,to:a}).array().or(a),St=o.extend({from:a,to:a}).array().or(a),gt=t.object({x:dt.default(0),y:St.default(0)}).strict(),At=o.extend({from:t.number().min(0).max(1),to:t.number().min(0).max(1)}).array().or(t.number().min(0).max(1)),xt=o.extend({from:t.number().min(0),to:t.number().min(0)}).array().or(t.number().min(0)),yt=t.object({angle:o.extend({from:t.number(),to:t.number()}).array().or(t.number())}).strict(),jt=t.string(),C=t.string(),vt=t.object({in:C.optional(),out:C.optional()}).strict(),Ct=t.object({rotate:yt.default({angle:0})}).strict(),N=t.object({asset:K,start:t.union([t.number().min(0),t.literal("auto"),t.string().regex(v)]),length:t.union([t.number().positive(),t.literal("auto"),t.literal("end"),t.string().regex(v)]),alias:t.string().optional(),position:bt.default("center").optional(),fit:ft.optional(),offset:gt.default({x:0,y:0}).optional(),opacity:At.default(1).optional(),scale:xt.default(1).optional(),transform:Ct.default({rotate:{angle:0}}).optional(),effect:jt.optional(),transition:vt.optional(),width:t.number().min(1).max(3840).optional(),height:t.number().min(1).max(2160).optional()}).strict().transform(e=>({...e,fit:e.fit??(e.asset.type==="rich-text"?"cover":"crop")})),G=t.object({clips:N.array()}).strict(),W=t.string().url("Invalid image url format."),X=t.object({src:W}).strict(),It=t.enum(["fadeIn","fadeOut","fadeInFadeOut"]),kt=t.object({src:t.string().url(),effect:It.optional(),volume:t.number().min(0).max(1).optional()}).strict(),Tt=t.string().regex(/^#[A-Fa-f0-9]{6}$/,"Must be a valid hex color (e.g., #000000)"),Y=t.object({background:Tt.optional(),fonts:X.array().optional(),tracks:G.array(),soundtrack:kt.optional()}).strict(),Ot=t.object({provider:t.literal("shotstack"),exclude:t.boolean().optional()}).strict(),Ft=t.object({provider:t.literal("s3"),options:t.object({region:t.string(),bucket:t.string().min(3).max(63),prefix:t.string().optional(),filename:t.string().optional(),acl:t.string().optional()}).strict()}).strict(),Rt=t.object({provider:t.literal("mux"),options:t.object({playbackPolicy:t.array(t.enum(["public","signed"])).optional(),passthrough:t.string().max(255).optional()}).strict().optional()}).strict(),wt=t.object({provider:t.literal("google-cloud-storage"),options:t.object({bucket:t.string().optional(),prefix:t.string().optional(),filename:t.string().optional()}).strict().optional()}).strict(),Pt=t.object({provider:t.literal("google-drive"),options:t.object({filename:t.string().optional(),folderId:t.string().optional()}).strict().optional()}).strict(),Et=t.object({provider:t.literal("vimeo"),options:t.object({name:t.string().optional(),description:t.string().optional(),privacy:t.object({view:t.enum(["anybody","nobody","contacts","password","unlisted"]).optional(),embed:t.enum(["public","private","whitelist"]).optional(),comments:t.enum(["anybody","nobody","contacts"]).optional()}).strict().optional(),folderUri:t.string().optional()}).strict().optional()}).strict(),Vt=t.object({provider:t.literal("tiktok")}).strict(),zt=t.union([Ot,Ft,Rt,wt,Pt,Et,Vt]),Lt=t.enum(["mp4","gif","mp3","jpg","png","bmp"],{errorMap:()=>({message:"Must be one of mp4, gif, mp3, jpg, png, bmp"})}),Dt=[12,15,23.976,24,25,29.97,30,48,50,59.94,60],Ht=t.number().refine(e=>Dt.includes(e),{message:"Must be one of 12, 15, 23.976, 24, 25, 29.97, 30, 48, 50, 59.94, 60"}),Ut=t.object({width:t.number({message:"Width must be a number"}).int({message:"Width must be an integer"}).min(1,{message:"Width must be at least 1"}).max(3840,{message:"Width must be at most 3840"}),height:t.number({message:"Height must be a number"}).int({message:"Height must be an integer"}).min(1,{message:"Height must be at least 1"}).max(3840,{message:"Height must be at most 3840"})}).strict(),Z=t.object({size:Ut,fps:Ht.optional(),format:Lt,destinations:t.array(zt).optional()}).strict(),_t=t.object({find:t.string().min(1),replace:t.string()}),Bt=t.object({timeline:Y,output:Z,merge:t.array(_t).optional()}).strict();exports.AssetSchema=K;exports.AudioAssetSchema=m;exports.AudioAssetUrlSchema=T;exports.AudioAssetVolumeSchema=O;exports.CaptionAssetAlignmentSchema=P;exports.CaptionAssetBackgroundSchema=w;exports.CaptionAssetColorSchema=r;exports.CaptionAssetFontSchema=F;exports.CaptionAssetSchema=l;exports.CaptionAssetStrokeSchema=R;exports.ClipSchema=N;exports.EditSchema=Bt;exports.FontSourceSchema=X;exports.FontSourceUrlSchema=W;exports.HtmlAssetSchema=u;exports.ImageAssetCropSchema=V;exports.ImageAssetSchema=p;exports.ImageAssetUrlSchema=E;exports.KeyframeEasingSchema=k;exports.KeyframeInterpolationSchema=I;exports.KeyframeSchema=o;exports.LumaAssetSchema=h;exports.LumaAssetUrlSchema=z;exports.OutputSchema=Z;exports.RichTextAssetSchema=b;exports.ShapeAssetCircleSchema=d;exports.ShapeAssetColorSchema=y;exports.ShapeAssetFillSchema=L;exports.ShapeAssetLineSchema=S;exports.ShapeAssetRectangleSchema=f;exports.ShapeAssetSchema=g;exports.ShapeAssetStrokeSchema=D;exports.TextAssetAlignmentSchema=U;exports.TextAssetBackgroundSchema=_;exports.TextAssetColorSchema=s;exports.TextAssetFontSchema=H;exports.TextAssetSchema=A;exports.TextAssetStrokeSchema=B;exports.TimelineSchema=Y;exports.TrackSchema=G;exports.VideoAssetCropSchema=$;exports.VideoAssetSchema=x;exports.VideoAssetUrlSchema=Q;exports.VideoAssetVolumeSchema=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("zod");r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();r.z.unknown();const q=r.z.object({color:r.z.optional(r.z.string()),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),padding:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),borderRadius:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),P=r.z.object({family:r.z.optional(r.z.string()),color:r.z.optional(r.z.string()),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),size:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),lineHeight:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),stroke:r.z.optional(r.z.string()),strokeWidth:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),U=r.z.object({top:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),left:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),right:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),d=r.z.object({type:r.z.enum(["caption"]),src:r.z.string().min(1).regex(/\S/),font:r.z.optional(P),background:r.z.optional(q),margin:r.z.optional(U),trim:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),speed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),J=d,H=r.z.object({color:r.z.union([r.z.string().regex(/^#[0-9a-fA-F]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),threshold:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(0).lte(250)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),halo:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(0).lte(250)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),M=r.z.object({type:r.z.enum(["text-to-avatar"]),text:r.z.string(),avatar:r.z.enum(["jack","lana","lily","matt","rian"]),background:r.z.optional(r.z.string())}),V=r.z.object({type:r.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")}).and(M),K=r.z.object({provider:r.z.enum(["d-id"]),options:V}),Q=r.z.object({type:r.z.enum(["text-to-speech"]),text:r.z.string(),voice:r.z.enum(["Adam","Antoni","Arnold","Bella","Domi","Elli","Josh","Rachel","Sam"])}),W=r.z.object({type:r.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")}).and(Q),X=r.z.object({provider:r.z.enum(["elevenlabs"]),options:W}),Y=r.z.object({type:r.z.enum(["text-to-avatar"]),text:r.z.string(),avatar:r.z.enum(["Angela","Bill","Daisy","Derek","Eva","Jake","Jeff","Jerome","Joon","Kayla","Kent","Luna","Mark","Matthew","Monica","Peter","Selina","Tanya","Thomas","Tina","Tyler","Vanessa","Vera","Wilson","Zoey"]),voice:r.z.enum(["Abbi - Natural","Adam - Natural","Aiston - Friendly","Alice - Newscaster","Alison - Cheerful","Amber - Friendly","Amy - Warm","Ana - Cheerful","Antoni - Friendly","Aria - Newscaster","Arnold - Cheerful","Arthur - Natural","Bella - Friendly","Belle - Natural","Brandon - Warm","Brian - Natural","Bruce - Natural","Cerise - Cheerful","Christopher - Calm","Clara - Professional","Connor - Natural","Dahlia - Friendly","Davis - Professional","Dean - Natural","Delbert - Cheerful","Edward - Friendly","Elaine - Calm","Emily - Natural","Emma - Newscaster","Eric - Newscaster","Grace - Natural","Hailey - Calm","Indira - Cheerful","Isabella - Cheerful","Jacob - Natural","Jahmai - Friendly","Jane - Serious","Jason - Serious","Jelle - Friendly","Jen - Natural","Jenny - Professional","Jodi - Cheerful","Joey - Calm","Johan - Friendly","Josie - Cheerful","Keanan - Natural","Keith - Cheerful","Kellie - Friendly","Lauren - Friendly","Leah - Natural","Liam - Professional","Libby - Natural","Lily - Professional","Lucas - Natural","Luke - Professional","Luna - Natural","Marieke - Natural","Matthew - Professional","Michelle - Natural","Mitchell - Natural","Molly - Newscaster","Monica - Calm","Natasha - Professional","Neerja - Newscaster","Noah - Serious","Oliver - Newscaster","Olivia - Calm","Paul - Natural","Prabhat - Natural","Raveena - Natural","Rudi - Friendly","Ryan - Professional","Sam - Natural","Sara - Cheerful","Sherry - Friendly","Sonia - Warm","Thomas - Natural","Todd - Professional","Tony - Professional","Tracy - Cheerful","Wayne - Natural","Wilder - Natural","Wille - Natural","William - Friendly"]),avatarStyle:r.z.optional(r.z.enum(["normal","circle"])),background:r.z.optional(r.z.string()),ratio:r.z.optional(r.z.enum(["16:9","9:16"])),test:r.z.optional(r.z.boolean())}),v=r.z.object({type:r.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")}).and(Y),ee=r.z.object({provider:r.z.enum(["heygen"]),options:v}),re=r.z.object({type:r.z.enum(["text-generator"]),prompt:r.z.string(),model:r.z.enum(["gpt-3.5-turbo","gpt-4"]),systemPrompt:r.z.optional(r.z.string())}),te=r.z.object({type:r.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")}).and(re),ne=r.z.object({provider:r.z.enum(["openai"]),options:te}),ie=r.z.object({status:r.z.string(),title:r.z.string(),detail:r.z.string()});r.z.object({errors:r.z.array(ie)});const se=r.z.object({owner:r.z.string(),provider:r.z.enum(["shotstack","elevenlabs","heygen","d-id"]),type:r.z.enum(["text-to-speech","text-to-avatar"]),url:r.z.optional(r.z.string()),status:r.z.enum(["queued","processing","saving","done","failed"]),created:r.z.string(),updated:r.z.string()}),oe=r.z.object({type:r.z.string(),id:r.z.string(),attributes:se});r.z.object({data:oe});const ae=r.z.object({type:r.z.enum(["image-to-video"]),imageUrl:r.z.string(),guidanceScale:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.8),motion:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)}),ue=r.z.object({type:r.z.enum(["text-generator"]),prompt:r.z.string()}),ze=r.z.object({type:r.z.enum(["text-to-image"]),prompt:r.z.string(),width:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),height:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),fe=r.z.object({type:r.z.enum(["text-to-speech"]),text:r.z.string(),voice:r.z.enum(["Hala","Lisa","Arlet","Hiujin","Zhiyu","Sofie","Laura","Olivia","Amy","Emma","Brian","Arthur","Kajal","Niamh","Aria","Ayanda","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Kevin","Matthew","Ruth","Stephen","Suvi","Léa","Rémi","Gabrielle","Liam","Vicki","Daniel","Hannah","Kajal","Bianca","Adriano","Takumi","Kazuha","Tomoko","Seoyeon","Ida","Ola","Camila","Vitória","Vitoria","Thiago","Inês","Ines","Lucia","Sergio","Mia","Andrés","Lupe","Pedro","Elin"]),language:r.z.optional(r.z.enum(["cmn-CN","da-DK","de-DE","en-AU","en-GB","en-IN","en-US","es-ES","es-MX","es-US","fr-CA","fr-FR","it-IT","ja-JP","hi-IN","ko-KR","nb-NO","nl-NL","pl-PL","pt-BR","pt-PT","sv-SE","en-NZ","en-ZA","ca-ES","de-AT","yue-CN","ar-AE","fi-FI"])),newscaster:r.z.optional(r.z.boolean()).default(!1)}),le=r.z.union([r.z.object({type:r.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")}).and(fe),r.z.object({type:r.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")}).and(ze),r.z.object({type:r.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")}).and(ue),r.z.object({type:r.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")}).and(ae)]),pe=r.z.object({provider:r.z.enum(["shotstack"]),options:le}),de=r.z.object({type:r.z.enum(["text-to-image"]),prompt:r.z.string(),engine:r.z.optional(r.z.enum(["stable-diffusion-xl-1024-v0-9","stable-diffusion-xl-1024-v1-0","stable-diffusion-v1-6","stable-diffusion-512-v2-1","stable-diffusion-xl-beta-v2-2-2"])),width:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),height:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),steps:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(30),seed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),cfgScale:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(7),stylePreset:r.z.optional(r.z.enum(["3d-model","analog-film","anime","cinematic","comic-book","digital-art","enhance","fantasy-art","isometric","line-art","low-poly","modeling-compound","neon-punk","origami","photographic","pixel-art","tile-texture"]))}),ge=r.z.object({type:r.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")}).and(de),ce=r.z.object({provider:r.z.enum(["stability-ai"]),options:ge}),me=r.z.union([r.z.object({provider:r.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")}).and(pe),r.z.object({provider:r.z.literal("didGeneratedAsset_DIDGeneratedAsset")}).and(K),r.z.object({provider:r.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")}).and(X),r.z.object({provider:r.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")}).and(ee),r.z.object({provider:r.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")}).and(ne),r.z.object({provider:r.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")}).and(ce)]),n=r.z.object({top:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),bottom:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),left:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),right:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Ae=n,ye=r.z.object({bucket:r.z.string(),prefix:r.z.optional(r.z.string()),filename:r.z.optional(r.z.string())}),be=r.z.object({provider:r.z.literal("google-cloud-storage"),options:r.z.optional(ye)}),he=r.z.object({folderId:r.z.string(),filename:r.z.optional(r.z.string())}),$e=r.z.object({provider:r.z.literal("google-drive"),options:he}),Se=r.z.object({playbackPolicy:r.z.optional(r.z.array(r.z.enum(["public","signed"]))),passthrough:r.z.optional(r.z.string().max(255))}),Ze=r.z.object({provider:r.z.literal("mux"),options:r.z.optional(Se)}),_e=r.z.object({region:r.z.string(),bucket:r.z.string(),prefix:r.z.optional(r.z.string()),filename:r.z.optional(r.z.string()),acl:r.z.optional(r.z.string())}),xe=r.z.object({provider:r.z.literal("s3"),options:r.z.optional(_e)}),Ne=r.z.object({provider:r.z.literal("shotstack"),exclude:r.z.optional(r.z.boolean())}),je=r.z.object({title:r.z.optional(r.z.string().max(150)),privacyLevel:r.z.optional(r.z.enum(["public","friends","private"])),disableDuet:r.z.optional(r.z.boolean()).default(!1),disableStitch:r.z.optional(r.z.boolean()).default(!1),disableComment:r.z.optional(r.z.boolean()).default(!1)}),we=r.z.object({provider:r.z.literal("tiktok"),options:r.z.optional(je)}),Te=r.z.object({view:r.z.optional(r.z.enum(["anybody","nobody","contacts","password","unlisted"])),embed:r.z.optional(r.z.enum(["public","private","whitelist"])),comments:r.z.optional(r.z.enum(["anybody","nobody","contacts"])),download:r.z.optional(r.z.boolean()),add:r.z.optional(r.z.boolean())}),Fe=r.z.object({name:r.z.optional(r.z.string()),description:r.z.optional(r.z.string()),privacy:r.z.optional(Te),folderUri:r.z.optional(r.z.string())}),ke=r.z.object({provider:r.z.literal("vimeo"),options:r.z.optional(Fe)}),o=r.z.discriminatedUnion("provider",[Ne,Ze,xe,be,$e,ke,we]),Oe=o,Re=r.z.object({horizontal:r.z.optional(r.z.boolean()),vertical:r.z.optional(r.z.boolean())}),De=r.z.object({src:r.z.string()}),g=r.z.object({type:r.z.enum(["html"]),html:r.z.string(),css:r.z.optional(r.z.string()),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),background:r.z.optional(r.z.string()),position:r.z.optional(r.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"]))}),Le=g,c=r.z.object({type:r.z.enum(["image"]),src:r.z.string().min(1).regex(/\S/),crop:r.z.optional(n)}),Ie=c,m=r.z.object({type:r.z.enum(["image-to-video"]),src:r.z.string().min(1),prompt:r.z.optional(r.z.string()),aspectRatio:r.z.optional(r.z.enum(["1:1","4:3","16:9","9:16","3:4","21:9","9:21"])),speed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),crop:r.z.optional(n)}),Ge=m,Ce=r.z.object({preset:r.z.enum(["conference","interview","lecture","meeting","mobile_phone","music","podcast","studio","voice_over"])}),Be=r.z.object({provider:r.z.string().default("dolby"),options:Ce}),Ee=r.z.object({enhancement:r.z.literal("dolbyEnhancement_DolbyEnhancement")}).and(Be),qe=r.z.object({audio:r.z.optional(Ee)}),Pe=r.z.object({status:r.z.string(),title:r.z.string(),detail:r.z.string()});r.z.object({errors:r.z.array(Pe)});const Ue=r.z.object({type:r.z.string(),id:r.z.string()});r.z.object({data:Ue});const Je=r.z.object({id:r.z.string(),url:r.z.string(),expires:r.z.string()}),He=r.z.object({type:r.z.string(),id:r.z.string(),attributes:Je});r.z.object({data:He});const Me=r.z.object({speed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),preservePitch:r.z.optional(r.z.boolean())}),Ve=r.z.object({format:r.z.optional(r.z.enum(["srt","vtt"]))}),A=r.z.object({type:r.z.enum(["luma"]),src:r.z.string().min(1).regex(/\S/),trim:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Ke=A,y=r.z.object({find:r.z.string(),replace:r.z.unknown()}),Qe=r.z.object({capture:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),We=r.z.object({start:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),length:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Xe=r.z.object({id:r.z.string(),owner:r.z.string(),region:r.z.optional(r.z.string()),renderId:r.z.optional(r.z.string()),providerId:r.z.optional(r.z.string()),filename:r.z.optional(r.z.string()),url:r.z.optional(r.z.string()),status:r.z.enum(["importing","ready","failed","deleted"]),created:r.z.optional(r.z.string()),updated:r.z.optional(r.z.string())}),b=r.z.object({type:r.z.string(),attributes:Xe});r.z.object({data:r.z.array(b)});r.z.object({data:b});r.z.object({success:r.z.boolean(),message:r.z.string(),response:r.z.record(r.z.string(),r.z.unknown())});const Ye=r.z.object({message:r.z.string(),id:r.z.string()});r.z.object({success:r.z.boolean(),message:r.z.string(),response:Ye});const ve=r.z.object({id:r.z.string(),name:r.z.string(),created:r.z.optional(r.z.string()),updated:r.z.optional(r.z.string())}),er=r.z.object({owner:r.z.string(),templates:r.z.array(ve)});r.z.object({success:r.z.boolean(),message:r.z.string(),response:er});const rr=r.z.object({message:r.z.string(),id:r.z.string()});r.z.object({success:r.z.boolean(),message:r.z.string(),response:rr});const tr=r.z.object({horizontal:r.z.optional(r.z.enum(["left","center","right"])),vertical:r.z.optional(r.z.enum(["top","middle","bottom"]))}),nr=r.z.object({preset:r.z.enum(["fadeIn","slideIn","typewriter","ascend","shift","movingLetters"]),duration:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(.1).lte(30)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),style:r.z.optional(r.z.enum(["character","word"])),direction:r.z.optional(r.z.enum(["left","right","up","down"]))}),ir=r.z.object({color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),borderRadius:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)}),sr=r.z.object({width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),radius:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)}),or=r.z.object({type:r.z.optional(r.z.enum(["linear","radial"])),angle:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(360)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),stops:r.z.array(r.z.object({offset:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),color:r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])})).min(2)}),ar=r.z.object({top:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),right:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),bottom:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),left:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)}),ur=r.z.object({offsetX:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),offsetY:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),blur:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(.5)}),zr=r.z.object({width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)}),fr=r.z.object({family:r.z.optional(r.z.string()).default("Open Sans"),size:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(500)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),weight:r.z.optional(r.z.unknown()).default("400"),color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),background:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),stroke:r.z.optional(zr)}),lr=r.z.object({letterSpacing:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),lineHeight:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1.2),textTransform:r.z.optional(r.z.enum(["none","uppercase","lowercase","capitalize"])),textDecoration:r.z.optional(r.z.enum(["none","underline","line-through"])),gradient:r.z.optional(or)}),h=r.z.object({type:r.z.enum(["rich-text"]),text:r.z.string().max(5e3),font:r.z.optional(fr),style:r.z.optional(lr),shadow:r.z.optional(ur),background:r.z.optional(ir),border:r.z.optional(sr),padding:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),ar])),align:r.z.optional(tr),animation:r.z.optional(nr)}),pr=h,dr=r.z.object({id:r.z.optional(r.z.string()),owner:r.z.optional(r.z.string()),status:r.z.optional(r.z.enum(["queued","failed"])),created:r.z.optional(r.z.string())}),gr=r.z.object({type:r.z.optional(r.z.string()),attributes:r.z.optional(dr)});r.z.object({data:gr});const cr=r.z.object({url:r.z.string(),id:r.z.string(),destinations:r.z.array(o)}),$=r.z.object({type:r.z.enum(["shape"]),shape:r.z.enum(["rectangle","circle","line"]),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),fill:r.z.optional(r.z.object({color:r.z.optional(r.z.string()),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))})),stroke:r.z.optional(r.z.object({color:r.z.optional(r.z.string()),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))})),rectangle:r.z.optional(r.z.object({width:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),height:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),cornerRadius:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))})),circle:r.z.optional(r.z.object({radius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])})),line:r.z.optional(r.z.object({length:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),thickness:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}))}),mr=$,f=r.z.object({width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Ar=f,S=r.z.object({format:r.z.optional(r.z.enum(["mp4","webm","mov","avi","mkv","ogv","wmv","avif","gif","mp3","wav","jpg","png","webp","tif"])),size:r.z.optional(f),fit:r.z.optional(r.z.enum(["cover","contain","crop"])),resolution:r.z.optional(r.z.enum(["preview","mobile","sd","hd","fhd"])),quality:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),fps:r.z.optional(r.z.union([r.z.literal(12),r.z.literal(15),r.z.literal(23.976),r.z.literal(24),r.z.literal(25),r.z.literal(29.97),r.z.literal(30),r.z.literal(48),r.z.literal(50),r.z.literal(59.94),r.z.literal(60)])),speed:r.z.optional(Me),keyframeInterval:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(300)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),fixOffset:r.z.optional(r.z.boolean()),fixRotation:r.z.optional(r.z.boolean()),enhance:r.z.optional(qe),filename:r.z.optional(r.z.string())}),yr=r.z.object({renditions:r.z.optional(r.z.array(S)),transcription:r.z.optional(Ve)}),br=r.z.object({id:r.z.string(),status:r.z.optional(r.z.enum(["queued","importing","ready","failed","deleted","overwritten"])),url:r.z.optional(r.z.string()),executionTime:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),transformation:r.z.optional(S),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),duration:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),fps:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),hr=r.z.object({renditions:r.z.optional(r.z.array(br))}),$r=r.z.object({id:r.z.string(),owner:r.z.string(),input:r.z.optional(r.z.string()),source:r.z.optional(r.z.string()),status:r.z.optional(r.z.enum(["queued","importing","ready","failed","deleted","overwritten"])),outputs:r.z.optional(hr),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),duration:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),fps:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),created:r.z.optional(r.z.string()),updated:r.z.optional(r.z.string())}),Z=r.z.object({type:r.z.string(),id:r.z.string(),attributes:$r});r.z.object({data:r.z.array(Z)});r.z.object({data:Z});const Sr=r.z.object({url:r.z.optional(r.z.string()),outputs:r.z.optional(yr),destinations:r.z.optional(o),callback:r.z.optional(r.z.string())}),Zr=r.z.object({src:r.z.string().min(1).regex(/\S/),effect:r.z.optional(r.z.enum(["fadeIn","fadeOut","fadeInFadeOut"])),volume:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),_=r.z.object({offset:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),color:r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),_r=r.z.object({type:r.z.enum(["linear"]),angle:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(360)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),stops:r.z.array(_).min(2),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)}),xr=r.z.object({type:r.z.enum(["radial"]),stops:r.z.array(_).min(2),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)}),Nr=r.z.object({offsetX:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),offsetY:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),blur:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(.5)}),jr=r.z.object({type:r.z.enum(["solid"]),color:r.z.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)}),wr=r.z.discriminatedUnion("type",[jr,_r,xr]),Tr=r.z.object({color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),lineCap:r.z.optional(r.z.enum(["butt","round","square"])),lineJoin:r.z.optional(r.z.enum(["miter","round","bevel"])),dashArray:r.z.optional(r.z.array(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))),dashOffset:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)}),Fr=r.z.object({x:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),y:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),rotation:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(-360).lte(360)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),scale:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(.01).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),originX:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(.5),originY:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(.5)}),kr=r.z.object({type:r.z.enum(["arrow"]),length:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),headWidth:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(1e3)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),headLength:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(1e3)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),shaftWidth:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(1e3)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Or=r.z.object({type:r.z.enum(["circle"]),radius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Rr=r.z.object({type:r.z.enum(["cross"]),width:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),height:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),thickness:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(500)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Dr=r.z.object({type:r.z.enum(["ellipse"]),radiusX:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),radiusY:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Lr=r.z.object({type:r.z.enum(["heart"]),size:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Ir=r.z.object({type:r.z.enum(["line"]),length:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),thickness:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(500)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Gr=r.z.object({type:r.z.enum(["path"]),d:r.z.string().min(1).max(1e5)}),Cr=r.z.object({type:r.z.enum(["polygon"]),sides:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(3).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),radius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Br=r.z.object({type:r.z.enum(["rectangle"]),width:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),height:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),cornerRadius:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)}),Er=r.z.object({type:r.z.enum(["ring"]),outerRadius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),innerRadius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),qr=r.z.object({type:r.z.enum(["star"]),points:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(3).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),outerRadius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),innerRadius:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2048)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),Pr=r.z.discriminatedUnion("type",[Br,Or,Dr,Ir,Cr,qr,kr,Lr,Rr,Er,Gr]),x=r.z.object({type:r.z.enum(["svg"]),src:r.z.optional(r.z.string().min(1).max(5e5)),shape:r.z.optional(Pr),fill:r.z.optional(wr),stroke:r.z.optional(Tr),shadow:r.z.optional(Nr),transform:r.z.optional(Fr),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int().gte(1).lte(4096)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}).superRefine((e,a)=>{const p=e.shape!==void 0,u=e.src!==void 0&&e.src.trim()!=="";if(!p&&!u&&a.addIssue({code:r.z.ZodIssueCode.custom,message:"Either 'src' or 'shape' must be provided",path:[]}),p&&u&&a.addIssue({code:r.z.ZodIssueCode.custom,message:"Provide either 'src' or 'shape', not both",path:["src"]}),u){const E=["shape","fill","stroke","shadow","transform","width","height"];for(const z of E)e[z]!==void 0&&a.addIssue({code:r.z.ZodIssueCode.custom,message:`'${z}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,path:[z]})}}),Ur=x,Jr=r.z.object({id:r.z.string(),merge:r.z.optional(r.z.array(y))}),Hr=r.z.object({horizontal:r.z.optional(r.z.enum(["left","center","right"])),vertical:r.z.optional(r.z.enum(["top","center","bottom"]))}),Mr=r.z.object({preset:r.z.enum(["typewriter"]),duration:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(.1).lte(30)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Vr=r.z.object({color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),padding:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),borderRadius:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Kr=r.z.object({family:r.z.optional(r.z.string()),color:r.z.optional(r.z.string()),opacity:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),size:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),weight:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),lineHeight:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),Qr=r.z.object({width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),color:r.z.optional(r.z.union([r.z.string().regex(/^#[A-Fa-f0-9]{6}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),N=r.z.object({type:r.z.enum(["text"]),text:r.z.string(),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),font:r.z.optional(Kr),background:r.z.optional(Vr),alignment:r.z.optional(Hr),stroke:r.z.optional(Qr),animation:r.z.optional(Mr),ellipsis:r.z.optional(r.z.string())}),Wr=N,j=r.z.object({type:r.z.enum(["text-to-image"]),prompt:r.z.string(),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().int()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),crop:r.z.optional(n)}),Xr=j,Yr=r.z.object({capture:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),scale:r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),w=r.z.object({format:r.z.enum(["mp4","gif","mp3","jpg","png","bmp"]),resolution:r.z.optional(r.z.enum(["preview","mobile","sd","hd","1080","4k"])),aspectRatio:r.z.optional(r.z.enum(["16:9","9:16","1:1","4:5","4:3"])),size:r.z.optional(f),fps:r.z.optional(r.z.union([r.z.literal(12),r.z.literal(15),r.z.literal(23.976),r.z.literal(24),r.z.literal(25),r.z.literal(29.97),r.z.literal(30),r.z.literal(48),r.z.literal(50),r.z.literal(59.94),r.z.literal(60)])),scaleTo:r.z.optional(r.z.enum(["preview","mobile","sd","hd","1080","4k"])),quality:r.z.optional(r.z.enum(["verylow","low","medium","high","veryhigh"])),repeat:r.z.optional(r.z.boolean()),mute:r.z.optional(r.z.boolean()),range:r.z.optional(We),poster:r.z.optional(Qe),thumbnail:r.z.optional(Yr),destinations:r.z.optional(r.z.array(o))}),i=w,T=r.z.object({in:r.z.optional(r.z.enum(["none","fade","fadeSlow","fadeFast","reveal","revealSlow","revealFast","wipeLeft","wipeLeftSlow","wipeLeftFast","wipeRight","wipeRightSlow","wipeRightFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast","carouselLeft","carouselLeftSlow","carouselLeftFast","carouselRight","carouselRightSlow","carouselRightFast","carouselUp","carouselUpSlow","carouselUpFast","carouselDown","carouselDownSlow","carouselDownFast","shuffleTopRight","shuffleTopRightSlow","shuffleTopRightFast","shuffleRightTop","shuffleRightTopSlow","shuffleRightTopFast","shuffleRightBottom","shuffleRightBottomSlow","shuffleRightBottomFast","shuffleBottomRight","shuffleBottomRightSlow","shuffleBottomRightFast","shuffleBottomLeft","shuffleBottomLeftSlow","shuffleBottomLeftFast","shuffleLeftBottom","shuffleLeftBottomSlow","shuffleLeftBottomFast","shuffleLeftTop","shuffleLeftTopSlow","shuffleLeftTopFast","shuffleTopLeft","shuffleTopLeftSlow","shuffleTopLeftFast","zoom"])),out:r.z.optional(r.z.enum(["none","fade","fadeSlow","fadeFast","reveal","revealSlow","revealFast","wipeLeft","wipeLeftSlow","wipeLeftFast","wipeRight","wipeRightSlow","wipeRightFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast","carouselLeft","carouselLeftSlow","carouselLeftFast","carouselRight","carouselRightSlow","carouselRightFast","carouselUp","carouselUpSlow","carouselUpFast","carouselDown","carouselDownSlow","carouselDownFast","shuffleTopRight","shuffleTopRightSlow","shuffleTopRightFast","shuffleRightTop","shuffleRightTopSlow","shuffleRightTopFast","shuffleRightBottom","shuffleRightBottomSlow","shuffleRightBottomFast","shuffleBottomRight","shuffleBottomRightSlow","shuffleBottomRightFast","shuffleBottomLeft","shuffleBottomLeftSlow","shuffleBottomLeftFast","shuffleLeftBottom","shuffleLeftBottomSlow","shuffleLeftBottomFast","shuffleLeftTop","shuffleLeftTopSlow","shuffleLeftTopFast","shuffleTopLeft","shuffleTopLeftSlow","shuffleTopLeftFast","zoom"]))}),vr=T,t=r.z.object({from:r.z.optional(r.z.unknown()),to:r.z.optional(r.z.unknown()),start:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),length:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),interpolation:r.z.optional(r.z.enum(["linear","bezier","constant"])),easing:r.z.optional(r.z.enum(["ease","easeIn","easeOut","easeInOut","easeInQuad","easeInCubic","easeInQuart","easeInQuint","easeInSine","easeInExpo","easeInCirc","easeInBack","easeOutQuad","easeOutCubic","easeOutQuart","easeOutQuint","easeOutSine","easeOutExpo","easeOutCirc","easeOutBack","easeInOutQuad","easeInOutCubic","easeInOutQuart","easeInOutQuint","easeInOutSine","easeInOutExpo","easeInOutCirc","easeInOutBack"]))}),F=t,k=r.z.object({type:r.z.enum(["audio"]),src:r.z.string().min(1).regex(/\S/),trim:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),volume:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),speed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),effect:r.z.optional(r.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"]))}),et=k,l=r.z.object({x:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(-10).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),y:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(-10).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)]))}),rt=l,tt=r.z.object({angle:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(-360).lte(360)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)]))}),nt=r.z.object({x:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(-100).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),y:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(-100).lte(100)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)]))}),O=r.z.object({type:r.z.enum(["text-to-speech"]),text:r.z.string(),voice:r.z.string(),language:r.z.optional(r.z.string()),newscaster:r.z.optional(r.z.boolean()).default(!1),trim:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),volume:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),speed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),effect:r.z.optional(r.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"]))}),it=O,st=r.z.object({type:r.z.enum(["title"]),text:r.z.string(),style:r.z.optional(r.z.enum(["minimal","blockbuster","vogue","sketchy","skinny","chunk","chunkLight","marker","future","subtitle"])),color:r.z.optional(r.z.string()),size:r.z.optional(r.z.enum(["xx-small","x-small","small","medium","large","x-large","xx-large"])),background:r.z.optional(r.z.string()),position:r.z.optional(r.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"])),offset:r.z.optional(l)}),R=r.z.object({rotate:r.z.optional(tt),skew:r.z.optional(nt),flip:r.z.optional(Re)}),ot=R,D=r.z.object({type:r.z.enum(["video"]),src:r.z.string().min(1).regex(/\S/),transcode:r.z.optional(r.z.boolean()),trim:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),volume:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(1)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),volumeEffect:r.z.optional(r.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"])),speed:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0).lte(10)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),crop:r.z.optional(n),chromaKey:r.z.optional(H)}),at=D,L=r.z.discriminatedUnion("type",[D,c,N,h,k,A,d,g,st,$,x,j,m,O]),ut=L,I=r.z.object({asset:L,start:r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.union([r.z.string().regex(/^(auto|alias:\/\/[A-Za-z0-9_-]+)$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])]),length:r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(0)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.union([r.z.string().regex(/^(auto|end|alias:\/\/[A-Za-z0-9_-]+)$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])]),fit:r.z.optional(r.z.enum(["cover","contain","crop","none"])),scale:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),width:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(3840)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),height:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number().gte(1).lte(2160)),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),position:r.z.optional(r.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"])),offset:r.z.optional(l),transition:r.z.optional(T),effect:r.z.optional(r.z.enum(["zoomIn","zoomInSlow","zoomInFast","zoomOut","zoomOutSlow","zoomOutFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast"])),filter:r.z.optional(r.z.enum(["none","blur","boost","contrast","darken","greyscale","lighten","muted","negative"])),opacity:r.z.optional(r.z.union([r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),r.z.array(t)])),transform:r.z.optional(R),alias:r.z.optional(r.z.union([r.z.string().regex(/^[A-Za-z0-9_-]+$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))}),zt=I,G=r.z.object({clips:r.z.array(I).min(1)}),ft=G,C=r.z.object({soundtrack:r.z.optional(Zr),background:r.z.optional(r.z.string()),fonts:r.z.optional(r.z.array(De)),tracks:r.z.array(G).min(1),cache:r.z.optional(r.z.boolean())}),lt=C,s=r.z.object({timeline:C,output:w,merge:r.z.optional(r.z.array(y)),callback:r.z.optional(r.z.string()),disk:r.z.optional(r.z.enum(["local","mount"]))}),pt=s,dt=r.z.object({id:r.z.string(),owner:r.z.string(),plan:r.z.optional(r.z.string()),status:r.z.enum(["queued","fetching","preprocessing","rendering","saving","done","failed"]),error:r.z.optional(r.z.string()),duration:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),renderTime:r.z.optional(r.z.union([r.z.preprocess(e=>{if(!(e===""||e===null||e===void 0))return Array.isArray(e)?e:typeof e=="string"?/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(e)?e:Number(e):e},r.z.number()),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),url:r.z.optional(r.z.string()),poster:r.z.optional(r.z.union([r.z.string(),r.z.null()])),thumbnail:r.z.optional(r.z.union([r.z.string(),r.z.null()])),data:r.z.optional(s),created:r.z.optional(r.z.string()),updated:r.z.optional(r.z.string())});r.z.object({success:r.z.boolean(),message:r.z.string(),response:dt});const gt=r.z.object({id:r.z.string(),name:r.z.string(),owner:r.z.string(),template:s});r.z.object({success:r.z.boolean(),message:r.z.string(),response:gt});const B=r.z.object({name:r.z.string(),template:r.z.optional(s)});r.z.object({body:s,path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.object({data:r.z.optional(r.z.boolean()),merged:r.z.optional(r.z.boolean())}))});r.z.object({body:r.z.optional(r.z.never()),path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:B,path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.void();r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.object({body:B,path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.object({body:Jr,path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({url:r.z.string()}),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.void();r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.object({body:cr,path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:Sr,path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.void();r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:me,path:r.z.optional(r.z.never()),query:r.z.optional(r.z.never())});r.z.object({body:r.z.optional(r.z.never()),path:r.z.object({id:r.z.union([r.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),r.z.string().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])}),query:r.z.optional(r.z.never())});const ct=Oe,mt=Ar,At=i.shape.format,yt=i.shape.fps.unwrap(),bt=i.shape.resolution,ht=i.shape.aspectRatio,$t=r.z.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);exports.AssetSchema=ut;exports.AudioAssetSchema=et;exports.CaptionAssetSchema=J;exports.ClipSchema=zt;exports.CropSchema=Ae;exports.DestinationSchema=ct;exports.EditSchema=pt;exports.HexColorSchema=$t;exports.HtmlAssetSchema=Le;exports.ImageAssetSchema=Ie;exports.ImageToVideoAssetSchema=Ge;exports.KeyframeSchema=F;exports.LumaAssetSchema=Ke;exports.OffsetSchema=rt;exports.OutputAspectRatioSchema=ht;exports.OutputFormatSchema=At;exports.OutputFpsSchema=yt;exports.OutputResolutionSchema=bt;exports.OutputSchema=i;exports.OutputSizeSchema=mt;exports.RichTextAssetSchema=pr;exports.ShapeAssetSchema=mr;exports.SvgAssetSchema=Ur;exports.TextAssetSchema=Wr;exports.TextToImageAssetSchema=Xr;exports.TextToSpeechAssetSchema=it;exports.TimelineSchema=lt;exports.TrackSchema=ft;exports.TransformationSchema=ot;exports.TransitionSchema=vr;exports.TweenSchema=F;exports.VideoAssetSchema=at;