Skip to content

Commit 4ea0387

Browse files
feat(api): add description field to chats, make title optional
`title` now fallbacks to `null`, instead of an empty string
1 parent 04f1c5f commit 4ea0387

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-0763b61997721da6f4514241bf0f7bb5f7a88c7298baf0f1b2d58036aaf7e2f1.yml
3-
openapi_spec_hash: 5158475919c04bb52fb03c6a4582188d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-bea2e5f3b01053a66261a824c75c2640856d0ba00ad795ab71734c4ab9ae33b0.yml
3+
openapi_spec_hash: d766f6e344c12ca6d23e6ef6713b38c4
44
config_hash: 5fa7ded4bfdffe4cc1944a819da87f9f

src/beeper_desktop_api/types/chat.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ class Chat(BaseModel):
3636
participants: Participants
3737
"""Chat participants information."""
3838

39-
title: str
40-
"""Display title of the chat as computed by the client/server."""
41-
4239
type: Literal["single", "group"]
4340
"""Chat type: 'single' for direct messages, 'group' for group chats."""
4441

4542
unread_count: int = FieldInfo(alias="unreadCount")
4643
"""Number of unread messages."""
4744

45+
description: Optional[str] = None
46+
"""Description of the chat."""
47+
4848
is_archived: Optional[bool] = FieldInfo(alias="isArchived", default=None)
4949
"""True if chat is archived."""
5050

5151
is_muted: Optional[bool] = FieldInfo(alias="isMuted", default=None)
52-
"""True if chat notifications are muted."""
52+
"""True if the chat is muted."""
5353

5454
is_pinned: Optional[bool] = FieldInfo(alias="isPinned", default=None)
55-
"""True if chat is pinned."""
55+
"""True if the chat is pinned."""
5656

5757
last_activity: Optional[datetime] = FieldInfo(alias="lastActivity", default=None)
5858
"""Timestamp of last activity."""
@@ -62,3 +62,6 @@ class Chat(BaseModel):
6262

6363
local_chat_id: Optional[str] = FieldInfo(alias="localChatID", default=None)
6464
"""Local chat ID specific to this Beeper Desktop installation."""
65+
66+
title: Optional[str] = None
67+
"""Display title of the chat."""

0 commit comments

Comments
 (0)