{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tooltrace-io/json-schema/tooltrace-io-job-summary-schema.json",
  "title": "JobSummary",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tooltrace-io-openapi.json#/components/schemas/JobSummary",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "phase": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phase"
    },
    "total_count": {
      "type": "integer",
      "title": "Total Count"
    },
    "unique_count": {
      "type": "integer",
      "title": "Unique Count"
    },
    "processed_count": {
      "type": "integer",
      "title": "Processed Count"
    },
    "valid_count": {
      "type": "integer",
      "title": "Valid Count"
    },
    "invalid_count": {
      "type": "integer",
      "title": "Invalid Count"
    },
    "risky_count": {
      "type": "integer",
      "title": "Risky Count"
    },
    "unknown_count": {
      "type": "integer",
      "title": "Unknown Count"
    },
    "credits_reserved": {
      "type": "integer",
      "title": "Credits Reserved"
    },
    "credits_consumed": {
      "type": "integer",
      "title": "Credits Consumed"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "cancelled_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cancelled Reason"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "status",
    "total_count",
    "unique_count",
    "processed_count",
    "valid_count",
    "invalid_count",
    "risky_count",
    "unknown_count",
    "credits_reserved",
    "credits_consumed",
    "created_at",
    "started_at",
    "completed_at",
    "error_message",
    "cancelled_reason"
  ]
}