{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compressgif-net/json-schema/compressgif-net-job-schema.json",
  "title": "Job",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compressgif-net-openapi.yml#/components/schemas/Job",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "pool": {
      "type": "string",
      "enum": [
        "free",
        "developer"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "succeeded",
        "failed",
        "canceled"
      ]
    },
    "inputBytes": {
      "type": "integer"
    },
    "outputBytes": {
      "type": [
        "integer",
        "null"
      ]
    },
    "credits": {
      "type": "integer"
    },
    "targetMet": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "appliedSettings": {
      "type": [
        "object",
        "null"
      ]
    },
    "result": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "downloadUrl": {
          "type": "string",
          "format": "uri"
        },
        "expiresInSeconds": {
          "type": "integer",
          "minimum": 0,
          "maximum": 900
        }
      }
    },
    "error": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}