aboutsummaryrefslogtreecommitdiffstats
path: root/typings
diff options
context:
space:
mode:
Diffstat (limited to 'typings')
-rw-r--r--typings/slack_api/slack_bots_info.pyi6
-rw-r--r--typings/slack_api/slack_users_info.pyi24
2 files changed, 15 insertions, 15 deletions
diff --git a/typings/slack_api/slack_bots_info.pyi b/typings/slack_api/slack_bots_info.pyi
index 0fb296f..845ef00 100644
--- a/typings/slack_api/slack_bots_info.pyi
+++ b/typings/slack_api/slack_bots_info.pyi
@@ -12,13 +12,13 @@ class SlackBotInfo(TypedDict):
icons: Dict[str, str]
@final
-class SlackBotsInfoErrorResponse(TypedDict):
+class SlackBotInfoErrorResponse(TypedDict):
ok: Literal[False]
error: str
@final
-class SlackBotsInfoSuccessResponse(TypedDict):
+class SlackBotInfoSuccessResponse(TypedDict):
ok: Literal[True]
bot: SlackBotInfo
-SlackBotInfoResponse = SlackBotsInfoSuccessResponse | SlackBotsInfoErrorResponse
+SlackBotInfoResponse = SlackBotInfoSuccessResponse | SlackBotInfoErrorResponse
diff --git a/typings/slack_api/slack_users_info.pyi b/typings/slack_api/slack_users_info.pyi
index d86d131..e07353b 100644
--- a/typings/slack_api/slack_users_info.pyi
+++ b/typings/slack_api/slack_users_info.pyi
@@ -69,7 +69,7 @@ class SlackEnterpriseUser(TypedDict):
is_primary_owner: bool
teams: List[str]
-class SlackUsersInfoCommon(TypedDict):
+class SlackUserInfoCommon(TypedDict):
id: str
team_id: NotRequired[str]
name: str
@@ -90,7 +90,7 @@ class SlackUsersInfoCommon(TypedDict):
who_can_share_contact_card: str
@final
-class SlackUsersInfoPerson(SlackUsersInfoCommon):
+class SlackUserInfoPerson(SlackUserInfoCommon):
profile: SlackProfilePerson
is_bot: Literal[False]
is_stranger: NotRequired[bool]
@@ -99,28 +99,28 @@ class SlackUsersInfoPerson(SlackUsersInfoCommon):
enterprise_id: NotRequired[str]
@final
-class SlackUsersInfoBot(SlackUsersInfoCommon):
+class SlackUserInfoBot(SlackUserInfoCommon):
profile: SlackProfileBot
is_bot: Literal[True]
-SlackUsersInfo = SlackUsersInfoPerson | SlackUsersInfoBot
+SlackUserInfo = SlackUserInfoPerson | SlackUserInfoBot
@final
-class SlackUsersInfoErrorResponse(TypedDict):
+class SlackUserInfoErrorResponse(TypedDict):
ok: Literal[False]
error: str
@final
-class SlackUsersInfoSuccessResponse(TypedDict, Generic[T]):
+class SlackUserInfoSuccessResponse(TypedDict, Generic[T]):
ok: Literal[True]
user: T
-SlackUsersInfoPersonResponse = (
- SlackUsersInfoSuccessResponse[SlackUsersInfoPerson] | SlackUsersInfoErrorResponse
+SlackUserInfoPersonResponse = (
+ SlackUserInfoSuccessResponse[SlackUserInfoPerson] | SlackUserInfoErrorResponse
)
-SlackUsersInfoBotResponse = (
- SlackUsersInfoSuccessResponse[SlackUsersInfoBot] | SlackUsersInfoErrorResponse
+SlackUserInfoBotResponse = (
+ SlackUserInfoSuccessResponse[SlackUserInfoBot] | SlackUserInfoErrorResponse
)
-SlackUsersInfoResponse = (
- SlackUsersInfoSuccessResponse[SlackUsersInfo] | SlackUsersInfoErrorResponse
+SlackUserInfoResponse = (
+ SlackUserInfoSuccessResponse[SlackUserInfo] | SlackUserInfoErrorResponse
)