Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/courier/types/users/topic_preference.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ class TopicPreference(BaseModel):
Whether the user has chosen specific delivery channels for this topic (listed in
custom_routing) rather than the topic's default routing.
"""

section_id: Optional[str] = None
"""The unique identifier of the section this topic belongs to.

Always present when listing a user's preferences; omitted by the single-topic
read when the topic has no resolvable section.
"""

section_name: Optional[str] = None
"""The display name of the section this topic belongs to.

Always present when listing a user's preferences; omitted by the single-topic
read when the topic has no resolvable section.
"""