{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/7digital/refs/heads/main/json-schema/streaming-platform-device-authorisation-schema.json",
  "title": "DeviceAuthorisation",
  "description": "DeviceAuthorisation schema from 7digital API",
  "type": "object",
  "properties": {
    "deviceId": {
      "type": "string",
      "example": "device-789012"
    },
    "deviceName": {
      "type": "string",
      "example": "Jane's iPhone"
    },
    "platform": {
      "type": "string",
      "enum": [
        "ios",
        "android",
        "web",
        "windows",
        "macos"
      ],
      "example": "ios"
    },
    "status": {
      "type": "string",
      "enum": [
        "authorised",
        "deauthorised"
      ],
      "example": "authorised"
    },
    "authorisedAt": {
      "type": "string",
      "format": "date-time",
      "example": "2026-05-01T10:00:00Z"
    }
  }
}