integrate-sdk 0.8.28 → 0.8.30-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/adapters/auto-routes.js +397 -0
  2. package/dist/adapters/index.js +397 -0
  3. package/dist/adapters/nextjs.js +397 -0
  4. package/dist/adapters/node.js +397 -0
  5. package/dist/adapters/svelte-kit.js +397 -0
  6. package/dist/adapters/tanstack-start.js +397 -0
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +434 -1
  10. package/dist/oauth.js +397 -0
  11. package/dist/server.js +406 -0
  12. package/dist/src/client.d.ts +10 -1
  13. package/dist/src/client.d.ts.map +1 -1
  14. package/dist/src/index.d.ts +18 -0
  15. package/dist/src/index.d.ts.map +1 -1
  16. package/dist/src/integrations/airtable-client.d.ts +260 -0
  17. package/dist/src/integrations/airtable-client.d.ts.map +1 -0
  18. package/dist/src/integrations/airtable.d.ts +37 -0
  19. package/dist/src/integrations/airtable.d.ts.map +1 -0
  20. package/dist/src/integrations/gcal-client.d.ts +370 -0
  21. package/dist/src/integrations/gcal-client.d.ts.map +1 -0
  22. package/dist/src/integrations/gcal.d.ts +37 -0
  23. package/dist/src/integrations/gcal.d.ts.map +1 -0
  24. package/dist/src/integrations/linear-client.d.ts +309 -0
  25. package/dist/src/integrations/linear-client.d.ts.map +1 -0
  26. package/dist/src/integrations/linear.d.ts +37 -0
  27. package/dist/src/integrations/linear.d.ts.map +1 -0
  28. package/dist/src/integrations/outlook-client.d.ts +433 -0
  29. package/dist/src/integrations/outlook-client.d.ts.map +1 -0
  30. package/dist/src/integrations/outlook.d.ts +37 -0
  31. package/dist/src/integrations/outlook.d.ts.map +1 -0
  32. package/dist/src/integrations/slack-client.d.ts +271 -0
  33. package/dist/src/integrations/slack-client.d.ts.map +1 -0
  34. package/dist/src/integrations/slack.d.ts +37 -0
  35. package/dist/src/integrations/slack.d.ts.map +1 -0
  36. package/dist/src/integrations/stripe-client.d.ts +412 -0
  37. package/dist/src/integrations/stripe-client.d.ts.map +1 -0
  38. package/dist/src/integrations/stripe.d.ts +37 -0
  39. package/dist/src/integrations/stripe.d.ts.map +1 -0
  40. package/dist/src/integrations/todoist-client.d.ts +253 -0
  41. package/dist/src/integrations/todoist-client.d.ts.map +1 -0
  42. package/dist/src/integrations/todoist.d.ts +37 -0
  43. package/dist/src/integrations/todoist.d.ts.map +1 -0
  44. package/dist/src/integrations/vercel-client.d.ts +278 -0
  45. package/dist/src/integrations/vercel-client.d.ts.map +1 -0
  46. package/dist/src/integrations/vercel.d.ts +37 -0
  47. package/dist/src/integrations/vercel.d.ts.map +1 -0
  48. package/dist/src/integrations/zendesk-client.d.ts +395 -0
  49. package/dist/src/integrations/zendesk-client.d.ts.map +1 -0
  50. package/dist/src/integrations/zendesk.d.ts +39 -0
  51. package/dist/src/integrations/zendesk.d.ts.map +1 -0
  52. package/dist/src/server.d.ts +9 -0
  53. package/dist/src/server.d.ts.map +1 -1
  54. package/index.ts +18 -0
  55. package/package.json +2 -2
@@ -1626,6 +1626,33 @@ class MCPClientBase {
1626
1626
  if (integrationIds.includes("notion")) {
1627
1627
  this.notion = this.createIntegrationProxy("notion");
1628
1628
  }
1629
+ if (integrationIds.includes("slack")) {
1630
+ this.slack = this.createIntegrationProxy("slack");
1631
+ }
1632
+ if (integrationIds.includes("linear")) {
1633
+ this.linear = this.createIntegrationProxy("linear");
1634
+ }
1635
+ if (integrationIds.includes("vercel")) {
1636
+ this.vercel = this.createIntegrationProxy("vercel");
1637
+ }
1638
+ if (integrationIds.includes("zendesk")) {
1639
+ this.zendesk = this.createIntegrationProxy("zendesk");
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
+ }
1629
1656
  this.server = this.createServerProxy();
1630
1657
  this.initializeIntegrations();
1631
1658
  }
