{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aivideocheck-net/json-schema/aivideocheck-net-check-schema.json",
  "title": "Check",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aivideocheck-net-openapi.yml#/components/schemas/Check",
  "type": "object",
  "required": [
    "id",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "succeeded",
        "failed"
      ]
    },
    "progress": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "description": "Only while processing."
    },
    "credits_charged": {
      "type": "integer"
    },
    "result": {
      "$ref": "#/$defs/Result"
    },
    "error": {
      "$ref": "#/$defs/ErrorBody"
    }
  },
  "$defs": {
    "ErrorBody": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": true,
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "Result": {
      "type": "object",
      "additionalProperties": true,
      "description": "Fields may be added over time; ignore the ones you do not know.",
      "properties": {
        "probability": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Combined score."
        },
        "verdict": {
          "type": "string",
          "enum": [
            "real",
            "likely_real",
            "likely_ai",
            "ai"
          ],
          "description": "Bands: below 15, 15–53, 53–90, 90 and above."
        },
        "video_probability": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "audio_probability": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0,
          "maximum": 100
        },
        "provenance": {
          "type": [
            "object",
            "null"
          ],
          "description": "C2PA Content Credential if the file carries one."
        },
        "duration_s": {
          "type": [
            "number",
            "null"
          ]
        },
        "file_sha256": {
          "type": [
            "string",
            "null"
          ]
        },
        "model_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "model_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}