Skip to content

Commit 0af948c

Browse files
feat(api): add reactions
1 parent fc69586 commit 0af948c

File tree

17 files changed

+382
-124
lines changed

17 files changed

+382
-124
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: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-099d55ac0e749a64dacc1706d7d8276d1acbe52103f0419393c39e8911966cfe.yml
3-
openapi_spec_hash: 70a1b1d513b62c6d6caabbbf360220b4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-3f6555bfea11258c6e8882455360ae08202067a270313716ee15571b83ada577.yml
3+
openapi_spec_hash: 020324a708981384284f8fad8ac8c66c
44
config_hash: 48ff2d23c2ebc82bd3c15787f0041684

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,12 @@ from beeper_desktop_api import BeeperDesktop
209209

210210
client = BeeperDesktop()
211211

212-
reminder = client.chats.reminders.create(
213-
chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
214-
reminder={"remind_at_ms": 0},
212+
chat = client.chats.create(
213+
account_id="accountID",
214+
mode="start",
215+
user={},
215216
)
216-
print(reminder.reminder)
217+
print(chat.user)
217218
```
218219

219220
## File uploads

api.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,23 @@ Methods:
4646
Types:
4747

4848
```python
49-
from beeper_desktop_api.types import Chat, ChatCreateResponse, ChatListResponse, ChatArchiveResponse
49+
from beeper_desktop_api.types import Chat, ChatCreateResponse, ChatListResponse
5050
```
5151

5252
Methods:
5353

5454
- <code title="post /v1/chats">client.chats.<a href="./src/beeper_desktop_api/resources/chats/chats.py">create</a>(\*\*<a href="src/beeper_desktop_api/types/chat_create_params.py">params</a>) -> <a href="./src/beeper_desktop_api/types/chat_create_response.py">ChatCreateResponse</a></code>
5555
- <code title="get /v1/chats/{chatID}">client.chats.<a href="./src/beeper_desktop_api/resources/chats/chats.py">retrieve</a>(chat_id, \*\*<a href="src/beeper_desktop_api/types/chat_retrieve_params.py">params</a>) -> <a href="./src/beeper_desktop_api/types/chat.py">Chat</a></code>
5656
- <code title="get /v1/chats">client.chats.<a href="./src/beeper_desktop_api/resources/chats/chats.py">list</a>(\*\*<a href="src/beeper_desktop_api/types/chat_list_params.py">params</a>) -> <a href="./src/beeper_desktop_api/types/chat_list_response.py">SyncCursorNoLimit[ChatListResponse]</a></code>
57-
- <code title="post /v1/chats/{chatID}/archive">client.chats.<a href="./src/beeper_desktop_api/resources/chats/chats.py">archive</a>(chat_id, \*\*<a href="src/beeper_desktop_api/types/chat_archive_params.py">params</a>) -> <a href="./src/beeper_desktop_api/types/chat_archive_response.py">ChatArchiveResponse</a></code>
57+
- <code title="post /v1/chats/{chatID}/archive">client.chats.<a href="./src/beeper_desktop_api/resources/chats/chats.py">archive</a>(chat_id, \*\*<a href="src/beeper_desktop_api/types/chat_archive_params.py">params</a>) -> None</code>
5858
- <code title="get /v1/chats/search">client.chats.<a href="./src/beeper_desktop_api/resources/chats/chats.py">search</a>(\*\*<a href="src/beeper_desktop_api/types/chat_search_params.py">params</a>) -> <a href="./src/beeper_desktop_api/types/chat.py">SyncCursorSearch[Chat]</a></code>
5959

6060
## Reminders
6161

62-
Types:
63-
64-
```python
65-
from beeper_desktop_api.types.chats import ReminderCreateResponse, ReminderDeleteResponse
66-
```
67-
6862
Methods:
6963

70-
- <code title="post /v1/chats/{chatID}/reminders">client.chats.reminders.<a href="./src/beeper_desktop_api/resources/chats/reminders.py">create</a>(chat_id, \*\*<a href="src/beeper_desktop_api/types/chats/reminder_create_params.py">params</a>) -> <a href="./src/beeper_desktop_api/types/chats/reminder_create_response.py">ReminderCreateResponse</a></code>
71-
- <code title="delete /v1/chats/{chatID}/reminders">client.chats.reminders.<a href="./src/beeper_desktop_api/resources/chats/reminders.py">delete</a>(chat_id) -> <a href="./src/beeper_desktop_api/types/chats/reminder_delete_response.py">ReminderDeleteResponse</a></code>
64+
- <code title="post /v1/chats/{chatID}/reminders">client.chats.reminders.<a href="./src/beeper_desktop_api/resources/chats/reminders.py">create</a>(chat_id, \*\*<a href="src/beeper_desktop_api/types/chats/reminder_create_params.py">params</a>) -> None</code>
65+
- <code title="delete /v1/chats/{chatID}/reminders">client.chats.reminders.<a href="./src/beeper_desktop_api/resources/chats/reminders.py">delete</a>(chat_id) -> None</code>
7266

7367
# Messages
7468

src/beeper_desktop_api/_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def search(
297297
"""
298298
Returns matching chats, participant name matches in groups, and the first page
299299
of messages in one call. Paginate messages via search-messages. Paginate chats
300-
via search-chats. Uses the same sorting as the chat search in the app.
300+
via search-chats.
301301
302302
Args:
303303
query: User-typed search text. Literal word matching (non-semantic).
@@ -585,7 +585,7 @@ async def search(
585585
"""
586586
Returns matching chats, participant name matches in groups, and the first page
587587
of messages in one call. Paginate messages via search-messages. Paginate chats
588-
via search-chats. Uses the same sorting as the chat search in the app.
588+
via search-chats.
589589
590590
Args:
591591
query: User-typed search text. Literal word matching (non-semantic).

src/beeper_desktop_api/resources/accounts/contacts.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ def search(
5555
extra_body: Body | None = None,
5656
timeout: float | httpx.Timeout | None | NotGiven = not_given,
5757
) -> ContactSearchResponse:
58-
"""Search contacts on a specific account using the network's search API.
59-
60-
Only use
61-
for creating new chats.
58+
"""
59+
Search contacts on a specific account using merged account contacts, network
60+
search, and exact identifier lookup.
6261
6362
Args:
6463
account_id: Account ID this resource belongs to.
@@ -122,10 +121,9 @@ async def search(
122121
extra_body: Body | None = None,
123122
timeout: float | httpx.Timeout | None | NotGiven = not_given,
124123
) -> ContactSearchResponse:
125-
"""Search contacts on a specific account using the network's search API.
126-
127-
Only use
128-
for creating new chats.
124+
"""
125+
Search contacts on a specific account using merged account contacts, network
126+
search, and exact identifier lookup.
129127
130128
Args:
131129
account_id: Account ID this resource belongs to.

0 commit comments

Comments
 (0)