{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-colocated-devices-list-schema.json",
  "title": "Colocated devices",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kontaktio-colocations-api-openapi.yml#/components/schemas/Colocated-devices-list",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "uniqueItems": true,
      "minItems": 1,
      "description": "List of colocated devices with queried devices.",
      "items": {
        "type": "object",
        "properties": {
          "trackingId": {
            "type": "string",
            "minLength": 1,
            "description": "TrackingID of colocated device."
          },
          "startTime": {
            "type": "string",
            "minLength": 1,
            "description": "Beginning of checked time period."
          },
          "endTime": {
            "type": "string",
            "minLength": 1,
            "description": "End of checked time period."
          },
          "contacts": {
            "type": "array",
            "uniqueItems": true,
            "minItems": 1,
            "description": "List of queried devices.",
            "items": {
              "type": "object",
              "description": "Query device tracking ID",
              "properties": {
                "trackingId": {
                  "type": "string",
                  "minLength": 1,
                  "description": "trackingId of queried device."
                },
                "durationSec": {
                  "type": "number",
                  "description": "Duration in seconds of colocation time between queried device and colocated device."
                }
              }
            }
          }
        }
      }
    }
  }
}