{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broadcastwell-com/json-schema/broadcastwell-com-receipt-schema.json",
  "title": "Receipt",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broadcastwell-com-openapi.json#/components/schemas/Receipt",
  "type": "object",
  "properties": {
    "receipt_id": {
      "type": "string"
    },
    "pass_id": {
      "type": "string"
    },
    "pass_kind": {
      "type": "string"
    },
    "question_id": {
      "type": "integer"
    },
    "engine": {
      "$ref": "#/$defs/EngineId"
    },
    "engine_label": {
      "type": "string"
    },
    "verdict": {
      "type": "string",
      "enum": [
        "named",
        "not_named",
        "excluded"
      ]
    },
    "competitors_found": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cited_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "answer_text": {
      "type": "string"
    },
    "observed_at": {
      "type": "string"
    }
  },
  "$defs": {
    "EngineId": {
      "type": "string",
      "enum": [
        "chatgpt",
        "claude",
        "perplexity",
        "google_aio",
        "google_ai_mode"
      ],
      "description": "ChatGPT, Claude, Perplexity, Google AI Overviews, Google AI Mode."
    }
  }
}