-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathconversation_part.py
More file actions
104 lines (84 loc) · 3.37 KB
/
conversation_part.py
File metadata and controls
104 lines (84 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
# 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 ..tags.types.tag_basic import TagBasic
from .conversation_part_author import ConversationPartAuthor
from .conversation_part_metadata import ConversationPartMetadata
from .conversation_part_state import ConversationPartState
from .email_message_metadata import EmailMessageMetadata
from .event_details import EventDetails
from .part_attachment import PartAttachment
from .reference import Reference
class ConversationPart(UncheckedBaseModel):
"""
A Conversation Part represents a message in the conversation.
"""
type: typing.Optional[str] = pydantic.Field(default=None)
"""
Always conversation_part
"""
id: typing.Optional[str] = pydantic.Field(default=None)
"""
The id representing the conversation part.
"""
part_type: typing.Optional[str] = pydantic.Field(default=None)
"""
The type of conversation part.
"""
body: typing.Optional[str] = pydantic.Field(default=None)
"""
The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured.
"""
created_at: typing.Optional[int] = pydantic.Field(default=None)
"""
The time the conversation part was created.
"""
updated_at: typing.Optional[int] = pydantic.Field(default=None)
"""
The last time the conversation part was updated.
"""
notified_at: typing.Optional[int] = pydantic.Field(default=None)
"""
The time the user was notified with the conversation part.
"""
assigned_to: typing.Optional[Reference] = pydantic.Field(default=None)
"""
The id of the admin that was assigned the conversation by this conversation_part (null if there has been no change in assignment.)
"""
author: typing.Optional[ConversationPartAuthor] = None
attachments: typing.Optional[typing.List[PartAttachment]] = pydantic.Field(default=None)
"""
A list of attachments for the part.
"""
external_id: typing.Optional[str] = pydantic.Field(default=None)
"""
The external id of the conversation part
"""
redacted: typing.Optional[bool] = pydantic.Field(default=None)
"""
Whether or not the conversation part has been redacted.
"""
email_message_metadata: typing.Optional[EmailMessageMetadata] = None
metadata: typing.Optional[ConversationPartMetadata] = None
state: typing.Optional[ConversationPartState] = pydantic.Field(default=None)
"""
Indicates the current state of conversation when the conversation part was created.
"""
tags: typing.Optional[typing.List[TagBasic]] = pydantic.Field(default=None)
"""
A list of tags objects associated with the conversation part.
"""
event_details: typing.Optional[EventDetails] = None
app_package_code: typing.Optional[str] = pydantic.Field(default=None)
"""
The app package code if this part was created via API. null if the part was not created via API.
"""
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