# Functions
ActionsToTweaks converts a list of actions into a primary action kind and a tweaks map.
BoolTweakOr returns the named tweak as a boolean, and returns `def` on failure.
DefaultAccountRuleSets is the complete set of default push rules for an account.
DefaultGlobalRuleSet returns the default ruleset for a given (fully qualified) MXID.
NewRuleSetEvaluator creates a new evaluator for the given rule set.
ValidateRule checks the rule for errors.
# Constants
CoalesceAction tells the clients to show a notification, and tells both servers and clients that multiple events can be coalesced into a single notification.
ContainsDisplayNameCondition indicates the current user's display name must be found in the content body.
No description provided by the author
DontNotifyAction indicates the clients should not show a notification.
EventMatchCondition indicates the condition looks for a key path and matches a pattern.
No description provided by the author
HighlightTweak asks the clients to highlight the conversation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NotifyAction indicates the clients should show a notification.
No description provided by the author
No description provided by the author
RoomMemberCountCondition matches a simple arithmetic comparison against the total number of members in a room.
No description provided by the author
SenderNotificationPermissionCondition compares power level for the sender in the event's room.
SetTweakAction uses the Tweak and Value fields to add a tweak.
SoundTweak describes which sound to play.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
An AccountRuleSets carries the rule sets associated with an account.
An Action is (part of) an outcome of a rule.
A Condition dictates extra conditions for a matching rules.
A Rule contains matchers, conditions and final actions.
A RuleSet contains all the various push rules for an account.
A RuleSetEvaluator encapsulates context to evaluate an event against a rule set.
# Interfaces
An EvaluationContext gives a RuleSetEvaluator access to the environment, for rules that require that.
# Type aliases
ActionKind is the primary discriminator for actions.
ConditionKind represents a kind of condition.
Kind is the type of push rule.
Scope only has one valid value.
A TweakKey describes a property to be modified/tweaked for events that match the rule.