ViewerService
Chatto exposes this service below /api/connect.
Shared message and enum definitions are documented in Shared Types And Enums.
ViewerService
Section titled “ViewerService”Provides authenticated user profile, preferences, and capability state.
GetViewer
Section titled “GetViewer”Returns the current authenticated viewer. This RPC requires a logged-in user; unauthenticated callers receive an UNAUTHENTICATED error.
POST /api/connect/chatto.api.v1.ViewerService/GetViewerInput: GetViewerRequest
Section titled “Input: GetViewerRequest”Request for the authenticated viewer snapshot.
Result: GetViewerResponse
Section titled “Result: GetViewerResponse”Authenticated viewer snapshot needed by application shells.
| Field | Type | Description |
|---|---|---|
user | ViewerUser | Current authenticated user. |
capabilities | ViewerCapabilities | Permission-derived capabilities. |
server_notification_preference | NotificationPreference | Server-wide notification preference. |
room_notification_preferences | repeated RoomNotificationPreference | Notification preferences for rooms the user participates in. |
viewer_permissions | ServerViewerPermissions | Effective server/channel permission decisions for the authenticated user. |
viewer_state | ServerViewerState | Non-permission server state for the authenticated user. |