mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Go side: - Log hooks returned by Implemented() - Log each hook name -> ID mapping - Log OnActivate implementation status - Log OnActivate call flow Python side: - Log Implemented() return value - Log OnActivate gRPC receipt and handler invocation This is temporary debug logging to diagnose why OnActivate isn't being called for Python plugins. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
241 lines
11 KiB
Python
241 lines
11 KiB
Python
"""
|
|
@generated by mypy-protobuf. Do not edit manually!
|
|
isort:skip_file
|
|
Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
See LICENSE.txt for license information.
|
|
"""
|
|
|
|
from google.protobuf import descriptor as _descriptor
|
|
from google.protobuf import message as _message
|
|
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
import builtins as _builtins
|
|
import sys
|
|
import typing as _typing
|
|
|
|
if sys.version_info >= (3, 10):
|
|
from typing import TypeAlias as _TypeAlias
|
|
else:
|
|
from typing_extensions import TypeAlias as _TypeAlias
|
|
|
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
|
|
class _TeamType:
|
|
ValueType = _typing.NewType("ValueType", _builtins.int)
|
|
V: _TypeAlias = ValueType # noqa: Y015
|
|
|
|
class _TeamTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_TeamType.ValueType], _builtins.type):
|
|
DESCRIPTOR: _descriptor.EnumDescriptor
|
|
TEAM_TYPE_UNSPECIFIED: _TeamType.ValueType # 0
|
|
"""Unspecified team type (should not be used)"""
|
|
TEAM_TYPE_OPEN: _TeamType.ValueType # 1
|
|
"""Open team (anyone can join)"""
|
|
TEAM_TYPE_INVITE: _TeamType.ValueType # 2
|
|
"""Invite-only team"""
|
|
|
|
class TeamType(_TeamType, metaclass=_TeamTypeEnumTypeWrapper):
|
|
"""TeamType represents the type of a team."""
|
|
|
|
TEAM_TYPE_UNSPECIFIED: TeamType.ValueType # 0
|
|
"""Unspecified team type (should not be used)"""
|
|
TEAM_TYPE_OPEN: TeamType.ValueType # 1
|
|
"""Open team (anyone can join)"""
|
|
TEAM_TYPE_INVITE: TeamType.ValueType # 2
|
|
"""Invite-only team"""
|
|
Global___TeamType: _TypeAlias = TeamType # noqa: Y015
|
|
|
|
@_typing.final
|
|
class Team(_message.Message):
|
|
"""Team represents a Mattermost team.
|
|
Maps to model.Team in Go.
|
|
"""
|
|
|
|
DESCRIPTOR: _descriptor.Descriptor
|
|
|
|
ID_FIELD_NUMBER: _builtins.int
|
|
CREATE_AT_FIELD_NUMBER: _builtins.int
|
|
UPDATE_AT_FIELD_NUMBER: _builtins.int
|
|
DELETE_AT_FIELD_NUMBER: _builtins.int
|
|
DISPLAY_NAME_FIELD_NUMBER: _builtins.int
|
|
NAME_FIELD_NUMBER: _builtins.int
|
|
DESCRIPTION_FIELD_NUMBER: _builtins.int
|
|
EMAIL_FIELD_NUMBER: _builtins.int
|
|
TYPE_FIELD_NUMBER: _builtins.int
|
|
COMPANY_NAME_FIELD_NUMBER: _builtins.int
|
|
ALLOWED_DOMAINS_FIELD_NUMBER: _builtins.int
|
|
INVITE_ID_FIELD_NUMBER: _builtins.int
|
|
ALLOW_OPEN_INVITE_FIELD_NUMBER: _builtins.int
|
|
LAST_TEAM_ICON_UPDATE_FIELD_NUMBER: _builtins.int
|
|
SCHEME_ID_FIELD_NUMBER: _builtins.int
|
|
GROUP_CONSTRAINED_FIELD_NUMBER: _builtins.int
|
|
POLICY_ID_FIELD_NUMBER: _builtins.int
|
|
CLOUD_LIMITS_ARCHIVED_FIELD_NUMBER: _builtins.int
|
|
id: _builtins.str
|
|
"""Unique identifier for the team (26-char ID)"""
|
|
create_at: _builtins.int
|
|
"""Timestamp when the team was created (milliseconds since epoch)"""
|
|
update_at: _builtins.int
|
|
"""Timestamp when the team was last updated (milliseconds since epoch)"""
|
|
delete_at: _builtins.int
|
|
"""Timestamp when the team was deleted (0 if not deleted, milliseconds since epoch)"""
|
|
display_name: _builtins.str
|
|
"""The team's display name"""
|
|
name: _builtins.str
|
|
"""The team's URL-friendly name (unique)"""
|
|
description: _builtins.str
|
|
"""Team description"""
|
|
email: _builtins.str
|
|
"""Team contact email address"""
|
|
type: Global___TeamType.ValueType
|
|
"""The type of team (open or invite)"""
|
|
company_name: _builtins.str
|
|
"""Company name associated with the team"""
|
|
allowed_domains: _builtins.str
|
|
"""Comma-separated list of allowed email domains for signup"""
|
|
invite_id: _builtins.str
|
|
"""Unique invite ID for joining the team"""
|
|
allow_open_invite: _builtins.bool
|
|
"""Whether the team allows open invites"""
|
|
last_team_icon_update: _builtins.int
|
|
"""Timestamp when the team icon was last updated (milliseconds since epoch)"""
|
|
scheme_id: _builtins.str
|
|
"""ID of the permission scheme applied to this team"""
|
|
group_constrained: _builtins.bool
|
|
"""Whether membership is constrained by group sync"""
|
|
policy_id: _builtins.str
|
|
"""ID of the data retention policy applied to this team"""
|
|
cloud_limits_archived: _builtins.bool
|
|
"""Whether the team is archived due to cloud limits"""
|
|
def __init__(
|
|
self,
|
|
*,
|
|
id: _builtins.str = ...,
|
|
create_at: _builtins.int = ...,
|
|
update_at: _builtins.int = ...,
|
|
delete_at: _builtins.int = ...,
|
|
display_name: _builtins.str = ...,
|
|
name: _builtins.str = ...,
|
|
description: _builtins.str = ...,
|
|
email: _builtins.str = ...,
|
|
type: Global___TeamType.ValueType = ...,
|
|
company_name: _builtins.str = ...,
|
|
allowed_domains: _builtins.str = ...,
|
|
invite_id: _builtins.str = ...,
|
|
allow_open_invite: _builtins.bool = ...,
|
|
last_team_icon_update: _builtins.int = ...,
|
|
scheme_id: _builtins.str | None = ...,
|
|
group_constrained: _builtins.bool | None = ...,
|
|
policy_id: _builtins.str | None = ...,
|
|
cloud_limits_archived: _builtins.bool = ...,
|
|
) -> None: ...
|
|
_HasFieldArgType: _TypeAlias = _typing.Literal["_group_constrained", b"_group_constrained", "_policy_id", b"_policy_id", "_scheme_id", b"_scheme_id", "group_constrained", b"group_constrained", "policy_id", b"policy_id", "scheme_id", b"scheme_id"] # noqa: Y015
|
|
def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
|
|
_ClearFieldArgType: _TypeAlias = _typing.Literal["_group_constrained", b"_group_constrained", "_policy_id", b"_policy_id", "_scheme_id", b"_scheme_id", "allow_open_invite", b"allow_open_invite", "allowed_domains", b"allowed_domains", "cloud_limits_archived", b"cloud_limits_archived", "company_name", b"company_name", "create_at", b"create_at", "delete_at", b"delete_at", "description", b"description", "display_name", b"display_name", "email", b"email", "group_constrained", b"group_constrained", "id", b"id", "invite_id", b"invite_id", "last_team_icon_update", b"last_team_icon_update", "name", b"name", "policy_id", b"policy_id", "scheme_id", b"scheme_id", "type", b"type", "update_at", b"update_at"] # noqa: Y015
|
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
_WhichOneofReturnType__group_constrained: _TypeAlias = _typing.Literal["group_constrained"] # noqa: Y015
|
|
_WhichOneofArgType__group_constrained: _TypeAlias = _typing.Literal["_group_constrained", b"_group_constrained"] # noqa: Y015
|
|
_WhichOneofReturnType__policy_id: _TypeAlias = _typing.Literal["policy_id"] # noqa: Y015
|
|
_WhichOneofArgType__policy_id: _TypeAlias = _typing.Literal["_policy_id", b"_policy_id"] # noqa: Y015
|
|
_WhichOneofReturnType__scheme_id: _TypeAlias = _typing.Literal["scheme_id"] # noqa: Y015
|
|
_WhichOneofArgType__scheme_id: _TypeAlias = _typing.Literal["_scheme_id", b"_scheme_id"] # noqa: Y015
|
|
@_typing.overload
|
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__group_constrained) -> _WhichOneofReturnType__group_constrained | None: ...
|
|
@_typing.overload
|
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__policy_id) -> _WhichOneofReturnType__policy_id | None: ...
|
|
@_typing.overload
|
|
def WhichOneof(self, oneof_group: _WhichOneofArgType__scheme_id) -> _WhichOneofReturnType__scheme_id | None: ...
|
|
|
|
Global___Team: _TypeAlias = Team # noqa: Y015
|
|
|
|
@_typing.final
|
|
class TeamMember(_message.Message):
|
|
"""TeamMember represents a user's membership in a team.
|
|
Maps to model.TeamMember in Go.
|
|
"""
|
|
|
|
DESCRIPTOR: _descriptor.Descriptor
|
|
|
|
TEAM_ID_FIELD_NUMBER: _builtins.int
|
|
USER_ID_FIELD_NUMBER: _builtins.int
|
|
ROLES_FIELD_NUMBER: _builtins.int
|
|
DELETE_AT_FIELD_NUMBER: _builtins.int
|
|
SCHEME_GUEST_FIELD_NUMBER: _builtins.int
|
|
SCHEME_USER_FIELD_NUMBER: _builtins.int
|
|
SCHEME_ADMIN_FIELD_NUMBER: _builtins.int
|
|
CREATE_AT_FIELD_NUMBER: _builtins.int
|
|
team_id: _builtins.str
|
|
"""The team ID"""
|
|
user_id: _builtins.str
|
|
"""The user ID"""
|
|
roles: _builtins.str
|
|
"""Space-separated list of role names"""
|
|
delete_at: _builtins.int
|
|
"""Timestamp when the member was deleted from the team"""
|
|
scheme_guest: _builtins.bool
|
|
"""Whether the user has scheme guest role"""
|
|
scheme_user: _builtins.bool
|
|
"""Whether the user has scheme user role"""
|
|
scheme_admin: _builtins.bool
|
|
"""Whether the user has scheme admin role"""
|
|
create_at: _builtins.int
|
|
"""Timestamp when the member was added (milliseconds since epoch)"""
|
|
def __init__(
|
|
self,
|
|
*,
|
|
team_id: _builtins.str = ...,
|
|
user_id: _builtins.str = ...,
|
|
roles: _builtins.str = ...,
|
|
delete_at: _builtins.int = ...,
|
|
scheme_guest: _builtins.bool = ...,
|
|
scheme_user: _builtins.bool = ...,
|
|
scheme_admin: _builtins.bool = ...,
|
|
create_at: _builtins.int = ...,
|
|
) -> None: ...
|
|
_ClearFieldArgType: _TypeAlias = _typing.Literal["create_at", b"create_at", "delete_at", b"delete_at", "roles", b"roles", "scheme_admin", b"scheme_admin", "scheme_guest", b"scheme_guest", "scheme_user", b"scheme_user", "team_id", b"team_id", "user_id", b"user_id"] # noqa: Y015
|
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
|
|
Global___TeamMember: _TypeAlias = TeamMember # noqa: Y015
|
|
|
|
@_typing.final
|
|
class TeamUnread(_message.Message):
|
|
"""TeamUnread represents unread message counts for a team.
|
|
Maps to model.TeamUnread in Go.
|
|
"""
|
|
|
|
DESCRIPTOR: _descriptor.Descriptor
|
|
|
|
TEAM_ID_FIELD_NUMBER: _builtins.int
|
|
MSG_COUNT_FIELD_NUMBER: _builtins.int
|
|
MENTION_COUNT_FIELD_NUMBER: _builtins.int
|
|
MENTION_COUNT_ROOT_FIELD_NUMBER: _builtins.int
|
|
MSG_COUNT_ROOT_FIELD_NUMBER: _builtins.int
|
|
THREAD_COUNT_FIELD_NUMBER: _builtins.int
|
|
THREAD_MENTION_COUNT_FIELD_NUMBER: _builtins.int
|
|
team_id: _builtins.str
|
|
"""The team ID"""
|
|
msg_count: _builtins.int
|
|
"""Total unread message count"""
|
|
mention_count: _builtins.int
|
|
"""Unread mention count"""
|
|
mention_count_root: _builtins.int
|
|
"""Unread mention count in root posts only"""
|
|
msg_count_root: _builtins.int
|
|
"""Total unread root message count"""
|
|
thread_count: _builtins.int
|
|
"""Count of threads with urgent priority"""
|
|
thread_mention_count: _builtins.int
|
|
"""Count of threads with urgent mentions"""
|
|
def __init__(
|
|
self,
|
|
*,
|
|
team_id: _builtins.str = ...,
|
|
msg_count: _builtins.int = ...,
|
|
mention_count: _builtins.int = ...,
|
|
mention_count_root: _builtins.int = ...,
|
|
msg_count_root: _builtins.int = ...,
|
|
thread_count: _builtins.int = ...,
|
|
thread_mention_count: _builtins.int = ...,
|
|
) -> None: ...
|
|
_ClearFieldArgType: _TypeAlias = _typing.Literal["mention_count", b"mention_count", "mention_count_root", b"mention_count_root", "msg_count", b"msg_count", "msg_count_root", b"msg_count_root", "team_id", b"team_id", "thread_count", b"thread_count", "thread_mention_count", b"thread_mention_count"] # noqa: Y015
|
|
def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
|
|
|
|
Global___TeamUnread: _TypeAlias = TeamUnread # noqa: Y015
|