Skip to main content
Source of truth: exhaustive for what it covers. Generated from Velt API metadata. If a name isn’t on this page, it doesn’t exist: don’t use it (a missing identifier resolves to undefined / renders nothing). Never invent or guess a name; use only identifiers that appear verbatim here or that you verified against ground truth and added here. Scope: exhaustive per feature element over the public, customer-facing method surface (verbatim method names + parameter types; a few any returns are intentional). Comments + notifications are the in-scope focus; other feature elements are included for completeness.
Complete public API surface for every Velt feature element, as a customer calls them.

How customers obtain an element

Every feature is accessed through its element getter on the Velt client. Get the client once, then ask it for the feature element you need:
// Vanilla / HTML SDK
const client = Velt; // the global injected by the SDK script
const commentElement = client.getCommentElement();
commentElement.resolveCommentAnnotation({ annotationId: '123' });

// React SDK exposes the same elements via hooks (e.g. useCommentUtils()),
// but the underlying method names/signatures below are identical.
The getter for each feature is listed in its section heading (e.g. client.getCommentElement()). Velt.getXElement() and client.getXElement() are equivalent.
Signatures are the public, customer-facing API of each feature element (verbatim method names and parameter types). A few any return types are intentional on the public surface. Exhaustive per feature element.

Feature elements

Comments: client.getCommentElement()

