{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-euaiact-export-schema.json",
  "title": "EUAIActExport",
  "description": "EU AI Act compliance export record",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-eu-ai-act-api-openapi.yml#/components/schemas/EUAIActExport",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique export identifier"
    },
    "org_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed"
      ],
      "description": "Export processing status"
    },
    "export_type": {
      "type": "string",
      "enum": [
        "full_audit",
        "conformity_evidence",
        "hitl_summary",
        "decision_chain",
        "policy_violations",
        "accuracy_metrics"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "xml",
        "csv"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "date_from": {
      "type": "string",
      "format": "date-time"
    },
    "date_to": {
      "type": "string",
      "format": "date-time"
    },
    "download_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Presigned URL for cloud storage downloads"
    },
    "storage_type": {
      "type": "string",
      "enum": [
        "local",
        "s3",
        "gcs",
        "azure"
      ],
      "description": "Storage backend used for this export"
    },
    "storage_key": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cloud storage object key"
    },
    "file_path": {
      "type": [
        "string",
        "null"
      ],
      "description": "Local file path (when storage_type is local)"
    },
    "file_size": {
      "type": "integer",
      "description": "Size of export file in bytes"
    },
    "record_count": {
      "type": "integer",
      "description": "Number of records in the export"
    },
    "progress": {
      "type": "number",
      "format": "float",
      "description": "Processing progress (0.0 to 1.0)"
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error details if export failed"
    },
    "created_by": {
      "type": "string"
    }
  }
}