{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/evalgate-com/json-schema/evalgate-com-get-api-audit-logs-export-response200-application-json-schema.json",
  "title": "GetApiAuditLogsExportResponse200ApplicationJson",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/evalgate-com-audit-logs-api-openapi.yml#/components/schemas/GetApiAuditLogsExportResponse200ApplicationJson",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "eventId": {
            "type": "string"
          },
          "organizationId": {
            "$ref": "#/$defs/OrganizationId"
          },
          "userId": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "action": {
            "type": "string"
          },
          "resourceType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "resourceId": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "metadata": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "previousValue": {
                    "$ref": "#/$defs/JsonValue"
                  },
                  "newValue": {
                    "$ref": "#/$defs/JsonValue"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "ipAddress": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "userAgent": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "chainSequence": {
            "type": "number"
          },
          "previousHash": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "string"
              }
            ]
          },
          "entryHash": {
            "type": "string"
          },
          "chainAlgorithm": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "required": [
          "id",
          "eventId",
          "organizationId",
          "userId",
          "action",
          "resourceType",
          "resourceId",
          "metadata",
          "ipAddress",
          "userAgent",
          "chainSequence",
          "previousHash",
          "entryHash",
          "chainAlgorithm",
          "createdAt"
        ]
      }
    },
    "count": {
      "type": "number"
    },
    "integrity": {
      "type": "object",
      "properties": {
        "valid": {
          "type": "boolean"
        },
        "count": {
          "type": "number"
        },
        "headHash": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ]
        },
        "firstInvalidSequence": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "number"
            }
          ]
        },
        "reason": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "link"
              ]
            },
            {
              "type": "string",
              "enum": [
                "algorithm"
              ]
            },
            {
              "type": "string",
              "enum": [
                "content"
              ]
            },
            {
              "type": "string",
              "enum": [
                "complete"
              ]
            },
            {
              "type": "string",
              "enum": [
                "sequence"
              ]
            },
            {
              "type": "string",
              "enum": [
                "transition"
              ]
            }
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "valid",
        "count",
        "headHash",
        "firstInvalidSequence",
        "reason"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "data",
    "count",
    "integrity"
  ],
  "$defs": {
    "JsonValue": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JsonValue"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          }
        }
      ]
    },
    "OrganizationId": {
      "type": "string",
      "format": "uuid"
    }
  }
}