{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pyload/json-schema/pyload-file-data-schema.json",
  "title": "FileData",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pyload-openapi.json#/components/schemas/FileData",
  "properties": {
    "fid": {
      "title": "Fid",
      "type": "integer"
    },
    "url": {
      "title": "Url",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "plugin": {
      "title": "Plugin",
      "type": "string"
    },
    "size": {
      "format": "int64",
      "title": "Size",
      "type": "integer"
    },
    "format_size": {
      "title": "Format Size",
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/DownloadStatus"
    },
    "statusmsg": {
      "title": "Statusmsg",
      "type": "string"
    },
    "package_id": {
      "title": "Package Id",
      "type": "integer"
    },
    "error": {
      "title": "Error",
      "type": "string"
    },
    "order": {
      "title": "Order",
      "type": "integer"
    }
  },
  "required": [
    "fid",
    "url",
    "name",
    "plugin",
    "size",
    "format_size",
    "status",
    "statusmsg",
    "package_id",
    "error",
    "order"
  ],
  "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"
      ]
    }
  }
}