{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-hitlapproval-request-schema.json",
  "title": "HITLApprovalRequest",
  "description": "An approval-queue row. Source of truth:\n`platform/agent/hitl/repository.go` (ApprovalRequest).\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-hitl-api-openapi.yml#/components/schemas/HITLApprovalRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "request_id": {
      "type": "string",
      "format": "uuid"
    },
    "org_id": {
      "type": "string"
    },
    "tenant_id": {
      "type": "string"
    },
    "client_id": {
      "type": "string"
    },
    "user_id": {
      "type": "string"
    },
    "original_query": {
      "type": "string"
    },
    "request_type": {
      "type": "string"
    },
    "request_context": {
      "type": "object",
      "additionalProperties": true
    },
    "triggered_policy_id": {
      "type": "string"
    },
    "triggered_policy_name": {
      "type": "string"
    },
    "trigger_reason": {
      "type": "string"
    },
    "severity": {
      "type": "string"
    },
    "eu_ai_act_article": {
      "type": "string"
    },
    "compliance_framework": {
      "type": "string"
    },
    "risk_classification": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "approved",
        "rejected",
        "overridden",
        "expired"
      ]
    },
    "reviewer_id": {
      "type": "string"
    },
    "reviewer_email": {
      "type": "string"
    },
    "reviewer_role": {
      "type": "string"
    },
    "review_comment": {
      "type": "string"
    },
    "reviewed_at": {
      "type": "string",
      "format": "date-time"
    },
    "override_justification": {
      "type": "string"
    },
    "override_authorized_by": {
      "type": "string"
    },
    "notify_url": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}