Reads and mutates the server-admin room layout.
Summary
Functions
Creates a room group. Requires server-scope room.manage.
Creates a sidebar link. Requires room.manage in the destination group.
Deletes an empty room group. Requires effective room.manage for the group.
Deletes a sidebar link. Requires room.manage in the link's current group.
Gets management-authorized channel room metadata. Requires role.manage or effective room.manage for the room.
Gets management-authorized room group metadata. Requires role.manage or effective room.manage for the group.
Lists the editable room group layout. Requires server-scope room.manage and includes archived rooms for administrative actions such as unarchiving.
Moves one room group before another group, or to the end. Requires server-scope room.manage.
Moves a channel room to another room group. Requires room.manage in both source and destination groups.
Moves one room or sidebar link to a position in a room group. Requires room.manage in the source and destination groups.
Moves a sidebar link to another group. Requires room.manage in both source and destination groups.
Replaces the global room group order. Requires server-scope room.manage.
Replaces the mixed room/link sidebar order in one group. Requires room.manage in that group.
Updates a room group's metadata. Requires effective room.manage for the group.
Updates a sidebar link. Requires room.manage in the link's current group.
Functions
@spec create_room_group(Req.Request.t(), Chatto.Admin.V1.CreateRoomGroupRequest.t()) :: {:ok, Chatto.Admin.V1.CreateRoomGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Creates a room group. Requires server-scope room.manage.
@spec create_sidebar_link( Req.Request.t(), Chatto.Admin.V1.CreateSidebarLinkRequest.t() ) :: {:ok, Chatto.Admin.V1.CreateSidebarLinkResponse.t()} | {:error, Chatto.Connect.Error.t()}
Creates a sidebar link. Requires room.manage in the destination group.
@spec delete_room_group(Req.Request.t(), Chatto.Admin.V1.DeleteRoomGroupRequest.t()) :: {:ok, Chatto.Admin.V1.DeleteRoomGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Deletes an empty room group. Requires effective room.manage for the group.
@spec delete_sidebar_link( Req.Request.t(), Chatto.Admin.V1.DeleteSidebarLinkRequest.t() ) :: {:ok, Chatto.Admin.V1.DeleteSidebarLinkResponse.t()} | {:error, Chatto.Connect.Error.t()}
Deletes a sidebar link. Requires room.manage in the link's current group.
@spec get_room(Req.Request.t(), Chatto.Admin.V1.GetRoomRequest.t()) :: {:ok, Chatto.Admin.V1.GetRoomResponse.t()} | {:error, Chatto.Connect.Error.t()}
Gets management-authorized channel room metadata. Requires role.manage or effective room.manage for the room.
@spec get_room_group(Req.Request.t(), Chatto.Admin.V1.GetRoomGroupRequest.t()) :: {:ok, Chatto.Admin.V1.GetRoomGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Gets management-authorized room group metadata. Requires role.manage or effective room.manage for the group.
@spec list_room_groups(Req.Request.t(), Chatto.Admin.V1.ListRoomGroupsRequest.t()) :: {:ok, Chatto.Admin.V1.ListRoomGroupsResponse.t()} | {:error, Chatto.Connect.Error.t()}
Lists the editable room group layout. Requires server-scope room.manage and includes archived rooms for administrative actions such as unarchiving.
@spec move_room_group(Req.Request.t(), Chatto.Admin.V1.MoveRoomGroupRequest.t()) :: {:ok, Chatto.Admin.V1.MoveRoomGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Moves one room group before another group, or to the end. Requires server-scope room.manage.
@spec move_room_to_group(Req.Request.t(), Chatto.Admin.V1.MoveRoomToGroupRequest.t()) :: {:ok, Chatto.Admin.V1.MoveRoomToGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Moves a channel room to another room group. Requires room.manage in both source and destination groups.
@spec move_sidebar_item(Req.Request.t(), Chatto.Admin.V1.MoveSidebarItemRequest.t()) :: {:ok, Chatto.Admin.V1.MoveSidebarItemResponse.t()} | {:error, Chatto.Connect.Error.t()}
Moves one room or sidebar link to a position in a room group. Requires room.manage in the source and destination groups.
@spec move_sidebar_link_to_group( Req.Request.t(), Chatto.Admin.V1.MoveSidebarLinkToGroupRequest.t() ) :: {:ok, Chatto.Admin.V1.MoveSidebarLinkToGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Moves a sidebar link to another group. Requires room.manage in both source and destination groups.
@spec reorder_room_groups( Req.Request.t(), Chatto.Admin.V1.ReorderRoomGroupsRequest.t() ) :: {:ok, Chatto.Admin.V1.ReorderRoomGroupsResponse.t()} | {:error, Chatto.Connect.Error.t()}
Replaces the global room group order. Requires server-scope room.manage.
@spec reorder_sidebar_items_in_group( Req.Request.t(), Chatto.Admin.V1.ReorderSidebarItemsInGroupRequest.t() ) :: {:ok, Chatto.Admin.V1.ReorderSidebarItemsInGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Replaces the mixed room/link sidebar order in one group. Requires room.manage in that group.
@spec update_room_group(Req.Request.t(), Chatto.Admin.V1.UpdateRoomGroupRequest.t()) :: {:ok, Chatto.Admin.V1.UpdateRoomGroupResponse.t()} | {:error, Chatto.Connect.Error.t()}
Updates a room group's metadata. Requires effective room.manage for the group.
@spec update_sidebar_link( Req.Request.t(), Chatto.Admin.V1.UpdateSidebarLinkRequest.t() ) :: {:ok, Chatto.Admin.V1.UpdateSidebarLinkResponse.t()} | {:error, Chatto.Connect.Error.t()}
Updates a sidebar link. Requires room.manage in the link's current group.