aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-28 23:40:56 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit633c881c3b8732dddc5b4abdbe111769b72137e3 (patch)
tree4fe5726f9c6fd09678ae76ccb023852715ebbe2a /typings
parent2ba6473b41a9a742d4611a8f1259aa36a769ed7e (diff)
downloadwee-slack-633c881c3b8732dddc5b4abdbe111769b72137e3.tar.gz
Support unfurling usergroup names
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_usergroups_info.pyi38
-rw-r--r--typings/slack_edgeapi/slack_usergroups_info.pyi14
2 files changed, 52 insertions, 0 deletions
diff --git a/typings/slack_api/slack_usergroups_info.pyi b/typings/slack_api/slack_usergroups_info.pyi
new file mode 100644
index 0000000..1894672
--- /dev/null
+++ b/typings/slack_api/slack_usergroups_info.pyi
@@ -0,0 +1,38 @@
+from typing import List
+
+from slack_api.slack_error import SlackErrorResponse
+from typing_extensions import Literal, NotRequired, TypedDict, final
+
+class SlackUsergroupPrefs(TypedDict):
+ channels: List[str]
+ groups: List[str]
+
+class SlackUsergroupInfo(TypedDict):
+ id: str
+ team_id: str
+ is_usergroup: bool
+ is_subteam: bool
+ name: str
+ description: str
+ handle: str
+ is_external: bool
+ date_create: int
+ date_update: int
+ date_delete: int
+ auto_type: None
+ auto_provision: bool
+ enterprise_subteam_id: str
+ created_by: str
+ updated_by: str
+ deleted_by: None
+ prefs: SlackUsergroupPrefs
+ users: NotRequired[List[str]]
+ user_count: int
+ channel_count: int
+
+@final
+class SlackUsergroupsInfoSuccessResponse(TypedDict):
+ ok: Literal[True]
+ usergroups: List[SlackUsergroupInfo]
+
+SlackUsergroupsInfoResponse = SlackUsergroupsInfoSuccessResponse | SlackErrorResponse
diff --git a/typings/slack_edgeapi/slack_usergroups_info.pyi b/typings/slack_edgeapi/slack_usergroups_info.pyi
new file mode 100644
index 0000000..06bbb4a
--- /dev/null
+++ b/typings/slack_edgeapi/slack_usergroups_info.pyi
@@ -0,0 +1,14 @@
+from typing import List
+
+from slack_api.slack_error import SlackErrorResponse
+from slack_api.slack_usergroups_info import SlackUsergroupInfo
+from typing_extensions import Literal, NotRequired, TypedDict
+
+class SlackEdgeUsergroupsInfoSuccessResponse(TypedDict):
+ ok: Literal[True]
+ failed_ids: NotRequired[List[str]]
+ results: List[SlackUsergroupInfo]
+
+SlackEdgeUsergroupsInfoResponse = (
+ SlackEdgeUsergroupsInfoSuccessResponse | SlackErrorResponse
+)