{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hummingdeck/json-schema/hummingdeck-room-view-list-schema.json",
  "title": "RoomViewList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hummingdeck-room-views-api-openapi.yml#/components/schemas/RoomViewList",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoomView"
      }
    },
    "since": {
      "type": "string",
      "format": "date-time",
      "description": "The window actually applied. Send it back alongside nextCursor to keep paging one set."
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "since",
    "nextCursor"
  ],
  "$defs": {
    "RoomView": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "roomId": {
          "type": "string",
          "format": "uuid"
        },
        "roomName": {
          "type": "string"
        },
        "roomLinkId": {
          "type": [
            "string",
            "null"
          ]
        },
        "roomLinkLabel": {
          "type": [
            "string",
            "null"
          ]
        },
        "contactId": {
          "type": [
            "string",
            "null"
          ]
        },
        "viewerEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "The address the visitor gave, or the matched contact's."
        },
        "device": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "enteredAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "roomId",
        "roomName",
        "roomLinkId",
        "roomLinkLabel",
        "contactId",
        "viewerEmail",
        "device",
        "location",
        "enteredAt"
      ]
    }
  }
}