integrate-sdk 0.8.28 → 0.8.30-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 +397 -0
- package/dist/adapters/index.js +397 -0
- package/dist/adapters/nextjs.js +397 -0
- package/dist/adapters/node.js +397 -0
- package/dist/adapters/svelte-kit.js +397 -0
- package/dist/adapters/tanstack-start.js +397 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +434 -1
- package/dist/oauth.js +397 -0
- package/dist/server.js +406 -0
- package/dist/src/client.d.ts +10 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +18 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/airtable-client.d.ts +260 -0
- package/dist/src/integrations/airtable-client.d.ts.map +1 -0
- package/dist/src/integrations/airtable.d.ts +37 -0
- package/dist/src/integrations/airtable.d.ts.map +1 -0
- package/dist/src/integrations/gcal-client.d.ts +370 -0
- package/dist/src/integrations/gcal-client.d.ts.map +1 -0
- package/dist/src/integrations/gcal.d.ts +37 -0
- package/dist/src/integrations/gcal.d.ts.map +1 -0
- 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/outlook-client.d.ts +433 -0
- package/dist/src/integrations/outlook-client.d.ts.map +1 -0
- package/dist/src/integrations/outlook.d.ts +37 -0
- package/dist/src/integrations/outlook.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/stripe-client.d.ts +412 -0
- package/dist/src/integrations/stripe-client.d.ts.map +1 -0
- package/dist/src/integrations/stripe.d.ts +37 -0
- package/dist/src/integrations/stripe.d.ts.map +1 -0
- package/dist/src/integrations/todoist-client.d.ts +253 -0
- package/dist/src/integrations/todoist-client.d.ts.map +1 -0
- package/dist/src/integrations/todoist.d.ts +37 -0
- package/dist/src/integrations/todoist.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 +9 -0
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +18 -0
- package/package.json +2 -2
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outlook Integration Client Types
|
|
3
|
+
* Fully typed interface for Microsoft Outlook integration methods
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPToolCallResponse } from "../protocol/messages.js";
|
|
6
|
+
/**
|
|
7
|
+
* Outlook Message
|
|
8
|
+
*/
|
|
9
|
+
export interface OutlookMessage {
|
|
10
|
+
id: string;
|
|
11
|
+
createdDateTime: string;
|
|
12
|
+
lastModifiedDateTime: string;
|
|
13
|
+
receivedDateTime: string;
|
|
14
|
+
sentDateTime?: string;
|
|
15
|
+
hasAttachments: boolean;
|
|
16
|
+
internetMessageId?: string;
|
|
17
|
+
subject?: string;
|
|
18
|
+
bodyPreview?: string;
|
|
19
|
+
importance: "low" | "normal" | "high";
|
|
20
|
+
parentFolderId?: string;
|
|
21
|
+
conversationId?: string;
|
|
22
|
+
conversationIndex?: string;
|
|
23
|
+
isDeliveryReceiptRequested?: boolean;
|
|
24
|
+
isReadReceiptRequested?: boolean;
|
|
25
|
+
isRead?: boolean;
|
|
26
|
+
isDraft?: boolean;
|
|
27
|
+
webLink?: string;
|
|
28
|
+
body?: {
|
|
29
|
+
contentType: "text" | "html";
|
|
30
|
+
content: string;
|
|
31
|
+
};
|
|
32
|
+
sender?: {
|
|
33
|
+
emailAddress: {
|
|
34
|
+
name?: string;
|
|
35
|
+
address: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
from?: {
|
|
39
|
+
emailAddress: {
|
|
40
|
+
name?: string;
|
|
41
|
+
address: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
toRecipients?: Array<{
|
|
45
|
+
emailAddress: {
|
|
46
|
+
name?: string;
|
|
47
|
+
address: string;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
ccRecipients?: Array<{
|
|
51
|
+
emailAddress: {
|
|
52
|
+
name?: string;
|
|
53
|
+
address: string;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
bccRecipients?: Array<{
|
|
57
|
+
emailAddress: {
|
|
58
|
+
name?: string;
|
|
59
|
+
address: string;
|
|
60
|
+
};
|
|
61
|
+
}>;
|
|
62
|
+
replyTo?: Array<{
|
|
63
|
+
emailAddress: {
|
|
64
|
+
name?: string;
|
|
65
|
+
address: string;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
flag?: {
|
|
69
|
+
flagStatus: "notFlagged" | "complete" | "flagged";
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Outlook Event
|
|
74
|
+
*/
|
|
75
|
+
export interface OutlookEvent {
|
|
76
|
+
id: string;
|
|
77
|
+
createdDateTime: string;
|
|
78
|
+
lastModifiedDateTime: string;
|
|
79
|
+
subject?: string;
|
|
80
|
+
bodyPreview?: string;
|
|
81
|
+
body?: {
|
|
82
|
+
contentType: "text" | "html";
|
|
83
|
+
content: string;
|
|
84
|
+
};
|
|
85
|
+
start: {
|
|
86
|
+
dateTime: string;
|
|
87
|
+
timeZone: string;
|
|
88
|
+
};
|
|
89
|
+
end: {
|
|
90
|
+
dateTime: string;
|
|
91
|
+
timeZone: string;
|
|
92
|
+
};
|
|
93
|
+
location?: {
|
|
94
|
+
displayName?: string;
|
|
95
|
+
locationType?: string;
|
|
96
|
+
address?: {
|
|
97
|
+
street?: string;
|
|
98
|
+
city?: string;
|
|
99
|
+
state?: string;
|
|
100
|
+
countryOrRegion?: string;
|
|
101
|
+
postalCode?: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
isAllDay?: boolean;
|
|
105
|
+
isCancelled?: boolean;
|
|
106
|
+
isOrganizer?: boolean;
|
|
107
|
+
recurrence?: {
|
|
108
|
+
pattern: {
|
|
109
|
+
type: "daily" | "weekly" | "absoluteMonthly" | "relativeMonthly" | "absoluteYearly" | "relativeYearly";
|
|
110
|
+
interval: number;
|
|
111
|
+
month?: number;
|
|
112
|
+
dayOfMonth?: number;
|
|
113
|
+
daysOfWeek?: string[];
|
|
114
|
+
firstDayOfWeek?: string;
|
|
115
|
+
index?: "first" | "second" | "third" | "fourth" | "last";
|
|
116
|
+
};
|
|
117
|
+
range: {
|
|
118
|
+
type: "endDate" | "noEnd" | "numbered";
|
|
119
|
+
startDate: string;
|
|
120
|
+
endDate?: string;
|
|
121
|
+
numberOfOccurrences?: number;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
attendees?: Array<{
|
|
125
|
+
emailAddress: {
|
|
126
|
+
name?: string;
|
|
127
|
+
address: string;
|
|
128
|
+
};
|
|
129
|
+
type: "required" | "optional" | "resource";
|
|
130
|
+
status?: {
|
|
131
|
+
response: "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded";
|
|
132
|
+
time?: string;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
organizer?: {
|
|
136
|
+
emailAddress: {
|
|
137
|
+
name?: string;
|
|
138
|
+
address: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
webLink?: string;
|
|
142
|
+
onlineMeetingUrl?: string;
|
|
143
|
+
showAs?: "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown";
|
|
144
|
+
importance?: "low" | "normal" | "high";
|
|
145
|
+
sensitivity?: "normal" | "personal" | "private" | "confidential";
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Outlook Contact
|
|
149
|
+
*/
|
|
150
|
+
export interface OutlookContact {
|
|
151
|
+
id: string;
|
|
152
|
+
createdDateTime: string;
|
|
153
|
+
lastModifiedDateTime: string;
|
|
154
|
+
displayName?: string;
|
|
155
|
+
givenName?: string;
|
|
156
|
+
surname?: string;
|
|
157
|
+
middleName?: string;
|
|
158
|
+
nickName?: string;
|
|
159
|
+
title?: string;
|
|
160
|
+
yomiGivenName?: string;
|
|
161
|
+
yomiSurname?: string;
|
|
162
|
+
yomiCompanyName?: string;
|
|
163
|
+
generation?: string;
|
|
164
|
+
imAddresses?: string[];
|
|
165
|
+
jobTitle?: string;
|
|
166
|
+
companyName?: string;
|
|
167
|
+
department?: string;
|
|
168
|
+
officeLocation?: string;
|
|
169
|
+
profession?: string;
|
|
170
|
+
businessHomePage?: string;
|
|
171
|
+
assistantName?: string;
|
|
172
|
+
manager?: string;
|
|
173
|
+
homePhones?: string[];
|
|
174
|
+
mobilePhone?: string;
|
|
175
|
+
businessPhones?: string[];
|
|
176
|
+
spouseName?: string;
|
|
177
|
+
personalNotes?: string;
|
|
178
|
+
children?: string[];
|
|
179
|
+
emailAddresses?: Array<{
|
|
180
|
+
name?: string;
|
|
181
|
+
address: string;
|
|
182
|
+
}>;
|
|
183
|
+
homeAddress?: {
|
|
184
|
+
street?: string;
|
|
185
|
+
city?: string;
|
|
186
|
+
state?: string;
|
|
187
|
+
countryOrRegion?: string;
|
|
188
|
+
postalCode?: string;
|
|
189
|
+
};
|
|
190
|
+
businessAddress?: {
|
|
191
|
+
street?: string;
|
|
192
|
+
city?: string;
|
|
193
|
+
state?: string;
|
|
194
|
+
countryOrRegion?: string;
|
|
195
|
+
postalCode?: string;
|
|
196
|
+
};
|
|
197
|
+
otherAddress?: {
|
|
198
|
+
street?: string;
|
|
199
|
+
city?: string;
|
|
200
|
+
state?: string;
|
|
201
|
+
countryOrRegion?: string;
|
|
202
|
+
postalCode?: string;
|
|
203
|
+
};
|
|
204
|
+
birthday?: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Outlook Integration Client Interface
|
|
208
|
+
* Provides type-safe methods for all Outlook operations
|
|
209
|
+
*/
|
|
210
|
+
export interface OutlookIntegrationClient {
|
|
211
|
+
/**
|
|
212
|
+
* List messages in the mailbox
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```typescript
|
|
216
|
+
* const messages = await client.outlook.listMessages({
|
|
217
|
+
* top: 25,
|
|
218
|
+
* filter: "isRead eq false"
|
|
219
|
+
* });
|
|
220
|
+
* ```
|
|
221
|
+
*/
|
|
222
|
+
listMessages(params?: {
|
|
223
|
+
/** Number of messages to return */
|
|
224
|
+
top?: number;
|
|
225
|
+
/** Number of messages to skip */
|
|
226
|
+
skip?: number;
|
|
227
|
+
/** OData filter query */
|
|
228
|
+
filter?: string;
|
|
229
|
+
/** OData orderby query */
|
|
230
|
+
orderby?: string;
|
|
231
|
+
/** OData select query */
|
|
232
|
+
select?: string;
|
|
233
|
+
/** Folder ID (default: inbox) */
|
|
234
|
+
folderId?: string;
|
|
235
|
+
}): Promise<MCPToolCallResponse>;
|
|
236
|
+
/**
|
|
237
|
+
* Get a specific message
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```typescript
|
|
241
|
+
* const message = await client.outlook.getMessage({
|
|
242
|
+
* messageId: "AAMkAGI2..."
|
|
243
|
+
* });
|
|
244
|
+
* ```
|
|
245
|
+
*/
|
|
246
|
+
getMessage(params: {
|
|
247
|
+
/** Message ID */
|
|
248
|
+
messageId: string;
|
|
249
|
+
/** OData select query */
|
|
250
|
+
select?: string;
|
|
251
|
+
}): Promise<MCPToolCallResponse>;
|
|
252
|
+
/**
|
|
253
|
+
* Send a new message
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* await client.outlook.sendMessage({
|
|
258
|
+
* subject: "Hello",
|
|
259
|
+
* body: "This is the message body",
|
|
260
|
+
* toRecipients: ["recipient@example.com"]
|
|
261
|
+
* });
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
sendMessage(params: {
|
|
265
|
+
/** Email subject */
|
|
266
|
+
subject: string;
|
|
267
|
+
/** Email body */
|
|
268
|
+
body: string;
|
|
269
|
+
/** Body content type */
|
|
270
|
+
bodyContentType?: "text" | "html";
|
|
271
|
+
/** To recipients (email addresses) */
|
|
272
|
+
toRecipients: string[];
|
|
273
|
+
/** CC recipients */
|
|
274
|
+
ccRecipients?: string[];
|
|
275
|
+
/** BCC recipients */
|
|
276
|
+
bccRecipients?: string[];
|
|
277
|
+
/** Importance level */
|
|
278
|
+
importance?: "low" | "normal" | "high";
|
|
279
|
+
/** Whether to save to sent items */
|
|
280
|
+
saveToSentItems?: boolean;
|
|
281
|
+
}): Promise<MCPToolCallResponse>;
|
|
282
|
+
/**
|
|
283
|
+
* List calendar events
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* ```typescript
|
|
287
|
+
* const events = await client.outlook.listEvents({
|
|
288
|
+
* startDateTime: "2024-01-01T00:00:00Z",
|
|
289
|
+
* endDateTime: "2024-01-31T23:59:59Z"
|
|
290
|
+
* });
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
listEvents(params?: {
|
|
294
|
+
/** Start of time range (ISO 8601) */
|
|
295
|
+
startDateTime?: string;
|
|
296
|
+
/** End of time range (ISO 8601) */
|
|
297
|
+
endDateTime?: string;
|
|
298
|
+
/** Number of events to return */
|
|
299
|
+
top?: number;
|
|
300
|
+
/** Number of events to skip */
|
|
301
|
+
skip?: number;
|
|
302
|
+
/** OData filter query */
|
|
303
|
+
filter?: string;
|
|
304
|
+
/** OData orderby query */
|
|
305
|
+
orderby?: string;
|
|
306
|
+
/** OData select query */
|
|
307
|
+
select?: string;
|
|
308
|
+
/** Calendar ID (default: primary) */
|
|
309
|
+
calendarId?: string;
|
|
310
|
+
}): Promise<MCPToolCallResponse>;
|
|
311
|
+
/**
|
|
312
|
+
* Get a specific event
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* ```typescript
|
|
316
|
+
* const event = await client.outlook.getEvent({
|
|
317
|
+
* eventId: "AAMkAGI2..."
|
|
318
|
+
* });
|
|
319
|
+
* ```
|
|
320
|
+
*/
|
|
321
|
+
getEvent(params: {
|
|
322
|
+
/** Event ID */
|
|
323
|
+
eventId: string;
|
|
324
|
+
/** OData select query */
|
|
325
|
+
select?: string;
|
|
326
|
+
/** Calendar ID (default: primary) */
|
|
327
|
+
calendarId?: string;
|
|
328
|
+
}): Promise<MCPToolCallResponse>;
|
|
329
|
+
/**
|
|
330
|
+
* Create a new calendar event
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* ```typescript
|
|
334
|
+
* const event = await client.outlook.createEvent({
|
|
335
|
+
* subject: "Team Meeting",
|
|
336
|
+
* start: { dateTime: "2024-01-15T10:00:00", timeZone: "America/Los_Angeles" },
|
|
337
|
+
* end: { dateTime: "2024-01-15T11:00:00", timeZone: "America/Los_Angeles" }
|
|
338
|
+
* });
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
createEvent(params: {
|
|
342
|
+
/** Event subject */
|
|
343
|
+
subject: string;
|
|
344
|
+
/** Event body/description */
|
|
345
|
+
body?: string;
|
|
346
|
+
/** Body content type */
|
|
347
|
+
bodyContentType?: "text" | "html";
|
|
348
|
+
/** Event start */
|
|
349
|
+
start: {
|
|
350
|
+
dateTime: string;
|
|
351
|
+
timeZone: string;
|
|
352
|
+
};
|
|
353
|
+
/** Event end */
|
|
354
|
+
end: {
|
|
355
|
+
dateTime: string;
|
|
356
|
+
timeZone: string;
|
|
357
|
+
};
|
|
358
|
+
/** Event location */
|
|
359
|
+
location?: string;
|
|
360
|
+
/** Whether it's an all-day event */
|
|
361
|
+
isAllDay?: boolean;
|
|
362
|
+
/** Attendees (email addresses) */
|
|
363
|
+
attendees?: string[];
|
|
364
|
+
/** Whether to request responses */
|
|
365
|
+
responseRequested?: boolean;
|
|
366
|
+
/** Show as status */
|
|
367
|
+
showAs?: "free" | "tentative" | "busy" | "oof" | "workingElsewhere";
|
|
368
|
+
/** Calendar ID (default: primary) */
|
|
369
|
+
calendarId?: string;
|
|
370
|
+
}): Promise<MCPToolCallResponse>;
|
|
371
|
+
/**
|
|
372
|
+
* List contacts
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```typescript
|
|
376
|
+
* const contacts = await client.outlook.listContacts({
|
|
377
|
+
* top: 50
|
|
378
|
+
* });
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
381
|
+
listContacts(params?: {
|
|
382
|
+
/** Number of contacts to return */
|
|
383
|
+
top?: number;
|
|
384
|
+
/** Number of contacts to skip */
|
|
385
|
+
skip?: number;
|
|
386
|
+
/** OData filter query */
|
|
387
|
+
filter?: string;
|
|
388
|
+
/** OData orderby query */
|
|
389
|
+
orderby?: string;
|
|
390
|
+
/** OData select query */
|
|
391
|
+
select?: string;
|
|
392
|
+
/** Contact folder ID */
|
|
393
|
+
folderId?: string;
|
|
394
|
+
}): Promise<MCPToolCallResponse>;
|
|
395
|
+
/**
|
|
396
|
+
* Get a specific contact
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* ```typescript
|
|
400
|
+
* const contact = await client.outlook.getContact({
|
|
401
|
+
* contactId: "AAMkAGI2..."
|
|
402
|
+
* });
|
|
403
|
+
* ```
|
|
404
|
+
*/
|
|
405
|
+
getContact(params: {
|
|
406
|
+
/** Contact ID */
|
|
407
|
+
contactId: string;
|
|
408
|
+
/** OData select query */
|
|
409
|
+
select?: string;
|
|
410
|
+
}): Promise<MCPToolCallResponse>;
|
|
411
|
+
/**
|
|
412
|
+
* Search across messages, events, and contacts
|
|
413
|
+
*
|
|
414
|
+
* @example
|
|
415
|
+
* ```typescript
|
|
416
|
+
* const results = await client.outlook.search({
|
|
417
|
+
* query: "important meeting",
|
|
418
|
+
* entityTypes: ["message", "event"]
|
|
419
|
+
* });
|
|
420
|
+
* ```
|
|
421
|
+
*/
|
|
422
|
+
search(params: {
|
|
423
|
+
/** Search query */
|
|
424
|
+
query: string;
|
|
425
|
+
/** Entity types to search */
|
|
426
|
+
entityTypes?: Array<"message" | "event" | "contact">;
|
|
427
|
+
/** Maximum results per entity type */
|
|
428
|
+
size?: number;
|
|
429
|
+
/** Start index for pagination */
|
|
430
|
+
from?: number;
|
|
431
|
+
}): Promise<MCPToolCallResponse>;
|
|
432
|
+
}
|
|
433
|
+
//# sourceMappingURL=outlook-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlook-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/outlook-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B,CAAC,EAAE,OAAO,CAAC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,EAAE,MAAM,CAAC;QAClB,yBAAyB;QACzB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE;QACb,mBAAmB;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,6BAA6B;QAC7B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;QACrD,sCAAsC;QACtC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,iCAAiC;QACjC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outlook Integration
|
|
3
|
+
* Enables Microsoft Outlook tools with OAuth configuration
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPIntegration } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Outlook integration configuration
|
|
8
|
+
*
|
|
9
|
+
* SERVER-SIDE: Automatically reads OUTLOOK_CLIENT_ID and OUTLOOK_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 OutlookIntegrationConfig {
|
|
14
|
+
/** Microsoft OAuth client ID (defaults to OUTLOOK_CLIENT_ID env var) */
|
|
15
|
+
clientId?: string;
|
|
16
|
+
/** Microsoft OAuth client secret (defaults to OUTLOOK_CLIENT_SECRET env var) */
|
|
17
|
+
clientSecret?: string;
|
|
18
|
+
/** Additional OAuth scopes (default: ['Mail.Read', 'Mail.Send', 'Calendars.ReadWrite', 'Contacts.Read']) */
|
|
19
|
+
scopes?: string[];
|
|
20
|
+
/** OAuth redirect URI */
|
|
21
|
+
redirectUri?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Default Outlook tools that this integration enables
|
|
25
|
+
* These should match the tool names exposed by your MCP server
|
|
26
|
+
*/
|
|
27
|
+
declare const OUTLOOK_TOOLS: readonly ["outlook_list_messages", "outlook_get_message", "outlook_send_message", "outlook_list_events", "outlook_get_event", "outlook_create_event", "outlook_list_contacts", "outlook_get_contact", "outlook_search"];
|
|
28
|
+
export declare function outlookIntegration(config?: OutlookIntegrationConfig): MCPIntegration<"outlook">;
|
|
29
|
+
/**
|
|
30
|
+
* Export tool names for type inference
|
|
31
|
+
*/
|
|
32
|
+
export type OutlookTools = typeof OUTLOOK_TOOLS[number];
|
|
33
|
+
/**
|
|
34
|
+
* Export Outlook client types
|
|
35
|
+
*/
|
|
36
|
+
export type { OutlookIntegrationClient } from "./outlook-client.js";
|
|
37
|
+
//# sourceMappingURL=outlook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlook.d.ts","sourceRoot":"","sources":["../../../src/integrations/outlook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAG9D;;;;;;GAMG;AACH,MAAM,WAAW,wBAAwB;IACvC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4GAA4G;IAC5G,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,aAAa,yNAUT,CAAC;AAGX,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,wBAA6B,GAAG,cAAc,CAAC,SAAS,CAAC,CAyBnG;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAExD;;GAEG;AACH,YAAY,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC"}
|