{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-extraction-response-schema.json",
  "title": "ExtractionResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-ingest-service-openapi.yml#/components/schemas/ExtractionResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier of the Extraction",
      "format": "int32"
    },
    "status": {
      "type": "string",
      "description": "Status of the Extraction"
    },
    "arguments": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "error": {
      "$ref": "#/$defs/InvocationError"
    },
    "ingest_id": {
      "type": "string",
      "description": "Unique identifier of the Ingestion"
    },
    "integration_id": {
      "type": "integer",
      "description": "Unique identifier of the integration",
      "format": "int32"
    },
    "name": {
      "type": "string",
      "description": "Label of the extraction"
    },
    "year": {
      "type": "integer",
      "description": "Relevant year of importance for the extraction",
      "format": "int32"
    },
    "period": {
      "type": "integer",
      "description": "Numeric period of no specific precision",
      "format": "int32"
    },
    "created_at": {
      "type": "string",
      "description": "Time at which this extraction was created",
      "format": "date-time"
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "completed_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "InvocationError": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "InvocationError code"
        },
        "message": {
          "type": "string",
          "description": "InvocationError message"
        }
      }
    }
  }
}