@@ -2300,6 +2327,358 @@ var init_notion = __esm(() => {
2300
2327
  ];
2301
2328
  });
2302
2329
 
2330
+ // ../integrations/slack.ts
2331
+ function slackIntegration(config = {}) {
2332
+ const oauth = {
2333
+ provider: "slack",
2334
+ clientId: config.clientId ?? getEnv("SLACK_CLIENT_ID"),
2335
+ clientSecret: config.clientSecret ?? getEnv("SLACK_CLIENT_SECRET"),
2336
+ scopes: config.scopes || ["chat:write", "channels:read", "users:read", "search:read", "files:write"],
2337
+ redirectUri: config.redirectUri,
2338
+ config: {
2339
+ ...config
2340
+ }
2341
+ };
2342
+ return {
2343
+ id: "slack",
2344
+ tools: [...SLACK_TOOLS],
2345
+ oauth,
2346
+ async onInit(_client) {
2347
+ console.log("Slack integration initialized");
2348
+ },
2349
+ async onAfterConnect(_client) {
2350
+ console.log("Slack integration connected");
2351
+ }
2352
+ };
2353
+ }
2354
+ var SLACK_TOOLS;
2355
+ var init_slack = __esm(() => {
2356
+ SLACK_TOOLS = [
2357
+ "slack_send_message",
2358
+ "slack_list_channels",
2359
+ "slack_get_channel",
2360
+ "slack_list_users",
2361
+ "slack_get_user",
2362
+ "slack_list_messages",
2363
+ "slack_add_reaction",
2364
+ "slack_search_messages",
2365
+ "slack_upload_file"
2366
+ ];
2367
+ });
2368
+
2369
+ // ../integrations/linear.ts
2370
+ function linearIntegration(config = {}) {
2371
+ const oauth = {
2372
+ provider: "linear",
2373
+ clientId: config.clientId ?? getEnv("LINEAR_CLIENT_ID"),
2374
+ clientSecret: config.clientSecret ?? getEnv("LINEAR_CLIENT_SECRET"),
2375
+ scopes: config.scopes || ["read", "write", "issues:create"],
2376
+ redirectUri: config.redirectUri,
2377
+ config: {
2378
+ ...config
2379
+ }
2380
+ };
2381
+ return {
2382
+ id: "linear",
2383
+ tools: [...LINEAR_TOOLS],
2384
+ oauth,
2385
+ async onInit(_client) {
2386
+ console.log("Linear integration initialized");
2387
+ },
2388
+ async onAfterConnect(_client) {
2389
+ console.log("Linear integration connected");
2390
+ }
2391
+ };
2392
+ }
2393
+ var LINEAR_TOOLS;
2394
+ var init_linear = __esm(() => {
2395
+ LINEAR_TOOLS = [
2396
+ "linear_create_issue",
2397
+ "linear_list_issues",
2398
+ "linear_get_issue",
2399
+ "linear_update_issue",
2400
+ "linear_list_projects",
2401
+ "linear_list_teams",
2402
+ "linear_add_comment",
2403
+ "linear_list_labels",
2404
+ "linear_search_issues"
2405
+ ];
2406
+ });
2407
+
2408
+ // ../integrations/vercel.ts
2409
+ function vercelIntegration(config = {}) {
2410
+ const oauth = {
2411
+ provider: "vercel",
2412
+ clientId: config.clientId ?? getEnv("VERCEL_CLIENT_ID"),
2413
+ clientSecret: config.clientSecret ?? getEnv("VERCEL_CLIENT_SECRET"),
2414
+ scopes: config.scopes || [],
2415
+ redirectUri: config.redirectUri,
2416
+ config: {
2417
+ ...config
2418
+ }
2419
+ };
2420
+ return {
2421
+ id: "vercel",
2422
+ tools: [...VERCEL_TOOLS],
2423
+ oauth,
2424
+ async onInit(_client) {
2425
+ console.log("Vercel integration initialized");
2426
+ },
2427
+ async onAfterConnect(_client) {
2428
+ console.log("Vercel integration connected");
2429
+ }
2430
+ };
2431
+ }
2432
+ var VERCEL_TOOLS;
2433
+ var init_vercel = __esm(() => {
2434
+ VERCEL_TOOLS = [
2435
+ "vercel_list_projects",
2436
+ "vercel_get_project",
2437
+ "vercel_list_deployments",
2438
+ "vercel_get_deployment",
2439
+ "vercel_create_deployment",
2440
+ "vercel_cancel_deployment",
2441
+ "vercel_list_domains",
2442
+ "vercel_list_env_vars",
2443
+ "vercel_get_deployment_logs"
2444
+ ];
2445
+ });
2446
+
2447
+ // ../integrations/zendesk.ts
2448
+ function zendeskIntegration(config = {}) {
2449
+ const oauth = {
2450
+ provider: "zendesk",
2451
+ clientId: config.clientId ?? getEnv("ZENDESK_CLIENT_ID"),
2452
+ clientSecret: config.clientSecret ?? getEnv("ZENDESK_CLIENT_SECRET"),
2453
+ scopes: config.scopes || ["read", "write"],
2454
+ redirectUri: config.redirectUri,
2455
+ config: {
2456
+ subdomain: config.subdomain ?? getEnv("ZENDESK_SUBDOMAIN"),
2457
+ ...config
2458
+ }
2459
+ };
2460
+ return {
2461
+ id: "zendesk",
2462
+ tools: [...ZENDESK_TOOLS],
2463
+ oauth,
2464
+ async onInit(_client) {
2465
+ console.log("Zendesk integration initialized");
2466
+ },
2467
+ async onAfterConnect(_client) {
2468
+ console.log("Zendesk integration connected");
2469
+ }
2470
+ };
2471
+ }
2472
+ var ZENDESK_TOOLS;
2473
+ var init_zendesk = __esm(() => {
2474
+ ZENDESK_TOOLS = [
2475
+ "zendesk_list_tickets",
2476
+ "zendesk_get_ticket",
2477
+ "zendesk_create_ticket",
2478
+ "zendesk_update_ticket",
2479
+ "zendesk_add_comment",
2480
+ "zendesk_list_users",
2481
+ "zendesk_get_user",
2482
+ "zendesk_search_tickets",
2483
+ "zendesk_list_organizations"
2484
+ ];
2485
+ });
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
+
2303
2682
  // ../integrations/generic.ts
