{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "vclaw-video-core/video/artifacts/publish-report",
  "type": "object",
  "required": ["projectSlug", "status", "generatedAt"],
  "properties": {
    "projectSlug": { "type": "string" },
    "status": { "type": "string", "enum": ["ready", "published", "blocked"] },
    "generatedAt": { "type": "string" },
    "finalOutputPath": { "type": "string" },
    "notes": { "type": "array", "items": { "type": "string" } },
    "targets": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["platform", "packageVersion", "packagePath", "mediaChecksum", "validation", "deliveryStatus"],
        "properties": {
          "platform": { "type": "string" },
          "packageVersion": { "type": "string" },
          "packagePath": { "type": "string" },
          "mediaChecksum": { "type": "string" },
          "validation": {
            "type": "object",
            "required": ["ok", "blockers", "warnings"],
            "properties": {
              "ok": { "type": "boolean" },
              "blockers": { "type": "array" },
              "warnings": { "type": "array" }
            },
            "additionalProperties": true
          },
          "disclosure": {},
          "deliveryStatus": {
            "type": "string",
            "enum": ["packaged", "submitted", "processing", "published", "failed"]
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
