Skip to content

Commit b18ee1e

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

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
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/resources/chats/chats.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ export interface Chat {
145145
*/
146146
participants: Chat.Participants;
147147

148-
/**
149-
* Display title of the chat as computed by the client/server.
150-
*/
151-
title: string;
152-
153148
/**
154149
* Chat type: 'single' for direct messages, 'group' for group chats.
155150
*/
@@ -160,18 +155,23 @@ export interface Chat {
160155
*/
161156
unreadCount: number;
162157

158+
/**
159+
* Description of the chat.
160+
*/
161+
description?: string | null;
162+
163163
/**
164164
* True if chat is archived.
165165
*/
166166
isArchived?: boolean;
167167

168168
/**
169-
* True if chat notifications are muted.
169+
* True if the chat is muted.
170170
*/
171171
isMuted?: boolean;
172172

173173
/**
174-
* True if chat is pinned.
174+
* True if the chat is pinned.
175175
*/
176176
isPinned?: boolean;
177177

@@ -189,6 +189,11 @@ export interface Chat {
189189
* Local chat ID specific to this Beeper Desktop installation.
190190
*/
191191
localChatID?: string | null;
192+
193+
/**
194+
* Display title of the chat.
195+
*/
196+
title?: string | null;
192197
}
193198

194199
export namespace Chat {

0 commit comments

Comments
 (0)