@shotstack/shotstack-studio 2.0.0-beta.14 → 2.0.0-beta.16
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.
- package/dist/index.d.ts +71 -3
- package/dist/internal.es.js +3346 -3092
- package/dist/internal.umd.js +16 -16
- package/dist/schema/index.cjs +1 -1
- package/dist/schema/index.d.ts +71 -3
- package/dist/schema/index.mjs +59 -57
- package/dist/shotstack-studio.es.js +3753 -3466
- package/dist/shotstack-studio.umd.js +75 -75
- package/package.json +2 -2
package/dist/schema/index.cjs
CHANGED
|
@@ -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 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;
|
|
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)}),a=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)]),Re=a,Oe=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(a)}),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,p=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=p,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(p),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(a),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))}),Rt=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))}),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,Rt,Dt,It,Ct,qt,Ft,Lt,Ot,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,s)=>{const d=t.shape!==void 0,u=t.src!==void 0&&t.src.trim()!=="";if(!d&&!u&&s.addIssue({code:e.z.ZodIssueCode.custom,message:"Either 'src' or 'shape' must be provided",path:[]}),d&&u&&s.addIssue({code:e.z.ZodIssueCode.custom,message:"Provide either 'src' or 'shape', not both",path:["src"]}),u){const E=["shape","fill","stroke","shadow","transform","width","height"];for(const l of E)t[l]!==void 0&&s.addIssue({code:e.z.ZodIssueCode.custom,message:`'${l}' is not allowed when using 'src'. Only 'type' and 'src' are allowed in import mode`,path:[l]})}}),$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(p),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(a))}),i=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,R=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=R,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)}),O=e.z.object({rotate:e.z.optional(vt),skew:e.z.optional(er),flip:e.z.optional(Oe)}),rr=O,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,R,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(O),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,o=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=o,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(o),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:o});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(o)});e.z.object({body:o,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=Re,dr=ct,fr=i.shape.format,cr=i.shape.fps.unwrap(),mr=i.shape.resolution,gr=i.shape.aspectRatio,yr=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=yr;exports.HtmlAssetSchema=Le;exports.ImageAssetSchema=Ie;exports.KeyframeSchema=F;exports.LumaAssetSchema=Me;exports.OffsetSchema=Yt;exports.OutputAspectRatioSchema=gr;exports.OutputFormatSchema=fr;exports.OutputFpsSchema=cr;exports.OutputResolutionSchema=mr;exports.OutputSchema=i;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;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -196,6 +196,8 @@ export declare class Canvas {
|
|
|
196
196
|
private currentZoom;
|
|
197
197
|
private onTickBound;
|
|
198
198
|
private onBackgroundClickBound;
|
|
199
|
+
private onWheelBound;
|
|
200
|
+
private canvasRoot;
|
|
199
201
|
constructor(edit: Edit);
|
|
200
202
|
/**
|
|
201
203
|
* Register a UIController to receive tick updates for canvas overlays.
|
|
@@ -204,6 +206,7 @@ export declare class Canvas {
|
|
|
204
206
|
registerUIController(controller: UIController): void;
|
|
205
207
|
load(): Promise<void>;
|
|
206
208
|
private setupTouchHandling;
|
|
209
|
+
private onWheel;
|
|
207
210
|
centerEdit(): void;
|
|
208
211
|
zoomToFit(padding?: number): void;
|
|
209
212
|
resize(): void;
|
|
@@ -278,9 +281,10 @@ export declare class CanvasToolbar {
|
|
|
278
281
|
private backgroundChangeCallback;
|
|
279
282
|
private clickOutsideHandler;
|
|
280
283
|
private showMergeFields;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
private maxPixels?;
|
|
285
|
+
constructor(edit?: Edit, options?: CanvasToolbarOptions);
|
|
286
|
+
/** Check if given dimensions exceed the configured pixel limit */
|
|
287
|
+
private isOverLimit;
|
|
284
288
|
/** Get the edit as ShotstackEdit if it has merge field capabilities */
|
|
285
289
|
private getShotstackEdit;
|
|
286
290
|
setPosition(screenX: number, screenY: number): void;
|
|
@@ -299,6 +303,8 @@ export declare class CanvasToolbar {
|
|
|
299
303
|
private renderVariablesList;
|
|
300
304
|
private addVariable;
|
|
301
305
|
setResolution(width: number, height: number): void;
|
|
306
|
+
/** Update warning state for inputs when loaded resolution exceeds configured limit */
|
|
307
|
+
private updateConstraintWarning;
|
|
302
308
|
setFps(fps: number): void;
|
|
303
309
|
setBackground(color: string): void;
|
|
304
310
|
onResolutionChange(callback: ResolutionChangeCallback): void;
|
|
@@ -307,6 +313,12 @@ export declare class CanvasToolbar {
|
|
|
307
313
|
dispose(): void;
|
|
308
314
|
}
|
|
309
315
|
|
|
316
|
+
declare interface CanvasToolbarOptions {
|
|
317
|
+
mergeFields?: boolean;
|
|
318
|
+
/** Maximum total pixels allowed for custom resolution input. Omit for unlimited. */
|
|
319
|
+
maxPixels?: number;
|
|
320
|
+
}
|
|
321
|
+
|
|
310
322
|
export declare type CaptionAsset = components["schemas"]["CaptionAsset"];
|
|
311
323
|
|
|
312
324
|
export { CaptionAssetSchema }
|
|
@@ -403,6 +415,15 @@ declare type CommandContext = {
|
|
|
403
415
|
untrackEndLengthClip(clip: Player): void;
|
|
404
416
|
trackEndLengthClip(clip: Player): void;
|
|
405
417
|
getMergeFields(): MergeFieldService;
|
|
418
|
+
getOutputSize(): {
|
|
419
|
+
width: number;
|
|
420
|
+
height: number;
|
|
421
|
+
};
|
|
422
|
+
setOutputSize(width: number, height: number): void;
|
|
423
|
+
getOutputFps(): number;
|
|
424
|
+
setOutputFps(fps: number): void;
|
|
425
|
+
getTimelineBackground(): string;
|
|
426
|
+
setTimelineBackground(color: string): void;
|
|
406
427
|
};
|
|
407
428
|
|
|
408
429
|
export declare class Controls {
|
|
@@ -514,6 +535,12 @@ export declare const DestinationSchema: z.ZodUnion<readonly [z.ZodIntersection<z
|
|
|
514
535
|
|
|
515
536
|
export declare class Edit extends Entity {
|
|
516
537
|
private static readonly ZIndexPadding;
|
|
538
|
+
/**
|
|
539
|
+
* Maximum number of commands to keep in undo history.
|
|
540
|
+
* Prevents unbounded memory growth in long editing sessions.
|
|
541
|
+
* Each command may hold Player references and deep-cloned configs.
|
|
542
|
+
*/
|
|
543
|
+
private static readonly MAX_HISTORY_SIZE;
|
|
517
544
|
assetLoader: AssetLoader;
|
|
518
545
|
events: EventEmitter<EditEventMap & InternalEventMap>;
|
|
519
546
|
private edit;
|
|
@@ -557,6 +584,8 @@ export declare class Edit extends Entity {
|
|
|
557
584
|
*/
|
|
558
585
|
private initializeFromDocument;
|
|
559
586
|
private updateViewportMask;
|
|
587
|
+
/** Update canvas visuals after size change (viewport mask, background, zoom) */
|
|
588
|
+
private updateCanvasForSize;
|
|
560
589
|
play(): void;
|
|
561
590
|
pause(): void;
|
|
562
591
|
seek(target: number): void;
|
|
@@ -795,6 +824,10 @@ export declare class Edit extends Entity {
|
|
|
795
824
|
getOutputFormat(): string;
|
|
796
825
|
setOutputDestinations(destinations: Destination[]): void;
|
|
797
826
|
getOutputDestinations(): Destination[];
|
|
827
|
+
setOutputResolution(resolution: string): void;
|
|
828
|
+
getOutputResolution(): string | undefined;
|
|
829
|
+
setOutputAspectRatio(aspectRatio: string): void;
|
|
830
|
+
getOutputAspectRatio(): string | undefined;
|
|
798
831
|
getTimelineFonts(): Array<{
|
|
799
832
|
src: string;
|
|
800
833
|
}>;
|
|
@@ -908,6 +941,11 @@ declare type Edit_2 = components["schemas"]["Edit"];
|
|
|
908
941
|
declare type EditCommand = {
|
|
909
942
|
execute(context?: CommandContext): void | Promise<void>;
|
|
910
943
|
undo?(context?: CommandContext): void | Promise<void>;
|
|
944
|
+
/**
|
|
945
|
+
* Optional cleanup when command is pruned from history.
|
|
946
|
+
* Called when command is removed to free memory (e.g., Player references, deep-cloned configs).
|
|
947
|
+
*/
|
|
948
|
+
dispose?(): void;
|
|
911
949
|
readonly name: string;
|
|
912
950
|
};
|
|
913
951
|
|
|
@@ -935,6 +973,8 @@ export declare const EditEvent: {
|
|
|
935
973
|
readonly TrackRemoved: "track:removed";
|
|
936
974
|
readonly DurationChanged: "duration:changed";
|
|
937
975
|
readonly OutputResized: "output:resized";
|
|
976
|
+
readonly OutputResolutionChanged: "output:resolutionChanged";
|
|
977
|
+
readonly OutputAspectRatioChanged: "output:aspectRatioChanged";
|
|
938
978
|
readonly OutputFpsChanged: "output:fpsChanged";
|
|
939
979
|
readonly OutputFormatChanged: "output:formatChanged";
|
|
940
980
|
readonly OutputDestinationsChanged: "output:destinationsChanged";
|
|
@@ -1002,6 +1042,12 @@ export declare type EditEventMap = {
|
|
|
1002
1042
|
width: number;
|
|
1003
1043
|
height: number;
|
|
1004
1044
|
};
|
|
1045
|
+
[EditEvent.OutputResolutionChanged]: {
|
|
1046
|
+
resolution: string | undefined;
|
|
1047
|
+
};
|
|
1048
|
+
[EditEvent.OutputAspectRatioChanged]: {
|
|
1049
|
+
aspectRatio: string | undefined;
|
|
1050
|
+
};
|
|
1005
1051
|
[EditEvent.OutputFpsChanged]: {
|
|
1006
1052
|
fps: number;
|
|
1007
1053
|
};
|
|
@@ -1346,6 +1392,14 @@ export { OffsetSchema }
|
|
|
1346
1392
|
|
|
1347
1393
|
export declare type Output = components["schemas"]["Output"];
|
|
1348
1394
|
|
|
1395
|
+
export declare const OutputAspectRatioSchema: z.ZodOptional<z.ZodEnum<{
|
|
1396
|
+
"16:9": "16:9";
|
|
1397
|
+
"9:16": "9:16";
|
|
1398
|
+
"1:1": "1:1";
|
|
1399
|
+
"4:3": "4:3";
|
|
1400
|
+
"4:5": "4:5";
|
|
1401
|
+
}>>;
|
|
1402
|
+
|
|
1349
1403
|
export declare const OutputFormatSchema: z.ZodEnum<{
|
|
1350
1404
|
mp4: "mp4";
|
|
1351
1405
|
gif: "gif";
|
|
@@ -1357,6 +1411,15 @@ export declare const OutputFormatSchema: z.ZodEnum<{
|
|
|
1357
1411
|
|
|
1358
1412
|
export declare const OutputFpsSchema: z.ZodUnion<readonly [z.ZodLiteral<12>, z.ZodLiteral<15>, z.ZodLiteral<23.976>, z.ZodLiteral<24>, z.ZodLiteral<25>, z.ZodLiteral<29.97>, z.ZodLiteral<30>, z.ZodLiteral<48>, z.ZodLiteral<50>, z.ZodLiteral<59.94>, z.ZodLiteral<60>]>;
|
|
1359
1413
|
|
|
1414
|
+
export declare const OutputResolutionSchema: z.ZodOptional<z.ZodEnum<{
|
|
1415
|
+
preview: "preview";
|
|
1416
|
+
mobile: "mobile";
|
|
1417
|
+
sd: "sd";
|
|
1418
|
+
hd: "hd";
|
|
1419
|
+
1080: "1080";
|
|
1420
|
+
"4k": "4k";
|
|
1421
|
+
}>>;
|
|
1422
|
+
|
|
1360
1423
|
export { OutputSchema }
|
|
1361
1424
|
|
|
1362
1425
|
export declare const OutputSizeSchema: z.ZodObject<{
|
|
@@ -1864,6 +1927,7 @@ export declare class Timeline extends TimelineEntity {
|
|
|
1864
1927
|
private readonly handlePlaybackPause;
|
|
1865
1928
|
private readonly handleClipSelected;
|
|
1866
1929
|
private readonly handleClipLoadFailed;
|
|
1930
|
+
private readonly handleRulerMouseMove;
|
|
1867
1931
|
constructor(edit: Edit, container: HTMLElement, options?: TimelineOptions);
|
|
1868
1932
|
/** Initialize and mount the timeline */
|
|
1869
1933
|
load(): Promise<void>;
|
|
@@ -2185,6 +2249,8 @@ export declare class UIController {
|
|
|
2185
2249
|
readonly mergeFieldsEnabled: boolean;
|
|
2186
2250
|
/** Whether selection handles are enabled for drag/resize/rotate */
|
|
2187
2251
|
private readonly selectionHandlesEnabled;
|
|
2252
|
+
/** Maximum total pixels for resolution picker (undefined = unlimited) */
|
|
2253
|
+
private readonly maxPixels?;
|
|
2188
2254
|
private clipToolbar;
|
|
2189
2255
|
private toolbarMode;
|
|
2190
2256
|
private currentAssetType;
|
|
@@ -2384,6 +2450,8 @@ export declare interface UIControllerOptions {
|
|
|
2384
2450
|
selectionHandles?: boolean;
|
|
2385
2451
|
/** Enable merge fields UI (Variables panel, autocomplete). Default: false (vanilla video editor) */
|
|
2386
2452
|
mergeFields?: boolean;
|
|
2453
|
+
/** Maximum total pixels allowed for resolution picker input. Omit for unlimited. */
|
|
2454
|
+
maxPixels?: number;
|
|
2387
2455
|
}
|
|
2388
2456
|
|
|
2389
2457
|
/**
|