integrate-sdk 0.9.62 → 0.10.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/README.md +2 -2
- package/dist/adapters/auto-routes.js +21 -21
- package/dist/adapters/base-handler.js +21 -21
- package/dist/adapters/index.js +124 -81
- package/dist/adapters/nextjs.js +21 -21
- package/dist/adapters/solid-start.js +124 -81
- package/dist/adapters/svelte-kit.js +124 -81
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +337 -296
- package/dist/integrations.js +327 -286
- package/dist/oauth.js +21 -21
- package/dist/server.js +345 -302
- package/dist/src/client.d.ts +23 -22
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +22 -22
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/{ga4-client.d.ts → google_analytics-client.d.ts} +2 -2
- package/dist/src/integrations/google_analytics-client.d.ts.map +1 -0
- package/dist/src/integrations/google_analytics.d.ts +13 -0
- package/dist/src/integrations/google_analytics.d.ts.map +1 -0
- package/dist/src/integrations/{gcal-client.d.ts → google_calendar-client.d.ts} +11 -11
- package/dist/src/integrations/google_calendar-client.d.ts.map +1 -0
- package/dist/src/integrations/google_calendar.d.ts +39 -0
- package/dist/src/integrations/google_calendar.d.ts.map +1 -0
- package/dist/src/integrations/{gchat-client.d.ts → google_chat-client.d.ts} +2 -2
- package/dist/src/integrations/google_chat-client.d.ts.map +1 -0
- package/dist/src/integrations/google_chat.d.ts +15 -0
- package/dist/src/integrations/google_chat.d.ts.map +1 -0
- package/dist/src/integrations/{gcontacts-client.d.ts → google_contacts-client.d.ts} +2 -2
- package/dist/src/integrations/google_contacts-client.d.ts.map +1 -0
- package/dist/src/integrations/google_contacts.d.ts +22 -0
- package/dist/src/integrations/google_contacts.d.ts.map +1 -0
- package/dist/src/integrations/{gdocs-client.d.ts → google_docs-client.d.ts} +1 -1
- package/dist/src/integrations/google_docs-client.d.ts.map +1 -0
- package/dist/src/integrations/google_docs.d.ts +22 -0
- package/dist/src/integrations/google_docs.d.ts.map +1 -0
- package/dist/src/integrations/{gdrive-client.d.ts → google_drive-client.d.ts} +15 -15
- package/dist/src/integrations/google_drive-client.d.ts.map +1 -0
- package/dist/src/integrations/google_drive.d.ts +22 -0
- package/dist/src/integrations/google_drive.d.ts.map +1 -0
- package/dist/src/integrations/{gkeep-client.d.ts → google_keep-client.d.ts} +2 -2
- package/dist/src/integrations/google_keep-client.d.ts.map +1 -0
- package/dist/src/integrations/google_keep.d.ts +22 -0
- package/dist/src/integrations/google_keep.d.ts.map +1 -0
- package/dist/src/integrations/{gmeet-client.d.ts → google_meet-client.d.ts} +2 -2
- package/dist/src/integrations/google_meet-client.d.ts.map +1 -0
- package/dist/src/integrations/google_meet.d.ts +19 -0
- package/dist/src/integrations/google_meet.d.ts.map +1 -0
- package/dist/src/integrations/{gsheets-client.d.ts → google_sheets-client.d.ts} +1 -1
- package/dist/src/integrations/google_sheets-client.d.ts.map +1 -0
- package/dist/src/integrations/google_sheets.d.ts +22 -0
- package/dist/src/integrations/google_sheets.d.ts.map +1 -0
- package/dist/src/integrations/{gslides-client.d.ts → google_slides-client.d.ts} +1 -1
- package/dist/src/integrations/google_slides-client.d.ts.map +1 -0
- package/dist/src/integrations/google_slides.d.ts +22 -0
- package/dist/src/integrations/google_slides.d.ts.map +1 -0
- package/dist/src/integrations/{gtasks-client.d.ts → google_tasks-client.d.ts} +2 -2
- package/dist/src/integrations/google_tasks-client.d.ts.map +1 -0
- package/dist/src/integrations/google_tasks.d.ts +22 -0
- package/dist/src/integrations/google_tasks.d.ts.map +1 -0
- package/dist/src/integrations/list-tools-by-integration.d.ts +11 -0
- package/dist/src/integrations/list-tools-by-integration.d.ts.map +1 -0
- package/dist/src/server.d.ts +11 -11
- package/dist/src/server.d.ts.map +1 -1
- package/index.ts +20 -20
- package/package.json +1 -1
- package/dist/src/integrations/ga4-client.d.ts.map +0 -1
- package/dist/src/integrations/ga4.d.ts +0 -13
- package/dist/src/integrations/ga4.d.ts.map +0 -1
- package/dist/src/integrations/gcal-client.d.ts.map +0 -1
- package/dist/src/integrations/gcal.d.ts +0 -39
- package/dist/src/integrations/gcal.d.ts.map +0 -1
- package/dist/src/integrations/gchat-client.d.ts.map +0 -1
- package/dist/src/integrations/gchat.d.ts +0 -15
- package/dist/src/integrations/gchat.d.ts.map +0 -1
- package/dist/src/integrations/gcontacts-client.d.ts.map +0 -1
- package/dist/src/integrations/gcontacts.d.ts +0 -22
- package/dist/src/integrations/gcontacts.d.ts.map +0 -1
- package/dist/src/integrations/gdocs-client.d.ts.map +0 -1
- package/dist/src/integrations/gdocs.d.ts +0 -22
- package/dist/src/integrations/gdocs.d.ts.map +0 -1
- package/dist/src/integrations/gdrive-client.d.ts.map +0 -1
- package/dist/src/integrations/gdrive.d.ts +0 -22
- package/dist/src/integrations/gdrive.d.ts.map +0 -1
- package/dist/src/integrations/gkeep-client.d.ts.map +0 -1
- package/dist/src/integrations/gkeep.d.ts +0 -22
- package/dist/src/integrations/gkeep.d.ts.map +0 -1
- package/dist/src/integrations/gmeet-client.d.ts.map +0 -1
- package/dist/src/integrations/gmeet.d.ts +0 -19
- package/dist/src/integrations/gmeet.d.ts.map +0 -1
- package/dist/src/integrations/gsheets-client.d.ts.map +0 -1
- package/dist/src/integrations/gsheets.d.ts +0 -22
- package/dist/src/integrations/gsheets.d.ts.map +0 -1
- package/dist/src/integrations/gslides-client.d.ts.map +0 -1
- package/dist/src/integrations/gslides.d.ts +0 -22
- package/dist/src/integrations/gslides.d.ts.map +0 -1
- package/dist/src/integrations/gtasks-client.d.ts.map +0 -1
- package/dist/src/integrations/gtasks.d.ts +0 -22
- package/dist/src/integrations/gtasks.d.ts.map +0 -1
package/dist/server.js
CHANGED
|
@@ -540,23 +540,23 @@ var init_library_metadata = __esm(() => {
|
|
|
540
540
|
description: "Send, read, and search Gmail messages",
|
|
541
541
|
category: "Communication"
|
|
542
542
|
},
|
|
543
|
-
|
|
543
|
+
google_calendar: {
|
|
544
544
|
description: "Manage Google Calendar events and schedules",
|
|
545
545
|
category: "Productivity"
|
|
546
546
|
},
|
|
547
|
-
|
|
547
|
+
google_tasks: {
|
|
548
548
|
description: "Manage Google Tasks lists and to-dos",
|
|
549
549
|
category: "Productivity"
|
|
550
550
|
},
|
|
551
|
-
|
|
551
|
+
google_keep: {
|
|
552
552
|
description: "Manage Google Keep notes, attachments, and sharing permissions",
|
|
553
553
|
category: "Productivity"
|
|
554
554
|
},
|
|
555
|
-
|
|
555
|
+
google_meet: {
|
|
556
556
|
description: "Create Google Meet links and manage meeting events via Calendar",
|
|
557
557
|
category: "Communication"
|
|
558
558
|
},
|
|
559
|
-
|
|
559
|
+
google_contacts: {
|
|
560
560
|
description: "List, search, create, update, and delete Google Contacts via the People API",
|
|
561
561
|
category: "Communication"
|
|
562
562
|
},
|
|
@@ -692,19 +692,19 @@ var init_library_metadata = __esm(() => {
|
|
|
692
692
|
description: "Manage Todoist tasks, projects, and labels",
|
|
693
693
|
category: "Productivity"
|
|
694
694
|
},
|
|
695
|
-
|
|
695
|
+
google_slides: {
|
|
696
696
|
description: "Create and update Google Slides presentations",
|
|
697
697
|
category: "Productivity"
|
|
698
698
|
},
|
|
699
|
-
|
|
699
|
+
google_sheets: {
|
|
700
700
|
description: "Read and update Google Sheets spreadsheets",
|
|
701
701
|
category: "Productivity"
|
|
702
702
|
},
|
|
703
|
-
|
|
703
|
+
google_docs: {
|
|
704
704
|
description: "Create and edit Google Docs documents",
|
|
705
705
|
category: "Productivity"
|
|
706
706
|
},
|
|
707
|
-
|
|
707
|
+
google_drive: {
|
|
708
708
|
description: "Manage Google Drive files, folders, and sharing",
|
|
709
709
|
category: "Storage"
|
|
710
710
|
},
|
|
@@ -820,11 +820,11 @@ var init_library_metadata = __esm(() => {
|
|
|
820
820
|
description: "Read eToro portfolio data and market instruments",
|
|
821
821
|
category: "Finance"
|
|
822
822
|
},
|
|
823
|
-
|
|
823
|
+
google_analytics: {
|
|
824
824
|
description: "Read Google Analytics reports, properties, and events",
|
|
825
825
|
category: "Analytics"
|
|
826
826
|
},
|
|
827
|
-
|
|
827
|
+
google_chat: {
|
|
828
828
|
description: "Send messages and manage Google Chat spaces and memberships",
|
|
829
829
|
category: "Communication"
|
|
830
830
|
},
|
|
@@ -1402,16 +1402,16 @@ var init_email_fetcher = __esm(() => {
|
|
|
1402
1402
|
github: fetchGitHubEmail,
|
|
1403
1403
|
gmail: fetchGoogleEmail,
|
|
1404
1404
|
google: fetchGoogleEmail,
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1405
|
+
google_calendar: fetchGoogleEmail,
|
|
1406
|
+
google_drive: fetchGoogleEmail,
|
|
1407
|
+
google_docs: fetchGoogleEmail,
|
|
1408
|
+
google_sheets: fetchGoogleEmail,
|
|
1409
|
+
google_slides: fetchGoogleEmail,
|
|
1410
|
+
google_contacts: fetchGoogleEmail,
|
|
1411
|
+
google_meet: fetchGoogleEmail,
|
|
1412
|
+
google_chat: fetchGoogleEmail,
|
|
1413
|
+
google_tasks: fetchGoogleEmail,
|
|
1414
|
+
google_analytics: fetchGoogleEmail,
|
|
1415
1415
|
youtube: fetchGoogleEmail,
|
|
1416
1416
|
notion: fetchNotionEmail,
|
|
1417
1417
|
linear: fetchLinearEmail,
|
|
@@ -3448,6 +3448,79 @@ class HttpSessionTransport {
|
|
|
3448
3448
|
|
|
3449
3449
|
// src/client.ts
|
|
3450
3450
|
init_integration_summary();
|
|
3451
|
+
|
|
3452
|
+
// src/integrations/list-tools-by-integration.ts
|
|
3453
|
+
function extractToolEntries(payload) {
|
|
3454
|
+
if (Array.isArray(payload)) {
|
|
3455
|
+
return payload;
|
|
3456
|
+
}
|
|
3457
|
+
if (payload && typeof payload === "object" && "tools" in payload) {
|
|
3458
|
+
const tools = payload.tools;
|
|
3459
|
+
if (Array.isArray(tools)) {
|
|
3460
|
+
return tools;
|
|
3461
|
+
}
|
|
3462
|
+
}
|
|
3463
|
+
return [];
|
|
3464
|
+
}
|
|
3465
|
+
function toMetadataTool(entry, availableTools) {
|
|
3466
|
+
if (entry.inputSchema) {
|
|
3467
|
+
return {
|
|
3468
|
+
name: entry.name,
|
|
3469
|
+
description: entry.description,
|
|
3470
|
+
inputSchema: entry.inputSchema
|
|
3471
|
+
};
|
|
3472
|
+
}
|
|
3473
|
+
const cached = availableTools.get(entry.name);
|
|
3474
|
+
if (cached) {
|
|
3475
|
+
return cached;
|
|
3476
|
+
}
|
|
3477
|
+
return {
|
|
3478
|
+
name: entry.name,
|
|
3479
|
+
description: entry.description,
|
|
3480
|
+
inputSchema: {
|
|
3481
|
+
type: "object",
|
|
3482
|
+
properties: {}
|
|
3483
|
+
}
|
|
3484
|
+
};
|
|
3485
|
+
}
|
|
3486
|
+
function parseToolsFromListByIntegrationPayload(payload, availableTools) {
|
|
3487
|
+
const tools = [];
|
|
3488
|
+
for (const entry of extractToolEntries(payload)) {
|
|
3489
|
+
if (typeof entry === "string") {
|
|
3490
|
+
const cached = availableTools.get(entry);
|
|
3491
|
+
tools.push(cached ?? {
|
|
3492
|
+
name: entry,
|
|
3493
|
+
inputSchema: { type: "object", properties: {} }
|
|
3494
|
+
});
|
|
3495
|
+
continue;
|
|
3496
|
+
}
|
|
3497
|
+
if (!entry || typeof entry !== "object" || !("name" in entry)) {
|
|
3498
|
+
continue;
|
|
3499
|
+
}
|
|
3500
|
+
const candidate = entry;
|
|
3501
|
+
if (!candidate.name) {
|
|
3502
|
+
continue;
|
|
3503
|
+
}
|
|
3504
|
+
const normalized = toMetadataTool({
|
|
3505
|
+
name: candidate.name,
|
|
3506
|
+
description: candidate.description,
|
|
3507
|
+
inputSchema: candidate.inputSchema
|
|
3508
|
+
}, availableTools);
|
|
3509
|
+
if (normalized) {
|
|
3510
|
+
tools.push(normalized);
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
3513
|
+
return tools;
|
|
3514
|
+
}
|
|
3515
|
+
function parseToolsFromListByIntegrationText(text, availableTools) {
|
|
3516
|
+
try {
|
|
3517
|
+
return parseToolsFromListByIntegrationPayload(JSON.parse(text), availableTools);
|
|
3518
|
+
} catch {
|
|
3519
|
+
return [];
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
// src/client.ts
|
|
3451
3524
|
init_library_metadata();
|
|
3452
3525
|
|
|
3453
3526
|
// src/database/token-store.ts
|
|
@@ -5132,21 +5205,7 @@ class MCPClientBase {
|
|
|
5132
5205
|
const response = await this.callServerToolInternal("list_tools_by_integration", {
|
|
5133
5206
|
integration: integration.id
|
|
5134
5207
|
});
|
|
5135
|
-
|
|
5136
|
-
if (response.content && Array.isArray(response.content)) {
|
|
5137
|
-
for (const item of response.content) {
|
|
5138
|
-
if (item.type === "text" && item.text) {
|
|
5139
|
-
try {
|
|
5140
|
-
const parsed = JSON.parse(item.text);
|
|
5141
|
-
if (Array.isArray(parsed)) {
|
|
5142
|
-
toolMetadata = parsed;
|
|
5143
|
-
} else if (parsed.tools && Array.isArray(parsed.tools)) {
|
|
5144
|
-
toolMetadata = parsed.tools;
|
|
5145
|
-
}
|
|
5146
|
-
} catch {}
|
|
5147
|
-
}
|
|
5148
|
-
}
|
|
5149
|
-
}
|
|
5208
|
+
const toolMetadata = this.parseListToolsByIntegrationContent(response.content);
|
|
5150
5209
|
return toConfiguredIntegrationWithToolMetadata(integration, toolMetadata);
|
|
5151
5210
|
} catch (error) {
|
|
5152
5211
|
logger5.error(`Failed to fetch tool metadata for ${integration.id}:`, error);
|
|
@@ -5183,21 +5242,7 @@ class MCPClientBase {
|
|
|
5183
5242
|
const metadataResponse = await this.callServerToolInternal("list_tools_by_integration", {
|
|
5184
5243
|
integration: integration.id
|
|
5185
5244
|
});
|
|
5186
|
-
|
|
5187
|
-
if (metadataResponse.content && Array.isArray(metadataResponse.content)) {
|
|
5188
|
-
for (const item of metadataResponse.content) {
|
|
5189
|
-
if (item.type === "text" && item.text) {
|
|
5190
|
-
try {
|
|
5191
|
-
const parsed = JSON.parse(item.text);
|
|
5192
|
-
if (Array.isArray(parsed)) {
|
|
5193
|
-
toolMetadata = parsed;
|
|
5194
|
-
} else if (parsed.tools && Array.isArray(parsed.tools)) {
|
|
5195
|
-
toolMetadata = parsed.tools;
|
|
5196
|
-
}
|
|
5197
|
-
} catch {}
|
|
5198
|
-
}
|
|
5199
|
-
}
|
|
5200
|
-
}
|
|
5245
|
+
const toolMetadata = this.parseListToolsByIntegrationContent(metadataResponse.content);
|
|
5201
5246
|
return {
|
|
5202
5247
|
...integration,
|
|
5203
5248
|
...integrationLibraryPresentationFields(integration),
|
|
@@ -5455,6 +5500,18 @@ class MCPClientBase {
|
|
|
5455
5500
|
}
|
|
5456
5501
|
return {};
|
|
5457
5502
|
}
|
|
5503
|
+
parseListToolsByIntegrationContent(content) {
|
|
5504
|
+
const tools = [];
|
|
5505
|
+
if (!content || !Array.isArray(content)) {
|
|
5506
|
+
return tools;
|
|
5507
|
+
}
|
|
5508
|
+
for (const item of content) {
|
|
5509
|
+
if (item.type === "text" && item.text) {
|
|
5510
|
+
tools.push(...parseToolsFromListByIntegrationText(item.text, this.availableTools));
|
|
5511
|
+
}
|
|
5512
|
+
}
|
|
5513
|
+
return tools;
|
|
5514
|
+
}
|
|
5458
5515
|
getTool(name) {
|
|
5459
5516
|
return this.availableTools.get(name);
|
|
5460
5517
|
}
|
|
@@ -5499,6 +5556,11 @@ class MCPClientBase {
|
|
|
5499
5556
|
if (this.availableTools.size > 0 && hasCompleteCache()) {
|
|
5500
5557
|
return filterToTargets(this.getEnabledTools());
|
|
5501
5558
|
}
|
|
5559
|
+
const transportHeaders = this.transport.headers || {};
|
|
5560
|
+
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
5561
|
+
if (hasApiKey) {
|
|
5562
|
+
await this.ensureConnected();
|
|
5563
|
+
}
|
|
5502
5564
|
const tools = [];
|
|
5503
5565
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
5504
5566
|
const concurrency = options?.fetchConcurrency ?? 8;
|
|
@@ -5507,26 +5569,7 @@ class MCPClientBase {
|
|
|
5507
5569
|
const response = await this.callServerToolInternal("list_tools_by_integration", {
|
|
5508
5570
|
integration: integrationId
|
|
5509
5571
|
});
|
|
5510
|
-
const integrationTools =
|
|
5511
|
-
if (response.content && Array.isArray(response.content)) {
|
|
5512
|
-
for (const item of response.content) {
|
|
5513
|
-
if (item.type === "text" && item.text) {
|
|
5514
|
-
try {
|
|
5515
|
-
const parsed = JSON.parse(item.text);
|
|
5516
|
-
const parsedTools = Array.isArray(parsed) ? parsed : parsed.tools && Array.isArray(parsed.tools) ? parsed.tools : [];
|
|
5517
|
-
for (const tool of parsedTools) {
|
|
5518
|
-
if (tool.name && tool.inputSchema) {
|
|
5519
|
-
integrationTools.push({
|
|
5520
|
-
name: tool.name,
|
|
5521
|
-
description: tool.description,
|
|
5522
|
-
inputSchema: tool.inputSchema
|
|
5523
|
-
});
|
|
5524
|
-
}
|
|
5525
|
-
}
|
|
5526
|
-
} catch {}
|
|
5527
|
-
}
|
|
5528
|
-
}
|
|
5529
|
-
}
|
|
5572
|
+
const integrationTools = this.parseListToolsByIntegrationContent(response.content).filter((tool) => tool.inputSchema);
|
|
5530
5573
|
return integrationTools;
|
|
5531
5574
|
} catch (error) {
|
|
5532
5575
|
logger5.error(`Failed to fetch tools for integration ${integrationId}:`, error);
|
|
@@ -6151,12 +6194,12 @@ init_logger();
|
|
|
6151
6194
|
// src/utils/normalize-tool-name.ts
|
|
6152
6195
|
var TOOL_ALIASES = {
|
|
6153
6196
|
github_list_repo_contents: "github_get_file_contents",
|
|
6154
|
-
gdrive_list: "
|
|
6155
|
-
gdrive_get: "
|
|
6156
|
-
gdrive_delete: "
|
|
6157
|
-
gdrive_trash: "
|
|
6158
|
-
gdrive_upload: "
|
|
6159
|
-
gdrive_download: "
|
|
6197
|
+
gdrive_list: "google_drive_list_files",
|
|
6198
|
+
gdrive_get: "google_drive_get_file",
|
|
6199
|
+
gdrive_delete: "google_drive_delete_file",
|
|
6200
|
+
gdrive_trash: "google_drive_trash_file",
|
|
6201
|
+
gdrive_upload: "google_drive_upload_text_file",
|
|
6202
|
+
gdrive_download: "google_drive_download_file",
|
|
6160
6203
|
slack_send: "slack_send_message",
|
|
6161
6204
|
gmail_send: "gmail_send_email",
|
|
6162
6205
|
notion_create_page: "notion_create_page"
|
|
@@ -10536,28 +10579,28 @@ function stripeIntegration(config = {}) {
|
|
|
10536
10579
|
}
|
|
10537
10580
|
};
|
|
10538
10581
|
}
|
|
10539
|
-
// src/integrations/
|
|
10582
|
+
// src/integrations/google_calendar.ts
|
|
10540
10583
|
init_logger();
|
|
10541
10584
|
var logger109 = createLogger("Google Calendar");
|
|
10542
|
-
var
|
|
10543
|
-
"
|
|
10544
|
-
"
|
|
10545
|
-
"
|
|
10546
|
-
"
|
|
10547
|
-
"
|
|
10548
|
-
"
|
|
10549
|
-
"
|
|
10550
|
-
"
|
|
10551
|
-
"
|
|
10552
|
-
"
|
|
10553
|
-
"
|
|
10554
|
-
"
|
|
10555
|
-
];
|
|
10556
|
-
function
|
|
10585
|
+
var GOOGLE_CALENDAR_TOOLS = [
|
|
10586
|
+
"google_calendar_create_calendar",
|
|
10587
|
+
"google_calendar_create_event",
|
|
10588
|
+
"google_calendar_delete_calendar",
|
|
10589
|
+
"google_calendar_delete_event",
|
|
10590
|
+
"google_calendar_freebusy",
|
|
10591
|
+
"google_calendar_get_calendar",
|
|
10592
|
+
"google_calendar_get_event",
|
|
10593
|
+
"google_calendar_list_attendees",
|
|
10594
|
+
"google_calendar_list_calendars",
|
|
10595
|
+
"google_calendar_list_events",
|
|
10596
|
+
"google_calendar_quick_add",
|
|
10597
|
+
"google_calendar_update_event"
|
|
10598
|
+
];
|
|
10599
|
+
function googleCalendarIntegration(config = {}) {
|
|
10557
10600
|
const oauth = {
|
|
10558
|
-
provider: "
|
|
10559
|
-
clientId: config.clientId ?? getEnv("
|
|
10560
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10601
|
+
provider: "google_calendar",
|
|
10602
|
+
clientId: config.clientId ?? getEnv("GOOGLE_CALENDAR_CLIENT_ID"),
|
|
10603
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_CALENDAR_CLIENT_SECRET"),
|
|
10561
10604
|
scopes: config.scopes,
|
|
10562
10605
|
optionalScopes: config.optionalScopes,
|
|
10563
10606
|
redirectUri: config.redirectUri,
|
|
@@ -10566,10 +10609,10 @@ function gcalIntegration(config = {}) {
|
|
|
10566
10609
|
}
|
|
10567
10610
|
};
|
|
10568
10611
|
return {
|
|
10569
|
-
id: "
|
|
10612
|
+
id: "google_calendar",
|
|
10570
10613
|
name: "Google Calendar",
|
|
10571
10614
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_calendar.webp",
|
|
10572
|
-
tools: [...
|
|
10615
|
+
tools: [...GOOGLE_CALENDAR_TOOLS],
|
|
10573
10616
|
oauth,
|
|
10574
10617
|
async onInit(_client) {
|
|
10575
10618
|
logger109.debug("Google Calendar integration initialized");
|
|
@@ -10579,26 +10622,26 @@ function gcalIntegration(config = {}) {
|
|
|
10579
10622
|
}
|
|
10580
10623
|
};
|
|
10581
10624
|
}
|
|
10582
|
-
// src/integrations/
|
|
10625
|
+
// src/integrations/google_contacts.ts
|
|
10583
10626
|
init_logger();
|
|
10584
10627
|
var logger110 = createLogger("Google Contacts");
|
|
10585
|
-
var
|
|
10586
|
-
"
|
|
10587
|
-
"
|
|
10588
|
-
"
|
|
10589
|
-
"
|
|
10590
|
-
"
|
|
10591
|
-
"
|
|
10592
|
-
"
|
|
10593
|
-
"
|
|
10594
|
-
"
|
|
10595
|
-
"
|
|
10596
|
-
];
|
|
10597
|
-
function
|
|
10628
|
+
var GOOGLE_CONTACTS_TOOLS = [
|
|
10629
|
+
"google_contacts_batch_get_contacts",
|
|
10630
|
+
"google_contacts_copy_other_contact",
|
|
10631
|
+
"google_contacts_create_contact",
|
|
10632
|
+
"google_contacts_delete_contact",
|
|
10633
|
+
"google_contacts_get_person",
|
|
10634
|
+
"google_contacts_get_self",
|
|
10635
|
+
"google_contacts_list_connections",
|
|
10636
|
+
"google_contacts_list_other_contacts",
|
|
10637
|
+
"google_contacts_search_contacts",
|
|
10638
|
+
"google_contacts_update_contact"
|
|
10639
|
+
];
|
|
10640
|
+
function googleContactsIntegration(config = {}) {
|
|
10598
10641
|
const oauth = {
|
|
10599
|
-
provider: "
|
|
10600
|
-
clientId: config.clientId ?? getEnv("
|
|
10601
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10642
|
+
provider: "google_contacts",
|
|
10643
|
+
clientId: config.clientId ?? getEnv("GOOGLE_CONTACTS_CLIENT_ID"),
|
|
10644
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_CONTACTS_CLIENT_SECRET"),
|
|
10602
10645
|
scopes: config.scopes,
|
|
10603
10646
|
optionalScopes: config.optionalScopes,
|
|
10604
10647
|
redirectUri: config.redirectUri,
|
|
@@ -10607,12 +10650,12 @@ function gcontactsIntegration(config = {}) {
|
|
|
10607
10650
|
}
|
|
10608
10651
|
};
|
|
10609
10652
|
return {
|
|
10610
|
-
id: "
|
|
10653
|
+
id: "google_contacts",
|
|
10611
10654
|
name: "Google Contacts",
|
|
10612
10655
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_contacts.png",
|
|
10613
10656
|
description: "List, search, create, update, and delete Google Contacts via the People API",
|
|
10614
10657
|
category: "Communication",
|
|
10615
|
-
tools: [...
|
|
10658
|
+
tools: [...GOOGLE_CONTACTS_TOOLS],
|
|
10616
10659
|
oauth,
|
|
10617
10660
|
async onInit(_client) {
|
|
10618
10661
|
logger110.debug("Google Contacts integration initialized");
|
|
@@ -10622,34 +10665,34 @@ function gcontactsIntegration(config = {}) {
|
|
|
10622
10665
|
}
|
|
10623
10666
|
};
|
|
10624
10667
|
}
|
|
10625
|
-
// src/integrations/
|
|
10668
|
+
// src/integrations/google_meet.ts
|
|
10626
10669
|
init_logger();
|
|
10627
10670
|
var logger111 = createLogger("Google Meet");
|
|
10628
|
-
var
|
|
10629
|
-
"
|
|
10630
|
-
"
|
|
10631
|
-
"
|
|
10632
|
-
"
|
|
10633
|
-
"
|
|
10634
|
-
"
|
|
10635
|
-
];
|
|
10636
|
-
function
|
|
10671
|
+
var GOOGLE_MEET_TOOLS = [
|
|
10672
|
+
"google_meet_add_meet_to_event",
|
|
10673
|
+
"google_meet_create_meeting",
|
|
10674
|
+
"google_meet_delete_meeting",
|
|
10675
|
+
"google_meet_get_meeting",
|
|
10676
|
+
"google_meet_list_meetings",
|
|
10677
|
+
"google_meet_update_meeting"
|
|
10678
|
+
];
|
|
10679
|
+
function googleMeetIntegration(config = {}) {
|
|
10637
10680
|
const oauth = {
|
|
10638
|
-
provider: "
|
|
10639
|
-
clientId: config.clientId ?? getEnv("
|
|
10640
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10681
|
+
provider: "google_meet",
|
|
10682
|
+
clientId: config.clientId ?? getEnv("GOOGLE_MEET_CLIENT_ID"),
|
|
10683
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_MEET_CLIENT_SECRET"),
|
|
10641
10684
|
scopes: config.scopes,
|
|
10642
10685
|
optionalScopes: config.optionalScopes,
|
|
10643
10686
|
redirectUri: config.redirectUri,
|
|
10644
10687
|
config: { ...config }
|
|
10645
10688
|
};
|
|
10646
10689
|
return {
|
|
10647
|
-
id: "
|
|
10690
|
+
id: "google_meet",
|
|
10648
10691
|
name: "Google Meet",
|
|
10649
10692
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_meet.png",
|
|
10650
10693
|
description: "Create and manage Google Meet links via Calendar conference data",
|
|
10651
10694
|
category: "Communication",
|
|
10652
|
-
tools: [...
|
|
10695
|
+
tools: [...GOOGLE_MEET_TOOLS],
|
|
10653
10696
|
oauth,
|
|
10654
10697
|
async onInit(_client) {
|
|
10655
10698
|
logger111.debug("Google Meet integration initialized");
|
|
@@ -10659,28 +10702,28 @@ function gmeetIntegration(config = {}) {
|
|
|
10659
10702
|
}
|
|
10660
10703
|
};
|
|
10661
10704
|
}
|
|
10662
|
-
// src/integrations/
|
|
10705
|
+
// src/integrations/google_tasks.ts
|
|
10663
10706
|
init_logger();
|
|
10664
10707
|
var logger112 = createLogger("Google Tasks");
|
|
10665
|
-
var
|
|
10666
|
-
"
|
|
10667
|
-
"
|
|
10668
|
-
"
|
|
10669
|
-
"
|
|
10670
|
-
"
|
|
10671
|
-
"
|
|
10672
|
-
"
|
|
10673
|
-
"
|
|
10674
|
-
"
|
|
10675
|
-
"
|
|
10676
|
-
"
|
|
10677
|
-
"
|
|
10678
|
-
];
|
|
10679
|
-
function
|
|
10708
|
+
var GOOGLE_TASKS_TOOLS = [
|
|
10709
|
+
"google_tasks_clear_completed",
|
|
10710
|
+
"google_tasks_create_task",
|
|
10711
|
+
"google_tasks_create_tasklist",
|
|
10712
|
+
"google_tasks_delete_task",
|
|
10713
|
+
"google_tasks_delete_tasklist",
|
|
10714
|
+
"google_tasks_get_task",
|
|
10715
|
+
"google_tasks_get_tasklist",
|
|
10716
|
+
"google_tasks_list_tasklists",
|
|
10717
|
+
"google_tasks_list_tasks",
|
|
10718
|
+
"google_tasks_move_task",
|
|
10719
|
+
"google_tasks_update_task",
|
|
10720
|
+
"google_tasks_update_tasklist"
|
|
10721
|
+
];
|
|
10722
|
+
function googleTasksIntegration(config = {}) {
|
|
10680
10723
|
const oauth = {
|
|
10681
|
-
provider: "
|
|
10682
|
-
clientId: config.clientId ?? getEnv("
|
|
10683
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10724
|
+
provider: "google_tasks",
|
|
10725
|
+
clientId: config.clientId ?? getEnv("GOOGLE_TASKS_CLIENT_ID"),
|
|
10726
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_TASKS_CLIENT_SECRET"),
|
|
10684
10727
|
scopes: config.scopes,
|
|
10685
10728
|
optionalScopes: config.optionalScopes,
|
|
10686
10729
|
redirectUri: config.redirectUri,
|
|
@@ -10689,12 +10732,12 @@ function gtasksIntegration(config = {}) {
|
|
|
10689
10732
|
}
|
|
10690
10733
|
};
|
|
10691
10734
|
return {
|
|
10692
|
-
id: "
|
|
10735
|
+
id: "google_tasks",
|
|
10693
10736
|
name: "Google Tasks",
|
|
10694
10737
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_tasks.png",
|
|
10695
10738
|
description: "Manage Google Tasks lists and to-dos synced with your Google account",
|
|
10696
10739
|
category: "Productivity",
|
|
10697
|
-
tools: [...
|
|
10740
|
+
tools: [...GOOGLE_TASKS_TOOLS],
|
|
10698
10741
|
oauth,
|
|
10699
10742
|
async onInit(_client) {
|
|
10700
10743
|
logger112.debug("Google Tasks integration initialized");
|
|
@@ -10704,24 +10747,24 @@ function gtasksIntegration(config = {}) {
|
|
|
10704
10747
|
}
|
|
10705
10748
|
};
|
|
10706
10749
|
}
|
|
10707
|
-
// src/integrations/
|
|
10750
|
+
// src/integrations/google_keep.ts
|
|
10708
10751
|
init_logger();
|
|
10709
10752
|
var logger113 = createLogger("Google Keep");
|
|
10710
|
-
var
|
|
10711
|
-
"
|
|
10712
|
-
"
|
|
10713
|
-
"
|
|
10714
|
-
"
|
|
10715
|
-
"
|
|
10716
|
-
"
|
|
10717
|
-
"
|
|
10718
|
-
"
|
|
10719
|
-
];
|
|
10720
|
-
function
|
|
10753
|
+
var GOOGLE_KEEP_TOOLS = [
|
|
10754
|
+
"google_keep_list_notes",
|
|
10755
|
+
"google_keep_get_note",
|
|
10756
|
+
"google_keep_create_text_note",
|
|
10757
|
+
"google_keep_create_list_note",
|
|
10758
|
+
"google_keep_delete_note",
|
|
10759
|
+
"google_keep_download_attachment",
|
|
10760
|
+
"google_keep_batch_create_permissions",
|
|
10761
|
+
"google_keep_batch_delete_permissions"
|
|
10762
|
+
];
|
|
10763
|
+
function googleKeepIntegration(config = {}) {
|
|
10721
10764
|
const oauth = {
|
|
10722
|
-
provider: "
|
|
10723
|
-
clientId: config.clientId ?? getEnv("
|
|
10724
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10765
|
+
provider: "google_keep",
|
|
10766
|
+
clientId: config.clientId ?? getEnv("GOOGLE_KEEP_CLIENT_ID"),
|
|
10767
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_KEEP_CLIENT_SECRET"),
|
|
10725
10768
|
scopes: config.scopes,
|
|
10726
10769
|
optionalScopes: config.optionalScopes,
|
|
10727
10770
|
redirectUri: config.redirectUri,
|
|
@@ -10730,12 +10773,12 @@ function gkeepIntegration(config = {}) {
|
|
|
10730
10773
|
}
|
|
10731
10774
|
};
|
|
10732
10775
|
return {
|
|
10733
|
-
id: "
|
|
10776
|
+
id: "google_keep",
|
|
10734
10777
|
name: "Google Keep",
|
|
10735
10778
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_keep.png",
|
|
10736
10779
|
description: "Manage Google Keep notes, attachments, and sharing permissions",
|
|
10737
10780
|
category: "Productivity",
|
|
10738
|
-
tools: [...
|
|
10781
|
+
tools: [...GOOGLE_KEEP_TOOLS],
|
|
10739
10782
|
oauth,
|
|
10740
10783
|
async onInit(_client) {
|
|
10741
10784
|
logger113.debug("Google Keep integration initialized");
|
|
@@ -11703,36 +11746,36 @@ function powerpointIntegration(config = {}) {
|
|
|
11703
11746
|
}
|
|
11704
11747
|
};
|
|
11705
11748
|
}
|
|
11706
|
-
// src/integrations/
|
|
11749
|
+
// src/integrations/google_docs.ts
|
|
11707
11750
|
init_logger();
|
|
11708
11751
|
var logger131 = createLogger("Google Docs");
|
|
11709
|
-
var
|
|
11710
|
-
"
|
|
11711
|
-
"
|
|
11712
|
-
"
|
|
11713
|
-
"
|
|
11714
|
-
"
|
|
11715
|
-
"
|
|
11716
|
-
"
|
|
11717
|
-
"
|
|
11718
|
-
"
|
|
11719
|
-
"
|
|
11720
|
-
];
|
|
11721
|
-
function
|
|
11752
|
+
var GOOGLE_DOCS_TOOLS = [
|
|
11753
|
+
"google_docs_append_text",
|
|
11754
|
+
"google_docs_batch_update",
|
|
11755
|
+
"google_docs_create",
|
|
11756
|
+
"google_docs_create_comment",
|
|
11757
|
+
"google_docs_delete",
|
|
11758
|
+
"google_docs_delete_comment",
|
|
11759
|
+
"google_docs_get",
|
|
11760
|
+
"google_docs_list",
|
|
11761
|
+
"google_docs_list_comments",
|
|
11762
|
+
"google_docs_replace_text"
|
|
11763
|
+
];
|
|
11764
|
+
function googleDocsIntegration(config = {}) {
|
|
11722
11765
|
const oauth = {
|
|
11723
|
-
provider: "
|
|
11724
|
-
clientId: config.clientId ?? getEnv("
|
|
11725
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
11766
|
+
provider: "google_docs",
|
|
11767
|
+
clientId: config.clientId ?? getEnv("GOOGLE_DOCS_CLIENT_ID"),
|
|
11768
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_DOCS_CLIENT_SECRET"),
|
|
11726
11769
|
scopes: config.scopes,
|
|
11727
11770
|
optionalScopes: config.optionalScopes,
|
|
11728
11771
|
redirectUri: config.redirectUri,
|
|
11729
11772
|
config
|
|
11730
11773
|
};
|
|
11731
11774
|
return {
|
|
11732
|
-
id: "
|
|
11775
|
+
id: "google_docs",
|
|
11733
11776
|
name: "Google Docs",
|
|
11734
11777
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_docs.png",
|
|
11735
|
-
tools: [...
|
|
11778
|
+
tools: [...GOOGLE_DOCS_TOOLS],
|
|
11736
11779
|
oauth,
|
|
11737
11780
|
async onInit(_client) {
|
|
11738
11781
|
logger131.debug("Google Docs integration initialized");
|
|
@@ -11742,40 +11785,40 @@ function gdocsIntegration(config = {}) {
|
|
|
11742
11785
|
}
|
|
11743
11786
|
};
|
|
11744
11787
|
}
|
|
11745
|
-
// src/integrations/
|
|
11788
|
+
// src/integrations/google_drive.ts
|
|
11746
11789
|
init_logger();
|
|
11747
11790
|
var logger132 = createLogger("Google Drive");
|
|
11748
|
-
var
|
|
11749
|
-
"
|
|
11750
|
-
"
|
|
11751
|
-
"
|
|
11752
|
-
"
|
|
11753
|
-
"
|
|
11754
|
-
"
|
|
11755
|
-
"
|
|
11756
|
-
"
|
|
11757
|
-
"
|
|
11758
|
-
"
|
|
11759
|
-
"
|
|
11760
|
-
"
|
|
11761
|
-
"
|
|
11762
|
-
"
|
|
11763
|
-
];
|
|
11764
|
-
function
|
|
11791
|
+
var GOOGLE_DRIVE_TOOLS = [
|
|
11792
|
+
"google_drive_copy_file",
|
|
11793
|
+
"google_drive_create_folder",
|
|
11794
|
+
"google_drive_delete_file",
|
|
11795
|
+
"google_drive_download_file",
|
|
11796
|
+
"google_drive_get_about",
|
|
11797
|
+
"google_drive_get_file",
|
|
11798
|
+
"google_drive_list_files",
|
|
11799
|
+
"google_drive_list_permissions",
|
|
11800
|
+
"google_drive_move_file",
|
|
11801
|
+
"google_drive_remove_permission",
|
|
11802
|
+
"google_drive_rename_file",
|
|
11803
|
+
"google_drive_share_file",
|
|
11804
|
+
"google_drive_trash_file",
|
|
11805
|
+
"google_drive_upload_text_file"
|
|
11806
|
+
];
|
|
11807
|
+
function googleDriveIntegration(config = {}) {
|
|
11765
11808
|
const oauth = {
|
|
11766
|
-
provider: "
|
|
11767
|
-
clientId: config.clientId ?? getEnv("
|
|
11768
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
11809
|
+
provider: "google_drive",
|
|
11810
|
+
clientId: config.clientId ?? getEnv("GOOGLE_DRIVE_CLIENT_ID"),
|
|
11811
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_DRIVE_CLIENT_SECRET"),
|
|
11769
11812
|
scopes: config.scopes,
|
|
11770
11813
|
optionalScopes: config.optionalScopes,
|
|
11771
11814
|
redirectUri: config.redirectUri,
|
|
11772
11815
|
config
|
|
11773
11816
|
};
|
|
11774
11817
|
return {
|
|
11775
|
-
id: "
|
|
11818
|
+
id: "google_drive",
|
|
11776
11819
|
name: "Google Drive",
|
|
11777
11820
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_drive.png",
|
|
11778
|
-
tools: [...
|
|
11821
|
+
tools: [...GOOGLE_DRIVE_TOOLS],
|
|
11779
11822
|
oauth,
|
|
11780
11823
|
async onInit(_client) {
|
|
11781
11824
|
logger132.debug("Google Drive integration initialized");
|
|
@@ -11785,36 +11828,36 @@ function gdriveIntegration(config = {}) {
|
|
|
11785
11828
|
}
|
|
11786
11829
|
};
|
|
11787
11830
|
}
|
|
11788
|
-
// src/integrations/
|
|
11831
|
+
// src/integrations/google_sheets.ts
|
|
11789
11832
|
init_logger();
|
|
11790
11833
|
var logger133 = createLogger("Google Sheets");
|
|
11791
|
-
var
|
|
11792
|
-
"
|
|
11793
|
-
"
|
|
11794
|
-
"
|
|
11795
|
-
"
|
|
11796
|
-
"
|
|
11797
|
-
"
|
|
11798
|
-
"
|
|
11799
|
-
"
|
|
11800
|
-
"
|
|
11801
|
-
"
|
|
11802
|
-
];
|
|
11803
|
-
function
|
|
11834
|
+
var GOOGLE_SHEETS_TOOLS = [
|
|
11835
|
+
"google_sheets_append_values",
|
|
11836
|
+
"google_sheets_batch_update",
|
|
11837
|
+
"google_sheets_batch_update_values",
|
|
11838
|
+
"google_sheets_clear_values",
|
|
11839
|
+
"google_sheets_create",
|
|
11840
|
+
"google_sheets_delete",
|
|
11841
|
+
"google_sheets_get",
|
|
11842
|
+
"google_sheets_get_values",
|
|
11843
|
+
"google_sheets_list",
|
|
11844
|
+
"google_sheets_update_values"
|
|
11845
|
+
];
|
|
11846
|
+
function googleSheetsIntegration(config = {}) {
|
|
11804
11847
|
const oauth = {
|
|
11805
|
-
provider: "
|
|
11806
|
-
clientId: config.clientId ?? getEnv("
|
|
11807
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
11848
|
+
provider: "google_sheets",
|
|
11849
|
+
clientId: config.clientId ?? getEnv("GOOGLE_SHEETS_CLIENT_ID"),
|
|
11850
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_SHEETS_CLIENT_SECRET"),
|
|
11808
11851
|
scopes: config.scopes,
|
|
11809
11852
|
optionalScopes: config.optionalScopes,
|
|
11810
11853
|
redirectUri: config.redirectUri,
|
|
11811
11854
|
config
|
|
11812
11855
|
};
|
|
11813
11856
|
return {
|
|
11814
|
-
id: "
|
|
11857
|
+
id: "google_sheets",
|
|
11815
11858
|
name: "Google Sheets",
|
|
11816
11859
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_sheets.png",
|
|
11817
|
-
tools: [...
|
|
11860
|
+
tools: [...GOOGLE_SHEETS_TOOLS],
|
|
11818
11861
|
oauth,
|
|
11819
11862
|
async onInit(_client) {
|
|
11820
11863
|
logger133.debug("Google Sheets integration initialized");
|
|
@@ -11824,35 +11867,35 @@ function gsheetsIntegration(config = {}) {
|
|
|
11824
11867
|
}
|
|
11825
11868
|
};
|
|
11826
11869
|
}
|
|
11827
|
-
// src/integrations/
|
|
11870
|
+
// src/integrations/google_slides.ts
|
|
11828
11871
|
init_logger();
|
|
11829
11872
|
var logger134 = createLogger("Google Slides");
|
|
11830
|
-
var
|
|
11831
|
-
"
|
|
11832
|
-
"
|
|
11833
|
-
"
|
|
11834
|
-
"
|
|
11835
|
-
"
|
|
11836
|
-
"
|
|
11837
|
-
"
|
|
11838
|
-
"
|
|
11839
|
-
"
|
|
11840
|
-
];
|
|
11841
|
-
function
|
|
11873
|
+
var GOOGLE_SLIDES_TOOLS = [
|
|
11874
|
+
"google_slides_add_slide",
|
|
11875
|
+
"google_slides_batch_update",
|
|
11876
|
+
"google_slides_create",
|
|
11877
|
+
"google_slides_delete",
|
|
11878
|
+
"google_slides_delete_slide",
|
|
11879
|
+
"google_slides_get",
|
|
11880
|
+
"google_slides_get_page",
|
|
11881
|
+
"google_slides_list",
|
|
11882
|
+
"google_slides_update_text"
|
|
11883
|
+
];
|
|
11884
|
+
function googleSlidesIntegration(config = {}) {
|
|
11842
11885
|
const oauth = {
|
|
11843
|
-
provider: "
|
|
11844
|
-
clientId: config.clientId ?? getEnv("
|
|
11845
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
11886
|
+
provider: "google_slides",
|
|
11887
|
+
clientId: config.clientId ?? getEnv("GOOGLE_SLIDES_CLIENT_ID"),
|
|
11888
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_SLIDES_CLIENT_SECRET"),
|
|
11846
11889
|
scopes: config.scopes,
|
|
11847
11890
|
optionalScopes: config.optionalScopes,
|
|
11848
11891
|
redirectUri: config.redirectUri,
|
|
11849
11892
|
config
|
|
11850
11893
|
};
|
|
11851
11894
|
return {
|
|
11852
|
-
id: "
|
|
11895
|
+
id: "google_slides",
|
|
11853
11896
|
name: "Google Slides",
|
|
11854
11897
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_slides.png",
|
|
11855
|
-
tools: [...
|
|
11898
|
+
tools: [...GOOGLE_SLIDES_TOOLS],
|
|
11856
11899
|
oauth,
|
|
11857
11900
|
async onInit(_client) {
|
|
11858
11901
|
logger134.debug("Google Slides integration initialized");
|
|
@@ -13420,29 +13463,29 @@ function attioIntegration(config = {}) {
|
|
|
13420
13463
|
}
|
|
13421
13464
|
};
|
|
13422
13465
|
}
|
|
13423
|
-
// src/integrations/
|
|
13466
|
+
// src/integrations/google_chat.ts
|
|
13424
13467
|
init_logger();
|
|
13425
13468
|
var logger163 = createLogger("Google Chat");
|
|
13426
|
-
var
|
|
13469
|
+
var GOOGLE_CHAT_SCOPES = [
|
|
13427
13470
|
"https://www.googleapis.com/auth/chat.messages",
|
|
13428
13471
|
"https://www.googleapis.com/auth/chat.spaces.readonly"
|
|
13429
13472
|
];
|
|
13430
|
-
var
|
|
13431
|
-
"
|
|
13432
|
-
"
|
|
13433
|
-
"
|
|
13434
|
-
"
|
|
13435
|
-
"
|
|
13436
|
-
"
|
|
13437
|
-
"
|
|
13438
|
-
"
|
|
13439
|
-
];
|
|
13440
|
-
function
|
|
13473
|
+
var GOOGLE_CHAT_TOOLS = [
|
|
13474
|
+
"google_chat_delete_message",
|
|
13475
|
+
"google_chat_get_message",
|
|
13476
|
+
"google_chat_get_space",
|
|
13477
|
+
"google_chat_list_members",
|
|
13478
|
+
"google_chat_list_messages",
|
|
13479
|
+
"google_chat_list_spaces",
|
|
13480
|
+
"google_chat_send_message",
|
|
13481
|
+
"google_chat_update_message"
|
|
13482
|
+
];
|
|
13483
|
+
function googleChatIntegration(config = {}) {
|
|
13441
13484
|
const oauth = {
|
|
13442
|
-
provider: "
|
|
13443
|
-
clientId: config.clientId ?? getEnv("
|
|
13444
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
13445
|
-
scopes: config.scopes ?? [...
|
|
13485
|
+
provider: "google_chat",
|
|
13486
|
+
clientId: config.clientId ?? getEnv("GOOGLE_CHAT_CLIENT_ID"),
|
|
13487
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_CHAT_CLIENT_SECRET"),
|
|
13488
|
+
scopes: config.scopes ?? [...GOOGLE_CHAT_SCOPES],
|
|
13446
13489
|
optionalScopes: config.optionalScopes,
|
|
13447
13490
|
redirectUri: config.redirectUri,
|
|
13448
13491
|
config: {
|
|
@@ -13453,12 +13496,12 @@ function gchatIntegration(config = {}) {
|
|
|
13453
13496
|
}
|
|
13454
13497
|
};
|
|
13455
13498
|
return {
|
|
13456
|
-
id: "
|
|
13499
|
+
id: "google_chat",
|
|
13457
13500
|
name: "Google Chat",
|
|
13458
13501
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_chat.png",
|
|
13459
13502
|
description: "List Google Chat spaces and manage messages and memberships",
|
|
13460
13503
|
category: "Communication",
|
|
13461
|
-
tools: [...
|
|
13504
|
+
tools: [...GOOGLE_CHAT_TOOLS],
|
|
13462
13505
|
oauth,
|
|
13463
13506
|
async onInit(_client) {
|
|
13464
13507
|
logger163.debug("Google Chat integration initialized");
|
|
@@ -14377,28 +14420,28 @@ function facebookIntegration(config = {}) {
|
|
|
14377
14420
|
}
|
|
14378
14421
|
};
|
|
14379
14422
|
}
|
|
14380
|
-
// src/integrations/
|
|
14381
|
-
var
|
|
14382
|
-
"
|
|
14383
|
-
"
|
|
14384
|
-
"
|
|
14385
|
-
"
|
|
14386
|
-
"
|
|
14423
|
+
// src/integrations/google_analytics.ts
|
|
14424
|
+
var GOOGLE_ANALYTICS_TOOLS = [
|
|
14425
|
+
"google_analytics_batch_run_reports",
|
|
14426
|
+
"google_analytics_get_property",
|
|
14427
|
+
"google_analytics_list_account_summaries",
|
|
14428
|
+
"google_analytics_run_realtime_report",
|
|
14429
|
+
"google_analytics_run_report"
|
|
14387
14430
|
];
|
|
14388
|
-
function
|
|
14431
|
+
function googleAnalyticsIntegration(config = {}) {
|
|
14389
14432
|
const oauth = {
|
|
14390
|
-
provider: "
|
|
14391
|
-
clientId: config.clientId ?? getEnv("
|
|
14392
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
14433
|
+
provider: "google_analytics",
|
|
14434
|
+
clientId: config.clientId ?? getEnv("GOOGLE_ANALYTICS_CLIENT_ID"),
|
|
14435
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_ANALYTICS_CLIENT_SECRET"),
|
|
14393
14436
|
scopes: config.scopes ?? ["https://www.googleapis.com/auth/analytics.readonly"],
|
|
14394
14437
|
optionalScopes: config.optionalScopes,
|
|
14395
14438
|
redirectUri: config.redirectUri
|
|
14396
14439
|
};
|
|
14397
14440
|
return {
|
|
14398
|
-
id: "
|
|
14441
|
+
id: "google_analytics",
|
|
14399
14442
|
name: "Google Analytics",
|
|
14400
14443
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_analytics.png",
|
|
14401
|
-
tools: [...
|
|
14444
|
+
tools: [...GOOGLE_ANALYTICS_TOOLS],
|
|
14402
14445
|
oauth
|
|
14403
14446
|
};
|
|
14404
14447
|
}
|
|
@@ -21620,11 +21663,11 @@ function allIntegrations() {
|
|
|
21620
21663
|
vercelIntegration(),
|
|
21621
21664
|
zendeskIntegration(),
|
|
21622
21665
|
stripeIntegration(),
|
|
21623
|
-
|
|
21624
|
-
|
|
21625
|
-
|
|
21626
|
-
|
|
21627
|
-
|
|
21666
|
+
googleCalendarIntegration(),
|
|
21667
|
+
googleMeetIntegration(),
|
|
21668
|
+
googleTasksIntegration(),
|
|
21669
|
+
googleKeepIntegration(),
|
|
21670
|
+
googleContactsIntegration(),
|
|
21628
21671
|
outlookIntegration(),
|
|
21629
21672
|
teamsIntegration(),
|
|
21630
21673
|
airtableIntegration(),
|
|
@@ -21641,10 +21684,10 @@ function allIntegrations() {
|
|
|
21641
21684
|
wordIntegration(),
|
|
21642
21685
|
excelIntegration(),
|
|
21643
21686
|
powerpointIntegration(),
|
|
21644
|
-
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
|
|
21687
|
+
googleDocsIntegration(),
|
|
21688
|
+
googleDriveIntegration(),
|
|
21689
|
+
googleSheetsIntegration(),
|
|
21690
|
+
googleSlidesIntegration(),
|
|
21648
21691
|
polarIntegration(),
|
|
21649
21692
|
facebookIntegration(),
|
|
21650
21693
|
figmaIntegration(),
|
|
@@ -21656,7 +21699,7 @@ function allIntegrations() {
|
|
|
21656
21699
|
tiktokIntegration(),
|
|
21657
21700
|
typeformIntegration(),
|
|
21658
21701
|
xeroIntegration(),
|
|
21659
|
-
|
|
21702
|
+
googleChatIntegration(),
|
|
21660
21703
|
shopifyIntegration(),
|
|
21661
21704
|
youtubeIntegration(),
|
|
21662
21705
|
zoomIntegration(),
|
|
@@ -26302,20 +26345,26 @@ export {
|
|
|
26302
26345
|
hasMeaningfulExpiresAt,
|
|
26303
26346
|
handleOpenAIResponse,
|
|
26304
26347
|
handleAnthropicMessage,
|
|
26305
|
-
gtasksIntegration,
|
|
26306
|
-
gslidesIntegration,
|
|
26307
|
-
gsheetsIntegration,
|
|
26308
26348
|
greenhouseIntegration,
|
|
26309
26349
|
granolaIntegration,
|
|
26350
|
+
googleTasksIntegration,
|
|
26351
|
+
googleSlidesIntegration,
|
|
26352
|
+
googleSheetsIntegration,
|
|
26310
26353
|
googlePlayConsoleIntegration,
|
|
26354
|
+
googleMeetIntegration,
|
|
26355
|
+
googleKeepIntegration,
|
|
26311
26356
|
googleHomeIntegration,
|
|
26312
26357
|
googleFormsIntegration,
|
|
26358
|
+
googleDriveIntegration,
|
|
26359
|
+
googleDocsIntegration,
|
|
26360
|
+
googleContactsIntegration,
|
|
26313
26361
|
googleClassroomIntegration,
|
|
26362
|
+
googleChatIntegration,
|
|
26363
|
+
googleCalendarIntegration,
|
|
26364
|
+
googleAnalyticsIntegration,
|
|
26314
26365
|
googleAdsIntegration,
|
|
26315
26366
|
gocardlessIntegration,
|
|
26316
|
-
gmeetIntegration,
|
|
26317
26367
|
gmailIntegration,
|
|
26318
|
-
gkeepIntegration,
|
|
26319
26368
|
gitlabIntegration,
|
|
26320
26369
|
githubIntegration,
|
|
26321
26370
|
getVercelAITools,
|
|
@@ -26325,13 +26374,7 @@ export {
|
|
|
26325
26374
|
getAnthropicTools,
|
|
26326
26375
|
genericOAuthIntegration,
|
|
26327
26376
|
generateCodeModeTypes,
|
|
26328
|
-
gdriveIntegration,
|
|
26329
|
-
gdocsIntegration,
|
|
26330
|
-
gcontactsIntegration,
|
|
26331
|
-
gchatIntegration,
|
|
26332
|
-
gcalIntegration,
|
|
26333
26377
|
garminIntegration,
|
|
26334
|
-
ga4Integration,
|
|
26335
26378
|
fromNodeHeaders,
|
|
26336
26379
|
freshserviceIntegration,
|
|
26337
26380
|
freeagentIntegration,
|