@beeper/desktop-mcp 0.1.5 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/README.md +10 -14
  2. package/docs-search-tool.d.mts +44 -0
  3. package/docs-search-tool.d.mts.map +1 -0
  4. package/docs-search-tool.d.ts +44 -0
  5. package/docs-search-tool.d.ts.map +1 -0
  6. package/docs-search-tool.js +43 -0
  7. package/docs-search-tool.js.map +1 -0
  8. package/docs-search-tool.mjs +39 -0
  9. package/docs-search-tool.mjs.map +1 -0
  10. package/handlers/get-accounts.d.mts +3 -0
  11. package/handlers/get-accounts.d.mts.map +1 -0
  12. package/handlers/get-accounts.d.ts +3 -0
  13. package/handlers/get-accounts.d.ts.map +1 -0
  14. package/handlers/get-accounts.js +32 -0
  15. package/handlers/get-accounts.js.map +1 -0
  16. package/handlers/get-accounts.mjs +28 -0
  17. package/handlers/get-accounts.mjs.map +1 -0
  18. package/handlers/get-chat.d.mts +3 -0
  19. package/handlers/get-chat.d.mts.map +1 -0
  20. package/handlers/get-chat.d.ts +3 -0
  21. package/handlers/get-chat.d.ts.map +1 -0
  22. package/handlers/get-chat.js +20 -0
  23. package/handlers/get-chat.js.map +1 -0
  24. package/handlers/get-chat.mjs +16 -0
  25. package/handlers/get-chat.mjs.map +1 -0
  26. package/handlers/index.d.mts +3 -0
  27. package/handlers/index.d.mts.map +1 -0
  28. package/handlers/index.d.ts +3 -0
  29. package/handlers/index.d.ts.map +1 -0
  30. package/handlers/index.js +30 -0
  31. package/handlers/index.js.map +1 -0
  32. package/handlers/index.mjs +27 -0
  33. package/handlers/index.mjs.map +1 -0
  34. package/handlers/list-chats.d.mts +3 -0
  35. package/handlers/list-chats.d.mts.map +1 -0
  36. package/handlers/list-chats.d.ts +3 -0
  37. package/handlers/list-chats.d.ts.map +1 -0
  38. package/handlers/list-chats.js +46 -0
  39. package/handlers/list-chats.js.map +1 -0
  40. package/handlers/list-chats.mjs +42 -0
  41. package/handlers/list-chats.mjs.map +1 -0
  42. package/handlers/list-messages.d.mts +3 -0
  43. package/handlers/list-messages.d.mts.map +1 -0
  44. package/handlers/list-messages.d.ts +3 -0
  45. package/handlers/list-messages.d.ts.map +1 -0
  46. package/handlers/list-messages.js +34 -0
  47. package/handlers/list-messages.js.map +1 -0
  48. package/handlers/list-messages.mjs +30 -0
  49. package/handlers/list-messages.mjs.map +1 -0
  50. package/handlers/open-app.d.mts +3 -0
  51. package/handlers/open-app.d.mts.map +1 -0
  52. package/handlers/open-app.d.ts +3 -0
  53. package/handlers/open-app.d.ts.map +1 -0
  54. package/handlers/open-app.js +26 -0
  55. package/handlers/open-app.js.map +1 -0
  56. package/handlers/open-app.mjs +22 -0
  57. package/handlers/open-app.mjs.map +1 -0
  58. package/handlers/search-chats.d.mts +3 -0
  59. package/handlers/search-chats.d.mts.map +1 -0
  60. package/handlers/search-chats.d.ts +3 -0
  61. package/handlers/search-chats.d.ts.map +1 -0
  62. package/handlers/search-chats.js +38 -0
  63. package/handlers/search-chats.js.map +1 -0
  64. package/handlers/search-chats.mjs +34 -0
  65. package/handlers/search-chats.mjs.map +1 -0
  66. package/handlers/search-messages.d.mts +3 -0
  67. package/handlers/search-messages.d.mts.map +1 -0
  68. package/handlers/search-messages.d.ts +3 -0
  69. package/handlers/search-messages.d.ts.map +1 -0
  70. package/handlers/search-messages.js +11 -0
  71. package/handlers/search-messages.js.map +1 -0
  72. package/handlers/search-messages.mjs +7 -0
  73. package/handlers/search-messages.mjs.map +1 -0
  74. package/handlers/search.d.mts +3 -0
  75. package/handlers/search.d.mts.map +1 -0
  76. package/handlers/search.d.ts +3 -0
  77. package/handlers/search.d.ts.map +1 -0
  78. package/handlers/search.js +29 -0
  79. package/handlers/search.js.map +1 -0
  80. package/handlers/search.mjs +25 -0
  81. package/handlers/search.mjs.map +1 -0
  82. package/handlers/send-message.d.mts +3 -0
  83. package/handlers/send-message.d.mts.map +1 -0
  84. package/handlers/send-message.d.ts +3 -0
  85. package/handlers/send-message.d.ts.map +1 -0
  86. package/handlers/send-message.js +20 -0
  87. package/handlers/send-message.js.map +1 -0
  88. package/handlers/send-message.mjs +16 -0
  89. package/handlers/send-message.mjs.map +1 -0
  90. package/handlers/utils.d.mts +29 -0
  91. package/handlers/utils.d.mts.map +1 -0
  92. package/handlers/utils.d.ts +29 -0
  93. package/handlers/utils.d.ts.map +1 -0
  94. package/handlers/utils.js +296 -0
  95. package/handlers/utils.js.map +1 -0
  96. package/handlers/utils.mjs +282 -0
  97. package/handlers/utils.mjs.map +1 -0
  98. package/http.d.mts +6 -0
  99. package/http.d.mts.map +1 -1
  100. package/http.d.ts +6 -0
  101. package/http.d.ts.map +1 -1
  102. package/http.js +7 -4
  103. package/http.js.map +1 -1
  104. package/http.mjs +3 -3
  105. package/http.mjs.map +1 -1
  106. package/options.d.mts +1 -0
  107. package/options.d.mts.map +1 -1
  108. package/options.d.ts +1 -0
  109. package/options.d.ts.map +1 -1
  110. package/options.js +13 -6
  111. package/options.js.map +1 -1
  112. package/options.mjs +13 -6
  113. package/options.mjs.map +1 -1
  114. package/package.json +23 -2
  115. package/server.d.mts.map +1 -1
  116. package/server.d.ts.map +1 -1
  117. package/server.js +8 -4
  118. package/server.js.map +1 -1
  119. package/server.mjs +8 -4
  120. package/server.mjs.map +1 -1
  121. package/src/docs-search-tool.ts +48 -0
  122. package/src/handlers/get-accounts.ts +28 -0
  123. package/src/handlers/get-chat.ts +18 -0
  124. package/src/handlers/index.ts +29 -0
  125. package/src/handlers/list-chats.ts +47 -0
  126. package/src/handlers/list-messages.ts +33 -0
  127. package/src/handlers/open-app.ts +20 -0
  128. package/src/handlers/search-chats.ts +39 -0
  129. package/src/handlers/search-messages.ts +8 -0
  130. package/src/handlers/search.ts +24 -0
  131. package/src/handlers/send-message.ts +17 -0
  132. package/src/handlers/utils.ts +381 -0
  133. package/src/http.ts +3 -3
  134. package/src/options.ts +17 -7
  135. package/src/server.ts +8 -5
  136. package/src/tools/accounts/get-accounts.ts +3 -3
  137. package/src/tools/chats/archive-chat.ts +6 -6
  138. package/src/tools/chats/get-chat.ts +6 -7
  139. package/src/tools/chats/reminders/clear-chat-reminder.ts +10 -8
  140. package/src/tools/chats/reminders/set-chat-reminder.ts +6 -5
  141. package/src/tools/chats/search-chats.ts +5 -5
  142. package/src/tools/index.ts +8 -5
  143. package/src/tools/messages/list-messages.ts +51 -0
  144. package/src/tools/messages/search-messages.ts +6 -7
  145. package/src/tools/messages/send-message.ts +5 -5
  146. package/src/tools/{app/open-in-app.ts → top-level/focus-app.ts} +6 -6
  147. package/src/tools/{app → top-level}/search.ts +3 -3
  148. package/tools/accounts/get-accounts.js +3 -3
  149. package/tools/accounts/get-accounts.js.map +1 -1
  150. package/tools/accounts/get-accounts.mjs +3 -3
  151. package/tools/accounts/get-accounts.mjs.map +1 -1
  152. package/tools/chats/archive-chat.d.mts.map +1 -1
  153. package/tools/chats/archive-chat.d.ts.map +1 -1
  154. package/tools/chats/archive-chat.js +6 -5
  155. package/tools/chats/archive-chat.js.map +1 -1
  156. package/tools/chats/archive-chat.mjs +6 -5
  157. package/tools/chats/archive-chat.mjs.map +1 -1
  158. package/tools/chats/get-chat.d.mts.map +1 -1
  159. package/tools/chats/get-chat.d.ts.map +1 -1
  160. package/tools/chats/get-chat.js +6 -6
  161. package/tools/chats/get-chat.js.map +1 -1
  162. package/tools/chats/get-chat.mjs +6 -6
  163. package/tools/chats/get-chat.mjs.map +1 -1
  164. package/tools/chats/reminders/clear-chat-reminder.d.mts.map +1 -1
  165. package/tools/chats/reminders/clear-chat-reminder.d.ts.map +1 -1
  166. package/tools/chats/reminders/clear-chat-reminder.js +10 -7
  167. package/tools/chats/reminders/clear-chat-reminder.js.map +1 -1
  168. package/tools/chats/reminders/clear-chat-reminder.mjs +10 -7
  169. package/tools/chats/reminders/clear-chat-reminder.mjs.map +1 -1
  170. package/tools/chats/reminders/set-chat-reminder.d.mts.map +1 -1
  171. package/tools/chats/reminders/set-chat-reminder.d.ts.map +1 -1
  172. package/tools/chats/reminders/set-chat-reminder.js +6 -5
  173. package/tools/chats/reminders/set-chat-reminder.js.map +1 -1
  174. package/tools/chats/reminders/set-chat-reminder.mjs +6 -5
  175. package/tools/chats/reminders/set-chat-reminder.mjs.map +1 -1
  176. package/tools/chats/search-chats.js +5 -5
  177. package/tools/chats/search-chats.js.map +1 -1
  178. package/tools/chats/search-chats.mjs +5 -5
  179. package/tools/chats/search-chats.mjs.map +1 -1
  180. package/tools/index.d.mts.map +1 -1
  181. package/tools/index.d.ts.map +1 -1
  182. package/tools/index.js +8 -5
  183. package/tools/index.js.map +1 -1
  184. package/tools/index.mjs +8 -5
  185. package/tools/index.mjs.map +1 -1
  186. package/tools/messages/list-messages.d.mts +45 -0
  187. package/tools/messages/list-messages.d.mts.map +1 -0
  188. package/tools/messages/list-messages.d.ts +45 -0
  189. package/tools/messages/list-messages.d.ts.map +1 -0
  190. package/tools/messages/list-messages.js +47 -0
  191. package/tools/messages/list-messages.js.map +1 -0
  192. package/tools/messages/list-messages.mjs +43 -0
  193. package/tools/messages/list-messages.mjs.map +1 -0
  194. package/tools/messages/search-messages.d.mts.map +1 -1
  195. package/tools/messages/search-messages.d.ts.map +1 -1
  196. package/tools/messages/search-messages.js +6 -6
  197. package/tools/messages/search-messages.js.map +1 -1
  198. package/tools/messages/search-messages.mjs +6 -6
  199. package/tools/messages/search-messages.mjs.map +1 -1
  200. package/tools/messages/send-message.js +5 -5
  201. package/tools/messages/send-message.js.map +1 -1
  202. package/tools/messages/send-message.mjs +5 -5
  203. package/tools/messages/send-message.mjs.map +1 -1
  204. package/tools/{app/open-in-app.d.ts → top-level/focus-app.d.mts} +1 -1
  205. package/tools/top-level/focus-app.d.mts.map +1 -0
  206. package/tools/{app/open-in-app.d.mts → top-level/focus-app.d.ts} +1 -1
  207. package/tools/top-level/focus-app.d.ts.map +1 -0
  208. package/tools/{app/open-in-app.js → top-level/focus-app.js} +7 -7
  209. package/tools/top-level/focus-app.js.map +1 -0
  210. package/tools/{app/open-in-app.mjs → top-level/focus-app.mjs} +7 -7
  211. package/tools/top-level/focus-app.mjs.map +1 -0
  212. package/tools/top-level/search.d.mts.map +1 -0
  213. package/tools/top-level/search.d.ts.map +1 -0
  214. package/tools/{app → top-level}/search.js +3 -3
  215. package/tools/top-level/search.js.map +1 -0
  216. package/tools/{app → top-level}/search.mjs +3 -3
  217. package/tools/top-level/search.mjs.map +1 -0
  218. package/tools/app/open-in-app.d.mts.map +0 -1
  219. package/tools/app/open-in-app.d.ts.map +0 -1
  220. package/tools/app/open-in-app.js.map +0 -1
  221. package/tools/app/open-in-app.mjs.map +0 -1
  222. package/tools/app/search.d.mts.map +0 -1
  223. package/tools/app/search.d.ts.map +0 -1
  224. package/tools/app/search.js.map +0 -1
  225. package/tools/app/search.mjs.map +0 -1
  226. /package/tools/{app → top-level}/search.d.mts +0 -0
  227. /package/tools/{app → top-level}/search.d.ts +0 -0