Class: CommentElement (extends InjectorElement).
MethodReturnsDescription
getAllCommentAnnotations(documentId?: string, location?: Location)Observable<CommentAnnotation[] | null>Subscribe to comments on the current document.
deleteSelectedComment()Promise<any>Delete the currently selected comment.
enableTextComments()anyEnable text comment selection.
disableTextComments()anyDisable text comment selection.
allowedElementIds(elementIds: string[])anyAllow text selection in specific elements by id only.
allowedElementClassNames(classNames: string[])anyAllow text selection in specific elements by class name only.
allowedElementQuerySelectors(querySelectors: string[])anyAllow text selection in specific elements by query selector only.
enableFloatingCommentDialog()anyEnable floating comment dialog.
disableFloatingCommentDialog()anyDisable floating comments (enabled by default).
attachComment(elementId: string)anyAttach comments to a specific html element by id.
openCommentSidebar()anyOpen the comment sidebar.
closeCommentSidebar()anyClose the comment sidebar.
toggleCommentSidebar()anyToggle the comment sidebar.
enableModeratorMode()anyEnable moderator mode.
disableModeratorMode()anyDisable moderator mode.
enableStreamMode()anyEnable stream mode.
disableStreamMode()anyDisable stream mode.
enableSignInButton()anyShow sign in button in comments if user is signed out.
disableSignInButton()anyHide sign in button in comments if user is signed out.
enableUpgradeButton()anyShow upgrade button in comments when plan is expired.
disableUpgradeButton()anyHide upgrade button in comments when plan is expired.
onCommentModeChange()Observable<boolean>Subscribe to add-comment-mode change.
enableAttachments()anyEnable adding attachments in comments.
disableAttachments()anyDisable adding attachments in comments.
enableAttachmentDownload()anyEnable downloading comment attachments.
disableAttachmentDownload()anyDisable downloading comment attachments.
isUserGlobalContact()Observable<boolean>Get whether the user is part of the global contact list.
enableDeviceInfo()anyShow device/screen-size info in comments.
disableDeviceInfo()anyHide device/screen-size info in comments.
enableCommentMode()anyEnable comment mode to add comments.
disableCommentMode()anyDisable comment mode.
enablePersistentCommentMode()anyEnable persistent comment mode.
disablePersistentCommentMode()anyDisable persistent comment mode.
enableCommentIndex()anyShow comment number/index.
disableCommentIndex()anyHide comment number/index.
enablePopoverMode()anyEnable popover mode.
disablePopoverMode()anyDisable popover mode.
enablePopoverTriangleComponent()anyEnable the popover triangle component.
disablePopoverTriangleComponent()anyDisable the popover triangle component.
enableDialogOnHover()anyOpen the comment dialog on hover.
disableDialogOnHover()anyDisable opening the comment dialog on hover.
enableDialogOnTargetElementClick()anyOpen the comment dialog on target element click.
disableDialogOnTargetElementClick()anyDisable opening the comment dialog on target element click.
enablePriority()anyEnable comment priority.
disablePriority()anyDisable comment priority.
enableStatus()anyEnable comment status.
disableStatus()anyDisable comment status.
enableVisibilityOptions()anyEnable comment visibility options.
disableVisibilityOptions()anyDisable comment visibility options.
enableResolveButton()anyEnable the resolve button.
disableResolveButton()anyDisable the resolve button.
enableGhostComments()anyEnable ghost comments.
disableGhostComments()anyDisable ghost comments.
enableGhostCommentsIndicator()anyEnable the ghost comments indicator.
disableGhostCommentsIndicator()anyDisable the ghost comments indicator.
setCustomStatus(statuses: CustomStatus[])voidSet custom comment statuses.
setCustomPriority(priorities: CustomPriority[])voidSet custom comment priorities.
setCustomCategory(categories: CustomCategory[])voidSet custom comment categories.
enableInboxMode()anyEnable inbox mode.
disableInboxMode()anyDisable inbox mode.
enableAutoCategorize()anyEnable auto-categorize.
disableAutoCategorize()anyDisable auto-categorize.
enableDarkMode()anyEnable dark mode.
disableDarkMode()anyDisable dark mode.
setContextProvider(provider: CommentContextProvider | null)voidSet the comment context provider.
enableSuggestionMode()anyEnable suggestion mode.
disableSuggestionMode()anyDisable suggestion mode.
enableMobileMode()anyEnable mobile mode.
disableMobileMode()anyDisable mobile mode.
enableInlineCommentMode()anyEnable inline comment mode.
disableInlineCommentMode()anyDisable inline comment mode.
enableMinimap()anyEnable the minimap.
disableMinimap()anyDisable the minimap.
showCommentsOnDom()anyShow comment pins on the DOM.
hideCommentsOnDom()anyHide comment pins on the DOM.
enableCommentTool()anyEnable the comment tool.
disableCommentTool()anyDisable the comment tool.
setTotalMediaLength(totalMediaLength: number)voidSet the total media length (for media comments).
onCommentAdd()Observable<CommentAddEventData>(legacy: use the AddCommentAnnotation event instead) Subscribe to comment-add events.
onCommentUpdate()Observable<CommentUpdateEventData>(legacy: use action-specific events instead) Subscribe to comment-update events.
addCommentOnSelectedText()anyAdd a comment on the currently selected text.
enableSidebarUrlNavigation()voidEnable sidebar URL navigation.
disableSidebarUrlNavigation()voidDisable sidebar URL navigation.
setDStrategy(strategy: DetectionStrategy)voidSet the detection strategy.
enableSidebarButtonOnCommentDialog()voidShow the sidebar button on the comment dialog.
disableSidebarButtonOnCommentDialog()voidHide the sidebar button on the comment dialog.
onSidebarButtonOnCommentDialogClick()Observable<any>Subscribe to clicks on the sidebar button in the comment dialog.
enableReactions()voidEnable reactions.
disableReactions()voidDisable reactions.
enableAnonymousEmail()voidEnable anonymous email.
disableAnonymousEmail()voidDisable anonymous email.
setRecordings(allowedRecordings: string | string[])voidSet allowed recordings.
addCommentOnElement(data: CommentOnElementConfig)voidAdd a comment on a specific element.
enablePrivateCommentMode()void(deprecated) Enable private comment mode.
disablePrivateCommentMode()void(deprecated) Disable private comment mode.
enablePrivateMode(config: PrivateModeConfig)voidEnable private mode with config.
disablePrivateMode()voidDisable private mode.
enableScrollToComment()voidEnable scroll-to-comment.
disableScrollToComment()voidDisable scroll-to-comment.
enableUserMentions()voidEnable user mentions.
disableUserMentions()voidDisable user mentions.
setCommentSidebarFilters(filters: CommentSidebarFilters)voidSet comment sidebar filters.
setSystemFiltersOperator(operator: CommentSidebarSystemFiltersOperator)voidSet the system filters operator.
enableCommentPinHighlighter()voidEnable the comment pin highlighter.
disableCommentPinHighlighter()voidDisable the comment pin highlighter.
enableDeleteOnBackspace()voidEnable delete on backspace.
disableDeleteOnBackspace()voidDisable delete on backspace.
enableHotkey()voidEnable hotkey.
disableHotkey()voidDisable hotkey.
enableDeviceIndicatorOnCommentPins()voidEnable device indicator on comment pins.
disableDeviceIndicatorOnCommentPins()voidDisable device indicator on comment pins.
getElementRefByAnnotationId(annotationId: string){ xpath: string } | undefinedGet an element reference (xpath) by annotation id.
scrollToCommentByAnnotationId(annotationId: string)voidScroll to a comment by annotation id.
selectCommentByAnnotationId(annotationId?: string)voidSelect a comment by annotation id.
enableRecordingSummary()void(deprecated: use enableRecordingTranscription) Enable recording summary.
disableRecordingSummary()void(deprecated: use disableRecordingTranscription) Disable recording summary.
enableRecordingTranscription()voidEnable recording transcription.
disableRecordingTranscription()voidDisable recording transcription.
enableRecordingCountdown()voidEnable recording countdown.
disableRecordingCountdown()voidDisable recording countdown.
setUnreadIndicatorMode(mode: UnreadIndicatorMode)voidSet the unread indicator mode.
enableEnterKeyToSubmit()voidEnable Enter key to submit.
disableEnterKeyToSubmit()voidDisable Enter key to submit.
enablePinShadowDOM()voidEnable Shadow DOM for pins.
disablePinShadowDOM()voidDisable Shadow DOM for pins.
enableDialogShadowDOM()voidEnable Shadow DOM for the dialog.
disableDialogShadowDOM()voidDisable Shadow DOM for the dialog.
enableSidebarShadowDOM()voidEnable Shadow DOM for the sidebar.
disableSidebarShadowDOM()voidDisable Shadow DOM for the sidebar.
enableChangeDetectionInCommentMode()voidEnable change detection in comment mode.
disableChangeDetectionInCommentMode()voidDisable change detection in comment mode.
showResolvedCommentsOnDom()voidShow resolved comments on the DOM.
hideResolvedCommentsOnDom()voidHide resolved comments on the DOM.
setCustomReactions(reactions: ReactionMap)voidSet custom reactions.
onCommentSelectionChange()Observable<CommentSelectionChangeData | null>Subscribe to comment selection changes.
getUnreadCommentCountByAnnotationId(commentAnnotationId: string)Observable<UnreadCommentsCount>Get unread comment count by annotation id.
getUnreadCommentAnnotationCountOnCurrentDocument()Observable<UnreadCommentsCount>Get unread comment-annotation count on the current document.
getUnreadCommentCountOnCurrentDocument()Observable<UnreadCommentsCount>Get unread comment count on the current document.
getUnreadCommentAnnotationCountByLocationId(locationId: string)Observable<UnreadCommentsCount>Get unread comment-annotation count by location id.
getUnreadCommentCountByLocationId(locationId: string)Observable<UnreadCommentsCount>Get unread comment count by location id.
updateCommentDialogPosition()voidUpdate the comment dialog position.
enableAreaComment()voidEnable area comments.
disableAreaComment()voidDisable area comments.
setPinCursorImage(image: string)voidSet the pin cursor image.
addManualComment(config: ManualCommentAnnotationConfig)Promise<any>Add a manual comment annotation.
createCustomListDataOnAnnotation(data: CustomAnnotationDropdownData)voidCreate custom list/dropdown data on an annotation.
createCustomListDataOnComment(data: AutocompleteData)voidCreate custom list/autocomplete data on a comment.
excludeLocationIdsFromSidebar(locationIds: string[])voidExclude location ids from the sidebar.
enableBubbleOnPin()voidEnable bubble on pin.
disableBubbleOnPin()voidDisable bubble on pin.
enableBubbleOnPinHover()voidEnable bubble on pin hover.
disableBubbleOnPinHover()voidDisable bubble on pin hover.
enablePinDrag()voidEnable pin drag.
disablePinDrag()voidDisable pin drag.
enableMultiThreadMode()voidEnable multi-thread mode.
disableMultiThreadMode()voidDisable multi-thread mode.
enableGroupMultipleMatch()void(deprecated: use enableGroupMatchedComments) Enable grouping of multiple matches.
disableGroupMultipleMatch()void(deprecated: use disableGroupMatchedComments) Disable grouping of multiple matches.
enableGroupMatchedComments()voidEnable grouping of matched comments.
disableGroupMatchedComments()voidDisable grouping of matched comments.
enableMultiThread()voidEnable multi-thread.
disableMultiThread()voidDisable multi-thread.
updateContext(annotationId: string, context: any, config?: UpdateContextConfig)Promise<any>Update the context of an annotation.
updateVisibility(visibility: CommentVisibilityConfig)Promise<any>Update comment visibility.
getSelectedComments()Observable<CommentAnnotation[]>Get the currently selected comments.
enableDeleteReplyConfirmation()voidEnable delete-reply confirmation.
disableDeleteReplyConfirmation()voidDisable delete-reply confirmation.
onCopyLink()Observable<string>Subscribe to copy-link events.
getCommentAnnotationById(config: { annotationId: string, documentId?: string })Observable<CommentAnnotation | null>Get a comment annotation by id.
enableCollapsedComments()voidEnable collapsed comments.
disableCollapsedComments()voidDisable collapsed comments.
enableCollapsedRepliesPreview()voidEnable collapsed replies preview.
disableCollapsedRepliesPreview()voidDisable collapsed replies preview.
onCommentSidebarActionButtonClick()Observable<CommentSidebarCustomActionEventData | null>Subscribe to comment sidebar action-button clicks.
setCommentSidebarData(data: CommentSidebarData[], options?: CommentSidebarDataOptions)voidSet comment sidebar data.
onCommentSidebarInit()Observable<CommentSidebarCustomActionEventData | null>Subscribe to comment sidebar init.
onCommentSidebarData()Observable<CommentSidebarCustomActionEventData | null>Subscribe to comment sidebar data.
setCommentSidebarDefaultCustomActions(data: CommentSidebarCustomActionsState)voidSet default custom actions for the comment sidebar.
enableSidebarCustomActions()voidEnable sidebar custom actions.
disableSidebarCustomActions()voidDisable sidebar custom actions.
enableQueryParamsComments()voidEnable query-params comments.
disableQueryParamsComments()voidDisable query-params comments.
enableResolveStatusAccessAdminOnly()voidRestrict resolve-status access to admins only.
disableResolveStatusAccessAdminOnly()voidRemove the admin-only restriction on resolve-status access.
enableLinkCallback()voidEnable link callback.
disableLinkCallback()voidDisable link callback.
enableSeenByUsers()voidEnable seen-by users.
disableSeenByUsers()voidDisable seen-by users.
enableShortUserName()voidEnable short user name.
disableShortUserName()voidDisable short user name.
enableReadOnly()voidEnable read-only mode.
disableReadOnly()voidDisable read-only mode.
setAssignToType(config: AssignToConfig)voidSet the assign-to type.
enableContextInPageModeComposer()voidEnable context in the page-mode composer.
disableContextInPageModeComposer()voidDisable context in the page-mode composer.
clearPageModeComposerContext()voidClear the page-mode composer context.
setContextInPageModeComposer(config: PageModeComposerConfig | null)voidSet context in the page-mode composer.
focusPageModeComposer()voidFocus the page-mode composer.
addCommentAnnotation(addCommentAnnotationRequest: AddCommentAnnotationRequest)Promise<AddCommentAnnotationEvent | null>Add a comment annotation.
approveCommentAnnotation(approveCommentAnnotationRequest: ApproveCommentAnnotationRequest)Promise<ApproveCommentAnnotationEvent | null>Approve a comment annotation.
acceptCommentAnnotation(acceptCommentAnnotationRequest: AcceptCommentAnnotationRequest)Promise<AcceptCommentAnnotationEvent | null>Accept a comment annotation.
rejectCommentAnnotation(rejectCommentAnnotationRequest: RejectCommentAnnotationRequest)Promise<RejectCommentAnnotationEvent | null>Reject a comment annotation.
subscribeCommentAnnotation(subscribeCommentAnnotationRequest: SubscribeCommentAnnotationRequest)Promise<SubscribeCommentAnnotationEvent | null>Subscribe to a comment annotation.
unsubscribeCommentAnnotation(unsubscribeCommentAnnotationRequest: UnsubscribeCommentAnnotationRequest)Promise<UnsubscribeCommentAnnotationEvent | null>Unsubscribe from a comment annotation.
deleteCommentAnnotation(deleteCommentAnnotationRequest: DeleteCommentAnnotationRequest)Promise<DeleteCommentAnnotationEvent | null>Delete a comment annotation.
getCommentAnnotations(query?: CommentRequestQuery)Observable<GetCommentAnnotationsResponse>Get comment annotations matching a query.
getCommentAnnotationsCount(query?: CommentRequestQuery)Observable<GetCommentAnnotationsCountResponse>Get the count of comment annotations matching a query.
assignUser(assignUserRequest: AssignUserRequest)Promise<AssignUserEvent | null>Assign a user to a comment.
updatePriority(updatePriorityRequest: UpdatePriorityRequest)Promise<UpdatePriorityEvent | null>Update comment priority.
updateStatus(updateStatusRequest: UpdateStatusRequest)Promise<UpdateStatusEvent | null>Update comment status.
updateAccess(updateAccessRequest: UpdateAccessRequest)Promise<UpdateAccessEvent | null>(deprecated) Update comment access.
resolveCommentAnnotation(resolveCommentAnnotationRequest: ResolveCommentAnnotationRequest)Promise<any>Resolve a comment annotation.
getLink(getLinkRequest: GetLinkRequest)Promise<GetLinkResponse | null>Get a link to a comment.
copyLink(copyLinkRequest: CopyLinkRequest)Promise<CopyLinkEvent | null>Copy a link to a comment.
addComment(addCommentRequest: AddCommentRequest)Promise<AddCommentEvent | null>Add a comment (reply) to an annotation.
updateComment(updateCommentRequest: UpdateCommentRequest)Promise<UpdateCommentEvent | null>Update a comment.
deleteComment(deleteCommentRequest: DeleteCommentRequest)Promise<DeleteCommentEvent | null>Delete a comment.
getComment(getCommentRequest: GetCommentRequest)Promise<Comment[]>Get comments.
addAttachment(addAttachmentRequest: AddAttachmentRequest)Promise<AddAttachmentResponse[]>Add an attachment.
deleteAttachment(deleteAttachmentRequest: DeleteAttachmentRequest)Promise<DeleteAttachmentEvent | null>Delete an attachment.
getAttachment(getAttachmentRequest: GetAttachmentRequest)Promise<Attachment[]>Get attachments.
deleteRecording(deleteRecordingRequest: DeleteRecordingRequest)Promise<DeleteRecordingEvent | null>Delete a recording.
getRecording(getRecordingRequest: GetRecordingRequest)Promise<RecordedData[]>Get recordings.
addReaction(addReactionRequest: AddReactionRequest)Promise<AddReactionEvent | null>Add a reaction.
deleteReaction(deleteReactionRequest: DeleteReactionRequest)Promise<DeleteReactionEvent | null>Delete a reaction.
toggleReaction(toggleReactionRequest: ToggleReactionRequest)Promise<ToggleReactionEvent | null>Toggle a reaction.
enableCustomAutocompleteSearch()voidEnable custom autocomplete search.
disableCustomAutocompleteSearch()voidDisable custom autocomplete search.
fetchCommentAnnotations(fetchCommentAnnotationsRequest: FetchCommentAnnotationsRequest)Promise<FetchCommentAnnotationsResponse>Fetch comment annotations.
setTransformContext(transformContext: TransformContext | null)voidSet the transform context.
enableSvgAsImg()voidRender SVGs as images.
disableSvgAsImg()voidStop rendering SVGs as images.
enableFullExpanded()voidEnable full-expanded mode.
disableFullExpanded()voidDisable full-expanded mode.
enableCommentToNearestAllowedElement()voidEnable commenting on the nearest allowed element.
disableCommentToNearestAllowedElement()voidDisable commenting on the nearest allowed element.
enableDraftMode()voidEnable draft mode.
disableDraftMode()voidDisable draft mode.
enableFilterCommentsOnDom()voidEnable filtering comments on the DOM.
disableFilterCommentsOnDom()voidDisable filtering comments on the DOM.
enableReplyAvatars()voidEnable reply avatars.
disableReplyAvatars()voidDisable reply avatars.
setMaxReplyAvatars(maxReplyAvatars: number)voidSet the maximum number of reply avatars.
setSidebarButtonCountType(type: SidebarButtonCountType)voidSet the sidebar button count type.
enableFilterGhostCommentsInSidebar()voidEnable filtering ghost comments in the sidebar.
disableFilterGhostCommentsInSidebar()voidDisable filtering ghost comments in the sidebar.
enableFullScreenInSidebar()voidEnable full-screen in the sidebar.
disableFullScreenInSidebar()voidDisable full-screen in the sidebar.
setComposerFileAttachments(data: UploadFileData)voidSet composer file attachments.
setAllowedFileTypes(allowedFileTypes: string[])voidSet allowed file types for attachments.
enableForceCloseAllOnEsc()voidEnable force-close-all on Esc.
disableForceCloseAllOnEsc()voidDisable force-close-all on Esc.
markAsRead(annotationId: string)Promise<void>Mark an annotation as read.
markAsUnread(annotationId: string)Promise<void>Mark an annotation as unread.
enableScreenshot()voidEnable screenshot.
disableScreenshot()voidDisable screenshot.
enablePaginatedContactList()voidEnable paginated contact list.
disablePaginatedContactList()voidDisable paginated contact list.
enableFormatOptions()voidEnable text format options.
disableFormatOptions()voidDisable text format options.
setFormatConfig(config: FormatConfig)voidSet the text format config.
submitComment(request: SubmitCommentRequest)voidProgrammatically trigger comment submission for the composer with the given targetComposerElementId.
clearComposer(request: ClearComposerRequest)voidProgrammatically clear the composer state for the given targetComposerElementId.
on<T extends keyof CommentEventTypesMap>(action: T)Observable<CommentEventTypesMap[T]>Subscribe to a typed comment event by action name.
getComposerData(request: GetComposerDataRequest)ComposerTextChangeEvent | nullOne-time fetch of the current composer data for a given targetComposerElementId (same data as the COMPOSER_TEXT_CHANGE event), or null if not found.
Note: onCommentNavigationButtonClick exists in source but is commented out and not part of the public surface.

