@shotstack/shotstack-studio 2.0.0-beta.1 → 2.0.0-beta.10

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 e=require("zod");e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();e.z.unknown();const E=e.z.object({color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),padding:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),borderRadius:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()))}),q=e.z.object({family:e.z.optional(e.z.string()),color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),size:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),lineHeight:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),stroke:e.z.optional(e.z.string()),strokeWidth:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))}),P=e.z.object({top:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),left:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),right:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))}),f=e.z.object({type:e.z.enum(["caption"]),src:e.z.string(),font:e.z.optional(q),background:e.z.optional(E),margin:e.z.optional(P),trim:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),speed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10)))}),$=f,_=e.z.object({color:e.z.optional(e.z.string()),threshold:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(0).lte(250))),halo:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(0).lte(250)))}),U=e.z.object({type:e.z.enum(["text-to-avatar"]),text:e.z.string(),avatar:e.z.enum(["jack","lana","lily","matt","rian"]),background:e.z.optional(e.z.string())}),Z=e.z.object({type:e.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")}).and(U),J=e.z.object({provider:e.z.enum(["d-id"]),options:Z}),M=e.z.object({type:e.z.enum(["text-to-speech"]),text:e.z.string(),voice:e.z.enum(["Adam","Antoni","Arnold","Bella","Domi","Elli","Josh","Rachel","Sam"])}),H=e.z.object({type:e.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")}).and(M),K=e.z.object({provider:e.z.enum(["elevenlabs"]),options:H}),V=e.z.object({type:e.z.enum(["text-to-avatar"]),text:e.z.string(),avatar:e.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:e.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:e.z.optional(e.z.enum(["normal","circle"])),background:e.z.optional(e.z.string()),ratio:e.z.optional(e.z.enum(["16:9","9:16"])),test:e.z.optional(e.z.boolean())}),Q=e.z.object({type:e.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")}).and(V),W=e.z.object({provider:e.z.enum(["heygen"]),options:Q}),X=e.z.object({type:e.z.enum(["text-generator"]),prompt:e.z.string(),model:e.z.enum(["gpt-3.5-turbo","gpt-4"]),systemPrompt:e.z.optional(e.z.string())}),Y=e.z.object({type:e.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")}).and(X),v=e.z.object({provider:e.z.enum(["openai"]),options:Y}),ee=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(ee)});const te=e.z.object({owner:e.z.string(),provider:e.z.enum(["shotstack","elevenlabs","heygen","d-id"]),type:e.z.enum(["text-to-speech","text-to-avatar"]),url:e.z.optional(e.z.string()),status:e.z.enum(["queued","processing","saving","done","failed"]),created:e.z.string(),updated:e.z.string()}),re=e.z.object({type:e.z.string(),id:e.z.string(),attributes:te});e.z.object({data:re});const ne=e.z.object({type:e.z.enum(["image-to-video"]),imageUrl:e.z.string(),guidanceScale:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(1.8),motion:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())).default(127)}),ie=e.z.object({type:e.z.enum(["text-generator"]),prompt:e.z.string()}),oe=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),width:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()),height:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())}),ae=e.z.object({type:e.z.enum(["text-to-speech"]),text:e.z.string(),voice:e.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:e.z.optional(e.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:e.z.optional(e.z.boolean()).default(!1)}),se=e.z.union([e.z.object({type:e.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")}).and(ae),e.z.object({type:e.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")}).and(oe),e.z.object({type:e.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")}).and(ie),e.z.object({type:e.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")}).and(ne)]),ue=e.z.object({provider:e.z.enum(["shotstack"]),options:se}),le=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),engine:e.z.optional(e.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:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()),height:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()),steps:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())).default(30),seed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())).default(0),cfgScale:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(7),stylePreset:e.z.optional(e.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"]))}),pe=e.z.object({type:e.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")}).and(le),ze=e.z.object({provider:e.z.enum(["stability-ai"]),options:pe}),de=e.z.union([e.z.object({provider:e.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")}).and(ue),e.z.object({provider:e.z.literal("didGeneratedAsset_DIDGeneratedAsset")}).and(J),e.z.object({provider:e.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")}).and(K),e.z.object({provider:e.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")}).and(W),e.z.object({provider:e.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")}).and(v),e.z.object({provider:e.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")}).and(ze)]),n=e.z.object({top:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))),bottom:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))),left:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))),right:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1)))}),fe=n,ce=e.z.object({bucket:e.z.string(),prefix:e.z.optional(e.z.string()),filename:e.z.optional(e.z.string())}),me=e.z.object({provider:e.z.string().default("google-cloud-storage"),options:e.z.optional(ce)}),ge=e.z.object({folderId:e.z.string(),filename:e.z.optional(e.z.string())}),ye=e.z.object({provider:e.z.string().default("google-drive"),options:ge}),be=e.z.object({playbackPolicy:e.z.optional(e.z.array(e.z.enum(["public","signed"]))),passthrough:e.z.optional(e.z.string().max(255))}),he=e.z.object({provider:e.z.string().default("mux"),options:e.z.optional(be)}),Ae=e.z.object({region:e.z.string(),bucket:e.z.string(),prefix:e.z.optional(e.z.string()),filename:e.z.optional(e.z.string()),acl:e.z.optional(e.z.string())}),Se=e.z.object({provider:e.z.string().default("s3"),options:e.z.optional(Ae)}),je=e.z.object({provider:e.z.string().default("shotstack"),exclude:e.z.optional(e.z.boolean())}),Ne=e.z.object({title:e.z.optional(e.z.string().max(150)),privacyLevel:e.z.optional(e.z.enum(["public","friends","private"])),disableDuet:e.z.optional(e.z.boolean()).default(!1),disableStitch:e.z.optional(e.z.boolean()).default(!1),disableComment:e.z.optional(e.z.boolean()).default(!1)}),we=e.z.object({provider:e.z.string().default("tiktok"),options:e.z.optional(Ne)}),xe=e.z.object({view:e.z.optional(e.z.enum(["anybody","nobody","contacts","password","unlisted"])),embed:e.z.optional(e.z.enum(["public","private","whitelist"])),comments:e.z.optional(e.z.enum(["anybody","nobody","contacts"]))}),Te=e.z.object({name:e.z.optional(e.z.string()),description:e.z.optional(e.z.string()),privacy:e.z.optional(xe),folderUri:e.z.optional(e.z.string())}),ke=e.z.object({provider:e.z.string().default("vimeo"),options:e.z.optional(Te)}),o=e.z.union([e.z.object({destinations:e.z.optional(e.z.literal("shotstackDestination_ShotstackDestination"))}).and(je),e.z.object({destinations:e.z.optional(e.z.literal("muxDestination_MuxDestination"))}).and(he),e.z.object({destinations:e.z.optional(e.z.literal("s3Destination_S3Destination"))}).and(Se),e.z.object({destinations:e.z.optional(e.z.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))}).and(me),e.z.object({destinations:e.z.optional(e.z.literal("googleDriveDestination_GoogleDriveDestination"))}).and(ye),e.z.object({destinations:e.z.optional(e.z.literal("vimeoDestination_VimeoDestination"))}).and(ke),e.z.object({destinations:e.z.optional(e.z.literal("tiktokDestination_TiktokDestination"))}).and(we)]),Fe=o,Oe=e.z.object({horizontal:e.z.optional(e.z.boolean()),vertical:e.z.optional(e.z.boolean())}),Re=e.z.object({src:e.z.string()}),c=e.z.object({type:e.z.enum(["html"]),html:e.z.string(),css:e.z.optional(e.z.string()),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),background:e.z.optional(e.z.string()),position:e.z.optional(e.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"]))}),De=c,m=e.z.object({type:e.z.enum(["image"]),src:e.z.string(),crop:e.z.optional(n)}),Le=m,Ie=e.z.object({type:e.z.optional(e.z.enum(["image-to-video"])),src:e.z.optional(e.z.string()),prompt:e.z.optional(e.z.string()),aspectRatio:e.z.optional(e.z.enum(["1:1","4:3","16:9","9:16","3:4","21:9","9:21"])),speed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10))),crop:e.z.optional(n)}),Ge=e.z.object({preset:e.z.enum(["conference","interview","lecture","meeting","mobile_phone","music","podcast","studio","voice_over"])}),Ce=e.z.object({provider:e.z.string().default("dolby"),options:Ge}),Be=e.z.object({enhancement:e.z.literal("dolbyEnhancement_DolbyEnhancement")}).and(Ce),Ee=e.z.object({audio:e.z.optional(Be)}),qe=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(qe)});const Pe=e.z.object({type:e.z.string(),id:e.z.string()});e.z.object({data:Pe});const $e=e.z.object({id:e.z.string(),url:e.z.string(),expires:e.z.string()}),_e=e.z.object({type:e.z.string(),id:e.z.string(),attributes:$e});e.z.object({data:_e});const Ue=e.z.object({speed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10))),preservePitch:e.z.optional(e.z.boolean())}),Ze=e.z.object({format:e.z.optional(e.z.enum(["srt","vtt"]))}),g=e.z.object({type:e.z.enum(["luma"]),src:e.z.string(),trim:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))}),Je=g,y=e.z.object({find:e.z.string(),replace:e.z.unknown()}),Me=e.z.object({capture:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())}),He=e.z.object({start:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))),length:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0)))}),Ke=e.z.object({id:e.z.string(),owner:e.z.string(),region:e.z.optional(e.z.string()),renderId:e.z.optional(e.z.string()),providerId:e.z.optional(e.z.string()),filename:e.z.optional(e.z.string()),url:e.z.optional(e.z.string()),status:e.z.enum(["importing","ready","failed","deleted"]),created:e.z.optional(e.z.string()),updated:e.z.optional(e.z.string())}),b=e.z.object({type:e.z.string(),attributes:Ke});e.z.object({data:e.z.array(b)});e.z.object({data:b});e.z.object({success:e.z.boolean(),message:e.z.string(),response:e.z.record(e.z.string(),e.z.unknown())});const Ve=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Ve});const Qe=e.z.object({id:e.z.string(),name:e.z.string(),created:e.z.optional(e.z.string()),updated:e.z.optional(e.z.string())}),We=e.z.object({owner:e.z.string(),templates:e.z.array(Qe)});e.z.object({success:e.z.boolean(),message:e.z.string(),response:We});const Xe=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Xe});const Ye=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","middle","bottom"]))}),ve=e.z.object({preset:e.z.enum(["fadeIn","slideIn","typewriter","ascend","shift","movingLetters"]),speed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(.1).lte(10))).default(1),duration:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(.1).lte(30))),style:e.z.optional(e.z.enum(["character","word"])),direction:e.z.optional(e.z.enum(["left","right","up","down"]))}),et=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1),borderRadius:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0)}),tt=e.z.object({width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1),radius:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0)}),rt=e.z.object({type:e.z.optional(e.z.enum(["linear","radial"])),angle:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(360))).default(0),stops:e.z.array(e.z.object({offset:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1)),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)})).min(2)}),nt=e.z.object({top:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),right:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),bottom:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),left:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0)}),it=e.z.object({offsetX:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),offsetY:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),blur:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(.5)}),ot=e.z.object({width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1)}),at=e.z.object({family:e.z.optional(e.z.string()).default("Open Sans"),size:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(500))).default(24),weight:e.z.optional(e.z.unknown()).default("400"),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#ffffff"),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1),background:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),stroke:e.z.optional(ot)}),st=e.z.object({letterSpacing:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),lineHeight:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10))).default(1.2),textTransform:e.z.optional(e.z.enum(["none","uppercase","lowercase","capitalize"])),textDecoration:e.z.optional(e.z.enum(["none","underline","line-through"])),gradient:e.z.optional(rt)}),h=e.z.object({type:e.z.enum(["rich-text"]),text:e.z.string().max(5e3),font:e.z.optional(at),style:e.z.optional(st),shadow:e.z.optional(it),background:e.z.optional(et),border:e.z.optional(tt),padding:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0)),nt])),align:e.z.optional(Ye),animation:e.z.optional(ve)}),ut=h,lt=e.z.object({id:e.z.optional(e.z.string()),owner:e.z.optional(e.z.string()),status:e.z.optional(e.z.enum(["queued","failed"])),created:e.z.optional(e.z.string())}),pt=e.z.object({type:e.z.optional(e.z.string()),attributes:e.z.optional(lt)});e.z.object({data:pt});const zt=e.z.object({url:e.z.string(),id:e.z.string(),destinations:e.z.array(o)}),A=e.z.object({type:e.z.enum(["shape"]),shape:e.z.enum(["rectangle","circle","line"]),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),fill:e.z.optional(e.z.object({color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))})),stroke:e.z.optional(e.z.object({color:e.z.optional(e.z.string()),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))})),rectangle:e.z.optional(e.z.object({width:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()),height:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()),cornerRadius:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()))})),circle:e.z.optional(e.z.object({radius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())})),line:e.z.optional(e.z.object({length:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int()),thickness:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())}))}),dt=A,l=e.z.object({width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(4096))),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(4096)))}),ft=l,S=e.z.object({format:e.z.optional(e.z.enum(["mp4","webm","mov","avi","mkv","ogv","wmv","avif","gif","mp3","wav","jpg","png","webp","tif"])),size:e.z.optional(l),fit:e.z.optional(e.z.enum(["cover","contain","crop"])),resolution:e.z.optional(e.z.enum(["preview","mobile","sd","hd","fhd"])),quality:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(100))),fps:e.z.optional(e.z.union([e.z.literal(12),e.z.literal(15),e.z.literal(23.976),e.z.literal(24),e.z.literal(25),e.z.literal(29.97),e.z.literal(30),e.z.literal(48),e.z.literal(50),e.z.literal(59.94),e.z.literal(60)])),speed:e.z.optional(Ue),keyframeInterval:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(300))),fixOffset:e.z.optional(e.z.boolean()),fixRotation:e.z.optional(e.z.boolean()),enhance:e.z.optional(Ee),filename:e.z.optional(e.z.string())}),ct=e.z.object({renditions:e.z.optional(e.z.array(S)),transcription:e.z.optional(Ze)}),mt=e.z.object({id:e.z.string(),status:e.z.optional(e.z.enum(["queued","importing","ready","failed","deleted","overwritten"])),url:e.z.optional(e.z.string()),executionTime:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),transformation:e.z.optional(S),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),duration:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),fps:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))}),gt=e.z.object({renditions:e.z.optional(e.z.array(mt))}),yt=e.z.object({id:e.z.string(),owner:e.z.string(),input:e.z.optional(e.z.string()),source:e.z.optional(e.z.string()),status:e.z.optional(e.z.enum(["queued","importing","ready","failed","deleted","overwritten"])),outputs:e.z.optional(gt),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),duration:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),fps:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),created:e.z.optional(e.z.string()),updated:e.z.optional(e.z.string())}),j=e.z.object({type:e.z.string(),id:e.z.string(),attributes:yt});e.z.object({data:e.z.array(j)});e.z.object({data:j});const bt=e.z.object({url:e.z.optional(e.z.string()),outputs:e.z.optional(ct),destinations:e.z.optional(o),callback:e.z.optional(e.z.string())}),ht=e.z.object({src:e.z.string(),effect:e.z.optional(e.z.enum(["fadeIn","fadeOut","fadeInFadeOut"])),volume:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))}),N=e.z.object({offset:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1)),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)}),At=e.z.object({type:e.z.enum(["linear"]),angle:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(360))).default(0),stops:e.z.array(N).min(2),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1)}),St=e.z.object({type:e.z.enum(["radial"]),stops:e.z.array(N).min(2),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1)}),jt=e.z.object({offsetX:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),offsetY:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),blur:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0))).default(0),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(.5)}),Nt=e.z.object({type:e.z.enum(["solid"]),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1)}),wt=e.z.discriminatedUnion("type",[Nt,At,St]),xt=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)).default("#000000"),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(100))).default(1),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(1),lineCap:e.z.optional(e.z.enum(["butt","round","square"])),lineJoin:e.z.optional(e.z.enum(["miter","round","bevel"])),dashArray:e.z.optional(e.z.array(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0)))),dashOffset:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0)}),Tt=e.z.object({x:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),y:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())).default(0),rotation:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(-360).lte(360))).default(0),scale:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(.01).lte(100))).default(1),originX:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(.5),originY:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))).default(.5)}),kt=e.z.object({type:e.z.enum(["arrow"]),length:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096)),headWidth:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(1e3)),headLength:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(1e3)),shaftWidth:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(1e3))}),Ft=e.z.object({type:e.z.enum(["circle"]),radius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048))}),Ot=e.z.object({type:e.z.enum(["cross"]),width:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096)),height:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096)),thickness:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(500))}),Rt=e.z.object({type:e.z.enum(["ellipse"]),radiusX:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048)),radiusY:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048))}),Dt=e.z.object({type:e.z.enum(["heart"]),size:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096))}),Lt=e.z.object({type:e.z.enum(["line"]),length:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096)),thickness:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(500))}),It=e.z.object({type:e.z.enum(["path"]),d:e.z.string().min(1).max(1e5)}),Gt=e.z.object({type:e.z.enum(["polygon"]),sides:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(3).lte(100)),radius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048))}),Ct=e.z.object({type:e.z.enum(["rectangle"]),width:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096)),height:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(4096)),cornerRadius:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(2048))).default(0)}),Bt=e.z.object({type:e.z.enum(["ring"]),outerRadius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048)),innerRadius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(2048))}),Et=e.z.object({type:e.z.enum(["star"]),points:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(3).lte(100)),outerRadius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048)),innerRadius:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(1).lte(2048))}),qt=e.z.discriminatedUnion("type",[Ct,Ft,Rt,Lt,Gt,Et,kt,Dt,Ot,Bt,It]),Pt=e.z.object({type:e.z.enum(["svg"]),src:e.z.optional(e.z.string().min(1).max(5e5)),shape:e.z.optional(qt),fill:e.z.optional(wt),stroke:e.z.optional(xt),shadow:e.z.optional(jt),transform:e.z.optional(Tt),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1)))).default(1),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(4096)))),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(4096))))}).superRefine((t,a)=>{const d=t.shape!==void 0,s=t.src!==void 0&&t.src.trim()!=="";if(!d&&!s&&a.addIssue({code:e.z.ZodIssueCode.custom,message:"Either 'src' or 'shape' must be provided",path:[]}),d&&s&&a.addIssue({code:e.z.ZodIssueCode.custom,message:"Provide either 'src' or 'shape', not both",path:["src"]}),s){const B=["shape","fill","stroke","shadow","transform","width","height"];for(const u of B)t[u]!==void 0&&a.addIssue({code:e.z.ZodIssueCode.custom,message:`'${u}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,path:[u]})}}),$t=e.z.object({id:e.z.string(),merge:e.z.optional(e.z.array(y))}),_t=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","center","bottom"]))}),Ut=e.z.object({preset:e.z.enum(["typewriter"]),duration:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(.1).lte(30)))}),Zt=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))),padding:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(100))),borderRadius:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0)))}),Jt=e.z.object({family:e.z.optional(e.z.string()),color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),size:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),weight:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),lineHeight:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()))}),Mt=e.z.object({width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10))),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/))}),w=e.z.object({type:e.z.enum(["text"]),text:e.z.string(),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),font:e.z.optional(Jt),background:e.z.optional(Zt),alignment:e.z.optional(_t),stroke:e.z.optional(Mt),animation:e.z.optional(Ut),ellipsis:e.z.optional(e.z.string())}),Ht=w,Kt=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int())),crop:e.z.optional(n)}),Vt=e.z.object({capture:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()),scale:e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1))}),x=e.z.object({format:e.z.enum(["mp4","gif","mp3","jpg","png","bmp"]),resolution:e.z.optional(e.z.enum(["preview","mobile","sd","hd","1080","4k"])),aspectRatio:e.z.optional(e.z.enum(["16:9","9:16","1:1","4:5","4:3"])),size:e.z.optional(l),fps:e.z.optional(e.z.union([e.z.literal(12),e.z.literal(15),e.z.literal(23.976),e.z.literal(24),e.z.literal(25),e.z.literal(29.97),e.z.literal(30),e.z.literal(48),e.z.literal(50),e.z.literal(59.94),e.z.literal(60)])),scaleTo:e.z.optional(e.z.enum(["preview","mobile","sd","hd","1080","4k"])),quality:e.z.optional(e.z.enum(["verylow","low","medium","high","veryhigh"])),repeat:e.z.optional(e.z.boolean()),mute:e.z.optional(e.z.boolean()),range:e.z.optional(He),poster:e.z.optional(Me),thumbnail:e.z.optional(Vt),destinations:e.z.optional(e.z.array(o))}),p=x,T=e.z.object({in:e.z.optional(e.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:e.z.optional(e.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"]))}),Qt=T,r=e.z.object({from:e.z.optional(e.z.unknown()),to:e.z.optional(e.z.unknown()),start:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),length:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),interpolation:e.z.optional(e.z.enum(["linear","bezier","constant"])),easing:e.z.optional(e.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"]))}),k=r,F=e.z.object({type:e.z.enum(["audio"]),src:e.z.string(),trim:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),volume:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1)),e.z.array(r)])),speed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10))),effect:e.z.optional(e.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"]))}),Wt=F,z=e.z.object({x:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(-10).lte(10)),e.z.array(r)])),y:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(-10).lte(10)),e.z.array(r)]))}),Xt=z,Yt=e.z.object({angle:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(-360).lte(360)),e.z.array(r)]))}),vt=e.z.object({x:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(-100).lte(100)),e.z.array(r)])),y:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(-100).lte(100)),e.z.array(r)]))}),er=e.z.object({type:e.z.enum(["title"]),text:e.z.string(),style:e.z.optional(e.z.enum(["minimal","blockbuster","vogue","sketchy","skinny","chunk","chunkLight","marker","future","subtitle"])),color:e.z.optional(e.z.string()),size:e.z.optional(e.z.enum(["xx-small","x-small","small","medium","large","x-large","xx-large"])),background:e.z.optional(e.z.string()),position:e.z.optional(e.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"])),offset:e.z.optional(z)}),O=e.z.object({rotate:e.z.optional(Yt),skew:e.z.optional(vt),flip:e.z.optional(Oe)}),tr=O,R=e.z.object({type:e.z.enum(["video"]),src:e.z.string(),transcode:e.z.optional(e.z.boolean()),trim:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),volume:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(1)),e.z.array(r)])),volumeEffect:e.z.optional(e.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"])),speed:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().gte(0).lte(10))),crop:e.z.optional(n),chromaKey:e.z.optional(_)}),rr=R,D=e.z.discriminatedUnion("type",[R,m,w,h,F,g,f,c,er,A,Pt,Kt,Ie]),nr=D,L=e.z.object({asset:D,start:e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()),e.z.enum(["auto"])]),length:e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()),e.z.literal("auto"),e.z.literal("end")]),fit:e.z.optional(e.z.enum(["cover","contain","crop","none"])),scale:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),width:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(3840))),height:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number().int().gte(1).lte(2160))),position:e.z.optional(e.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"])),offset:e.z.optional(z),transition:e.z.optional(T),effect:e.z.optional(e.z.enum(["zoomIn","zoomInSlow","zoomInFast","zoomOut","zoomOutSlow","zoomOutFast","slideLeft","slideLeftSlow","slideLeftFast","slideRight","slideRightSlow","slideRightFast","slideUp","slideUpSlow","slideUpFast","slideDown","slideDownSlow","slideDownFast"])),filter:e.z.optional(e.z.enum(["none","blur","boost","contrast","darken","greyscale","lighten","muted","negative"])),opacity:e.z.optional(e.z.union([e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number()),e.z.array(r)])),transform:e.z.optional(O),alias:e.z.optional(e.z.string().regex(/^[A-Za-z0-9_-]+$/))}),ir=L,I=e.z.object({clips:e.z.array(L)}),or=I,G=e.z.object({soundtrack:e.z.optional(ht),background:e.z.optional(e.z.string()),fonts:e.z.optional(e.z.array(Re)),tracks:e.z.array(I),cache:e.z.optional(e.z.boolean())}),ar=G,i=e.z.object({timeline:G,output:x,merge:e.z.optional(e.z.array(y)),callback:e.z.optional(e.z.string()),disk:e.z.optional(e.z.enum(["local","mount"]))}),sr=i,ur=e.z.object({id:e.z.string(),owner:e.z.string(),plan:e.z.optional(e.z.string()),status:e.z.enum(["queued","fetching","preprocessing","rendering","saving","done","failed"]),error:e.z.optional(e.z.string()),duration:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),renderTime:e.z.optional(e.z.preprocess(t=>{if(!(t===""||t===null||t===void 0||Array.isArray(t)))return typeof t=="string"?Number(t):t},e.z.number())),url:e.z.optional(e.z.string()),poster:e.z.optional(e.z.union([e.z.string(),e.z.null()])),thumbnail:e.z.optional(e.z.union([e.z.string(),e.z.null()])),data:e.z.optional(i),created:e.z.optional(e.z.string()),updated:e.z.optional(e.z.string())});e.z.object({success:e.z.boolean(),message:e.z.string(),response:ur});const lr=e.z.object({id:e.z.string(),name:e.z.string(),owner:e.z.string(),template:i});e.z.object({success:e.z.boolean(),message:e.z.string(),response:lr});const C=e.z.object({name:e.z.string(),template:e.z.optional(i)});e.z.object({body:i,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.object({data:e.z.optional(e.z.boolean()),merged:e.z.optional(e.z.boolean())}))});e.z.object({body:e.z.optional(e.z.never()),path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:C,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.void();e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.object({body:C,path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.object({body:$t,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({url:e.z.string()}),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.void();e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.object({body:zt,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:bt,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.void();e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:de,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.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}$/)}),query:e.z.optional(e.z.never())});const pr=Fe,zr=ft,dr=p.shape.format,fr=p.shape.fps.unwrap(),cr=e.z.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);exports.AssetSchema=nr;exports.AudioAssetSchema=Wt;exports.CaptionAssetSchema=$;exports.ClipSchema=ir;exports.CropSchema=fe;exports.DestinationSchema=pr;exports.EditSchema=sr;exports.HexColorSchema=cr;exports.HtmlAssetSchema=De;exports.ImageAssetSchema=Le;exports.KeyframeSchema=k;exports.LumaAssetSchema=Je;exports.OffsetSchema=Xt;exports.OutputFormatSchema=dr;exports.OutputFpsSchema=fr;exports.OutputSchema=p;exports.OutputSizeSchema=zr;exports.RichTextAssetSchema=ut;exports.ShapeAssetSchema=dt;exports.TextAssetSchema=Ht;exports.TimelineSchema=ar;exports.TrackSchema=or;exports.TransformationSchema=tr;exports.TransitionSchema=Qt;exports.TweenSchema=k;exports.VideoAssetSchema=rr;