@shotstack/shotstack-studio 2.0.0-beta.6 → 2.0.0-beta.8
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 +2 -2
- package/dist/schema/index.cjs +1 -1
- package/dist/schema/index.d.ts +2 -2
- package/dist/schema/index.mjs +310 -310
- package/dist/shotstack-studio.es.js +4918 -4907
- package/dist/shotstack-studio.umd.js +89 -89
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1399,8 +1399,8 @@ export declare const OutputFpsSchema: z.ZodUnion<readonly [z.ZodLiteral<12>, z.Z
|
|
|
1399
1399
|
export { OutputSchema }
|
|
1400
1400
|
|
|
1401
1401
|
export declare const OutputSizeSchema: z.ZodObject<{
|
|
1402
|
-
width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
|
|
1403
|
-
height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
|
|
1402
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
|
|
1403
|
+
height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
|
|
1404
1404
|
}, z.core.$strip>;
|
|
1405
1405
|
|
|
1406
1406
|
declare interface PlaybackHealth {
|
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 L=e.z.object({color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),padding:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),borderRadius:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()))}),G=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),size:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),lineHeight:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),stroke:e.z.optional(e.z.string()),strokeWidth:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))}),I=e.z.object({top:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),left:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),right:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))}),z=e.z.object({type:e.z.enum(["caption"]),src:e.z.string(),font:e.z.optional(G),background:e.z.optional(L),margin:e.z.optional(I),trim:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))),speed:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(10))))}),C=z,B=e.z.object({color:e.z.optional(e.z.string()),threshold:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(0).lte(250))),halo:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(0).lte(250)))}),E=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())}),q=e.z.object({type:e.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")}).and(E),P=e.z.object({provider:e.z.enum(["d-id"]),options:q}),_=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"])}),$=e.z.object({type:e.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")}).and(_),U=e.z.object({provider:e.z.enum(["elevenlabs"]),options:$}),J=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())}),Z=e.z.object({type:e.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")}).and(J),M=e.z.object({provider:e.z.enum(["heygen"]),options:Z}),H=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())}),K=e.z.object({type:e.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")}).and(H),V=e.z.object({provider:e.z.enum(["openai"]),options:K}),Q=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(Q)});const W=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()}),X=e.z.object({type:e.z.string(),id:e.z.string(),attributes:W});e.z.object({data:X});const Y=e.z.object({type:e.z.enum(["image-to-video"]),imageUrl:e.z.string(),guidanceScale:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(1.8),motion:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())).default(127)}),v=e.z.object({type:e.z.enum(["text-generator"]),prompt:e.z.string()}),ee=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),width:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()),height:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())}),te=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)}),oe=e.z.union([e.z.object({type:e.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")}).and(te),e.z.object({type:e.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")}).and(ee),e.z.object({type:e.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")}).and(v),e.z.object({type:e.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")}).and(Y)]),ne=e.z.object({provider:e.z.enum(["shotstack"]),options:oe}),se=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()),height:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()),steps:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())).default(30),seed:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())).default(0),cfgScale:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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"]))}),re=e.z.object({type:e.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")}).and(se),ie=e.z.object({provider:e.z.enum(["stability-ai"]),options:re}),pe=e.z.union([e.z.object({provider:e.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")}).and(ne),e.z.object({provider:e.z.literal("didGeneratedAsset_DIDGeneratedAsset")}).and(P),e.z.object({provider:e.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")}).and(U),e.z.object({provider:e.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")}).and(M),e.z.object({provider:e.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")}).and(V),e.z.object({provider:e.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")}).and(ie)]),n=e.z.object({top:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))),bottom:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))),left:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))),right:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1)))}),ae=n,ze=e.z.object({bucket:e.z.string(),prefix:e.z.optional(e.z.string()),filename:e.z.optional(e.z.string())}),ce=e.z.object({provider:e.z.string().default("google-cloud-storage"),options:e.z.optional(ze)}),ue=e.z.object({folderId:e.z.string(),filename:e.z.optional(e.z.string())}),me=e.z.object({provider:e.z.string().default("google-drive"),options:ue}),be=e.z.object({playbackPolicy:e.z.optional(e.z.array(e.z.enum(["public","signed"]))),passthrough:e.z.optional(e.z.string().max(255))}),ge=e.z.object({provider:e.z.string().default("mux"),options:e.z.optional(be)}),Ne=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())}),fe=e.z.object({provider:e.z.string().default("s3"),options:e.z.optional(Ne)}),de=e.z.object({provider:e.z.string().default("shotstack"),exclude:e.z.optional(e.z.boolean())}),he=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)}),le=e.z.object({provider:e.z.string().default("tiktok"),options:e.z.optional(he)}),ye=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"]))}),Se=e.z.object({name:e.z.optional(e.z.string()),description:e.z.optional(e.z.string()),privacy:e.z.optional(ye),folderUri:e.z.optional(e.z.string())}),je=e.z.object({provider:e.z.string().default("vimeo"),options:e.z.optional(Se)}),r=e.z.union([e.z.object({destinations:e.z.optional(e.z.literal("shotstackDestination_ShotstackDestination"))}).and(de),e.z.object({destinations:e.z.optional(e.z.literal("muxDestination_MuxDestination"))}).and(ge),e.z.object({destinations:e.z.optional(e.z.literal("s3Destination_S3Destination"))}).and(fe),e.z.object({destinations:e.z.optional(e.z.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))}).and(ce),e.z.object({destinations:e.z.optional(e.z.literal("googleDriveDestination_GoogleDriveDestination"))}).and(me),e.z.object({destinations:e.z.optional(e.z.literal("vimeoDestination_VimeoDestination"))}).and(je),e.z.object({destinations:e.z.optional(e.z.literal("tiktokDestination_TiktokDestination"))}).and(le)]),Ae=r,we=e.z.object({horizontal:e.z.optional(e.z.boolean()),vertical:e.z.optional(e.z.boolean())}),xe=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),background:e.z.optional(e.z.string()),position:e.z.optional(e.z.enum(["top","topRight","right","bottomRight","bottom","bottomLeft","left","topLeft","center"]))}),Te=c,u=e.z.object({type:e.z.enum(["image"]),src:e.z.string(),crop:e.z.optional(n)}),ke=u,Fe=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(10)))),crop:e.z.optional(n)}),Oe=e.z.object({preset:e.z.enum(["conference","interview","lecture","meeting","mobile_phone","music","podcast","studio","voice_over"])}),Re=e.z.object({provider:e.z.string().default("dolby"),options:Oe}),De=e.z.object({enhancement:e.z.literal("dolbyEnhancement_DolbyEnhancement")}).and(Re),Le=e.z.object({audio:e.z.optional(De)}),Ge=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(Ge)});const Ie=e.z.object({type:e.z.string(),id:e.z.string()});e.z.object({data:Ie});const Ce=e.z.object({id:e.z.string(),url:e.z.string(),expires:e.z.string()}),Be=e.z.object({type:e.z.string(),id:e.z.string(),attributes:Ce});e.z.object({data:Be});const Ee=e.z.object({speed:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(10)))),preservePitch:e.z.optional(e.z.boolean())}),qe=e.z.object({format:e.z.optional(e.z.enum(["srt","vtt"]))}),m=e.z.object({type:e.z.enum(["luma"]),src:e.z.string(),trim:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())))}),Pe=m,b=e.z.object({find:e.z.string(),replace:e.z.unknown()}),_e=e.z.object({capture:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())}),$e=e.z.object({start:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))),length:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0)))}),Ue=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())}),g=e.z.object({type:e.z.string(),attributes:Ue});e.z.object({data:e.z.array(g)});e.z.object({data:g});e.z.object({success:e.z.boolean(),message:e.z.string(),response:e.z.record(e.z.string(),e.z.unknown())});const Je=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Je});const Ze=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())}),Me=e.z.object({owner:e.z.string(),templates:e.z.array(Ze)});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Me});const He=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:He});const Ke=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","middle","bottom"]))}),Ve=e.z.object({preset:e.z.enum(["fadeIn","slideIn","typewriter","ascend","shift","movingLetters"]),speed:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(.1).lte(10))).default(1),duration:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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"]))}),Qe=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1),borderRadius:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))).default(0)}),We=e.z.object({width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1),radius:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))).default(0)}),Xe=e.z.object({type:e.z.optional(e.z.enum(["linear","radial"])),angle:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(360))).default(0),stops:e.z.array(e.z.object({offset:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1)),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)})).min(2)}),Ye=e.z.object({top:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))).default(0),right:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))).default(0),bottom:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))).default(0),left:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0))).default(0)}),ve=e.z.object({offsetX:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),offsetY:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),blur:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(.5)}),et=e.z.object({width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1)}),tt=e.z.object({family:e.z.optional(e.z.string()).default("Open Sans"),size:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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(et)}),ot=e.z.object({letterSpacing:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),lineHeight:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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(Xe)}),N=e.z.object({type:e.z.enum(["rich-text"]),text:e.z.string().max(5e3),font:e.z.optional(tt),style:e.z.optional(ot),shadow:e.z.optional(ve),background:e.z.optional(Qe),border:e.z.optional(We),padding:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0)),Ye])),align:e.z.optional(Ke),animation:e.z.optional(Ve)}),nt=N,st=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())}),rt=e.z.object({type:e.z.optional(e.z.string()),attributes:e.z.optional(st)});e.z.object({data:rt});const it=e.z.object({url:e.z.string(),id:e.z.string(),destinations:e.z.array(r)}),f=e.z.object({type:e.z.enum(["shape"]),shape:e.z.enum(["rectangle","circle","line"]),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),fill:e.z.optional(e.z.object({color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))})),rectangle:e.z.optional(e.z.object({width:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()),height:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()),cornerRadius:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()))})),circle:e.z.optional(e.z.object({radius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())})),line:e.z.optional(e.z.object({length:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int()),thickness:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())}))}),pt=f,i=e.z.object({width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(1).lte(4096))),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(1).lte(4096)))}),at=i,d=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(i),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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.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(Ee),keyframeInterval:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(1).lte(300))),fixOffset:e.z.optional(e.z.boolean()),fixRotation:e.z.optional(e.z.boolean()),enhance:e.z.optional(Le),filename:e.z.optional(e.z.string())}),zt=e.z.object({renditions:e.z.optional(e.z.array(d)),transcription:e.z.optional(qe)}),ct=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),transformation:e.z.optional(d),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),duration:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),fps:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))}),ut=e.z.object({renditions:e.z.optional(e.z.array(ct))}),mt=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(ut),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),height:e.z.optional(e.z.string()),duration:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),fps:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),created:e.z.optional(e.z.string()),updated:e.z.optional(e.z.string())}),h=e.z.object({type:e.z.string(),id:e.z.string(),attributes:mt});e.z.object({data:e.z.array(h)});e.z.object({data:h});const bt=e.z.object({url:e.z.optional(e.z.string()),outputs:e.z.optional(zt),destinations:e.z.optional(r),callback:e.z.optional(e.z.string())}),gt=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))}),l=e.z.object({offset:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1)),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)}),Nt=e.z.object({type:e.z.enum(["linear"]),angle:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(360))).default(0),stops:e.z.array(l).min(2),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1)}),ft=e.z.object({type:e.z.enum(["radial"]),stops:e.z.array(l).min(2),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1)}),dt=e.z.object({offsetX:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),offsetY:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),blur:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(.5)}),ht=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1)}),lt=e.z.discriminatedUnion("type",[ht,Nt,ft]),yt=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(100))).default(1),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0)))),dashOffset:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0)}),St=e.z.object({x:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),y:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())).default(0),rotation:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(-360).lte(360))).default(0),scale:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(.01).lte(100))).default(1),originX:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(.5),originY:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(.5)}),jt=e.z.object({type:e.z.enum(["arrow"]),length:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096)),headWidth:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(1e3)),headLength:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(1e3)),shaftWidth:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(1e3))}),At=e.z.object({type:e.z.enum(["circle"]),radius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048))}),wt=e.z.object({type:e.z.enum(["cross"]),width:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096)),height:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096)),thickness:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(500))}),xt=e.z.object({type:e.z.enum(["ellipse"]),radiusX:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048)),radiusY:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048))}),Tt=e.z.object({type:e.z.enum(["heart"]),size:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096))}),kt=e.z.object({type:e.z.enum(["line"]),length:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096)),thickness:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(500))}),Ft=e.z.object({type:e.z.enum(["path"]),d:e.z.string().min(1).max(1e5)}),Ot=e.z.object({type:e.z.enum(["polygon"]),sides:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(3).lte(100)),radius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048))}),Rt=e.z.object({type:e.z.enum(["rectangle"]),width:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096)),height:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(4096)),cornerRadius:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(2048))).default(0)}),Dt=e.z.object({type:e.z.enum(["ring"]),outerRadius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048)),innerRadius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(2048))}),Lt=e.z.object({type:e.z.enum(["star"]),points:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(3).lte(100)),outerRadius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048)),innerRadius:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(1).lte(2048))}),Gt=e.z.discriminatedUnion("type",[Rt,At,xt,kt,Ot,Lt,jt,Tt,wt,Dt,Ft]),It=e.z.object({type:e.z.enum(["svg"]),shape:Gt,fill:e.z.optional(lt),stroke:e.z.optional(yt),shadow:e.z.optional(dt),transform:e.z.optional(St),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))).default(1),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(1).lte(4096))),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(1).lte(4096)))}),Ct=e.z.object({id:e.z.string(),merge:e.z.optional(e.z.array(b))}),Bt=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","center","bottom"]))}),Et=e.z.object({preset:e.z.enum(["typewriter"]),duration:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(.1).lte(30)))}),qt=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),opacity:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))),padding:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(100))),borderRadius:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0)))}),Pt=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),size:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),weight:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),lineHeight:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))}),_t=e.z.object({width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(10))),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/))}),y=e.z.object({type:e.z.enum(["text"]),text:e.z.string(),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),font:e.z.optional(Pt),background:e.z.optional(qt),alignment:e.z.optional(Bt),stroke:e.z.optional(_t),animation:e.z.optional(Et),ellipsis:e.z.optional(e.z.string())}),$t=y,Ut=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int())),crop:e.z.optional(n)}),Jt=e.z.object({capture:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()),scale:e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1))}),S=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(i),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($e),poster:e.z.optional(_e),thumbnail:e.z.optional(Jt),destinations:e.z.optional(e.z.array(r))}),p=S,j=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"]))}),Zt=j,o=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),length:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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"]))}),A=o,w=e.z.object({type:e.z.enum(["audio"]),src:e.z.string(),trim:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))),volume:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1)),e.z.array(o)])),speed:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(10)))),effect:e.z.optional(e.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"]))}),Mt=w,a=e.z.object({x:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(-10).lte(10)),e.z.array(o)])),y:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(-10).lte(10)),e.z.array(o)]))}),Ht=a,Kt=e.z.object({angle:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(-360).lte(360)),e.z.array(o)]))}),Vt=e.z.object({x:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(-100).lte(100)),e.z.array(o)])),y:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(-100).lte(100)),e.z.array(o)]))}),Qt=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(a)}),x=e.z.object({rotate:e.z.optional(Kt),skew:e.z.optional(Vt),flip:e.z.optional(we)}),Wt=x,T=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))),volume:e.z.optional(e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(1)),e.z.array(o)])),volumeEffect:e.z.optional(e.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"])),speed:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number().gte(0).lte(10)))),crop:e.z.optional(n),chromaKey:e.z.optional(B)}),Xt=T,k=e.z.discriminatedUnion("type",[T,u,y,N,w,m,z,c,Qt,f,It,Ut,Fe]),Yt=k,F=e.z.object({asset:k,start:e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),e.z.enum(["auto"])]),length:e.z.union([e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()))),width:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.int().gte(1).lte(3840))),height:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.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(a),transition:e.z.optional(j),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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number()),e.z.array(o)])),transform:e.z.optional(x),alias:e.z.optional(e.z.string().regex(/^[A-Za-z0-9_-]+$/))}),vt=F,O=e.z.object({clips:e.z.array(F)}),eo=O,R=e.z.object({soundtrack:e.z.optional(gt),background:e.z.optional(e.z.string()),fonts:e.z.optional(e.z.array(xe)),tracks:e.z.array(O),cache:e.z.optional(e.z.boolean())}),to=R,s=e.z.object({timeline:R,output:S,merge:e.z.optional(e.z.array(b)),callback:e.z.optional(e.z.string()),disk:e.z.optional(e.z.enum(["local","mount"]))}),oo=s,no=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=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?Number(t):t,e.z.number())),renderTime:e.z.optional(e.z.preprocess(t=>typeof t=="string"&&t!==""&&!isNaN(Number(t))?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(s),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:no});const so=e.z.object({id:e.z.string(),name:e.z.string(),owner:e.z.string(),template:s});e.z.object({success:e.z.boolean(),message:e.z.string(),response:so});const D=e.z.object({name:e.z.string(),template:e.z.optional(s)});e.z.object({body:s,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:D,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:D,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:Ct,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:it,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:bt,path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)}),query:e.z.optional(e.z.never())});e.z.void();e.z.object({body:e.z.optional(e.z.never()),path:e.z.object({id:e.z.string().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/)}),query:e.z.optional(e.z.never())});e.z.object({body:e.z.optional(e.z.never()),path:e.z.optional(e.z.never()),query:e.z.optional(e.z.never())});e.z.object({body:pe,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 ro=Ae,io=at,po=p.shape.format,ao=p.shape.fps.unwrap(),zo=e.z.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);exports.AssetSchema=Yt;exports.AudioAssetSchema=Mt;exports.CaptionAssetSchema=C;exports.ClipSchema=vt;exports.CropSchema=ae;exports.DestinationSchema=ro;exports.EditSchema=oo;exports.HexColorSchema=zo;exports.HtmlAssetSchema=Te;exports.ImageAssetSchema=ke;exports.KeyframeSchema=A;exports.LumaAssetSchema=Pe;exports.OffsetSchema=Ht;exports.OutputFormatSchema=po;exports.OutputFpsSchema=ao;exports.OutputSchema=p;exports.OutputSizeSchema=io;exports.RichTextAssetSchema=nt;exports.ShapeAssetSchema=pt;exports.TextAssetSchema=$t;exports.TimelineSchema=to;exports.TrackSchema=eo;exports.TransformationSchema=Wt;exports.TransitionSchema=Zt;exports.TweenSchema=A;exports.VideoAssetSchema=Xt;
|
|
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 L=e.z.object({color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),padding:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),borderRadius:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()))}),G=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),size:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),lineHeight:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),stroke:e.z.optional(e.z.string()),strokeWidth:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))}),I=e.z.object({top:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),left:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),right:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))}),z=e.z.object({type:e.z.enum(["caption"]),src:e.z.string(),font:e.z.optional(G),background:e.z.optional(L),margin:e.z.optional(I),trim:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),speed:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(10)))}),C=z,B=e.z.object({color:e.z.optional(e.z.string()),threshold:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(0).lte(250))),halo:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(0).lte(250)))}),E=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())}),q=e.z.object({type:e.z.literal("didTextToAvatarOptions_DIDTextToAvatarOptions")}).and(E),P=e.z.object({provider:e.z.enum(["d-id"]),options:q}),_=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"])}),$=e.z.object({type:e.z.literal("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")}).and(_),U=e.z.object({provider:e.z.enum(["elevenlabs"]),options:$}),J=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())}),Z=e.z.object({type:e.z.literal("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")}).and(J),M=e.z.object({provider:e.z.enum(["heygen"]),options:Z}),H=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())}),K=e.z.object({type:e.z.literal("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")}).and(H),V=e.z.object({provider:e.z.enum(["openai"]),options:K}),Q=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(Q)});const W=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()}),X=e.z.object({type:e.z.string(),id:e.z.string(),attributes:W});e.z.object({data:X});const Y=e.z.object({type:e.z.enum(["image-to-video"]),imageUrl:e.z.string(),guidanceScale:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(1.8),motion:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())).default(127)}),v=e.z.object({type:e.z.enum(["text-generator"]),prompt:e.z.string()}),ee=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),width:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()),height:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())}),te=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)}),oe=e.z.union([e.z.object({type:e.z.literal("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")}).and(te),e.z.object({type:e.z.literal("shotstackTextToImageOptions_ShotstackTextToImageOptions")}).and(ee),e.z.object({type:e.z.literal("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")}).and(v),e.z.object({type:e.z.literal("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")}).and(Y)]),re=e.z.object({provider:e.z.enum(["shotstack"]),options:oe}),ae=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()),height:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()),steps:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())).default(30),seed:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())).default(0),cfgScale:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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"]))}),ne=e.z.object({type:e.z.literal("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")}).and(ae),se=e.z.object({provider:e.z.enum(["stability-ai"]),options:ne}),ie=e.z.union([e.z.object({provider:e.z.literal("shotstackGeneratedAsset_ShotstackGeneratedAsset")}).and(re),e.z.object({provider:e.z.literal("didGeneratedAsset_DIDGeneratedAsset")}).and(P),e.z.object({provider:e.z.literal("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")}).and(U),e.z.object({provider:e.z.literal("heygenGeneratedAsset_HeyGenGeneratedAsset")}).and(M),e.z.object({provider:e.z.literal("openaiGeneratedAsset_OpenAiGeneratedAsset")}).and(V),e.z.object({provider:e.z.literal("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")}).and(se)]),r=e.z.object({top:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))),bottom:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))),left:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))),right:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1)))}),ce=r,ze=e.z.object({bucket:e.z.string(),prefix:e.z.optional(e.z.string()),filename:e.z.optional(e.z.string())}),pe=e.z.object({provider:e.z.string().default("google-cloud-storage"),options:e.z.optional(ze)}),le=e.z.object({folderId:e.z.string(),filename:e.z.optional(e.z.string())}),ue=e.z.object({provider:e.z.string().default("google-drive"),options:le}),me=e.z.object({playbackPolicy:e.z.optional(e.z.array(e.z.enum(["public","signed"]))),passthrough:e.z.optional(e.z.string().max(255))}),de=e.z.object({provider:e.z.string().default("mux"),options:e.z.optional(me)}),he=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())}),ge=e.z.object({provider:e.z.string().default("s3"),options:e.z.optional(he)}),ye=e.z.object({provider:e.z.string().default("shotstack"),exclude:e.z.optional(e.z.boolean())}),be=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)}),Ae=e.z.object({provider:e.z.string().default("tiktok"),options:e.z.optional(be)}),fe=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"]))}),Ne=e.z.object({name:e.z.optional(e.z.string()),description:e.z.optional(e.z.string()),privacy:e.z.optional(fe),folderUri:e.z.optional(e.z.string())}),Se=e.z.object({provider:e.z.string().default("vimeo"),options:e.z.optional(Ne)}),n=e.z.union([e.z.object({destinations:e.z.optional(e.z.literal("shotstackDestination_ShotstackDestination"))}).and(ye),e.z.object({destinations:e.z.optional(e.z.literal("muxDestination_MuxDestination"))}).and(de),e.z.object({destinations:e.z.optional(e.z.literal("s3Destination_S3Destination"))}).and(ge),e.z.object({destinations:e.z.optional(e.z.literal("googleCloudStorageDestination_GoogleCloudStorageDestination"))}).and(pe),e.z.object({destinations:e.z.optional(e.z.literal("googleDriveDestination_GoogleDriveDestination"))}).and(ue),e.z.object({destinations:e.z.optional(e.z.literal("vimeoDestination_VimeoDestination"))}).and(Se),e.z.object({destinations:e.z.optional(e.z.literal("tiktokDestination_TiktokDestination"))}).and(Ae)]),je=n,we=e.z.object({horizontal:e.z.optional(e.z.boolean()),vertical:e.z.optional(e.z.boolean())}),xe=e.z.object({src:e.z.string()}),p=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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"]))}),Te=p,l=e.z.object({type:e.z.enum(["image"]),src:e.z.string(),crop:e.z.optional(r)}),ke=l,Fe=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(10))),crop:e.z.optional(r)}),Oe=e.z.object({preset:e.z.enum(["conference","interview","lecture","meeting","mobile_phone","music","podcast","studio","voice_over"])}),Re=e.z.object({provider:e.z.string().default("dolby"),options:Oe}),De=e.z.object({enhancement:e.z.literal("dolbyEnhancement_DolbyEnhancement")}).and(Re),Le=e.z.object({audio:e.z.optional(De)}),Ge=e.z.object({status:e.z.string(),title:e.z.string(),detail:e.z.string()});e.z.object({errors:e.z.array(Ge)});const Ie=e.z.object({type:e.z.string(),id:e.z.string()});e.z.object({data:Ie});const Ce=e.z.object({id:e.z.string(),url:e.z.string(),expires:e.z.string()}),Be=e.z.object({type:e.z.string(),id:e.z.string(),attributes:Ce});e.z.object({data:Be});const Ee=e.z.object({speed:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(10))),preservePitch:e.z.optional(e.z.boolean())}),qe=e.z.object({format:e.z.optional(e.z.enum(["srt","vtt"]))}),u=e.z.object({type:e.z.enum(["luma"]),src:e.z.string(),trim:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))}),Pe=u,m=e.z.object({find:e.z.string(),replace:e.z.unknown()}),_e=e.z.object({capture:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())}),$e=e.z.object({start:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))),length:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0)))}),Ue=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())}),d=e.z.object({type:e.z.string(),attributes:Ue});e.z.object({data:e.z.array(d)});e.z.object({data:d});e.z.object({success:e.z.boolean(),message:e.z.string(),response:e.z.record(e.z.string(),e.z.unknown())});const Je=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Je});const Ze=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())}),Me=e.z.object({owner:e.z.string(),templates:e.z.array(Ze)});e.z.object({success:e.z.boolean(),message:e.z.string(),response:Me});const He=e.z.object({message:e.z.string(),id:e.z.string()});e.z.object({success:e.z.boolean(),message:e.z.string(),response:He});const Ke=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","middle","bottom"]))}),Ve=e.z.object({preset:e.z.enum(["fadeIn","slideIn","typewriter","ascend","shift","movingLetters"]),speed:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(.1).lte(10))).default(1),duration:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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"]))}),Qe=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1),borderRadius:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))).default(0)}),We=e.z.object({width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1),radius:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))).default(0)}),Xe=e.z.object({type:e.z.optional(e.z.enum(["linear","radial"])),angle:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(360))).default(0),stops:e.z.array(e.z.object({offset:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1)),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)})).min(2)}),Ye=e.z.object({top:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))).default(0),right:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))).default(0),bottom:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))).default(0),left:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0))).default(0)}),ve=e.z.object({offsetX:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),offsetY:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),blur:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(.5)}),et=e.z.object({width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1)}),tt=e.z.object({family:e.z.optional(e.z.string()).default("Open Sans"),size:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1),background:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),stroke:e.z.optional(et)}),ot=e.z.object({letterSpacing:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),lineHeight:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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(Xe)}),h=e.z.object({type:e.z.enum(["rich-text"]),text:e.z.string().max(5e3),font:e.z.optional(tt),style:e.z.optional(ot),shadow:e.z.optional(ve),background:e.z.optional(Qe),border:e.z.optional(We),padding:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0)),Ye])),align:e.z.optional(Ke),animation:e.z.optional(Ve)}),rt=h,at=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())}),nt=e.z.object({type:e.z.optional(e.z.string()),attributes:e.z.optional(at)});e.z.object({data:nt});const st=e.z.object({url:e.z.string(),id:e.z.string(),destinations:e.z.array(n)}),g=e.z.object({type:e.z.enum(["shape"]),shape:e.z.enum(["rectangle","circle","line"]),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),fill:e.z.optional(e.z.object({color:e.z.optional(e.z.string()),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))})),stroke:e.z.optional(e.z.object({color:e.z.optional(e.z.string()),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))})),rectangle:e.z.optional(e.z.object({width:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()),height:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()),cornerRadius:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()))})),circle:e.z.optional(e.z.object({radius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())})),line:e.z.optional(e.z.object({length:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int()),thickness:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())}))}),it=g,s=e.z.object({width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(1).lte(4096))),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(1).lte(4096)))}),ct=s,y=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(s),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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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(Ee),keyframeInterval:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(1).lte(300))),fixOffset:e.z.optional(e.z.boolean()),fixRotation:e.z.optional(e.z.boolean()),enhance:e.z.optional(Le),filename:e.z.optional(e.z.string())}),zt=e.z.object({renditions:e.z.optional(e.z.array(y)),transcription:e.z.optional(qe)}),pt=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),transformation:e.z.optional(y),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),duration:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),fps:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))}),lt=e.z.object({renditions:e.z.optional(e.z.array(pt))}),ut=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(lt),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),duration:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),fps:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),created:e.z.optional(e.z.string()),updated:e.z.optional(e.z.string())}),b=e.z.object({type:e.z.string(),id:e.z.string(),attributes:ut});e.z.object({data:e.z.array(b)});e.z.object({data:b});const mt=e.z.object({url:e.z.optional(e.z.string()),outputs:e.z.optional(zt),destinations:e.z.optional(n),callback:e.z.optional(e.z.string())}),dt=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))}),A=e.z.object({offset:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1)),color:e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)}),ht=e.z.object({type:e.z.enum(["linear"]),angle:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(360))).default(0),stops:e.z.array(A).min(2),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1)}),gt=e.z.object({type:e.z.enum(["radial"]),stops:e.z.array(A).min(2),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1)}),yt=e.z.object({offsetX:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),offsetY:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),blur:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(.5)}),bt=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1)}),At=e.z.discriminatedUnion("type",[bt,ht,gt]),ft=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(100))).default(1),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0)))),dashOffset:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0)}),Nt=e.z.object({x:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),y:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())).default(0),rotation:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(-360).lte(360))).default(0),scale:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(.01).lte(100))).default(1),originX:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(.5),originY:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(.5)}),St=e.z.object({type:e.z.enum(["arrow"]),length:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096)),headWidth:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(1e3)),headLength:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(1e3)),shaftWidth:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(1e3))}),jt=e.z.object({type:e.z.enum(["circle"]),radius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048))}),wt=e.z.object({type:e.z.enum(["cross"]),width:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096)),height:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096)),thickness:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(500))}),xt=e.z.object({type:e.z.enum(["ellipse"]),radiusX:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048)),radiusY:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048))}),Tt=e.z.object({type:e.z.enum(["heart"]),size:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096))}),kt=e.z.object({type:e.z.enum(["line"]),length:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096)),thickness:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(500))}),Ft=e.z.object({type:e.z.enum(["path"]),d:e.z.string().min(1).max(1e5)}),Ot=e.z.object({type:e.z.enum(["polygon"]),sides:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(3).lte(100)),radius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048))}),Rt=e.z.object({type:e.z.enum(["rectangle"]),width:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096)),height:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(4096)),cornerRadius:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(2048))).default(0)}),Dt=e.z.object({type:e.z.enum(["ring"]),outerRadius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048)),innerRadius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(2048))}),Lt=e.z.object({type:e.z.enum(["star"]),points:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(3).lte(100)),outerRadius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048)),innerRadius:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(1).lte(2048))}),Gt=e.z.discriminatedUnion("type",[Rt,jt,xt,kt,Ot,Lt,St,Tt,wt,Dt,Ft]),It=e.z.object({type:e.z.enum(["svg"]),shape:Gt,fill:e.z.optional(At),stroke:e.z.optional(ft),shadow:e.z.optional(yt),transform:e.z.optional(Nt),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))).default(1),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(1).lte(4096))),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(1).lte(4096)))}),Ct=e.z.object({id:e.z.string(),merge:e.z.optional(e.z.array(m))}),Bt=e.z.object({horizontal:e.z.optional(e.z.enum(["left","center","right"])),vertical:e.z.optional(e.z.enum(["top","center","bottom"]))}),Et=e.z.object({preset:e.z.enum(["typewriter"]),duration:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(.1).lte(30)))}),qt=e.z.object({color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/)),opacity:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))),padding:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(100))),borderRadius:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0)))}),Pt=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),size:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),weight:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),lineHeight:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()))}),_t=e.z.object({width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(10))),color:e.z.optional(e.z.string().regex(/^#[A-Fa-f0-9]{6}$/))}),f=e.z.object({type:e.z.enum(["text"]),text:e.z.string(),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),font:e.z.optional(Pt),background:e.z.optional(qt),alignment:e.z.optional(Bt),stroke:e.z.optional(_t),animation:e.z.optional(Et),ellipsis:e.z.optional(e.z.string())}),$t=f,Ut=e.z.object({type:e.z.enum(["text-to-image"]),prompt:e.z.string(),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int())),crop:e.z.optional(r)}),Jt=e.z.object({capture:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()),scale:e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1))}),N=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(s),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($e),poster:e.z.optional(_e),thumbnail:e.z.optional(Jt),destinations:e.z.optional(e.z.array(n))}),i=N,S=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"]))}),Zt=S,o=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),length:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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"]))}),j=o,w=e.z.object({type:e.z.enum(["audio"]),src:e.z.string(),trim:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),volume:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1)),e.z.array(o)])),speed:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(10))),effect:e.z.optional(e.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"]))}),Mt=w,c=e.z.object({x:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(-10).lte(10)),e.z.array(o)])),y:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(-10).lte(10)),e.z.array(o)]))}),Ht=c,Kt=e.z.object({angle:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(-360).lte(360)),e.z.array(o)]))}),Vt=e.z.object({x:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(-100).lte(100)),e.z.array(o)])),y:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(-100).lte(100)),e.z.array(o)]))}),Qt=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(c)}),x=e.z.object({rotate:e.z.optional(Kt),skew:e.z.optional(Vt),flip:e.z.optional(we)}),Wt=x,T=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),volume:e.z.optional(e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(1)),e.z.array(o)])),volumeEffect:e.z.optional(e.z.enum(["none","fadeIn","fadeOut","fadeInFadeOut"])),speed:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().gte(0).lte(10))),crop:e.z.optional(r),chromaKey:e.z.optional(B)}),Xt=T,k=e.z.discriminatedUnion("type",[T,l,f,h,w,u,z,p,Qt,g,It,Ut,Fe]),Yt=k,F=e.z.object({asset:k,start:e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()),e.z.enum(["auto"])]),length:e.z.union([e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),width:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number().int().gte(1).lte(3840))),height:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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(c),transition:e.z.optional(S),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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number()),e.z.array(o)])),transform:e.z.optional(x),alias:e.z.optional(e.z.string().regex(/^[A-Za-z0-9_-]+$/))}),vt=F,O=e.z.object({clips:e.z.array(F)}),eo=O,R=e.z.object({soundtrack:e.z.optional(dt),background:e.z.optional(e.z.string()),fonts:e.z.optional(e.z.array(xe)),tracks:e.z.array(O),cache:e.z.optional(e.z.boolean())}),to=R,a=e.z.object({timeline:R,output:N,merge:e.z.optional(e.z.array(m)),callback:e.z.optional(e.z.string()),disk:e.z.optional(e.z.enum(["local","mount"]))}),oo=a,ro=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=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.number())),renderTime:e.z.optional(e.z.preprocess(t=>t===""||Array.isArray(t)?NaN:t,e.z.coerce.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(a),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:ro});const ao=e.z.object({id:e.z.string(),name:e.z.string(),owner:e.z.string(),template:a});e.z.object({success:e.z.boolean(),message:e.z.string(),response:ao});const D=e.z.object({name:e.z.string(),template:e.z.optional(a)});e.z.object({body:a,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:D,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:D,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:Ct,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:st,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:mt,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:ie,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 no=je,so=ct,io=i.shape.format,co=i.shape.fps.unwrap(),zo=e.z.string().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/);exports.AssetSchema=Yt;exports.AudioAssetSchema=Mt;exports.CaptionAssetSchema=C;exports.ClipSchema=vt;exports.CropSchema=ce;exports.DestinationSchema=no;exports.EditSchema=oo;exports.HexColorSchema=zo;exports.HtmlAssetSchema=Te;exports.ImageAssetSchema=ke;exports.KeyframeSchema=j;exports.LumaAssetSchema=Pe;exports.OffsetSchema=Ht;exports.OutputFormatSchema=io;exports.OutputFpsSchema=co;exports.OutputSchema=i;exports.OutputSizeSchema=so;exports.RichTextAssetSchema=rt;exports.ShapeAssetSchema=it;exports.TextAssetSchema=$t;exports.TimelineSchema=to;exports.TrackSchema=eo;exports.TransformationSchema=Wt;exports.TransitionSchema=Zt;exports.TweenSchema=j;exports.VideoAssetSchema=Xt;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1399,8 +1399,8 @@ export declare const OutputFpsSchema: z.ZodUnion<readonly [z.ZodLiteral<12>, z.Z
|
|
|
1399
1399
|
export { OutputSchema }
|
|
1400
1400
|
|
|
1401
1401
|
export declare const OutputSizeSchema: z.ZodObject<{
|
|
1402
|
-
width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
|
|
1403
|
-
height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.
|
|
1402
|
+
width: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
|
|
1403
|
+
height: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodCoercedNumber<unknown>>>;
|
|
1404
1404
|
}, z.core.$strip>;
|
|
1405
1405
|
|
|
1406
1406
|
declare interface PlaybackHealth {
|