Cursor: client.getCursorElement()

Class: CursorElement.
MethodReturnsDescription
getLiveCursorsOnCurrentDocument()Observable<CursorUser[] | null>(deprecated: use getOnlineUsersOnCurrentDocument) Subscribe to cursors of all online users (active or inactive) on the current document.
getOnlineUsersOnCurrentDocument()Observable<CursorUser[] | null>Subscribe to cursors of all online users (active or inactive) on the current document.
setInactivityTime(time: number)voidSet inactivity time in milliseconds (default 2 minutes).
allowedElementIds(elementIds: string[])anyAllow cursors only in specific elements by id.

Presence: client.getPresenceElement()

Class: PresenceElement.
MethodReturnsDescription
enableFlockMode(options?: FlockOptions)anyEnable flock mode globally.
disableFlockMode()anyDisable flock mode globally.
startFollowingUser(userId: string, name: string)voidStart/join a flock session via leader user ID. (Impl _startFollowingUser(externalId) joins via the leader’s external/user ID.)
stopFollowingUser()voidExit the flock session.
getOnlineUsersOnCurrentDocument()Observable<PresenceUser[] | null>(deprecated: use getData) Subscribe to all online users (active or inactive) on the current document.
setInactivityTime(time: number)voidSet inactivity time in milliseconds (default 5 minutes).
enableSelf()voidAdd self to the presence list.
disableSelf()voidRemove self from the presence list.
getData(query?: PresenceRequestQuery)Observable<GetPresenceDataResponse>Get presence data (normalizes documentId/organizationId in the query).
on<T extends keyof PresenceEventTypesMap>(action: T)Observable<PresenceEventTypesMap[T]>Subscribe to presence actions/events.
addUser(request: { user: Partial<PresenceUser>, localOnly?: boolean })voidAdd a custom user (e.g. an AI agent) to the presence list. localOnly (default false) adds locally only, not persisted.
removeUser(request: { user: Partial<PresenceUser>, localOnly?: boolean })voidRemove a previously added custom user. localOnly (default false) removes locally only.

