{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/organikpi-com/json-schema/organikpi-com-job-result-schema.json",
  "title": "JobResult",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/organikpi-com-api-openapi.json#/components/schemas/JobResult",
  "type": "object",
  "properties": {
    "status": {
      "enum": [
        "running",
        "complete"
      ]
    },
    "prompt": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "brand": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "top_cited_domains": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        }
      }
    },
    "engines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "engine": {
            "enum": [
              "chatgpt",
              "google_ai_mode",
              "gemini"
            ]
          },
          "status": {
            "enum": [
              "running",
              "ready",
              "failed",
              "timed_out"
            ]
          },
          "answer": {
            "type": "string"
          },
          "citations": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "brand_mentioned": {
            "type": "boolean"
          },
          "domain_cited": {
            "type": "boolean"
          }
        }
      }
    }
  }
}