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
|
@@ -1638,6 +1638,21 @@ class MCPClientBase {
|
|
|
1638
1638
|
if (integrationIds.includes("zendesk")) {
|
|
1639
1639
|
this.zendesk = this.createIntegrationProxy("zendesk");
|
|
1640
1640
|
}
|
|
1641
|
+
if (integrationIds.includes("stripe")) {
|
|
1642
|
+
this.stripe = this.createIntegrationProxy("stripe");
|
|
1643
|
+
}
|
|
1644
|
+
if (integrationIds.includes("gcal")) {
|
|
1645
|
+
this.gcal = this.createIntegrationProxy("gcal");
|
|
1646
|
+
}
|
|
1647
|
+
if (integrationIds.includes("outlook")) {
|
|
1648
|
+
this.outlook = this.createIntegrationProxy("outlook");
|
|
1649
|
+
}
|
|
1650
|
+
if (integrationIds.includes("airtable")) {
|
|
1651
|
+
this.airtable = this.createIntegrationProxy("airtable");
|
|
1652
|
+
}
|
|
1653
|
+
if (integrationIds.includes("todoist")) {
|
|
1654
|
+
this.todoist = this.createIntegrationProxy("todoist");
|
|
1655
|
+
}
|
|
1641
1656
|
this.server = this.createServerProxy();
|
|
1642
1657
|
this.initializeIntegrations();
|
|
1643
1658
|
}
|
|
@@ -2469,6 +2484,616 @@ var init_zendesk = __esm(() => {
|
|
|
2469
2484
|
];
|
|
2470
2485
|
});
|
|
2471
2486
|
|
|
2487
|
+
// ../integrations/stripe.ts
|
|
2488
|
+
function stripeIntegration(config = {}) {
|
|
2489
|
+
const oauth = {
|
|
2490
|
+
provider: "stripe",
|
|
2491
|
+
clientId: config.clientId ?? getEnv("STRIPE_CLIENT_ID"),
|
|
2492
|
+
clientSecret: config.clientSecret ?? getEnv("STRIPE_CLIENT_SECRET"),
|
|
2493
|
+
scopes: config.scopes || ["read_write"],
|
|
2494
|
+
redirectUri: config.redirectUri,
|
|
2495
|
+
config: {
|
|
2496
|
+
...config
|
|
2497
|
+
}
|
|
2498
|
+
};
|
|
2499
|
+
return {
|
|
2500
|
+
id: "stripe",
|
|
2501
|
+
tools: [...STRIPE_TOOLS],
|
|
2502
|
+
oauth,
|
|
2503
|
+
async onInit(_client) {
|
|
2504
|
+
console.log("Stripe integration initialized");
|
|
2505
|
+
},
|
|
2506
|
+
async onAfterConnect(_client) {
|
|
2507
|
+
console.log("Stripe integration connected");
|
|
2508
|
+
}
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
var STRIPE_TOOLS;
|
|
2512
|
+
var init_stripe = __esm(() => {
|
|
2513
|
+
STRIPE_TOOLS = [
|
|
2514
|
+
"stripe_list_customers",
|
|
2515
|
+
"stripe_get_customer",
|
|
2516
|
+
"stripe_create_customer",
|
|
2517
|
+
"stripe_list_payments",
|
|
2518
|
+
"stripe_get_payment",
|
|
2519
|
+
"stripe_create_payment",
|
|
2520
|
+
"stripe_list_invoices",
|
|
2521
|
+
"stripe_list_subscriptions",
|
|
2522
|
+
"stripe_create_subscription"
|
|
2523
|
+
];
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2526
|
+
// ../integrations/gcal.ts
|
|
2527
|
+
function gcalIntegration(config = {}) {
|
|
2528
|
+
const oauth = {
|
|
2529
|
+
provider: "gcal",
|
|
2530
|
+
clientId: config.clientId ?? getEnv("GCAL_CLIENT_ID"),
|
|
2531
|
+
clientSecret: config.clientSecret ?? getEnv("GCAL_CLIENT_SECRET"),
|
|
2532
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/calendar"],
|
|
2533
|
+
redirectUri: config.redirectUri,
|
|
2534
|
+
config: {
|
|
2535
|
+
...config
|
|
2536
|
+
}
|
|
2537
|
+
};
|
|
2538
|
+
return {
|
|
2539
|
+
id: "gcal",
|
|
2540
|
+
tools: [...GCAL_TOOLS],
|
|
2541
|
+
oauth,
|
|
2542
|
+
async onInit(_client) {
|
|
2543
|
+
console.log("Google Calendar integration initialized");
|
|
2544
|
+
},
|
|
2545
|
+
async onAfterConnect(_client) {
|
|
2546
|
+
console.log("Google Calendar integration connected");
|
|
2547
|
+
}
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
var GCAL_TOOLS;
|
|
2551
|
+
var init_gcal = __esm(() => {
|
|
2552
|
+
GCAL_TOOLS = [
|
|
2553
|
+
"gcal_list_calendars",
|
|
2554
|
+
"gcal_get_calendar",
|
|
2555
|
+
"gcal_list_events",
|
|
2556
|
+
"gcal_get_event",
|
|
2557
|
+
"gcal_create_event",
|
|
2558
|
+
"gcal_update_event",
|
|
2559
|
+
"gcal_delete_event",
|
|
2560
|
+
"gcal_list_attendees",
|
|
2561
|
+
"gcal_quick_add"
|
|
2562
|
+
];
|
|
2563
|
+
});
|
|
2564
|
+
|
|
2565
|
+
// ../integrations/outlook.ts
|
|
2566
|
+
function outlookIntegration(config = {}) {
|
|
2567
|
+
const oauth = {
|
|
2568
|
+
provider: "outlook",
|
|
2569
|
+
clientId: config.clientId ?? getEnv("OUTLOOK_CLIENT_ID"),
|
|
2570
|
+
clientSecret: config.clientSecret ?? getEnv("OUTLOOK_CLIENT_SECRET"),
|
|
2571
|
+
scopes: config.scopes || ["Mail.Read", "Mail.Send", "Calendars.ReadWrite", "Contacts.Read"],
|
|
2572
|
+
redirectUri: config.redirectUri,
|
|
2573
|
+
config: {
|
|
2574
|
+
...config
|
|
2575
|
+
}
|
|
2576
|
+
};
|
|
2577
|
+
return {
|
|
2578
|
+
id: "outlook",
|
|
2579
|
+
tools: [...OUTLOOK_TOOLS],
|
|
2580
|
+
oauth,
|
|
2581
|
+
async onInit(_client) {
|
|
2582
|
+
console.log("Outlook integration initialized");
|
|
2583
|
+
},
|
|
2584
|
+
async onAfterConnect(_client) {
|
|
2585
|
+
console.log("Outlook integration connected");
|
|
2586
|
+
}
|
|
2587
|
+
};
|
|
2588
|
+
}
|
|
2589
|
+
var OUTLOOK_TOOLS;
|
|
2590
|
+
var init_outlook = __esm(() => {
|
|
2591
|
+
OUTLOOK_TOOLS = [
|
|
2592
|
+
"outlook_list_messages",
|
|
2593
|
+
"outlook_get_message",
|
|
2594
|
+
"outlook_send_message",
|
|
2595
|
+
"outlook_list_events",
|
|
2596
|
+
"outlook_get_event",
|
|
2597
|
+
"outlook_create_event",
|
|
2598
|
+
"outlook_list_contacts",
|
|
2599
|
+
"outlook_get_contact",
|
|
2600
|
+
"outlook_search"
|
|
2601
|
+
];
|
|
2602
|
+
});
|
|
2603
|
+
|
|
2604
|
+
// ../integrations/airtable.ts
|
|
2605
|
+
function airtableIntegration(config = {}) {
|
|
2606
|
+
const oauth = {
|
|
2607
|
+
provider: "airtable",
|
|
2608
|
+
clientId: config.clientId ?? getEnv("AIRTABLE_CLIENT_ID"),
|
|
2609
|
+
clientSecret: config.clientSecret ?? getEnv("AIRTABLE_CLIENT_SECRET"),
|
|
2610
|
+
scopes: config.scopes || ["data.records:read", "data.records:write", "schema.bases:read"],
|
|
2611
|
+
redirectUri: config.redirectUri,
|
|
2612
|
+
config: {
|
|
2613
|
+
...config
|
|
2614
|
+
}
|
|
2615
|
+
};
|
|
2616
|
+
return {
|
|
2617
|
+
id: "airtable",
|
|
2618
|
+
tools: [...AIRTABLE_TOOLS],
|
|
2619
|
+
oauth,
|
|
2620
|
+
async onInit(_client) {
|
|
2621
|
+
console.log("Airtable integration initialized");
|
|
2622
|
+
},
|
|
2623
|
+
async onAfterConnect(_client) {
|
|
2624
|
+
console.log("Airtable integration connected");
|
|
2625
|
+
}
|
|
2626
|
+
};
|
|
2627
|
+
}
|
|
2628
|
+
var AIRTABLE_TOOLS;
|
|
2629
|
+
var init_airtable = __esm(() => {
|
|
2630
|
+
AIRTABLE_TOOLS = [
|
|
2631
|
+
"airtable_list_bases",
|
|
2632
|
+
"airtable_get_base",
|
|
2633
|
+
"airtable_list_tables",
|
|
2634
|
+
"airtable_get_table",
|
|
2635
|
+
"airtable_list_records",
|
|
2636
|
+
"airtable_get_record",
|
|
2637
|
+
"airtable_create_record",
|
|
2638
|
+
"airtable_update_record",
|
|
2639
|
+
"airtable_search_records"
|
|
2640
|
+
];
|
|
2641
|
+
});
|
|
2642
|
+
|
|
2643
|
+
// ../integrations/todoist.ts
|
|
2644
|
+
function todoistIntegration(config = {}) {
|
|
2645
|
+
const oauth = {
|
|
2646
|
+
provider: "todoist",
|
|
2647
|
+
clientId: config.clientId ?? getEnv("TODOIST_CLIENT_ID"),
|
|
2648
|
+
clientSecret: config.clientSecret ?? getEnv("TODOIST_CLIENT_SECRET"),
|
|
2649
|
+
scopes: config.scopes || ["data:read_write"],
|
|
2650
|
+
redirectUri: config.redirectUri,
|
|
2651
|
+
config: {
|
|
2652
|
+
...config
|
|
2653
|
+
}
|
|
2654
|
+
};
|
|
2655
|
+
return {
|
|
2656
|
+
id: "todoist",
|
|
2657
|
+
tools: [...TODOIST_TOOLS],
|
|
2658
|
+
oauth,
|
|
2659
|
+
async onInit(_client) {
|
|
2660
|
+
console.log("Todoist integration initialized");
|
|
2661
|
+
},
|
|
2662
|
+
async onAfterConnect(_client) {
|
|
2663
|
+
console.log("Todoist integration connected");
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
}
|
|
2667
|
+
var TODOIST_TOOLS;
|
|
2668
|
+
var init_todoist = __esm(() => {
|
|
2669
|
+
TODOIST_TOOLS = [
|
|
2670
|
+
"todoist_list_projects",
|
|
2671
|
+
"todoist_get_project",
|
|
2672
|
+
"todoist_create_project",
|
|
2673
|
+
"todoist_list_tasks",
|
|
2674
|
+
"todoist_get_task",
|
|
2675
|
+
"todoist_create_task",
|
|
2676
|
+
"todoist_complete_task",
|
|
2677
|
+
"todoist_list_labels",
|
|
2678
|
+
"todoist_create_label"
|
|
2679
|
+
];
|
|
2680
|
+
});
|
|
2681
|
+
|
|
2682
|
+
// ../integrations/whatsapp.ts
|
|
2683
|
+
function whatsappIntegration(config = {}) {
|
|
2684
|
+
const oauth = {
|
|
2685
|
+
provider: "whatsapp",
|
|
2686
|
+
clientId: config.clientId ?? getEnv("WHATSAPP_CLIENT_ID"),
|
|
2687
|
+
clientSecret: config.clientSecret ?? getEnv("WHATSAPP_CLIENT_SECRET"),
|
|
2688
|
+
scopes: config.scopes || ["business_management", "whatsapp_business_messaging", "whatsapp_business_management"],
|
|
2689
|
+
redirectUri: config.redirectUri,
|
|
2690
|
+
config: {
|
|
2691
|
+
businessAccountId: config.businessAccountId,
|
|
2692
|
+
...config
|
|
2693
|
+
}
|
|
2694
|
+
};
|
|
2695
|
+
return {
|
|
2696
|
+
id: "whatsapp",
|
|
2697
|
+
tools: [...WHATSAPP_TOOLS],
|
|
2698
|
+
oauth,
|
|
2699
|
+
async onInit(_client) {
|
|
2700
|
+
console.log("WhatsApp Business integration initialized");
|
|
2701
|
+
},
|
|
2702
|
+
async onAfterConnect(_client) {
|
|
2703
|
+
console.log("WhatsApp Business integration connected");
|
|
2704
|
+
}
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
var WHATSAPP_TOOLS;
|
|
2708
|
+
var init_whatsapp = __esm(() => {
|
|
2709
|
+
WHATSAPP_TOOLS = [
|
|
2710
|
+
"whatsapp_send_message",
|
|
2711
|
+
"whatsapp_send_template",
|
|
2712
|
+
"whatsapp_send_media",
|
|
2713
|
+
"whatsapp_list_templates",
|
|
2714
|
+
"whatsapp_get_phone_numbers",
|
|
2715
|
+
"whatsapp_get_message_status",
|
|
2716
|
+
"whatsapp_mark_read",
|
|
2717
|
+
"whatsapp_get_profile"
|
|
2718
|
+
];
|
|
2719
|
+
});
|
|
2720
|
+
|
|
2721
|
+
// ../integrations/calcom.ts
|
|
2722
|
+
function calcomIntegration(config = {}) {
|
|
2723
|
+
const oauth = {
|
|
2724
|
+
provider: "calcom",
|
|
2725
|
+
clientId: config.clientId ?? getEnv("CALCOM_CLIENT_ID"),
|
|
2726
|
+
clientSecret: config.clientSecret ?? getEnv("CALCOM_CLIENT_SECRET"),
|
|
2727
|
+
scopes: config.scopes || ["read:bookings", "write:bookings", "read:event-types", "read:schedules"],
|
|
2728
|
+
redirectUri: config.redirectUri,
|
|
2729
|
+
config: {
|
|
2730
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.cal.com/v1",
|
|
2731
|
+
...config
|
|
2732
|
+
}
|
|
2733
|
+
};
|
|
2734
|
+
return {
|
|
2735
|
+
id: "calcom",
|
|
2736
|
+
tools: [...CALCOM_TOOLS],
|
|
2737
|
+
oauth,
|
|
2738
|
+
async onInit(_client) {
|
|
2739
|
+
console.log("Cal.com integration initialized");
|
|
2740
|
+
},
|
|
2741
|
+
async onAfterConnect(_client) {
|
|
2742
|
+
console.log("Cal.com integration connected");
|
|
2743
|
+
}
|
|
2744
|
+
};
|
|
2745
|
+
}
|
|
2746
|
+
var CALCOM_TOOLS;
|
|
2747
|
+
var init_calcom = __esm(() => {
|
|
2748
|
+
CALCOM_TOOLS = [
|
|
2749
|
+
"calcom_list_bookings",
|
|
2750
|
+
"calcom_get_booking",
|
|
2751
|
+
"calcom_create_booking",
|
|
2752
|
+
"calcom_cancel_booking",
|
|
2753
|
+
"calcom_reschedule_booking",
|
|
2754
|
+
"calcom_list_event_types",
|
|
2755
|
+
"calcom_get_availability",
|
|
2756
|
+
"calcom_list_schedules",
|
|
2757
|
+
"calcom_get_me"
|
|
2758
|
+
];
|
|
2759
|
+
});
|
|
2760
|
+
|
|
2761
|
+
// ../integrations/ramp.ts
|
|
2762
|
+
function rampIntegration(config = {}) {
|
|
2763
|
+
const oauth = {
|
|
2764
|
+
provider: "ramp",
|
|
2765
|
+
clientId: config.clientId ?? getEnv("RAMP_CLIENT_ID"),
|
|
2766
|
+
clientSecret: config.clientSecret ?? getEnv("RAMP_CLIENT_SECRET"),
|
|
2767
|
+
scopes: config.scopes || ["transactions:read", "cards:read", "users:read"],
|
|
2768
|
+
redirectUri: config.redirectUri,
|
|
2769
|
+
config: {
|
|
2770
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.ramp.com/v1",
|
|
2771
|
+
...config
|
|
2772
|
+
}
|
|
2773
|
+
};
|
|
2774
|
+
return {
|
|
2775
|
+
id: "ramp",
|
|
2776
|
+
tools: [...RAMP_TOOLS],
|
|
2777
|
+
oauth,
|
|
2778
|
+
async onInit(_client) {
|
|
2779
|
+
console.log("Ramp integration initialized");
|
|
2780
|
+
},
|
|
2781
|
+
async onAfterConnect(_client) {
|
|
2782
|
+
console.log("Ramp integration connected");
|
|
2783
|
+
}
|
|
2784
|
+
};
|
|
2785
|
+
}
|
|
2786
|
+
var RAMP_TOOLS;
|
|
2787
|
+
var init_ramp = __esm(() => {
|
|
2788
|
+
RAMP_TOOLS = [
|
|
2789
|
+
"ramp_list_transactions",
|
|
2790
|
+
"ramp_get_transaction",
|
|
2791
|
+
"ramp_list_cards",
|
|
2792
|
+
"ramp_get_card",
|
|
2793
|
+
"ramp_list_users",
|
|
2794
|
+
"ramp_get_user",
|
|
2795
|
+
"ramp_list_departments",
|
|
2796
|
+
"ramp_list_reimbursements",
|
|
2797
|
+
"ramp_get_spend_limits"
|
|
2798
|
+
];
|
|
2799
|
+
});
|
|
2800
|
+
|
|
2801
|
+
// ../integrations/onedrive.ts
|
|
2802
|
+
function onedriveIntegration(config = {}) {
|
|
2803
|
+
const oauth = {
|
|
2804
|
+
provider: "onedrive",
|
|
2805
|
+
clientId: config.clientId ?? getEnv("ONEDRIVE_CLIENT_ID"),
|
|
2806
|
+
clientSecret: config.clientSecret ?? getEnv("ONEDRIVE_CLIENT_SECRET"),
|
|
2807
|
+
scopes: config.scopes || ["Files.Read", "Files.ReadWrite", "offline_access"],
|
|
2808
|
+
redirectUri: config.redirectUri,
|
|
2809
|
+
config: {
|
|
2810
|
+
...config
|
|
2811
|
+
}
|
|
2812
|
+
};
|
|
2813
|
+
return {
|
|
2814
|
+
id: "onedrive",
|
|
2815
|
+
tools: [...ONEDRIVE_TOOLS],
|
|
2816
|
+
oauth,
|
|
2817
|
+
async onInit(_client) {
|
|
2818
|
+
console.log("OneDrive integration initialized");
|
|
2819
|
+
},
|
|
2820
|
+
async onAfterConnect(_client) {
|
|
2821
|
+
console.log("OneDrive integration connected");
|
|
2822
|
+
}
|
|
2823
|
+
};
|
|
2824
|
+
}
|
|
2825
|
+
var ONEDRIVE_TOOLS;
|
|
2826
|
+
var init_onedrive = __esm(() => {
|
|
2827
|
+
ONEDRIVE_TOOLS = [
|
|
2828
|
+
"onedrive_list_files",
|
|
2829
|
+
"onedrive_get_file",
|
|
2830
|
+
"onedrive_download_file",
|
|
2831
|
+
"onedrive_upload_file",
|
|
2832
|
+
"onedrive_delete_file",
|
|
2833
|
+
"onedrive_search_files",
|
|
2834
|
+
"onedrive_share_file",
|
|
2835
|
+
"onedrive_word_get_content",
|
|
2836
|
+
"onedrive_excel_get_worksheets",
|
|
2837
|
+
"onedrive_excel_get_range",
|
|
2838
|
+
"onedrive_excel_update_range",
|
|
2839
|
+
"onedrive_powerpoint_get_slides"
|
|
2840
|
+
];
|
|
2841
|
+
});
|
|
2842
|
+
|
|
2843
|
+
// ../integrations/gworkspace.ts
|
|
2844
|
+
function gworkspaceIntegration(config = {}) {
|
|
2845
|
+
const oauth = {
|
|
2846
|
+
provider: "gworkspace",
|
|
2847
|
+
clientId: config.clientId ?? getEnv("GWORKSPACE_CLIENT_ID"),
|
|
2848
|
+
clientSecret: config.clientSecret ?? getEnv("GWORKSPACE_CLIENT_SECRET"),
|
|
2849
|
+
scopes: config.scopes || [
|
|
2850
|
+
"https://www.googleapis.com/auth/spreadsheets",
|
|
2851
|
+
"https://www.googleapis.com/auth/documents",
|
|
2852
|
+
"https://www.googleapis.com/auth/presentations",
|
|
2853
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
|
2854
|
+
],
|
|
2855
|
+
redirectUri: config.redirectUri,
|
|
2856
|
+
config: {
|
|
2857
|
+
...config
|
|
2858
|
+
}
|
|
2859
|
+
};
|
|
2860
|
+
return {
|
|
2861
|
+
id: "gworkspace",
|
|
2862
|
+
tools: [...GWORKSPACE_TOOLS],
|
|
2863
|
+
oauth,
|
|
2864
|
+
async onInit(_client) {
|
|
2865
|
+
console.log("Google Workspace integration initialized");
|
|
2866
|
+
},
|
|
2867
|
+
async onAfterConnect(_client) {
|
|
2868
|
+
console.log("Google Workspace integration connected");
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
var GWORKSPACE_TOOLS;
|
|
2873
|
+
var init_gworkspace = __esm(() => {
|
|
2874
|
+
GWORKSPACE_TOOLS = [
|
|
2875
|
+
"gworkspace_sheets_list",
|
|
2876
|
+
"gworkspace_sheets_get",
|
|
2877
|
+
"gworkspace_sheets_get_values",
|
|
2878
|
+
"gworkspace_sheets_update_values",
|
|
2879
|
+
"gworkspace_sheets_create",
|
|
2880
|
+
"gworkspace_docs_list",
|
|
2881
|
+
"gworkspace_docs_get",
|
|
2882
|
+
"gworkspace_docs_create",
|
|
2883
|
+
"gworkspace_slides_list",
|
|
2884
|
+
"gworkspace_slides_get",
|
|
2885
|
+
"gworkspace_slides_get_page",
|
|
2886
|
+
"gworkspace_slides_create"
|
|
2887
|
+
];
|
|
2888
|
+
});
|
|
2889
|
+
|
|
2890
|
+
// ../integrations/polar.ts
|
|
2891
|
+
function polarIntegration(config = {}) {
|
|
2892
|
+
const oauth = {
|
|
2893
|
+
provider: "polar",
|
|
2894
|
+
clientId: config.clientId ?? getEnv("POLAR_CLIENT_ID"),
|
|
2895
|
+
clientSecret: config.clientSecret ?? getEnv("POLAR_CLIENT_SECRET"),
|
|
2896
|
+
scopes: config.scopes || ["products:read", "subscriptions:read", "customers:read", "orders:read", "benefits:read"],
|
|
2897
|
+
redirectUri: config.redirectUri,
|
|
2898
|
+
config: {
|
|
2899
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh",
|
|
2900
|
+
...config
|
|
2901
|
+
}
|
|
2902
|
+
};
|
|
2903
|
+
return {
|
|
2904
|
+
id: "polar",
|
|
2905
|
+
tools: [...POLAR_TOOLS],
|
|
2906
|
+
oauth,
|
|
2907
|
+
async onInit(_client) {
|
|
2908
|
+
console.log("Polar integration initialized");
|
|
2909
|
+
},
|
|
2910
|
+
async onAfterConnect(_client) {
|
|
2911
|
+
console.log("Polar integration connected");
|
|
2912
|
+
}
|
|
2913
|
+
};
|
|
2914
|
+
}
|
|
2915
|
+
var POLAR_TOOLS;
|
|
2916
|
+
var init_polar = __esm(() => {
|
|
2917
|
+
POLAR_TOOLS = [
|
|
2918
|
+
"polar_list_products",
|
|
2919
|
+
"polar_get_product",
|
|
2920
|
+
"polar_list_subscriptions",
|
|
2921
|
+
"polar_get_subscription",
|
|
2922
|
+
"polar_list_customers",
|
|
2923
|
+
"polar_get_customer",
|
|
2924
|
+
"polar_list_orders",
|
|
2925
|
+
"polar_get_order",
|
|
2926
|
+
"polar_list_benefits"
|
|
2927
|
+
];
|
|
2928
|
+
});
|
|
2929
|
+
|
|
2930
|
+
// ../integrations/figma.ts
|
|
2931
|
+
function figmaIntegration(config = {}) {
|
|
2932
|
+
const oauth = {
|
|
2933
|
+
provider: "figma",
|
|
2934
|
+
clientId: config.clientId ?? getEnv("FIGMA_CLIENT_ID"),
|
|
2935
|
+
clientSecret: config.clientSecret ?? getEnv("FIGMA_CLIENT_SECRET"),
|
|
2936
|
+
scopes: config.scopes || ["files:read", "file_comments:write"],
|
|
2937
|
+
redirectUri: config.redirectUri,
|
|
2938
|
+
config: {
|
|
2939
|
+
...config
|
|
2940
|
+
}
|
|
2941
|
+
};
|
|
2942
|
+
return {
|
|
2943
|
+
id: "figma",
|
|
2944
|
+
tools: [...FIGMA_TOOLS],
|
|
2945
|
+
oauth,
|
|
2946
|
+
async onInit(_client) {
|
|
2947
|
+
console.log("Figma integration initialized");
|
|
2948
|
+
},
|
|
2949
|
+
async onAfterConnect(_client) {
|
|
2950
|
+
console.log("Figma integration connected");
|
|
2951
|
+
}
|
|
2952
|
+
};
|
|
2953
|
+
}
|
|
2954
|
+
var FIGMA_TOOLS;
|
|
2955
|
+
var init_figma = __esm(() => {
|
|
2956
|
+
FIGMA_TOOLS = [
|
|
2957
|
+
"figma_get_file",
|
|
2958
|
+
"figma_get_file_nodes",
|
|
2959
|
+
"figma_get_images",
|
|
2960
|
+
"figma_get_comments",
|
|
2961
|
+
"figma_post_comment",
|
|
2962
|
+
"figma_list_projects",
|
|
2963
|
+
"figma_get_project_files",
|
|
2964
|
+
"figma_get_file_versions",
|
|
2965
|
+
"figma_get_team_components"
|
|
2966
|
+
];
|
|
2967
|
+
});
|
|
2968
|
+
|
|
2969
|
+
// ../integrations/intercom.ts
|
|
2970
|
+
function intercomIntegration(config = {}) {
|
|
2971
|
+
const oauth = {
|
|
2972
|
+
provider: "intercom",
|
|
2973
|
+
clientId: config.clientId ?? getEnv("INTERCOM_CLIENT_ID"),
|
|
2974
|
+
clientSecret: config.clientSecret ?? getEnv("INTERCOM_CLIENT_SECRET"),
|
|
2975
|
+
scopes: config.scopes || [],
|
|
2976
|
+
redirectUri: config.redirectUri,
|
|
2977
|
+
config: {
|
|
2978
|
+
...config
|
|
2979
|
+
}
|
|
2980
|
+
};
|
|
2981
|
+
return {
|
|
2982
|
+
id: "intercom",
|
|
2983
|
+
tools: [...INTERCOM_TOOLS],
|
|
2984
|
+
oauth,
|
|
2985
|
+
async onInit(_client) {
|
|
2986
|
+
console.log("Intercom integration initialized");
|
|
2987
|
+
},
|
|
2988
|
+
async onAfterConnect(_client) {
|
|
2989
|
+
console.log("Intercom integration connected");
|
|
2990
|
+
}
|
|
2991
|
+
};
|
|
2992
|
+
}
|
|
2993
|
+
var INTERCOM_TOOLS;
|
|
2994
|
+
var init_intercom = __esm(() => {
|
|
2995
|
+
INTERCOM_TOOLS = [
|
|
2996
|
+
"intercom_list_contacts",
|
|
2997
|
+
"intercom_get_contact",
|
|
2998
|
+
"intercom_create_contact",
|
|
2999
|
+
"intercom_list_conversations",
|
|
3000
|
+
"intercom_get_conversation",
|
|
3001
|
+
"intercom_reply_conversation",
|
|
3002
|
+
"intercom_list_companies",
|
|
3003
|
+
"intercom_get_company",
|
|
3004
|
+
"intercom_search_contacts"
|
|
3005
|
+
];
|
|
3006
|
+
});
|
|
3007
|
+
|
|
3008
|
+
// ../integrations/hubspot.ts
|
|
3009
|
+
function hubspotIntegration(config = {}) {
|
|
3010
|
+
const oauth = {
|
|
3011
|
+
provider: "hubspot",
|
|
3012
|
+
clientId: config.clientId ?? getEnv("HUBSPOT_CLIENT_ID"),
|
|
3013
|
+
clientSecret: config.clientSecret ?? getEnv("HUBSPOT_CLIENT_SECRET"),
|
|
3014
|
+
scopes: config.scopes || [
|
|
3015
|
+
"crm.objects.contacts.read",
|
|
3016
|
+
"crm.objects.contacts.write",
|
|
3017
|
+
"crm.objects.companies.read",
|
|
3018
|
+
"crm.objects.companies.write",
|
|
3019
|
+
"crm.objects.deals.read",
|
|
3020
|
+
"crm.objects.deals.write",
|
|
3021
|
+
"tickets"
|
|
3022
|
+
],
|
|
3023
|
+
redirectUri: config.redirectUri,
|
|
3024
|
+
config: {
|
|
3025
|
+
...config
|
|
3026
|
+
}
|
|
3027
|
+
};
|
|
3028
|
+
return {
|
|
3029
|
+
id: "hubspot",
|
|
3030
|
+
tools: [...HUBSPOT_TOOLS],
|
|
3031
|
+
oauth,
|
|
3032
|
+
async onInit(_client) {
|
|
3033
|
+
console.log("HubSpot integration initialized");
|
|
3034
|
+
},
|
|
3035
|
+
async onAfterConnect(_client) {
|
|
3036
|
+
console.log("HubSpot integration connected");
|
|
3037
|
+
}
|
|
3038
|
+
};
|
|
3039
|
+
}
|
|
3040
|
+
var HUBSPOT_TOOLS;
|
|
3041
|
+
var init_hubspot = __esm(() => {
|
|
3042
|
+
HUBSPOT_TOOLS = [
|
|
3043
|
+
"hubspot_list_contacts",
|
|
3044
|
+
"hubspot_get_contact",
|
|
3045
|
+
"hubspot_create_contact",
|
|
3046
|
+
"hubspot_update_contact",
|
|
3047
|
+
"hubspot_list_companies",
|
|
3048
|
+
"hubspot_get_company",
|
|
3049
|
+
"hubspot_create_company",
|
|
3050
|
+
"hubspot_list_deals",
|
|
3051
|
+
"hubspot_get_deal",
|
|
3052
|
+
"hubspot_create_deal",
|
|
3053
|
+
"hubspot_list_tickets",
|
|
3054
|
+
"hubspot_get_ticket"
|
|
3055
|
+
];
|
|
3056
|
+
});
|
|
3057
|
+
|
|
3058
|
+
// ../integrations/youtube.ts
|
|
3059
|
+
function youtubeIntegration(config = {}) {
|
|
3060
|
+
const oauth = {
|
|
3061
|
+
provider: "youtube",
|
|
3062
|
+
clientId: config.clientId ?? getEnv("YOUTUBE_CLIENT_ID"),
|
|
3063
|
+
clientSecret: config.clientSecret ?? getEnv("YOUTUBE_CLIENT_SECRET"),
|
|
3064
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/youtube.readonly"],
|
|
3065
|
+
redirectUri: config.redirectUri,
|
|
3066
|
+
config: {
|
|
3067
|
+
...config
|
|
3068
|
+
}
|
|
3069
|
+
};
|
|
3070
|
+
return {
|
|
3071
|
+
id: "youtube",
|
|
3072
|
+
tools: [...YOUTUBE_TOOLS],
|
|
3073
|
+
oauth,
|
|
3074
|
+
async onInit(_client) {
|
|
3075
|
+
console.log("YouTube integration initialized");
|
|
3076
|
+
},
|
|
3077
|
+
async onAfterConnect(_client) {
|
|
3078
|
+
console.log("YouTube integration connected");
|
|
3079
|
+
}
|
|
3080
|
+
};
|
|
3081
|
+
}
|
|
3082
|
+
var YOUTUBE_TOOLS;
|
|
3083
|
+
var init_youtube = __esm(() => {
|
|
3084
|
+
YOUTUBE_TOOLS = [
|
|
3085
|
+
"youtube_search",
|
|
3086
|
+
"youtube_get_video",
|
|
3087
|
+
"youtube_list_playlists",
|
|
3088
|
+
"youtube_get_playlist",
|
|
3089
|
+
"youtube_list_playlist_items",
|
|
3090
|
+
"youtube_get_channel",
|
|
3091
|
+
"youtube_list_subscriptions",
|
|
3092
|
+
"youtube_list_comments",
|
|
3093
|
+
"youtube_get_captions"
|
|
3094
|
+
];
|
|
3095
|
+
});
|
|
3096
|
+
|
|
2472
3097
|
// ../integrations/generic.ts
|
|
2473
3098
|
function genericOAuthIntegration(config) {
|
|
2474
3099
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -6967,16 +7592,27 @@ var init_ai = __esm(() => {
|
|
|
6967
7592
|
var exports_server = {};
|
|
6968
7593
|
__export(exports_server, {
|
|
6969
7594
|
zendeskIntegration: () => zendeskIntegration,
|
|
7595
|
+
youtubeIntegration: () => youtubeIntegration,
|
|
7596
|
+
whatsappIntegration: () => whatsappIntegration,
|
|
6970
7597
|
vercelIntegration: () => vercelIntegration,
|
|
7598
|
+
todoistIntegration: () => todoistIntegration,
|
|
6971
7599
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
6972
7600
|
toSolidStartHandler: () => toSolidStartHandler,
|
|
6973
7601
|
toNextJsHandler: () => toNextJsHandler,
|
|
7602
|
+
stripeIntegration: () => stripeIntegration,
|
|
6974
7603
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
6975
7604
|
slackIntegration: () => slackIntegration,
|
|
7605
|
+
rampIntegration: () => rampIntegration,
|
|
7606
|
+
polarIntegration: () => polarIntegration,
|
|
7607
|
+
outlookIntegration: () => outlookIntegration,
|
|
7608
|
+
onedriveIntegration: () => onedriveIntegration,
|
|
6976
7609
|
notionIntegration: () => notionIntegration,
|
|
6977
7610
|
linearIntegration: () => linearIntegration,
|
|
7611
|
+
intercomIntegration: () => intercomIntegration,
|
|
7612
|
+
hubspotIntegration: () => hubspotIntegration,
|
|
6978
7613
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
6979
7614
|
handleAnthropicMessage: () => handleAnthropicMessage,
|
|
7615
|
+
gworkspaceIntegration: () => gworkspaceIntegration,
|
|
6980
7616
|
gmailIntegration: () => gmailIntegration,
|
|
6981
7617
|
githubIntegration: () => githubIntegration,
|
|
6982
7618
|
getVercelAITools: () => getVercelAITools,
|
|
@@ -6985,9 +7621,13 @@ __export(exports_server, {
|
|
|
6985
7621
|
getCodeVerifier: () => getCodeVerifier,
|
|
6986
7622
|
getAnthropicTools: () => getAnthropicTools,
|
|
6987
7623
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7624
|
+
gcalIntegration: () => gcalIntegration,
|
|
7625
|
+
figmaIntegration: () => figmaIntegration,
|
|
6988
7626
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
6989
7627
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
6990
7628
|
createMCPServer: () => createMCPServer,
|
|
7629
|
+
calcomIntegration: () => calcomIntegration,
|
|
7630
|
+
airtableIntegration: () => airtableIntegration,
|
|
6991
7631
|
POST: () => POST,
|
|
6992
7632
|
GET: () => GET
|
|
6993
7633
|
});
|
|
@@ -7509,6 +8149,21 @@ var init_server = __esm(() => {
|
|
|
7509
8149
|
init_linear();
|
|
7510
8150
|
init_vercel();
|
|
7511
8151
|
init_zendesk();
|
|
8152
|
+
init_stripe();
|
|
8153
|
+
init_gcal();
|
|
8154
|
+
init_outlook();
|
|
8155
|
+
init_airtable();
|
|
8156
|
+
init_todoist();
|
|
8157
|
+
init_whatsapp();
|
|
8158
|
+
init_calcom();
|
|
8159
|
+
init_ramp();
|
|
8160
|
+
init_onedrive();
|
|
8161
|
+
init_gworkspace();
|
|
8162
|
+
init_polar();
|
|
8163
|
+
init_figma();
|
|
8164
|
+
init_intercom();
|
|
8165
|
+
init_hubspot();
|
|
8166
|
+
init_youtube();
|
|
7512
8167
|
init_generic();
|
|
7513
8168
|
init_vercel_ai();
|
|
7514
8169
|
init_openai();
|