{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autohost/json-schema/autohost-background-check-results-response-schema.json",
  "title": "BackgroundCheckResultsResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autohost-openapi.json#/components/schemas/BackgroundCheckResultsResponse",
  "properties": {
    "id": {
      "type": "string",
      "description": "Background check report ID"
    },
    "status": {
      "type": "string",
      "description": "Background check report status",
      "enum": [
        "PENDING",
        "REVIEW",
        "FINISHED",
        "FAILED"
      ]
    },
    "risk_status": {
      "type": "string",
      "description": "Background check risk status",
      "enum": [
        "CLEARED",
        "REVIEW"
      ]
    },
    "type": {
      "type": "string",
      "description": "Background check report type",
      "enum": [
        "globalcheck"
      ]
    },
    "start_date": {
      "type": "string",
      "format": "date-time",
      "description": "Date when the background check was started"
    },
    "stop_date": {
      "type": "string",
      "format": "date-time",
      "description": "Date when the background check was finished"
    },
    "pdf": {
      "type": "string",
      "format": "uri",
      "description": "URL to the PDF report"
    },
    "report_items": {
      "type": "array",
      "description": "List of report sections",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the report section"
          },
          "status": {
            "type": "string",
            "enum": [
              "FINISHED",
              "FAILED",
              "PENDING",
              "NO_RESULTS"
            ]
          },
          "items": {
            "type": "array",
            "description": "List of report section items",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string",
                  "description": "Name of the report item"
                },
                "subtitle": {
                  "type": "string",
                  "description": "Subtitle of the report item"
                },
                "description": {
                  "type": "string",
                  "description": "Description of the report item"
                },
                "tags": {
                  "type": "array",
                  "description": "List of tags",
                  "items": {
                    "type": "string",
                    "description": "Tag"
                  }
                },
                "image": {
                  "type": "string",
                  "format": "uri",
                  "description": "URL to an image"
                },
                "images": {
                  "type": "array",
                  "description": "List of images",
                  "items": {
                    "type": "string",
                    "format": "uri",
                    "description": "URL to an image"
                  }
                },
                "link": {
                  "type": "string",
                  "format": "uri",
                  "description": "URL for more information"
                }
              }
            }
          }
        }
      }
    }
  }
}