{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tubearchivist/json-schema/tubearchivist-refresh-response-schema.json",
  "title": "RefreshResponse",
  "description": "serialize refresh response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tubearchivist-refresh-api-openapi.yml#/components/schemas/RefreshResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "$ref": "#/$defs/StateEnum"
    },
    "total_queued": {
      "type": "integer"
    },
    "queue_type": {
      "$ref": "#/$defs/QueueTypeEnum"
    },
    "queue_position": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "queue_position",
    "queue_type",
    "state",
    "total_queued"
  ],
  "$defs": {
    "QueueTypeEnum": {
      "enum": [
        "all",
        "video",
        "channel",
        "playlist"
      ],
      "type": "string",
      "description": "* `all` - all\n* `video` - video\n* `channel` - channel\n* `playlist` - playlist"
    },
    "StateEnum": {
      "enum": [
        "running",
        "in_queue",
        "empty",
        "not_in_queue",
        "processing"
      ],
      "type": "string",
      "description": "* `running` - running\n* `in_queue` - in_queue\n* `empty` - empty\n* `not_in_queue` - not_in_queue\n* `processing` - processing"
    }
  }
}