/** * This file was auto-generated by Fern from our API Definition. */ export interface TaskResponse { id: string; object: string; kind: TaskResponse.Kind; input?: Record; options?: Record; output?: Record; status: TaskResponse.Status; progress?: number; error?: string; created_by?: string; created: string; updated: string; parent_id?: string; workflow?: unknown[]; results?: TaskResponse.Results; } export declare namespace TaskResponse { type Kind = "ingest" | "video" | "image" | "audio" | "chapters" | "subtitles" | "thumbnails" | "nsfw" | "speech" | "description" | "outline" | "prompt" | "workflow" | "conditions" | "http"; const Kind: { readonly Ingest: "ingest"; readonly Video: "video"; readonly Image: "image"; readonly Audio: "audio"; readonly Chapters: "chapters"; readonly Subtitles: "subtitles"; readonly Thumbnails: "thumbnails"; readonly Nsfw: "nsfw"; readonly Speech: "speech"; readonly Description: "description"; readonly Outline: "outline"; readonly Prompt: "prompt"; readonly Workflow: "workflow"; readonly Conditions: "conditions"; readonly Http: "http"; }; type Status = "pending" | "waiting" | "processing" | "ready" | "completed" | "failed" | "error" | "cancelled"; const Status: { readonly Pending: "pending"; readonly Waiting: "waiting"; readonly Processing: "processing"; readonly Ready: "ready"; readonly Completed: "completed"; readonly Failed: "failed"; readonly Error: "error"; readonly Cancelled: "cancelled"; }; interface Results { passed?: Record[]; failed?: Record[]; continue?: boolean; } }