-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathmessage.py
More file actions
31 lines (20 loc) · 828 Bytes
/
message.py
File metadata and controls
31 lines (20 loc) · 828 Bytes
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
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from typing_extensions import Literal
from ..._models import BaseModel
__all__ = ["Message"]
class Message(BaseModel):
id: str
"""The id representing the message."""
body: str
"""The message body, which may contain HTML."""
created_at: int
"""The time the conversation was created."""
message_type: Literal["email", "inapp", "facebook", "twitter"]
"""The type of message that was sent. Can be email, inapp, facebook or twitter."""
type: str
"""The type of the message"""
conversation_id: Optional[str] = None
"""The associated conversation_id"""
subject: Optional[str] = None
"""The subject of the message. Only present if message_type: email."""