Huddle: client.getHuddleElement()

Class: HuddleElement.
MethodReturnsDescription
enableCursorMode()voidEnable huddle bubble on cursor.
disableCursorMode()voidDisable huddle bubble on cursor.
enableChat()voidEnable chat.
disableChat()voidDisable chat.
enableFlockModeOnAvatarClick()voidEnable flock mode on avatar click.
disableFlockModeOnAvatarClick()voidDisable flock mode on avatar click.

Recorder: client.getRecorderElement()

Class: RecorderElement.
MethodReturnsDescription
initRecording(type: string, panelId?: string)anyStart recording by type and optional panelId.
onRecordedData()Observable<RecordedData | null>(deprecated: use on('recordingDone')) Subscribe to recorded data when recording completes.
enableDarkMode()anyEnable dark mode.
disableDarkMode()anyDisable dark mode.
enableRecordingCountdown()voidEnable recording countdown.
disableRecordingCountdown()voidDisable recording countdown.
getRecordingDataByRecorderId(recorderId: string)Observable<RecorderData | null>(deprecated: use getRecordingData()) Get recording data by recorder id.
enableRecordingTranscription()voidEnable recording transcription.
disableRecordingTranscription()voidDisable recording transcription.
getRecordingData(query: RecorderRequestQuery)Promise<GetRecordingDataResponse>(deprecated: use fetchRecordings()) Get recording data by recorder ids.
enableVideoEditor()voidEnable video editor.
disableVideoEditor()voidDisable video editor.
getRecordings(query?: RecorderRequestQuery)Observable<GetRecordingsResponse[]>Get recordings by recorder ids (observable).
fetchRecordings(query?: RecorderRequestQuery)Promise<GetRecordingsResponse[]>Fetch recordings by recorder ids (promise).
deleteRecordings(query?: RecorderRequestQuery)Promise<DeleteRecordingsResponse[]>Delete recordings.
on<T extends keyof RecorderEventTypesMap>(action: T)Observable<RecorderEventTypesMap[T]>Subscribe to recorder actions/events.
setRecordingQualityConstraints(constraints: RecorderQualityConstraints)voidSet recording quality constraints.
setRecordingEncodingOptions(options: RecorderEncodingOptions)voidSet recording encoding options.
downloadLatestVideo(recorderId: string)Promise<boolean>Download the latest recorded video.
enableRecordingMic()voidEnable recording mic.
disableRecordingMic()voidDisable recording mic.
enableOnboardingTooltip()voidEnable onboarding tooltip.
disableOnboardingTooltip()voidDisable onboarding tooltip.
enableRetakeOnVideoEditor()voidEnable retake on video editor.
disableRetakeOnVideoEditor()voidDisable retake on video editor.
askDevicePermission(options: RecorderDevicePermissionOptions)voidAsk for device permission.
setMaxLength(seconds: number)voidSet max recording length in seconds.
openPictureInPicture()Promise<void>Open Picture-in-Picture mode for the video.
exitPictureInPicture()Promise<void>Exit Picture-in-Picture mode.
requestScreenPermission()Promise<MediaStream | null>Request screen-sharing permission and get the screen stream.
enablePictureInPicture()voidEnable Picture-in-Picture.
disablePictureInPicture()voidDisable Picture-in-Picture.
enablePlaybackOnPreviewClick()voidEnable playback on preview click.
disablePlaybackOnPreviewClick()voidDisable playback on preview click.

