aboutsummaryrefslogtreecommitdiffstats
path: root/typings/slack_api/slack_usergroups_info.pyi
blob: 1894672fbf6c02461731c49e69641eefbfc0e479 (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
28
29
30
31
32
33
34
35
36
37
38
from typing import List

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

class SlackUsergroupPrefs(TypedDict):
    channels: List[str]
    groups: List[str]

class SlackUsergroupInfo(TypedDict):
    id: str
    team_id: str
    is_usergroup: bool
    is_subteam: bool
    name: str
    description: str
    handle: str
    is_external: bool
    date_create: int
    date_update: int
    date_delete: int
    auto_type: None
    auto_provision: bool
    enterprise_subteam_id: str
    created_by: str
    updated_by: str
    deleted_by: None
    prefs: SlackUsergroupPrefs
    users: NotRequired[List[str]]
    user_count: int
    channel_count: int

@final
class SlackUsergroupsInfoSuccessResponse(TypedDict):
    ok: Literal[True]
    usergroups: List[SlackUsergroupInfo]

SlackUsergroupsInfoResponse = SlackUsergroupsInfoSuccessResponse | SlackErrorResponse