roboto.domain.users.operations#

Module Contents#

class roboto.domain.users.operations.CreateUserRequest(/, **data)#

Bases: pydantic.BaseModel

Request payload to create a new user.

Parameters:

data (Any)

default_notification_channels: list[roboto.notifications.NotificationChannel] | None#

Default notification channels to enable for the user.

default_notification_types: list[roboto.notifications.NotificationType] | None#

Default notification types to enable for the user.

is_service_user: bool = False#

Whether this is a service user for automated operations.

is_system_user: bool = False#

Whether this is a system user for internal platform operations.

name: str | None = None#

Human-readable display name for the user.

picture_url: str | None = None#

URL to the user’s profile picture.

user_id: str#

Unique identifier for the user, typically an email address.

class roboto.domain.users.operations.UpdateUserRequest(/, **data)#

Bases: pydantic.BaseModel

Request payload to update an existing user.

Parameters:

data (Any)

name: str | None = None#

Updated display name for the user.

notification_channels_enabled: dict[roboto.notifications.NotificationChannel, bool] | None = None#

Updated notification channel preferences.

notification_types_enabled: dict[roboto.notifications.NotificationType, bool] | None = None#

Updated notification type preferences.

picture_url: str | None = None#

Updated URL to the user’s profile picture.