{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/main/json-schema/raiffeisen-ru-task-response-schema.json",
  "title": "TaskResponse",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/raiffeisen-ru-custody-statements-openapi.yml#/components/schemas/TaskResponse",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/TaskId"
    },
    "status": {
      "$ref": "#/$defs/TaskStatus"
    },
    "createdAt": {
      "type": "string",
      "description": "Дата и время создания задачи",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "description": "Дата и время последнего обновления статуса выполнения задачи",
      "format": "date-time"
    },
    "results": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileId"
      }
    }
  },
  "$defs": {
    "FileId": {
      "type": "string",
      "description": "Идентификатор сформированного zip-архива с выписками",
      "format": "uuid"
    },
    "TaskId": {
      "type": "string",
      "description": "Идентификатор задачи на формирование выписок",
      "format": "uuid"
    },
    "TaskStatus": {
      "type": "string",
      "description": "Статус выполнения задачи на формирование выписок",
      "enum": [
        "NEW",
        "IN_PROGRESS",
        "FAILED",
        "DONE"
      ]
    }
  }
}