Notifications: client.getNotificationElement()

Class: NotificationElement.
MethodReturnsDescription
openHistoryPanel()anyOpen the notification history panel.
closeHistoryPanel()anyClose the notification history panel.
toggleHistoryPanel()anyToggle the notification history panel.
getNotificationsData(query?: GetNotificationsDataQuery)Observable<Notification[] | null>Get notifications data.
setMaxDays(days: number)voidSet max days for notification history.
setTabConfig(tabConfig: NotificationTabConfig)voidSet tab configuration.
enableReadNotificationsOnForYouTab()voidEnable read notifications on the For You tab.
disableReadNotificationsOnForYouTab()voidDisable read notifications on the For You tab.
setAllNotificationsAsRead(config?: { tabId: NotificationTabId })voidMark all notifications as read (optionally scoped to a tab).
getUnreadNotificationsCount()Observable<{ forYou: number | null, all: number | null }>Get unread notifications count.
markNotificationAsReadById(notificationId: string)voidMark a notification as read by id.
setSettings(config: NotificationSettingsConfig)voidSet notification settings.
getSettings()Observable<NotificationSettingsConfig | null>Get notification settings.
muteAllNotifications()voidMute all notifications.
enableSettings()voidEnable settings.
disableSettings()voidDisable settings.
enableSettingsAtOrganizationLevel()voidEnable settings at organization level.
disableSettingsAtOrganizationLevel()voidDisable settings at organization level.
enableSelfNotifications()voidEnable self notifications.
disableSelfNotifications()voidDisable self notifications.
setSettingsInitialConfig(settings: NotificationInitialSettingsConfig[])voidSet the initial settings config.
openNotificationsPanel()voidOpen the notifications panel.
closeNotificationsPanel()voidClose the notifications panel.
enableCurrentDocumentOnly()voidEnable current-document-only notifications.
disableCurrentDocumentOnly()voidDisable current-document-only notifications.
enableCrossOrganization(config?: CrossOrganizationConfig | null)voidOpt in to cross-organization “For You” notifications (merges other orgs into the feed).
disableCrossOrganization()voidOpt out of cross-organization “For You” notifications.
on<T extends keyof NotificationEventTypesMap>(action: T)Observable<NotificationEventTypesMap[T]>Subscribe to notification actions/events.

