aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-19 23:05:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitd2bb9263f0062275b92024ccdba68d5439521b5d (patch)
treedd9b46727d5a3fc8e1b1c232419504772305e928 /typings/slack_api
parentd6b4f505d53e69ecb39d518a89d8d0013e22ad51 (diff)
downloadwee-slack-d2bb9263f0062275b92024ccdba68d5439521b5d.tar.gz
Add support for completing nicks
This uses Slacks edgeapi which only works for session tokens, but has the benefit of being able to complete nicks without all users being loaded. So need to add some completion for the loaded users for when using OAuth tokens as well.
Diffstat (limited to 'typings/slack_api')
-rw-r--r--typings/slack_api/slack_rtm_connect.pyi3
-rw-r--r--typings/slack_api/slack_users_info.pyi6
2 files changed, 7 insertions, 2 deletions
diff --git a/typings/slack_api/slack_rtm_connect.pyi b/typings/slack_api/slack_rtm_connect.pyi
index e5dcd8c..63e23b4 100644
--- a/typings/slack_api/slack_rtm_connect.pyi
+++ b/typings/slack_api/slack_rtm_connect.pyi
@@ -3,12 +3,15 @@ from __future__ import annotations
from typing import Literal, TypedDict, final
from slack_api.slack_error import SlackErrorResponse
+from typing_extensions import NotRequired
@final
class SlackRtmConnectTeam(TypedDict):
id: str
name: str
domain: str
+ enterprise_id: NotRequired[str]
+ enterprise_name: NotRequired[str]
@final
class SlackRtmConnectSelf(TypedDict):
diff --git a/typings/slack_api/slack_users_info.pyi b/typings/slack_api/slack_users_info.pyi
index 3d6a39b..20ba3d1 100644
--- a/typings/slack_api/slack_users_info.pyi
+++ b/typings/slack_api/slack_users_info.pyi
@@ -92,6 +92,9 @@ class SlackUserInfoCommon(TypedDict):
updated: int
is_email_confirmed: NotRequired[bool]
who_can_share_contact_card: str
+ enterprise_user: NotRequired[SlackEnterpriseUser]
+ enterprise_id: NotRequired[str]
+ presence: NotRequired[Literal["active"]]
@final
class SlackUserInfoPerson(SlackUserInfoCommon):
@@ -99,13 +102,12 @@ class SlackUserInfoPerson(SlackUserInfoCommon):
is_bot: Literal[False]
is_stranger: NotRequired[bool]
has_2fa: bool
- enterprise_user: NotRequired[SlackEnterpriseUser]
- enterprise_id: NotRequired[str]
@final
class SlackUserInfoBot(SlackUserInfoCommon):
profile: SlackProfileBot
is_bot: Literal[True]
+ is_workflow_bot: NotRequired[bool]
SlackUserInfo = SlackUserInfoPerson | SlackUserInfoBot