// @ts-check

/**
 * @typedef {'created' | 'ingesting' | 'ai_processing' | 'pending_qc' | 'approved_english' | 'rejected' | 'qc_feedback' | 'translating' | 'tts_generating' | 'pending_final_review' | 'completed'} JobStatus
 */

/**
 * @typedef {Object} Job
 * @property {string} id
 * @property {string} client_id
 * @property {string} title
 * @property {JobStatus} status
 * @property {string} created_at
 * @property {string} updated_at
 */

/**
 * @typedef {Object} LoginRequest
 * @property {string} email
 * @property {string} password
 */

/**
 * @typedef {Object} LoginResponse
 * @property {string} access_token
 * @property {string} token_type
 * @property {string} user_id
 * @property {string} role
 */

/**
 * @typedef {Object} JobDownloadsResponse
 * @property {Record<string, Record<string, string>>} downloads
 */

// Export empty object to make this a valid ES module
export const Job = {};
export const LoginRequest = {};
export const LoginResponse = {};
export const JobDownloadsResponse = {};