msteams-mcp 0.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.
Potentially problematic release.
This version of msteams-mcp might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +261 -0
- package/dist/__fixtures__/api-responses.d.ts +254 -0
- package/dist/__fixtures__/api-responses.js +245 -0
- package/dist/api/calendar-api.d.ts +66 -0
- package/dist/api/calendar-api.js +179 -0
- package/dist/api/chatsvc-api.d.ts +352 -0
- package/dist/api/chatsvc-api.js +1100 -0
- package/dist/api/csa-api.d.ts +64 -0
- package/dist/api/csa-api.js +200 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/index.js +7 -0
- package/dist/api/substrate-api.d.ts +50 -0
- package/dist/api/substrate-api.js +305 -0
- package/dist/auth/crypto.d.ts +32 -0
- package/dist/auth/crypto.js +66 -0
- package/dist/auth/index.d.ts +7 -0
- package/dist/auth/index.js +7 -0
- package/dist/auth/session-store.d.ts +87 -0
- package/dist/auth/session-store.js +230 -0
- package/dist/auth/token-extractor.d.ts +185 -0
- package/dist/auth/token-extractor.js +674 -0
- package/dist/auth/token-refresh.d.ts +25 -0
- package/dist/auth/token-refresh.js +85 -0
- package/dist/browser/auth.d.ts +53 -0
- package/dist/browser/auth.js +603 -0
- package/dist/browser/context.d.ts +40 -0
- package/dist/browser/context.js +122 -0
- package/dist/constants.d.ts +104 -0
- package/dist/constants.js +195 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +12 -0
- package/dist/research/auth-research.d.ts +10 -0
- package/dist/research/auth-research.js +175 -0
- package/dist/research/explore.d.ts +11 -0
- package/dist/research/explore.js +270 -0
- package/dist/research/search-research.d.ts +17 -0
- package/dist/research/search-research.js +317 -0
- package/dist/server.d.ts +66 -0
- package/dist/server.js +295 -0
- package/dist/test/debug-search.d.ts +10 -0
- package/dist/test/debug-search.js +147 -0
- package/dist/test/mcp-harness.d.ts +17 -0
- package/dist/test/mcp-harness.js +474 -0
- package/dist/tools/auth-tools.d.ts +26 -0
- package/dist/tools/auth-tools.js +191 -0
- package/dist/tools/index.d.ts +56 -0
- package/dist/tools/index.js +34 -0
- package/dist/tools/meeting-tools.d.ts +33 -0
- package/dist/tools/meeting-tools.js +64 -0
- package/dist/tools/message-tools.d.ts +269 -0
- package/dist/tools/message-tools.js +856 -0
- package/dist/tools/people-tools.d.ts +46 -0
- package/dist/tools/people-tools.js +112 -0
- package/dist/tools/registry.d.ts +23 -0
- package/dist/tools/registry.js +63 -0
- package/dist/tools/search-tools.d.ts +91 -0
- package/dist/tools/search-tools.js +222 -0
- package/dist/types/errors.d.ts +58 -0
- package/dist/types/errors.js +132 -0
- package/dist/types/result.d.ts +43 -0
- package/dist/types/result.js +51 -0
- package/dist/types/server.d.ts +27 -0
- package/dist/types/server.js +7 -0
- package/dist/types/teams.d.ts +85 -0
- package/dist/types/teams.js +4 -0
- package/dist/utils/api-config.d.ts +103 -0
- package/dist/utils/api-config.js +158 -0
- package/dist/utils/auth-guards.d.ts +67 -0
- package/dist/utils/auth-guards.js +147 -0
- package/dist/utils/http.d.ts +29 -0
- package/dist/utils/http.js +112 -0
- package/dist/utils/parsers.d.ts +247 -0
- package/dist/utils/parsers.js +731 -0
- package/dist/utils/parsers.test.d.ts +7 -0
- package/dist/utils/parsers.test.js +511 -0
- package/package.json +62 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool handler registry.
|
|
3
|
+
*
|
|
4
|
+
* Provides a modular way to define MCP tool handlers without a monolithic
|
|
5
|
+
* switch statement. Each tool is defined with its schema, handler, and metadata.
|
|
6
|
+
*/
|
|
7
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
8
|
+
import type { z } from 'zod';
|
|
9
|
+
import type { McpError } from '../types/errors.js';
|
|
10
|
+
import type { TeamsServer } from '../types/server.js';
|
|
11
|
+
export type { TeamsServer };
|
|
12
|
+
/** The context passed to tool handlers. */
|
|
13
|
+
export interface ToolContext {
|
|
14
|
+
/** Reference to the server for browser operations. */
|
|
15
|
+
server: TeamsServer;
|
|
16
|
+
}
|
|
17
|
+
/** Result returned by tool handlers. */
|
|
18
|
+
export type ToolResult = {
|
|
19
|
+
success: true;
|
|
20
|
+
data: Record<string, unknown>;
|
|
21
|
+
} | {
|
|
22
|
+
success: false;
|
|
23
|
+
error: McpError;
|
|
24
|
+
};
|
|
25
|
+
import type { Result } from '../types/result.js';
|
|
26
|
+
/**
|
|
27
|
+
* Helper to convert an API Result to a ToolResult.
|
|
28
|
+
*
|
|
29
|
+
* Reduces boilerplate in tool handlers by standardising the pattern:
|
|
30
|
+
* ```typescript
|
|
31
|
+
* if (!result.ok) {
|
|
32
|
+
* return { success: false, error: result.error };
|
|
33
|
+
* }
|
|
34
|
+
* return { success: true, data: transform(result.value) };
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param result - The API result to convert
|
|
38
|
+
* @param transform - Function to transform the success value to response data
|
|
39
|
+
* @returns A ToolResult suitable for returning from a handler
|
|
40
|
+
*/
|
|
41
|
+
export declare function handleApiResult<T>(result: Result<T>, transform: (value: T) => Record<string, unknown>): ToolResult;
|
|
42
|
+
/** A registered tool with its handler. */
|
|
43
|
+
export interface RegisteredTool<TInput extends z.ZodType = z.ZodType> {
|
|
44
|
+
/** Tool definition for MCP. */
|
|
45
|
+
definition: Tool;
|
|
46
|
+
/** Zod schema for input validation. */
|
|
47
|
+
schema: TInput;
|
|
48
|
+
/** Handler function. */
|
|
49
|
+
handler: (input: z.infer<TInput>, ctx: ToolContext) => Promise<ToolResult>;
|
|
50
|
+
}
|
|
51
|
+
export * from './search-tools.js';
|
|
52
|
+
export * from './message-tools.js';
|
|
53
|
+
export * from './people-tools.js';
|
|
54
|
+
export * from './auth-tools.js';
|
|
55
|
+
export * from './meeting-tools.js';
|
|
56
|
+
export * from './registry.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool handler registry.
|
|
3
|
+
*
|
|
4
|
+
* Provides a modular way to define MCP tool handlers without a monolithic
|
|
5
|
+
* switch statement. Each tool is defined with its schema, handler, and metadata.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Helper to convert an API Result to a ToolResult.
|
|
9
|
+
*
|
|
10
|
+
* Reduces boilerplate in tool handlers by standardising the pattern:
|
|
11
|
+
* ```typescript
|
|
12
|
+
* if (!result.ok) {
|
|
13
|
+
* return { success: false, error: result.error };
|
|
14
|
+
* }
|
|
15
|
+
* return { success: true, data: transform(result.value) };
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param result - The API result to convert
|
|
19
|
+
* @param transform - Function to transform the success value to response data
|
|
20
|
+
* @returns A ToolResult suitable for returning from a handler
|
|
21
|
+
*/
|
|
22
|
+
export function handleApiResult(result, transform) {
|
|
23
|
+
if (!result.ok) {
|
|
24
|
+
return { success: false, error: result.error };
|
|
25
|
+
}
|
|
26
|
+
return { success: true, data: transform(result.value) };
|
|
27
|
+
}
|
|
28
|
+
// Re-export tool registrations
|
|
29
|
+
export * from './search-tools.js';
|
|
30
|
+
export * from './message-tools.js';
|
|
31
|
+
export * from './people-tools.js';
|
|
32
|
+
export * from './auth-tools.js';
|
|
33
|
+
export * from './meeting-tools.js';
|
|
34
|
+
export * from './registry.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting/calendar-related tool handlers.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import type { RegisteredTool } from './index.js';
|
|
6
|
+
export declare const GetMeetingsInputSchema: z.ZodObject<{
|
|
7
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
8
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
9
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
limit: number;
|
|
12
|
+
startDate?: string | undefined;
|
|
13
|
+
endDate?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
startDate?: string | undefined;
|
|
17
|
+
endDate?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const getMeetingsTool: RegisteredTool<typeof GetMeetingsInputSchema>;
|
|
20
|
+
/** All meeting-related tools. */
|
|
21
|
+
export declare const meetingTools: RegisteredTool<z.ZodObject<{
|
|
22
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
23
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
24
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
limit: number;
|
|
27
|
+
startDate?: string | undefined;
|
|
28
|
+
endDate?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
limit?: number | undefined;
|
|
31
|
+
startDate?: string | undefined;
|
|
32
|
+
endDate?: string | undefined;
|
|
33
|
+
}>>[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting/calendar-related tool handlers.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { handleApiResult } from './index.js';
|
|
6
|
+
import { getCalendarView } from '../api/calendar-api.js';
|
|
7
|
+
import { DEFAULT_MEETING_LIMIT, MAX_MEETING_LIMIT, } from '../constants.js';
|
|
8
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
9
|
+
// Schemas
|
|
10
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
11
|
+
export const GetMeetingsInputSchema = z.object({
|
|
12
|
+
startDate: z.string().optional(),
|
|
13
|
+
endDate: z.string().optional(),
|
|
14
|
+
limit: z.number().min(1).max(MAX_MEETING_LIMIT).optional().default(DEFAULT_MEETING_LIMIT),
|
|
15
|
+
});
|
|
16
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
17
|
+
// Tool Definitions
|
|
18
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
19
|
+
const getMeetingsToolDefinition = {
|
|
20
|
+
name: 'teams_get_meetings',
|
|
21
|
+
description: 'Get meetings from your Teams calendar. Returns meetings with: subject, startTime, endTime, organizer (name/email), location, joinUrl (Teams link), threadId (use with teams_get_thread to read meeting chat), myResponse (None/Accepted/Tentative/Declined), showAs (Free/Busy), isOrganizer. Defaults to next 7 days from now. For past meetings (e.g., "summarise my last meeting"), set startDate to a past date. To find meetings with a person, get results and filter by organizer.email.',
|
|
22
|
+
inputSchema: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
properties: {
|
|
25
|
+
startDate: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
description: 'Start of date range (ISO 8601, e.g., "2026-02-01T00:00:00.000Z"). Defaults to now.',
|
|
28
|
+
},
|
|
29
|
+
endDate: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'End of date range (ISO 8601). Defaults to 7 days from now.',
|
|
32
|
+
},
|
|
33
|
+
limit: {
|
|
34
|
+
type: 'number',
|
|
35
|
+
description: 'Maximum number of meetings to return (default: 50, max: 200)',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
required: [],
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
42
|
+
// Handlers
|
|
43
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
44
|
+
async function handleGetMeetings(input, _ctx) {
|
|
45
|
+
const result = await getCalendarView({
|
|
46
|
+
startDate: input.startDate,
|
|
47
|
+
endDate: input.endDate,
|
|
48
|
+
limit: input.limit,
|
|
49
|
+
});
|
|
50
|
+
return handleApiResult(result, (value) => ({
|
|
51
|
+
count: value.count,
|
|
52
|
+
meetings: value.meetings,
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
56
|
+
// Exports
|
|
57
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
58
|
+
export const getMeetingsTool = {
|
|
59
|
+
definition: getMeetingsToolDefinition,
|
|
60
|
+
schema: GetMeetingsInputSchema,
|
|
61
|
+
handler: handleGetMeetings,
|
|
62
|
+
};
|
|
63
|
+
/** All meeting-related tools. */
|
|
64
|
+
export const meetingTools = [getMeetingsTool];
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Messaging-related tool handlers.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import type { RegisteredTool } from './index.js';
|
|
6
|
+
export declare const SendMessageInputSchema: z.ZodObject<{
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
conversationId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9
|
+
replyToMessageId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
content: string;
|
|
12
|
+
conversationId: string;
|
|
13
|
+
replyToMessageId?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
content: string;
|
|
16
|
+
conversationId?: string | undefined;
|
|
17
|
+
replyToMessageId?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const FavoriteInputSchema: z.ZodObject<{
|
|
20
|
+
conversationId: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
conversationId: string;
|
|
23
|
+
}, {
|
|
24
|
+
conversationId: string;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const SaveMessageInputSchema: z.ZodObject<{
|
|
27
|
+
conversationId: z.ZodString;
|
|
28
|
+
messageId: z.ZodString;
|
|
29
|
+
rootMessageId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
conversationId: string;
|
|
32
|
+
messageId: string;
|
|
33
|
+
rootMessageId?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
conversationId: string;
|
|
36
|
+
messageId: string;
|
|
37
|
+
rootMessageId?: string | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const GetChatInputSchema: z.ZodObject<{
|
|
40
|
+
userId: z.ZodString;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
userId: string;
|
|
43
|
+
}, {
|
|
44
|
+
userId: string;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const CreateGroupChatInputSchema: z.ZodObject<{
|
|
47
|
+
userIds: z.ZodArray<z.ZodString, "many">;
|
|
48
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
userIds: string[];
|
|
51
|
+
topic?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
userIds: string[];
|
|
54
|
+
topic?: string | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const EditMessageInputSchema: z.ZodObject<{
|
|
57
|
+
conversationId: z.ZodString;
|
|
58
|
+
messageId: z.ZodString;
|
|
59
|
+
content: z.ZodString;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
content: string;
|
|
62
|
+
conversationId: string;
|
|
63
|
+
messageId: string;
|
|
64
|
+
}, {
|
|
65
|
+
content: string;
|
|
66
|
+
conversationId: string;
|
|
67
|
+
messageId: string;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const DeleteMessageInputSchema: z.ZodObject<{
|
|
70
|
+
conversationId: z.ZodString;
|
|
71
|
+
messageId: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
conversationId: string;
|
|
74
|
+
messageId: string;
|
|
75
|
+
}, {
|
|
76
|
+
conversationId: string;
|
|
77
|
+
messageId: string;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const GetUnreadInputSchema: z.ZodObject<{
|
|
80
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
conversationId?: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
conversationId?: string | undefined;
|
|
85
|
+
}>;
|
|
86
|
+
export declare const MarkAsReadInputSchema: z.ZodObject<{
|
|
87
|
+
conversationId: z.ZodString;
|
|
88
|
+
messageId: z.ZodString;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
conversationId: string;
|
|
91
|
+
messageId: string;
|
|
92
|
+
}, {
|
|
93
|
+
conversationId: string;
|
|
94
|
+
messageId: string;
|
|
95
|
+
}>;
|
|
96
|
+
export declare const GetActivityInputSchema: z.ZodObject<{
|
|
97
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
limit?: number | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
limit?: number | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
export declare const SearchEmojiInputSchema: z.ZodObject<{
|
|
104
|
+
query: z.ZodString;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
query: string;
|
|
107
|
+
}, {
|
|
108
|
+
query: string;
|
|
109
|
+
}>;
|
|
110
|
+
export declare const AddReactionInputSchema: z.ZodObject<{
|
|
111
|
+
conversationId: z.ZodString;
|
|
112
|
+
messageId: z.ZodString;
|
|
113
|
+
emoji: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
conversationId: string;
|
|
116
|
+
emoji: string;
|
|
117
|
+
messageId: string;
|
|
118
|
+
}, {
|
|
119
|
+
conversationId: string;
|
|
120
|
+
emoji: string;
|
|
121
|
+
messageId: string;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const RemoveReactionInputSchema: z.ZodObject<{
|
|
124
|
+
conversationId: z.ZodString;
|
|
125
|
+
messageId: z.ZodString;
|
|
126
|
+
emoji: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
conversationId: string;
|
|
129
|
+
emoji: string;
|
|
130
|
+
messageId: string;
|
|
131
|
+
}, {
|
|
132
|
+
conversationId: string;
|
|
133
|
+
emoji: string;
|
|
134
|
+
messageId: string;
|
|
135
|
+
}>;
|
|
136
|
+
export declare const GetSavedMessagesInputSchema: z.ZodObject<{
|
|
137
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
limit?: number | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
limit?: number | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export declare const GetFollowedThreadsInputSchema: z.ZodObject<{
|
|
144
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
limit?: number | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
limit?: number | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
export declare const sendMessageTool: RegisteredTool<typeof SendMessageInputSchema>;
|
|
151
|
+
export declare const getFavoritesTool: RegisteredTool<z.ZodObject<Record<string, never>>>;
|
|
152
|
+
export declare const addFavoriteTool: RegisteredTool<typeof FavoriteInputSchema>;
|
|
153
|
+
export declare const removeFavoriteTool: RegisteredTool<typeof FavoriteInputSchema>;
|
|
154
|
+
export declare const saveMessageTool: RegisteredTool<typeof SaveMessageInputSchema>;
|
|
155
|
+
export declare const unsaveMessageTool: RegisteredTool<typeof SaveMessageInputSchema>;
|
|
156
|
+
export declare const getChatTool: RegisteredTool<typeof GetChatInputSchema>;
|
|
157
|
+
export declare const createGroupChatTool: RegisteredTool<typeof CreateGroupChatInputSchema>;
|
|
158
|
+
export declare const editMessageTool: RegisteredTool<typeof EditMessageInputSchema>;
|
|
159
|
+
export declare const deleteMessageTool: RegisteredTool<typeof DeleteMessageInputSchema>;
|
|
160
|
+
export declare const getUnreadTool: RegisteredTool<typeof GetUnreadInputSchema>;
|
|
161
|
+
export declare const markAsReadTool: RegisteredTool<typeof MarkAsReadInputSchema>;
|
|
162
|
+
export declare const getActivityTool: RegisteredTool<typeof GetActivityInputSchema>;
|
|
163
|
+
export declare const searchEmojiTool: RegisteredTool<typeof SearchEmojiInputSchema>;
|
|
164
|
+
export declare const addReactionTool: RegisteredTool<typeof AddReactionInputSchema>;
|
|
165
|
+
export declare const removeReactionTool: RegisteredTool<typeof RemoveReactionInputSchema>;
|
|
166
|
+
export declare const getSavedMessagesTool: RegisteredTool<typeof GetSavedMessagesInputSchema>;
|
|
167
|
+
export declare const getFollowedThreadsTool: RegisteredTool<typeof GetFollowedThreadsInputSchema>;
|
|
168
|
+
/** All message-related tools. */
|
|
169
|
+
export declare const messageTools: (RegisteredTool<z.ZodObject<{
|
|
170
|
+
content: z.ZodString;
|
|
171
|
+
conversationId: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
172
|
+
replyToMessageId: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
content: string;
|
|
175
|
+
conversationId: string;
|
|
176
|
+
replyToMessageId?: string | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
content: string;
|
|
179
|
+
conversationId?: string | undefined;
|
|
180
|
+
replyToMessageId?: string | undefined;
|
|
181
|
+
}>> | RegisteredTool<z.ZodObject<Record<string, never>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
182
|
+
[x: string]: never;
|
|
183
|
+
}, {
|
|
184
|
+
[x: string]: never;
|
|
185
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
186
|
+
conversationId: z.ZodString;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
conversationId: string;
|
|
189
|
+
}, {
|
|
190
|
+
conversationId: string;
|
|
191
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
192
|
+
conversationId: z.ZodString;
|
|
193
|
+
messageId: z.ZodString;
|
|
194
|
+
rootMessageId: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
conversationId: string;
|
|
197
|
+
messageId: string;
|
|
198
|
+
rootMessageId?: string | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
conversationId: string;
|
|
201
|
+
messageId: string;
|
|
202
|
+
rootMessageId?: string | undefined;
|
|
203
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
204
|
+
userId: z.ZodString;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
userId: string;
|
|
207
|
+
}, {
|
|
208
|
+
userId: string;
|
|
209
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
210
|
+
userIds: z.ZodArray<z.ZodString, "many">;
|
|
211
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
userIds: string[];
|
|
214
|
+
topic?: string | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
userIds: string[];
|
|
217
|
+
topic?: string | undefined;
|
|
218
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
219
|
+
conversationId: z.ZodString;
|
|
220
|
+
messageId: z.ZodString;
|
|
221
|
+
content: z.ZodString;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
content: string;
|
|
224
|
+
conversationId: string;
|
|
225
|
+
messageId: string;
|
|
226
|
+
}, {
|
|
227
|
+
content: string;
|
|
228
|
+
conversationId: string;
|
|
229
|
+
messageId: string;
|
|
230
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
231
|
+
conversationId: z.ZodString;
|
|
232
|
+
messageId: z.ZodString;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
conversationId: string;
|
|
235
|
+
messageId: string;
|
|
236
|
+
}, {
|
|
237
|
+
conversationId: string;
|
|
238
|
+
messageId: string;
|
|
239
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
240
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
conversationId?: string | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
conversationId?: string | undefined;
|
|
245
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
246
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
limit?: number | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
limit?: number | undefined;
|
|
251
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
252
|
+
query: z.ZodString;
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
|
+
query: string;
|
|
255
|
+
}, {
|
|
256
|
+
query: string;
|
|
257
|
+
}>> | RegisteredTool<z.ZodObject<{
|
|
258
|
+
conversationId: z.ZodString;
|
|
259
|
+
messageId: z.ZodString;
|
|
260
|
+
emoji: z.ZodString;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
conversationId: string;
|
|
263
|
+
emoji: string;
|
|
264
|
+
messageId: string;
|
|
265
|
+
}, {
|
|
266
|
+
conversationId: string;
|
|
267
|
+
emoji: string;
|
|
268
|
+
messageId: string;
|
|
269
|
+
}>>)[];
|