2304
2683
  function genericOAuthIntegration(config) {
2305
2684
  const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
@@ -6797,11 +7176,18 @@ var init_ai = __esm(() => {
6797
7176
  // ../server.ts
6798
7177
  var exports_server = {};
6799
7178
  __export(exports_server, {
7179
+ zendeskIntegration: () => zendeskIntegration,
7180
+ vercelIntegration: () => vercelIntegration,
7181
+ todoistIntegration: () => todoistIntegration,
6800
7182
  toSvelteKitHandler: () => toSvelteKitHandler,
6801
7183
  toSolidStartHandler: () => toSolidStartHandler,
6802
7184
  toNextJsHandler: () => toNextJsHandler,
7185
+ stripeIntegration: () => stripeIntegration,
6803
7186
  storeCodeVerifier: () => storeCodeVerifier,
7187
+ slackIntegration: () => slackIntegration,
7188
+ outlookIntegration: () => outlookIntegration,
6804
7189
  notionIntegration: () => notionIntegration,
7190
+ linearIntegration: () => linearIntegration,
6805
7191
  handleOpenAIResponse: () => handleOpenAIResponse,
6806
7192
  handleAnthropicMessage: () => handleAnthropicMessage,
6807
7193
  gmailIntegration: () => gmailIntegration,
@@ -6812,9 +7198,11 @@ __export(exports_server, {
6812
7198
  getCodeVerifier: () => getCodeVerifier,
6813
7199
  getAnthropicTools: () => getAnthropicTools,
6814
7200
  genericOAuthIntegration: () => genericOAuthIntegration,
7201
+ gcalIntegration: () => gcalIntegration,
6815
7202
  executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
6816
7203
  createSimpleIntegration: () => createSimpleIntegration,
6817
7204
  createMCPServer: () => createMCPServer,
7205
+ airtableIntegration: () => airtableIntegration,
6818
7206
  POST: () => POST,
6819
7207
  GET: () => GET
6820
7208
  });
@@ -7332,6 +7720,15 @@ var init_server = __esm(() => {
7332
7720
  init_github();
7333
7721
  init_gmail();
7334
7722
  init_notion();
7723
+ init_slack();
7724
+ init_linear();
7725
+ init_vercel();
7726
+ init_zendesk();
7727
+ init_stripe();
7728
+ init_gcal();
7729
+ init_outlook();
7730
+ init_airtable();
7731
+ init_todoist();
7335
7732
  init_generic();
7336
7733
  init_vercel_ai();
7337
7734
  init_openai();