aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'typings/slack_api.pyi')
-rw-r--r--typings/slack_api.pyi73
1 files changed, 73 insertions, 0 deletions
diff --git a/typings/slack_api.pyi b/typings/slack_api.pyi
new file mode 100644
index 0000000..4829047
--- /dev/null
+++ b/typings/slack_api.pyi
@@ -0,0 +1,73 @@
+from typing import TypedDict
+
+class SlackTopic(TypedDict):
+ value: str
+ creator: str
+ last_set: int
+
+class SlackPurpose(TypedDict):
+ value: str
+ creator: str
+ last_set: int
+
+class SlackConversationCommon(TypedDict):
+ id: str
+
+class SlackConversationCommonNotIm(SlackConversationCommon):
+ created: int
+ creator: str
+ is_archived: bool
+ is_channel: bool
+ is_ext_shared: bool
+ is_general: bool
+ is_group: bool
+ is_im: bool
+ is_member: bool
+ is_mpim: bool
+ is_org_shared: bool
+ is_pending_ext_shared: bool
+ is_private: bool
+ is_shared: bool
+ name_normalized: str
+ name: str
+ num_members: int
+ parent_conversation: None
+ pending_connected_team_ids: list
+ pending_shared: list
+ previous_names: list[str]
+ purpose: SlackPurpose
+ shared_team_ids: list[str]
+ topic: SlackTopic
+ unlinked: int
+
+class SlackConversationPublic(SlackConversationCommonNotIm):
+ num_members: int
+ previous_names: list[str]
+
+class SlackConversationPrivate(SlackConversationCommonNotIm):
+ num_members: int
+
+class SlackConversationMpim(SlackConversationCommonNotIm):
+ num_members: int
+
+class SlackConversationGroup(SlackConversationCommonNotIm):
+ is_open: bool
+ last_read: str
+ priority: int
+
+class SlackConversationIm(SlackConversationCommon):
+ created: int
+ is_archived: bool
+ is_im: bool
+ is_org_shared: bool
+ is_user_deleted: bool
+ priority: int
+ user: str
+
+SlackConversationNotIm = (
+ SlackConversationPublic
+ | SlackConversationPrivate
+ | SlackConversationMpim
+ | SlackConversationGroup
+)
+SlackConversation = SlackConversationNotIm | SlackConversationIm