{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/la-suite/json-schema/la-suite-room-schema.json",
  "title": "Room",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/la-suite-visio-openapi.yml#/components/schemas/Room",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "Unique room identifier"
    },
    "slug": {
      "type": "string",
      "readOnly": true,
      "description": "URL-friendly room identifier (auto-generated)"
    },
    "access_level": {
      "$ref": "#/$defs/RoomAccessLevel"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "readOnly": true,
      "description": "Full URL to access the room"
    },
    "telephony": {
      "type": "object",
      "readOnly": true,
      "description": "Telephony dial-in information (if enabled)",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether telephony is available"
        },
        "pin_code": {
          "type": "string",
          "description": "PIN code for dial-in access"
        },
        "phone_number": {
          "type": "string",
          "description": "Phone number to dial"
        },
        "default_country": {
          "type": "string",
          "description": "Default country code"
        }
      }
    },
    "configuration": {
      "$ref": "#/$defs/RoomConfiguration"
    }
  },
  "$defs": {
    "RoomAccessLevel": {
      "type": "string",
      "enum": [
        "public",
        "trusted",
        "restricted"
      ],
      "description": "Controls who can join the room without going through the lobby.\n\n- `public`: Anyone with the room link can join directly, no authentication required.\n- `trusted`: Authenticated users join directly. Unauthenticated users wait in the lobby for approval.\n- `restricted`: Only participants explicitly trusted by the owner bypass the lobby. Everyone else waits for approval regardless of authentication.\n\n`public` is rejected with a `400` unless the deployment explicitly enables it\nfor this API. This applies both when creating a room and when updating one.\n"
    },
    "RoomConfiguration": {
      "type": "object",
      "description": "Optional room behavior settings. Unknown fields are rejected.\nAll fields are optional.\n",
      "properties": {
        "can_publish_sources": {
          "type": [
            "array",
            "null"
          ],
          "description": "Restricts which media tracks participants are allowed to publish.\nIf omitted or `null`, the instance's `LIVEKIT_DEFAULT_SOURCES` applies.\n",
          "items": {
            "type": "string",
            "enum": [
              "camera",
              "microphone",
              "screen_share",
              "screen_share_audio"
            ]
          }
        },
        "everyone_can_mute": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether any participant can mute others, or only the room owner/moderator.\nIf omitted, any participant can mute others. `null` acts as `false`.\n"
        }
      },
      "additionalProperties": false
    }
  }
}