{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-paginated-audit-logs-schema.json",
  "title": "PaginatedAuditLogs",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-audit-api-openapi.yml#/components/schemas/PaginatedAuditLogs",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/AuditLog"
      },
      "type": "array"
    },
    "total": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "totalPages": {
      "type": "integer"
    },
    "nextToken": {
      "description": "Token for next page in cursor-based pagination",
      "type": "string"
    }
  },
  "required": [
    "items",
    "page",
    "total",
    "totalPages"
  ],
  "type": "object",
  "$defs": {
    "AuditLog": {
      "properties": {
        "id": {
          "type": "string"
        },
        "actorId": {
          "type": "string"
        },
        "actorEmail": {
          "type": "string"
        },
        "actorApiKeyPrefix": {
          "type": "string"
        },
        "actorApiKeySuffix": {
          "type": "string"
        },
        "organizationId": {
          "type": "string"
        },
        "action": {
          "type": "string"
        },
        "targetType": {
          "type": "string"
        },
        "targetId": {
          "type": "string"
        },
        "statusCode": {
          "type": "number"
        },
        "errorMessage": {
          "type": "string"
        },
        "ipAddress": {
          "type": "string"
        },
        "userAgent": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object"
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "action",
        "actorEmail",
        "actorId",
        "createdAt",
        "id"
      ],
      "type": "object"
    }
  }
}