aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_rtm_connect.pyi
blob: 34d20b90eedd8cd789acef17f345030e7316199d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from __future__ import annotations

from slack_api.slack_error import SlackErrorResponse
from typing_extensions import Literal, NotRequired, TypedDict, final

@final
class SlackRtmConnectTeam(TypedDict):
    id: str
    name: str
    domain: str
    enterprise_id: NotRequired[str]
    enterprise_name: NotRequired[str]

@final
class SlackRtmConnectSelf(TypedDict):
    id: str
    name: str

@final
class SlackRtmConnectSuccessResponse(TypedDict):
    ok: Literal[True]
    url: str
    team: SlackRtmConnectTeam
    self: SlackRtmConnectSelf

SlackRtmConnectResponse = SlackRtmConnectSuccessResponse | SlackErrorResponse