{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/la-suite/json-schema/la-suite-room-create-schema.json",
  "title": "RoomCreate",
  "description": "Optional fields for room creation. All fields have secure defaults if omitted.\n",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/la-suite-visio-openapi.yml#/components/schemas/RoomCreate",
  "type": "object",
  "properties": {
    "access_level": {
      "$ref": "#/$defs/RoomAccessLevel"
    },
    "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
    }
  }
}