matteridge.events

Module Contents

Classes

Functions

Attributes

matteridge.events.ChannelType[source]
matteridge.events.StatusType[source]
class matteridge.events.Post[source]

Bases: mattermost_api_reference_client.models.Post

Attributes:

id (Union[Unset, str]): create_at (Union[Unset, int]): The time in milliseconds a post was created update_at (Union[Unset, int]): The time in milliseconds a post was last updated delete_at (Union[Unset, int]): The time in milliseconds a post was deleted edit_at (Union[Unset, int]): user_id (Union[Unset, str]): channel_id (Union[Unset, str]): root_id (Union[Unset, str]): original_id (Union[Unset, str]): message (Union[Unset, str]): type (Union[Unset, str]): props (Union[Unset, PostProps]): hashtag (Union[Unset, str]): file_ids (Union[Unset, List[str]]): pending_post_id (Union[Unset, str]): metadata (Union[Unset, PostMetadata]): Additional information used to display a post.

channel_id: str[source]
user_id: str[source]
id: str[source]
class matteridge.events.Reaction[source]

Bases: mattermost_api_reference_client.models.Reaction

Attributes:

user_id (Union[Unset, str]): The ID of the user that made this reaction post_id (Union[Unset, str]): The ID of the post to which this reaction was made emoji_name (Union[Unset, str]): The name of the emoji that was used for this reaction create_at (Union[Unset, int]): The time in milliseconds this reaction was made

user_id: str[source]
post_id: str[source]
class matteridge.events.User[source]

Bases: mattermost_api_reference_client.models.User

Attributes:

id (Union[Unset, str]): create_at (Union[Unset, int]): The time in milliseconds a user was created update_at (Union[Unset, int]): The time in milliseconds a user was last updated delete_at (Union[Unset, int]): The time in milliseconds a user was deleted username (Union[Unset, str]): first_name (Union[Unset, str]): last_name (Union[Unset, str]): nickname (Union[Unset, str]): email (Union[Unset, str]): email_verified (Union[Unset, bool]): auth_service (Union[Unset, str]): roles (Union[Unset, str]): locale (Union[Unset, str]): notify_props (Union[Unset, UserNotifyProps]): props (Union[Unset, UserProps]): last_password_update (Union[Unset, int]): last_picture_update (Union[Unset, int]): failed_attempts (Union[Unset, int]): mfa_active (Union[Unset, bool]): timezone (Union[Unset, Timezone]): terms_of_service_id (Union[Unset, str]): ID of accepted terms of service, if any. This field is not present if

empty.

terms_of_service_create_at (Union[Unset, int]): The time in milliseconds the user accepted the terms of service

username: str[source]
class matteridge.events.EventType[source]

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

Initialize self. See help(type(self)) for accurate signature.

AddedToTeam = 'added_to_team'[source]
AuthenticationChallenge = 'authentication_challenge'[source]
ChannelConverted = 'channel_converted'[source]
ChannelCreated = 'channel_created'[source]
ChannelDeleted = 'channel_deleted'[source]
ChannelMemberUpdated = 'channel_member_updated'[source]
ChannelUpdated = 'channel_updated'[source]
ChannelViewed = 'channel_viewed'[source]
ConfigChanged = 'config_changed'[source]
DeleteTeam = 'delete_team'[source]
DirectAdded = 'direct_added'[source]
EmojiAdded = 'emoji_added'[source]
EphemeralMessage = 'ephemeral_message'[source]
GroupAdded = 'group_added'[source]
Hello = 'hello'[source]
LeaveTeam = 'leave_team'[source]
LicenseChanged = 'license_changed'[source]
MemberroleUpdated = 'memberrole_updated'[source]
NewUser = 'new_user'[source]
PluginDisabled = 'plugin_disabled'[source]
PluginEnabled = 'plugin_enabled'[source]
PluginStatusesChanged = 'plugin_statuses_changed'[source]
PostDeleted = 'post_deleted'[source]
PostEdited = 'post_edited'[source]
PostUnread = 'post_unread'[source]
Posted = 'posted'[source]
PreferenceChanged = 'preference_changed'[source]
PreferencesChanged = 'preferences_changed'[source]
PreferencesDeleted = 'preferences_deleted'[source]
ReactionAdded = 'reaction_added'[source]
ReactionRemoved = 'reaction_removed'[source]
Response = 'response'[source]
RoleUpdated = 'role_updated'[source]
StatusChange = 'status_change'[source]
Typing = 'typing'[source]
UpdateTeam = 'update_team'[source]
UserAdded = 'user_added'[source]
UserRemoved = 'user_removed'[source]
UserRoleUpdated = 'user_role_updated'[source]
UserUpdated = 'user_updated'[source]
DialogOpened = 'dialog_opened'[source]
ThreadUpdated = 'thread_updated'[source]
ThreadFollowChanged = 'thread_follow_changed'[source]
ThreadReadChanged = 'thread_read_changed'[source]
SidebarCategoryUpdated = 'sidebar_category_updated'[source]
Unknown = '__unknown__'[source]
class matteridge.events.Broadcast[source]
channel_id: str[source]
team_id: str[source]
class matteridge.events.MattermostEvent[source]
type: EventType[source]
_data: dict[source]
_broadcast_dict: dict[source]
__post_init__()[source]
_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.Typing[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.Posted[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.ChannelViewed[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.UserUpdated[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.StatusChange[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.PostEdited[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.PostDeleted[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.ReactionAdded[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.ReactionRemoved[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.DirectAdded[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.ChannelCreated[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

class matteridge.events.UserAdded[source]

Bases: MattermostEvent

_parse_data(data)[source]
Parameters:

data (dict)

matteridge.events.from_dict(d)[source]
Return type:

MattermostEvent

matteridge.events._parsed_events[source]