Reactions: client.getReactionElement()

Class: ReactionElement.
MethodReturnsDescription
enableDarkMode()anyEnable dark mode in reactions.
disableDarkMode()anyDisable dark mode in reactions.
setCustomReactions(reactions: ReactionMap)voidSet custom reactions.

Activity Log: client.getActivityElement()

Class: ActivityElement.
MethodReturnsDescription
getAllActivities(config?: ActivitySubscribeConfig)Observable<ActivityRecord[] | null>Subscribe to activities with optional filtering; auto-cleans up the internal subscription on unsubscribe.
createActivity(data: CreateActivityData)Promise<void>Create a new activity record.

Area: client.getAreaElement()

Class: AreaElement.
MethodReturnsDescription
enableArea()void(deprecated: use enableAreaComment) Enable area feature.
disableArea()void(deprecated: use disableAreaComment) Disable area feature.
enableAreaComment()voidEnable area feature.
disableAreaComment()voidDisable area feature.

Arrow: client.getArrowElement()

Class: ArrowElement.
MethodReturnsDescription
allowedElementIds(elementIds: string[])anyAllow arrows only in specific elements by id.

Autocomplete: client.getAutocompleteElement()

Class: AutocompleteElement.
MethodReturnsDescription
create(data: AutocompleteData)voidSet autocomplete data.
onAutocompleteChipClick()Observable<AutocompleteChipData>Callback on autocomplete chip click.

Tag: client.getTagElement()

Class: TagElement.
MethodReturnsDescription
getAllTagAnnotations(documentId?: string, documentParams?: object)Observable<TagAnnotation[] | null>Subscribe to tags on the current document.
deleteTag()anyDelete selected tags.
allowedElementIds(elementIds: string[])anyAllow text selection only in specific elements by id.
attachTag(elementId: string)anyAdd tags on specific elements.
addTagModeChange()Observable<boolean>Subscribe to add-tag-mode change.

