{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-api-response-of-audit-logs-result-dto-schema.json",
  "title": "ApiResponseOfAuditLogsResultDto",
  "description": "Standard v2 API response envelope for single-item responses.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-investigation-api-openapi.yml#/components/schemas/ApiResponseOfAuditLogsResultDto",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/AuditLogsResultDto"
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "AuditLogItemDto": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "service": {
          "type": [
            "null",
            "string"
          ]
        },
        "activity": {
          "type": [
            "null",
            "string"
          ]
        },
        "category": {
          "type": [
            "null",
            "string"
          ]
        },
        "status": {
          "type": [
            "null",
            "string"
          ]
        },
        "statusReason": {
          "type": [
            "null",
            "string"
          ]
        },
        "targetResources": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "targets": {
          "type": [
            "null",
            "string"
          ]
        },
        "actor": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "AuditLogsResultDto": {
      "type": "object",
      "properties": {
        "items": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/AuditLogItemDto"
          },
          "description": "The user audit log items."
        },
        "nextPageLink": {
          "type": [
            "null",
            "string"
          ],
          "description": "The link to load the next page of user audit logs."
        },
        "message": {
          "type": [
            "null",
            "string"
          ],
          "description": "A consumer-neutral message describing why data could not be retrieved.\nPresent when bool AuditLogsResultDto.CanRetrieveData is `false`."
        },
        "canRetrieveData": {
          "type": "boolean",
          "description": "Indicates whether the handler was able to retrieve the requested data.\nWhen `false`, callers should check string AuditLogsResultDto.Message for the reason\nand avoid retrying the same request without addressing the underlying cause."
        }
      }
    },
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": [
            "null",
            "string"
          ]
        },
        "timestamp": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    }
  }
}