Skip to main content

Enums & Constants

All enumeration types used across the API.


WorkspaceRole​

Hierarchical role system with 5 levels. Higher levels inherit all permissions of lower levels.

RoleLevelDescription
OWNER5Full control, transfer ownership, delete workspace
ADMIN4Manage members, invite/remove members, manage invitations
EDITOR3Create, edit, delete, and move documents
COMMENTER2View documents and add comments
VIEWER1View documents only (read-only)

Permission Matrix​

ActionVIEWERCOMMENTEREDITORADMINOWNER
View documentsYesYesYesYesYes
Add comments-YesYesYesYes
Create/edit documents--YesYesYes
Delete documents--YesYesYes
Move documents--YesYesYes
Publish/unpublish--YesYesYes
Invite members---YesYes
Remove members---YesYes
Update member roles---YesYes
Update workspace---YesYes
Transfer ownership----Yes
Delete workspace----Yes

NotificationType​

TypeActionableDescription
WORKSPACE_INVITATIONYesUser was invited to a workspace
COMMENT_MENTIONNoUser was @mentioned in a comment
COMMENT_REPLYNoSomeone replied to user's comment
DOCUMENT_SHAREDNoA document was shared with the user
MEMBER_ADDEDNoUser was added to a workspace
MEMBER_REMOVEDNoUser was removed from a workspace
ROLE_CHANGEDNoUser's role was changed
OWNERSHIP_TRANSFERREDNoWorkspace ownership was transferred
SYSTEMNoSystem notification

NotificationStatus​

StatusDescription
UNREADNot yet seen by user
READMarked as read
ACTIONEDUser took action (e.g., accepted invitation)
DISMISSEDUser dismissed the notification

InvitationStatus​

StatusDescription
PENDINGInvitation sent, awaiting response
ACCEPTEDInvitation accepted
DECLINEDInvitation declined
EXPIREDInvitation expired
CANCELLEDInvitation cancelled by admin/owner

MemberStatus​

StatusDescription
ACTIVEActive member
SUSPENDEDSuspended member
REMOVEDRemoved from workspace

ExportFormat​

FormatExtensionContent-Type
PDF.pdfapplication/pdf
DOCX.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
MARKDOWN.mdtext/markdown

User Status​

StatusDescription
activeActive user
suspendedSuspended user
deletedDeleted user

Comment Thread Status​

StatusDescription
openThread is active
resolvedThread has been resolved