From b5038e6212017efb868204ccfca466ecf82459f6 Mon Sep 17 00:00:00 2001 From: courier-codegen Date: Tue, 18 Aug 2026 22:19:50 +0000 Subject: [PATCH] feat(api): document section_id and section_name on a user's topic preference --- src/courier/types/users/topic_preference.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/courier/types/users/topic_preference.py b/src/courier/types/users/topic_preference.py index b719e0e..5765637 100644 --- a/src/courier/types/users/topic_preference.py +++ b/src/courier/types/users/topic_preference.py @@ -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. + """