{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-agent-room-summary-schema.json",
  "title": "AgentRoomSummary",
  "description": "A room the caller can reach. A room is the value pair (org_id, room_key) with no table behind it, so its summary is derived from what has been written under the key.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-agentmessaging-api-openapi.yml#/components/schemas/AgentRoomSummary",
  "type": "object",
  "properties": {
    "org_id": {
      "type": "string",
      "format": "uuid"
    },
    "room_key": {
      "type": "string"
    },
    "project_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Non-null exactly when this is a project's DEFAULT room (the key is a project id)."
    },
    "live_presences": {
      "type": "integer",
      "description": "Presences that have not yet expired (~1h of silence)."
    },
    "last_activity_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Most recent presence/message/claim activity; null for a key nothing has been written under."
    }
  },
  "required": [
    "org_id",
    "room_key",
    "project_id",
    "live_presences",
    "last_activity_at"
  ]
}