{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-audit-export-request-schema.json",
  "title": "AuditExportRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-audit-api-openapi.yml#/components/schemas/AuditExportRequest",
  "properties": {
    "date_from": {
      "type": "string",
      "format": "date-time",
      "title": "Date From"
    },
    "date_to": {
      "type": "string",
      "format": "date-time",
      "title": "Date To"
    },
    "service": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Service",
      "description": "Filter by service name."
    },
    "action": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Action",
      "description": "Filter by action type."
    },
    "phi_only": {
      "type": "boolean",
      "title": "Phi Only",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "date_from",
    "date_to"
  ]
}