{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/frase-io/json-schema/frase-io-content-status-schema.json",
  "title": "ContentStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/frase-io-content-api-openapi.yml#/components/schemas/ContentStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "generating",
        "draft",
        "review",
        "published"
      ]
    },
    "brief_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "brief_topic": {
      "type": [
        "string",
        "null"
      ]
    },
    "generation_state": {
      "type": "object",
      "properties": {
        "is_generating": {
          "type": "boolean"
        },
        "is_draft": {
          "type": "boolean"
        },
        "is_review": {
          "type": "boolean"
        },
        "is_published": {
          "type": "boolean"
        },
        "estimated_seconds_remaining": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "metrics": {
      "type": "object",
      "properties": {
        "word_count": {
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "timestamps": {
      "type": "object",
      "properties": {
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "published_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}