integrate-sdk 0.9.25 → 0.9.26-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/index.js +28 -10
- package/dist/adapters/solid-start.js +28 -10
- package/dist/adapters/svelte-kit.js +28 -10
- package/dist/ai/anthropic.js +11 -1
- package/dist/ai/google.js +11 -1
- package/dist/ai/index.js +11 -1
- package/dist/ai/openai.js +11 -1
- package/dist/ai/vercel-ai.js +11 -1
- package/dist/code-mode/executor.js +5 -1
- package/dist/code-mode/index.js +11 -1
- package/dist/code-mode/runtime-stub.d.ts +1 -1
- package/dist/code-mode/runtime-stub.d.ts.map +1 -1
- package/dist/code-mode/runtime-stub.js +5 -1
- package/dist/code-mode/tool-builder.d.ts.map +1 -1
- package/dist/code-mode/tool-builder.js +11 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +197 -10
- package/dist/server.js +292 -64
- package/dist/src/code-mode/runtime-stub.d.ts +1 -1
- package/dist/src/code-mode/runtime-stub.d.ts.map +1 -1
- package/dist/src/code-mode/tool-builder.d.ts.map +1 -1
- package/dist/src/integrations/excel-client.d.ts +284 -0
- package/dist/src/integrations/excel-client.d.ts.map +1 -0
- package/dist/src/integrations/excel.d.ts +22 -0
- package/dist/src/integrations/excel.d.ts.map +1 -0
- package/dist/src/integrations/gdrive-client.d.ts +264 -0
- package/dist/src/integrations/gdrive-client.d.ts.map +1 -0
- package/dist/src/integrations/gdrive.d.ts +22 -0
- package/dist/src/integrations/gdrive.d.ts.map +1 -0
- package/dist/src/integrations/onedrive-client.d.ts +47 -250
- package/dist/src/integrations/onedrive-client.d.ts.map +1 -1
- package/dist/src/integrations/onedrive.d.ts +1 -1
- package/dist/src/integrations/onedrive.d.ts.map +1 -1
- package/dist/src/integrations/powerpoint-client.d.ts +99 -0
- package/dist/src/integrations/powerpoint-client.d.ts.map +1 -0
- package/dist/src/integrations/powerpoint.d.ts +22 -0
- package/dist/src/integrations/powerpoint.d.ts.map +1 -0
- package/dist/src/integrations/whatsapp-client.d.ts +406 -211
- package/dist/src/integrations/whatsapp-client.d.ts.map +1 -1
- package/dist/src/integrations/whatsapp.d.ts +1 -1
- package/dist/src/integrations/whatsapp.d.ts.map +1 -1
- package/dist/src/integrations/word-client.d.ts +99 -0
- package/dist/src/integrations/word-client.d.ts.map +1 -0
- package/dist/src/integrations/word.d.ts +22 -0
- package/dist/src/integrations/word.d.ts.map +1 -0
- package/dist/src/integrations/youtube-client.d.ts +292 -283
- package/dist/src/integrations/youtube-client.d.ts.map +1 -1
- package/dist/src/integrations/youtube.d.ts +2 -2
- package/dist/src/integrations/youtube.d.ts.map +1 -1
- 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 +1 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OneDrive Integration Client Types
|
|
3
|
-
* Fully typed interface for OneDrive
|
|
3
|
+
* Fully typed interface for OneDrive file management methods
|
|
4
4
|
*/
|
|
5
5
|
import type { MCPToolCallResponse } from "../protocol/messages.js";
|
|
6
|
-
/**
|
|
7
|
-
* OneDrive Drive Item
|
|
8
|
-
*/
|
|
9
6
|
export interface OneDriveDriveItem {
|
|
10
7
|
id: string;
|
|
11
8
|
name: string;
|
|
@@ -13,326 +10,126 @@ export interface OneDriveDriveItem {
|
|
|
13
10
|
lastModifiedDateTime: string;
|
|
14
11
|
size?: number;
|
|
15
12
|
webUrl: string;
|
|
16
|
-
createdBy?: {
|
|
17
|
-
user?: {
|
|
18
|
-
displayName: string;
|
|
19
|
-
email?: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
lastModifiedBy?: {
|
|
23
|
-
user?: {
|
|
24
|
-
displayName: string;
|
|
25
|
-
email?: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
parentReference?: {
|
|
29
|
-
driveId: string;
|
|
30
|
-
driveType: string;
|
|
31
|
-
id: string;
|
|
32
|
-
path: string;
|
|
33
|
-
};
|
|
34
13
|
file?: {
|
|
35
14
|
mimeType: string;
|
|
36
|
-
hashes?: {
|
|
37
|
-
quickXorHash?: string;
|
|
38
|
-
sha1Hash?: string;
|
|
39
|
-
};
|
|
40
15
|
};
|
|
41
16
|
folder?: {
|
|
42
17
|
childCount: number;
|
|
43
18
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* OneDrive Permission
|
|
51
|
-
*/
|
|
52
|
-
export interface OneDrivePermission {
|
|
53
|
-
id: string;
|
|
54
|
-
roles: string[];
|
|
55
|
-
link?: {
|
|
56
|
-
type: "view" | "edit" | "embed";
|
|
57
|
-
scope: "anonymous" | "organization";
|
|
58
|
-
webUrl: string;
|
|
59
|
-
};
|
|
60
|
-
grantedTo?: {
|
|
61
|
-
user?: {
|
|
62
|
-
displayName: string;
|
|
63
|
-
email?: string;
|
|
64
|
-
id: string;
|
|
65
|
-
};
|
|
19
|
+
parentReference?: {
|
|
20
|
+
driveId: string;
|
|
21
|
+
id: string;
|
|
22
|
+
path: string;
|
|
66
23
|
};
|
|
67
|
-
grantedToIdentities?: Array<{
|
|
68
|
-
user?: {
|
|
69
|
-
displayName: string;
|
|
70
|
-
email?: string;
|
|
71
|
-
id: string;
|
|
72
|
-
};
|
|
73
|
-
}>;
|
|
74
|
-
shareId?: string;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* OneDrive Word Document Content
|
|
78
|
-
*/
|
|
79
|
-
export interface OneDriveWordContent {
|
|
80
|
-
content: string;
|
|
81
|
-
contentType: "text" | "html";
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* OneDrive Excel Worksheet
|
|
85
|
-
*/
|
|
86
|
-
export interface OneDriveExcelWorksheet {
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
position: number;
|
|
90
|
-
visibility: "visible" | "hidden" | "veryHidden";
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* OneDrive Excel Range
|
|
94
|
-
*/
|
|
95
|
-
export interface OneDriveExcelRange {
|
|
96
|
-
address: string;
|
|
97
|
-
addressLocal: string;
|
|
98
|
-
cellCount: number;
|
|
99
|
-
columnCount: number;
|
|
100
|
-
rowCount: number;
|
|
101
|
-
columnIndex: number;
|
|
102
|
-
rowIndex: number;
|
|
103
|
-
text?: string[][];
|
|
104
|
-
values?: any[][];
|
|
105
|
-
formulas?: string[][];
|
|
106
|
-
numberFormat?: string[][];
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* OneDrive PowerPoint Slide
|
|
110
|
-
*/
|
|
111
|
-
export interface OneDrivePowerPointSlide {
|
|
112
|
-
id: string;
|
|
113
|
-
slideIndex: number;
|
|
114
24
|
}
|
|
115
25
|
/**
|
|
116
26
|
* OneDrive Integration Client Interface
|
|
117
|
-
* Provides type-safe methods for
|
|
27
|
+
* Provides type-safe methods for OneDrive file management
|
|
118
28
|
*/
|
|
119
29
|
export interface OneDriveIntegrationClient {
|
|
120
30
|
/**
|
|
121
|
-
* List files in
|
|
31
|
+
* List files and folders in OneDrive
|
|
122
32
|
*
|
|
123
33
|
* @example
|
|
124
34
|
* ```typescript
|
|
125
|
-
* const files = await client.onedrive.listFiles({
|
|
126
|
-
* folder_id: "root",
|
|
127
|
-
* order_by: "lastModifiedDateTime desc"
|
|
128
|
-
* });
|
|
35
|
+
* const files = await client.onedrive.listFiles({ path: "/Documents", top: 50 });
|
|
129
36
|
* ```
|
|
130
37
|
*/
|
|
131
38
|
listFiles(params?: {
|
|
132
|
-
/** Folder
|
|
133
|
-
|
|
134
|
-
/**
|
|
39
|
+
/** Folder path to list (defaults to root) */
|
|
40
|
+
path?: string;
|
|
41
|
+
/** Items to return (default 100) */
|
|
42
|
+
top?: number;
|
|
43
|
+
/** OData filter e.g. "file ne null" */
|
|
135
44
|
filter?: string;
|
|
136
|
-
/**
|
|
45
|
+
/** OData sort e.g. "lastModifiedDateTime desc" */
|
|
137
46
|
order_by?: string;
|
|
138
|
-
/** Number of items to return */
|
|
139
|
-
top?: number;
|
|
140
|
-
/** Number of items to skip */
|
|
141
|
-
skip?: number;
|
|
142
47
|
}): Promise<MCPToolCallResponse>;
|
|
143
48
|
/**
|
|
144
|
-
* Get file
|
|
49
|
+
* Get metadata for a file or folder
|
|
145
50
|
*
|
|
146
51
|
* @example
|
|
147
52
|
* ```typescript
|
|
148
|
-
* const file = await client.onedrive.getFile({
|
|
149
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
|
|
150
|
-
* });
|
|
53
|
+
* const file = await client.onedrive.getFile({ item_id: "ABC123" });
|
|
151
54
|
* ```
|
|
152
55
|
*/
|
|
153
56
|
getFile(params: {
|
|
154
|
-
/**
|
|
155
|
-
|
|
57
|
+
/** Item ID */
|
|
58
|
+
item_id: string;
|
|
156
59
|
}): Promise<MCPToolCallResponse>;
|
|
157
60
|
/**
|
|
158
|
-
*
|
|
61
|
+
* Get the download URL for a file
|
|
159
62
|
*
|
|
160
63
|
* @example
|
|
161
64
|
* ```typescript
|
|
162
|
-
* const content = await client.onedrive.downloadFile({
|
|
163
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
|
|
164
|
-
* });
|
|
65
|
+
* const content = await client.onedrive.downloadFile({ item_id: "ABC123" });
|
|
165
66
|
* ```
|
|
166
67
|
*/
|
|
167
68
|
downloadFile(params: {
|
|
168
|
-
/** File ID */
|
|
169
|
-
|
|
69
|
+
/** File item ID */
|
|
70
|
+
item_id: string;
|
|
170
71
|
}): Promise<MCPToolCallResponse>;
|
|
171
72
|
/**
|
|
172
|
-
* Upload a file
|
|
73
|
+
* Upload a file to OneDrive
|
|
173
74
|
*
|
|
174
75
|
* @example
|
|
175
76
|
* ```typescript
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* content:
|
|
180
|
-
* conflict_behavior: "rename"
|
|
77
|
+
* await client.onedrive.uploadFile({
|
|
78
|
+
* path: "/Documents",
|
|
79
|
+
* filename: "report.pdf",
|
|
80
|
+
* content: base64Content,
|
|
181
81
|
* });
|
|
182
82
|
* ```
|
|
183
83
|
*/
|
|
184
84
|
uploadFile(params: {
|
|
185
|
-
/**
|
|
186
|
-
|
|
85
|
+
/** Target folder path in OneDrive */
|
|
86
|
+
path: string;
|
|
187
87
|
/** File name */
|
|
188
|
-
|
|
189
|
-
/** File content (base64 encoded
|
|
88
|
+
filename: string;
|
|
89
|
+
/** File content (base64 encoded) */
|
|
190
90
|
content: string;
|
|
191
|
-
/** Conflict behavior */
|
|
192
|
-
conflict_behavior?: "rename" | "replace" | "fail";
|
|
193
91
|
}): Promise<MCPToolCallResponse>;
|
|
194
92
|
/**
|
|
195
|
-
* Delete a file
|
|
93
|
+
* Delete a file or folder permanently
|
|
196
94
|
*
|
|
197
95
|
* @example
|
|
198
96
|
* ```typescript
|
|
199
|
-
* await client.onedrive.deleteFile({
|
|
200
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
|
|
201
|
-
* });
|
|
97
|
+
* await client.onedrive.deleteFile({ item_id: "ABC123" });
|
|
202
98
|
* ```
|
|
203
99
|
*/
|
|
204
100
|
deleteFile(params: {
|
|
205
|
-
/**
|
|
206
|
-
|
|
101
|
+
/** Item ID to delete */
|
|
102
|
+
item_id: string;
|
|
207
103
|
}): Promise<MCPToolCallResponse>;
|
|
208
104
|
/**
|
|
209
|
-
* Search
|
|
105
|
+
* Search across all files in OneDrive
|
|
210
106
|
*
|
|
211
107
|
* @example
|
|
212
108
|
* ```typescript
|
|
213
|
-
* const results = await client.onedrive.searchFiles({
|
|
214
|
-
* query: "presentation",
|
|
215
|
-
* top: 20
|
|
216
|
-
* });
|
|
109
|
+
* const results = await client.onedrive.searchFiles({ query: "budget", top: 20 });
|
|
217
110
|
* ```
|
|
218
111
|
*/
|
|
219
112
|
searchFiles(params: {
|
|
220
|
-
/** Search
|
|
113
|
+
/** Search text */
|
|
221
114
|
query: string;
|
|
222
|
-
/**
|
|
115
|
+
/** Max results (default 25) */
|
|
223
116
|
top?: number;
|
|
224
117
|
}): Promise<MCPToolCallResponse>;
|
|
225
118
|
/**
|
|
226
|
-
* Create a sharing link
|
|
119
|
+
* Create a sharing link for a file or folder
|
|
227
120
|
*
|
|
228
121
|
* @example
|
|
229
122
|
* ```typescript
|
|
230
|
-
* const
|
|
231
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
232
|
-
* type: "view",
|
|
233
|
-
* scope: "anonymous"
|
|
234
|
-
* });
|
|
123
|
+
* const link = await client.onedrive.shareFile({ item_id: "ABC123", type: "view" });
|
|
235
124
|
* ```
|
|
236
125
|
*/
|
|
237
126
|
shareFile(params: {
|
|
238
|
-
/**
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
type
|
|
242
|
-
/**
|
|
243
|
-
scope
|
|
244
|
-
/** Expiration date (ISO 8601) */
|
|
245
|
-
expiration_date_time?: string;
|
|
246
|
-
/** Password protection */
|
|
247
|
-
password?: string;
|
|
248
|
-
}): Promise<MCPToolCallResponse>;
|
|
249
|
-
/**
|
|
250
|
-
* Get Word document content
|
|
251
|
-
*
|
|
252
|
-
* @example
|
|
253
|
-
* ```typescript
|
|
254
|
-
* const content = await client.onedrive.wordGetContent({
|
|
255
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
256
|
-
* format: "text"
|
|
257
|
-
* });
|
|
258
|
-
* ```
|
|
259
|
-
*/
|
|
260
|
-
wordGetContent(params: {
|
|
261
|
-
/** Word document file ID */
|
|
262
|
-
file_id: string;
|
|
263
|
-
/** Content format */
|
|
264
|
-
format?: "text" | "html";
|
|
265
|
-
}): Promise<MCPToolCallResponse>;
|
|
266
|
-
/**
|
|
267
|
-
* Get Excel worksheets
|
|
268
|
-
*
|
|
269
|
-
* @example
|
|
270
|
-
* ```typescript
|
|
271
|
-
* const worksheets = await client.onedrive.excelGetWorksheets({
|
|
272
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
|
|
273
|
-
* });
|
|
274
|
-
* ```
|
|
275
|
-
*/
|
|
276
|
-
excelGetWorksheets(params: {
|
|
277
|
-
/** Excel file ID */
|
|
278
|
-
file_id: string;
|
|
279
|
-
}): Promise<MCPToolCallResponse>;
|
|
280
|
-
/**
|
|
281
|
-
* Get Excel range data
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* ```typescript
|
|
285
|
-
* const range = await client.onedrive.excelGetRange({
|
|
286
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
287
|
-
* worksheet_name: "Sheet1",
|
|
288
|
-
* range_address: "A1:B10"
|
|
289
|
-
* });
|
|
290
|
-
* ```
|
|
291
|
-
*/
|
|
292
|
-
excelGetRange(params: {
|
|
293
|
-
/** Excel file ID */
|
|
294
|
-
file_id: string;
|
|
295
|
-
/** Worksheet name or ID */
|
|
296
|
-
worksheet_name: string;
|
|
297
|
-
/** Range address (e.g., "A1:B10") */
|
|
298
|
-
range_address: string;
|
|
299
|
-
}): Promise<MCPToolCallResponse>;
|
|
300
|
-
/**
|
|
301
|
-
* Update Excel range data
|
|
302
|
-
*
|
|
303
|
-
* @example
|
|
304
|
-
* ```typescript
|
|
305
|
-
* await client.onedrive.excelUpdateRange({
|
|
306
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF",
|
|
307
|
-
* worksheet_name: "Sheet1",
|
|
308
|
-
* range_address: "A1:B2",
|
|
309
|
-
* values: [["Name", "Age"], ["John", 30]]
|
|
310
|
-
* });
|
|
311
|
-
* ```
|
|
312
|
-
*/
|
|
313
|
-
excelUpdateRange(params: {
|
|
314
|
-
/** Excel file ID */
|
|
315
|
-
file_id: string;
|
|
316
|
-
/** Worksheet name or ID */
|
|
317
|
-
worksheet_name: string;
|
|
318
|
-
/** Range address (e.g., "A1:B10") */
|
|
319
|
-
range_address: string;
|
|
320
|
-
/** Values to set */
|
|
321
|
-
values: any[][];
|
|
322
|
-
}): Promise<MCPToolCallResponse>;
|
|
323
|
-
/**
|
|
324
|
-
* Get PowerPoint slides
|
|
325
|
-
*
|
|
326
|
-
* @example
|
|
327
|
-
* ```typescript
|
|
328
|
-
* const slides = await client.onedrive.powerpointGetSlides({
|
|
329
|
-
* file_id: "01234567-89AB-CDEF-0123-456789ABCDEF"
|
|
330
|
-
* });
|
|
331
|
-
* ```
|
|
332
|
-
*/
|
|
333
|
-
powerpointGetSlides(params: {
|
|
334
|
-
/** PowerPoint file ID */
|
|
335
|
-
file_id: string;
|
|
127
|
+
/** Item ID */
|
|
128
|
+
item_id: string;
|
|
129
|
+
/** view, edit, or embed (default: view) */
|
|
130
|
+
type?: "view" | "edit" | "embed";
|
|
131
|
+
/** anonymous or organization (default: anonymous) */
|
|
132
|
+
scope?: "anonymous" | "organization";
|
|
336
133
|
}): Promise<MCPToolCallResponse>;
|
|
337
134
|
}
|
|
338
135
|
//# sourceMappingURL=onedrive-client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onedrive-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/onedrive-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE
|
|
1
|
+
{"version":3,"file":"onedrive-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/onedrive-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;I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B,CAAC,CAAC;IAEjC;;;;;;;OAOG;IACH,WAAW,CAAC,MAAM,EAAE;QAClB,kBAAkB;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,+BAA+B;QAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,EAAE;QAChB,cAAc;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,2CAA2C;QAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;QACjC,qDAAqD;QACrD,KAAK,CAAC,EAAE,WAAW,GAAG,cAAc,CAAC;KACtC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
|
|
@@ -26,7 +26,7 @@ export interface OneDriveIntegrationConfig {
|
|
|
26
26
|
* Default OneDrive tools that this integration enables
|
|
27
27
|
* These should match the tool names exposed by your MCP server
|
|
28
28
|
*/
|
|
29
|
-
declare const ONEDRIVE_TOOLS: readonly ["onedrive_list_files", "onedrive_get_file", "onedrive_download_file", "onedrive_upload_file", "onedrive_delete_file", "onedrive_search_files", "onedrive_share_file"
|
|
29
|
+
declare const ONEDRIVE_TOOLS: readonly ["onedrive_list_files", "onedrive_get_file", "onedrive_download_file", "onedrive_upload_file", "onedrive_delete_file", "onedrive_search_files", "onedrive_share_file"];
|
|
30
30
|
export declare function onedriveIntegration(config?: OneDriveIntegrationConfig): MCPIntegration<"onedrive">;
|
|
31
31
|
/**
|
|
32
32
|
* Export tool names for type inference
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onedrive.d.ts","sourceRoot":"","sources":["../../../src/integrations/onedrive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAM9D;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"onedrive.d.ts","sourceRoot":"","sources":["../../../src/integrations/onedrive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAM9D;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6FAA6F;IAC7F,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,cAAc,iLAQV,CAAC;AAGX,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,yBAA8B,GAAG,cAAc,CAAC,UAAU,CAAC,CA4BtG;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AAE1D;;GAEG;AACH,YAAY,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPoint Integration Client Types
|
|
3
|
+
* Fully typed interface for PowerPoint presentation methods
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPToolCallResponse } from "../protocol/messages.js";
|
|
6
|
+
/**
|
|
7
|
+
* PowerPoint Integration Client Interface
|
|
8
|
+
* Provides type-safe methods for managing PowerPoint files in OneDrive
|
|
9
|
+
*/
|
|
10
|
+
export interface PowerPointIntegrationClient {
|
|
11
|
+
/**
|
|
12
|
+
* Search for PowerPoint presentations
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* const presentations = await client.powerpoint.list({ query: "deck" });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(params?: {
|
|
20
|
+
/** Filter by name (default: searches .pptx) */
|
|
21
|
+
query?: string;
|
|
22
|
+
/** Max results (default 25) */
|
|
23
|
+
top?: number;
|
|
24
|
+
}): Promise<MCPToolCallResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get metadata for a presentation
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const ppt = await client.powerpoint.get({ item_id: "ABC123" });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
get(params: {
|
|
34
|
+
/** Presentation item ID */
|
|
35
|
+
item_id: string;
|
|
36
|
+
}): Promise<MCPToolCallResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Create a new empty .pptx file in OneDrive
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* const ppt = await client.powerpoint.create({ name: "Q4 Review" });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(params: {
|
|
46
|
+
/** File name (.pptx appended automatically if missing) */
|
|
47
|
+
name: string;
|
|
48
|
+
/** Parent folder item ID (defaults to root) */
|
|
49
|
+
parent_id?: string;
|
|
50
|
+
}): Promise<MCPToolCallResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Copy a presentation
|
|
53
|
+
*
|
|
54
|
+
* For large files the API returns `{ status: "pending", monitor_url }` — poll
|
|
55
|
+
* `monitor_url` until it returns a DriveItem to confirm completion.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const copy = await client.powerpoint.copy({ item_id: "ABC123", name: "Deck Copy" });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
copy(params: {
|
|
63
|
+
/** Presentation item ID to copy */
|
|
64
|
+
item_id: string;
|
|
65
|
+
/** Name for the copy */
|
|
66
|
+
name?: string;
|
|
67
|
+
/** Destination folder item ID */
|
|
68
|
+
parent_id?: string;
|
|
69
|
+
}): Promise<MCPToolCallResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Delete a presentation permanently
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```typescript
|
|
75
|
+
* await client.powerpoint.delete({ item_id: "ABC123" });
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
delete(params: {
|
|
79
|
+
/** Presentation item ID */
|
|
80
|
+
item_id: string;
|
|
81
|
+
}): Promise<MCPToolCallResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Create a sharing link for a presentation
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```typescript
|
|
87
|
+
* const link = await client.powerpoint.share({ item_id: "ABC123", type: "view" });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
share(params: {
|
|
91
|
+
/** Presentation item ID */
|
|
92
|
+
item_id: string;
|
|
93
|
+
/** view, edit, or embed (default: view) */
|
|
94
|
+
type?: "view" | "edit" | "embed";
|
|
95
|
+
/** anonymous or organization (default: anonymous) */
|
|
96
|
+
scope?: "anonymous" | "organization";
|
|
97
|
+
}): Promise<MCPToolCallResponse>;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=powerpoint-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powerpoint-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/powerpoint-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,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C,CAAC;CAClC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PowerPoint Integration
|
|
3
|
+
* Enables PowerPoint presentation tools with OAuth configuration
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPIntegration } from "./types.js";
|
|
6
|
+
export interface PowerPointIntegrationConfig {
|
|
7
|
+
/** Microsoft OAuth client ID (defaults to POWERPOINT_CLIENT_ID env var) */
|
|
8
|
+
clientId?: string;
|
|
9
|
+
/** Microsoft OAuth client secret (defaults to POWERPOINT_CLIENT_SECRET env var) */
|
|
10
|
+
clientSecret?: string;
|
|
11
|
+
/** Additional OAuth scopes */
|
|
12
|
+
scopes?: string[];
|
|
13
|
+
/** Optional OAuth scopes */
|
|
14
|
+
optionalScopes?: string[];
|
|
15
|
+
/** OAuth redirect URI */
|
|
16
|
+
redirectUri?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const POWERPOINT_TOOLS: readonly ["powerpoint_list", "powerpoint_get", "powerpoint_create", "powerpoint_copy", "powerpoint_delete", "powerpoint_share"];
|
|
19
|
+
export declare function powerpointIntegration(config?: PowerPointIntegrationConfig): MCPIntegration<"powerpoint">;
|
|
20
|
+
export type PowerPointTools = typeof POWERPOINT_TOOLS[number];
|
|
21
|
+
export type { PowerPointIntegrationClient } from "./powerpoint-client.js";
|
|
22
|
+
//# sourceMappingURL=powerpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powerpoint.d.ts","sourceRoot":"","sources":["../../../src/integrations/powerpoint.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAM9D,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,4BAA4B;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,gBAAgB,iIAOZ,CAAC;AAEX,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,2BAAgC,GAAG,cAAc,CAAC,YAAY,CAAC,CA0B5G;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC9D,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC"}
|