{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nizlo-com/json-schema/nizlo-com-device-schema.json",
  "title": "Device",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nizlo-com-nizlo-rmm-api-openapi.yml#/components/schemas/Device",
  "type": "object",
  "required": [
    "id",
    "customerId",
    "siteId",
    "hostname"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "customerId": {
      "type": "string",
      "format": "uuid"
    },
    "siteId": {
      "type": "string",
      "format": "uuid"
    },
    "hostname": {
      "type": "string"
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "agentPlatform": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "WINDOWS",
        "MACOS",
        "LINUX",
        null
      ]
    },
    "connectionState": {
      "type": "string",
      "enum": [
        "ONLINE",
        "OFFLINE"
      ]
    },
    "isOnline": {
      "type": "boolean"
    },
    "lastSeenAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "additionalProperties": true
}