Contact: client.getContactElement()

Class: ContactElement.
MethodReturnsDescription
isUserGlobalContact()Observable<boolean>Get whether the user is part of the global contact list.
onContactSelected()Observable<SelectedUserContact | null>Get selected contact details.
enableAtHere()voidEnable @here for the contact list.
setAtHereLabel(label: string)voidSet the @here label.
setAtHereDescription(description: string)voidSet the @here description.
disableAtHere()voidDisable @here for the contact list.
updateContactListScopeForOrganizationUsers(scope: ContactListScopeForOrganizationUsers[])voidUpdate contact list scope for organization users.
updateContactList(userContacts: UserContact[], config?: { merge: boolean, options?: any })voidUpdate the contact list.
updateOrgList(config: UpdateOrgListConfig)voidUpdate the list of orgs/teams offered by the “Selected Teams” visibility picker.
getContactList()Observable<GetContactListResponse | null>Get the contact list.

Selection: client.getSelectionElement()

Class: SelectionElement.
MethodReturnsDescription
enableLiveSelection()voidEnable selections.
disableLiveSelection()voidDisable selections.
enableUserIndicator()voidEnable user indicator.
disableUserIndicator()voidDisable user indicator.
setUserIndicatorPosition(position: UserIndicatorPosition)voidSet user indicator position.
setUserIndicatorType(type: UserIndicatorType)voidSet user indicator type.
enableDefaultElementsTracking()voidEnable default elements tracking.
disableDefaultElementsTracking()voidDisable default elements tracking.
enableDefaultStyling()voidEnable default styling.
disableDefaultStyling()voidDisable default styling.
getLiveSelectionData()Observable<LiveSelectionData | null>Get live selection data.
setInactivityTime(time: number)voidSet inactivity time in milliseconds (default 5 minutes).

CRDT: client.getCrdtElement()

Class: CrdtElement.
MethodReturnsDescription
updateData(updateDataQuery: CrdtUpdateDataQuery)Promise<any>Update CRDT data.
onDataChange(onDataChangeQuery: CrdtOnDataChangeQuery)() => voidSubscribe to CRDT data changes; returns an unsubscribe function.
getData(getDataQuery: CrdtGetDataQuery)Promise<any>Get CRDT data.
onStateChange(onStateChangeQuery: CrdtOnStateChangeQuery)() => voidSubscribe to CRDT state changes; returns an unsubscribe function.
updateState(updateStateQuery: CrdtUpdateStateQuery)Promise<any>Update CRDT state.
registerSyncUser(registerSyncUserQuery: CrdtRegisterSyncUserQuery)Promise<void>Register a sync user.
onRegisteredUserChange(onRegisteredUserChangeQuery: CrdtOnRegisteredUserChangeQuery)() => voidSubscribe to registered-user changes; returns an unsubscribe function.
setPresence(setPresenceQuery: CrdtSetPresenceQuery)Promise<void>Set presence.
onPresenceChange(onPresenceChangeQuery: CrdtOnPresenceChangeQuery)() => voidSubscribe to presence changes; returns an unsubscribe function.
saveVersion(saveVersionQuery: CrdtSaveVersionQuery)Promise<any>Save a version.
getVersion(getVersionQuery: CrdtGetVersionQuery)Promise<any>Get a version.
getVersions(getVersionsQuery: CrdtGetVersionsQuery)Promise<any>Get versions.
enableWebhook()voidEnable webhook.
disableWebhook()voidDisable webhook.
setWebhookDebounceTime(time: number)voidSet webhook debounce time in milliseconds (default 5 seconds).
pushMessage(pushMessageQuery: CrdtPushMessageQuery)Promise<void>Push a lib0-encoded message to the unified message stream (sync + awareness).
onMessage(onMessageQuery: CrdtOnMessageQuery)() => voidSubscribe to the unified message stream; emits each new message as it arrives. Returns an unsubscribe function.
getMessages(getMessagesQuery: CrdtGetMessagesQuery)Promise<CrdtMessageData[]>Fetch all messages after a given timestamp (one-time read for replay).
getSnapshot(getSnapshotQuery: CrdtGetSnapshotQuery)Promise<CrdtSnapshotData | null>Get the latest full-state snapshot for a document.
saveSnapshot(saveSnapshotQuery: CrdtSaveSnapshotQuery)Promise<void>Save a full-state snapshot (state + vector) for fast initial load.
pruneMessages(pruneMessagesQuery: CrdtPruneMessagesQuery)Promise<void>Remove messages older than a given timestamp from the message stream.
setActivityDebounceTime(time: number)voidSet activity debounce time for batching CRDT edits in milliseconds (default 10 min, minimum 10 sec).
on<T extends keyof CrdtEventTypesMap>(action: T)Observable<CrdtEventTypesMap[T]>Subscribe to CRDT actions/events.

Live State Sync / Store: client.getLiveStateSyncElement() / client.getStoreElement()

