{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/engrate/json-schema/engrate-audit-log-response-schema.json",
  "title": "AuditLogResponse",
  "description": "An audit log entry recording a state change or action.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/engrate-audit-logs-api-openapi.yml#/components/schemas/AuditLogResponse",
  "properties": {
    "api_client_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "API client identifier that triggered the event, if applicable.",
      "title": "Api Client Id"
    },
    "created_ts": {
      "description": "ISO 8601 datetime with millisecond precision (`YYYY-MM-DDTHH:MM:SS.sssZ`).",
      "title": "Created Ts",
      "type": "string"
    },
    "data": {
      "additionalProperties": {
        "$ref": "#/$defs/JSONValue"
      },
      "description": "Combined metadata, after-state snapshot, and request context.",
      "title": "Data",
      "type": "object"
    },
    "org_uid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Organization identifier, if applicable.",
      "title": "Org Uid"
    },
    "schedule_uid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Related [Schedule](/api-reference/schedule-management/models/schedule) identifier, if applicable.",
      "title": "Schedule Uid"
    },
    "schedule_version_uid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Related [Schedule Version](/api-reference/schedule-management/models/schedule-version) identifier, if applicable.",
      "title": "Schedule Version Uid"
    },
    "time_series_uid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Related time series identifier, if applicable.",
      "title": "Time Series Uid"
    },
    "type": {
      "description": "Event type identifier (e.g. `schedule.created`).",
      "title": "Type",
      "type": "string"
    },
    "uid": {
      "description": "Unique identifier for this audit event.",
      "title": "Uid",
      "type": "string"
    },
    "user_uid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Identifier of the user who triggered the event, if applicable.",
      "title": "User Uid"
    },
    "version": {
      "default": 1,
      "description": "Event schema version.",
      "title": "Version",
      "type": "integer"
    }
  },
  "required": [
    "created_ts",
    "data",
    "type",
    "uid"
  ],
  "type": "object",
  "$defs": {
    "JSONValue": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "items": {
            "$ref": "#/$defs/JSONValue"
          },
          "type": "array"
        },
        {
          "additionalProperties": {
            "$ref": "#/$defs/JSONValue"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}