{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-compliance-events-response-schema.json",
  "title": "ComplianceEventsResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-compliance-events-api-openapi.yml#/components/schemas/ComplianceEventsResponse",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComplianceEvent"
      }
    },
    "paging": {
      "$ref": "#/$defs/Paging"
    }
  },
  "$defs": {
    "ComplianceEvent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the compliance event"
        },
        "capturedAt": {
          "type": "integer",
          "format": "int64",
          "description": "Timestamp when the event was captured"
        },
        "processedAt": {
          "type": "integer",
          "format": "int64",
          "description": "Timestamp when the event was processed"
        },
        "configVersion": {
          "type": "string",
          "description": "Configuration version"
        },
        "owner": {
          "$ref": "#/$defs/MemberProfile"
        },
        "actor": {
          "$ref": "#/$defs/MemberProfile"
        },
        "resourceName": {
          "type": "string",
          "description": "Name of the resource"
        },
        "resourceId": {
          "type": "string",
          "description": "Identifier of the resource"
        },
        "resourceUri": {
          "type": "string",
          "description": "URI of the resource"
        },
        "method": {
          "type": "string",
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "description": "Action method performed"
        },
        "activity": {
          "type": "object",
          "description": "Activity details",
          "additionalProperties": true
        },
        "processedActivity": {
          "type": "object",
          "description": "Processed activity details",
          "additionalProperties": true
        },
        "siblingActivities": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Related sibling activities"
        },
        "parentActivity": {
          "type": "object",
          "description": "Parent activity if applicable",
          "additionalProperties": true
        },
        "parentSiblingActivities": {
          "type": "array",
          "items": {
            "type": "object"
          },
          "description": "Parent sibling activities"
        }
      },
      "required": [
        "id",
        "capturedAt",
        "resourceName",
        "method"
      ]
    },
    "MemberProfile": {
      "type": "object",
      "properties": {
        "firstName": {
          "type": "string",
          "description": "First name of the member"
        },
        "lastName": {
          "type": "string",
          "description": "Last name of the member"
        },
        "headline": {
          "type": "string",
          "description": "Professional headline"
        }
      }
    },
    "Paging": {
      "type": "object",
      "properties": {
        "start": {
          "type": "integer",
          "description": "Starting index"
        },
        "count": {
          "type": "integer",
          "description": "Number of elements returned"
        },
        "total": {
          "type": "integer",
          "description": "Total number of elements available"
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PagingLink"
          }
        }
      }
    },
    "PagingLink": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "href": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    }
  }
}