aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-14 22:26:54 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit17d928f8ce765229690afbc78a6a31cdf24da409 (patch)
treef31fae5f12f4bc82be86353e4e21b4e8d13b1694 /typings/slack_api
parent1906b75a92fcdc441e891546cc9cc97a2e621495 (diff)
downloadwee-slack-17d928f8ce765229690afbc78a6a31cdf24da409.tar.gz
Call rtm.connect (doesn't connect to web socket yet)
Diffstat (limited to 'typings/slack_api')
-rw-r--r--typings/slack_api/slack_rtm_connect.pyi24
1 files changed, 24 insertions, 0 deletions
diff --git a/typings/slack_api/slack_rtm_connect.pyi b/typings/slack_api/slack_rtm_connect.pyi
new file mode 100644
index 0000000..7fce94f
--- /dev/null
+++ b/typings/slack_api/slack_rtm_connect.pyi
@@ -0,0 +1,24 @@
+from __future__ import annotations
+
+from typing import Literal, TypedDict
+
+class SlackRtmConnectTeam(TypedDict):
+ id: str
+ name: str
+ domain: str
+
+class SlackRtmConnectSelf(TypedDict):
+ id: str
+ name: str
+
+class SlackRtmConnectErrorResponse(TypedDict):
+ ok: Literal[False]
+ error: str
+
+class SlackRtmConnectSuccessResponse(TypedDict):
+ ok: Literal[True]
+ url: str
+ team: SlackRtmConnectTeam
+ self: SlackRtmConnectSelf
+
+SlackRtmConnectResponse = SlackRtmConnectSuccessResponse | SlackRtmConnectErrorResponse