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/integrations.js
CHANGED
|
@@ -1281,23 +1281,23 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
1281
1281
|
description: "Send, read, and search Gmail messages",
|
|
1282
1282
|
category: "Communication"
|
|
1283
1283
|
},
|
|
1284
|
-
|
|
1284
|
+
google_calendar: {
|
|
1285
1285
|
description: "Manage Google Calendar events and schedules",
|
|
1286
1286
|
category: "Productivity"
|
|
1287
1287
|
},
|
|
1288
|
-
|
|
1288
|
+
google_tasks: {
|
|
1289
1289
|
description: "Manage Google Tasks lists and to-dos",
|
|
1290
1290
|
category: "Productivity"
|
|
1291
1291
|
},
|
|
1292
|
-
|
|
1292
|
+
google_keep: {
|
|
1293
1293
|
description: "Manage Google Keep notes, attachments, and sharing permissions",
|
|
1294
1294
|
category: "Productivity"
|
|
1295
1295
|
},
|
|
1296
|
-
|
|
1296
|
+
google_meet: {
|
|
1297
1297
|
description: "Create Google Meet links and manage meeting events via Calendar",
|
|
1298
1298
|
category: "Communication"
|
|
1299
1299
|
},
|
|
1300
|
-
|
|
1300
|
+
google_contacts: {
|
|
1301
1301
|
description: "List, search, create, update, and delete Google Contacts via the People API",
|
|
1302
1302
|
category: "Communication"
|
|
1303
1303
|
},
|
|
@@ -1433,19 +1433,19 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
1433
1433
|
description: "Manage Todoist tasks, projects, and labels",
|
|
1434
1434
|
category: "Productivity"
|
|
1435
1435
|
},
|
|
1436
|
-
|
|
1436
|
+
google_slides: {
|
|
1437
1437
|
description: "Create and update Google Slides presentations",
|
|
1438
1438
|
category: "Productivity"
|
|
1439
1439
|
},
|
|
1440
|
-
|
|
1440
|
+
google_sheets: {
|
|
1441
1441
|
description: "Read and update Google Sheets spreadsheets",
|
|
1442
1442
|
category: "Productivity"
|
|
1443
1443
|
},
|
|
1444
|
-
|
|
1444
|
+
google_docs: {
|
|
1445
1445
|
description: "Create and edit Google Docs documents",
|
|
1446
1446
|
category: "Productivity"
|
|
1447
1447
|
},
|
|
1448
|
-
|
|
1448
|
+
google_drive: {
|
|
1449
1449
|
description: "Manage Google Drive files, folders, and sharing",
|
|
1450
1450
|
category: "Storage"
|
|
1451
1451
|
},
|
|
@@ -1561,11 +1561,11 @@ var INTEGRATION_LIBRARY_METADATA = {
|
|
|
1561
1561
|
description: "Read eToro portfolio data and market instruments",
|
|
1562
1562
|
category: "Finance"
|
|
1563
1563
|
},
|
|
1564
|
-
|
|
1564
|
+
google_analytics: {
|
|
1565
1565
|
description: "Read Google Analytics reports, properties, and events",
|
|
1566
1566
|
category: "Analytics"
|
|
1567
1567
|
},
|
|
1568
|
-
|
|
1568
|
+
google_chat: {
|
|
1569
1569
|
description: "Send messages and manage Google Chat spaces and memberships",
|
|
1570
1570
|
category: "Communication"
|
|
1571
1571
|
},
|
|
@@ -1675,6 +1675,77 @@ function toConfiguredIntegrationWithToolMetadata(integration, toolMetadata) {
|
|
|
1675
1675
|
};
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
|
+
// src/integrations/list-tools-by-integration.ts
|
|
1679
|
+
function extractToolEntries(payload) {
|
|
1680
|
+
if (Array.isArray(payload)) {
|
|
1681
|
+
return payload;
|
|
1682
|
+
}
|
|
1683
|
+
if (payload && typeof payload === "object" && "tools" in payload) {
|
|
1684
|
+
const tools = payload.tools;
|
|
1685
|
+
if (Array.isArray(tools)) {
|
|
1686
|
+
return tools;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
return [];
|
|
1690
|
+
}
|
|
1691
|
+
function toMetadataTool(entry, availableTools) {
|
|
1692
|
+
if (entry.inputSchema) {
|
|
1693
|
+
return {
|
|
1694
|
+
name: entry.name,
|
|
1695
|
+
description: entry.description,
|
|
1696
|
+
inputSchema: entry.inputSchema
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
const cached = availableTools.get(entry.name);
|
|
1700
|
+
if (cached) {
|
|
1701
|
+
return cached;
|
|
1702
|
+
}
|
|
1703
|
+
return {
|
|
1704
|
+
name: entry.name,
|
|
1705
|
+
description: entry.description,
|
|
1706
|
+
inputSchema: {
|
|
1707
|
+
type: "object",
|
|
1708
|
+
properties: {}
|
|
1709
|
+
}
|
|
1710
|
+
};
|
|
1711
|
+
}
|
|
1712
|
+
function parseToolsFromListByIntegrationPayload(payload, availableTools) {
|
|
1713
|
+
const tools = [];
|
|
1714
|
+
for (const entry of extractToolEntries(payload)) {
|
|
1715
|
+
if (typeof entry === "string") {
|
|
1716
|
+
const cached = availableTools.get(entry);
|
|
1717
|
+
tools.push(cached ?? {
|
|
1718
|
+
name: entry,
|
|
1719
|
+
inputSchema: { type: "object", properties: {} }
|
|
1720
|
+
});
|
|
1721
|
+
continue;
|
|
1722
|
+
}
|
|
1723
|
+
if (!entry || typeof entry !== "object" || !("name" in entry)) {
|
|
1724
|
+
continue;
|
|
1725
|
+
}
|
|
1726
|
+
const candidate = entry;
|
|
1727
|
+
if (!candidate.name) {
|
|
1728
|
+
continue;
|
|
1729
|
+
}
|
|
1730
|
+
const normalized = toMetadataTool({
|
|
1731
|
+
name: candidate.name,
|
|
1732
|
+
description: candidate.description,
|
|
1733
|
+
inputSchema: candidate.inputSchema
|
|
1734
|
+
}, availableTools);
|
|
1735
|
+
if (normalized) {
|
|
1736
|
+
tools.push(normalized);
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
return tools;
|
|
1740
|
+
}
|
|
1741
|
+
function parseToolsFromListByIntegrationText(text, availableTools) {
|
|
1742
|
+
try {
|
|
1743
|
+
return parseToolsFromListByIntegrationPayload(JSON.parse(text), availableTools);
|
|
1744
|
+
} catch {
|
|
1745
|
+
return [];
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1678
1749
|
// src/database/token-store.ts
|
|
1679
1750
|
var USABLE_ACCESS_TOKEN_BUFFER_MS = 30 * 1000;
|
|
1680
1751
|
var MIN_MEANINGFUL_EXPIRY_MS = Date.UTC(2000, 0, 1);
|
|
@@ -2153,16 +2224,16 @@ var EMAIL_FETCHERS = {
|
|
|
2153
2224
|
github: fetchGitHubEmail,
|
|
2154
2225
|
gmail: fetchGoogleEmail,
|
|
2155
2226
|
google: fetchGoogleEmail,
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2227
|
+
google_calendar: fetchGoogleEmail,
|
|
2228
|
+
google_drive: fetchGoogleEmail,
|
|
2229
|
+
google_docs: fetchGoogleEmail,
|
|
2230
|
+
google_sheets: fetchGoogleEmail,
|
|
2231
|
+
google_slides: fetchGoogleEmail,
|
|
2232
|
+
google_contacts: fetchGoogleEmail,
|
|
2233
|
+
google_meet: fetchGoogleEmail,
|
|
2234
|
+
google_chat: fetchGoogleEmail,
|
|
2235
|
+
google_tasks: fetchGoogleEmail,
|
|
2236
|
+
google_analytics: fetchGoogleEmail,
|
|
2166
2237
|
youtube: fetchGoogleEmail,
|
|
2167
2238
|
notion: fetchNotionEmail,
|
|
2168
2239
|
linear: fetchLinearEmail,
|
|
@@ -3498,21 +3569,7 @@ class MCPClientBase {
|
|
|
3498
3569
|
const response = await this.callServerToolInternal("list_tools_by_integration", {
|
|
3499
3570
|
integration: integration.id
|
|
3500
3571
|
});
|
|
3501
|
-
|
|
3502
|
-
if (response.content && Array.isArray(response.content)) {
|
|
3503
|
-
for (const item of response.content) {
|
|
3504
|
-
if (item.type === "text" && item.text) {
|
|
3505
|
-
try {
|
|
3506
|
-
const parsed = JSON.parse(item.text);
|
|
3507
|
-
if (Array.isArray(parsed)) {
|
|
3508
|
-
toolMetadata = parsed;
|
|
3509
|
-
} else if (parsed.tools && Array.isArray(parsed.tools)) {
|
|
3510
|
-
toolMetadata = parsed.tools;
|
|
3511
|
-
}
|
|
3512
|
-
} catch {}
|
|
3513
|
-
}
|
|
3514
|
-
}
|
|
3515
|
-
}
|
|
3572
|
+
const toolMetadata = this.parseListToolsByIntegrationContent(response.content);
|
|
3516
3573
|
return toConfiguredIntegrationWithToolMetadata(integration, toolMetadata);
|
|
3517
3574
|
} catch (error) {
|
|
3518
3575
|
logger5.error(`Failed to fetch tool metadata for ${integration.id}:`, error);
|
|
@@ -3549,21 +3606,7 @@ class MCPClientBase {
|
|
|
3549
3606
|
const metadataResponse = await this.callServerToolInternal("list_tools_by_integration", {
|
|
3550
3607
|
integration: integration.id
|
|
3551
3608
|
});
|
|
3552
|
-
|
|
3553
|
-
if (metadataResponse.content && Array.isArray(metadataResponse.content)) {
|
|
3554
|
-
for (const item of metadataResponse.content) {
|
|
3555
|
-
if (item.type === "text" && item.text) {
|
|
3556
|
-
try {
|
|
3557
|
-
const parsed = JSON.parse(item.text);
|
|
3558
|
-
if (Array.isArray(parsed)) {
|
|
3559
|
-
toolMetadata = parsed;
|
|
3560
|
-
} else if (parsed.tools && Array.isArray(parsed.tools)) {
|
|
3561
|
-
toolMetadata = parsed.tools;
|
|
3562
|
-
}
|
|
3563
|
-
} catch {}
|
|
3564
|
-
}
|
|
3565
|
-
}
|
|
3566
|
-
}
|
|
3609
|
+
const toolMetadata = this.parseListToolsByIntegrationContent(metadataResponse.content);
|
|
3567
3610
|
return {
|
|
3568
3611
|
...integration,
|
|
3569
3612
|
...integrationLibraryPresentationFields(integration),
|
|
@@ -3821,6 +3864,18 @@ class MCPClientBase {
|
|
|
3821
3864
|
}
|
|
3822
3865
|
return {};
|
|
3823
3866
|
}
|
|
3867
|
+
parseListToolsByIntegrationContent(content) {
|
|
3868
|
+
const tools = [];
|
|
3869
|
+
if (!content || !Array.isArray(content)) {
|
|
3870
|
+
return tools;
|
|
3871
|
+
}
|
|
3872
|
+
for (const item of content) {
|
|
3873
|
+
if (item.type === "text" && item.text) {
|
|
3874
|
+
tools.push(...parseToolsFromListByIntegrationText(item.text, this.availableTools));
|
|
3875
|
+
}
|
|
3876
|
+
}
|
|
3877
|
+
return tools;
|
|
3878
|
+
}
|
|
3824
3879
|
getTool(name) {
|
|
3825
3880
|
return this.availableTools.get(name);
|
|
3826
3881
|
}
|
|
@@ -3865,6 +3920,11 @@ class MCPClientBase {
|
|
|
3865
3920
|
if (this.availableTools.size > 0 && hasCompleteCache()) {
|
|
3866
3921
|
return filterToTargets(this.getEnabledTools());
|
|
3867
3922
|
}
|
|
3923
|
+
const transportHeaders = this.transport.headers || {};
|
|
3924
|
+
const hasApiKey = !!transportHeaders["X-API-KEY"];
|
|
3925
|
+
if (hasApiKey) {
|
|
3926
|
+
await this.ensureConnected();
|
|
3927
|
+
}
|
|
3868
3928
|
const tools = [];
|
|
3869
3929
|
const { parallelWithLimit: parallelWithLimit2 } = await Promise.resolve().then(() => exports_concurrency);
|
|
3870
3930
|
const concurrency = options?.fetchConcurrency ?? 8;
|
|
@@ -3873,26 +3933,7 @@ class MCPClientBase {
|
|
|
3873
3933
|
const response = await this.callServerToolInternal("list_tools_by_integration", {
|
|
3874
3934
|
integration: integrationId
|
|
3875
3935
|
});
|
|
3876
|
-
const integrationTools =
|
|
3877
|
-
if (response.content && Array.isArray(response.content)) {
|
|
3878
|
-
for (const item of response.content) {
|
|
3879
|
-
if (item.type === "text" && item.text) {
|
|
3880
|
-
try {
|
|
3881
|
-
const parsed = JSON.parse(item.text);
|
|
3882
|
-
const parsedTools = Array.isArray(parsed) ? parsed : parsed.tools && Array.isArray(parsed.tools) ? parsed.tools : [];
|
|
3883
|
-
for (const tool of parsedTools) {
|
|
3884
|
-
if (tool.name && tool.inputSchema) {
|
|
3885
|
-
integrationTools.push({
|
|
3886
|
-
name: tool.name,
|
|
3887
|
-
description: tool.description,
|
|
3888
|
-
inputSchema: tool.inputSchema
|
|
3889
|
-
});
|
|
3890
|
-
}
|
|
3891
|
-
}
|
|
3892
|
-
} catch {}
|
|
3893
|
-
}
|
|
3894
|
-
}
|
|
3895
|
-
}
|
|
3936
|
+
const integrationTools = this.parseListToolsByIntegrationContent(response.content).filter((tool) => tool.inputSchema);
|
|
3896
3937
|
return integrationTools;
|
|
3897
3938
|
} catch (error) {
|
|
3898
3939
|
logger5.error(`Failed to fetch tools for integration ${integrationId}:`, error);
|
|
@@ -9342,27 +9383,27 @@ function stripeIntegration(config = {}) {
|
|
|
9342
9383
|
}
|
|
9343
9384
|
};
|
|
9344
9385
|
}
|
|
9345
|
-
// src/integrations/
|
|
9386
|
+
// src/integrations/google_calendar.ts
|
|
9346
9387
|
var logger109 = createLogger("Google Calendar");
|
|
9347
|
-
var
|
|
9348
|
-
"
|
|
9349
|
-
"
|
|
9350
|
-
"
|
|
9351
|
-
"
|
|
9352
|
-
"
|
|
9353
|
-
"
|
|
9354
|
-
"
|
|
9355
|
-
"
|
|
9356
|
-
"
|
|
9357
|
-
"
|
|
9358
|
-
"
|
|
9359
|
-
"
|
|
9360
|
-
];
|
|
9361
|
-
function
|
|
9388
|
+
var GOOGLE_CALENDAR_TOOLS = [
|
|
9389
|
+
"google_calendar_create_calendar",
|
|
9390
|
+
"google_calendar_create_event",
|
|
9391
|
+
"google_calendar_delete_calendar",
|
|
9392
|
+
"google_calendar_delete_event",
|
|
9393
|
+
"google_calendar_freebusy",
|
|
9394
|
+
"google_calendar_get_calendar",
|
|
9395
|
+
"google_calendar_get_event",
|
|
9396
|
+
"google_calendar_list_attendees",
|
|
9397
|
+
"google_calendar_list_calendars",
|
|
9398
|
+
"google_calendar_list_events",
|
|
9399
|
+
"google_calendar_quick_add",
|
|
9400
|
+
"google_calendar_update_event"
|
|
9401
|
+
];
|
|
9402
|
+
function googleCalendarIntegration(config = {}) {
|
|
9362
9403
|
const oauth = {
|
|
9363
|
-
provider: "
|
|
9364
|
-
clientId: config.clientId ?? getEnv("
|
|
9365
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
9404
|
+
provider: "google_calendar",
|
|
9405
|
+
clientId: config.clientId ?? getEnv("GOOGLE_CALENDAR_CLIENT_ID"),
|
|
9406
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_CALENDAR_CLIENT_SECRET"),
|
|
9366
9407
|
scopes: config.scopes,
|
|
9367
9408
|
optionalScopes: config.optionalScopes,
|
|
9368
9409
|
redirectUri: config.redirectUri,
|
|
@@ -9371,10 +9412,10 @@ function gcalIntegration(config = {}) {
|
|
|
9371
9412
|
}
|
|
9372
9413
|
};
|
|
9373
9414
|
return {
|
|
9374
|
-
id: "
|
|
9415
|
+
id: "google_calendar",
|
|
9375
9416
|
name: "Google Calendar",
|
|
9376
9417
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_calendar.webp",
|
|
9377
|
-
tools: [...
|
|
9418
|
+
tools: [...GOOGLE_CALENDAR_TOOLS],
|
|
9378
9419
|
oauth,
|
|
9379
9420
|
async onInit(_client) {
|
|
9380
9421
|
logger109.debug("Google Calendar integration initialized");
|
|
@@ -9384,27 +9425,27 @@ function gcalIntegration(config = {}) {
|
|
|
9384
9425
|
}
|
|
9385
9426
|
};
|
|
9386
9427
|
}
|
|
9387
|
-
// src/integrations/
|
|
9428
|
+
// src/integrations/google_tasks.ts
|
|
9388
9429
|
var logger110 = createLogger("Google Tasks");
|
|
9389
|
-
var
|
|
9390
|
-
"
|
|
9391
|
-
"
|
|
9392
|
-
"
|
|
9393
|
-
"
|
|
9394
|
-
"
|
|
9395
|
-
"
|
|
9396
|
-
"
|
|
9397
|
-
"
|
|
9398
|
-
"
|
|
9399
|
-
"
|
|
9400
|
-
"
|
|
9401
|
-
"
|
|
9402
|
-
];
|
|
9403
|
-
function
|
|
9430
|
+
var GOOGLE_TASKS_TOOLS = [
|
|
9431
|
+
"google_tasks_clear_completed",
|
|
9432
|
+
"google_tasks_create_task",
|
|
9433
|
+
"google_tasks_create_tasklist",
|
|
9434
|
+
"google_tasks_delete_task",
|
|
9435
|
+
"google_tasks_delete_tasklist",
|
|
9436
|
+
"google_tasks_get_task",
|
|
9437
|
+
"google_tasks_get_tasklist",
|
|
9438
|
+
"google_tasks_list_tasklists",
|
|
9439
|
+
"google_tasks_list_tasks",
|
|
9440
|
+
"google_tasks_move_task",
|
|
9441
|
+
"google_tasks_update_task",
|
|
9442
|
+
"google_tasks_update_tasklist"
|
|
9443
|
+
];
|
|
9444
|
+
function googleTasksIntegration(config = {}) {
|
|
9404
9445
|
const oauth = {
|
|
9405
|
-
provider: "
|
|
9406
|
-
clientId: config.clientId ?? getEnv("
|
|
9407
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
9446
|
+
provider: "google_tasks",
|
|
9447
|
+
clientId: config.clientId ?? getEnv("GOOGLE_TASKS_CLIENT_ID"),
|
|
9448
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_TASKS_CLIENT_SECRET"),
|
|
9408
9449
|
scopes: config.scopes,
|
|
9409
9450
|
optionalScopes: config.optionalScopes,
|
|
9410
9451
|
redirectUri: config.redirectUri,
|
|
@@ -9413,12 +9454,12 @@ function gtasksIntegration(config = {}) {
|
|
|
9413
9454
|
}
|
|
9414
9455
|
};
|
|
9415
9456
|
return {
|
|
9416
|
-
id: "
|
|
9457
|
+
id: "google_tasks",
|
|
9417
9458
|
name: "Google Tasks",
|
|
9418
9459
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_tasks.png",
|
|
9419
9460
|
description: "Manage Google Tasks lists and to-dos synced with your Google account",
|
|
9420
9461
|
category: "Productivity",
|
|
9421
|
-
tools: [...
|
|
9462
|
+
tools: [...GOOGLE_TASKS_TOOLS],
|
|
9422
9463
|
oauth,
|
|
9423
9464
|
async onInit(_client) {
|
|
9424
9465
|
logger110.debug("Google Tasks integration initialized");
|
|
@@ -9428,23 +9469,23 @@ function gtasksIntegration(config = {}) {
|
|
|
9428
9469
|
}
|
|
9429
9470
|
};
|
|
9430
9471
|
}
|
|
9431
|
-
// src/integrations/
|
|
9472
|
+
// src/integrations/google_keep.ts
|
|
9432
9473
|
var logger111 = createLogger("Google Keep");
|
|
9433
|
-
var
|
|
9434
|
-
"
|
|
9435
|
-
"
|
|
9436
|
-
"
|
|
9437
|
-
"
|
|
9438
|
-
"
|
|
9439
|
-
"
|
|
9440
|
-
"
|
|
9441
|
-
"
|
|
9442
|
-
];
|
|
9443
|
-
function
|
|
9474
|
+
var GOOGLE_KEEP_TOOLS = [
|
|
9475
|
+
"google_keep_list_notes",
|
|
9476
|
+
"google_keep_get_note",
|
|
9477
|
+
"google_keep_create_text_note",
|
|
9478
|
+
"google_keep_create_list_note",
|
|
9479
|
+
"google_keep_delete_note",
|
|
9480
|
+
"google_keep_download_attachment",
|
|
9481
|
+
"google_keep_batch_create_permissions",
|
|
9482
|
+
"google_keep_batch_delete_permissions"
|
|
9483
|
+
];
|
|
9484
|
+
function googleKeepIntegration(config = {}) {
|
|
9444
9485
|
const oauth = {
|
|
9445
|
-
provider: "
|
|
9446
|
-
clientId: config.clientId ?? getEnv("
|
|
9447
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
9486
|
+
provider: "google_keep",
|
|
9487
|
+
clientId: config.clientId ?? getEnv("GOOGLE_KEEP_CLIENT_ID"),
|
|
9488
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_KEEP_CLIENT_SECRET"),
|
|
9448
9489
|
scopes: config.scopes,
|
|
9449
9490
|
optionalScopes: config.optionalScopes,
|
|
9450
9491
|
redirectUri: config.redirectUri,
|
|
@@ -9453,12 +9494,12 @@ function gkeepIntegration(config = {}) {
|
|
|
9453
9494
|
}
|
|
9454
9495
|
};
|
|
9455
9496
|
return {
|
|
9456
|
-
id: "
|
|
9497
|
+
id: "google_keep",
|
|
9457
9498
|
name: "Google Keep",
|
|
9458
9499
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_keep.png",
|
|
9459
9500
|
description: "Manage Google Keep notes, attachments, and sharing permissions",
|
|
9460
9501
|
category: "Productivity",
|
|
9461
|
-
tools: [...
|
|
9502
|
+
tools: [...GOOGLE_KEEP_TOOLS],
|
|
9462
9503
|
oauth,
|
|
9463
9504
|
async onInit(_client) {
|
|
9464
9505
|
logger111.debug("Google Keep integration initialized");
|
|
@@ -9468,25 +9509,25 @@ function gkeepIntegration(config = {}) {
|
|
|
9468
9509
|
}
|
|
9469
9510
|
};
|
|
9470
9511
|
}
|
|
9471
|
-
// src/integrations/
|
|
9512
|
+
// src/integrations/google_contacts.ts
|
|
9472
9513
|
var logger112 = createLogger("Google Contacts");
|
|
9473
|
-
var
|
|
9474
|
-
"
|
|
9475
|
-
"
|
|
9476
|
-
"
|
|
9477
|
-
"
|
|
9478
|
-
"
|
|
9479
|
-
"
|
|
9480
|
-
"
|
|
9481
|
-
"
|
|
9482
|
-
"
|
|
9483
|
-
"
|
|
9484
|
-
];
|
|
9485
|
-
function
|
|
9514
|
+
var GOOGLE_CONTACTS_TOOLS = [
|
|
9515
|
+
"google_contacts_batch_get_contacts",
|
|
9516
|
+
"google_contacts_copy_other_contact",
|
|
9517
|
+
"google_contacts_create_contact",
|
|
9518
|
+
"google_contacts_delete_contact",
|
|
9519
|
+
"google_contacts_get_person",
|
|
9520
|
+
"google_contacts_get_self",
|
|
9521
|
+
"google_contacts_list_connections",
|
|
9522
|
+
"google_contacts_list_other_contacts",
|
|
9523
|
+
"google_contacts_search_contacts",
|
|
9524
|
+
"google_contacts_update_contact"
|
|
9525
|
+
];
|
|
9526
|
+
function googleContactsIntegration(config = {}) {
|
|
9486
9527
|
const oauth = {
|
|
9487
|
-
provider: "
|
|
9488
|
-
clientId: config.clientId ?? getEnv("
|
|
9489
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
9528
|
+
provider: "google_contacts",
|
|
9529
|
+
clientId: config.clientId ?? getEnv("GOOGLE_CONTACTS_CLIENT_ID"),
|
|
9530
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_CONTACTS_CLIENT_SECRET"),
|
|
9490
9531
|
scopes: config.scopes,
|
|
9491
9532
|
optionalScopes: config.optionalScopes,
|
|
9492
9533
|
redirectUri: config.redirectUri,
|
|
@@ -9495,12 +9536,12 @@ function gcontactsIntegration(config = {}) {
|
|
|
9495
9536
|
}
|
|
9496
9537
|
};
|
|
9497
9538
|
return {
|
|
9498
|
-
id: "
|
|
9539
|
+
id: "google_contacts",
|
|
9499
9540
|
name: "Google Contacts",
|
|
9500
9541
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_contacts.png",
|
|
9501
9542
|
description: "List, search, create, update, and delete Google Contacts via the People API",
|
|
9502
9543
|
category: "Communication",
|
|
9503
|
-
tools: [...
|
|
9544
|
+
tools: [...GOOGLE_CONTACTS_TOOLS],
|
|
9504
9545
|
oauth,
|
|
9505
9546
|
async onInit(_client) {
|
|
9506
9547
|
logger112.debug("Google Contacts integration initialized");
|
|
@@ -10187,35 +10228,35 @@ function paperIntegration(config = {}) {
|
|
|
10187
10228
|
}
|
|
10188
10229
|
};
|
|
10189
10230
|
}
|
|
10190
|
-
// src/integrations/
|
|
10231
|
+
// src/integrations/google_docs.ts
|
|
10191
10232
|
var logger125 = createLogger("Google Docs");
|
|
10192
|
-
var
|
|
10193
|
-
"
|
|
10194
|
-
"
|
|
10195
|
-
"
|
|
10196
|
-
"
|
|
10197
|
-
"
|
|
10198
|
-
"
|
|
10199
|
-
"
|
|
10200
|
-
"
|
|
10201
|
-
"
|
|
10202
|
-
"
|
|
10203
|
-
];
|
|
10204
|
-
function
|
|
10233
|
+
var GOOGLE_DOCS_TOOLS = [
|
|
10234
|
+
"google_docs_append_text",
|
|
10235
|
+
"google_docs_batch_update",
|
|
10236
|
+
"google_docs_create",
|
|
10237
|
+
"google_docs_create_comment",
|
|
10238
|
+
"google_docs_delete",
|
|
10239
|
+
"google_docs_delete_comment",
|
|
10240
|
+
"google_docs_get",
|
|
10241
|
+
"google_docs_list",
|
|
10242
|
+
"google_docs_list_comments",
|
|
10243
|
+
"google_docs_replace_text"
|
|
10244
|
+
];
|
|
10245
|
+
function googleDocsIntegration(config = {}) {
|
|
10205
10246
|
const oauth = {
|
|
10206
|
-
provider: "
|
|
10207
|
-
clientId: config.clientId ?? getEnv("
|
|
10208
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10247
|
+
provider: "google_docs",
|
|
10248
|
+
clientId: config.clientId ?? getEnv("GOOGLE_DOCS_CLIENT_ID"),
|
|
10249
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_DOCS_CLIENT_SECRET"),
|
|
10209
10250
|
scopes: config.scopes,
|
|
10210
10251
|
optionalScopes: config.optionalScopes,
|
|
10211
10252
|
redirectUri: config.redirectUri,
|
|
10212
10253
|
config
|
|
10213
10254
|
};
|
|
10214
10255
|
return {
|
|
10215
|
-
id: "
|
|
10256
|
+
id: "google_docs",
|
|
10216
10257
|
name: "Google Docs",
|
|
10217
10258
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_docs.png",
|
|
10218
|
-
tools: [...
|
|
10259
|
+
tools: [...GOOGLE_DOCS_TOOLS],
|
|
10219
10260
|
oauth,
|
|
10220
10261
|
async onInit(_client) {
|
|
10221
10262
|
logger125.debug("Google Docs integration initialized");
|
|
@@ -10225,35 +10266,35 @@ function gdocsIntegration(config = {}) {
|
|
|
10225
10266
|
}
|
|
10226
10267
|
};
|
|
10227
10268
|
}
|
|
10228
|
-
// src/integrations/
|
|
10269
|
+
// src/integrations/google_sheets.ts
|
|
10229
10270
|
var logger126 = createLogger("Google Sheets");
|
|
10230
|
-
var
|
|
10231
|
-
"
|
|
10232
|
-
"
|
|
10233
|
-
"
|
|
10234
|
-
"
|
|
10235
|
-
"
|
|
10236
|
-
"
|
|
10237
|
-
"
|
|
10238
|
-
"
|
|
10239
|
-
"
|
|
10240
|
-
"
|
|
10241
|
-
];
|
|
10242
|
-
function
|
|
10271
|
+
var GOOGLE_SHEETS_TOOLS = [
|
|
10272
|
+
"google_sheets_append_values",
|
|
10273
|
+
"google_sheets_batch_update",
|
|
10274
|
+
"google_sheets_batch_update_values",
|
|
10275
|
+
"google_sheets_clear_values",
|
|
10276
|
+
"google_sheets_create",
|
|
10277
|
+
"google_sheets_delete",
|
|
10278
|
+
"google_sheets_get",
|
|
10279
|
+
"google_sheets_get_values",
|
|
10280
|
+
"google_sheets_list",
|
|
10281
|
+
"google_sheets_update_values"
|
|
10282
|
+
];
|
|
10283
|
+
function googleSheetsIntegration(config = {}) {
|
|
10243
10284
|
const oauth = {
|
|
10244
|
-
provider: "
|
|
10245
|
-
clientId: config.clientId ?? getEnv("
|
|
10246
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10285
|
+
provider: "google_sheets",
|
|
10286
|
+
clientId: config.clientId ?? getEnv("GOOGLE_SHEETS_CLIENT_ID"),
|
|
10287
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_SHEETS_CLIENT_SECRET"),
|
|
10247
10288
|
scopes: config.scopes,
|
|
10248
10289
|
optionalScopes: config.optionalScopes,
|
|
10249
10290
|
redirectUri: config.redirectUri,
|
|
10250
10291
|
config
|
|
10251
10292
|
};
|
|
10252
10293
|
return {
|
|
10253
|
-
id: "
|
|
10294
|
+
id: "google_sheets",
|
|
10254
10295
|
name: "Google Sheets",
|
|
10255
10296
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_sheets.png",
|
|
10256
|
-
tools: [...
|
|
10297
|
+
tools: [...GOOGLE_SHEETS_TOOLS],
|
|
10257
10298
|
oauth,
|
|
10258
10299
|
async onInit(_client) {
|
|
10259
10300
|
logger126.debug("Google Sheets integration initialized");
|
|
@@ -10263,34 +10304,34 @@ function gsheetsIntegration(config = {}) {
|
|
|
10263
10304
|
}
|
|
10264
10305
|
};
|
|
10265
10306
|
}
|
|
10266
|
-
// src/integrations/
|
|
10307
|
+
// src/integrations/google_slides.ts
|
|
10267
10308
|
var logger127 = createLogger("Google Slides");
|
|
10268
|
-
var
|
|
10269
|
-
"
|
|
10270
|
-
"
|
|
10271
|
-
"
|
|
10272
|
-
"
|
|
10273
|
-
"
|
|
10274
|
-
"
|
|
10275
|
-
"
|
|
10276
|
-
"
|
|
10277
|
-
"
|
|
10278
|
-
];
|
|
10279
|
-
function
|
|
10309
|
+
var GOOGLE_SLIDES_TOOLS = [
|
|
10310
|
+
"google_slides_add_slide",
|
|
10311
|
+
"google_slides_batch_update",
|
|
10312
|
+
"google_slides_create",
|
|
10313
|
+
"google_slides_delete",
|
|
10314
|
+
"google_slides_delete_slide",
|
|
10315
|
+
"google_slides_get",
|
|
10316
|
+
"google_slides_get_page",
|
|
10317
|
+
"google_slides_list",
|
|
10318
|
+
"google_slides_update_text"
|
|
10319
|
+
];
|
|
10320
|
+
function googleSlidesIntegration(config = {}) {
|
|
10280
10321
|
const oauth = {
|
|
10281
|
-
provider: "
|
|
10282
|
-
clientId: config.clientId ?? getEnv("
|
|
10283
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
10322
|
+
provider: "google_slides",
|
|
10323
|
+
clientId: config.clientId ?? getEnv("GOOGLE_SLIDES_CLIENT_ID"),
|
|
10324
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_SLIDES_CLIENT_SECRET"),
|
|
10284
10325
|
scopes: config.scopes,
|
|
10285
10326
|
optionalScopes: config.optionalScopes,
|
|
10286
10327
|
redirectUri: config.redirectUri,
|
|
10287
10328
|
config
|
|
10288
10329
|
};
|
|
10289
10330
|
return {
|
|
10290
|
-
id: "
|
|
10331
|
+
id: "google_slides",
|
|
10291
10332
|
name: "Google Slides",
|
|
10292
10333
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_slides.png",
|
|
10293
|
-
tools: [...
|
|
10334
|
+
tools: [...GOOGLE_SLIDES_TOOLS],
|
|
10294
10335
|
oauth,
|
|
10295
10336
|
async onInit(_client) {
|
|
10296
10337
|
logger127.debug("Google Slides integration initialized");
|
|
@@ -11837,28 +11878,28 @@ function attioIntegration(config = {}) {
|
|
|
11837
11878
|
}
|
|
11838
11879
|
};
|
|
11839
11880
|
}
|
|
11840
|
-
// src/integrations/
|
|
11881
|
+
// src/integrations/google_chat.ts
|
|
11841
11882
|
var logger156 = createLogger("Google Chat");
|
|
11842
|
-
var
|
|
11883
|
+
var GOOGLE_CHAT_SCOPES = [
|
|
11843
11884
|
"https://www.googleapis.com/auth/chat.messages",
|
|
11844
11885
|
"https://www.googleapis.com/auth/chat.spaces.readonly"
|
|
11845
11886
|
];
|
|
11846
|
-
var
|
|
11847
|
-
"
|
|
11848
|
-
"
|
|
11849
|
-
"
|
|
11850
|
-
"
|
|
11851
|
-
"
|
|
11852
|
-
"
|
|
11853
|
-
"
|
|
11854
|
-
"
|
|
11855
|
-
];
|
|
11856
|
-
function
|
|
11887
|
+
var GOOGLE_CHAT_TOOLS = [
|
|
11888
|
+
"google_chat_delete_message",
|
|
11889
|
+
"google_chat_get_message",
|
|
11890
|
+
"google_chat_get_space",
|
|
11891
|
+
"google_chat_list_members",
|
|
11892
|
+
"google_chat_list_messages",
|
|
11893
|
+
"google_chat_list_spaces",
|
|
11894
|
+
"google_chat_send_message",
|
|
11895
|
+
"google_chat_update_message"
|
|
11896
|
+
];
|
|
11897
|
+
function googleChatIntegration(config = {}) {
|
|
11857
11898
|
const oauth = {
|
|
11858
|
-
provider: "
|
|
11859
|
-
clientId: config.clientId ?? getEnv("
|
|
11860
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
11861
|
-
scopes: config.scopes ?? [...
|
|
11899
|
+
provider: "google_chat",
|
|
11900
|
+
clientId: config.clientId ?? getEnv("GOOGLE_CHAT_CLIENT_ID"),
|
|
11901
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_CHAT_CLIENT_SECRET"),
|
|
11902
|
+
scopes: config.scopes ?? [...GOOGLE_CHAT_SCOPES],
|
|
11862
11903
|
optionalScopes: config.optionalScopes,
|
|
11863
11904
|
redirectUri: config.redirectUri,
|
|
11864
11905
|
config: {
|
|
@@ -11869,12 +11910,12 @@ function gchatIntegration(config = {}) {
|
|
|
11869
11910
|
}
|
|
11870
11911
|
};
|
|
11871
11912
|
return {
|
|
11872
|
-
id: "
|
|
11913
|
+
id: "google_chat",
|
|
11873
11914
|
name: "Google Chat",
|
|
11874
11915
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_chat.png",
|
|
11875
11916
|
description: "List Google Chat spaces and manage messages and memberships",
|
|
11876
11917
|
category: "Communication",
|
|
11877
|
-
tools: [...
|
|
11918
|
+
tools: [...GOOGLE_CHAT_TOOLS],
|
|
11878
11919
|
oauth,
|
|
11879
11920
|
async onInit(_client) {
|
|
11880
11921
|
logger156.debug("Google Chat integration initialized");
|
|
@@ -12911,64 +12952,64 @@ function excelIntegration(config = {}) {
|
|
|
12911
12952
|
}
|
|
12912
12953
|
};
|
|
12913
12954
|
}
|
|
12914
|
-
// src/integrations/
|
|
12915
|
-
var
|
|
12916
|
-
"
|
|
12917
|
-
"
|
|
12918
|
-
"
|
|
12919
|
-
"
|
|
12920
|
-
"
|
|
12955
|
+
// src/integrations/google_analytics.ts
|
|
12956
|
+
var GOOGLE_ANALYTICS_TOOLS = [
|
|
12957
|
+
"google_analytics_batch_run_reports",
|
|
12958
|
+
"google_analytics_get_property",
|
|
12959
|
+
"google_analytics_list_account_summaries",
|
|
12960
|
+
"google_analytics_run_realtime_report",
|
|
12961
|
+
"google_analytics_run_report"
|
|
12921
12962
|
];
|
|
12922
|
-
function
|
|
12963
|
+
function googleAnalyticsIntegration(config = {}) {
|
|
12923
12964
|
const oauth = {
|
|
12924
|
-
provider: "
|
|
12925
|
-
clientId: config.clientId ?? getEnv("
|
|
12926
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
12965
|
+
provider: "google_analytics",
|
|
12966
|
+
clientId: config.clientId ?? getEnv("GOOGLE_ANALYTICS_CLIENT_ID"),
|
|
12967
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_ANALYTICS_CLIENT_SECRET"),
|
|
12927
12968
|
scopes: config.scopes ?? ["https://www.googleapis.com/auth/analytics.readonly"],
|
|
12928
12969
|
optionalScopes: config.optionalScopes,
|
|
12929
12970
|
redirectUri: config.redirectUri
|
|
12930
12971
|
};
|
|
12931
12972
|
return {
|
|
12932
|
-
id: "
|
|
12973
|
+
id: "google_analytics",
|
|
12933
12974
|
name: "Google Analytics",
|
|
12934
12975
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_analytics.png",
|
|
12935
|
-
tools: [...
|
|
12976
|
+
tools: [...GOOGLE_ANALYTICS_TOOLS],
|
|
12936
12977
|
oauth
|
|
12937
12978
|
};
|
|
12938
12979
|
}
|
|
12939
|
-
// src/integrations/
|
|
12980
|
+
// src/integrations/google_drive.ts
|
|
12940
12981
|
var logger174 = createLogger("Google Drive");
|
|
12941
|
-
var
|
|
12942
|
-
"
|
|
12943
|
-
"
|
|
12944
|
-
"
|
|
12945
|
-
"
|
|
12946
|
-
"
|
|
12947
|
-
"
|
|
12948
|
-
"
|
|
12949
|
-
"
|
|
12950
|
-
"
|
|
12951
|
-
"
|
|
12952
|
-
"
|
|
12953
|
-
"
|
|
12954
|
-
"
|
|
12955
|
-
"
|
|
12956
|
-
];
|
|
12957
|
-
function
|
|
12982
|
+
var GOOGLE_DRIVE_TOOLS = [
|
|
12983
|
+
"google_drive_copy_file",
|
|
12984
|
+
"google_drive_create_folder",
|
|
12985
|
+
"google_drive_delete_file",
|
|
12986
|
+
"google_drive_download_file",
|
|
12987
|
+
"google_drive_get_about",
|
|
12988
|
+
"google_drive_get_file",
|
|
12989
|
+
"google_drive_list_files",
|
|
12990
|
+
"google_drive_list_permissions",
|
|
12991
|
+
"google_drive_move_file",
|
|
12992
|
+
"google_drive_remove_permission",
|
|
12993
|
+
"google_drive_rename_file",
|
|
12994
|
+
"google_drive_share_file",
|
|
12995
|
+
"google_drive_trash_file",
|
|
12996
|
+
"google_drive_upload_text_file"
|
|
12997
|
+
];
|
|
12998
|
+
function googleDriveIntegration(config = {}) {
|
|
12958
12999
|
const oauth = {
|
|
12959
|
-
provider: "
|
|
12960
|
-
clientId: config.clientId ?? getEnv("
|
|
12961
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
13000
|
+
provider: "google_drive",
|
|
13001
|
+
clientId: config.clientId ?? getEnv("GOOGLE_DRIVE_CLIENT_ID"),
|
|
13002
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_DRIVE_CLIENT_SECRET"),
|
|
12962
13003
|
scopes: config.scopes,
|
|
12963
13004
|
optionalScopes: config.optionalScopes,
|
|
12964
13005
|
redirectUri: config.redirectUri,
|
|
12965
13006
|
config
|
|
12966
13007
|
};
|
|
12967
13008
|
return {
|
|
12968
|
-
id: "
|
|
13009
|
+
id: "google_drive",
|
|
12969
13010
|
name: "Google Drive",
|
|
12970
13011
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_drive.png",
|
|
12971
|
-
tools: [...
|
|
13012
|
+
tools: [...GOOGLE_DRIVE_TOOLS],
|
|
12972
13013
|
oauth,
|
|
12973
13014
|
async onInit(_client) {
|
|
12974
13015
|
logger174.debug("Google Drive integration initialized");
|
|
@@ -13033,33 +13074,33 @@ function gitlabIntegration(config = {}) {
|
|
|
13033
13074
|
}
|
|
13034
13075
|
};
|
|
13035
13076
|
}
|
|
13036
|
-
// src/integrations/
|
|
13077
|
+
// src/integrations/google_meet.ts
|
|
13037
13078
|
var logger176 = createLogger("Google Meet");
|
|
13038
|
-
var
|
|
13039
|
-
"
|
|
13040
|
-
"
|
|
13041
|
-
"
|
|
13042
|
-
"
|
|
13043
|
-
"
|
|
13044
|
-
"
|
|
13045
|
-
];
|
|
13046
|
-
function
|
|
13079
|
+
var GOOGLE_MEET_TOOLS = [
|
|
13080
|
+
"google_meet_add_meet_to_event",
|
|
13081
|
+
"google_meet_create_meeting",
|
|
13082
|
+
"google_meet_delete_meeting",
|
|
13083
|
+
"google_meet_get_meeting",
|
|
13084
|
+
"google_meet_list_meetings",
|
|
13085
|
+
"google_meet_update_meeting"
|
|
13086
|
+
];
|
|
13087
|
+
function googleMeetIntegration(config = {}) {
|
|
13047
13088
|
const oauth = {
|
|
13048
|
-
provider: "
|
|
13049
|
-
clientId: config.clientId ?? getEnv("
|
|
13050
|
-
clientSecret: config.clientSecret ?? getEnv("
|
|
13089
|
+
provider: "google_meet",
|
|
13090
|
+
clientId: config.clientId ?? getEnv("GOOGLE_MEET_CLIENT_ID"),
|
|
13091
|
+
clientSecret: config.clientSecret ?? getEnv("GOOGLE_MEET_CLIENT_SECRET"),
|
|
13051
13092
|
scopes: config.scopes,
|
|
13052
13093
|
optionalScopes: config.optionalScopes,
|
|
13053
13094
|
redirectUri: config.redirectUri,
|
|
13054
13095
|
config: { ...config }
|
|
13055
13096
|
};
|
|
13056
13097
|
return {
|
|
13057
|
-
id: "
|
|
13098
|
+
id: "google_meet",
|
|
13058
13099
|
name: "Google Meet",
|
|
13059
13100
|
logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_meet.png",
|
|
13060
13101
|
description: "Create and manage Google Meet links via Calendar conference data",
|
|
13061
13102
|
category: "Communication",
|
|
13062
|
-
tools: [...
|
|
13103
|
+
tools: [...GOOGLE_MEET_TOOLS],
|
|
13063
13104
|
oauth,
|
|
13064
13105
|
async onInit(_client) {
|
|
13065
13106
|
logger176.debug("Google Meet integration initialized");
|
|
@@ -14374,20 +14415,26 @@ export {
|
|
|
14374
14415
|
instagramIntegration,
|
|
14375
14416
|
hubspotIntegration,
|
|
14376
14417
|
homeConnectIntegration,
|
|
14377
|
-
gtasksIntegration,
|
|
14378
|
-
gslidesIntegration,
|
|
14379
|
-
gsheetsIntegration,
|
|
14380
14418
|
greenhouseIntegration,
|
|
14381
14419
|
granolaIntegration,
|
|
14420
|
+
googleTasksIntegration,
|
|
14421
|
+
googleSlidesIntegration,
|
|
14422
|
+
googleSheetsIntegration,
|
|
14382
14423
|
googlePlayConsoleIntegration,
|
|
14424
|
+
googleMeetIntegration,
|
|
14425
|
+
googleKeepIntegration,
|
|
14383
14426
|
googleHomeIntegration,
|
|
14384
14427
|
googleFormsIntegration,
|
|
14428
|
+
googleDriveIntegration,
|
|
14429
|
+
googleDocsIntegration,
|
|
14430
|
+
googleContactsIntegration,
|
|
14385
14431
|
googleClassroomIntegration,
|
|
14432
|
+
googleChatIntegration,
|
|
14433
|
+
googleCalendarIntegration,
|
|
14434
|
+
googleAnalyticsIntegration,
|
|
14386
14435
|
googleAdsIntegration,
|
|
14387
14436
|
gocardlessIntegration,
|
|
14388
|
-
gmeetIntegration,
|
|
14389
14437
|
gmailIntegration,
|
|
14390
|
-
gkeepIntegration,
|
|
14391
14438
|
gitlabIntegration,
|
|
14392
14439
|
githubIntegration,
|
|
14393
14440
|
genericOAuthIntegration,
|
|
@@ -14395,13 +14442,7 @@ export {
|
|
|
14395
14442
|
generateState,
|
|
14396
14443
|
generateCodeVerifier,
|
|
14397
14444
|
generateCodeChallenge,
|
|
14398
|
-
gdriveIntegration,
|
|
14399
|
-
gdocsIntegration,
|
|
14400
|
-
gcontactsIntegration,
|
|
14401
|
-
gchatIntegration,
|
|
14402
|
-
gcalIntegration,
|
|
14403
14445
|
garminIntegration,
|
|
14404
|
-
ga4Integration,
|
|
14405
14446
|
fromNodeHeaders,
|
|
14406
14447
|
freshserviceIntegration,
|
|
14407
14448
|
freeagentIntegration,
|