import { request } from "@/api/client";
import type { AiTask, AssemblyTask } from "@/types/api";

export function listVideoTasks(projectId: string | number) {
  return request<AiTask[]>(`/projects/${projectId}/video-tasks`);
}

export function getAssemblyTask(projectId: string | number, episodeId: string | number) {
  return request<AssemblyTask | null>(`/projects/${projectId}/episodes/${episodeId}/assembly`);
}
