{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klokin-io/json-schema/klokin-io-audit-log-schema.json",
  "title": "AuditLog",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klokin-io-openapi.yml#/components/schemas/AuditLog",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "action": {
      "type": "string",
      "description": "e.g. employee.create, store.update"
    },
    "actorId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "targetType": {
      "type": [
        "string",
        "null"
      ]
    },
    "targetId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "organizationId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "ipAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "details": {
      "type": "object"
    },
    "isRevert": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}