{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/decionis-com/json-schema/decionis-com-vertex-authority-drift-event-request-schema.json",
  "title": "VertexAuthorityDriftEventRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/decionis-com-openapi-openapi.yml#/components/schemas/VertexAuthorityDriftEventRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "org_id",
    "event_type"
  ],
  "properties": {
    "org_id": {
      "type": "string",
      "format": "uuid"
    },
    "dossier_id": {
      "type": "string",
      "format": "uuid"
    },
    "evaluation_id": {
      "type": "string",
      "format": "uuid"
    },
    "policy_version": {
      "type": "string",
      "maxLength": 120
    },
    "event_type": {
      "type": "string",
      "enum": [
        "OVERRIDE_CREATED",
        "OVERRIDE_APPROVED",
        "OVERRIDE_REJECTED",
        "DOWNSTREAM_EXECUTION_BLOCKED",
        "DOWNSTREAM_EXECUTION_SUCCEEDED",
        "MODEL_INTENT_CHANGED",
        "POLICY_OUTCOME_DISPUTED"
      ]
    },
    "severity": {
      "type": "string",
      "default": "INFO",
      "enum": [
        "INFO",
        "WARN",
        "CRITICAL"
      ]
    },
    "signal": {
      "type": "object",
      "additionalProperties": true
    },
    "google_context": {
      "$ref": "#/$defs/GoogleContext"
    },
    "observed_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "GoogleContext": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "agent_id": {
          "type": "string",
          "maxLength": 200
        },
        "agent_session_id": {
          "type": "string",
          "maxLength": 200
        },
        "tool_call_id": {
          "type": "string",
          "maxLength": 200
        },
        "project_id": {
          "type": "string",
          "maxLength": 120
        },
        "location": {
          "type": "string",
          "maxLength": 120
        },
        "service_account_email": {
          "type": "string",
          "format": "email"
        },
        "principal_subject": {
          "type": "string",
          "maxLength": 300
        },
        "user_email": {
          "type": "string",
          "format": "email"
        },
        "reasoning_model": {
          "type": "string",
          "maxLength": 120
        }
      }
    }
  }
}