Class: LiveStateSyncElement.
MethodReturnsDescription
getLiveStateData$<T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig)Observable<T>(deprecated: use getLiveStateData) Get live state data.
getLiveStateData<T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig)Observable<T>Get live state data.
fetchLiveStateData<T = unknown>(request?: FetchLiveStateDataRequest)Promise<T>Fetch live state data.
setLiveStateData<T = unknown>(liveStateDataId: string, liveStateData: T, config?: SetLiveStateDataConfig)Promise<void>Set live state data.
enableSingleEditorMode(config?: SingleEditorConfig)voidEnable single editor mode.
disableSingleEditorMode()voidDisable single editor mode.
isUserEditor$()Observable<UserEditorAccess | null | undefined>(deprecated: use isUserEditor) Check if the user is editor.
isUserEditor()Observable<UserEditorAccess | null | undefined>Check if the user is editor.
getEditor()Observable<User | null>Get the editor.
setUserAsEditor()Promise<SetUserAsEditorResponse | void>Set the current user as editor.
resetUserAccess()voidReset user editor access in single editor mode.
singleEditorModeContainerIds(elementIds: string[])voidDisable elements inside specific elements only when single editor mode is on.
enableAutoSyncState()voidEnable auto sync state.
disableAutoSyncState()voidDisable auto sync state.
requestEditorAccess()Observable<boolean | null>Request editor access.
isEditorAccessRequested()Observable<{ requestStatus: string, requestedBy: User } | null>Check if editor access is requested.
acceptEditorAccessRequest()voidAccept an editor-access request.
rejectEditorAccessRequest()voidReject an editor-access request.
cancelEditorAccessRequest()voidCancel an editor-access request.
editCurrentTab()voidEdit the current tab.
setEditorAccessTimeout(timeout: number)voidSet the editor-access timeout.
enableEditorAccessTransferOnTimeOut()voidEnable editor-access transfer on timeout.
disableEditorAccessTransferOnTimeOut()voidDisable editor-access transfer on timeout.
enableDefaultSingleEditorUI()voidEnable the default single-editor UI.
disableDefaultSingleEditorUI()voidDisable the default single-editor UI.
getEditorAccessTimer()Observable<EditorAccessTimer>Get the editor-access timer.
onServerConnectionStateChange()Observable<ServerConnectionState>Get the server connection state.
updateUserPresence(userPresence: LiveStateSingleEditorExternalUserPresence)voidUpdate external user presence.
enableHeartbeat()voidEnable heartbeat.
disableHeartbeat()voidDisable heartbeat.
on<T extends keyof LiveStateEventTypesMap>(action: T)Observable<LiveStateEventTypesMap[T]>Subscribe to live state events.

Doc: client.getDocElement()

Class: DocElement.
MethodReturnsDescription
getDocumentMetadata()Observable<DocumentMetadata | null>Get document metadata.

Rewriter: client.getRewriterElement()

Class: RewriterElement.
MethodReturnsDescription
enableRewriter()voidEnable the rewriter feature.
disableRewriter()voidDisable the rewriter feature.
enableDefaultUI()voidEnable the default rewriter UI on text selection.
disableDefaultUI()voidDisable the default rewriter UI on text selection.
on<T extends keyof RewriterEventTypesMap>(action: T)Observable<RewriterEventTypesMap[T]>Subscribe to rewriter events.
askAi(request: RewriterAskAiRequest)Promise<RewriterAskAiResponse>Call AI with the currently selected text.
replaceText(request: RewriterReplaceTextRequest)Promise<RewriterReplaceTextResponse>Replace the selected text in the DOM with the given text.
addComment(request: RewriterAddCommentRequest)Promise<RewriterAddCommentResponse>Add a comment annotation on the selected text.

Suggestion: client.getSuggestionElement()

Class: SuggestionElement.
MethodReturnsDescription
enableSuggestionMode(config?: EnableSuggestionModeConfig)voidTurn on suggestion mode.
disableSuggestionMode()voidTurn off suggestion mode.
isSuggestionModeEnabled()booleanSynchronous read of the suggestion-mode flag.
isSuggestionModeEnabled$()Observable<boolean>Reactive suggestion-mode stream.
registerTarget<T = unknown>(config: RegisterTargetConfig<T>)voidRegister a complex-object getter for a target.
unregisterTarget(targetId: string)voidDrop the registered getter for a target.
startSuggestion(targetId: string)voidManually capture the current value as the snapshot for a target.
commitSuggestion<T = unknown>(config: CommitSuggestionConfig<T>)Promise<{ id: string }>Commit a suggestion.
getSuggestions(filter?: SuggestionGetSuggestionsFilter)Suggestion[]Synchronous read of all suggestions on the current document.
getSuggestions$(filter?: SuggestionGetSuggestionsFilter)Observable<Suggestion[]>Reactive variant of getSuggestions.
getPendingSuggestion<T = unknown>(targetId: string)Suggestion<T> | nullNewest pending suggestion for a target, or null.
getPendingSuggestion$<T = unknown>(targetId: string)Observable<Suggestion<T> | null>Reactive variant of getPendingSuggestion.
on<T extends SuggestionEventType>(action: T)Observable<SuggestionEventTypesMap[T]>Subscribe to a suggestion event.

Views: client.getViewsElement()

Class: ViewsElement.
MethodReturnsDescription
getUniqueViewsByUser(clientLocationId?: string)Observable<ViewsByUser>Get unique views by user.
getUniqueViewsByDate(clientLocationId?: string)Observable<ViewsByDate>Get unique views by date.

Injector (base): client.getInjectorElement()

Class: InjectorElement: the base class all feature elements extend. It exposes a single public method (the rest are protected).
MethodReturnsDescription
ha(hideAnalytics: boolean)(none declared)Set the hideAnalytics flag (suppresses analytics tracking).