integrate-sdk 0.8.28 → 0.8.29-dev.0
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/dist/adapters/auto-routes.js +177 -0
- package/dist/adapters/index.js +177 -0
- package/dist/adapters/nextjs.js +177 -0
- package/dist/adapters/node.js +177 -0
- package/dist/adapters/svelte-kit.js +177 -0
- package/dist/adapters/tanstack-start.js +177 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +194 -1
- package/dist/oauth.js +177 -0
- package/dist/server.js +181 -0
- package/dist/src/client.d.ts +5 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/linear-client.d.ts +309 -0
- package/dist/src/integrations/linear-client.d.ts.map +1 -0
- package/dist/src/integrations/linear.d.ts +37 -0
- package/dist/src/integrations/linear.d.ts.map +1 -0
- package/dist/src/integrations/slack-client.d.ts +271 -0
- package/dist/src/integrations/slack-client.d.ts.map +1 -0
- package/dist/src/integrations/slack.d.ts +37 -0
- package/dist/src/integrations/slack.d.ts.map +1 -0
- package/dist/src/integrations/vercel-client.d.ts +278 -0
- package/dist/src/integrations/vercel-client.d.ts.map +1 -0
- package/dist/src/integrations/vercel.d.ts +37 -0
- package/dist/src/integrations/vercel.d.ts.map +1 -0
- package/dist/src/integrations/zendesk-client.d.ts +395 -0
- package/dist/src/integrations/zendesk-client.d.ts.map +1 -0
- package/dist/src/integrations/zendesk.d.ts +39 -0
- package/dist/src/integrations/zendesk.d.ts.map +1 -0
- package/dist/src/server.d.ts +4 -0
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +8 -0
- package/package.json +2 -2
package/dist/src/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,O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AAS,SAAS,cAAc,EAAE,EAC7E,MAAM,EAAE,eAAe,CAAC,aAAa,CAAC,GACrC,SAAS,CAAC,aAAa,CAAC,CAmE1B;AAkFD;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAetD"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -27,6 +27,14 @@ export { gmailIntegration } from "./integrations/gmail.js";
|
|
|
27
27
|
export type { GmailIntegrationConfig, GmailTools, GmailIntegrationClient } from "./integrations/gmail.js";
|
|
28
28
|
export { notionIntegration } from "./integrations/notion.js";
|
|
29
29
|
export type { NotionIntegrationConfig, NotionTools, NotionIntegrationClient } from "./integrations/notion.js";
|
|
30
|
+
export { slackIntegration } from "./integrations/slack.js";
|
|
31
|
+
export type { SlackIntegrationConfig, SlackTools, SlackIntegrationClient } from "./integrations/slack.js";
|
|
32
|
+
export { linearIntegration } from "./integrations/linear.js";
|
|
33
|
+
export type { LinearIntegrationConfig, LinearTools, LinearIntegrationClient } from "./integrations/linear.js";
|
|
34
|
+
export { vercelIntegration } from "./integrations/vercel.js";
|
|
35
|
+
export type { VercelIntegrationConfig, VercelTools, VercelIntegrationClient } from "./integrations/vercel.js";
|
|
36
|
+
export { zendeskIntegration } from "./integrations/zendesk.js";
|
|
37
|
+
export type { ZendeskIntegrationConfig, ZendeskTools, ZendeskIntegrationClient } from "./integrations/zendesk.js";
|
|
30
38
|
export type { ServerIntegrationClient } from "./integrations/server-client.js";
|
|
31
39
|
export { genericOAuthIntegration, createSimpleIntegration, } from "./integrations/generic.js";
|
|
32
40
|
export type { GenericOAuthIntegrationConfig } from "./integrations/generic.js";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAA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B,GACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,YAAY,EACV,cAAc,EACd,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Linear Integration Client Types
|
|
3
|
+
* Fully typed interface for Linear integration methods
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPToolCallResponse } from "../protocol/messages.js";
|
|
6
|
+
/**
|
|
7
|
+
* Linear Issue
|
|
8
|
+
*/
|
|
9
|
+
export interface LinearIssue {
|
|
10
|
+
id: string;
|
|
11
|
+
identifier: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
priority: number;
|
|
15
|
+
priorityLabel: string;
|
|
16
|
+
state: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
assignee?: {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
email: string;
|
|
26
|
+
avatarUrl?: string;
|
|
27
|
+
};
|
|
28
|
+
team: {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
key: string;
|
|
32
|
+
};
|
|
33
|
+
project?: {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
labels?: Array<{
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}>;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
completedAt?: string;
|
|
45
|
+
canceledAt?: string;
|
|
46
|
+
dueDate?: string;
|
|
47
|
+
url: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Linear Project
|
|
51
|
+
*/
|
|
52
|
+
export interface LinearProject {
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
icon?: string;
|
|
57
|
+
color?: string;
|
|
58
|
+
state: string;
|
|
59
|
+
progress: number;
|
|
60
|
+
startDate?: string;
|
|
61
|
+
targetDate?: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
|
+
url: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Linear Team
|
|
68
|
+
*/
|
|
69
|
+
export interface LinearTeam {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
key: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
icon?: string;
|
|
75
|
+
color?: string;
|
|
76
|
+
private: boolean;
|
|
77
|
+
createdAt: string;
|
|
78
|
+
updatedAt: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Linear Label
|
|
82
|
+
*/
|
|
83
|
+
export interface LinearLabel {
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
color: string;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
updatedAt: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Linear Comment
|
|
93
|
+
*/
|
|
94
|
+
export interface LinearComment {
|
|
95
|
+
id: string;
|
|
96
|
+
body: string;
|
|
97
|
+
user: {
|
|
98
|
+
id: string;
|
|
99
|
+
name: string;
|
|
100
|
+
email: string;
|
|
101
|
+
};
|
|
102
|
+
createdAt: string;
|
|
103
|
+
updatedAt: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Linear Integration Client Interface
|
|
107
|
+
* Provides type-safe methods for all Linear operations
|
|
108
|
+
*/
|
|
109
|
+
export interface LinearIntegrationClient {
|
|
110
|
+
/**
|
|
111
|
+
* Create a new issue in Linear
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* const issue = await client.linear.createIssue({
|
|
116
|
+
* teamId: "team-id",
|
|
117
|
+
* title: "Fix authentication bug",
|
|
118
|
+
* description: "Users are unable to login"
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
createIssue(params: {
|
|
123
|
+
/** Team ID to create the issue in */
|
|
124
|
+
teamId: string;
|
|
125
|
+
/** Issue title */
|
|
126
|
+
title: string;
|
|
127
|
+
/** Issue description (markdown supported) */
|
|
128
|
+
description?: string;
|
|
129
|
+
/** Priority (0 = no priority, 1 = urgent, 2 = high, 3 = normal, 4 = low) */
|
|
130
|
+
priority?: number;
|
|
131
|
+
/** Assignee user ID */
|
|
132
|
+
assigneeId?: string;
|
|
133
|
+
/** Project ID */
|
|
134
|
+
projectId?: string;
|
|
135
|
+
/** Label IDs */
|
|
136
|
+
labelIds?: string[];
|
|
137
|
+
/** Due date (ISO 8601) */
|
|
138
|
+
dueDate?: string;
|
|
139
|
+
/** State ID */
|
|
140
|
+
stateId?: string;
|
|
141
|
+
}): Promise<MCPToolCallResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* List issues in Linear
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* const issues = await client.linear.listIssues({
|
|
148
|
+
* teamId: "team-id",
|
|
149
|
+
* first: 50
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
listIssues(params?: {
|
|
154
|
+
/** Team ID to filter by */
|
|
155
|
+
teamId?: string;
|
|
156
|
+
/** Project ID to filter by */
|
|
157
|
+
projectId?: string;
|
|
158
|
+
/** Assignee user ID to filter by */
|
|
159
|
+
assigneeId?: string;
|
|
160
|
+
/** State IDs to filter by */
|
|
161
|
+
stateIds?: string[];
|
|
162
|
+
/** Label IDs to filter by */
|
|
163
|
+
labelIds?: string[];
|
|
164
|
+
/** Number of issues to return */
|
|
165
|
+
first?: number;
|
|
166
|
+
/** Pagination cursor */
|
|
167
|
+
after?: string;
|
|
168
|
+
/** Include archived issues */
|
|
169
|
+
includeArchived?: boolean;
|
|
170
|
+
}): Promise<MCPToolCallResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* Get a specific issue by ID or identifier
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```typescript
|
|
176
|
+
* const issue = await client.linear.getIssue({
|
|
177
|
+
* issueId: "ABC-123"
|
|
178
|
+
* });
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
getIssue(params: {
|
|
182
|
+
/** Issue ID or identifier (e.g., "ABC-123") */
|
|
183
|
+
issueId: string;
|
|
184
|
+
}): Promise<MCPToolCallResponse>;
|
|
185
|
+
/**
|
|
186
|
+
* Update an existing issue
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* await client.linear.updateIssue({
|
|
191
|
+
* issueId: "issue-id",
|
|
192
|
+
* title: "Updated title",
|
|
193
|
+
* priority: 1
|
|
194
|
+
* });
|
|
195
|
+
* ```
|
|
196
|
+
*/
|
|
197
|
+
updateIssue(params: {
|
|
198
|
+
/** Issue ID to update */
|
|
199
|
+
issueId: string;
|
|
200
|
+
/** New title */
|
|
201
|
+
title?: string;
|
|
202
|
+
/** New description */
|
|
203
|
+
description?: string;
|
|
204
|
+
/** New priority */
|
|
205
|
+
priority?: number;
|
|
206
|
+
/** New assignee user ID */
|
|
207
|
+
assigneeId?: string;
|
|
208
|
+
/** New state ID */
|
|
209
|
+
stateId?: string;
|
|
210
|
+
/** New project ID */
|
|
211
|
+
projectId?: string;
|
|
212
|
+
/** New label IDs */
|
|
213
|
+
labelIds?: string[];
|
|
214
|
+
/** New due date */
|
|
215
|
+
dueDate?: string;
|
|
216
|
+
}): Promise<MCPToolCallResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* List projects in Linear
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```typescript
|
|
222
|
+
* const projects = await client.linear.listProjects({
|
|
223
|
+
* first: 20
|
|
224
|
+
* });
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
listProjects(params?: {
|
|
228
|
+
/** Team ID to filter by */
|
|
229
|
+
teamId?: string;
|
|
230
|
+
/** Number of projects to return */
|
|
231
|
+
first?: number;
|
|
232
|
+
/** Pagination cursor */
|
|
233
|
+
after?: string;
|
|
234
|
+
/** Include archived projects */
|
|
235
|
+
includeArchived?: boolean;
|
|
236
|
+
}): Promise<MCPToolCallResponse>;
|
|
237
|
+
/**
|
|
238
|
+
* List teams in Linear
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```typescript
|
|
242
|
+
* const teams = await client.linear.listTeams({
|
|
243
|
+
* first: 20
|
|
244
|
+
* });
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
247
|
+
listTeams(params?: {
|
|
248
|
+
/** Number of teams to return */
|
|
249
|
+
first?: number;
|
|
250
|
+
/** Pagination cursor */
|
|
251
|
+
after?: string;
|
|
252
|
+
}): Promise<MCPToolCallResponse>;
|
|
253
|
+
/**
|
|
254
|
+
* Add a comment to an issue
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```typescript
|
|
258
|
+
* await client.linear.addComment({
|
|
259
|
+
* issueId: "issue-id",
|
|
260
|
+
* body: "This is a comment"
|
|
261
|
+
* });
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
addComment(params: {
|
|
265
|
+
/** Issue ID to comment on */
|
|
266
|
+
issueId: string;
|
|
267
|
+
/** Comment body (markdown supported) */
|
|
268
|
+
body: string;
|
|
269
|
+
}): Promise<MCPToolCallResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* List labels in Linear
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```typescript
|
|
275
|
+
* const labels = await client.linear.listLabels({
|
|
276
|
+
* teamId: "team-id"
|
|
277
|
+
* });
|
|
278
|
+
* ```
|
|
279
|
+
*/
|
|
280
|
+
listLabels(params?: {
|
|
281
|
+
/** Team ID to filter by */
|
|
282
|
+
teamId?: string;
|
|
283
|
+
/** Number of labels to return */
|
|
284
|
+
first?: number;
|
|
285
|
+
/** Pagination cursor */
|
|
286
|
+
after?: string;
|
|
287
|
+
}): Promise<MCPToolCallResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* Search for issues
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* ```typescript
|
|
293
|
+
* const results = await client.linear.searchIssues({
|
|
294
|
+
* query: "authentication bug"
|
|
295
|
+
* });
|
|
296
|
+
* ```
|
|
297
|
+
*/
|
|
298
|
+
searchIssues(params: {
|
|
299
|
+
/** Search query */
|
|
300
|
+
query: string;
|
|
301
|
+
/** Team ID to filter by */
|
|
302
|
+
teamId?: string;
|
|
303
|
+
/** Include archived issues */
|
|
304
|
+
includeArchived?: boolean;
|
|
305
|
+
/** Number of results to return */
|
|
306
|
+
first?: number;
|
|
307
|
+
}): Promise<MCPToolCallResponse>;
|
|
308
|
+
}
|
|
309
|
+
//# sourceMappingURL=linear-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/linear-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAC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AK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Linear Integration
|
|
3
|
+
* Enables Linear tools with OAuth configuration
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPIntegration } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Linear integration configuration
|
|
8
|
+
*
|
|
9
|
+
* SERVER-SIDE: Automatically reads LINEAR_CLIENT_ID and LINEAR_CLIENT_SECRET from environment.
|
|
10
|
+
* You can override by providing explicit clientId and clientSecret values.
|
|
11
|
+
* CLIENT-SIDE: Omit clientId and clientSecret when using createMCPClient()
|
|
12
|
+
*/
|
|
13
|
+
export interface LinearIntegrationConfig {
|
|
14
|
+
/** Linear OAuth client ID (defaults to LINEAR_CLIENT_ID env var) */
|
|
15
|
+
clientId?: string;
|
|
16
|
+
/** Linear OAuth client secret (defaults to LINEAR_CLIENT_SECRET env var) */
|
|
17
|
+
clientSecret?: string;
|
|
18
|
+
/** Additional OAuth scopes (default: ['read', 'write', 'issues:create']) */
|
|
19
|
+
scopes?: string[];
|
|
20
|
+
/** OAuth redirect URI */
|
|
21
|
+
redirectUri?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Default Linear tools that this integration enables
|
|
25
|
+
* These should match the tool names exposed by your MCP server
|
|
26
|
+
*/
|
|
27
|
+
declare const LINEAR_TOOLS: readonly ["linear_create_issue", "linear_list_issues", "linear_get_issue", "linear_update_issue", "linear_list_projects", "linear_list_teams", "linear_add_comment", "linear_list_labels", "linear_search_issues"];
|
|
28
|
+
export declare function linearIntegration(config?: LinearIntegrationConfig): MCPIntegration<"linear">;
|
|
29
|
+
/**
|
|
30
|
+
* Export tool names for type inference
|
|
31
|
+
*/
|
|
32
|
+
export type LinearTools = typeof LINEAR_TOOLS[number];
|
|
33
|
+
/**
|
|
34
|
+
* Export Linear client types
|
|
35
|
+
*/
|
|
36
|
+
export type { LinearIntegrationClient } from "./linear-client.js";
|
|
37
|
+
//# sourceMappingURL=linear.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear.d.ts","sourceRoot":"","sources":["../../../src/integrations/linear.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAG9D;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY,oNAUR,CAAC;AAGX,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,uBAA4B,GAAG,cAAc,CAAC,QAAQ,CAAC,CAyBhG;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAEtD;;GAEG;AACH,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slack Integration Client Types
|
|
3
|
+
* Fully typed interface for Slack integration methods
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPToolCallResponse } from "../protocol/messages.js";
|
|
6
|
+
/**
|
|
7
|
+
* Slack Channel
|
|
8
|
+
*/
|
|
9
|
+
export interface SlackChannel {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
is_channel: boolean;
|
|
13
|
+
is_group: boolean;
|
|
14
|
+
is_im: boolean;
|
|
15
|
+
is_mpim: boolean;
|
|
16
|
+
is_private: boolean;
|
|
17
|
+
created: number;
|
|
18
|
+
creator: string;
|
|
19
|
+
is_archived: boolean;
|
|
20
|
+
is_general: boolean;
|
|
21
|
+
name_normalized: string;
|
|
22
|
+
is_member: boolean;
|
|
23
|
+
topic?: {
|
|
24
|
+
value: string;
|
|
25
|
+
creator: string;
|
|
26
|
+
last_set: number;
|
|
27
|
+
};
|
|
28
|
+
purpose?: {
|
|
29
|
+
value: string;
|
|
30
|
+
creator: string;
|
|
31
|
+
last_set: number;
|
|
32
|
+
};
|
|
33
|
+
num_members?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Slack User
|
|
37
|
+
*/
|
|
38
|
+
export interface SlackUser {
|
|
39
|
+
id: string;
|
|
40
|
+
team_id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
deleted: boolean;
|
|
43
|
+
real_name?: string;
|
|
44
|
+
tz?: string;
|
|
45
|
+
tz_label?: string;
|
|
46
|
+
tz_offset?: number;
|
|
47
|
+
profile: {
|
|
48
|
+
avatar_hash?: string;
|
|
49
|
+
status_text?: string;
|
|
50
|
+
status_emoji?: string;
|
|
51
|
+
real_name?: string;
|
|
52
|
+
display_name?: string;
|
|
53
|
+
email?: string;
|
|
54
|
+
image_24?: string;
|
|
55
|
+
image_32?: string;
|
|
56
|
+
image_48?: string;
|
|
57
|
+
image_72?: string;
|
|
58
|
+
image_192?: string;
|
|
59
|
+
image_512?: string;
|
|
60
|
+
};
|
|
61
|
+
is_admin?: boolean;
|
|
62
|
+
is_owner?: boolean;
|
|
63
|
+
is_primary_owner?: boolean;
|
|
64
|
+
is_bot?: boolean;
|
|
65
|
+
updated?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Slack Message
|
|
69
|
+
*/
|
|
70
|
+
export interface SlackMessage {
|
|
71
|
+
type: string;
|
|
72
|
+
user?: string;
|
|
73
|
+
text: string;
|
|
74
|
+
ts: string;
|
|
75
|
+
thread_ts?: string;
|
|
76
|
+
reply_count?: number;
|
|
77
|
+
reply_users_count?: number;
|
|
78
|
+
latest_reply?: string;
|
|
79
|
+
reactions?: Array<{
|
|
80
|
+
name: string;
|
|
81
|
+
count: number;
|
|
82
|
+
users: string[];
|
|
83
|
+
}>;
|
|
84
|
+
attachments?: Array<Record<string, unknown>>;
|
|
85
|
+
blocks?: Array<Record<string, unknown>>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Slack Integration Client Interface
|
|
89
|
+
* Provides type-safe methods for all Slack operations
|
|
90
|
+
*/
|
|
91
|
+
export interface SlackIntegrationClient {
|
|
92
|
+
/**
|
|
93
|
+
* Send a message to a Slack channel
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* const result = await client.slack.sendMessage({
|
|
98
|
+
* channel: "C1234567890",
|
|
99
|
+
* text: "Hello, World!"
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
sendMessage(params: {
|
|
104
|
+
/** Channel, private group, or IM channel to send message to */
|
|
105
|
+
channel: string;
|
|
106
|
+
/** Text of the message to send */
|
|
107
|
+
text: string;
|
|
108
|
+
/** Thread timestamp to reply in a thread */
|
|
109
|
+
thread_ts?: string;
|
|
110
|
+
/** Disable link previews */
|
|
111
|
+
unfurl_links?: boolean;
|
|
112
|
+
/** Disable media previews */
|
|
113
|
+
unfurl_media?: boolean;
|
|
114
|
+
}): Promise<MCPToolCallResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* List channels in the workspace
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* ```typescript
|
|
120
|
+
* const channels = await client.slack.listChannels({
|
|
121
|
+
* types: "public_channel,private_channel"
|
|
122
|
+
* });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
listChannels(params?: {
|
|
126
|
+
/** Mix and match channel types */
|
|
127
|
+
types?: string;
|
|
128
|
+
/** Exclude archived channels */
|
|
129
|
+
exclude_archived?: boolean;
|
|
130
|
+
/** Limit results */
|
|
131
|
+
limit?: number;
|
|
132
|
+
/** Pagination cursor */
|
|
133
|
+
cursor?: string;
|
|
134
|
+
}): Promise<MCPToolCallResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Get information about a channel
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```typescript
|
|
140
|
+
* const channel = await client.slack.getChannel({
|
|
141
|
+
* channel: "C1234567890"
|
|
142
|
+
* });
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
getChannel(params: {
|
|
146
|
+
/** Channel to get info for */
|
|
147
|
+
channel: string;
|
|
148
|
+
}): Promise<MCPToolCallResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* List users in the workspace
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```typescript
|
|
154
|
+
* const users = await client.slack.listUsers({
|
|
155
|
+
* limit: 100
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
listUsers(params?: {
|
|
160
|
+
/** Limit results */
|
|
161
|
+
limit?: number;
|
|
162
|
+
/** Pagination cursor */
|
|
163
|
+
cursor?: string;
|
|
164
|
+
}): Promise<MCPToolCallResponse>;
|
|
165
|
+
/**
|
|
166
|
+
* Get information about a user
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* const user = await client.slack.getUser({
|
|
171
|
+
* user: "U1234567890"
|
|
172
|
+
* });
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
getUser(params: {
|
|
176
|
+
/** User to get info for */
|
|
177
|
+
user: string;
|
|
178
|
+
}): Promise<MCPToolCallResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* List messages in a channel
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```typescript
|
|
184
|
+
* const messages = await client.slack.listMessages({
|
|
185
|
+
* channel: "C1234567890",
|
|
186
|
+
* limit: 50
|
|
187
|
+
* });
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
listMessages(params: {
|
|
191
|
+
/** Channel to fetch messages from */
|
|
192
|
+
channel: string;
|
|
193
|
+
/** Number of messages to return */
|
|
194
|
+
limit?: number;
|
|
195
|
+
/** Start of time range */
|
|
196
|
+
oldest?: string;
|
|
197
|
+
/** End of time range */
|
|
198
|
+
latest?: string;
|
|
199
|
+
/** Pagination cursor */
|
|
200
|
+
cursor?: string;
|
|
201
|
+
}): Promise<MCPToolCallResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* Add a reaction to a message
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* ```typescript
|
|
207
|
+
* await client.slack.addReaction({
|
|
208
|
+
* channel: "C1234567890",
|
|
209
|
+
* timestamp: "1234567890.123456",
|
|
210
|
+
* name: "thumbsup"
|
|
211
|
+
* });
|
|
212
|
+
* ```
|
|
213
|
+
*/
|
|
214
|
+
addReaction(params: {
|
|
215
|
+
/** Channel where the message is */
|
|
216
|
+
channel: string;
|
|
217
|
+
/** Timestamp of the message */
|
|
218
|
+
timestamp: string;
|
|
219
|
+
/** Reaction emoji name (without colons) */
|
|
220
|
+
name: string;
|
|
221
|
+
}): Promise<MCPToolCallResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* Search for messages
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```typescript
|
|
227
|
+
* const results = await client.slack.searchMessages({
|
|
228
|
+
* query: "important announcement"
|
|
229
|
+
* });
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
searchMessages(params: {
|
|
233
|
+
/** Search query */
|
|
234
|
+
query: string;
|
|
235
|
+
/** Sort order (score or timestamp) */
|
|
236
|
+
sort?: "score" | "timestamp";
|
|
237
|
+
/** Sort direction */
|
|
238
|
+
sort_dir?: "asc" | "desc";
|
|
239
|
+
/** Number of results per page */
|
|
240
|
+
count?: number;
|
|
241
|
+
/** Page number */
|
|
242
|
+
page?: number;
|
|
243
|
+
}): Promise<MCPToolCallResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* Upload a file to Slack
|
|
246
|
+
*
|
|
247
|
+
* @example
|
|
248
|
+
* ```typescript
|
|
249
|
+
* await client.slack.uploadFile({
|
|
250
|
+
* channels: "C1234567890",
|
|
251
|
+
* content: "file content here",
|
|
252
|
+
* filename: "example.txt"
|
|
253
|
+
* });
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
uploadFile(params: {
|
|
257
|
+
/** Comma-separated list of channel IDs */
|
|
258
|
+
channels?: string;
|
|
259
|
+
/** File contents */
|
|
260
|
+
content?: string;
|
|
261
|
+
/** Filename */
|
|
262
|
+
filename?: string;
|
|
263
|
+
/** File type identifier */
|
|
264
|
+
filetype?: string;
|
|
265
|
+
/** Initial comment */
|
|
266
|
+
initial_comment?: string;
|
|
267
|
+
/** Title of file */
|
|
268
|
+
title?: string;
|
|
269
|
+
}): Promise<MCPToolCallResponse>;
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=slack-client.d.ts.map
|