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