-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathactivity_log_metadata.py
More file actions
114 lines (90 loc) · 3.37 KB
/
activity_log_metadata.py
File metadata and controls
114 lines (90 loc) · 3.37 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# This file was auto-generated by Fern from our API Definition.
import datetime as dt
import typing
import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel
from .activity_log_metadata_team import ActivityLogMetadataTeam
class ActivityLogMetadata(UncheckedBaseModel):
"""
Additional data provided about Admin activity.
"""
sign_in_method: typing.Optional[str] = pydantic.Field(default=None)
"""
The way the admin signed in.
"""
external_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The unique identifier for the contact which is provided by the Client.
"""
away_mode: typing.Optional[bool] = pydantic.Field(default=None)
"""
The away mode status which is set to true when away and false when returned.
"""
away_status_reason: typing.Optional[str] = pydantic.Field(default=None)
"""
The reason the Admin is away.
"""
reassign_conversations: typing.Optional[bool] = pydantic.Field(default=None)
"""
Indicates if conversations should be reassigned while an Admin is away.
"""
source: typing.Optional[str] = pydantic.Field(default=None)
"""
The action that initiated the status change.
"""
auto_changed: typing.Optional[str] = pydantic.Field(default=None)
"""
Indicates if the status was changed automatically or manually.
"""
update_by: typing.Optional[int] = pydantic.Field(default=None)
"""
The ID of the Admin who initiated the activity.
"""
update_by_name: typing.Optional[str] = pydantic.Field(default=None)
"""
The name of the Admin who initiated the activity.
"""
conversation_assignment_limit: typing.Optional[int] = pydantic.Field(default=None)
"""
The conversation assignment limit value for an admin.
"""
ticket_assignment_limit: typing.Optional[int] = pydantic.Field(default=None)
"""
The ticket assignment limit value for an admin.
"""
team: typing.Optional[ActivityLogMetadataTeam] = pydantic.Field(default=None)
"""
Details about the team whose assignment limit was changed.
"""
team_assignment_limit: typing.Optional[int] = pydantic.Field(default=None)
"""
The team assignment limit value (null if limit was removed).
"""
enabled: typing.Optional[bool] = pydantic.Field(default=None)
"""
Indicates if the setting is enabled or disabled.
"""
consent_id: typing.Optional[int] = pydantic.Field(default=None)
"""
The ID of the impersonation consent.
"""
expired_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
"""
The timestamp when the impersonation consent expires.
"""
before: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
"""
The state of settings or values before the change. Structure varies by activity type.
"""
after: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
"""
The state of settings or values after the change. Structure varies by activity type.
"""
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