{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-compliance-authorization-response-schema.json",
  "title": "ComplianceAuthorizationResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-compliance-authorization-api-openapi.yml#/components/schemas/ComplianceAuthorizationResponse",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ComplianceAuthorization"
      }
    },
    "paging": {
      "$ref": "#/$defs/Paging"
    }
  },
  "$defs": {
    "ComplianceAuthorization": {
      "type": "object",
      "properties": {
        "developerApplication": {
          "type": "string",
          "description": "URN of the developer application"
        },
        "member": {
          "type": "string",
          "description": "URN of the regulated member"
        },
        "status": {
          "type": "string",
          "enum": [
            "AUTHORIZED",
            "UNAUTHORIZED"
          ],
          "description": "Authorization status of the member"
        },
        "createdAt": {
          "type": "integer",
          "format": "int64",
          "description": "Timestamp when authorization was created"
        }
      },
      "required": [
        "developerApplication",
        "member",
        "status"
      ]
    },
    "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"
        }
      }
    }
  }
}