{"version":3,"sources":["../../src/ipc/job_executor.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport type { Throws } from '@livekit/throws-transformer/throws';\nimport type { RunningJobInfo } from '../job.js';\n\nexport interface JobExecutor {\n  started: boolean;\n  userArguments: any; // eslint-disable-line @typescript-eslint/no-explicit-any\n  runningJob: RunningJobInfo | undefined;\n  status: JobStatus;\n\n  start(): Promise<Throws<void, Error>>;\n  join(): Promise<Throws<void, Error>>;\n  initialize(options: { sessionEndTimeout: number }): Promise<Throws<void, Error>>;\n  close(): Promise<Throws<void, Error>>;\n  launchJob(info: RunningJobInfo): Promise<Throws<void, Error>>;\n}\n\nexport enum JobStatus {\n  RUNNING,\n  FAILED,\n  SUCCESS,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBO,IAAK,YAAL,kBAAKA,eAAL;AACL,EAAAA,sBAAA;AACA,EAAAA,sBAAA;AACA,EAAAA,sBAAA;AAHU,SAAAA;AAAA,GAAA;","names":["JobStatus"]}