{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-translate/json-schema/ibm-translate-document-status-schema.json",
  "title": "DocumentStatus",
  "description": "Information about the submitted document and the translation process.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-translate-documents-api-openapi.yml#/components/schemas/DocumentStatus",
  "type": "object",
  "properties": {
    "document_id": {
      "type": "string",
      "description": "System generated ID identifying a document being translated using one specific translation model."
    },
    "filename": {
      "type": "string",
      "description": "filename included in the request or extracted from the file name."
    },
    "status": {
      "type": "string",
      "description": "The status of the translation job associated with a submitted document. Valid values are: processing, available, failed, deleted.",
      "enum": [
        "processing",
        "available",
        "failed",
        "deleted"
      ]
    },
    "model_id": {
      "type": "string",
      "description": "A globally unique string that identifies the underlying model that is used for translation."
    },
    "base_model_id": {
      "type": "string",
      "description": "Model ID of the base model that was used to customize the model. If the model is not a custom model, this will be an empty string."
    },
    "source": {
      "type": "string",
      "description": "Translation source language code."
    },
    "detected_language_confidence": {
      "type": "number",
      "format": "double",
      "description": "The confidence score for the source language identification. Returned only when the model used automatic language identification.",
      "minimum": 0,
      "maximum": 1
    },
    "target": {
      "type": "string",
      "description": "Translation target language code."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the document was submitted."
    },
    "completed": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the translation completed (available or failed)."
    },
    "word_count": {
      "type": "integer",
      "description": "The number of words in the source document."
    },
    "character_count": {
      "type": "integer",
      "description": "The number of characters in the source document, present only if available."
    }
  }
}