/**
 * Generated by orval v7.17.0 🍺
 * Do not edit manually.
 * OpenAPI spec version: 0.0.0
 */

export interface DownloadRequest {
  /** Video/Playlist URL to download from supported platforms */
  url: string;
  /** Container format for the output file. Common formats: mp4 (H.264 + AAC, most compatible), mkv (flexible, lossless container), webm (VP9/AV1 + Opus), flv (legacy), mov (Apple-friendly), avi (older), ogg, m4a (audio only), mp3 (audio only). The extension will be validated by ffmpeg during conversion. */
  ext?: string;
  /**
   * Optional: Target max video height in pixels (e.g. 1080, 720). If omitted, best quality is selected.
   * @nullable
   */
  video_quality?: number | null;
  /**
   * Optional: Target max audio bitrate in kbps (e.g. 320, 192, 128). If omitted, best quality is selected.
   * @nullable
   */
  audio_quality?: number | null;
  /**
   * For playlists: specify which videos to download as array of numbers (e.g., [1,3,5]). If omitted, all videos are downloaded.
   * @nullable
   */
  selected_videos?: number[] | null;
  /**
   * Language codes (e.g., 'en', 'cs', 'en,cs') or 'all' for all available subtitles
   * @nullable
   */
  subtitles?: string | null;
  /** Embed subtitles into the video file (requires mkv or mp4 container) */
  embed_subtitles?: boolean;
  /** Embed thumbnail as cover art in the file */
  embed_thumbnail?: boolean;
  /** Extract audio only, ignoring video quality settings */
  extract_audio?: boolean;
  /**
   * Browser cookies in Netscape format for age-restricted content. Export from browser extensions like 'Get cookies.txt'
   * @nullable
   */
  cookies?: string | null;
}
