{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tiro-ooo/json-schema/tiro-ooo-voice-file-job-schema.json",
  "title": "VoiceFileJob",
  "description": "Represents a voice file processing job. Voice File Jobs handle the complete pipeline of\naudio transcription and optional translation.\n\n**Processing Pipeline:**\n1. Job created (`CREATED`) → Upload URI provided\n2. File uploaded (`UPLOADED`) → Ready for processing\n3. Processing started (`PROCESSING`) → STT and translation in progress\n4. Processing complete (`COMPLETED`) → Results available\n\n**Processing Time Estimates:**\n| File Duration | Typical Time |\n|---------------|--------------|\n| < 5 minutes | 45-75 seconds |\n| 5-20 minutes | 1-3 minutes |\n| 20-60 minutes | 3-6 minutes |\n| 1-4 hours | 6-18 minutes |\n",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tiro-ooo-openapi.yml#/components/schemas/VoiceFileJob",
  "type": "object",
  "required": [
    "id",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique job identifier (UUID format)"
    },
    "status": {
      "type": "string",
      "enum": [
        "CREATED",
        "UPLOADED",
        "PROCESSING",
        "COMPLETED",
        "FAILED"
      ],
      "description": "Current job processing status:\n- `CREATED`: Job created, waiting for file upload\n- `UPLOADED`: File uploaded, waiting for processing to start\n- `PROCESSING`: Transcription/translation in progress\n- `COMPLETED`: All processing finished, results available\n- `FAILED`: Processing failed (check errorMessage). A job also becomes `FAILED` when only summary generation fails; check `transcriptAvailable`\n"
    },
    "fileUploadedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp when file upload was completed. Null if not yet uploaded."
    },
    "processStartedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp when processing started. Null if not yet started."
    },
    "processCompletedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Timestamp when processing completed. Null if still processing."
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error message if job failed. Null for successful jobs."
    },
    "transcriptAvailable": {
      "type": "boolean",
      "description": "Whether the transcript can be fetched. Can be `true` on a `FAILED` job when transcription succeeded and a later step failed."
    }
  }
}