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