/* tslint:disable */ /* eslint-disable */ /** * OpenAPI Template * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import { JobConfig } from './job-config'; // May contain unused imports in some cases // @ts-ignore import { JobDetailError } from './job-detail-error'; /** * Document describing a job. JobConfig will be present in JobDetails returned for GET jobs/ request in SaaS and in Batch Appliance, but it will not be present in JobDetails returned as item in RetrieveJobsResponse in case of Batch Appliance. * @export * @interface JobDetails */ export interface JobDetails { /** * * @type {JobConfig} * @memberof JobDetails */ config?: JobConfig; /** * The UTC date time the job was created. * @type {string} * @memberof JobDetails */ created_at: string; /** * Name of the data file submitted for job. * @type {string} * @memberof JobDetails */ data_name: string; /** * The file duration (in seconds). May be missing for fetch URL jobs. * @type {number} * @memberof JobDetails */ duration?: number; /** * Optional list of errors that have occurred in user interaction, for example: audio could not be fetched or notification could not be sent. * @type {Array} * @memberof JobDetails */ errors?: Array; /** * The unique id assigned to the job. * @type {string} * @memberof JobDetails */ id: string; /** * Optional parameter used for backwards compatibility with v1 api * @type {string} * @memberof JobDetails */ lang?: string; /** * The status of the job. * `running` - The job is actively running. * `done` - The job completed successfully. * `rejected` - The job was accepted at first, but later could not be processed by the transcriber. * `deleted` - The user deleted the job. * `expired` - The system deleted the job. Usually because the job was in the `done` state for a very long time. * @type {string} * @memberof JobDetails */ status: JobDetailsStatusEnum; /** * Name of the text file submitted to be aligned to audio. * @type {string} * @memberof JobDetails */ text_name?: string; } export const JobDetailsStatusEnum = { Running: 'running', Done: 'done', Rejected: 'rejected', Deleted: 'deleted', Expired: 'expired', } as const; export type JobDetailsStatusEnum = typeof JobDetailsStatusEnum[keyof typeof JobDetailsStatusEnum];