aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_bots_info.pyi
blob: 3204649ef4d310bc83e988083f0cf72fdee2dfbb (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
27
from typing import Dict, List

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

class SlackBotInfo(TypedDict):
    id: str
    deleted: bool
    name: str
    updated: int
    app_id: str
    user_id: NotRequired[str]
    icons: Dict[str, str]

@final
class SlackBotInfoSuccessResponse(TypedDict):
    ok: Literal[True]
    bot: SlackBotInfo

SlackBotInfoResponse = SlackBotInfoSuccessResponse | SlackErrorResponse

@final
class SlackBotsInfoSuccessResponse(TypedDict):
    ok: Literal[True]
    bots: List[SlackBotInfo]

SlackBotsInfoResponse = SlackBotsInfoSuccessResponse | SlackErrorResponse