跳到主要内容

RoomType

Room types accepted by SDKInstance.createRoom and returned as roomType in TRoomInfo and TSelectedRoom.roomType. The numeric values are the portal's RoomType API values.

Example​

import { RoomType } from '@onlyoffice/docspace-sdk-js';

const room = await instance.createRoom('Contracts', RoomType.Custom);

Enumeration Members​

Enumeration MemberValueDescription
Ai9AI room: an AI agent works with the room's files. API value: 9 (AiRoom).
Collaboration2Collaboration room: co-editing of documents. API value: 2 (EditingRoom).
Custom5Custom room: every access level (including reviewing and commenting) can be assigned. API value: 5 (CustomRoom).
FormFilling1Form filling room: a room for filling out and collecting PDF forms. API value: 1 (FillingFormsRoom).
Private13Private room: end-to-end encrypted. Returned by SDKInstance.getRooms and TFrameEvents.onSelectCallback; not accepted by SDKInstance.createRoom. API value: 13 (RoomsTypePrivate).
Public6Public room: files are shared through external links. API value: 6 (PublicRoom).
VirtualData8Virtual data room: indexing, watermarks and download restrictions. API value: 8 (VirtualDataRoom).