{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/akeda-ru/json-schema/akeda-ru-transfer-download-link-schema.json",
  "title": "TransferDownloadLink",
  "description": "Временный адрес файла: подписанный адрес хранилища или адрес этого API.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akeda-ru-core-documents-api-openapi.yml#/components/schemas/TransferDownloadLink",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "url",
    "method",
    "direct",
    "requires_authorization",
    "name",
    "mime_type",
    "size_bytes"
  ],
  "properties": {
    "url": {
      "type": "string"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "direct": {
      "type": "boolean",
      "description": "true — подписанный адрес хранилища, без заголовка авторизации; false — адрес этого API, с авторизацией"
    },
    "requires_authorization": {
      "type": "boolean",
      "description": "true — адрес требует токен API, агенту по MCP он недоступен"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Срок подписанного адреса; у адреса API его нет"
    },
    "name": {
      "type": "string"
    },
    "mime_type": {
      "type": "string"
    },
    "size_bytes": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "scan_status": {
      "type": "string",
      "enum": [
        "clean",
        "skipped"
      ],
      "description": "Вердикт антивируса; skipped — файл антивирус не проверял"
    },
    "facsimile": {
      "type": "string",
      "enum": [
        "applied",
        "not_allowed"
      ],
      "description": "Что стало с просьбой о факсимиле у печатной формы"
    }
  }
}