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

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 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;
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 q=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()))}),P=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()))}),$=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(P),background:e.z.optional(q),margin:e.z.optional($),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,U=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)))}),Z=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())}),J=e.z.object({type:e.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")}).and(Z),M=e.z.object({provider:e.z.enum(["d-id"]),options:J}),H=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"])}),K=e.z.object({type:e.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")}).and(H),V=e.z.object({provider:e.z.enum(["elevenlabs"]),options:K}),Q=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())}),W=e.z.object({type:e.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")}).and(Q),X=e.z.object({provider:e.z.enum(["heygen"]),options:W}),Y=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())}),v=e.z.object({type:e.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")}).and(Y),ee=e.z.object({provider:e.z.enum(["openai"]),options:v}),te=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(te)});const re=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()}),ne=e.z.object({type:e.z.string(),id:e.z.string(),attributes:re});e.z.object({data:ne});const ie=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)}),oe=e.z.object({type:e.z.enum(["text-generator"]),prompt:e.z.string()}),ae=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())}),se=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)}),ue=e.z.union([e.z.object({type:e.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")}).and(se),e.z.object({type:e.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")}).and(ae),e.z.object({type:e.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")}).and(oe),e.z.object({type:e.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")}).and(ie)]),le=e.z.object({provider:e.z.enum(["shotstack"]),options:ue}),pe=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"]))}),ze=e.z.object({type:e.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")}).and(pe),de=e.z.object({provider:e.z.enum(["stability-ai"]),options:ze}),fe=e.z.union([e.z.object({provider:e.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")}).and(le),e.z.object({provider:e.z.literal("didGeneratedAsset_DIDGeneratedAsset")}).and(M),e.z.object({provider:e.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")}).and(V),e.z.object({provider:e.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")}).and(X),e.z.object({provider:e.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")}).and(ee),e.z.object({provider:e.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")}).and(de)]),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)))}),ce=n,me=e.z.object({bucket:e.z.string(),prefix:e.z.optional(e.z.string()),filename:e.z.optional(e.z.string())}),ge=e.z.object({provider:e.z.string().default("google-cloud-storage"),options:e.z.optional(me)}),ye=e.z.object({folderId:e.z.string(),filename:e.z.optional(e.z.string())}),be=e.z.object({provider:e.z.string().default("google-drive"),options:ye}),he=e.z.object({playbackPolicy:e.z.optional(e.z.array(e.z.enum(["public","signed"]))),passthrough:e.z.optional(e.z.string().max(255))}),Ae=e.z.object({provider:e.z.string().default("mux"),options:e.z.optional(he)}),Se=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())}),je=e.z.object({provider:e.z.string().default("s3"),options:e.z.optional(Se)}),Ne=e.z.object({provider:e.z.string().default("shotstack"),exclude:e.z.optional(e.z.boolean())}),we=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)}),xe=e.z.object({provider:e.z.string().default("tiktok"),options:e.z.optional(we)}),Te=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"]))}),ke=e.z.object({name:e.z.optional(e.z.string()),description:e.z.optional(e.z.string()),privacy:e.z.optional(Te),folderUri:e.z.optional(e.z.string())}),Fe=e.z.object({provider:e.z.string().default("vimeo"),options:e.z.optional(ke)}),o=e.z.union([e.z.object({destinations:e.z.optional(e.z.literal("shotstackDestination_ShotstackDestination"))}).and(Ne),e.z.object({destinations:e.z.optional(e.z.literal("muxDestination_MuxDestination"))}).and(Ae),e.z.object({destinations:e.z.optional(e.z.literal("s3Destination_S3Destination"))}).and(je),e.z.object({destinations:e.z.optional(e.z.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))}).and(ge),e.z.object({destinations:e.z.optional(e.z.literal("googleDriveDestination_GoogleDriveDestination"))}).and(be),e.z.object({destinations:e.z.optional(e.z.literal("vimeoDestination_VimeoDestination"))}).and(Fe),e.z.object({destinations:e.z.optional(e.z.literal("tiktokDestination_TiktokDestination"))}).and(xe)]),Oe=o,Re=e.z.object({horizontal:e.z.optional(e.z.boolean()),vertical:e.z.optional(e.z.boolean())}),De=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"]))}),Le=c,m=e.z.object({type:e.z.enum(["image"]),src:e.z.string(),crop:e.z.optional(n)}),Ie=m,Ge=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)}),Ce=e.z.object({preset:e.z.enum(["conference","interview","lecture","meeting","mobile_phone","music","podcast","studio","voice_over"])}),Be=e.z.object({provider:e.z.string().default("dolby"),options:Ce}),Ee=e.z.object({enhancement:e.z.literal("dolbyEnhancement_DolbyEnhancement")}).and(Be),qe=e.z.object({audio:e.z.optional(Ee)}),Pe=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(Pe)});const $e=e.z.object({type:e.z.string(),id:e.z.string()});e.z.object({data:$e});const _e=e.z.object({id:e.z.string(),url:e.z.string(),expires:e.z.string()}),Ue=e.z.object({type:e.z.string(),id:e.z.string(),attributes:_e});e.z.object({data:Ue});const Ze=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())}),Je=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()))}),Me=g,y=e.z.object({find:e.z.string(),replace:e.z.unknown()}),He=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())}),Ke=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)))}),Ve=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:Ve});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 Qe=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Qe});const We=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())}),Xe=e.z.object({owner:e.z.string(),templates:e.z.array(We)});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Xe});const Ye=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Ye});const ve=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","middle","bottom"]))}),et=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"]))}),tt=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)}),rt=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)}),nt=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)}),it=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)}),ot=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)}),at=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)}),st=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(at)}),ut=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(nt)}),h=e.z.object({type:e.z.enum(["rich-text"]),text:e.z.string().max(5e3),font:e.z.optional(st),style:e.z.optional(ut),shadow:e.z.optional(ot),background:e.z.optional(tt),border:e.z.optional(rt),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)),it])),align:e.z.optional(ve),animation:e.z.optional(et)}),lt=h,pt=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())}),zt=e.z.object({type:e.z.optional(e.z.string()),attributes:e.z.optional(pt)});e.z.object({data:zt});const dt=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())}))}),ft=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)))}),ct=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(Ze),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(qe),filename:e.z.optional(e.z.string())}),mt=e.z.object({renditions:e.z.optional(e.z.array(S)),transcription:e.z.optional(Je)}),gt=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()))}),yt=e.z.object({renditions:e.z.optional(e.z.array(gt))}),bt=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(yt),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:bt});e.z.object({data:e.z.array(j)});e.z.object({data:j});const ht=e.z.object({url:e.z.optional(e.z.string()),outputs:e.z.optional(mt),destinations:e.z.optional(o),callback:e.z.optional(e.z.string())}),At=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}$/)}),St=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)}),jt=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)}),Nt=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)}),wt=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)}),xt=e.z.discriminatedUnion("type",[wt,St,jt]),Tt=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)}),kt=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)}),Ft=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))}),Ot=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))}),Rt=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))}),Dt=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))}),Lt=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))}),It=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))}),Gt=e.z.object({type:e.z.enum(["path"]),d:e.z.string().min(1).max(1e5)}),Ct=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))}),Bt=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)}),Et=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))}),qt=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))}),Pt=e.z.discriminatedUnion("type",[Bt,Ot,Dt,It,Ct,qt,Ft,Lt,Rt,Et,Gt]),w=e.z.object({type:e.z.enum(["svg"]),src:e.z.optional(e.z.string().min(1).max(5e5)),shape:e.z.optional(Pt),fill:e.z.optional(xt),stroke:e.z.optional(Tt),shadow:e.z.optional(Nt),transform:e.z.optional(kt),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 E=["shape","fill","stroke","shadow","transform","width","height"];for(const u of E)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=w,_t=e.z.object({id:e.z.string(),merge:e.z.optional(e.z.array(y))}),Ut=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","center","bottom"]))}),Zt=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)))}),Jt=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)))}),Mt=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()))}),Ht=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}$/))}),x=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(Mt),background:e.z.optional(Jt),alignment:e.z.optional(Ut),stroke:e.z.optional(Ht),animation:e.z.optional(Zt),ellipsis:e.z.optional(e.z.string())}),Kt=x,Vt=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)}),Qt=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))}),T=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(Ke),poster:e.z.optional(He),thumbnail:e.z.optional(Qt),destinations:e.z.optional(e.z.array(o))}),p=T,k=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"]))}),Wt=k,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"]))}),F=r,O=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"]))}),Xt=O,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)]))}),Yt=z,vt=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)]))}),er=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)]))}),tr=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)}),R=e.z.object({rotate:e.z.optional(vt),skew:e.z.optional(er),flip:e.z.optional(Re)}),rr=R,D=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(U)}),nr=D,L=e.z.discriminatedUnion("type",[D,m,x,h,O,g,f,c,tr,A,w,Vt,Ge]),ir=L,I=e.z.object({asset:L,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(k),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(R),alias:e.z.optional(e.z.string().regex(/^[A-Za-z0-9_-]+$/))}),or=I,G=e.z.object({clips:e.z.array(I)}),ar=G,C=e.z.object({soundtrack:e.z.optional(At),background:e.z.optional(e.z.string()),fonts:e.z.optional(e.z.array(De)),tracks:e.z.array(G),cache:e.z.optional(e.z.boolean())}),sr=C,i=e.z.object({timeline:C,output:T,merge:e.z.optional(e.z.array(y)),callback:e.z.optional(e.z.string()),disk:e.z.optional(e.z.enum(["local","mount"]))}),ur=i,lr=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:lr});const pr=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:pr});const B=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:B,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:B,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:dt,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:ht,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:fe,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 zr=Oe,dr=ct,fr=p.shape.format,cr=p.shape.fps.unwrap(),mr=e.z.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);exports.AssetSchema=ir;exports.AudioAssetSchema=Xt;exports.CaptionAssetSchema=_;exports.ClipSchema=or;exports.CropSchema=ce;exports.DestinationSchema=zr;exports.EditSchema=ur;exports.HexColorSchema=mr;exports.HtmlAssetSchema=Le;exports.ImageAssetSchema=Ie;exports.KeyframeSchema=F;exports.LumaAssetSchema=Me;exports.OffsetSchema=Yt;exports.OutputFormatSchema=fr;exports.OutputFpsSchema=cr;exports.OutputSchema=p;exports.OutputSizeSchema=dr;exports.RichTextAssetSchema=lt;exports.ShapeAssetSchema=ft;exports.SvgAssetSchema=$t;exports.TextAssetSchema=Kt;exports.TimelineSchema=sr;exports.TrackSchema=ar;exports.TransformationSchema=rr;exports.TransitionSchema=Wt;exports.TweenSchema=F;exports.VideoAssetSchema=nr;
@@ -281,6 +281,8 @@ export declare class CanvasToolbar {
281
281
  constructor(edit?: Edit, options?: {
282
282
  mergeFields?: boolean;
283
283
  });
284
+ /** Get the edit as ShotstackEdit if it has merge field capabilities */
285
+ private getShotstackEdit;
284
286
  setPosition(screenX: number, screenY: number): void;
285
287
  mount(parent: HTMLElement): void;
286
288
  private setupEventListeners;
@@ -528,8 +530,6 @@ export declare class Edit extends Entity {
528
530
  private isLoadingEdit;
529
531
  private syncCorrectionCount;
530
532
  private toolbarButtons;
531
- /** Merge field service for managing dynamic content placeholders */
532
- mergeFields: MergeFieldService;
533
533
  private canvas;
534
534
  private lumaMaskController;
535
535
  private clipErrors;
@@ -700,12 +700,12 @@ export declare class Edit extends Entity {
700
700
  */
701
701
  updateClipTiming(trackIdx: number, clipIdx: number, params: TimingUpdateParams): void;
702
702
  executeEditCommand(command: EditCommand): void | Promise<void>;
703
- private executeCommand;
703
+ protected executeCommand(command: EditCommand): void | Promise<void>;
704
704
  /**
705
705
  * Emits a unified `edit:changed` event after any state mutation.
706
706
  * Consumers can subscribe to this single event instead of tracking 31+ granular events.
707
707
  */
708
- private emitEditChanged;
708
+ protected emitEditChanged(source: string): void;
709
709
  /**
710
710
  * Detects merge field placeholders in the raw edit before substitution.
711
711
  * Returns a map of clip keys ("trackIdx-clipIdx") to their merge field bindings.
@@ -727,7 +727,7 @@ export declare class Edit extends Entity {
727
727
  * Only called when structure is unchanged (same track/clip counts).
728
728
  */
729
729
  private applyGranularChanges;
730
- private createCommandContext;
730
+ protected createCommandContext(): CommandContext;
731
731
  private queueDisposeClip;
732
732
  protected disposeClips(): void;
733
733
  /**
@@ -817,69 +817,9 @@ export declare class Edit extends Entity {
817
817
  */
818
818
  getToolbarButtons(): ToolbarButtonConfig_2[];
819
819
  /** Get the exportable clip (with merge field placeholders restored) */
820
- private getTemplateClip;
820
+ protected getTemplateClip(trackIndex: number, clipIndex: number): ResolvedClip | null;
821
821
  /** Get the text content from the template clip (with merge field placeholders) */
822
822
  getTemplateClipText(trackIdx: number, clipIdx: number): string | null;
823
- /**
824
- * Apply a merge field to a clip property.
825
- * Creates a command for undo/redo support.
826
- *
827
- * @param trackIndex - Track index
828
- * @param clipIndex - Clip index within the track
829
- * @param propertyPath - Dot-notation path to property (e.g., "asset.src", "asset.color")
830
- * @param fieldName - Name of the merge field (e.g., "MEDIA_URL")
831
- * @param value - The resolved value to apply
832
- * @param originalValue - Optional: the original value before merge field (for undo)
833
- */
834
- applyMergeField(trackIndex: number, clipIndex: number, propertyPath: string, fieldName: string, value: string, originalValue?: string): void;
835
- /**
836
- * Remove a merge field from a clip property, restoring the original value.
837
- *
838
- * @param trackIndex - Track index
839
- * @param clipIndex - Clip index within the track
840
- * @param propertyPath - Dot-notation path to property (e.g., "asset.src")
841
- * @param restoreValue - The value to restore (original pre-merge-field value)
842
- */
843
- removeMergeField(trackIndex: number, clipIndex: number, propertyPath: string, restoreValue: string): void;
844
- /**
845
- * Get the merge field name for a clip property, if any.
846
- *
847
- * @returns The field name if a merge field is applied, null otherwise
848
- */
849
- getMergeFieldForProperty(trackIndex: number, clipIndex: number, propertyPath: string): string | null;
850
- /**
851
- * Update the value of a merge field. Updates all clips using this field in-place.
852
- * This does NOT use the command pattern (no undo) - it's for live preview updates.
853
- */
854
- updateMergeFieldValueLive(fieldName: string, newValue: string): void;
855
- /** Helper: Update merge field binding resolvedValues for a player */
856
- private updateMergeFieldBindings;
857
- /** Helper: Update merge field occurrences in an object */
858
- private updateMergeFieldInObject;
859
- /**
860
- * Redraw all clips that use a specific merge field.
861
- * Call this after updateMergeFieldValueLive() to refresh the canvas.
862
- * Handles both text redraws and asset reloads for URL changes.
863
- */
864
- redrawMergeFieldClips(fieldName: string): void;
865
- /** Helper: Check if and how a clip uses a specific merge field */
866
- private getMergeFieldUsage;
867
- /**
868
- * Check if a merge field is used for asset.src in any clip.
869
- * Used by UI to determine if URL validation should be applied.
870
- */
871
- isSrcMergeField(fieldName: string): boolean;
872
- /**
873
- * Remove a merge field globally from all clips and the registry.
874
- * Restores all affected clip properties to the merge field's default value.
875
- *
876
- * @param fieldName - The merge field name to remove
877
- */
878
- deleteMergeFieldGlobally(fieldName: string): void;
879
- /**
880
- * Helper: Find and restore merge field occurrences in a clip
881
- */
882
- private restoreMergeFieldInClip;
883
823
  /** Map of content player → luma player for attachment tracking */
884
824
  private lumaAttachments;
885
825
  /** Map of asset src → original asset type (for reliable luma detachment) */
@@ -1208,6 +1148,8 @@ export declare class MediaToolbar extends BaseToolbar {
1208
1148
  private showMergeFields;
1209
1149
  private assetType;
1210
1150
  constructor(edit: Edit, options?: MediaToolbarOptions);
1151
+ /** Get the edit as ShotstackEdit if it has merge field capabilities */
1152
+ private getShotstackEdit;
1211
1153
  private currentFit;
1212
1154
  private currentVolume;
1213
1155
  private transitionPanel;
@@ -1548,7 +1490,8 @@ declare enum PlayerType {
1548
1490
  Luma = "luma",
1549
1491
  Html = "html",
1550
1492
  Shape = "shape",
1551
- Caption = "caption"
1493
+ Caption = "caption",
1494
+ Svg = "svg"
1552
1495
  }
1553
1496
 
1554
1497
  declare type ResolutionChangeCallback = (width: number, height: number) => void;
@@ -1589,6 +1532,7 @@ export declare class RichTextToolbar extends BaseToolbar {
1589
1532
  private fontPicker;
1590
1533
  private sizeInput;
1591
1534
  private sizePopup;
1535
+ private weightDropdown;
1592
1536
  private weightPopup;
1593
1537
  private weightPreview;
1594
1538
  private spacingPopup;
@@ -1644,6 +1588,7 @@ export declare class RichTextToolbar extends BaseToolbar {
1644
1588
  private stylePanel;
1645
1589
  private boundHandleClick;
1646
1590
  constructor(edit: Edit, options?: RichTextToolbarOptions);
1591
+ private getShotstackEdit;
1647
1592
  mount(parent: HTMLElement): void;
1648
1593
  private handleClick;
1649
1594
  private getCurrentAsset;
@@ -1677,7 +1622,7 @@ export declare class RichTextToolbar extends BaseToolbar {
1677
1622
  private getFilteredFieldCount;
1678
1623
  private buildFontPicker;
1679
1624
  private getDisplayName;
1680
- private selectGoogleFont;
1625
+ private selectFont;
1681
1626
  private updateVerticalAlign;
1682
1627
  private cycleAlignment;
1683
1628
  private updateAlignment;
@@ -1713,17 +1658,12 @@ declare type Seconds = number & {
1713
1658
 
1714
1659
  declare const SecondsSymbol: unique symbol;
1715
1660
 
1716
- /**
1717
- * SelectionHandles renders selection UI (outline + resize handles) on selected players
1718
- * and handles all drag/resize/rotate interactions.
1719
- *
1720
- * This class decouples interaction logic from Player, allowing Canvas to work as a pure renderer.
1721
- */
1722
1661
  export declare class SelectionHandles implements CanvasOverlayRegistration {
1723
1662
  private edit;
1724
1663
  private container;
1725
1664
  private outline;
1726
1665
  private handles;
1666
+ private edgeHandles;
1727
1667
  private app;
1728
1668
  private positionBuilder;
1729
1669
  private selectedPlayer;
@@ -1756,6 +1696,7 @@ export declare class SelectionHandles implements CanvasOverlayRegistration {
1756
1696
  private syncToPlayer;
1757
1697
  private drawOutline;
1758
1698
  private drawHandles;
1699
+ private drawEdgeHandles;
1759
1700
  private getUIScale;
1760
1701
  private onPointerDown;
1761
1702
  private onPointerMove;
@@ -1847,6 +1788,7 @@ export declare class TextToolbar extends BaseToolbar {
1847
1788
  private effectPopup;
1848
1789
  private effectPanel;
1849
1790
  private boundHandleClick;
1791
+ private getShotstackEdit;
1850
1792
  mount(parent: HTMLElement): void;
1851
1793
  private bindElements;
1852
1794
  private setupEventListeners;