{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "batchPublicId",
    "messageId",
    "messageType",
    "deliveryVersion",
    "channel",
    "status",
    "manifestSha256",
    "publicationEvidence",
    "counts",
    "createdAt",
    "updatedAt",
    "completedAt"
  ],
  "properties": {
    "batchPublicId": {
      "type": "string",
      "format": "uuid"
    },
    "messageId": {
      "type": "string"
    },
    "messageType": {
      "type": "string",
      "enum": [
        "NEW_RELEASE",
        "METADATA_UPDATE",
        "ASSET_UPDATE",
        "DEAL_UPDATE",
        "TAKEDOWN"
      ]
    },
    "deliveryVersion": {
      "type": "integer",
      "minimum": 1
    },
    "channel": {
      "type": "string",
      "enum": [
        "STUDIO_SELF_SERVICE",
        "PARTNER_API",
        "PARTNER_BULK",
        "DDEX",
        "KASTY_INTERNAL",
        "UNKNOWN"
      ]
    },
    "status": {
      "$ref": "#/components/schemas/BatchStatus"
    },
    "manifestSha256": {
      "$ref": "#/components/schemas/Sha256"
    },
    "publicationEvidence": {
      "oneOf": [
        {
          "$ref": "#/components/schemas/PublicationEvidenceSummary"
        },
        {
          "type": "null"
        }
      ]
    },
    "counts": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "total",
        "accepted",
        "failed"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "accepted": {
          "type": "integer",
          "minimum": 0
        },
        "failed": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
