diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-01-29 13:18:51 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 33c5891478937ceb3c1f7e72ef9cd47e6b0e1090 (patch) | |
tree | 9179e2ccec3680170d891df223081f52c4306c46 /typings/slack_api | |
parent | f5dab24587beee2f2d4d4310adb64dad820787ad (diff) | |
download | wee-slack-33c5891478937ceb3c1f7e72ef9cd47e6b0e1090.tar.gz |
Open all conversation types on start
Diffstat (limited to 'typings/slack_api')
-rw-r--r-- | typings/slack_api/slack_common.pyi | 5 | ||||
-rw-r--r-- | typings/slack_api/slack_conversations_members.pyi | 15 | ||||
-rw-r--r-- | typings/slack_api/slack_users_conversations.pyi | 5 |
3 files changed, 21 insertions, 4 deletions
diff --git a/typings/slack_api/slack_common.pyi b/typings/slack_api/slack_common.pyi new file mode 100644 index 0000000..4991425 --- /dev/null +++ b/typings/slack_api/slack_common.pyi @@ -0,0 +1,5 @@ +from typing_extensions import TypedDict, final + +@final +class SlackResponseMetadata(TypedDict): + next_cursor: str diff --git a/typings/slack_api/slack_conversations_members.pyi b/typings/slack_api/slack_conversations_members.pyi new file mode 100644 index 0000000..47ed8f1 --- /dev/null +++ b/typings/slack_api/slack_conversations_members.pyi @@ -0,0 +1,15 @@ +from typing import List + +from slack_api.slack_common import SlackResponseMetadata +from slack_api.slack_error import SlackErrorResponse +from typing_extensions import Literal, TypedDict, final + +@final +class SlackConversationsMembersSuccessResponse(TypedDict): + ok: Literal[True] + members: List[str] + response_metadata: SlackResponseMetadata + +SlackConversationsMembersResponse = ( + SlackConversationsMembersSuccessResponse | SlackErrorResponse +) diff --git a/typings/slack_api/slack_users_conversations.pyi b/typings/slack_api/slack_users_conversations.pyi index 6c02bca..69cd6da 100644 --- a/typings/slack_api/slack_users_conversations.pyi +++ b/typings/slack_api/slack_users_conversations.pyi @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Generic, List from slack_api.slack_error import SlackErrorResponse +from slack_api.slack_common import SlackResponseMetadata from typing_extensions import Literal, TypedDict, TypeVar, final T = TypeVar("T") @@ -77,10 +78,6 @@ SlackUsersConversationsNotIm = ( SlackUsersConversations = SlackUsersConversationsNotIm | SlackUsersConversationsIm @final -class SlackResponseMetadata(TypedDict): - next_cursor: str - -@final class SlackUsersConversationsSuccessResponse(TypedDict, Generic[T]): ok: Literal[True] channels: List[T] |