{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-api-audit-log-schema.json",
  "title": "ApiAuditLog",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-observability-api-openapi.yml#/components/schemas/ApiAuditLog",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "tenantId": {
      "type": "integer"
    },
    "apiKeyId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "oauthTokenId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "userId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "method": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "durationMs": {
      "type": "integer"
    },
    "requestId": {
      "type": "string"
    },
    "ip": {
      "type": [
        "string",
        "null"
      ]
    },
    "userAgent": {
      "type": [
        "string",
        "null"
      ]
    },
    "errorCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "tenantId",
    "apiKeyId",
    "oauthTokenId",
    "userId",
    "method",
    "path",
    "status",
    "durationMs",
    "requestId",
    "ip",
    "userAgent",
    "errorCode",
    "createdAt"
  ]
}