Skip to content

Commit 815d6ec

Browse files
release: 0.1.4 (#11)
* feat(api): update via SDK Studio * feat(api): update via SDK Studio * feat(api): update via SDK Studio * feat(api): update via SDK Studio * codegen metadata * codegen metadata * feat(api): update via SDK Studio * feat(api): update via SDK Studio * feat(api): update via SDK Studio * feat(api): update via SDK Studio * feat(api): update via SDK Studio * feat(api): update via SDK Studio * release: 0.1.4 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 57f1cd0 commit 815d6ec

37 files changed

+782
-804
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.3"
2+
".": "0.1.4"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-87403f8095d7110ee66f45c0f912bd20d151b4de5bd43a009f5918da42bb4b7c.yml
3-
openapi_spec_hash: 00e1ccee7456b50ecbb748292853a1b8
4-
config_hash: 0a8ca10ff0088139cac8e3b0d0a1730a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/beeper%2Fbeeper-desktop-api-097cbf5de83619d0b40ba59377494db32816f2a5369d4e986a94568f3d79c7c8.yml
3+
openapi_spec_hash: cbb791aa1e4b75740911af7a0d93529d
4+
config_hash: 35aeee58f2bef9a9f5354e4c8504e26e

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## 0.1.4 (2025-09-01)
4+
5+
Full Changelog: [v0.1.3...v0.1.4](https://github.com/beeper/desktop-api-js/compare/v0.1.3...v0.1.4)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([bbe3626](https://github.com/beeper/desktop-api-js/commit/bbe36264b74f2ae8009e34e45b506e10c1124cc3))
10+
* **api:** update via SDK Studio ([06dd842](https://github.com/beeper/desktop-api-js/commit/06dd8423e1029424eee113dc8d04d0bf8b817c80))
11+
* **api:** update via SDK Studio ([fd90cba](https://github.com/beeper/desktop-api-js/commit/fd90cba2611d50c4279386f2be4aa3952fc44fe6))
12+
* **api:** update via SDK Studio ([7ede9f4](https://github.com/beeper/desktop-api-js/commit/7ede9f4c55d46320237aa3f71a3a6098361999ae))
13+
* **api:** update via SDK Studio ([d1fcd59](https://github.com/beeper/desktop-api-js/commit/d1fcd596528871c739c1eae0f99776f4f4db50ac))
14+
* **api:** update via SDK Studio ([1c6b007](https://github.com/beeper/desktop-api-js/commit/1c6b007ccb14bfaffbb663cc1b701477eea787fc))
15+
* **api:** update via SDK Studio ([f3cb8ed](https://github.com/beeper/desktop-api-js/commit/f3cb8edb6ec2f3cc741604217c05ac30d3a7f4ec))
16+
* **api:** update via SDK Studio ([bc8868a](https://github.com/beeper/desktop-api-js/commit/bc8868aaea478fa02692c32298a4fca8f5992a41))
17+
* **api:** update via SDK Studio ([0aae9fc](https://github.com/beeper/desktop-api-js/commit/0aae9fcca4ffc1028389e7bdba9ccb9fab1c0926))
18+
* **api:** update via SDK Studio ([9cb7c64](https://github.com/beeper/desktop-api-js/commit/9cb7c646abc140f9bbb137a629d2614d344475d6))
19+
320
## 0.1.3 (2025-08-31)
421

522
Full Changelog: [v0.1.2...v0.1.3](https://github.com/beeper/desktop-api-js/compare/v0.1.2...v0.1.3)

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const client = new BeeperDesktop({
2424
accessToken: process.env['BEEPER_ACCESS_TOKEN'], // This is the default and can be omitted
2525
});
2626

27-
const page = await client.chats.search({ limit: 10, type: 'single' });
27+
const page = await client.chats.search({ includeMuted: true, limit: 3, type: 'single' });
2828
const chat = page.items[0];
2929

3030
console.log(chat.id);
@@ -42,7 +42,7 @@ const client = new BeeperDesktop({
4242
accessToken: process.env['BEEPER_ACCESS_TOKEN'], // This is the default and can be omitted
4343
});
4444

45-
const getAccountsResponse: BeeperDesktop.GetAccountsResponse = await client.accounts.list();
45+
const accounts: BeeperDesktop.AccountListResponse = await client.accounts.list();
4646
```
4747

4848
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
@@ -56,7 +56,7 @@ a subclass of `APIError` will be thrown:
5656
<!-- prettier-ignore -->
5757
```ts
5858
const response = await client.messages
59-
.send({ chatID: '!invalid-chat-id', text: 'Test message' })
59+
.send({ chatID: '1229391', text: 'Hello! Just checking in on the project status.' })
6060
.catch(async (err) => {
6161
if (err instanceof BeeperDesktop.APIError) {
6262
console.log(err.status); // 400
@@ -132,7 +132,11 @@ You can use the `for await … of` syntax to iterate through items across all pa
132132
async function fetchAllMessages(params) {
133133
const allMessages = [];
134134
// Automatically fetches more pages as needed.
135-
for await (const message of client.messages.search({ limit: 20, query: 'meeting' })) {
135+
for await (const message of client.messages.search({
136+
accountIDs: ['local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI'],
137+
limit: 10,
138+
query: 'deployment',
139+
})) {
136140
allMessages.push(message);
137141
}
138142
return allMessages;
@@ -142,7 +146,11 @@ async function fetchAllMessages(params) {
142146
Alternatively, you can request a single page at a time:
143147

144148
```ts
145-
let page = await client.messages.search({ limit: 20, query: 'meeting' });
149+
let page = await client.messages.search({
150+
accountIDs: ['local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI'],
151+
limit: 10,
152+
query: 'deployment',
153+
});
146154
for (const message of page.items) {
147155
console.log(message);
148156
}
@@ -172,9 +180,9 @@ const response = await client.accounts.list().asResponse();
172180
console.log(response.headers.get('X-My-Header'));
173181
console.log(response.statusText); // access the underlying Response object
174182

175-
const { data: getAccountsResponse, response: raw } = await client.accounts.list().withResponse();
183+
const { data: accounts, response: raw } = await client.accounts.list().withResponse();
176184
console.log(raw.headers.get('X-My-Header'));
177-
console.log(getAccountsResponse.accounts);
185+
console.log(accounts);
178186
```
179187

180188
### Logging

api.md

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,78 @@
22

33
Types:
44

5-
- <code><a href="./src/resources/shared.ts">Account</a></code>
65
- <code><a href="./src/resources/shared.ts">Attachment</a></code>
76
- <code><a href="./src/resources/shared.ts">BaseResponse</a></code>
8-
- <code><a href="./src/resources/shared.ts">Chat</a></code>
97
- <code><a href="./src/resources/shared.ts">Error</a></code>
108
- <code><a href="./src/resources/shared.ts">Message</a></code>
119
- <code><a href="./src/resources/shared.ts">Reaction</a></code>
1210
- <code><a href="./src/resources/shared.ts">User</a></code>
1311

1412
# Accounts
1513

14+
Types:
15+
16+
- <code><a href="./src/resources/accounts.ts">Account</a></code>
17+
- <code><a href="./src/resources/accounts.ts">AccountListResponse</a></code>
18+
1619
Methods:
1720

18-
- <code title="get /v0/get-accounts">client.accounts.<a href="./src/resources/accounts.ts">list</a>() -> GetAccountsResponse</code>
21+
- <code title="get /v0/get-accounts">client.accounts.<a href="./src/resources/accounts.ts">list</a>() -> AccountListResponse</code>
1922

2023
# App
2124

2225
Types:
2326

24-
- <code><a href="./src/resources/app.ts">AppFocusResponse</a></code>
27+
- <code><a href="./src/resources/app.ts">AppOpenResponse</a></code>
2528

2629
Methods:
2730

28-
- <code title="post /v0/open-app">client.app.<a href="./src/resources/app.ts">focus</a>({ ...params }) -> AppFocusResponse</code>
31+
- <code title="post /v0/open-app">client.app.<a href="./src/resources/app.ts">open</a>({ ...params }) -> AppOpenResponse</code>
2932

3033
# Chats
3134

3235
Types:
3336

34-
- <code><a href="./src/resources/chats.ts">ChatGetResponse</a></code>
37+
- <code><a href="./src/resources/chats/chats.ts">Chat</a></code>
38+
39+
Methods:
40+
41+
- <code title="get /v0/get-chat">client.chats.<a href="./src/resources/chats/chats.ts">retrieve</a>({ ...params }) -> Chat</code>
42+
- <code title="post /v0/archive-chat">client.chats.<a href="./src/resources/chats/chats.ts">archive</a>({ ...params }) -> BaseResponse</code>
43+
- <code title="get /v0/search-chats">client.chats.<a href="./src/resources/chats/chats.ts">search</a>({ ...params }) -> ChatsCursor</code>
44+
45+
## Reminders
3546

3647
Methods:
3748

38-
- <code title="post /v0/archive-chat">client.chats.<a href="./src/resources/chats.ts">archive</a>({ ...params }) -> BaseResponse</code>
39-
- <code title="get /v0/get-chat">client.chats.<a href="./src/resources/chats.ts">get</a>({ ...params }) -> ChatGetResponse | null</code>
40-
- <code title="get /v0/search-chats">client.chats.<a href="./src/resources/chats.ts">search</a>({ ...params }) -> ChatsCursor</code>
49+
- <code title="post /v0/set-chat-reminder">client.chats.reminders.<a href="./src/resources/chats/reminders.ts">create</a>({ ...params }) -> BaseResponse</code>
50+
- <code title="post /v0/clear-chat-reminder">client.chats.reminders.<a href="./src/resources/chats/reminders.ts">delete</a>({ ...params }) -> BaseResponse</code>
4151

4252
# Messages
4353

4454
Types:
4555

46-
- <code><a href="./src/resources/messages.ts">MessageGetAttachmentResponse</a></code>
47-
- <code><a href="./src/resources/messages.ts">MessageSendResponse</a></code>
56+
- <code><a href="./src/resources/messages/messages.ts">MessageSendResponse</a></code>
4857

4958
Methods:
5059

51-
- <code title="post /v0/get-attachment">client.messages.<a href="./src/resources/messages.ts">getAttachment</a>({ ...params }) -> MessageGetAttachmentResponse</code>
52-
- <code title="get /v0/search-messages">client.messages.<a href="./src/resources/messages.ts">search</a>({ ...params }) -> MessagesCursor</code>
53-
- <code title="post /v0/send-message">client.messages.<a href="./src/resources/messages.ts">send</a>({ ...params }) -> MessageSendResponse</code>
60+
- <code title="get /v0/search-messages">client.messages.<a href="./src/resources/messages/messages.ts">search</a>({ ...params }) -> MessagesCursor</code>
61+
- <code title="post /v0/send-message">client.messages.<a href="./src/resources/messages/messages.ts">send</a>({ ...params }) -> MessageSendResponse</code>
62+
63+
## Attachments
64+
65+
Types:
5466

55-
# Reminders
67+
- <code><a href="./src/resources/messages/attachments.ts">AttachmentDownloadResponse</a></code>
5668

5769
Methods:
5870

59-
- <code title="post /v0/clear-chat-reminder">client.reminders.<a href="./src/resources/reminders.ts">clear</a>({ ...params }) -> BaseResponse</code>
60-
- <code title="post /v0/set-chat-reminder">client.reminders.<a href="./src/resources/reminders.ts">set</a>({ ...params }) -> BaseResponse</code>
71+
- <code title="post /v0/download-attachment">client.messages.attachments.<a href="./src/resources/messages/attachments.ts">download</a>({ ...params }) -> AttachmentDownloadResponse</code>
6172

6273
# Token
6374

6475
Types:
6576

66-
- <code><a href="./src/resources/token.ts">GetAccountsResponse</a></code>
6777
- <code><a href="./src/resources/token.ts">RevokeRequest</a></code>
6878
- <code><a href="./src/resources/token.ts">UserInfo</a></code>
6979

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beeper/desktop-api",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "The official TypeScript library for the Beeper Desktop API",
55
"author": "Beeper Desktop <help@beeper.com>",
66
"types": "dist/index.d.ts",

packages/mcp-server/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,21 @@ The following tools are available in this MCP server.
218218

219219
### Resource `app`:
220220

221-
- `open_app` (`write`) tags: [app]: Open Beeper, optionally focusing a chat or message, or pre-filling a draft.
221+
- `open_in_app` (`write`) tags: [app]: Open Beeper, optionally focusing a chat or message, or pre-filling a draft.
222222

223223
### Resource `chats`:
224224

225-
- `archive_chat` (`write`) tags: [chats]: Archive or unarchive a chat.
226225
- `get_chat` (`read`) tags: [chats]: Get chat details: metadata, participants (limited), last activity.
226+
- `archive_chat` (`write`) tags: [chats]: Archive or unarchive a chat.
227227
- `search_chats` (`read`) tags: [chats]: Search chats by inbox, type, unread status, or text. Paginates.
228228

229+
### Resource `chats.reminders`:
230+
231+
- `set_chat_reminder` (`write`) tags: [chats]: Set a reminder for a chat at a specific time.
232+
- `clear_chat_reminder` (`write`) tags: [chats]: Clear a chat reminder.
233+
229234
### Resource `messages`:
230235

231-
- `get_attachment` (`write`) tags: [messages]: Download a message attachment and return the local file path.
232236
- `search_messages` (`read`) tags: [messages]: Search messages across chats using Beeper's message index.
233237
- When to use: find messages by text and/or filters (chatIDs, accountIDs, chatType, media type filters, sender, date ranges).
234238
- CRITICAL: Query is LITERAL WORD MATCHING, NOT semantic search! Only finds messages containing these EXACT words.
@@ -246,7 +250,6 @@ The following tools are available in this MCP server.
246250
Returns: matching messages and referenced chats.
247251
- `send_message` (`write`) tags: [messages]: Send a text message to a specific chat. Supports replying to existing messages. Returns the sent message ID and a deeplink to the chat
248252

249-
### Resource `reminders`:
253+
### Resource `messages.attachments`:
250254

251-
- `clear_chat_reminder` (`write`) tags: [reminders]: Clear a chat reminder.
252-
- `set_chat_reminder` (`write`) tags: [reminders]: Set a reminder for a chat at a specific time.
255+
- `download_attachment` (`write`) tags: [messages]: Download a message attachment and return the local file path.

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beeper/desktop-mcp",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "The official MCP Server for the Beeper Desktop API",
55
"author": "Beeper Desktop <help@beeper.com>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const newMcpServer = () =>
3232
new McpServer(
3333
{
3434
name: 'beeper_desktop_api_api',
35-
version: '0.1.3',
35+
version: '0.1.4',
3636
},
3737
{
3838
capabilities: { tools: {}, logging: {} },

packages/mcp-server/src/tools/app/open-app.ts renamed to packages/mcp-server/src/tools/app/open-in-app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
1515
};
1616

1717
export const tool: Tool = {
18-
name: 'open_app',
18+
name: 'open_in_app',
1919
description: 'Open Beeper, optionally focusing a chat or message, or pre-filling a draft.',
2020
inputSchema: {
2121
type: 'object',
@@ -41,7 +41,7 @@ export const tool: Tool = {
4141

4242
export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
4343
const body = args as any;
44-
return asTextContentResult(await client.app.focus(body));
44+
return asTextContentResult(await client.app.open(body));
4545
};
4646

4747
export default { metadata, tool, handler };

0 commit comments

Comments
 (0)