{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zywave/json-schema/zywave-audit-paged-result-schema.json",
  "title": "AuditPagedResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-audits-api-openapi.yml#/components/schemas/AuditPagedResult",
  "allOf": [
    {
      "$ref": "#/$defs/PagedResultOfAuditResponse"
    },
    {
      "type": "object",
      "additionalProperties": false
    }
  ],
  "$defs": {
    "AuditEntry": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "actionPerformed": {
          "type": "string",
          "description": "Verb describing event; e.g., Uploaded, Moved."
        },
        "actionPerformedBy": {
          "type": "string",
          "description": "Username who performed this specific action."
        },
        "actionPerformedDate": {
          "type": "string",
          "description": "UTC ISO 8601 timestamp of the action.",
          "format": "date-time"
        },
        "status": {
          "type": "string",
          "description": "File status at time of this action."
        }
      }
    },
    "AuditFileItem": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "fileId": {
          "type": "string",
          "description": "UUID public identifier of the audited file.",
          "format": "guid"
        },
        "fileName": {
          "type": "string",
          "description": "Display name including file extension."
        },
        "audits": {
          "type": "array",
          "description": "Ordered list of audit events; newest first.",
          "items": {
            "$ref": "#/$defs/AuditEntry"
          }
        }
      }
    },
    "AuditResponse": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "folderId": {
          "type": "string",
          "description": "UUID of folder containing the audited files.",
          "format": "guid"
        },
        "folderLocation": {
          "type": "string",
          "description": "Full path within the entity hierarchy."
        },
        "folderName": {
          "type": "string",
          "description": "Display name of this folder."
        },
        "files": {
          "type": "array",
          "description": "Files with their audit histories inside folder.",
          "items": {
            "$ref": "#/$defs/AuditFileItem"
          }
        }
      }
    },
    "PagedResultOfAuditResponse": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "hasMoreResults": {
          "type": "boolean"
        },
        "pageIndex": {
          "type": "integer",
          "format": "int32"
        },
        "pageSize": {
          "type": "integer",
          "format": "int32"
        },
        "skip": {
          "type": "integer",
          "format": "int32"
        },
        "take": {
          "type": "integer",
          "format": "int32"
        },
        "totalCount": {
          "type": "integer",
          "format": "int32"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuditResponse"
          }
        }
      }
    }
  }
}