-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcomment_reply.py
More file actions
81 lines (71 loc) · 2.9 KB
/
Copy pathcomment_reply.py
File metadata and controls
81 lines (71 loc) · 2.9 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
# This file was auto-generated by Fern from our API Definition.
import typing
import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .comment_reply_author import CommentReplyAuthor
from .comment_reply_mentioned_users_item import CommentReplyMentionedUsersItem
class CommentReply(UniversalBaseModel):
"""
A comment thread represents a conversation between users on a specific page. Each comment thread has a unique identifier and can contain multiple comments.
"""
id: str = pydantic.Field()
"""
Unique identifier for the comment thread
"""
comment_id: typing_extensions.Annotated[
str,
FieldMetadata(alias="commentId"),
pydantic.Field(alias="commentId", description="The comment reply unique identifier"),
]
site_id: typing_extensions.Annotated[
str, FieldMetadata(alias="siteId"), pydantic.Field(alias="siteId", description="The site unique identifier")
]
page_id: typing_extensions.Annotated[
str, FieldMetadata(alias="pageId"), pydantic.Field(alias="pageId", description="The page unique identifier")
]
locale_id: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="localeId"),
pydantic.Field(alias="localeId", description="The locale unique identifier"),
] = None
breakpoint: str = pydantic.Field()
"""
The breakpoint the comment was left on
"""
content: str = pydantic.Field()
"""
The content of the comment reply
"""
is_resolved: typing_extensions.Annotated[
bool,
FieldMetadata(alias="isResolved"),
pydantic.Field(alias="isResolved", description="Boolean determining if the comment thread is resolved"),
]
author: CommentReplyAuthor
mentioned_users: typing_extensions.Annotated[
typing.Optional[typing.List[CommentReplyMentionedUsersItem]],
FieldMetadata(alias="mentionedUsers"),
pydantic.Field(
alias="mentionedUsers",
description="List of mentioned users is an empty array until email notifications are sent.",
),
] = None
last_updated: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="lastUpdated"),
pydantic.Field(alias="lastUpdated", description="The date the item was last updated"),
] = None
created_on: typing_extensions.Annotated[
typing.Optional[str],
FieldMetadata(alias="createdOn"),
pydantic.Field(alias="createdOn", description="The date the item was created"),
] = 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