@beeper/desktop-mcp 0.1.5 → 4.1.293

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 (119) hide show
  1. package/README.md +8 -7
  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/options.d.mts +1 -0
  11. package/options.d.mts.map +1 -1
  12. package/options.d.ts +1 -0
  13. package/options.d.ts.map +1 -1
  14. package/options.js +13 -6
  15. package/options.js.map +1 -1
  16. package/options.mjs +13 -6
  17. package/options.mjs.map +1 -1
  18. package/package.json +12 -2
  19. package/server.d.mts.map +1 -1
  20. package/server.d.ts.map +1 -1
  21. package/server.js +8 -4
  22. package/server.js.map +1 -1
  23. package/server.mjs +8 -4
  24. package/server.mjs.map +1 -1
  25. package/src/docs-search-tool.ts +48 -0
  26. package/src/options.ts +17 -7
  27. package/src/server.ts +8 -5
  28. package/src/tools/accounts/get-accounts.ts +3 -3
  29. package/src/tools/chats/archive-chat.ts +6 -6
  30. package/src/tools/chats/get-chat.ts +6 -7
  31. package/src/tools/chats/reminders/clear-chat-reminder.ts +10 -8
  32. package/src/tools/chats/reminders/set-chat-reminder.ts +6 -5
  33. package/src/tools/chats/search-chats.ts +5 -5
  34. package/src/tools/index.ts +6 -4
  35. package/src/tools/messages/list-messages.ts +51 -0
  36. package/src/tools/messages/search-messages.ts +6 -7
  37. package/src/tools/messages/send-message.ts +5 -5
  38. package/src/tools/{app/open-in-app.ts → top-level/focus-app.ts} +6 -6
  39. package/src/tools/{app → top-level}/search.ts +3 -3
  40. package/tools/accounts/get-accounts.js +3 -3
  41. package/tools/accounts/get-accounts.js.map +1 -1
  42. package/tools/accounts/get-accounts.mjs +3 -3
  43. package/tools/accounts/get-accounts.mjs.map +1 -1
  44. package/tools/chats/archive-chat.d.mts.map +1 -1
  45. package/tools/chats/archive-chat.d.ts.map +1 -1
  46. package/tools/chats/archive-chat.js +6 -5
  47. package/tools/chats/archive-chat.js.map +1 -1
  48. package/tools/chats/archive-chat.mjs +6 -5
  49. package/tools/chats/archive-chat.mjs.map +1 -1
  50. package/tools/chats/get-chat.d.mts.map +1 -1
  51. package/tools/chats/get-chat.d.ts.map +1 -1
  52. package/tools/chats/get-chat.js +6 -6
  53. package/tools/chats/get-chat.js.map +1 -1
  54. package/tools/chats/get-chat.mjs +6 -6
  55. package/tools/chats/get-chat.mjs.map +1 -1
  56. package/tools/chats/reminders/clear-chat-reminder.d.mts.map +1 -1
  57. package/tools/chats/reminders/clear-chat-reminder.d.ts.map +1 -1
  58. package/tools/chats/reminders/clear-chat-reminder.js +10 -7
  59. package/tools/chats/reminders/clear-chat-reminder.js.map +1 -1
  60. package/tools/chats/reminders/clear-chat-reminder.mjs +10 -7
  61. package/tools/chats/reminders/clear-chat-reminder.mjs.map +1 -1
  62. package/tools/chats/reminders/set-chat-reminder.d.mts.map +1 -1
  63. package/tools/chats/reminders/set-chat-reminder.d.ts.map +1 -1
  64. package/tools/chats/reminders/set-chat-reminder.js +6 -5
  65. package/tools/chats/reminders/set-chat-reminder.js.map +1 -1
  66. package/tools/chats/reminders/set-chat-reminder.mjs +6 -5
  67. package/tools/chats/reminders/set-chat-reminder.mjs.map +1 -1
  68. package/tools/chats/search-chats.js +5 -5
  69. package/tools/chats/search-chats.js.map +1 -1
  70. package/tools/chats/search-chats.mjs +5 -5
  71. package/tools/chats/search-chats.mjs.map +1 -1
  72. package/tools/index.d.mts.map +1 -1
  73. package/tools/index.d.ts.map +1 -1
  74. package/tools/index.js +6 -4
  75. package/tools/index.js.map +1 -1
  76. package/tools/index.mjs +6 -4
  77. package/tools/index.mjs.map +1 -1
  78. package/tools/messages/list-messages.d.mts +45 -0
  79. package/tools/messages/list-messages.d.mts.map +1 -0
  80. package/tools/messages/list-messages.d.ts +45 -0
  81. package/tools/messages/list-messages.d.ts.map +1 -0
  82. package/tools/messages/list-messages.js +47 -0
  83. package/tools/messages/list-messages.js.map +1 -0
  84. package/tools/messages/list-messages.mjs +43 -0
  85. package/tools/messages/list-messages.mjs.map +1 -0
  86. package/tools/messages/search-messages.d.mts.map +1 -1
  87. package/tools/messages/search-messages.d.ts.map +1 -1
  88. package/tools/messages/search-messages.js +6 -6
  89. package/tools/messages/search-messages.js.map +1 -1
  90. package/tools/messages/search-messages.mjs +6 -6
  91. package/tools/messages/search-messages.mjs.map +1 -1
  92. package/tools/messages/send-message.js +5 -5
  93. package/tools/messages/send-message.js.map +1 -1
  94. package/tools/messages/send-message.mjs +5 -5
  95. package/tools/messages/send-message.mjs.map +1 -1
  96. package/tools/{app/open-in-app.d.ts → top-level/focus-app.d.mts} +1 -1
  97. package/tools/top-level/focus-app.d.mts.map +1 -0
  98. package/tools/{app/open-in-app.d.mts → top-level/focus-app.d.ts} +1 -1
  99. package/tools/top-level/focus-app.d.ts.map +1 -0
  100. package/tools/{app/open-in-app.js → top-level/focus-app.js} +7 -7
  101. package/tools/top-level/focus-app.js.map +1 -0
  102. package/tools/{app/open-in-app.mjs → top-level/focus-app.mjs} +7 -7
  103. package/tools/top-level/focus-app.mjs.map +1 -0
  104. package/tools/top-level/search.d.mts.map +1 -0
  105. package/tools/top-level/search.d.ts.map +1 -0
  106. package/tools/{app → top-level}/search.js +3 -3
  107. package/tools/top-level/search.js.map +1 -0
  108. package/tools/{app → top-level}/search.mjs +3 -3
  109. package/tools/top-level/search.mjs.map +1 -0
  110. package/tools/app/open-in-app.d.mts.map +0 -1
  111. package/tools/app/open-in-app.d.ts.map +0 -1
  112. package/tools/app/open-in-app.js.map +0 -1
  113. package/tools/app/open-in-app.mjs.map +0 -1
  114. package/tools/app/search.d.mts.map +0 -1
  115. package/tools/app/search.d.ts.map +0 -1
  116. package/tools/app/search.js.map +0 -1
  117. package/tools/app/search.mjs.map +0 -1
  118. /package/tools/{app → top-level}/search.d.mts +0 -0
  119. /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: ['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,E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AAmB,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,CAAC;AAEW,QAAA,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;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,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
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,4BAA4B;IACtC,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,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,EAAE,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;CA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C,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACvE,OAAO,mBAAmB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
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,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;Y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AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAyC,EAAE,EAAE;IAChG,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxC,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;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: '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,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;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,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
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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M,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;IACnC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;aAC9F;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,IAAI,GAAG,IAAW,CAAC;IACzB,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
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,QAAQ;IACpB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gCAAgC;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
@@ -1 +1 @@
1
- {"version":3,"file":"clear-chat-reminder.mjs","sourceRoot":"","sources":["../../../src/tools/chats/reminders/clear-chat-reminder.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;aAC9F;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,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AAE,CAAC;IAC1E,OAAO,mBAAmB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"set-chat-reminder.d.mts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-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,IA6BlB,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":"set-chat-reminder.d.mts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-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,IA6BlB,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":"set-chat-reminder.d.ts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-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,IA6BlB,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":"set-chat-reminder.d.ts","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-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,IA6BlB,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/set-chat-reminder',
12
- operationId: 'set_chat_reminder',
11
+ httpPath: '/v1/chats/{chatID}/reminders',
12
+ operationId: 'setChatReminder',
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'set_chat_reminder',
@@ -19,7 +19,7 @@ exports.tool = {
19
19
  properties: {
20
20
  chatID: {
21
21
  type: 'string',
22
- description: 'The identifier of the chat to set reminder for (accepts both chatID and local chat ID)',
22
+ description: 'Unique identifier of the chat.',
23
23
  },
24
24
  reminder: {
25
25
  type: 'object',
@@ -42,8 +42,9 @@ exports.tool = {
42
42
  annotations: {},
43
43
  };
44
44
  const handler = async (client, args) => {
45
- const body = args;
46
- return (0, types_1.asTextContentResult)(await client.chats.reminders.create(body));
45
+ const { chatID, ...body } = args;
46
+ const response = await client.chats.reminders.create(chatID, body).asResponse();
47
+ return (0, types_1.asTextContentResult)(await response.text());
47
48
  };
48
49
  exports.handler = handler;
49
50
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"set-chat-reminder.js","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-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,uBAAuB;IACjC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wFAAwF;aACtG;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,UAA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AAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,6DAA6D;qBAC3E;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,iDAAiD;qBAC/D;iBACF;gBACD,QAAQ,EAAE,CAAC,YAAY,CAAC;aACzB;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;KACjC;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,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAChF,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/set-chat-reminder',
9
- operationId: 'set_chat_reminder',
8
+ httpPath: '/v1/chats/{chatID}/reminders',
9
+ operationId: 'setChatReminder',
10
10
  };
11
11
  export const tool = {
12
12
  name: 'set_chat_reminder',
@@ -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 set reminder for (accepts both chatID and local chat ID)',
19
+ description: 'Unique identifier of the chat.',
20
20
  },
21
21
  reminder: {
22
22
  type: 'object',
@@ -39,8 +39,9 @@ export const tool = {
39
39
  annotations: {},
40
40
  };
41
41
  export const handler = async (client, args) => {
42
- const body = args;
43
- return asTextContentResult(await client.chats.reminders.create(body));
42
+ const { chatID, ...body } = args;
43
+ const response = await client.chats.reminders.create(chatID, body).asResponse();
44
+ return asTextContentResult(await response.text());
44
45
  };
45
46
  export default { metadata, tool, handler };
46
47
  //# sourceMappingURL=set-chat-reminder.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-chat-reminder.mjs","sourceRoot":"","sources":["../../../src/tools/chats/reminders/set-chat-reminder.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,iCAAiC;AAK/E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wFAAwF;aACtG;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;gBACrC,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,6DAA6D;qBAC3E;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,iDAAiD;qBAC/D;iBACF;gBACD,QAAQ,EAAE,CAAC,YAAY,CAAC;aACzB;SACF;QACD,QAAQ,EAAE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AAQ,EAAE,CAAC,YAAY,CAAC;aACzB;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC;KACjC;IACD,WAAW,EAAE,EAAE;CAChB,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,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAChF,OAAO,mBAAmB,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -8,8 +8,8 @@ exports.metadata = {
8
8
  operation: 'read',
9
9
  tags: ['chats'],
10
10
  httpMethod: 'get',
11
- httpPath: '/v0/search-chats',
12
- operationId: 'search_chats',
11
+ httpPath: '/v1/chats/search',
12
+ operationId: 'searchChats',
13
13
  };
14
14
  exports.tool = {
15
15
  name: 'search_chats',
@@ -22,16 +22,16 @@ exports.tool = {
22
22
  description: 'Provide an array of account IDs to filter chats from specific messaging accounts only',
23
23
  items: {
24
24
  type: 'string',
25
- description: 'Beeper account ID this resource belongs to.',
25
+ description: 'Account ID this resource belongs to.',
26
26
  },
27
27
  },
28
28
  cursor: {
29
29
  type: 'string',
30
- description: 'Pagination cursor from previous response. Use with direction to navigate results',
30
+ description: "Opaque pagination cursor; do not inspect. Use together with 'direction'.",
31
31
  },
32
32
  direction: {
33
33
  type: 'string',
34
- description: 'Pagination direction: "after" for newer page, "before" for older page. Defaults to "before" when only cursor is provided.',
34
+ description: "Pagination direction used with 'cursor': 'before' fetches older results, 'after' fetches newer results. Defaults to 'before' when only 'cursor' is provided.",
35
35
  enum: ['after', 'before'],
36
36
  },
37
37
  inbox: {
@@ -1 +1 @@
1
- {"version":3,"file":"search-chats.js","sourceRoot":"","sources":["../../src/tools/chats/search-chats.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,kBAAkB;IAC5B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,4GAA4G;IAC9G,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,uFAAuF;gBACpG,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,6CAA6C;iBAC3D;aACF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kFAAkF;aAChG;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2HAA2H;gBAC7H,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;aAC1B;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oIAAoI;gBACtI,IAAI,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,SAAS,CAAC;aAC7C;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,mJAAmJ;aACtJ;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0FAA0F;gBAC5F,MAAM,EAAE,WAAW;aACpB;YACD,kBAAkB,EAAE;gBAClB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;gBAC7F,M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;gBAC7F,IAAI,EAAE,CAAC,QAAQ,EAAE,cAAc,CAAC;aACjC;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,6HAA6H;gBAC/H,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC;aACjC;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,8DAA8D;aAC5E;SACF;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,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9D,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: 'read',
6
6
  tags: ['chats'],
7
7
  httpMethod: 'get',
8
- httpPath: '/v0/search-chats',
9
- operationId: 'search_chats',
8
+ httpPath: '/v1/chats/search',
9
+ operationId: 'searchChats',
10
10
  };
11
11
  export const tool = {
12
12
  name: 'search_chats',
@@ -19,16 +19,16 @@ export const tool = {
19
19
  description: 'Provide an array of account IDs to filter chats from specific messaging accounts only',
20
20
  items: {
21
21
  type: 'string',
22
- description: 'Beeper account ID this resource belongs to.',
22
+ description: 'Account ID this resource belongs to.',
23
23
  },
24
24
  },
25
25
  cursor: {
26
26
  type: 'string',
27
- description: 'Pagination cursor from previous response. Use with direction to navigate results',
27
+ description: "Opaque pagination cursor; do not inspect. Use together with 'direction'.",
28
28
  },
29
29
  direction: {
30
30
  type: 'string',
31
- description: 'Pagination direction: "after" for newer page, "before" for older page. Defaults to "before" when only cursor is provided.',
31
+ description: "Pagination direction used with 'cursor': 'before' fetches older results, 'after' fetches newer results. Defaults to 'before' when only 'cursor' is provided.",
32
32
  enum: ['after', 'before'],
33
33
  },
34
34
  inbox: {