-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathadmin.py
More file actions
80 lines (62 loc) · 2.27 KB
/
admin.py
File metadata and controls
80 lines (62 loc) · 2.27 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This file was auto-generated by Fern from our API Definition.
import typing
import pydantic
from ....core.pydantic_utilities import IS_PYDANTIC_V2
from ....core.unchecked_base_model import UncheckedBaseModel
from ...types.team_priority_level import TeamPriorityLevel
class Admin(UncheckedBaseModel):
"""
Admins are teammate accounts that have access to a workspace.
"""
type: typing.Optional[str] = pydantic.Field(default=None)
"""
String representing the object's type. Always has the value `admin`.
"""
id: typing.Optional[str] = pydantic.Field(default=None)
"""
The id representing the admin.
"""
name: typing.Optional[str] = pydantic.Field(default=None)
"""
The name of the admin.
"""
email: typing.Optional[str] = pydantic.Field(default=None)
"""
The email of the admin.
"""
job_title: typing.Optional[str] = pydantic.Field(default=None)
"""
The job title of the admin.
"""
away_mode_enabled: typing.Optional[bool] = pydantic.Field(default=None)
"""
Identifies if this admin is currently set in away mode.
"""
away_mode_reassign: typing.Optional[bool] = pydantic.Field(default=None)
"""
Identifies if this admin is set to automatically reassign new conversations to the apps default inbox.
"""
away_status_reason_id: typing.Optional[int] = pydantic.Field(default=None)
"""
The unique identifier of the away status reason
"""
has_inbox_seat: typing.Optional[bool] = pydantic.Field(default=None)
"""
Identifies if this admin has a paid inbox seat to restrict/allow features that require them.
"""
team_ids: typing.Optional[typing.List[int]] = pydantic.Field(default=None)
"""
This object represents the avatar associated with the admin.
"""
avatar: typing.Optional[str] = pydantic.Field(default=None)
"""
Image for the associated team or teammate
"""
team_priority_level: typing.Optional[TeamPriorityLevel] = None
if IS_PYDANTIC_V2:
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
else:
class Config:
frozen = True
smart_union = True
extra = pydantic.Extra.allow