{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-audit-entry-schema.json",
  "title": "AuditEntry",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-moderation-api-openapi.yml#/components/schemas/AuditEntry",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "org_id": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "enum": [
        "report",
        "takedown",
        "reinstate",
        "dismiss"
      ],
      "description": "What happened: report filed, takedown, reinstate, or dismiss"
    },
    "artifact_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The artifact acted on, or null if not artifact-specific"
    },
    "actor": {
      "type": "string",
      "description": "Who performed it: a user's name, or an IP/'anonymous' for public reports"
    },
    "detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "Context such as the report reason or takedown note, or null"
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "org_id",
    "action",
    "artifact_id",
    "actor",
    "detail",
    "created_at"
  ]
}