Re-exportsยง
use futures::TryStreamExt;๐use futures::future::join3;๐use futures::future::try_join;๐use ruma::EventId;๐use ruma::Int;๐use ruma::OwnedUserId;๐use ruma::api::error::ErrorKind::InvalidParam;๐use ruma::events::StateEventType;๐use ruma::events::TimelineEventType;๐use ruma::events::room::member::MembershipState;๐use ruma::events::room::power_levels::UserPowerLevel;๐use ruma::room_version_rules::AuthorizationRules;๐use ruma::room_version_rules::RoomVersionRules;๐use tuwunel_core::Err;๐use tuwunel_core::Error;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::trace;๐use tuwunel_core::utils::stream::IterStream;๐use tuwunel_core::utils::stream::TryReadyExt;๐pub use self::auth_types::AuthTypes;pub use self::auth_types::auth_types_for_event;use self::room_member::check_room_member;๐use super::FetchEvent;๐use super::FetchState;๐use super::TypeStateKey;๐use super::events;๐use super::events::RoomCreateEvent;๐use super::events::RoomMemberEvent;๐use super::events::RoomPowerLevelsEvent;๐use super::events::power_levels;๐use super::events::power_levels::RoomPowerLevelsEventOptionExt;๐use super::events::power_levels::RoomPowerLevelsIntField;๐use crate::Event;๐use crate::PduEvent;๐
Modulesยง
- auth_
types ๐ - room_
member ๐
Enumsยง
- Auth
Check Outcome - Describes a completed event authorization decision.
Functionsยง
- auth_
check - Checks an event against its state-independent and state-dependent rules.
- auth_
check_ ๐outcome - auth_
input_ ๐error - check_
power_ ๐level_ maps - Check the power levels changes between the current and the new maps.
- check_
room_ ๐create - Check whether the given event passes the
m.room.createauthorization rules. - check_
room_ ๐power_ levels - Check whether the given event passes the
m.room.power_levelsauthorization rules. - check_
room_ ๐redaction - Check whether the given event passes the
m.room.redactionauthorization rules. - check_
state_ ๐dependent_ auth_ rules - Check whether the incoming event passes the state-dependent authorization rules for the given room version rules.
- check_
state_ ๐independent_ auth_ rules - Check whether the incoming event passes the state-independent authorization rules for the given room version rules.
- classify_
auth_ ๐error