{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lyricpatch-com/json-schema/lyricpatch-com-batch-generation-response-schema.json",
  "title": "BatchGenerationResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lyricpatch-com-openapi.json#/components/schemas/BatchGenerationResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "title": "Project Id"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "succeeded",
        "partial_failed",
        "failed",
        "cancelled"
      ],
      "title": "Status"
    },
    "total_edits": {
      "type": "integer",
      "title": "Total Edits"
    },
    "total_credits": {
      "type": "integer",
      "title": "Total Credits"
    },
    "succeeded_edits": {
      "type": "integer",
      "title": "Succeeded Edits"
    },
    "failed_edits": {
      "type": "integer",
      "title": "Failed Edits"
    },
    "remaining_edits": {
      "type": "integer",
      "title": "Remaining Edits"
    },
    "phase": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "complete"
      ],
      "title": "Phase"
    },
    "status_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status Message"
    },
    "job_ids": {
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "type": "array",
      "title": "Job Ids"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "project_id",
    "status",
    "total_edits",
    "total_credits",
    "succeeded_edits",
    "failed_edits",
    "remaining_edits",
    "phase",
    "created_at",
    "completed_at"
  ]
}