@@ -10,8 +10,8 @@ export const metadata: Metadata = {
10
10
  operation: 'write',
11
11
  tags: ['chats'],
12
12
  httpMethod: 'post',
13
- httpPath: '/v0/set-chat-reminder',
14
- operationId: 'set_chat_reminder',
13
+ httpPath: '/v1/chats/{chatID}/reminders',
14
+ operationId: 'setChatReminder',
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
@@ -22,7 +22,7 @@ export const tool: Tool = {
22
22
  properties: {
23
23
  chatID: {
24
24
  type: 'string',
25
- description: 'The identifier of the chat to set reminder for (accepts both chatID and local chat ID)',
25
+ description: 'Unique identifier of the chat.',
26
26
  },
27
27
  reminder: {
28
28
  type: 'object',
@@ -46,8 +46,9 @@ export const tool: Tool = {
46
46
  };
47
47
 
48
48
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
49
- const body = args as any;
50
- return asTextContentResult(await client.chats.reminders.create(body));
49
+ const { chatID, ...body } = args as any;
50
+ const response = await client.chats.reminders.create(chatID, body).asResponse();
51
+ return asTextContentResult(await response.text());
51
52
  };
52
53
 
53
54
  export default { metadata, tool, handler };
@@ -10,8 +10,8 @@ export const metadata: Metadata = {
10
10
  operation: 'read',
11
11
  tags: ['chats'],
12
12
  httpMethod: 'get',
13
- httpPath: '/v0/search-chats',
14
- operationId: 'search_chats',
13
+ httpPath: '/v1/chats/search',
14
+ operationId: 'searchChats',
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
@@ -26,17 +26,17 @@ export const tool: Tool = {
26
26
  description: 'Provide an array of account IDs to filter chats from specific messaging accounts only',
27
27
  items: {
28
28
  type: 'string',
29
- description: 'Beeper account ID this resource belongs to.',
29
+ description: 'Account ID this resource belongs to.',
30
30
  },
31
31
  },
32
32
  cursor: {
33
33
  type: 'string',
34
- description: 'Pagination cursor from previous response. Use with direction to navigate results',
34
+ description: "Opaque pagination cursor; do not inspect. Use together with 'direction'.",
35
35
  },
36
36
  direction: {
37
37
  type: 'string',
38
38
  description:
39
- 'Pagination direction: "after" for newer page, "before" for older page. Defaults to "before" when only cursor is provided.',
39
+ "Pagination direction used with 'cursor': 'before' fetches older results, 'after' fetches newer results. Defaults to 'before' when only 'cursor' is provided.",
40
40
  enum: ['after', 'before'],
41
41
  },
42
42
  inbox: {
@@ -4,31 +4,34 @@ import { Metadata, Endpoint, HandlerFunction } from './types';
4
4
 
5
5
  export { Metadata, Endpoint, HandlerFunction };
6
6
 
7
+ import focus_app from './top-level/focus-app';
8
+ import search from './top-level/search';
7
9
  import get_accounts from './accounts/get-accounts';
8
- import open_in_app from './app/open-in-app';
9
- import search from './app/search';
10
10
  import get_chat from './chats/get-chat';
11
11
  import archive_chat from './chats/archive-chat';
12
12
  import search_chats from './chats/search-chats';
13
13
  import set_chat_reminder from './chats/reminders/set-chat-reminder';
14
14
  import clear_chat_reminder from './chats/reminders/clear-chat-reminder';
15
+ import list_messages from './messages/list-messages';
15
16
  import search_messages from './messages/search-messages';
16
17
  import send_message from './messages/send-message';
18
+ import { mapEndpoint } from '../handlers';
17
19
 
18
20
  export const endpoints: Endpoint[] = [];
19
21
 
20
22
  function addEndpoint(endpoint: Endpoint) {
21
- endpoints.push(endpoint);
23
+ endpoints.push(mapEndpoint(endpoint));
22
24
  }
23
25
 
24
- addEndpoint(get_accounts);
25
- addEndpoint(open_in_app);
26
+ addEndpoint(focus_app);
26
27
  addEndpoint(search);
28
+ addEndpoint(get_accounts);
27
29
  addEndpoint(get_chat);
28
30
  addEndpoint(archive_chat);
29
31
  addEndpoint(search_chats);
30
32
  addEndpoint(set_chat_reminder);
31
33
  addEndpoint(clear_chat_reminder);
34
+ addEndpoint(list_messages);
32
35
  addEndpoint(search_messages);
33
36
  addEndpoint(send_message);
34
37
 
@@ -0,0 +1,51 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { Metadata, asTextContentResult } from '@beeper/desktop-mcp/tools/types';
4
+
5
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
+ import BeeperDesktop from '@beeper/desktop-api';
7
+
8
+ export const metadata: Metadata = {
9
+ resource: 'messages',
10
+ operation: 'read',
11
+ tags: ['messages'],
12
+ httpMethod: 'get',
13
+ httpPath: '/v1/chats/{chatID}/messages',
14
+ operationId: 'listMessages',
15
+ };
16
+
17
+ export const tool: Tool = {
18
+ name: 'list_messages',
19
+ description: 'List messages from a specific chat with pagination support.',
20
+ inputSchema: {
21
+ type: 'object',
22
+ properties: {
23
+ chatID: {
24
+ type: 'string',
25
+ description: 'Unique identifier of the chat.',
26
+ },
27
+ cursor: {
28
+ type: 'string',
29
+ description: "Opaque pagination cursor; do not inspect. Use together with 'direction'.",
30
+ },
31
+ direction: {
32
+ type: 'string',
33
+ description:
34
+ "Pagination direction used with 'cursor': 'before' fetches older results, 'after' fetches newer results. Defaults to 'before' when only 'cursor' is provided.",
35
+ enum: ['after', 'before'],
36
+ },
37
+ },
38
+ required: ['chatID'],
39
+ },
40
+ annotations: {
41
+ readOnlyHint: true,
42
+ },
43
+ };
44
+
45
+ export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
46
+ const { chatID, ...body } = args as any;
47
+ const response = await client.messages.list(chatID, body).asResponse();
48
+ return asTextContentResult(await response.json());
49
+ };
50
+
51
+ export default { metadata, tool, handler };
@@ -10,8 +10,8 @@ export const metadata: Metadata = {
10
10
  operation: 'read',
11
11
  tags: ['messages'],
12
12
  httpMethod: 'get',
13
- httpPath: '/v0/search-messages',
14
- operationId: 'search_messages',
13
+ httpPath: '/v1/messages/search',
14
+ operationId: 'searchMessages',
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
@@ -23,15 +23,15 @@ export const tool: Tool = {
23
23
  properties: {
24
24
  accountIDs: {
25
25
  type: 'array',
26
- description: 'Limit search to specific Beeper account IDs (bridge instances).',
26
+ description: 'Limit search to specific account IDs.',
27
27
  items: {
28
28
  type: 'string',
29
- description: 'Beeper account ID this resource belongs to.',
29
+ description: 'Account ID this resource belongs to.',
30
30
  },
31
31
  },
32
32
  chatIDs: {
33
33
  type: 'array',
34
- description: 'Limit search to specific Beeper chat IDs.',
34
+ description: 'Limit search to specific chat IDs.',
35
35
  items: {
36
36
  type: 'string',
37
37
  },
@@ -75,8 +75,7 @@ export const tool: Tool = {
75
75
  },
76
76
  limit: {
77
77
  type: 'integer',
78
- description:
79
- 'Maximum number of messages to return (1–500). Defaults to 20. The current implementation caps each page at 20 items even if a higher limit is requested.',
78
+ description: 'Maximum number of messages to return.',
80
79
  },
81
80
  mediaTypes: {
82
81
  type: 'array',
@@ -10,8 +10,8 @@ export const metadata: Metadata = {
10
10
  operation: 'write',
11
11
  tags: ['messages'],
12
12
  httpMethod: 'post',
13
- httpPath: '/v0/send-message',
14
- operationId: 'send_message',
13
+ httpPath: '/v1/chats/{chatID}/messages',
14
+ operationId: 'sendMessage',
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
@@ -23,7 +23,7 @@ export const tool: Tool = {
23
23
  properties: {
24
24
  chatID: {
25
25
  type: 'string',
26
- description: 'Unique identifier of the chat (a.k.a. room or thread).',
26
+ description: 'Unique identifier of the chat.',
27
27
  },
28
28
  replyToMessageID: {
29
29
  type: 'string',
@@ -40,8 +40,8 @@ export const tool: Tool = {
40
40
  };
41
41
 
42
42
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
43
- const body = args as any;
44
- return asTextContentResult(await client.messages.send(body));
43
+ const { chatID, ...body } = args as any;
44
+ return asTextContentResult(await client.messages.send(chatID, body));
45
45
  };
46
46
 
47
47
  export default { metadata, tool, handler };
@@ -6,18 +6,18 @@ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import BeeperDesktop from '@beeper/desktop-api';
7
7
 
8
8
  export const metadata: Metadata = {
9
- resource: 'app',
9
+ resource: '$client',
10
10
  operation: 'write',
11
11
  tags: ['app'],
12
12
  httpMethod: 'post',
13
- httpPath: '/v0/open-app',
14
- operationId: 'open_app',
13
+ httpPath: '/v1/focus',
14
+ operationId: 'focusApp',
15
15
  };
16
16
 
17
17
  export const tool: Tool = {
18
- name: 'open_in_app',
18
+ name: 'focus_app',
19
19
  description:
20
- 'Open Beeper Desktop and optionally navigate to a specific chat, message, or pre-fill draft text and attachment.',
20
+ 'Focus Beeper Desktop and optionally navigate to a specific chat, message, or pre-fill draft text and attachment.',
21
21
  inputSchema: {
22
22
  type: 'object',
23
23
  properties: {
@@ -46,7 +46,7 @@ export const tool: Tool = {
46
46
 
47
47
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
48
48
  const body = args as any;
49
- return asTextContentResult(await client.app.open(body));
49
+ return asTextContentResult(await client.focus(body));
50
50
  };
51
51
 
52
52
  export default { metadata, tool, handler };
@@ -6,11 +6,11 @@ import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
6
  import BeeperDesktop from '@beeper/desktop-api';
7
7
 
8
8
  export const metadata: Metadata = {
9
- resource: 'app',
9
+ resource: '$client',
10
10
  operation: 'read',
11
11
  tags: ['app'],
12
12
  httpMethod: 'get',
13
- httpPath: '/v0/search',
13
+ httpPath: '/v1/search',
14
14
  operationId: 'search',
15
15
  };
16
16
 
@@ -35,7 +35,7 @@ export const tool: Tool = {
35
35
 
36
36
  export const handler = async (client: BeeperDesktop, args: Record<string, unknown> | undefined) => {
37
37
  const body = args as any;
38
- return asTextContentResult(await client.app.search(body));
38
+ return asTextContentResult(await client.search(body));
39
39
  };
40
40
 
41
41
  export default { metadata, tool, handler };
@@ -8,12 +8,12 @@ exports.metadata = {
8
8
  operation: 'read',
9
9
  tags: ['accounts'],
10
10
  httpMethod: 'get',
11
- httpPath: '/v0/get-accounts',
12
- operationId: 'get_accounts',
11
+ httpPath: '/v1/accounts',
12
+ operationId: 'getAccounts',
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'get_accounts',
16
- description: 'List connected accounts on this device. Use to pick account context.',
16
+ description: 'List connected accounts on this device.',
17
17
  inputSchema: {
18
18
  type: 'object',
19
19
  properties: {},
@@ -1 +1 @@
1
- {"version":3,"file":"get-accounts.js","sourceRoot":"","sources":["../../src/tools/accounts/get-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,sEAAsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"get-accounts.js","sourceRoot":"","sources":["../../src/tools/accounts/get-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,yCAAyC;IACtD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AAFW,QAAA,OAAO,WAElB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -5,12 +5,12 @@ export const metadata = {
5
5
  operation: 'read',
6
6
  tags: ['accounts'],
7
7
  httpMethod: 'get',
8
- httpPath: '/v0/get-accounts',
9
- operationId: 'get_accounts',
8
+ httpPath: '/v1/accounts',
9
+ operationId: 'getAccounts',
10
10
  };
11
11
  export const tool = {
12
12
  name: 'get_accounts',
13
- description: 'List connected accounts on this device. Use to pick account context.',
13
+ description: 'List connected accounts on this device.',
14
14
  inputSchema: {
15
15
  type: 'object',
16
16
  properties: {},
@@ -1 +1 @@
1
- {"version":3,"file":"get-accounts.mjs","sourceRoot":"","sources":["../../src/tools/accounts/get-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,sEAAsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"get-accounts.mjs","sourceRoot":"","sources":["../../src/tools/accounts/get-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,yCAAyC;IACtD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.d.mts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"archive-chat.d.mts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAkBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAI7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM9F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.d.ts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAmBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"archive-chat.d.ts","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAkBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAI7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM9F,wBAA2C"}
@@ -8,8 +8,8 @@ exports.metadata = {
8
8
  operation: 'write',
9
9
  tags: ['chats'],
10
10
  httpMethod: 'post',
11
- httpPath: '/v0/archive-chat',
12
- operationId: 'archive_chat',
11
+ httpPath: '/v1/chats/{chatID}/archive',
12
+ operationId: 'archiveChat',
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'archive_chat',
@@ -19,7 +19,7 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'The identifier of the chat to archive or unarchive (accepts both chatID and local chat ID)',
22
+ description: 'Unique identifier of the chat.',
23
23
  },
24
24
  archived: {
25
25
  type: 'boolean',
@@ -31,8 +31,9 @@ exports.tool = {
31
31
  annotations: {},
32
32
  };
33
33
  const handler = async (client, args) => {
34
- const body = args;
35
- return (0, types_1.asTextContentResult)(await client.chats.archive(body));
34
+ const { chatID, ...body } = args;
35
+ const response = await client.chats.archive(chatID, body).asResponse();
36
+ return (0, types_1.asTextContentResult)(await response.text());
36
37
  };
37
38
  exports.handler = handler;
38
39
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.js","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,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gCAAgC;aAC9C;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qCAAqC;aACnD;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACvE,OAAO,IAAA,2BAAmB,EAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -5,8 +5,8 @@ export const metadata = {
5
5
  operation: 'write',
6
6
  tags: ['chats'],
7
7
  httpMethod: 'post',
8
- httpPath: '/v0/archive-chat',
9
- operationId: 'archive_chat',
8
+ httpPath: '/v1/chats/{chatID}/archive',
9
+ operationId: 'archiveChat',
10
10
  };
11
11
  export const tool = {
12
12
  name: 'archive_chat',
@@ -16,7 +16,7 @@ export const tool = {
16
16
  properties: {
17
17
  chatID: {
18
18
  type: 'string',
19
- description: 'The identifier of the chat to archive or unarchive (accepts both chatID and local chat ID)',
19
+ description: 'Unique identifier of the chat.',
20
20
  },
21
21
  archived: {
22
22
  type: 'boolean',
@@ -28,8 +28,9 @@ export const tool = {
28
28
  annotations: {},
29
29
  };
30
30
  export const handler = async (client, args) => {
31
- const body = args;
32
- return asTextContentResult(await client.chats.archive(body));
31
+ const { chatID, ...body } = args;
32
+ const response = await client.chats.archive(chatID, body).asResponse();
33
+ return asTextContentResult(await response.text());
33
34
  };
34
35
  export default { metadata, tool, handler };
35
36
  //# sourceMappingURL=archive-chat.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-chat.mjs","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,4FAA4F;aAC/F;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,qCAAqC;aACnD;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"archive-chat.mjs","sourceRoot":"","sources":["../../src/tools/chats/archive-chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MA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AAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"get-chat.d.mts","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-chat.d.ts","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"get-chat.d.ts","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
@@ -8,8 +8,8 @@ exports.metadata = {
8
8
  operation: 'read',
9
9
  tags: ['chats'],
10
10
  httpMethod: 'get',
11
- httpPath: '/v0/get-chat',
12
- operationId: 'get_chat',
11
+ httpPath: '/v1/chats/{chatID}',
12
+ operationId: 'getChat',
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'get_chat',
@@ -19,11 +19,11 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: "Unique identifier of the chat to retrieve. Not available for iMessage chats. Participants are limited by 'maxParticipantCount'.",
22
+ description: 'Unique identifier of the chat.',
23
23
  },
24
24
  maxParticipantCount: {
25
25
  type: 'integer',
26
- description: 'Maximum number of participants to return. Use -1 for all; otherwise 0–500. Defaults to 20.',
26
+ description: 'Maximum number of participants to return. Use -1 for all; otherwise 0–500. Defaults to all (-1).',
27
27
  },
28
28
  },
29
29
  required: ['chatID'],
@@ -33,8 +33,8 @@ exports.tool = {
33
33
  },
34
34
  };
35
35
  const handler = async (client, args) => {
36
- const body = args;
37
- return (0, types_1.asTextContentResult)(await client.chats.retrieve(body));
36
+ const { chatID, ...body } = args;
37
+ return (0, types_1.asTextContentResult)(await client.chats.retrieve(chatID, body));
38
38
  };
39
39
  exports.handler = handler;
40
40
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"get-chat.js","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,UAAU;CACxB,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,oEAAoE;IACjF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iIAAiI;aACpI;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4FAA4F;aAC/F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;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  operation: 'read',
6
6
  tags: ['chats'],
7
7
  httpMethod: 'get',
8
- httpPath: '/v0/get-chat',
9
- operationId: 'get_chat',
8
+ httpPath: '/v1/chats/{chatID}',
9
+ operationId: 'getChat',
10
10
  };
11
11
  export const tool = {
12
12
  name: 'get_chat',
@@ -16,11 +16,11 @@ export const tool = {
16
16
  properties: {
17
17
  chatID: {
18
18
  type: 'string',
19
- description: "Unique identifier of the chat to retrieve. Not available for iMessage chats. Participants are limited by 'maxParticipantCount'.",
19
+ description: 'Unique identifier of the chat.',
20
20
  },
21
21
  maxParticipantCount: {
22
22
  type: 'integer',
23
- description: 'Maximum number of participants to return. Use -1 for all; otherwise 0–500. Defaults to 20.',
23
+ description: 'Maximum number of participants to return. Use -1 for all; otherwise 0–500. Defaults to all (-1).',
24
24
  },
25
25
  },
26
26
  required: ['chatID'],
@@ -30,8 +30,8 @@ export const tool = {
30
30
  },
31
31
  };
32
32
  export const handler = async (client, args) => {
33
- const body = args;
34
- return asTextContentResult(await client.chats.retrieve(body));
33
+ const { chatID, ...body } = args;
34
+ return asTextContentResult(await client.chats.retrieve(chatID, body));
35
35
  };
36
36
  export default { metadata, tool, handler };
37
37
  //# sourceMappingURL=get-chat.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-chat.mjs","sourceRoot":"","sources":["../../src/tools/chats/get-chat.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,cAAc;IACxB,WAAW,EAAE,UAAU;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,oEAAoE;IACjF,WAAW,EAAE;QACX,IAAI,EA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AQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxC,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clear-chat-reminder.d.mts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"clear-chat-reminder.d.mts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAI7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM9F,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"clear-chat-reminder.d.ts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAelB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAG7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK9F,wBAA2C"}
1
+ {"version":3,"file":"clear-chat-reminder.d.ts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,iCAAiC;OAExE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,aAAa,MAAM,qBAAqB;AAE/C,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,aAAa,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,sEAI7F,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAJoC,aAAa,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAM9F,wBAA2C"}
@@ -7,9 +7,9 @@ exports.metadata = {
7
7
  resource: 'chats.reminders',
8
8
  operation: 'write',
9
9
  tags: ['chats'],
10
- httpMethod: 'post',
11
- httpPath: '/v0/clear-chat-reminder',
12
- operationId: 'clear_chat_reminder',
10
+ httpMethod: 'delete',
11
+ httpPath: '/v1/chats/{chatID}/reminders',
12
+ operationId: 'clearChatReminder',
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'clear_chat_reminder',
@@ -19,16 +19,19 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'The identifier of the chat to clear reminder from (accepts both chatID and local chat ID)',
22
+ description: 'Unique identifier of the chat.',
23
23
  },
24
24
  },
25
25
  required: ['chatID'],
26
26
  },
27
- annotations: {},
27
+ annotations: {
28
+ idempotentHint: true,
29
+ },
28
30
  };
29
31
  const handler = async (client, args) => {
30
- const body = args;
31
- return (0, types_1.asTextContentResult)(await client.chats.reminders.delete(body));
32
+ const { chatID, ...body } = args;
33
+ const response = await client.chats.reminders.delete(chatID).asResponse();
34
+ return (0, types_1.asTextContentResult)(await response.text());
32
35
  };
33
36
  exports.handler = handler;
34
37
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"clear-chat-reminder.js","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAgF;AAKnE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACn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aAC9C;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;IAC1E,OAAO,IAAA,2BAAmB,EAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -4,9 +4,9 @@ export const metadata = {
4
4
  resource: 'chats.reminders',
5
5
  operation: 'write',
6
6
  tags: ['chats'],
7
- httpMethod: 'post',
8
- httpPath: '/v0/clear-chat-reminder',
9
- operationId: 'clear_chat_reminder',
7
+ httpMethod: 'delete',
8
+ httpPath: '/v1/chats/{chatID}/reminders',
9
+ operationId: 'clearChatReminder',
10
10
  };
11
11
  export const tool = {
12
12
  name: 'clear_chat_reminder',
@@ -16,16 +16,19 @@ export const tool = {
16
16
  properties: {
17
17
  chatID: {
18
18
  type: 'string',
19
- description: 'The identifier of the chat to clear reminder from (accepts both chatID and local chat ID)',
19
+ description: 'Unique identifier of the chat.',
20
20
  },
21
21
  },
22
22
  required: ['chatID'],
23
23
  },
24
- annotations: {},
24
+ annotations: {
25
+ idempotentHint: true,
26
+ },
25
27
  };
26
28
  export const handler = async (client, args) => {
27
- const body = args;
28
- return asTextContentResult(await client.chats.reminders.delete(body));
29
+ const { chatID, ...body } = args;
30
+ const response = await client.chats.reminders.delete(chatID).asResponse();
31
+ return asTextContentResult(await response.text());
29
32
  };
30
33
  export default { metadata, tool, handler };
31
34
  //# sourceMappingURL=clear-chat-reminder.mjs.map