integrate-sdk 0.9.25-dev.0 → 0.9.26-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 (54) hide show
  1. package/dist/adapters/index.js +28 -10
  2. package/dist/adapters/solid-start.js +28 -10
  3. package/dist/adapters/svelte-kit.js +28 -10
  4. package/dist/ai/anthropic.js +11 -1
  5. package/dist/ai/google.js +11 -1
  6. package/dist/ai/index.js +11 -1
  7. package/dist/ai/openai.js +11 -1
  8. package/dist/ai/vercel-ai.js +11 -1
  9. package/dist/code-mode/executor.js +5 -1
  10. package/dist/code-mode/index.js +11 -1
  11. package/dist/code-mode/runtime-stub.d.ts +1 -1
  12. package/dist/code-mode/runtime-stub.d.ts.map +1 -1
  13. package/dist/code-mode/runtime-stub.js +5 -1
  14. package/dist/code-mode/tool-builder.d.ts.map +1 -1
  15. package/dist/code-mode/tool-builder.js +11 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +197 -10
  19. package/dist/server.js +292 -64
  20. package/dist/src/code-mode/runtime-stub.d.ts +1 -1
  21. package/dist/src/code-mode/runtime-stub.d.ts.map +1 -1
  22. package/dist/src/code-mode/tool-builder.d.ts.map +1 -1
  23. package/dist/src/integrations/excel-client.d.ts +284 -0
  24. package/dist/src/integrations/excel-client.d.ts.map +1 -0
  25. package/dist/src/integrations/excel.d.ts +22 -0
  26. package/dist/src/integrations/excel.d.ts.map +1 -0
  27. package/dist/src/integrations/gdrive-client.d.ts +264 -0
  28. package/dist/src/integrations/gdrive-client.d.ts.map +1 -0
  29. package/dist/src/integrations/gdrive.d.ts +22 -0
  30. package/dist/src/integrations/gdrive.d.ts.map +1 -0
  31. package/dist/src/integrations/onedrive-client.d.ts +47 -250
  32. package/dist/src/integrations/onedrive-client.d.ts.map +1 -1
  33. package/dist/src/integrations/onedrive.d.ts +1 -1
  34. package/dist/src/integrations/onedrive.d.ts.map +1 -1
  35. package/dist/src/integrations/powerpoint-client.d.ts +99 -0
  36. package/dist/src/integrations/powerpoint-client.d.ts.map +1 -0
  37. package/dist/src/integrations/powerpoint.d.ts +22 -0
  38. package/dist/src/integrations/powerpoint.d.ts.map +1 -0
  39. package/dist/src/integrations/whatsapp-client.d.ts +406 -211
  40. package/dist/src/integrations/whatsapp-client.d.ts.map +1 -1
  41. package/dist/src/integrations/whatsapp.d.ts +1 -1
  42. package/dist/src/integrations/whatsapp.d.ts.map +1 -1
  43. package/dist/src/integrations/word-client.d.ts +99 -0
  44. package/dist/src/integrations/word-client.d.ts.map +1 -0
  45. package/dist/src/integrations/word.d.ts +22 -0
  46. package/dist/src/integrations/word.d.ts.map +1 -0
  47. package/dist/src/integrations/youtube-client.d.ts +292 -283
  48. package/dist/src/integrations/youtube-client.d.ts.map +1 -1
  49. package/dist/src/integrations/youtube.d.ts +2 -2
  50. package/dist/src/integrations/youtube.d.ts.map +1 -1
  51. package/dist/src/server.d.ts +4 -0
  52. package/dist/src/server.d.ts.map +1 -1
  53. package/index.ts +8 -0
  54. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4504,13 +4504,28 @@ function todoistIntegration(config = {}) {
4504
4504
  var logger21 = createLogger("WhatsApp");
4505
4505
  var WHATSAPP_TOOLS = [
4506
4506
  "whatsapp_send_message",
4507
+ "whatsapp_reply_message",
4507
4508
  "whatsapp_send_template",
4508
4509
  "whatsapp_send_media",
4510
+ "whatsapp_send_reaction",
4511
+ "whatsapp_send_location",
4512
+ "whatsapp_send_contact",
4513
+ "whatsapp_send_interactive_buttons",
4514
+ "whatsapp_send_interactive_list",
4515
+ "whatsapp_mark_read",
4516
+ "whatsapp_get_media_url",
4517
+ "whatsapp_delete_media",
4509
4518
  "whatsapp_list_templates",
4519
+ "whatsapp_get_template",
4520
+ "whatsapp_create_template",
4521
+ "whatsapp_delete_template",
4510
4522
  "whatsapp_get_phone_numbers",
4523
+ "whatsapp_get_phone_number",
4524
+ "whatsapp_get_profile",
4525
+ "whatsapp_update_profile",
4511
4526
  "whatsapp_get_message_status",
4512
- "whatsapp_mark_read",
4513
- "whatsapp_get_profile"
4527
+ "whatsapp_create_qr_code",
4528
+ "whatsapp_list_qr_codes"
4514
4529
  ];
4515
4530
  function whatsappIntegration(config = {}) {
4516
4531
  const oauth = {
@@ -4672,12 +4687,7 @@ var ONEDRIVE_TOOLS = [
4672
4687
  "onedrive_upload_file",
4673
4688
  "onedrive_delete_file",
4674
4689
  "onedrive_search_files",
4675
- "onedrive_share_file",
4676
- "onedrive_word_get_content",
4677
- "onedrive_excel_get_worksheets",
4678
- "onedrive_excel_get_range",
4679
- "onedrive_excel_update_range",
4680
- "onedrive_powerpoint_get_slides"
4690
+ "onedrive_share_file"
4681
4691
  ];
4682
4692
  function onedriveIntegration(config = {}) {
4683
4693
  const oauth = {
@@ -5050,13 +5060,28 @@ var logger32 = createLogger("YouTube");
5050
5060
  var YOUTUBE_TOOLS = [
5051
5061
  "youtube_search",
5052
5062
  "youtube_get_video",
5063
+ "youtube_get_my_channel",
5064
+ "youtube_get_channel",
5065
+ "youtube_list_my_videos",
5066
+ "youtube_get_video_rating",
5053
5067
  "youtube_list_playlists",
5054
5068
  "youtube_get_playlist",
5055
5069
  "youtube_list_playlist_items",
5056
- "youtube_get_channel",
5057
5070
  "youtube_list_subscriptions",
5058
5071
  "youtube_list_comments",
5059
- "youtube_get_captions"
5072
+ "youtube_list_comment_replies",
5073
+ "youtube_get_captions",
5074
+ "youtube_rate_video",
5075
+ "youtube_subscribe",
5076
+ "youtube_unsubscribe",
5077
+ "youtube_add_comment",
5078
+ "youtube_reply_to_comment",
5079
+ "youtube_create_playlist",
5080
+ "youtube_update_playlist",
5081
+ "youtube_delete_playlist",
5082
+ "youtube_add_to_playlist",
5083
+ "youtube_remove_from_playlist",
5084
+ "youtube_update_video"
5060
5085
  ];
5061
5086
  function youtubeIntegration(config = {}) {
5062
5087
  const oauth = {
@@ -5201,6 +5226,164 @@ function createSimpleIntegration(config) {
5201
5226
  onDisconnect: config.onDisconnect
5202
5227
  };
5203
5228
  }
5229
+ // src/integrations/word.ts
5230
+ var logger35 = createLogger("Word");
5231
+ var WORD_TOOLS = [
5232
+ "word_list",
5233
+ "word_get",
5234
+ "word_create",
5235
+ "word_copy",
5236
+ "word_delete",
5237
+ "word_share"
5238
+ ];
5239
+ function wordIntegration(config = {}) {
5240
+ const oauth = {
5241
+ provider: "word",
5242
+ clientId: config.clientId ?? getEnv("WORD_CLIENT_ID"),
5243
+ clientSecret: config.clientSecret ?? getEnv("WORD_CLIENT_SECRET"),
5244
+ scopes: config.scopes,
5245
+ optionalScopes: config.optionalScopes,
5246
+ redirectUri: config.redirectUri,
5247
+ config
5248
+ };
5249
+ return {
5250
+ id: "word",
5251
+ name: "Word",
5252
+ logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/word.png",
5253
+ tools: [...WORD_TOOLS],
5254
+ oauth,
5255
+ async onInit(_client) {
5256
+ logger35.debug("Word integration initialized");
5257
+ },
5258
+ async onAfterConnect(_client) {
5259
+ logger35.debug("Word integration connected");
5260
+ }
5261
+ };
5262
+ }
5263
+
5264
+ // src/integrations/excel.ts
5265
+ var logger36 = createLogger("Excel");
5266
+ var EXCEL_TOOLS = [
5267
+ "excel_list",
5268
+ "excel_get",
5269
+ "excel_create",
5270
+ "excel_delete",
5271
+ "excel_share",
5272
+ "excel_list_worksheets",
5273
+ "excel_add_worksheet",
5274
+ "excel_delete_worksheet",
5275
+ "excel_get_range",
5276
+ "excel_update_range",
5277
+ "excel_clear_range",
5278
+ "excel_get_used_range",
5279
+ "excel_list_tables",
5280
+ "excel_create_table",
5281
+ "excel_get_table_rows",
5282
+ "excel_add_table_rows"
5283
+ ];
5284
+ function excelIntegration(config = {}) {
5285
+ const oauth = {
5286
+ provider: "excel",
5287
+ clientId: config.clientId ?? getEnv("EXCEL_CLIENT_ID"),
5288
+ clientSecret: config.clientSecret ?? getEnv("EXCEL_CLIENT_SECRET"),
5289
+ scopes: config.scopes,
5290
+ optionalScopes: config.optionalScopes,
5291
+ redirectUri: config.redirectUri,
5292
+ config
5293
+ };
5294
+ return {
5295
+ id: "excel",
5296
+ name: "Excel",
5297
+ logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/excel.png",
5298
+ tools: [...EXCEL_TOOLS],
5299
+ oauth,
5300
+ async onInit(_client) {
5301
+ logger36.debug("Excel integration initialized");
5302
+ },
5303
+ async onAfterConnect(_client) {
5304
+ logger36.debug("Excel integration connected");
5305
+ }
5306
+ };
5307
+ }
5308
+
5309
+ // src/integrations/powerpoint.ts
5310
+ var logger37 = createLogger("PowerPoint");
5311
+ var POWERPOINT_TOOLS = [
5312
+ "powerpoint_list",
5313
+ "powerpoint_get",
5314
+ "powerpoint_create",
5315
+ "powerpoint_copy",
5316
+ "powerpoint_delete",
5317
+ "powerpoint_share"
5318
+ ];
5319
+ function powerpointIntegration(config = {}) {
5320
+ const oauth = {
5321
+ provider: "powerpoint",
5322
+ clientId: config.clientId ?? getEnv("POWERPOINT_CLIENT_ID"),
5323
+ clientSecret: config.clientSecret ?? getEnv("POWERPOINT_CLIENT_SECRET"),
5324
+ scopes: config.scopes,
5325
+ optionalScopes: config.optionalScopes,
5326
+ redirectUri: config.redirectUri,
5327
+ config
5328
+ };
5329
+ return {
5330
+ id: "powerpoint",
5331
+ name: "PowerPoint",
5332
+ logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/powerpoint.png",
5333
+ tools: [...POWERPOINT_TOOLS],
5334
+ oauth,
5335
+ async onInit(_client) {
5336
+ logger37.debug("PowerPoint integration initialized");
5337
+ },
5338
+ async onAfterConnect(_client) {
5339
+ logger37.debug("PowerPoint integration connected");
5340
+ }
5341
+ };
5342
+ }
5343
+
5344
+ // src/integrations/gdrive.ts
5345
+ var logger38 = createLogger("Google Drive");
5346
+ var GDRIVE_TOOLS = [
5347
+ "gdrive_list_files",
5348
+ "gdrive_get_file",
5349
+ "gdrive_create_folder",
5350
+ "gdrive_rename_file",
5351
+ "gdrive_move_file",
5352
+ "gdrive_copy_file",
5353
+ "gdrive_delete_file",
5354
+ "gdrive_trash_file",
5355
+ "gdrive_upload_text_file",
5356
+ "gdrive_download_file",
5357
+ "gdrive_list_permissions",
5358
+ "gdrive_share_file",
5359
+ "gdrive_remove_permission",
5360
+ "gdrive_get_about"
5361
+ ];
5362
+ function gdriveIntegration(config = {}) {
5363
+ const oauth = {
5364
+ provider: "gdrive",
5365
+ clientId: config.clientId ?? getEnv("GDRIVE_CLIENT_ID"),
5366
+ clientSecret: config.clientSecret ?? getEnv("GDRIVE_CLIENT_SECRET"),
5367
+ scopes: config.scopes,
5368
+ optionalScopes: config.optionalScopes,
5369
+ redirectUri: config.redirectUri,
5370
+ config
5371
+ };
5372
+ return {
5373
+ id: "gdrive",
5374
+ name: "Google Drive",
5375
+ logoUrl: "https://wdvtnli2jn3texa6.public.blob.vercel-storage.com/google_drive.png",
5376
+ tools: [...GDRIVE_TOOLS],
5377
+ oauth,
5378
+ async onInit(_client) {
5379
+ logger38.debug("Google Drive integration initialized");
5380
+ },
5381
+ async onAfterConnect(_client) {
5382
+ logger38.debug("Google Drive integration connected");
5383
+ }
5384
+ };
5385
+ }
5386
+
5204
5387
  // index.ts
5205
5388
  var client = createMCPClient({
5206
5389
  integrations: [
@@ -5220,7 +5403,11 @@ var client = createMCPClient({
5220
5403
  calcomIntegration(),
5221
5404
  rampIntegration(),
5222
5405
  onedriveIntegration(),
5406
+ wordIntegration(),
5407
+ excelIntegration(),
5408
+ powerpointIntegration(),
5223
5409
  gdocsIntegration(),
5410
+ gdriveIntegration(),
5224
5411
  gsheetsIntegration(),
5225
5412
  gslidesIntegration(),
5226
5413
  polarIntegration(),