integrate-sdk 0.8.29-dev.0 → 0.8.31-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 +655 -0
- package/dist/adapters/index.js +655 -0
- package/dist/adapters/nextjs.js +655 -0
- package/dist/adapters/node.js +655 -0
- package/dist/adapters/svelte-kit.js +655 -0
- package/dist/adapters/tanstack-start.js +655 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +696 -1
- package/dist/oauth.js +655 -0
- package/dist/server.js +670 -0
- package/dist/src/client.d.ts +16 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +30 -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/calcom-client.d.ts +355 -0
- package/dist/src/integrations/calcom-client.d.ts.map +1 -0
- package/dist/src/integrations/calcom.d.ts +39 -0
- package/dist/src/integrations/calcom.d.ts.map +1 -0
- package/dist/src/integrations/figma-client.d.ts +327 -0
- package/dist/src/integrations/figma-client.d.ts.map +1 -0
- package/dist/src/integrations/figma.d.ts +37 -0
- package/dist/src/integrations/figma.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/gworkspace-client.d.ts +392 -0
- package/dist/src/integrations/gworkspace-client.d.ts.map +1 -0
- package/dist/src/integrations/gworkspace.d.ts +37 -0
- package/dist/src/integrations/gworkspace.d.ts.map +1 -0
- package/dist/src/integrations/hubspot-client.d.ts +367 -0
- package/dist/src/integrations/hubspot-client.d.ts.map +1 -0
- package/dist/src/integrations/hubspot.d.ts +37 -0
- package/dist/src/integrations/hubspot.d.ts.map +1 -0
- package/dist/src/integrations/intercom-client.d.ts +414 -0
- package/dist/src/integrations/intercom-client.d.ts.map +1 -0
- package/dist/src/integrations/intercom.d.ts +37 -0
- package/dist/src/integrations/intercom.d.ts.map +1 -0
- package/dist/src/integrations/onedrive-client.d.ts +338 -0
- package/dist/src/integrations/onedrive-client.d.ts.map +1 -0
- package/dist/src/integrations/onedrive.d.ts +37 -0
- package/dist/src/integrations/onedrive.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/polar-client.d.ts +297 -0
- package/dist/src/integrations/polar-client.d.ts.map +1 -0
- package/dist/src/integrations/polar.d.ts +39 -0
- package/dist/src/integrations/polar.d.ts.map +1 -0
- package/dist/src/integrations/ramp-client.d.ts +341 -0
- package/dist/src/integrations/ramp-client.d.ts.map +1 -0
- package/dist/src/integrations/ramp.d.ts +39 -0
- package/dist/src/integrations/ramp.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/whatsapp-client.d.ts +320 -0
- package/dist/src/integrations/whatsapp-client.d.ts.map +1 -0
- package/dist/src/integrations/whatsapp.d.ts +39 -0
- package/dist/src/integrations/whatsapp.d.ts.map +1 -0
- package/dist/src/integrations/youtube-client.d.ts +459 -0
- package/dist/src/integrations/youtube-client.d.ts.map +1 -0
- package/dist/src/integrations/youtube.d.ts +37 -0
- package/dist/src/integrations/youtube.d.ts.map +1 -0
- package/dist/src/server.d.ts +15 -0
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Workspace Integration Client Types
|
|
3
|
+
* Fully typed interface for Google Workspace integration methods
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPToolCallResponse } from "../protocol/messages.js";
|
|
6
|
+
/**
|
|
7
|
+
* Google Sheets Spreadsheet
|
|
8
|
+
*/
|
|
9
|
+
export interface GWorkspaceSpreadsheet {
|
|
10
|
+
spreadsheetId: string;
|
|
11
|
+
properties: {
|
|
12
|
+
title: string;
|
|
13
|
+
locale: string;
|
|
14
|
+
autoRecalc: string;
|
|
15
|
+
timeZone: string;
|
|
16
|
+
};
|
|
17
|
+
sheets: Array<{
|
|
18
|
+
properties: {
|
|
19
|
+
sheetId: number;
|
|
20
|
+
title: string;
|
|
21
|
+
index: number;
|
|
22
|
+
sheetType: string;
|
|
23
|
+
gridProperties: {
|
|
24
|
+
rowCount: number;
|
|
25
|
+
columnCount: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
spreadsheetUrl: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Google Sheets Value Range
|
|
33
|
+
*/
|
|
34
|
+
export interface GWorkspaceValueRange {
|
|
35
|
+
range: string;
|
|
36
|
+
majorDimension: "ROWS" | "COLUMNS";
|
|
37
|
+
values: any[][];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Google Docs Document
|
|
41
|
+
*/
|
|
42
|
+
export interface GWorkspaceDocument {
|
|
43
|
+
documentId: string;
|
|
44
|
+
title: string;
|
|
45
|
+
body: {
|
|
46
|
+
content: Array<{
|
|
47
|
+
startIndex?: number;
|
|
48
|
+
endIndex?: number;
|
|
49
|
+
paragraph?: {
|
|
50
|
+
elements: Array<{
|
|
51
|
+
startIndex?: number;
|
|
52
|
+
endIndex?: number;
|
|
53
|
+
textRun?: {
|
|
54
|
+
content: string;
|
|
55
|
+
textStyle?: Record<string, any>;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
table?: {
|
|
60
|
+
rows: number;
|
|
61
|
+
columns: number;
|
|
62
|
+
};
|
|
63
|
+
}>;
|
|
64
|
+
};
|
|
65
|
+
revisionId: string;
|
|
66
|
+
suggestionsViewMode: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Google Slides Presentation
|
|
70
|
+
*/
|
|
71
|
+
export interface GWorkspacePresentation {
|
|
72
|
+
presentationId: string;
|
|
73
|
+
pageSize: {
|
|
74
|
+
width: {
|
|
75
|
+
magnitude: number;
|
|
76
|
+
unit: string;
|
|
77
|
+
};
|
|
78
|
+
height: {
|
|
79
|
+
magnitude: number;
|
|
80
|
+
unit: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
slides: Array<{
|
|
84
|
+
objectId: string;
|
|
85
|
+
pageElements?: Array<{
|
|
86
|
+
objectId: string;
|
|
87
|
+
size?: {
|
|
88
|
+
width: {
|
|
89
|
+
magnitude: number;
|
|
90
|
+
unit: string;
|
|
91
|
+
};
|
|
92
|
+
height: {
|
|
93
|
+
magnitude: number;
|
|
94
|
+
unit: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
transform?: {
|
|
98
|
+
scaleX: number;
|
|
99
|
+
scaleY: number;
|
|
100
|
+
translateX: number;
|
|
101
|
+
translateY: number;
|
|
102
|
+
unit: string;
|
|
103
|
+
};
|
|
104
|
+
shape?: {
|
|
105
|
+
shapeType: string;
|
|
106
|
+
text?: {
|
|
107
|
+
textElements: Array<{
|
|
108
|
+
textRun?: {
|
|
109
|
+
content: string;
|
|
110
|
+
style?: Record<string, any>;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
image?: {
|
|
116
|
+
contentUrl: string;
|
|
117
|
+
sourceUrl?: string;
|
|
118
|
+
};
|
|
119
|
+
}>;
|
|
120
|
+
}>;
|
|
121
|
+
title: string;
|
|
122
|
+
revisionId: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Google Slides Page
|
|
126
|
+
*/
|
|
127
|
+
export interface GWorkspaceSlidePage {
|
|
128
|
+
objectId: string;
|
|
129
|
+
pageType: string;
|
|
130
|
+
pageElements?: Array<{
|
|
131
|
+
objectId: string;
|
|
132
|
+
size?: {
|
|
133
|
+
width: {
|
|
134
|
+
magnitude: number;
|
|
135
|
+
unit: string;
|
|
136
|
+
};
|
|
137
|
+
height: {
|
|
138
|
+
magnitude: number;
|
|
139
|
+
unit: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
transform?: {
|
|
143
|
+
scaleX: number;
|
|
144
|
+
scaleY: number;
|
|
145
|
+
translateX: number;
|
|
146
|
+
translateY: number;
|
|
147
|
+
unit: string;
|
|
148
|
+
};
|
|
149
|
+
shape?: {
|
|
150
|
+
shapeType: string;
|
|
151
|
+
text?: {
|
|
152
|
+
textElements: Array<{
|
|
153
|
+
textRun?: {
|
|
154
|
+
content: string;
|
|
155
|
+
style?: Record<string, any>;
|
|
156
|
+
};
|
|
157
|
+
}>;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
image?: {
|
|
161
|
+
contentUrl: string;
|
|
162
|
+
sourceUrl?: string;
|
|
163
|
+
};
|
|
164
|
+
}>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Google Workspace Integration Client Interface
|
|
168
|
+
* Provides type-safe methods for all Google Workspace operations
|
|
169
|
+
*/
|
|
170
|
+
export interface GWorkspaceIntegrationClient {
|
|
171
|
+
/**
|
|
172
|
+
* List spreadsheets from Google Drive
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```typescript
|
|
176
|
+
* const spreadsheets = await client.gworkspace.sheetsList({
|
|
177
|
+
* page_size: 10,
|
|
178
|
+
* order_by: "modifiedTime desc"
|
|
179
|
+
* });
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
sheetsList(params?: {
|
|
183
|
+
/** Maximum number of results */
|
|
184
|
+
page_size?: number;
|
|
185
|
+
/** Page token for pagination */
|
|
186
|
+
page_token?: string;
|
|
187
|
+
/** Order by field */
|
|
188
|
+
order_by?: string;
|
|
189
|
+
/** Query filter */
|
|
190
|
+
q?: string;
|
|
191
|
+
}): Promise<MCPToolCallResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Get spreadsheet details
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* const sheet = await client.gworkspace.sheetsGet({
|
|
198
|
+
* spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
|
|
199
|
+
* });
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
sheetsGet(params: {
|
|
203
|
+
/** Spreadsheet ID */
|
|
204
|
+
spreadsheet_id: string;
|
|
205
|
+
/** Include grid data */
|
|
206
|
+
include_grid_data?: boolean;
|
|
207
|
+
}): Promise<MCPToolCallResponse>;
|
|
208
|
+
/**
|
|
209
|
+
* Get values from a range
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```typescript
|
|
213
|
+
* const values = await client.gworkspace.sheetsGetValues({
|
|
214
|
+
* spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
215
|
+
* range: "Sheet1!A1:B10"
|
|
216
|
+
* });
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
sheetsGetValues(params: {
|
|
220
|
+
/** Spreadsheet ID */
|
|
221
|
+
spreadsheet_id: string;
|
|
222
|
+
/** Range in A1 notation (e.g., "Sheet1!A1:B10") */
|
|
223
|
+
range: string;
|
|
224
|
+
/** Major dimension */
|
|
225
|
+
major_dimension?: "ROWS" | "COLUMNS";
|
|
226
|
+
/** Value render option */
|
|
227
|
+
value_render_option?: "FORMATTED_VALUE" | "UNFORMATTED_VALUE" | "FORMULA";
|
|
228
|
+
/** Date time render option */
|
|
229
|
+
date_time_render_option?: "SERIAL_NUMBER" | "FORMATTED_STRING";
|
|
230
|
+
}): Promise<MCPToolCallResponse>;
|
|
231
|
+
/**
|
|
232
|
+
* Update values in a range
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* ```typescript
|
|
236
|
+
* await client.gworkspace.sheetsUpdateValues({
|
|
237
|
+
* spreadsheet_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
238
|
+
* range: "Sheet1!A1:B2",
|
|
239
|
+
* values: [["Name", "Age"], ["John", 30]]
|
|
240
|
+
* });
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
sheetsUpdateValues(params: {
|
|
244
|
+
/** Spreadsheet ID */
|
|
245
|
+
spreadsheet_id: string;
|
|
246
|
+
/** Range in A1 notation */
|
|
247
|
+
range: string;
|
|
248
|
+
/** Values to update */
|
|
249
|
+
values: any[][];
|
|
250
|
+
/** Value input option */
|
|
251
|
+
value_input_option?: "RAW" | "USER_ENTERED";
|
|
252
|
+
}): Promise<MCPToolCallResponse>;
|
|
253
|
+
/**
|
|
254
|
+
* Create a new spreadsheet
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```typescript
|
|
258
|
+
* const sheet = await client.gworkspace.sheetsCreate({
|
|
259
|
+
* title: "My New Spreadsheet",
|
|
260
|
+
* sheets: [{ properties: { title: "Sheet1" } }]
|
|
261
|
+
* });
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
sheetsCreate(params: {
|
|
265
|
+
/** Spreadsheet title */
|
|
266
|
+
title: string;
|
|
267
|
+
/** Sheet properties */
|
|
268
|
+
sheets?: Array<{
|
|
269
|
+
properties: {
|
|
270
|
+
title: string;
|
|
271
|
+
gridProperties?: {
|
|
272
|
+
rowCount?: number;
|
|
273
|
+
columnCount?: number;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
}>;
|
|
277
|
+
}): Promise<MCPToolCallResponse>;
|
|
278
|
+
/**
|
|
279
|
+
* List documents from Google Drive
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```typescript
|
|
283
|
+
* const docs = await client.gworkspace.docsList({
|
|
284
|
+
* page_size: 10
|
|
285
|
+
* });
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
docsList(params?: {
|
|
289
|
+
/** Maximum number of results */
|
|
290
|
+
page_size?: number;
|
|
291
|
+
/** Page token for pagination */
|
|
292
|
+
page_token?: string;
|
|
293
|
+
/** Order by field */
|
|
294
|
+
order_by?: string;
|
|
295
|
+
/** Query filter */
|
|
296
|
+
q?: string;
|
|
297
|
+
}): Promise<MCPToolCallResponse>;
|
|
298
|
+
/**
|
|
299
|
+
* Get document details
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```typescript
|
|
303
|
+
* const doc = await client.gworkspace.docsGet({
|
|
304
|
+
* document_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
|
|
305
|
+
* });
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
docsGet(params: {
|
|
309
|
+
/** Document ID */
|
|
310
|
+
document_id: string;
|
|
311
|
+
}): Promise<MCPToolCallResponse>;
|
|
312
|
+
/**
|
|
313
|
+
* Create a new document
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```typescript
|
|
317
|
+
* const doc = await client.gworkspace.docsCreate({
|
|
318
|
+
* title: "My New Document"
|
|
319
|
+
* });
|
|
320
|
+
* ```
|
|
321
|
+
*/
|
|
322
|
+
docsCreate(params: {
|
|
323
|
+
/** Document title */
|
|
324
|
+
title: string;
|
|
325
|
+
}): Promise<MCPToolCallResponse>;
|
|
326
|
+
/**
|
|
327
|
+
* List presentations from Google Drive
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* ```typescript
|
|
331
|
+
* const presentations = await client.gworkspace.slidesList({
|
|
332
|
+
* page_size: 10
|
|
333
|
+
* });
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
slidesList(params?: {
|
|
337
|
+
/** Maximum number of results */
|
|
338
|
+
page_size?: number;
|
|
339
|
+
/** Page token for pagination */
|
|
340
|
+
page_token?: string;
|
|
341
|
+
/** Order by field */
|
|
342
|
+
order_by?: string;
|
|
343
|
+
/** Query filter */
|
|
344
|
+
q?: string;
|
|
345
|
+
}): Promise<MCPToolCallResponse>;
|
|
346
|
+
/**
|
|
347
|
+
* Get presentation details
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```typescript
|
|
351
|
+
* const presentation = await client.gworkspace.slidesGet({
|
|
352
|
+
* presentation_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"
|
|
353
|
+
* });
|
|
354
|
+
* ```
|
|
355
|
+
*/
|
|
356
|
+
slidesGet(params: {
|
|
357
|
+
/** Presentation ID */
|
|
358
|
+
presentation_id: string;
|
|
359
|
+
}): Promise<MCPToolCallResponse>;
|
|
360
|
+
/**
|
|
361
|
+
* Get a specific slide page
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* ```typescript
|
|
365
|
+
* const page = await client.gworkspace.slidesGetPage({
|
|
366
|
+
* presentation_id: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
367
|
+
* page_object_id: "p1"
|
|
368
|
+
* });
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
slidesGetPage(params: {
|
|
372
|
+
/** Presentation ID */
|
|
373
|
+
presentation_id: string;
|
|
374
|
+
/** Page object ID */
|
|
375
|
+
page_object_id: string;
|
|
376
|
+
}): Promise<MCPToolCallResponse>;
|
|
377
|
+
/**
|
|
378
|
+
* Create a new presentation
|
|
379
|
+
*
|
|
380
|
+
* @example
|
|
381
|
+
* ```typescript
|
|
382
|
+
* const presentation = await client.gworkspace.slidesCreate({
|
|
383
|
+
* title: "My New Presentation"
|
|
384
|
+
* });
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
slidesCreate(params: {
|
|
388
|
+
/** Presentation title */
|
|
389
|
+
title: string;
|
|
390
|
+
}): Promise<MCPToolCallResponse>;
|
|
391
|
+
}
|
|
392
|
+
//# sourceMappingURL=gworkspace-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gworkspace-client.d.ts","sourceRoot":"","sources":["../../../src/integrations/gworkspace-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,KAAK,CAAC;QACZ,UAAU,EAAE;YACV,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;YACd,SAAS,EAAE,MAAM,CAAC;YAClB,cAAc,EAAE;gBACd,QAAQ,EAAE,MAAM,CAAC;gBACjB,WAAW,EAAE,MAAM,CAAC;aACrB,CAAC;SACH,CAAC;KACH,CAAC,CAAC;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC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;;;;OASG;IACH,OAAO,CAAC,MAAM,EAAE;QACd,kBAAkB;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,UAAU,CAAC,MAAM,EAAE;QACjB,qBAAqB;QACrB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE;QAClB,gCAAgC;QAChC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,gCAAgC;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,qBAAqB;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,mBAAmB;QACnB,CAAC,CAAC,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,EAAE;QAChB,sBAAsB;QACtB,eAAe,EAAE,MAAM,CAAC;KACzB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,MAAM,EAAE;QACpB,sBAAsB;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,qBAAqB;QACrB,cAAc,EAAE,MAAM,CAAC;KACxB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEjC;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAM,EAAE;QACnB,yBAAyB;QACzB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Workspace Integration
|
|
3
|
+
* Enables Google Workspace tools (Sheets, Docs, Slides) with OAuth configuration
|
|
4
|
+
*/
|
|
5
|
+
import type { MCPIntegration } from "./types.js";
|
|
6
|
+
/**
|
|
7
|
+
* Google Workspace integration configuration
|
|
8
|
+
*
|
|
9
|
+
* SERVER-SIDE: Automatically reads GWORKSPACE_CLIENT_ID and GWORKSPACE_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 GWorkspaceIntegrationConfig {
|
|
14
|
+
/** Google Workspace OAuth client ID (defaults to GWORKSPACE_CLIENT_ID env var) */
|
|
15
|
+
clientId?: string;
|
|
16
|
+
/** Google Workspace OAuth client secret (defaults to GWORKSPACE_CLIENT_SECRET env var) */
|
|
17
|
+
clientSecret?: string;
|
|
18
|
+
/** Additional OAuth scopes (default: spreadsheets, documents, presentations, drive.readonly) */
|
|
19
|
+
scopes?: string[];
|
|
20
|
+
/** OAuth redirect URI */
|
|
21
|
+
redirectUri?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Default Google Workspace tools that this integration enables
|
|
25
|
+
* These should match the tool names exposed by your MCP server
|
|
26
|
+
*/
|
|
27
|
+
declare const GWORKSPACE_TOOLS: readonly ["gworkspace_sheets_list", "gworkspace_sheets_get", "gworkspace_sheets_get_values", "gworkspace_sheets_update_values", "gworkspace_sheets_create", "gworkspace_docs_list", "gworkspace_docs_get", "gworkspace_docs_create", "gworkspace_slides_list", "gworkspace_slides_get", "gworkspace_slides_get_page", "gworkspace_slides_create"];
|
|
28
|
+
export declare function gworkspaceIntegration(config?: GWorkspaceIntegrationConfig): MCPIntegration<"gworkspace">;
|
|
29
|
+
/**
|
|
30
|
+
* Export tool names for type inference
|
|
31
|
+
*/
|
|
32
|
+
export type GWorkspaceTools = typeof GWORKSPACE_TOOLS[number];
|
|
33
|
+
/**
|
|
34
|
+
* Export Google Workspace client types
|
|
35
|
+
*/
|
|
36
|
+
export type { GWorkspaceIntegrationClient } from "./gworkspace-client.js";
|
|
37
|
+
//# sourceMappingURL=gworkspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gworkspace.d.ts","sourceRoot":"","sources":["../../../src/integrations/gworkspace.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,YAAY,CAAC;AAG9D;;;;;;GAMG;AACH,MAAM,WAAW,2BAA2B;IAC1C,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gGAAgG;IAChG,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,gBAAgB,mVAgBZ,CAAC;AAGX,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,2BAAgC,GAAG,cAAc,CAAC,YAAY,CAAC,CA8B5G;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAE9D;;GAEG;AACH,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC"}
|