aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_team_info.pyi43
1 files changed, 43 insertions, 0 deletions
diff --git a/typings/slack_api/slack_team_info.pyi b/typings/slack_api/slack_team_info.pyi
new file mode 100644
index 0000000..124eaac
--- /dev/null
+++ b/typings/slack_api/slack_team_info.pyi
@@ -0,0 +1,43 @@
+from __future__ import annotations
+
+from slack_api.slack_common import SlackErrorResponse
+from typing_extensions import Literal, NotRequired, TypedDict, final
+
+@final
+class SlackTeamInfoIcon(TypedDict):
+ image_default: bool
+ image_34: str
+ image_44: str
+ image_68: str
+ image_88: str
+ image_102: str
+ image_230: str
+ image_132: str
+
+@final
+class SlackTeamInfo(TypedDict):
+ id: str
+ name: str
+ url: str
+ domain: str
+ email_domain: str
+ icon: SlackTeamInfoIcon
+ avatar_base_url: str
+ is_verified: bool
+
+ # For enterprise grid
+ public_url: NotRequired[str]
+ discoverable: NotRequired[str]
+ # sso_provider
+ # pay_prod_cur
+ locale: NotRequired[str]
+ enterprise_id: NotRequired[str]
+ enterprise_name: NotRequired[str]
+ enterprise_domain: NotRequired[str]
+
+@final
+class SlackTeamInfoSuccessResponse(TypedDict):
+ ok: Literal[True]
+ team: SlackTeamInfo
+
+SlackTeamInfoResponse = SlackTeamInfoSuccessResponse | SlackErrorResponse