{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dregs-com/json-schema/dregs-com-v1-analysis-cycle-schema.json",
  "title": "V1AnalysisCycle",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dregs-com-identities-api-openapi.yml#/components/schemas/V1AnalysisCycle",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "identityId": {
      "type": "string"
    },
    "scores": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/V1Score"
      }
    },
    "humanityScore": {
      "type": "integer",
      "format": "int32"
    },
    "authenticityScore": {
      "type": "integer",
      "format": "int32"
    },
    "uniquenessScore": {
      "type": "integer",
      "format": "int32"
    },
    "behaviorScore": {
      "type": "integer",
      "format": "int32"
    },
    "eventCount": {
      "type": "integer",
      "format": "int32"
    },
    "deviceCount": {
      "type": "integer",
      "format": "int32"
    },
    "durationMillis": {
      "type": "integer",
      "format": "int64"
    },
    "startedAt": {
      "type": "string",
      "format": "date-time"
    },
    "finishedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "V1Observation": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string",
          "enum": [
            "UNIQUENESS",
            "HUMANITY",
            "AUTHENTICITY",
            "BEHAVIOR"
          ]
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "explanation": {
          "type": "string"
        },
        "value": {
          "type": "number",
          "format": "double"
        },
        "confidence": {
          "type": "number",
          "format": "double"
        },
        "weight": {
          "type": "number",
          "format": "double"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {}
        }
      }
    },
    "V1Score": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string",
          "enum": [
            "UNIQUENESS",
            "HUMANITY",
            "AUTHENTICITY",
            "BEHAVIOR"
          ]
        },
        "value": {
          "type": "integer",
          "format": "int32"
        },
        "observations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/V1Observation"
          }
        }
      }
    }
  }
}