{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-decision-list-response-schema.json",
  "title": "DecisionListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-decisions-overrides-api-openapi.yml#/components/schemas/DecisionListResponse",
  "type": "object",
  "properties": {
    "decisions": {
      "type": "array",
      "description": "Always an array (`[]` when empty)",
      "items": {
        "$ref": "#/$defs/DecisionListItem"
      }
    }
  },
  "$defs": {
    "DecisionListItem": {
      "type": "object",
      "properties": {
        "decision_id": {
          "type": "string"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "decision": {
          "type": "string",
          "description": "Canonical verdict",
          "enum": [
            "allowed",
            "blocked",
            "redacted",
            "needs_approval",
            "error"
          ]
        },
        "policy_id": {
          "type": "string"
        },
        "tool_signature": {
          "type": "string"
        },
        "context": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Decision context, truncated to at most 5 keys (sorted)"
        },
        "transfer_basis": {
          "type": "string",
          "description": "UU PDP Pasal 56 transfer basis; Enterprise cross-border rows only"
        },
        "data_residency": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 destination country; Enterprise only"
        }
      }
    }
  }
}