users
Classes
UpdateProfileForm
Bases: BaseModel
Form for updating a user's profile information.
Note: This form is primarily used by the Auths router for profile updates, not by the Users router.
- Code Reference routers auths Classes AuthsClient Functions update_profile
Attributes
UserSettings
Bases: BaseModel
User settings configuration.
This model stores various user preferences, primarily related to the UI. It allows extra fields to accommodate future settings without strict schema changes.
- Code Reference
- Code Reference routers users Classes UsersClient Functions update_user_settings
Attributes
ui
Dictionary containing UI-specific settings and preferences.
Dict Fields
pinnedModels(list[str], optional): List of model IDs pinned to the sidebartoolServers(list[dict], optional): List of tool server configurationsdetectArtifacts(bool, optional): Enable artifact detection in responsesshowUpdateToast(bool, optional): Show update notification toastsshowChangelog(bool, optional): Show changelog notificationsshowEmojiInCall(bool, optional): Show emoji during call interactionsvoiceInterruption(bool, optional): Allow voice interruption during callscollapseCodeBlocks(bool, optional): Collapse code blocks by defaultexpandDetails(bool, optional): Expand detail sections by defaultnotificationSound(bool, optional): Enable notification soundsnotificationSoundAlways(bool, optional): Always play notification soundsstylizedPdfExport(bool, optional): Use stylized PDF export formatnotifications(dict, optional): Notification configurationimageCompression(bool, optional): Enable image compressionimageCompressionSize(any, optional): Image compression size settingstextScale(number, optional): Text scaling factorwidescreenMode(null, optional): Widescreen mode settinglargeTextAsFile(bool, optional): Treat large text as file attachmentspromptAutocomplete(bool, optional): Enable prompt autocompletehapticFeedback(bool, optional): Enable haptic feedbackresponseAutoCopy(any, optional): Auto-copy response settingsrichTextInput(bool, optional): Enable rich text inputparams(any, optional): Additional UI parametersuserLocation(any, optional): User location settingswebSearch(any, optional): Web search configurationmemory(bool, optional): Enable memory featuresautoTags(bool, optional): Enable automatic taggingautoFollowUps(bool, optional): Enable automatic follow-upsbackgroundImageUrl(null, optional): Background image URLlandingPageMode(str, optional): Landing page display modeiframeSandboxAllowForms(bool, optional): Allow forms in iframe sandboxiframeSandboxAllowSameOrigin(bool, optional): Allow same-origin in iframe sandboxscrollOnBranchChange(bool, optional): Scroll on branch changedirectConnections(null, optional): Direct connections settingchatBubble(bool, optional): Show chat bubble interfacecopyFormatted(bool, optional): Copy formatted textmodels(list[str], optional): List of available model IDsconversationMode(bool, optional): Enable conversation modespeechAutoSend(bool, optional): Auto-send speech inputresponseAutoPlayback(bool, optional): Auto-playback responsesaudio(AudioSettings, optional): Audio settings configurationshowUsername(bool, optional): Show username in UInotificationEnabled(bool, optional): Enable notificationshighContrastMode(bool, optional): Enable high contrast modetitle(TitleSettings, optional): Title settings configurationshowChatTitleInTab(bool, optional): Show chat title in browser tabsplitLargeDeltas(bool, optional): Split large delta updateschatDirection(str, optional): Chat direction ('LTR', 'RTL', 'auto')ctrlEnterToSend(bool, optional): Use Ctrl+Enter to send messagessystem(str, optional): System configurationseed(number, optional): Random seed valuetemperature(str, optional): Temperature settingrepeat_penalty(str, optional): Repeat penalty valuetop_k(str, optional): Top-k sampling valuetop_p(str, optional): Top-p sampling valuenum_ctx(str, optional): Context window sizenum_batch(str, optional): Batch sizenum_keep(str, optional): Number of tokens to keepoptions(ModelOptions, optional): Model-specific options
The notifications field contains:
- webhook_url (str, optional): Webhook URL for notifications
UserModel
Bases: BaseModel
Represents a user in the system.
This is the main user model containing profile information, status, settings, and system metadata.
Attributes
profile_banner_image_url
URL to the user's profile banner image.
presence_state
Current presence state (e.g., 'online', 'idle').
status_message
Text message representing the user's current status.
status_expires_at
Timestamp when the status message expires.
info
Additional user information dictionary.
Dict Fields
location(str, optional): User's location information, used for geolocation features and template variable replacement (e.g., {{USER_LOCATION}} in prompts)- Additional arbitrary key-value pairs may be stored as needed. This field is a flexible JSON storage that can contain any user-specific metadata.
oauth
OAuth provider data.
Dict Fields
google(dict, optional): Google OAuth provider datagithub(dict, optional): GitHub OAuth provider datamicrosoft(dict, optional): Microsoft OAuth provider dataoidc(dict, optional): OpenID Connect OAuth provider datafeishu(dict, optional): Feishu OAuth provider data
Each provider dictionary contains
sub(str, required): Subject identifier from the OAuth provider
UserGroupIdsModel
Bases: UserModel
User model with associated group IDs.
- Code Reference models users Classes UserGroupIdsListResponse Attributes users
UserGroupIdsListResponse
Bases: BaseModel
Response model for listing users with their group IDs.
- Code Reference routers users Classes UsersClient Functions get_users
Attributes
UserModelResponse
Bases: UserModel
User model response that allows extra fields.
- Code Reference models users Classes UserListResponse Attributes users
UserListResponse
Bases: BaseModel
Response model for listing users.
- Code Reference routers channels Classes ChannelsClient Functions get_members
Attributes
UserStatus
Bases: BaseModel
User status information.
- Code Reference models
- Code Reference routers users Classes UsersClient Functions update_user_status
UserInfoResponse
UserInfoListResponse
Bases: BaseModel
Response model for listing abbreviated user info.
- Code Reference routers users Classes UsersClient Functions get_all_users
Attributes
ActiveUsersResponse
UserActiveResponse
Bases: UserStatus
User response including active status.
- Code Reference routers users Classes UsersClient Functions get_user_by_id
UserIdNameResponse
Bases: BaseModel
Minimal user response with ID and name.
- Code Reference models users Classes UserIdNameListResponse Attributes users
UserIdNameStatusResponse
Bases: UserStatus
User response with ID, name, and active status.
UserIdNameListResponse
Bases: BaseModel
Response model for listing users with ID and name.
- Code Reference routers users Classes UsersClient Functions search_users
Attributes
UserNameResponse
Bases: BaseModel
User response with ID, name, and role.
- Code Reference models messages Classes MessageUserResponse Attributes user
UserProfileImageResponse
Bases: UserNameResponse
User response with profile image URL.
- Code Reference routers auths Classes AuthsClient Functions update_profile
WorkspacePermissions
Bases: BaseModel
Permissions related to workspace features.
- Code Reference models users Classes UserPermissions Attributes workspace
Attributes
SharingPermissions
Bases: BaseModel
Permissions related to sharing features.
- Code Reference models users Classes UserPermissions Attributes sharing
Attributes
ChatPermissions
Bases: BaseModel
Permissions related to chat functionality.
- Code Reference models users Classes UserPermissions Attributes chat
Attributes
FeaturesPermissions
Bases: BaseModel
Permissions related to general features.
- Code Reference models users Classes UserPermissions Attributes features
Attributes
UserPermissions
Bases: BaseModel
Comprehensive user permissions.
This model represents the structure of permissions returned by the system. It is used for default permissions configuration and user-specific permission checks.
- Code Reference routers users Classes UsersClient Functions
- Code Reference routers users Classes UsersClient Functions update_default_user_permissions
Attributes
UserResponse
UserUpdateForm
Bases: BaseModel
Form for updating a user.
- Code Reference routers users Classes UsersClient Functions update_user_by_id