Skip to main content

Post

KeyTypeDescriptionOptional
idstringUnique identifier for the post.
attachmentsAttachment[]List of attachments associated with the post.
commentsCountnumberNumber of comments on the post.
createdAtnumberTimestamp when the post was created.
headingstringHeading or title of the post.
isEditedbooleanWhether the post has been edited.
isLikedbooleanWhether the post is liked by the current user.
isPinnedbooleanWhether the post is pinned in the community.
isRepostbooleanWhether the post is a repost of another post.
isRepostedByUserbooleanWhether the post has been reposted by the current user.
isSavedbooleanWhether the post is saved by the user.
likesCountnumberNumber of likes on the post.
menuItemsMenuItem[]Menu items available for actions on the post.
repostCountnumberNumber of reposts of the post.
tempIdnull or stringTemporary ID for the post used during creation (before persisting).✔️
textstringText content of the post.
topicsstring[]Topics or tags associated with the post.
updatedAtnumberTimestamp when the post was last updated.
uuidstringUniversally unique identifier (UUID) for the post.
repliesReply[]List of replies to the post.✔️
commentIdsstring[]List of comment IDs associated with the post.✔️
isAnonymousbooleantrue if the post is anonymous, false otherwise.
isHiddenbooleantrue if the post is hidden

PollMultipleSelectState

enum PollMultipleSelectState {
EXACTLY = "exactly",
AT_MAX = "at_max",
AT_LEAST = "at_least",
}

PollType

enum PollType {
INSTANT = "instant",
DEFERRED = "deferred",
}