aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api.pyi
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2022-10-10 12:08:56 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:52 +0100
commit7c919da30d2209f84c070e9b7e4540d7cde531d4 (patch)
tree65b8799eb6c73e6ce2d9b355c8a392013bafd4c4 /typings/slack_api.pyi
parent4e8c994e8e1a2efe818ca594a944c2ce8fa431b0 (diff)
downloadwee-slack-7c919da30d2209f84c070e9b7e4540d7cde531d4.tar.gz
Start on new version of wee-slack
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