@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.
- package/README.md +8 -7
- package/docs-search-tool.d.mts +44 -0
- package/docs-search-tool.d.mts.map +1 -0
- package/docs-search-tool.d.ts +44 -0
- package/docs-search-tool.d.ts.map +1 -0
- package/docs-search-tool.js +43 -0
- package/docs-search-tool.js.map +1 -0
- package/docs-search-tool.mjs +39 -0
- package/docs-search-tool.mjs.map +1 -0
- package/options.d.mts +1 -0
- package/options.d.mts.map +1 -1
- package/options.d.ts +1 -0
- package/options.d.ts.map +1 -1
- package/options.js +13 -6
- package/options.js.map +1 -1
- package/options.mjs +13 -6
- package/options.mjs.map +1 -1
- package/package.json +12 -2
- package/server.d.mts.map +1 -1
- package/server.d.ts.map +1 -1
- package/server.js +8 -4
- package/server.js.map +1 -1
- package/server.mjs +8 -4
- package/server.mjs.map +1 -1
- package/src/docs-search-tool.ts +48 -0
- package/src/options.ts +17 -7
- package/src/server.ts +8 -5
- package/src/tools/accounts/get-accounts.ts +3 -3
- package/src/tools/chats/archive-chat.ts +6 -6
- package/src/tools/chats/get-chat.ts +6 -7
- package/src/tools/chats/reminders/clear-chat-reminder.ts +10 -8
- package/src/tools/chats/reminders/set-chat-reminder.ts +6 -5
- package/src/tools/chats/search-chats.ts +5 -5
- package/src/tools/index.ts +6 -4
- package/src/tools/messages/list-messages.ts +51 -0
- package/src/tools/messages/search-messages.ts +6 -7
- package/src/tools/messages/send-message.ts +5 -5
- package/src/tools/{app/open-in-app.ts → top-level/focus-app.ts} +6 -6
- package/src/tools/{app → top-level}/search.ts +3 -3
- package/tools/accounts/get-accounts.js +3 -3
- package/tools/accounts/get-accounts.js.map +1 -1
- package/tools/accounts/get-accounts.mjs +3 -3
- package/tools/accounts/get-accounts.mjs.map +1 -1
- package/tools/chats/archive-chat.d.mts.map +1 -1
- package/tools/chats/archive-chat.d.ts.map +1 -1
- package/tools/chats/archive-chat.js +6 -5
- package/tools/chats/archive-chat.js.map +1 -1
- package/tools/chats/archive-chat.mjs +6 -5
- package/tools/chats/archive-chat.mjs.map +1 -1
- package/tools/chats/get-chat.d.mts.map +1 -1
- package/tools/chats/get-chat.d.ts.map +1 -1
- package/tools/chats/get-chat.js +6 -6
- package/tools/chats/get-chat.js.map +1 -1
- package/tools/chats/get-chat.mjs +6 -6
- package/tools/chats/get-chat.mjs.map +1 -1
- package/tools/chats/reminders/clear-chat-reminder.d.mts.map +1 -1
- package/tools/chats/reminders/clear-chat-reminder.d.ts.map +1 -1
- package/tools/chats/reminders/clear-chat-reminder.js +10 -7
- package/tools/chats/reminders/clear-chat-reminder.js.map +1 -1
- package/tools/chats/reminders/clear-chat-reminder.mjs +10 -7
- package/tools/chats/reminders/clear-chat-reminder.mjs.map +1 -1
- package/tools/chats/reminders/set-chat-reminder.d.mts.map +1 -1
- package/tools/chats/reminders/set-chat-reminder.d.ts.map +1 -1
- package/tools/chats/reminders/set-chat-reminder.js +6 -5
- package/tools/chats/reminders/set-chat-reminder.js.map +1 -1
- package/tools/chats/reminders/set-chat-reminder.mjs +6 -5
- package/tools/chats/reminders/set-chat-reminder.mjs.map +1 -1
- package/tools/chats/search-chats.js +5 -5
- package/tools/chats/search-chats.js.map +1 -1
- package/tools/chats/search-chats.mjs +5 -5
- package/tools/chats/search-chats.mjs.map +1 -1
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +6 -4
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +6 -4
- package/tools/index.mjs.map +1 -1
- package/tools/messages/list-messages.d.mts +45 -0
- package/tools/messages/list-messages.d.mts.map +1 -0
- package/tools/messages/list-messages.d.ts +45 -0
- package/tools/messages/list-messages.d.ts.map +1 -0
- package/tools/messages/list-messages.js +47 -0
- package/tools/messages/list-messages.js.map +1 -0
- package/tools/messages/list-messages.mjs +43 -0
- package/tools/messages/list-messages.mjs.map +1 -0
- package/tools/messages/search-messages.d.mts.map +1 -1
- package/tools/messages/search-messages.d.ts.map +1 -1
- package/tools/messages/search-messages.js +6 -6
- package/tools/messages/search-messages.js.map +1 -1
- package/tools/messages/search-messages.mjs +6 -6
- package/tools/messages/search-messages.mjs.map +1 -1
- package/tools/messages/send-message.js +5 -5
- package/tools/messages/send-message.js.map +1 -1
- package/tools/messages/send-message.mjs +5 -5
- package/tools/messages/send-message.mjs.map +1 -1
- package/tools/{app/open-in-app.d.ts → top-level/focus-app.d.mts} +1 -1
- package/tools/top-level/focus-app.d.mts.map +1 -0
- package/tools/{app/open-in-app.d.mts → top-level/focus-app.d.ts} +1 -1
- package/tools/top-level/focus-app.d.ts.map +1 -0
- package/tools/{app/open-in-app.js → top-level/focus-app.js} +7 -7
- package/tools/top-level/focus-app.js.map +1 -0
- package/tools/{app/open-in-app.mjs → top-level/focus-app.mjs} +7 -7
- package/tools/top-level/focus-app.mjs.map +1 -0
- package/tools/top-level/search.d.mts.map +1 -0
- package/tools/top-level/search.d.ts.map +1 -0
- package/tools/{app → top-level}/search.js +3 -3
- package/tools/top-level/search.js.map +1 -0
- package/tools/{app → top-level}/search.mjs +3 -3
- package/tools/top-level/search.mjs.map +1 -0
- package/tools/app/open-in-app.d.mts.map +0 -1
- package/tools/app/open-in-app.d.ts.map +0 -1
- package/tools/app/open-in-app.js.map +0 -1
- package/tools/app/open-in-app.mjs.map +0 -1
- package/tools/app/search.d.mts.map +0 -1
- package/tools/app/search.d.ts.map +0 -1
- package/tools/app/search.js.map +0 -1
- package/tools/app/search.mjs.map +0 -1
- /package/tools/{app → top-level}/search.d.mts +0 -0
- /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: '/
|
|
14
|
-
operationId: '
|
|
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
|
|
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: '
|
|
9
|
+
resource: '$client',
|
|
10
10
|
operation: 'write',
|
|
11
11
|
tags: ['app'],
|
|
12
12
|
httpMethod: 'post',
|
|
13
|
-
httpPath: '/
|
|
14
|
-
operationId: '
|
|
13
|
+
httpPath: '/v1/focus',
|
|
14
|
+
operationId: 'focusApp',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const tool: Tool = {
|
|
18
|
-
name: '
|
|
18
|
+
name: 'focus_app',
|
|
19
19
|
description:
|
|
20
|
-
'
|
|
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.
|
|
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: '
|
|
9
|
+
resource: '$client',
|
|
10
10
|
operation: 'read',
|
|
11
11
|
tags: ['app'],
|
|
12
12
|
httpMethod: 'get',
|
|
13
|
-
httpPath: '/
|
|
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.
|
|
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: '/
|
|
12
|
-
operationId: '
|
|
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.
|
|
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,
|
|
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: '/
|
|
9
|
-
operationId: '
|
|
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.
|
|
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,
|
|
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,
|
|
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,
|
|
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: '/
|
|
12
|
-
operationId: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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: '/
|
|
9
|
-
operationId: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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,4BAA4B;IACtC,WAAW,EAAE,aAAa;CAC3B,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,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;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,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,
|
|
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,
|
|
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"}
|
package/tools/chats/get-chat.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.metadata = {
|
|
|
8
8
|
operation: 'read',
|
|
9
9
|
tags: ['chats'],
|
|
10
10
|
httpMethod: 'get',
|
|
11
|
-
httpPath: '/
|
|
12
|
-
operationId: '
|
|
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:
|
|
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
|
|
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,
|
|
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,oBAAoB;IAC9B,WAAW,EAAE,SAAS;CACvB,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,EAAE,gCAAgC;aAC9C;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,kGAAkG;aACrG;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,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"}
|
package/tools/chats/get-chat.mjs
CHANGED
|
@@ -5,8 +5,8 @@ export const metadata = {
|
|
|
5
5
|
operation: 'read',
|
|
6
6
|
tags: ['chats'],
|
|
7
7
|
httpMethod: 'get',
|
|
8
|
-
httpPath: '/
|
|
9
|
-
operationId: '
|
|
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:
|
|
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
|
|
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,
|
|
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,oBAAoB;IAC9B,WAAW,EAAE,SAAS;CACvB,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,EAAE,gCAAgC;aAC9C;YACD,mBAAmB,EAAE;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,kGAAkG;aACrG;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,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,
|
|
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,
|
|
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: '
|
|
11
|
-
httpPath: '/
|
|
12
|
-
operationId: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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: '
|
|
8
|
-
httpPath: '/
|
|
9
|
-
operationId: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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,QAAQ;IACpB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,mBAAmB;CACjC,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,EAAE,gCAAgC;aAC9C;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;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,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,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,
|
|
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,
|
|
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: '/
|
|
12
|
-
operationId: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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,8BAA8B;IACxC,WAAW,EAAE,iBAAiB;CAC/B,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,gCAAgC;aAC9C;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,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: '/
|
|
9
|
-
operationId: '
|
|
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: '
|
|
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
|
-
|
|
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,
|
|
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,8BAA8B;IACxC,WAAW,EAAE,iBAAiB;CAC/B,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,gCAAgC;aAC9C;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,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: '/
|
|
12
|
-
operationId: '
|
|
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: '
|
|
25
|
+
description: 'Account ID this resource belongs to.',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
cursor: {
|
|
29
29
|
type: 'string',
|
|
30
|
-
description:
|
|
30
|
+
description: "Opaque pagination cursor; do not inspect. Use together with 'direction'.",
|
|
31
31
|
},
|
|
32
32
|
direction: {
|
|
33
33
|
type: 'string',
|
|
34
|
-
description:
|
|
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,
|
|
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,aAAa;CAC3B,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,sCAAsC;iBACpD;aACF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0EAA0E;aACxF;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,8JAA8J;gBAChK,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,MAAM,EAAE,WAAW;aACpB;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,gFAAgF;aAC9F;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oJAAoJ;aACvJ;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2FAA2F;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: '/
|
|
9
|
-
operationId: '
|
|
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: '
|
|
22
|
+
description: 'Account ID this resource belongs to.',
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
cursor: {
|
|
26
26
|
type: 'string',
|
|
27
|
-
description:
|
|
27
|
+
description: "Opaque pagination cursor; do not inspect. Use together with 'direction'.",
|
|
28
28
|
},
|
|
29
29
|
direction: {
|
|
30
30
|
type: 'string',
|
|
31
|
-
description:
|
|
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: {
|