{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/editclips-online/json-schema/editclips-online-job-summary-schema.json",
  "title": "JobSummary",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/editclips-online-openapi.yaml#/components/schemas/JobSummary",
  "type": "object",
  "required": [
    "id",
    "status",
    "toolSlug",
    "creditsReserved",
    "createdAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending_upload",
        "queued",
        "processing",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "toolSlug": {
      "type": "string"
    },
    "progress": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "progressMessage": {
      "type": [
        "string",
        "null"
      ]
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ]
    },
    "outputFilename": {
      "type": [
        "string",
        "null"
      ]
    },
    "outputSize": {
      "type": [
        "integer",
        "null"
      ]
    },
    "minutesCharged": {
      "type": [
        "integer",
        "null"
      ],
      "description": "AI credits charged for the result"
    },
    "creditsReserved": {
      "type": "integer",
      "description": "Always 0 — nothing is held when a job is created"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}