fmn.rules.notification module

class fmn.rules.notification.EmailNotification(*, protocol: Literal['email'], content: EmailNotificationContent)[source]

Bases: FrozenModel

content: EmailNotificationContent
protocol: Literal['email']
class fmn.rules.notification.EmailNotificationContent(*, headers: EmailNotificationHeaders, body: str)[source]

Bases: FrozenModel

body: str
headers: EmailNotificationHeaders
class fmn.rules.notification.EmailNotificationHeaders(*, To: str, Subject: str)[source]

Bases: FrozenModel

Subject: str
To: str
class fmn.rules.notification.FrozenModel[source]

Bases: BaseModel

class Config[source]

Bases: object

frozen = True
class fmn.rules.notification.IRCNotification(*, protocol: Literal['irc'], content: IRCNotificationContent)[source]

Bases: FrozenModel

content: IRCNotificationContent
protocol: Literal['irc']
class fmn.rules.notification.IRCNotificationContent(*, to: str, message: str)[source]

Bases: FrozenModel

message: str
to: str
class fmn.rules.notification.MatrixNotification(*, protocol: Literal['matrix'], content: MatrixNotificationContent)[source]

Bases: FrozenModel

content: MatrixNotificationContent
protocol: Literal['matrix']
class fmn.rules.notification.MatrixNotificationContent(*, to: str, message: str)[source]

Bases: FrozenModel

message: str
to: str
class fmn.rules.notification.Notification(*, __root__: EmailNotification | IRCNotification | MatrixNotification)[source]

Bases: FrozenModel