Skip to content

ChatUserClient

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:38

Calls the Chat API as the signed-in user, inside one tenant application — the user-facing half of an embedded Chat integration. The tenant’s backend (with @central-code-station/ccs-chat-client) decides who may talk to whom and creates those conversations; this client lists them, reads and sends messages, reacts, marks read, signals typing and reports presence. Live updates come from @central-code-station/ccs-chat-notifications-client.

Chat checks every call against the user’s permissions in this context and their conversation membership; a token issued to your application’s client works only in your application.

new ChatUserClient(options): ChatUserClient

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:52

ChatUserClientOptions

ChatUserClient

readonly tenantId: string

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:39


readonly applicationId: string

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:40


readonly conversations: ConversationsResource

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:41


readonly messages: MessagesResource

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:42


readonly users: UsersResource

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:43


readonly presence: PresenceResource

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:44

me(): Promise<ChatUserProfile>

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:83

The signed-in user’s Chat profile (cached for the life of this client).

Promise<ChatUserProfile>


capabilities(): Promise<ChatCapabilities>

Defined in: libs/ccs-chat-user-client/src/chat-user-client.ts:92

The user’s Chat permissions in this tenant application — use them to show or hide controls.

Promise<ChatCapabilities>