integrate-sdk 0.8.30-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.
Files changed (56) hide show
  1. package/dist/adapters/auto-routes.js +435 -0
  2. package/dist/adapters/index.js +435 -0
  3. package/dist/adapters/nextjs.js +435 -0
  4. package/dist/adapters/node.js +435 -0
  5. package/dist/adapters/svelte-kit.js +435 -0
  6. package/dist/adapters/tanstack-start.js +435 -0
  7. package/dist/index.js +455 -0
  8. package/dist/oauth.js +435 -0
  9. package/dist/server.js +445 -0
  10. package/dist/src/client.d.ts +11 -1
  11. package/dist/src/client.d.ts.map +1 -1
  12. package/dist/src/index.d.ts +20 -0
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/integrations/calcom-client.d.ts +355 -0
  15. package/dist/src/integrations/calcom-client.d.ts.map +1 -0
  16. package/dist/src/integrations/calcom.d.ts +39 -0
  17. package/dist/src/integrations/calcom.d.ts.map +1 -0
  18. package/dist/src/integrations/figma-client.d.ts +327 -0
  19. package/dist/src/integrations/figma-client.d.ts.map +1 -0
  20. package/dist/src/integrations/figma.d.ts +37 -0
  21. package/dist/src/integrations/figma.d.ts.map +1 -0
  22. package/dist/src/integrations/gworkspace-client.d.ts +392 -0
  23. package/dist/src/integrations/gworkspace-client.d.ts.map +1 -0
  24. package/dist/src/integrations/gworkspace.d.ts +37 -0
  25. package/dist/src/integrations/gworkspace.d.ts.map +1 -0
  26. package/dist/src/integrations/hubspot-client.d.ts +367 -0
  27. package/dist/src/integrations/hubspot-client.d.ts.map +1 -0
  28. package/dist/src/integrations/hubspot.d.ts +37 -0
  29. package/dist/src/integrations/hubspot.d.ts.map +1 -0
  30. package/dist/src/integrations/intercom-client.d.ts +414 -0
  31. package/dist/src/integrations/intercom-client.d.ts.map +1 -0
  32. package/dist/src/integrations/intercom.d.ts +37 -0
  33. package/dist/src/integrations/intercom.d.ts.map +1 -0
  34. package/dist/src/integrations/onedrive-client.d.ts +338 -0
  35. package/dist/src/integrations/onedrive-client.d.ts.map +1 -0
  36. package/dist/src/integrations/onedrive.d.ts +37 -0
  37. package/dist/src/integrations/onedrive.d.ts.map +1 -0
  38. package/dist/src/integrations/polar-client.d.ts +297 -0
  39. package/dist/src/integrations/polar-client.d.ts.map +1 -0
  40. package/dist/src/integrations/polar.d.ts +39 -0
  41. package/dist/src/integrations/polar.d.ts.map +1 -0
  42. package/dist/src/integrations/ramp-client.d.ts +341 -0
  43. package/dist/src/integrations/ramp-client.d.ts.map +1 -0
  44. package/dist/src/integrations/ramp.d.ts +39 -0
  45. package/dist/src/integrations/ramp.d.ts.map +1 -0
  46. package/dist/src/integrations/whatsapp-client.d.ts +320 -0
  47. package/dist/src/integrations/whatsapp-client.d.ts.map +1 -0
  48. package/dist/src/integrations/whatsapp.d.ts +39 -0
  49. package/dist/src/integrations/whatsapp.d.ts.map +1 -0
  50. package/dist/src/integrations/youtube-client.d.ts +459 -0
  51. package/dist/src/integrations/youtube-client.d.ts.map +1 -0
  52. package/dist/src/integrations/youtube.d.ts +37 -0
  53. package/dist/src/integrations/youtube.d.ts.map +1 -0
  54. package/dist/src/server.d.ts +10 -0
  55. package/dist/src/server.d.ts.map +1 -1
  56. package/package.json +1 -1
@@ -2679,6 +2679,421 @@ var init_todoist = __esm(() => {
2679
2679
  ];
2680
2680
  });
2681
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
+
2682
3097
  // ../integrations/generic.ts
2683
3098
  function genericOAuthIntegration(config) {
2684
3099
  const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
@@ -7177,6 +7592,8 @@ var init_ai = __esm(() => {
7177
7592
  var exports_server = {};
7178
7593
  __export(exports_server, {
7179
7594
  zendeskIntegration: () => zendeskIntegration,
7595
+ youtubeIntegration: () => youtubeIntegration,
7596
+ whatsappIntegration: () => whatsappIntegration,
7180
7597
  vercelIntegration: () => vercelIntegration,
7181
7598
  todoistIntegration: () => todoistIntegration,
7182
7599
  toSvelteKitHandler: () => toSvelteKitHandler,
@@ -7185,11 +7602,17 @@ __export(exports_server, {
7185
7602
  stripeIntegration: () => stripeIntegration,
7186
7603
  storeCodeVerifier: () => storeCodeVerifier,
7187
7604
  slackIntegration: () => slackIntegration,
7605
+ rampIntegration: () => rampIntegration,
7606
+ polarIntegration: () => polarIntegration,
7188
7607
  outlookIntegration: () => outlookIntegration,
7608
+ onedriveIntegration: () => onedriveIntegration,
7189
7609
  notionIntegration: () => notionIntegration,
7190
7610
  linearIntegration: () => linearIntegration,
7611
+ intercomIntegration: () => intercomIntegration,
7612
+ hubspotIntegration: () => hubspotIntegration,
7191
7613
  handleOpenAIResponse: () => handleOpenAIResponse,
7192
7614
  handleAnthropicMessage: () => handleAnthropicMessage,
7615
+ gworkspaceIntegration: () => gworkspaceIntegration,
7193
7616
  gmailIntegration: () => gmailIntegration,
7194
7617
  githubIntegration: () => githubIntegration,
7195
7618
  getVercelAITools: () => getVercelAITools,
@@ -7199,9 +7622,11 @@ __export(exports_server, {
7199
7622
  getAnthropicTools: () => getAnthropicTools,
7200
7623
  genericOAuthIntegration: () => genericOAuthIntegration,
7201
7624
  gcalIntegration: () => gcalIntegration,
7625
+ figmaIntegration: () => figmaIntegration,
7202
7626
  executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
7203
7627
  createSimpleIntegration: () => createSimpleIntegration,
7204
7628
  createMCPServer: () => createMCPServer,
7629
+ calcomIntegration: () => calcomIntegration,
7205
7630
  airtableIntegration: () => airtableIntegration,
7206
7631
  POST: () => POST,
7207
7632
  GET: () => GET
@@ -7729,6 +8154,16 @@ var init_server = __esm(() => {
7729
8154
  init_outlook();
7730
8155
  init_airtable();
7731
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();
7732
8167
  init_generic();
7733
8168
  init_vercel_ai();
7734
8169
  init_openai();