{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/livepublicator-com/json-schema/livepublicator-com-release-schema.json",
  "title": "Release",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/livepublicator-com-openapi.json#/components/schemas/Release",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "drafting",
        "draft",
        "scheduled",
        "review",
        "live",
        "removed",
        "rejected",
        "failed",
        "deleted"
      ],
      "description": "review: a person or the automatic check is looking at it. failed: we could not process it, send it again. deleted: the account owner deleted the draft."
    },
    "headline": {
      "type": "string"
    },
    "company": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        }
      }
    },
    "preview_url": {
      "type": "string",
      "description": "Private draft preview (no sign-in needed, keep it private)."
    },
    "live_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "publish_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "published_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "credit_used": {
      "type": "boolean"
    },
    "report_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The AI report made 7 days after the release went live (null until then)."
    },
    "report_due_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the day-7 AI report runs (live releases only)."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Notes from the content check, if any."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}