{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pyload/json-schema/pyload-download-info-schema.json",
  "title": "DownloadInfo",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pyload-openapi.json#/components/schemas/DownloadInfo",
  "properties": {
    "fid": {
      "title": "Fid",
      "type": "integer"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "speed": {
      "format": "int64",
      "title": "Speed",
      "type": "integer"
    },
    "eta": {
      "title": "Eta",
      "type": "integer"
    },
    "format_eta": {
      "title": "Format Eta",
      "type": "string"
    },
    "bleft": {
      "format": "int64",
      "title": "Bleft",
      "type": "integer"
    },
    "size": {
      "format": "int64",
      "title": "Size",
      "type": "integer"
    },
    "format_size": {
      "title": "Format Size",
      "type": "string"
    },
    "percent": {
      "title": "Percent",
      "type": "integer"
    },
    "status": {
      "$ref": "#/$defs/DownloadStatus"
    },
    "statusmsg": {
      "title": "Statusmsg",
      "type": "string"
    },
    "format_wait": {
      "title": "Format Wait",
      "type": "string"
    },
    "wait_until": {
      "format": "float",
      "title": "Wait Until",
      "type": "number"
    },
    "package_id": {
      "title": "Package Id",
      "type": "integer"
    },
    "package_name": {
      "title": "Package Name",
      "type": "string"
    },
    "plugin": {
      "title": "Plugin",
      "type": "string"
    },
    "info": {
      "title": "Info",
      "type": "string"
    }
  },
  "required": [
    "fid",
    "name",
    "speed",
    "eta",
    "format_eta",
    "bleft",
    "size",
    "format_size",
    "percent",
    "status",
    "statusmsg",
    "format_wait",
    "wait_until",
    "package_id",
    "package_name",
    "plugin",
    "info"
  ],
  "type": "object",
  "$defs": {
    "DownloadStatus": {
      "type": "integer",
      "enum": [
        9,
        11,
        10,
        12,
        8,
        0,
        1,
        2,
        13,
        3,
        4,
        7,
        6,
        14,
        5
      ],
      "x-enum-varnames": [
        "ABORTED",
        "CUSTOM",
        "DECRYPTING",
        "DOWNLOADING",
        "FAILED",
        "FINISHED",
        "OFFLINE",
        "ONLINE",
        "PROCESSING",
        "QUEUED",
        "SKIPPED",
        "STARTING",
        "TEMPOFFLINE",
        "UNKNOWN",
        "WAITING"
      ]
    }
  }
}