{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scribiz/json-schema/scribiz-status-schema.json",
  "title": "Status",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scribiz-openapi.json#/components/schemas/Status",
  "properties": {
    "free_tier": {
      "properties": {
        "listen_watch": {
          "enum": [
            "open",
            "paused"
          ]
        }
      },
      "type": "object"
    },
    "notes": {
      "description": "What is working through a fallback, in words (for example results that came from captions or a direct read of the link because the platform blocks downloads from this server).",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "ok": {
      "const": true
    },
    "queue": {
      "properties": {
        "capacity": {
          "type": "integer"
        },
        "queued": {
          "type": "integer"
        },
        "running": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "sources": {
      "description": "Per source over the window: jobs, succeeded, failed, blocked (failed because the platform refused), fallback (succeeded through captions or a direct read of the link after the platform blocked the download: a success with a note), success_rate, avg_seconds.",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "status": {
      "enum": [
        "operational",
        "degraded"
      ]
    },
    "time": {
      "type": "integer"
    },
    "window_hours": {
      "type": "integer"
    }
  },
  "required": [
    "ok",
    "status",
    "queue",
    "sources"
  ],
  "type": "object"
}