@composio/core 0.1.52 → 0.1.53

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { z } from 'zod';
1
+ import z$1, { z } from 'zod';
2
2
  import { McpCreateResponse, CustomCreateResponse as CustomCreateResponse$1, GenerateURLResponse as GenerateURLResponse$1 } from '@composio/client/resources/mcp';
3
- import ComposioClient from '@composio/client';
3
+ import ComposioClient, { Composio as Composio$1 } from '@composio/client';
4
4
  import { ToolExecuteResponse as ToolExecuteResponse$1, ToolRetrieveEnumResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse } from '@composio/client/resources/tools';
5
5
  import { TriggersTypeRetrieveEnumResponse } from '@composio/client/resources/index';
6
6
  import { AuthConfigUpdateResponse, AuthConfigDeleteResponse, AuthConfigUpdateStatusResponse } from '@composio/client/resources/auth-configs';
@@ -542,18 +542,18 @@ declare const ToolListParamsSchema: z.ZodObject<{
542
542
  }, "strip", z.ZodTypeAny, {
543
543
  limit?: number | undefined;
544
544
  scopes?: string[] | undefined;
545
- search?: string | undefined;
546
545
  tags?: string[] | undefined;
547
546
  tools?: string[] | undefined;
548
547
  toolkits?: string[] | undefined;
548
+ search?: string | undefined;
549
549
  authConfigIds?: string[] | undefined;
550
550
  }, {
551
551
  limit?: number | undefined;
552
552
  scopes?: string[] | undefined;
553
- search?: string | undefined;
554
553
  tags?: string[] | undefined;
555
554
  tools?: string[] | undefined;
556
555
  toolkits?: string[] | undefined;
556
+ search?: string | undefined;
557
557
  authConfigIds?: string[] | undefined;
558
558
  }>;
559
559
  type BaseParams = {
@@ -15975,7 +15975,7 @@ type ExecuteToolFn = (toolSlug: string, input: Record<string, unknown>) => Promi
15975
15975
  type GlobalExecuteToolFn = (slug: string, body: ToolExecuteParams, modifiers?: ExecuteToolModifiers) => Promise<ToolExecuteResponse>;
15976
15976
 
15977
15977
  /**
15978
- * MCP Create Method Input Types
15978
+ * @deprecated
15979
15979
  */
15980
15980
  declare const MCPToolkitConfigSchema: z.ZodObject<{
15981
15981
  toolkit: z.ZodString;
@@ -15991,6 +15991,9 @@ declare const MCPToolkitConfigSchema: z.ZodObject<{
15991
15991
  allowedTools: string[];
15992
15992
  }>;
15993
15993
  type MCPToolkitConfig = z.infer<typeof MCPToolkitConfigSchema>;
15994
+ /**
15995
+ * @deprecated
15996
+ */
15994
15997
  declare const MCPToolkitConfigsArraySchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
15995
15998
  toolkit: z.ZodString;
15996
15999
  authConfigId: z.ZodString;
@@ -16012,6 +16015,9 @@ declare const MCPToolkitConfigsArraySchema: z.ZodEffects<z.ZodArray<z.ZodObject<
16012
16015
  authConfigId: string;
16013
16016
  allowedTools: string[];
16014
16017
  }[]>;
16018
+ /**
16019
+ * @deprecated
16020
+ */
16015
16021
  declare const MCPAuthOptionsSchema: z.ZodObject<{
16016
16022
  isChatAuth: z.ZodOptional<z.ZodBoolean>;
16017
16023
  }, "strip", z.ZodTypeAny, {
@@ -16750,7 +16756,7 @@ type GenerateURLResponse = z.infer<typeof GenerateURLResponseSchema>;
16750
16756
  * Base class for all providers.
16751
16757
  * This class is not meant to be used directly, but rather to be extended by different provider implementations.
16752
16758
  */
16753
- declare abstract class BaseProvider<TMcpResponse = McpServerGetResponse> {
16759
+ declare abstract class BaseProvider<TMcpResponse> {
16754
16760
  /**
16755
16761
  * @public
16756
16762
  * The name of the provider.
@@ -16788,12 +16794,12 @@ declare abstract class BaseProvider<TMcpResponse = McpServerGetResponse> {
16788
16794
  executeTool(toolSlug: string, body: ToolExecuteParams, modifers?: ExecuteToolModifiers): Promise<ToolExecuteResponse>;
16789
16795
  /**
16790
16796
  * @public
16797
+ * @deprecated: Will be removed in a future version, once the `experimental.mcp` flag is stabilized. Use `wrapMcpServers` instead.
16791
16798
  * Optional method to transform MCP URL response into provider-specific format.
16792
16799
  * Providers can override this method to define custom transformation logic
16793
16800
  * for MCP server responses.
16794
16801
  *
16795
16802
  * @param data - The MCP URL response data
16796
- * @param serverName - Name of the MCP server
16797
16803
 
16798
16804
  * @returns Transformed response in provider-specific format, or undefined to use default transformation
16799
16805
  */
@@ -16824,7 +16830,7 @@ declare abstract class BaseNonAgenticProvider<TToolCollection, TTool, TMcpRespon
16824
16830
  * Base class for all agentic providers.
16825
16831
  * This class is not meant to be used directly, but rather to be extended by concrete provider implementations.
16826
16832
  */
16827
- declare abstract class BaseAgenticProvider<TToolCollection, TTool, TMcpResponse = McpServerGetResponse> extends BaseProvider<TMcpResponse> {
16833
+ declare abstract class BaseAgenticProvider<TToolCollection, TTool, TMcpResponse> extends BaseProvider<TMcpResponse> {
16828
16834
  readonly _isAgentic = true;
16829
16835
  /**
16830
16836
  * Wrap a tool in the provider specific format.
@@ -17555,18 +17561,24 @@ type ToolKitListResponse = z.infer<typeof ToolKitListResponseSchema>;
17555
17561
  * Toolkit retrieve response
17556
17562
  */
17557
17563
  declare const ToolkitAuthFieldSchema: z.ZodObject<{
17558
- name: z.ZodString;
17564
+ description: z.ZodString;
17559
17565
  displayName: z.ZodString;
17566
+ required: z.ZodBoolean;
17567
+ name: z.ZodString;
17560
17568
  type: z.ZodString;
17561
17569
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17562
17570
  }, "strip", z.ZodTypeAny, {
17563
17571
  type: string;
17564
17572
  name: string;
17573
+ description: string;
17574
+ required: boolean;
17565
17575
  displayName: string;
17566
17576
  default?: string | null | undefined;
17567
17577
  }, {
17568
17578
  type: string;
17569
17579
  name: string;
17580
+ description: string;
17581
+ required: boolean;
17570
17582
  displayName: string;
17571
17583
  default?: string | null | undefined;
17572
17584
  }>;
@@ -17576,34 +17588,46 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17576
17588
  fields: z.ZodObject<{
17577
17589
  authConfigCreation: z.ZodObject<{
17578
17590
  optional: z.ZodArray<z.ZodObject<{
17579
- name: z.ZodString;
17591
+ description: z.ZodString;
17580
17592
  displayName: z.ZodString;
17593
+ required: z.ZodBoolean;
17594
+ name: z.ZodString;
17581
17595
  type: z.ZodString;
17582
17596
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17583
17597
  }, "strip", z.ZodTypeAny, {
17584
17598
  type: string;
17585
17599
  name: string;
17600
+ description: string;
17601
+ required: boolean;
17586
17602
  displayName: string;
17587
17603
  default?: string | null | undefined;
17588
17604
  }, {
17589
17605
  type: string;
17590
17606
  name: string;
17607
+ description: string;
17608
+ required: boolean;
17591
17609
  displayName: string;
17592
17610
  default?: string | null | undefined;
17593
17611
  }>, "many">;
17594
17612
  required: z.ZodArray<z.ZodObject<{
17595
- name: z.ZodString;
17613
+ description: z.ZodString;
17596
17614
  displayName: z.ZodString;
17615
+ required: z.ZodBoolean;
17616
+ name: z.ZodString;
17597
17617
  type: z.ZodString;
17598
17618
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17599
17619
  }, "strip", z.ZodTypeAny, {
17600
17620
  type: string;
17601
17621
  name: string;
17622
+ description: string;
17623
+ required: boolean;
17602
17624
  displayName: string;
17603
17625
  default?: string | null | undefined;
17604
17626
  }, {
17605
17627
  type: string;
17606
17628
  name: string;
17629
+ description: string;
17630
+ required: boolean;
17607
17631
  displayName: string;
17608
17632
  default?: string | null | undefined;
17609
17633
  }>, "many">;
@@ -17611,12 +17635,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17611
17635
  required: {
17612
17636
  type: string;
17613
17637
  name: string;
17638
+ description: string;
17639
+ required: boolean;
17614
17640
  displayName: string;
17615
17641
  default?: string | null | undefined;
17616
17642
  }[];
17617
17643
  optional: {
17618
17644
  type: string;
17619
17645
  name: string;
17646
+ description: string;
17647
+ required: boolean;
17620
17648
  displayName: string;
17621
17649
  default?: string | null | undefined;
17622
17650
  }[];
@@ -17624,46 +17652,62 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17624
17652
  required: {
17625
17653
  type: string;
17626
17654
  name: string;
17655
+ description: string;
17656
+ required: boolean;
17627
17657
  displayName: string;
17628
17658
  default?: string | null | undefined;
17629
17659
  }[];
17630
17660
  optional: {
17631
17661
  type: string;
17632
17662
  name: string;
17663
+ description: string;
17664
+ required: boolean;
17633
17665
  displayName: string;
17634
17666
  default?: string | null | undefined;
17635
17667
  }[];
17636
17668
  }>;
17637
17669
  connectedAccountInitiation: z.ZodObject<{
17638
17670
  optional: z.ZodArray<z.ZodObject<{
17639
- name: z.ZodString;
17671
+ description: z.ZodString;
17640
17672
  displayName: z.ZodString;
17673
+ required: z.ZodBoolean;
17674
+ name: z.ZodString;
17641
17675
  type: z.ZodString;
17642
17676
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17643
17677
  }, "strip", z.ZodTypeAny, {
17644
17678
  type: string;
17645
17679
  name: string;
17680
+ description: string;
17681
+ required: boolean;
17646
17682
  displayName: string;
17647
17683
  default?: string | null | undefined;
17648
17684
  }, {
17649
17685
  type: string;
17650
17686
  name: string;
17687
+ description: string;
17688
+ required: boolean;
17651
17689
  displayName: string;
17652
17690
  default?: string | null | undefined;
17653
17691
  }>, "many">;
17654
17692
  required: z.ZodArray<z.ZodObject<{
17655
- name: z.ZodString;
17693
+ description: z.ZodString;
17656
17694
  displayName: z.ZodString;
17695
+ required: z.ZodBoolean;
17696
+ name: z.ZodString;
17657
17697
  type: z.ZodString;
17658
17698
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17659
17699
  }, "strip", z.ZodTypeAny, {
17660
17700
  type: string;
17661
17701
  name: string;
17702
+ description: string;
17703
+ required: boolean;
17662
17704
  displayName: string;
17663
17705
  default?: string | null | undefined;
17664
17706
  }, {
17665
17707
  type: string;
17666
17708
  name: string;
17709
+ description: string;
17710
+ required: boolean;
17667
17711
  displayName: string;
17668
17712
  default?: string | null | undefined;
17669
17713
  }>, "many">;
@@ -17671,12 +17715,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17671
17715
  required: {
17672
17716
  type: string;
17673
17717
  name: string;
17718
+ description: string;
17719
+ required: boolean;
17674
17720
  displayName: string;
17675
17721
  default?: string | null | undefined;
17676
17722
  }[];
17677
17723
  optional: {
17678
17724
  type: string;
17679
17725
  name: string;
17726
+ description: string;
17727
+ required: boolean;
17680
17728
  displayName: string;
17681
17729
  default?: string | null | undefined;
17682
17730
  }[];
@@ -17684,12 +17732,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17684
17732
  required: {
17685
17733
  type: string;
17686
17734
  name: string;
17735
+ description: string;
17736
+ required: boolean;
17687
17737
  displayName: string;
17688
17738
  default?: string | null | undefined;
17689
17739
  }[];
17690
17740
  optional: {
17691
17741
  type: string;
17692
17742
  name: string;
17743
+ description: string;
17744
+ required: boolean;
17693
17745
  displayName: string;
17694
17746
  default?: string | null | undefined;
17695
17747
  }[];
@@ -17699,12 +17751,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17699
17751
  required: {
17700
17752
  type: string;
17701
17753
  name: string;
17754
+ description: string;
17755
+ required: boolean;
17702
17756
  displayName: string;
17703
17757
  default?: string | null | undefined;
17704
17758
  }[];
17705
17759
  optional: {
17706
17760
  type: string;
17707
17761
  name: string;
17762
+ description: string;
17763
+ required: boolean;
17708
17764
  displayName: string;
17709
17765
  default?: string | null | undefined;
17710
17766
  }[];
@@ -17713,12 +17769,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17713
17769
  required: {
17714
17770
  type: string;
17715
17771
  name: string;
17772
+ description: string;
17773
+ required: boolean;
17716
17774
  displayName: string;
17717
17775
  default?: string | null | undefined;
17718
17776
  }[];
17719
17777
  optional: {
17720
17778
  type: string;
17721
17779
  name: string;
17780
+ description: string;
17781
+ required: boolean;
17722
17782
  displayName: string;
17723
17783
  default?: string | null | undefined;
17724
17784
  }[];
@@ -17728,12 +17788,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17728
17788
  required: {
17729
17789
  type: string;
17730
17790
  name: string;
17791
+ description: string;
17792
+ required: boolean;
17731
17793
  displayName: string;
17732
17794
  default?: string | null | undefined;
17733
17795
  }[];
17734
17796
  optional: {
17735
17797
  type: string;
17736
17798
  name: string;
17799
+ description: string;
17800
+ required: boolean;
17737
17801
  displayName: string;
17738
17802
  default?: string | null | undefined;
17739
17803
  }[];
@@ -17742,12 +17806,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17742
17806
  required: {
17743
17807
  type: string;
17744
17808
  name: string;
17809
+ description: string;
17810
+ required: boolean;
17745
17811
  displayName: string;
17746
17812
  default?: string | null | undefined;
17747
17813
  }[];
17748
17814
  optional: {
17749
17815
  type: string;
17750
17816
  name: string;
17817
+ description: string;
17818
+ required: boolean;
17751
17819
  displayName: string;
17752
17820
  default?: string | null | undefined;
17753
17821
  }[];
@@ -17768,12 +17836,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17768
17836
  required: {
17769
17837
  type: string;
17770
17838
  name: string;
17839
+ description: string;
17840
+ required: boolean;
17771
17841
  displayName: string;
17772
17842
  default?: string | null | undefined;
17773
17843
  }[];
17774
17844
  optional: {
17775
17845
  type: string;
17776
17846
  name: string;
17847
+ description: string;
17848
+ required: boolean;
17777
17849
  displayName: string;
17778
17850
  default?: string | null | undefined;
17779
17851
  }[];
@@ -17782,12 +17854,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17782
17854
  required: {
17783
17855
  type: string;
17784
17856
  name: string;
17857
+ description: string;
17858
+ required: boolean;
17785
17859
  displayName: string;
17786
17860
  default?: string | null | undefined;
17787
17861
  }[];
17788
17862
  optional: {
17789
17863
  type: string;
17790
17864
  name: string;
17865
+ description: string;
17866
+ required: boolean;
17791
17867
  displayName: string;
17792
17868
  default?: string | null | undefined;
17793
17869
  }[];
@@ -17804,12 +17880,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17804
17880
  required: {
17805
17881
  type: string;
17806
17882
  name: string;
17883
+ description: string;
17884
+ required: boolean;
17807
17885
  displayName: string;
17808
17886
  default?: string | null | undefined;
17809
17887
  }[];
17810
17888
  optional: {
17811
17889
  type: string;
17812
17890
  name: string;
17891
+ description: string;
17892
+ required: boolean;
17813
17893
  displayName: string;
17814
17894
  default?: string | null | undefined;
17815
17895
  }[];
@@ -17818,12 +17898,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
17818
17898
  required: {
17819
17899
  type: string;
17820
17900
  name: string;
17901
+ description: string;
17902
+ required: boolean;
17821
17903
  displayName: string;
17822
17904
  default?: string | null | undefined;
17823
17905
  }[];
17824
17906
  optional: {
17825
17907
  type: string;
17826
17908
  name: string;
17909
+ description: string;
17910
+ required: boolean;
17827
17911
  displayName: string;
17828
17912
  default?: string | null | undefined;
17829
17913
  }[];
@@ -17887,34 +17971,46 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17887
17971
  fields: z.ZodObject<{
17888
17972
  authConfigCreation: z.ZodObject<{
17889
17973
  optional: z.ZodArray<z.ZodObject<{
17890
- name: z.ZodString;
17974
+ description: z.ZodString;
17891
17975
  displayName: z.ZodString;
17976
+ required: z.ZodBoolean;
17977
+ name: z.ZodString;
17892
17978
  type: z.ZodString;
17893
17979
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17894
17980
  }, "strip", z.ZodTypeAny, {
17895
17981
  type: string;
17896
17982
  name: string;
17983
+ description: string;
17984
+ required: boolean;
17897
17985
  displayName: string;
17898
17986
  default?: string | null | undefined;
17899
17987
  }, {
17900
17988
  type: string;
17901
17989
  name: string;
17990
+ description: string;
17991
+ required: boolean;
17902
17992
  displayName: string;
17903
17993
  default?: string | null | undefined;
17904
17994
  }>, "many">;
17905
17995
  required: z.ZodArray<z.ZodObject<{
17906
- name: z.ZodString;
17996
+ description: z.ZodString;
17907
17997
  displayName: z.ZodString;
17998
+ required: z.ZodBoolean;
17999
+ name: z.ZodString;
17908
18000
  type: z.ZodString;
17909
18001
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17910
18002
  }, "strip", z.ZodTypeAny, {
17911
18003
  type: string;
17912
18004
  name: string;
18005
+ description: string;
18006
+ required: boolean;
17913
18007
  displayName: string;
17914
18008
  default?: string | null | undefined;
17915
18009
  }, {
17916
18010
  type: string;
17917
18011
  name: string;
18012
+ description: string;
18013
+ required: boolean;
17918
18014
  displayName: string;
17919
18015
  default?: string | null | undefined;
17920
18016
  }>, "many">;
@@ -17922,12 +18018,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17922
18018
  required: {
17923
18019
  type: string;
17924
18020
  name: string;
18021
+ description: string;
18022
+ required: boolean;
17925
18023
  displayName: string;
17926
18024
  default?: string | null | undefined;
17927
18025
  }[];
17928
18026
  optional: {
17929
18027
  type: string;
17930
18028
  name: string;
18029
+ description: string;
18030
+ required: boolean;
17931
18031
  displayName: string;
17932
18032
  default?: string | null | undefined;
17933
18033
  }[];
@@ -17935,46 +18035,62 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17935
18035
  required: {
17936
18036
  type: string;
17937
18037
  name: string;
18038
+ description: string;
18039
+ required: boolean;
17938
18040
  displayName: string;
17939
18041
  default?: string | null | undefined;
17940
18042
  }[];
17941
18043
  optional: {
17942
18044
  type: string;
17943
18045
  name: string;
18046
+ description: string;
18047
+ required: boolean;
17944
18048
  displayName: string;
17945
18049
  default?: string | null | undefined;
17946
18050
  }[];
17947
18051
  }>;
17948
18052
  connectedAccountInitiation: z.ZodObject<{
17949
18053
  optional: z.ZodArray<z.ZodObject<{
17950
- name: z.ZodString;
18054
+ description: z.ZodString;
17951
18055
  displayName: z.ZodString;
18056
+ required: z.ZodBoolean;
18057
+ name: z.ZodString;
17952
18058
  type: z.ZodString;
17953
18059
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17954
18060
  }, "strip", z.ZodTypeAny, {
17955
18061
  type: string;
17956
18062
  name: string;
18063
+ description: string;
18064
+ required: boolean;
17957
18065
  displayName: string;
17958
18066
  default?: string | null | undefined;
17959
18067
  }, {
17960
18068
  type: string;
17961
18069
  name: string;
18070
+ description: string;
18071
+ required: boolean;
17962
18072
  displayName: string;
17963
18073
  default?: string | null | undefined;
17964
18074
  }>, "many">;
17965
18075
  required: z.ZodArray<z.ZodObject<{
17966
- name: z.ZodString;
18076
+ description: z.ZodString;
17967
18077
  displayName: z.ZodString;
18078
+ required: z.ZodBoolean;
18079
+ name: z.ZodString;
17968
18080
  type: z.ZodString;
17969
18081
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17970
18082
  }, "strip", z.ZodTypeAny, {
17971
18083
  type: string;
17972
18084
  name: string;
18085
+ description: string;
18086
+ required: boolean;
17973
18087
  displayName: string;
17974
18088
  default?: string | null | undefined;
17975
18089
  }, {
17976
18090
  type: string;
17977
18091
  name: string;
18092
+ description: string;
18093
+ required: boolean;
17978
18094
  displayName: string;
17979
18095
  default?: string | null | undefined;
17980
18096
  }>, "many">;
@@ -17982,12 +18098,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17982
18098
  required: {
17983
18099
  type: string;
17984
18100
  name: string;
18101
+ description: string;
18102
+ required: boolean;
17985
18103
  displayName: string;
17986
18104
  default?: string | null | undefined;
17987
18105
  }[];
17988
18106
  optional: {
17989
18107
  type: string;
17990
18108
  name: string;
18109
+ description: string;
18110
+ required: boolean;
17991
18111
  displayName: string;
17992
18112
  default?: string | null | undefined;
17993
18113
  }[];
@@ -17995,12 +18115,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
17995
18115
  required: {
17996
18116
  type: string;
17997
18117
  name: string;
18118
+ description: string;
18119
+ required: boolean;
17998
18120
  displayName: string;
17999
18121
  default?: string | null | undefined;
18000
18122
  }[];
18001
18123
  optional: {
18002
18124
  type: string;
18003
18125
  name: string;
18126
+ description: string;
18127
+ required: boolean;
18004
18128
  displayName: string;
18005
18129
  default?: string | null | undefined;
18006
18130
  }[];
@@ -18010,12 +18134,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18010
18134
  required: {
18011
18135
  type: string;
18012
18136
  name: string;
18137
+ description: string;
18138
+ required: boolean;
18013
18139
  displayName: string;
18014
18140
  default?: string | null | undefined;
18015
18141
  }[];
18016
18142
  optional: {
18017
18143
  type: string;
18018
18144
  name: string;
18145
+ description: string;
18146
+ required: boolean;
18019
18147
  displayName: string;
18020
18148
  default?: string | null | undefined;
18021
18149
  }[];
@@ -18024,12 +18152,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18024
18152
  required: {
18025
18153
  type: string;
18026
18154
  name: string;
18155
+ description: string;
18156
+ required: boolean;
18027
18157
  displayName: string;
18028
18158
  default?: string | null | undefined;
18029
18159
  }[];
18030
18160
  optional: {
18031
18161
  type: string;
18032
18162
  name: string;
18163
+ description: string;
18164
+ required: boolean;
18033
18165
  displayName: string;
18034
18166
  default?: string | null | undefined;
18035
18167
  }[];
@@ -18039,12 +18171,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18039
18171
  required: {
18040
18172
  type: string;
18041
18173
  name: string;
18174
+ description: string;
18175
+ required: boolean;
18042
18176
  displayName: string;
18043
18177
  default?: string | null | undefined;
18044
18178
  }[];
18045
18179
  optional: {
18046
18180
  type: string;
18047
18181
  name: string;
18182
+ description: string;
18183
+ required: boolean;
18048
18184
  displayName: string;
18049
18185
  default?: string | null | undefined;
18050
18186
  }[];
@@ -18053,12 +18189,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18053
18189
  required: {
18054
18190
  type: string;
18055
18191
  name: string;
18192
+ description: string;
18193
+ required: boolean;
18056
18194
  displayName: string;
18057
18195
  default?: string | null | undefined;
18058
18196
  }[];
18059
18197
  optional: {
18060
18198
  type: string;
18061
18199
  name: string;
18200
+ description: string;
18201
+ required: boolean;
18062
18202
  displayName: string;
18063
18203
  default?: string | null | undefined;
18064
18204
  }[];
@@ -18079,12 +18219,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18079
18219
  required: {
18080
18220
  type: string;
18081
18221
  name: string;
18222
+ description: string;
18223
+ required: boolean;
18082
18224
  displayName: string;
18083
18225
  default?: string | null | undefined;
18084
18226
  }[];
18085
18227
  optional: {
18086
18228
  type: string;
18087
18229
  name: string;
18230
+ description: string;
18231
+ required: boolean;
18088
18232
  displayName: string;
18089
18233
  default?: string | null | undefined;
18090
18234
  }[];
@@ -18093,12 +18237,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18093
18237
  required: {
18094
18238
  type: string;
18095
18239
  name: string;
18240
+ description: string;
18241
+ required: boolean;
18096
18242
  displayName: string;
18097
18243
  default?: string | null | undefined;
18098
18244
  }[];
18099
18245
  optional: {
18100
18246
  type: string;
18101
18247
  name: string;
18248
+ description: string;
18249
+ required: boolean;
18102
18250
  displayName: string;
18103
18251
  default?: string | null | undefined;
18104
18252
  }[];
@@ -18115,12 +18263,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18115
18263
  required: {
18116
18264
  type: string;
18117
18265
  name: string;
18266
+ description: string;
18267
+ required: boolean;
18118
18268
  displayName: string;
18119
18269
  default?: string | null | undefined;
18120
18270
  }[];
18121
18271
  optional: {
18122
18272
  type: string;
18123
18273
  name: string;
18274
+ description: string;
18275
+ required: boolean;
18124
18276
  displayName: string;
18125
18277
  default?: string | null | undefined;
18126
18278
  }[];
@@ -18129,12 +18281,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18129
18281
  required: {
18130
18282
  type: string;
18131
18283
  name: string;
18284
+ description: string;
18285
+ required: boolean;
18132
18286
  displayName: string;
18133
18287
  default?: string | null | undefined;
18134
18288
  }[];
18135
18289
  optional: {
18136
18290
  type: string;
18137
18291
  name: string;
18292
+ description: string;
18293
+ required: boolean;
18138
18294
  displayName: string;
18139
18295
  default?: string | null | undefined;
18140
18296
  }[];
@@ -18173,12 +18329,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18173
18329
  required: {
18174
18330
  type: string;
18175
18331
  name: string;
18332
+ description: string;
18333
+ required: boolean;
18176
18334
  displayName: string;
18177
18335
  default?: string | null | undefined;
18178
18336
  }[];
18179
18337
  optional: {
18180
18338
  type: string;
18181
18339
  name: string;
18340
+ description: string;
18341
+ required: boolean;
18182
18342
  displayName: string;
18183
18343
  default?: string | null | undefined;
18184
18344
  }[];
@@ -18187,12 +18347,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18187
18347
  required: {
18188
18348
  type: string;
18189
18349
  name: string;
18350
+ description: string;
18351
+ required: boolean;
18190
18352
  displayName: string;
18191
18353
  default?: string | null | undefined;
18192
18354
  }[];
18193
18355
  optional: {
18194
18356
  type: string;
18195
18357
  name: string;
18358
+ description: string;
18359
+ required: boolean;
18196
18360
  displayName: string;
18197
18361
  default?: string | null | undefined;
18198
18362
  }[];
@@ -18230,12 +18394,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18230
18394
  required: {
18231
18395
  type: string;
18232
18396
  name: string;
18397
+ description: string;
18398
+ required: boolean;
18233
18399
  displayName: string;
18234
18400
  default?: string | null | undefined;
18235
18401
  }[];
18236
18402
  optional: {
18237
18403
  type: string;
18238
18404
  name: string;
18405
+ description: string;
18406
+ required: boolean;
18239
18407
  displayName: string;
18240
18408
  default?: string | null | undefined;
18241
18409
  }[];
@@ -18244,12 +18412,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
18244
18412
  required: {
18245
18413
  type: string;
18246
18414
  name: string;
18415
+ description: string;
18416
+ required: boolean;
18247
18417
  displayName: string;
18248
18418
  default?: string | null | undefined;
18249
18419
  }[];
18250
18420
  optional: {
18251
18421
  type: string;
18252
18422
  name: string;
18423
+ description: string;
18424
+ required: boolean;
18253
18425
  displayName: string;
18254
18426
  default?: string | null | undefined;
18255
18427
  }[];
@@ -18308,8 +18480,9 @@ declare const ToolkitRetrieveCategoriesResponseSchema: z.ZodObject<{
18308
18480
  type ToolkitCategory = z.infer<typeof ToolkitCategorySchema>;
18309
18481
  type ToolkitRetrieveCategoriesResponse = z.infer<typeof ToolkitRetrieveCategoriesResponseSchema>;
18310
18482
  declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
18311
- name: z.ZodString;
18483
+ description: z.ZodString;
18312
18484
  displayName: z.ZodString;
18485
+ name: z.ZodString;
18313
18486
  type: z.ZodString;
18314
18487
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18315
18488
  } & {
@@ -18317,12 +18490,14 @@ declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
18317
18490
  }, "strip", z.ZodTypeAny, {
18318
18491
  type: string;
18319
18492
  name: string;
18493
+ description: string;
18320
18494
  displayName: string;
18321
18495
  default?: string | null | undefined;
18322
18496
  required?: boolean | undefined;
18323
18497
  }, {
18324
18498
  type: string;
18325
18499
  name: string;
18500
+ description: string;
18326
18501
  displayName: string;
18327
18502
  default?: string | null | undefined;
18328
18503
  required?: boolean | undefined;
@@ -63504,6 +63679,7 @@ declare const AuthSchemeTypes: {
63504
63679
  readonly NO_AUTH: "NO_AUTH";
63505
63680
  readonly BASIC_WITH_JWT: "BASIC_WITH_JWT";
63506
63681
  readonly CALCOM_AUTH: "CALCOM_AUTH";
63682
+ readonly SERVICE_ACCOUNT: "SERVICE_ACCOUNT";
63507
63683
  };
63508
63684
  type AuthSchemeType = (typeof AuthSchemeTypes)[keyof typeof AuthSchemeTypes];
63509
63685
  declare const AuthConfigCreationToolAccessConfigSchema: z.ZodObject<{
@@ -63523,12 +63699,12 @@ declare const AuthConfigToolAccessConfigSchema: z.ZodObject<{
63523
63699
  toolsForConnectedAccountCreation?: string[] | undefined;
63524
63700
  toolsAvailableForExecution?: string[] | undefined;
63525
63701
  }>;
63526
- declare const AuthSchemeEnum: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH"]>;
63702
+ declare const AuthSchemeEnum: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT"]>;
63527
63703
  declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
63528
63704
  type: z.ZodLiteral<"use_custom_auth">;
63529
63705
  name: z.ZodOptional<z.ZodString>;
63530
63706
  credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
63531
- authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH"]>;
63707
+ authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT"]>;
63532
63708
  proxyConfig: z.ZodOptional<z.ZodObject<{
63533
63709
  proxyUrl: z.ZodString;
63534
63710
  proxyAuthKey: z.ZodOptional<z.ZodString>;
@@ -63549,7 +63725,7 @@ declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
63549
63725
  }, "strip", z.ZodTypeAny, {
63550
63726
  type: "use_custom_auth";
63551
63727
  credentials: Record<string, string | number | boolean>;
63552
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH";
63728
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT";
63553
63729
  name?: string | undefined;
63554
63730
  proxyConfig?: {
63555
63731
  proxyUrl: string;
@@ -63561,7 +63737,7 @@ declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
63561
63737
  }, {
63562
63738
  type: "use_custom_auth";
63563
63739
  credentials: Record<string, string | number | boolean>;
63564
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH";
63740
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT";
63565
63741
  name?: string | undefined;
63566
63742
  proxyConfig?: {
63567
63743
  proxyUrl: string;
@@ -63604,7 +63780,7 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
63604
63780
  type: z.ZodLiteral<"use_custom_auth">;
63605
63781
  name: z.ZodOptional<z.ZodString>;
63606
63782
  credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
63607
- authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH"]>;
63783
+ authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT"]>;
63608
63784
  proxyConfig: z.ZodOptional<z.ZodObject<{
63609
63785
  proxyUrl: z.ZodString;
63610
63786
  proxyAuthKey: z.ZodOptional<z.ZodString>;
@@ -63625,7 +63801,7 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
63625
63801
  }, "strip", z.ZodTypeAny, {
63626
63802
  type: "use_custom_auth";
63627
63803
  credentials: Record<string, string | number | boolean>;
63628
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH";
63804
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT";
63629
63805
  name?: string | undefined;
63630
63806
  proxyConfig?: {
63631
63807
  proxyUrl: string;
@@ -63637,7 +63813,7 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
63637
63813
  }, {
63638
63814
  type: "use_custom_auth";
63639
63815
  credentials: Record<string, string | number | boolean>;
63640
- authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH";
63816
+ authScheme: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT";
63641
63817
  name?: string | undefined;
63642
63818
  proxyConfig?: {
63643
63819
  proxyUrl: string;
@@ -63706,7 +63882,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
63706
63882
  noOfConnections: z.ZodNumber;
63707
63883
  status: z.ZodEnum<["ENABLED", "DISABLED"]>;
63708
63884
  uuid: z.ZodString;
63709
- authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH"]>>;
63885
+ authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT"]>>;
63710
63886
  credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63711
63887
  expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
63712
63888
  /**
@@ -63738,7 +63914,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
63738
63914
  noOfConnections: number;
63739
63915
  uuid: string;
63740
63916
  credentials?: Record<string, unknown> | undefined;
63741
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | undefined;
63917
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | undefined;
63742
63918
  toolAccessConfig?: {
63743
63919
  toolsForConnectedAccountCreation?: string[] | undefined;
63744
63920
  toolsAvailableForExecution?: string[] | undefined;
@@ -63760,7 +63936,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
63760
63936
  noOfConnections: number;
63761
63937
  uuid: string;
63762
63938
  credentials?: Record<string, unknown> | undefined;
63763
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | undefined;
63939
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | undefined;
63764
63940
  toolAccessConfig?: {
63765
63941
  toolsForConnectedAccountCreation?: string[] | undefined;
63766
63942
  toolsAvailableForExecution?: string[] | undefined;
@@ -63807,7 +63983,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
63807
63983
  noOfConnections: z.ZodNumber;
63808
63984
  status: z.ZodEnum<["ENABLED", "DISABLED"]>;
63809
63985
  uuid: z.ZodString;
63810
- authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH"]>>;
63986
+ authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT"]>>;
63811
63987
  credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63812
63988
  expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
63813
63989
  /**
@@ -63839,7 +64015,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
63839
64015
  noOfConnections: number;
63840
64016
  uuid: string;
63841
64017
  credentials?: Record<string, unknown> | undefined;
63842
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | undefined;
64018
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | undefined;
63843
64019
  toolAccessConfig?: {
63844
64020
  toolsForConnectedAccountCreation?: string[] | undefined;
63845
64021
  toolsAvailableForExecution?: string[] | undefined;
@@ -63861,7 +64037,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
63861
64037
  noOfConnections: number;
63862
64038
  uuid: string;
63863
64039
  credentials?: Record<string, unknown> | undefined;
63864
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | undefined;
64040
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | undefined;
63865
64041
  toolAccessConfig?: {
63866
64042
  toolsForConnectedAccountCreation?: string[] | undefined;
63867
64043
  toolsAvailableForExecution?: string[] | undefined;
@@ -63887,7 +64063,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
63887
64063
  noOfConnections: number;
63888
64064
  uuid: string;
63889
64065
  credentials?: Record<string, unknown> | undefined;
63890
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | undefined;
64066
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | undefined;
63891
64067
  toolAccessConfig?: {
63892
64068
  toolsForConnectedAccountCreation?: string[] | undefined;
63893
64069
  toolsAvailableForExecution?: string[] | undefined;
@@ -63913,7 +64089,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
63913
64089
  noOfConnections: number;
63914
64090
  uuid: string;
63915
64091
  credentials?: Record<string, unknown> | undefined;
63916
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | undefined;
64092
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | undefined;
63917
64093
  toolAccessConfig?: {
63918
64094
  toolsForConnectedAccountCreation?: string[] | undefined;
63919
64095
  toolsAvailableForExecution?: string[] | undefined;
@@ -65281,21 +65457,640 @@ declare class ConnectedAccounts {
65281
65457
  disable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
65282
65458
  }
65283
65459
 
65460
+ declare const MCPServerInstanceSchema: z$1.ZodObject<{
65461
+ id: z$1.ZodString;
65462
+ name: z$1.ZodString;
65463
+ type: z$1.ZodLiteral<"streamable_http">;
65464
+ url: z$1.ZodString;
65465
+ userId: z$1.ZodString;
65466
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
65467
+ authConfigs: z$1.ZodArray<z$1.ZodString, "many">;
65468
+ }, "strip", z$1.ZodTypeAny, {
65469
+ type: "streamable_http";
65470
+ name: string;
65471
+ id: string;
65472
+ userId: string;
65473
+ allowedTools: string[];
65474
+ url: string;
65475
+ authConfigs: string[];
65476
+ }, {
65477
+ type: "streamable_http";
65478
+ name: string;
65479
+ id: string;
65480
+ userId: string;
65481
+ allowedTools: string[];
65482
+ url: string;
65483
+ authConfigs: string[];
65484
+ }>;
65485
+ type MCPServerInstance = z$1.infer<typeof MCPServerInstanceSchema>;
65486
+ declare const MCPConfigCreationParamsSchema: z$1.ZodObject<{
65487
+ toolkits: z$1.ZodArray<z$1.ZodUnion<[z$1.ZodObject<{
65488
+ toolkit: z$1.ZodOptional<z$1.ZodString>;
65489
+ authConfigId: z$1.ZodOptional<z$1.ZodString>;
65490
+ }, "strip", z$1.ZodTypeAny, {
65491
+ toolkit?: string | undefined;
65492
+ authConfigId?: string | undefined;
65493
+ }, {
65494
+ toolkit?: string | undefined;
65495
+ authConfigId?: string | undefined;
65496
+ }>, z$1.ZodString]>, "many">;
65497
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
65498
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
65499
+ }, "strip", z$1.ZodTypeAny, {
65500
+ toolkits: (string | {
65501
+ toolkit?: string | undefined;
65502
+ authConfigId?: string | undefined;
65503
+ })[];
65504
+ allowedTools?: string[] | undefined;
65505
+ manuallyManageConnections?: boolean | undefined;
65506
+ }, {
65507
+ toolkits: (string | {
65508
+ toolkit?: string | undefined;
65509
+ authConfigId?: string | undefined;
65510
+ })[];
65511
+ allowedTools?: string[] | undefined;
65512
+ manuallyManageConnections?: boolean | undefined;
65513
+ }>;
65514
+ type MCPConfigCreationParams = z$1.infer<typeof MCPConfigCreationParamsSchema>;
65515
+ declare const MCPConfigResponseSchema: z$1.ZodObject<{
65516
+ /**
65517
+ * Unique identifier for the newly created custom MCP server
65518
+ */
65519
+ id: z$1.ZodString;
65520
+ /**
65521
+ * Human-readable name of the custom MCP server
65522
+ */
65523
+ name: z$1.ZodString;
65524
+ /**
65525
+ * List of tool identifiers that are enabled for this server
65526
+ */
65527
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
65528
+ /**
65529
+ * ID references to the auth configurations used by this server
65530
+ */
65531
+ authConfigIds: z$1.ZodArray<z$1.ZodString, "many">;
65532
+ /**
65533
+ * Set of command line instructions for connecting various clients to this MCP server
65534
+ */
65535
+ commands: z$1.ZodObject<{
65536
+ /**
65537
+ * Command line instruction for Claude client setup
65538
+ */
65539
+ claude: z$1.ZodString;
65540
+ /**
65541
+ * Command line instruction for Cursor client setup
65542
+ */
65543
+ cursor: z$1.ZodString;
65544
+ /**
65545
+ * Command line instruction for Windsurf client setup
65546
+ */
65547
+ windsurf: z$1.ZodString;
65548
+ }, "strip", z$1.ZodTypeAny, {
65549
+ cursor: string;
65550
+ claude: string;
65551
+ windsurf: string;
65552
+ }, {
65553
+ cursor: string;
65554
+ claude: string;
65555
+ windsurf: string;
65556
+ }>;
65557
+ /**
65558
+ * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP server
65559
+ */
65560
+ MCPUrl: z$1.ZodString;
65561
+ }, "strip", z$1.ZodTypeAny, {
65562
+ name: string;
65563
+ id: string;
65564
+ authConfigIds: string[];
65565
+ allowedTools: string[];
65566
+ commands: {
65567
+ cursor: string;
65568
+ claude: string;
65569
+ windsurf: string;
65570
+ };
65571
+ MCPUrl: string;
65572
+ }, {
65573
+ name: string;
65574
+ id: string;
65575
+ authConfigIds: string[];
65576
+ allowedTools: string[];
65577
+ commands: {
65578
+ cursor: string;
65579
+ claude: string;
65580
+ windsurf: string;
65581
+ };
65582
+ MCPUrl: string;
65583
+ }>;
65584
+ type MCPConfigResponse = z$1.infer<typeof MCPConfigResponseSchema>;
65585
+ interface MCPConfigCreateResponse extends MCPConfigResponse {
65586
+ /**
65587
+ * Creates an instance for a user of the specific MCP Server/COnfig
65588
+ * @param userId {string}
65589
+ * @returns {MCPServerInstance}
65590
+ */
65591
+ generate: (userId: string) => Promise<MCPServerInstance>;
65592
+ }
65593
+ declare const MCPGetInstanceParamsSchema: z$1.ZodObject<{
65594
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
65595
+ }, "strip", z$1.ZodTypeAny, {
65596
+ manuallyManageConnections?: boolean | undefined;
65597
+ }, {
65598
+ manuallyManageConnections?: boolean | undefined;
65599
+ }>;
65600
+ type MCPGetInstanceParams = z$1.infer<typeof MCPGetInstanceParamsSchema>;
65601
+ declare const MCPListParamsSchema: z$1.ZodObject<{
65602
+ page: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
65603
+ limit: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
65604
+ toolkits: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>>;
65605
+ authConfigs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>>;
65606
+ name: z$1.ZodOptional<z$1.ZodString>;
65607
+ }, "strip", z$1.ZodTypeAny, {
65608
+ limit: number;
65609
+ toolkits: string[];
65610
+ page: number;
65611
+ authConfigs: string[];
65612
+ name?: string | undefined;
65613
+ }, {
65614
+ name?: string | undefined;
65615
+ limit?: number | undefined;
65616
+ toolkits?: string[] | undefined;
65617
+ page?: number | undefined;
65618
+ authConfigs?: string[] | undefined;
65619
+ }>;
65620
+ type MCPListParams = z$1.infer<typeof MCPListParamsSchema>;
65621
+ declare const MCPItemSchema: z$1.ZodObject<{
65622
+ /**
65623
+ * Unique identifier for the newly created custom MCP server
65624
+ */
65625
+ id: z$1.ZodString;
65626
+ /**
65627
+ * Human-readable name of the custom MCP server
65628
+ */
65629
+ name: z$1.ZodString;
65630
+ /**
65631
+ * List of tool identifiers that are enabled for this server
65632
+ */
65633
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
65634
+ /**
65635
+ * ID references to the auth configurations used by this server
65636
+ */
65637
+ authConfigIds: z$1.ZodArray<z$1.ZodString, "many">;
65638
+ /**
65639
+ * Set of command line instructions for connecting various clients to this MCP server
65640
+ */
65641
+ commands: z$1.ZodObject<{
65642
+ /**
65643
+ * Command line instruction for Claude client setup
65644
+ */
65645
+ claude: z$1.ZodString;
65646
+ /**
65647
+ * Command line instruction for Cursor client setup
65648
+ */
65649
+ cursor: z$1.ZodString;
65650
+ /**
65651
+ * Command line instruction for Windsurf client setup
65652
+ */
65653
+ windsurf: z$1.ZodString;
65654
+ }, "strip", z$1.ZodTypeAny, {
65655
+ cursor: string;
65656
+ claude: string;
65657
+ windsurf: string;
65658
+ }, {
65659
+ cursor: string;
65660
+ claude: string;
65661
+ windsurf: string;
65662
+ }>;
65663
+ /**
65664
+ * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP server
65665
+ */
65666
+ MCPUrl: z$1.ZodString;
65667
+ } & {
65668
+ toolkitIcons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
65669
+ serverInstanceCount: z$1.ZodNumber;
65670
+ toolkits: z$1.ZodArray<z$1.ZodString, "many">;
65671
+ }, "strip", z$1.ZodTypeAny, {
65672
+ name: string;
65673
+ id: string;
65674
+ toolkits: string[];
65675
+ authConfigIds: string[];
65676
+ allowedTools: string[];
65677
+ commands: {
65678
+ cursor: string;
65679
+ claude: string;
65680
+ windsurf: string;
65681
+ };
65682
+ MCPUrl: string;
65683
+ toolkitIcons: Record<string, string>;
65684
+ serverInstanceCount: number;
65685
+ }, {
65686
+ name: string;
65687
+ id: string;
65688
+ toolkits: string[];
65689
+ authConfigIds: string[];
65690
+ allowedTools: string[];
65691
+ commands: {
65692
+ cursor: string;
65693
+ claude: string;
65694
+ windsurf: string;
65695
+ };
65696
+ MCPUrl: string;
65697
+ toolkitIcons: Record<string, string>;
65698
+ serverInstanceCount: number;
65699
+ }>;
65700
+ type MCPItem = z$1.infer<typeof MCPItemSchema>;
65701
+ declare const MCPListResponseSchema: z$1.ZodObject<{
65702
+ items: z$1.ZodArray<z$1.ZodObject<{
65703
+ /**
65704
+ * Unique identifier for the newly created custom MCP server
65705
+ */
65706
+ id: z$1.ZodString;
65707
+ /**
65708
+ * Human-readable name of the custom MCP server
65709
+ */
65710
+ name: z$1.ZodString;
65711
+ /**
65712
+ * List of tool identifiers that are enabled for this server
65713
+ */
65714
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
65715
+ /**
65716
+ * ID references to the auth configurations used by this server
65717
+ */
65718
+ authConfigIds: z$1.ZodArray<z$1.ZodString, "many">;
65719
+ /**
65720
+ * Set of command line instructions for connecting various clients to this MCP server
65721
+ */
65722
+ commands: z$1.ZodObject<{
65723
+ /**
65724
+ * Command line instruction for Claude client setup
65725
+ */
65726
+ claude: z$1.ZodString;
65727
+ /**
65728
+ * Command line instruction for Cursor client setup
65729
+ */
65730
+ cursor: z$1.ZodString;
65731
+ /**
65732
+ * Command line instruction for Windsurf client setup
65733
+ */
65734
+ windsurf: z$1.ZodString;
65735
+ }, "strip", z$1.ZodTypeAny, {
65736
+ cursor: string;
65737
+ claude: string;
65738
+ windsurf: string;
65739
+ }, {
65740
+ cursor: string;
65741
+ claude: string;
65742
+ windsurf: string;
65743
+ }>;
65744
+ /**
65745
+ * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP server
65746
+ */
65747
+ MCPUrl: z$1.ZodString;
65748
+ } & {
65749
+ toolkitIcons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
65750
+ serverInstanceCount: z$1.ZodNumber;
65751
+ toolkits: z$1.ZodArray<z$1.ZodString, "many">;
65752
+ }, "strip", z$1.ZodTypeAny, {
65753
+ name: string;
65754
+ id: string;
65755
+ toolkits: string[];
65756
+ authConfigIds: string[];
65757
+ allowedTools: string[];
65758
+ commands: {
65759
+ cursor: string;
65760
+ claude: string;
65761
+ windsurf: string;
65762
+ };
65763
+ MCPUrl: string;
65764
+ toolkitIcons: Record<string, string>;
65765
+ serverInstanceCount: number;
65766
+ }, {
65767
+ name: string;
65768
+ id: string;
65769
+ toolkits: string[];
65770
+ authConfigIds: string[];
65771
+ allowedTools: string[];
65772
+ commands: {
65773
+ cursor: string;
65774
+ claude: string;
65775
+ windsurf: string;
65776
+ };
65777
+ MCPUrl: string;
65778
+ toolkitIcons: Record<string, string>;
65779
+ serverInstanceCount: number;
65780
+ }>, "many">;
65781
+ currentPage: z$1.ZodNumber;
65782
+ totalPages: z$1.ZodNumber;
65783
+ }, "strip", z$1.ZodTypeAny, {
65784
+ items: {
65785
+ name: string;
65786
+ id: string;
65787
+ toolkits: string[];
65788
+ authConfigIds: string[];
65789
+ allowedTools: string[];
65790
+ commands: {
65791
+ cursor: string;
65792
+ claude: string;
65793
+ windsurf: string;
65794
+ };
65795
+ MCPUrl: string;
65796
+ toolkitIcons: Record<string, string>;
65797
+ serverInstanceCount: number;
65798
+ }[];
65799
+ totalPages: number;
65800
+ currentPage: number;
65801
+ }, {
65802
+ items: {
65803
+ name: string;
65804
+ id: string;
65805
+ toolkits: string[];
65806
+ authConfigIds: string[];
65807
+ allowedTools: string[];
65808
+ commands: {
65809
+ cursor: string;
65810
+ claude: string;
65811
+ windsurf: string;
65812
+ };
65813
+ MCPUrl: string;
65814
+ toolkitIcons: Record<string, string>;
65815
+ serverInstanceCount: number;
65816
+ }[];
65817
+ totalPages: number;
65818
+ currentPage: number;
65819
+ }>;
65820
+ type MCPListResponse = z$1.infer<typeof MCPListResponseSchema>;
65821
+ declare const MCPUpdateParamsSchema: z$1.ZodObject<{
65822
+ name: z$1.ZodOptional<z$1.ZodString>;
65823
+ toolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<[z$1.ZodObject<{
65824
+ toolkit: z$1.ZodOptional<z$1.ZodString>;
65825
+ authConfigId: z$1.ZodOptional<z$1.ZodString>;
65826
+ }, "strip", z$1.ZodTypeAny, {
65827
+ toolkit?: string | undefined;
65828
+ authConfigId?: string | undefined;
65829
+ }, {
65830
+ toolkit?: string | undefined;
65831
+ authConfigId?: string | undefined;
65832
+ }>, z$1.ZodString]>, "many">>;
65833
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
65834
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodBoolean>;
65835
+ }, "strip", z$1.ZodTypeAny, {
65836
+ name?: string | undefined;
65837
+ toolkits?: (string | {
65838
+ toolkit?: string | undefined;
65839
+ authConfigId?: string | undefined;
65840
+ })[] | undefined;
65841
+ allowedTools?: string[] | undefined;
65842
+ manuallyManageConnections?: boolean | undefined;
65843
+ }, {
65844
+ name?: string | undefined;
65845
+ toolkits?: (string | {
65846
+ toolkit?: string | undefined;
65847
+ authConfigId?: string | undefined;
65848
+ })[] | undefined;
65849
+ allowedTools?: string[] | undefined;
65850
+ manuallyManageConnections?: boolean | undefined;
65851
+ }>;
65852
+ type MCPUpdateParams = z$1.infer<typeof MCPUpdateParamsSchema>;
65853
+
65854
+ /**
65855
+ * MCP (Model Control Protocol) class
65856
+ * Handles MCP server operations.
65857
+ * When `config.experimental.mcp` is enabled, this class augments the features of `composio.mcp`.
65858
+ */
65859
+ declare class MCP$1 {
65860
+ client: Composio$1;
65861
+ constructor(client: Composio$1);
65862
+ /**
65863
+ * Create a new MCP configuration.
65864
+ * @param {Object} params - Parameters for creating the MCP configuration
65865
+ * @param {Array} params.authConfig - Array of auth configurations with id and allowed tools
65866
+ * @param {Object} params.options - Configuration options
65867
+ * @param {string} params.options.name - Unique name for the MCP configuration
65868
+ * @param {boolean} [params.options.manuallyManageConnections] - Whether to use chat-based authentication or manually connect accounts
65869
+ * @returns {Promise<McpServerCreateResponse<T>>} Created server details with instance getter
65870
+ *
65871
+ * @example
65872
+ * ```typescript
65873
+ * const server = await composio.mcpConfig.create("personal-mcp-server", {
65874
+ * toolkits: ["github", "slack"],
65875
+ * allowedTools: ["GMAIL_FETCH_EMAILS", "SLACK_SEND_MESSAGE"],
65876
+ * manuallyManageConnections: false
65877
+ * }
65878
+ * });
65879
+ *
65880
+ * const server = await composio.mcpConfig.create("personal-mcp-server", {
65881
+ * toolkits: [{ toolkit: "gmail", authConfigId: "ac_243434343" }],
65882
+ * allowedTools: ["GMAIL_FETCH_EMAILS"],
65883
+ * manuallyManageConnections: false
65884
+ * }
65885
+ * });
65886
+ * ```
65887
+ */
65888
+ create(name: string, mcpConfig: MCPConfigCreationParams): Promise<MCPConfigCreateResponse>;
65889
+ /**
65890
+ * List the MCP servers with optional filtering and pagination
65891
+ * @param {Object} options - Filtering and pagination options
65892
+ * @param {number} [options.page=1] - Page number for pagination (1-based)
65893
+ * @param {number} [options.limit=10] - Maximum number of items to return per page
65894
+ * @param {string[]} [options.toolkits=[]] - Array of toolkit names to filter by
65895
+ * @param {string[]} [options.authConfigs=[]] - Array of auth configuration IDs to filter by
65896
+ * @param {string} [options.name] - Filter by MCP server name (partial match)
65897
+ * @returns {Promise<MCPListResponse>} Paginated list of MCP servers with metadata
65898
+ *
65899
+ * @example
65900
+ * ```typescript
65901
+ * // List all MCP servers
65902
+ * const allServers = await composio.experimental.mcp.list({});
65903
+ *
65904
+ * // List with pagination
65905
+ * const pagedServers = await composio.experimental.mcp.list({
65906
+ * page: 2,
65907
+ * limit: 5
65908
+ * });
65909
+ *
65910
+ * // Filter by toolkit
65911
+ * const githubServers = await composio.experimental.mcp.list({
65912
+ * toolkits: ['github', 'slack']
65913
+ * });
65914
+ *
65915
+ * // Filter by name
65916
+ * const namedServers = await composio.experimental.mcp.list({
65917
+ * name: 'personal'
65918
+ * });
65919
+ * ```
65920
+ */
65921
+ list(options: MCPListParams): Promise<MCPListResponse>;
65922
+ /**
65923
+ * Retrieve detailed information about a specific MCP server by its ID
65924
+ * @param {string} serverId - The unique identifier of the MCP server to retrieve
65925
+ * @returns {Promise<MCPItem>} Complete MCP server details including configuration, tools, and metadata
65926
+ *
65927
+ * @example
65928
+ * ```typescript
65929
+ * // Get a specific MCP server by ID
65930
+ * const server = await composio.experimental.mcp.get("mcp_12345");
65931
+ *
65932
+ * console.log(server.name); // "My Personal MCP Server"
65933
+ * console.log(server.allowedTools); // ["GITHUB_CREATE_ISSUE", "SLACK_SEND_MESSAGE"]
65934
+ * console.log(server.toolkits); // ["github", "slack"]
65935
+ * console.log(server.serverInstanceCount); // 3
65936
+ *
65937
+ * // Access setup commands for different clients
65938
+ * console.log(server.commands.claude); // Claude setup command
65939
+ * console.log(server.commands.cursor); // Cursor setup command
65940
+ * console.log(server.commands.windsurf); // Windsurf setup command
65941
+ *
65942
+ * // Use the MCP URL for direct connections
65943
+ * const mcpUrl = server.MCPUrl;
65944
+ * ```
65945
+ *
65946
+ * @throws {ValidationError} When the server ID is invalid or server not found
65947
+ */
65948
+ get(serverId: string): Promise<MCPItem>;
65949
+ /**
65950
+ * Delete an MCP server configuration permanently
65951
+ * @param {string} serverId - The unique identifier of the MCP server to delete
65952
+ * @returns {Promise<{id: string; deleted: boolean}>} Confirmation object with server ID and deletion status
65953
+ *
65954
+ * @example
65955
+ * ```typescript
65956
+ * // Delete an MCP server by ID
65957
+ * const result = await composio.experimental.mcp.delete("mcp_12345");
65958
+ *
65959
+ * if (result.deleted) {
65960
+ * console.log(`Server ${result.id} has been successfully deleted`);
65961
+ * } else {
65962
+ * console.log(`Failed to delete server ${result.id}`);
65963
+ * }
65964
+ *
65965
+ * // Example with error handling
65966
+ * try {
65967
+ * const result = await composio.experimental.mcp.delete("mcp_12345");
65968
+ * console.log("Deletion successful:", result);
65969
+ * } catch (error) {
65970
+ * console.error("Failed to delete MCP server:", error.message);
65971
+ * }
65972
+ *
65973
+ * // Delete and verify from list
65974
+ * await composio.experimental.mcp.delete("mcp_12345");
65975
+ * const servers = await composio.experimental.mcp.list({});
65976
+ * const serverExists = servers.items.some(server => server.id === "mcp_12345");
65977
+ * console.log("Server still exists:", serverExists); // Should be false
65978
+ * ```
65979
+ *
65980
+ * @throws {ValidationError} When the server ID is invalid or server not found
65981
+ * @throws {Error} When the server cannot be deleted due to active connections or other constraints
65982
+ *
65983
+ * @warning This operation is irreversible. Once deleted, the MCP server configuration and all its associated data will be permanently removed.
65984
+ */
65985
+ delete(serverId: string): Promise<{
65986
+ id: string;
65987
+ deleted: boolean;
65988
+ }>;
65989
+ /**
65990
+ * Update an existing MCP server configuration with new settings
65991
+ * @param {string} serverId - The unique identifier of the MCP server to update
65992
+ * @param {Object} config - Update configuration parameters
65993
+ * @param {string} [config.name] - New name for the MCP server
65994
+ * @param {Array} [config.toolkits] - Updated toolkit configurations
65995
+ * @param {string} [config.toolkits[].toolkit] - Toolkit identifier (e.g., "github", "slack")
65996
+ * @param {string} [config.toolkits[].authConfigId] - Auth configuration ID for the toolkit
65997
+ * @param {string[]} [config.toolkits[].allowedTools] - Specific tools to enable for this toolkit
65998
+ * @param {boolean} [config.manuallyManageConnections] - Whether to manually manage account connections
65999
+ * @returns {Promise<MCPItem>} Updated MCP server configuration with all details
66000
+ *
66001
+ * @example
66002
+ * ```typescript
66003
+ * // Update server name only
66004
+ * const updatedServer = await composio.experimental.mcp.update("mcp_12345", {
66005
+ * name: "My Updated MCP Server"
66006
+ * });
66007
+ *
66008
+ * // Update toolkits and tools
66009
+ * const serverWithNewTools = await composio.experimental.mcp.update("mcp_12345", {
66010
+ * toolkits: [
66011
+ * {
66012
+ * toolkit: "github",
66013
+ * authConfigId: "auth_abc123",
66014
+ * allowedTools: ["GITHUB_CREATE_ISSUE", "GITHUB_LIST_REPOS"]
66015
+ * },
66016
+ * {
66017
+ * toolkit: "slack",
66018
+ * authConfigId: "auth_xyz789",
66019
+ * allowedTools: ["SLACK_SEND_MESSAGE", "SLACK_LIST_CHANNELS"]
66020
+ * }
66021
+ * ]
66022
+ * });
66023
+ *
66024
+ * // Update connection management setting
66025
+ * const serverWithManualAuth = await composio.experimental.mcp.update("mcp_12345", {
66026
+ * name: "Manual Auth Server",
66027
+ * manuallyManageConnections: true
66028
+ * });
66029
+ *
66030
+ * // Complete update example
66031
+ * const fullyUpdatedServer = await composio.experimental.mcp.update("mcp_12345", {
66032
+ * name: "Production MCP Server",
66033
+ * toolkits: [
66034
+ * {
66035
+ * toolkit: "gmail",
66036
+ * authConfigId: "auth_gmail_prod",
66037
+ * }
66038
+ * ],
66039
+ * allowedTools: ["GMAIL_SEND_EMAIL", "GMAIL_FETCH_EMAILS"]
66040
+ * manuallyManageConnections: false
66041
+ * });
66042
+ *
66043
+ * console.log("Updated server:", fullyUpdatedServer.name);
66044
+ * console.log("New tools:", fullyUpdatedServer.allowedTools);
66045
+ * ```
66046
+ *
66047
+ * @throws {ValidationError} When the update parameters are invalid or malformed
66048
+ * @throws {Error} When the server ID doesn't exist or update fails
66049
+ *
66050
+ * @note Only provided fields will be updated. Omitted fields will retain their current values.
66051
+ * @note When updating toolkits, the entire toolkit configuration is replaced, not merged.
66052
+ */
66053
+ update(serverId: string, config: MCPUpdateParams): Promise<MCPItem>;
66054
+ /**
66055
+ * Get server URLs for an existing MCP server.
66056
+ * The response is wrapped according to the provider's specifications.
66057
+ *
66058
+ * @example
66059
+ * ```typescript
66060
+ * import { Composio } from "@composio/code";
66061
+ *
66062
+ * const composio = new Composio();
66063
+ * const mcp = await composio.experimental.mcp.generate("default", "<mcp_config_id>");
66064
+ * ```
66065
+ *
66066
+ * @param userId {string} external user id from your database for whom you want the server for
66067
+ * @param mcpConfigId {string} config id of the MCPConfig for which you want to create a server for
66068
+ * @param options {object} additional options
66069
+ * @param options.isChatAuth {boolean} Authenticate the users via chat when they use the MCP Server
66070
+ */
66071
+ generate(userId: string, mcpConfigId: string, options?: MCPGetInstanceParams): Promise<MCPServerInstance>;
66072
+ }
66073
+
65284
66074
  /**
65285
66075
  * @fileoverview MCP class for Composio SDK, used to manage MCP servers.
65286
66076
  *
65287
66077
  * @module MCP
65288
66078
  */
65289
66079
 
66080
+ /**
66081
+ * Extract the MCP response type from a provider.
66082
+ */
66083
+ type ExtractMcpResponseType<T> = T extends BaseComposioProvider<unknown, unknown, infer TMcp> ? TMcp : McpServerGetResponse;
65290
66084
  /**
65291
66085
  * MCP (Model Control Protocol) class
65292
66086
  * Handles MCP server operations
65293
66087
  */
65294
- declare class MCP<T = McpServerGetResponse> {
66088
+ declare class MCP<TProvider extends BaseComposioProvider<unknown, unknown, unknown>> {
65295
66089
  private client;
65296
- private provider?;
65297
66090
  private toolkits;
65298
- constructor(client: ComposioClient, provider?: BaseComposioProvider<unknown, unknown, unknown>);
66091
+ protected provider: TProvider;
66092
+ readonly TMcpResponse: ExtractMcpResponseType<TProvider>;
66093
+ constructor(client: ComposioClient, provider: TProvider);
65299
66094
  /**
65300
66095
  * Validates toolkit configurations using Zod schema
65301
66096
  * @private
@@ -65311,7 +66106,7 @@ declare class MCP<T = McpServerGetResponse> {
65311
66106
  * @param {Object} params.options - Server creation options
65312
66107
  * @param {string} params.options.name - Unique name for the MCP server
65313
66108
  * @param {boolean} [params.options.isChatAuth] - Whether to use chat-based authentication
65314
- * @returns {Promise<McpServerCreateResponse<T>>} Created server details with instance getter
66109
+ * @returns {Promise<McpServerCreateResponse<TMcpResponse>>} Created server details with instance getter
65315
66110
  *
65316
66111
  * @example
65317
66112
  * ```typescript
@@ -65337,7 +66132,7 @@ declare class MCP<T = McpServerGetResponse> {
65337
66132
  allowedTools: string[];
65338
66133
  }>, options: {
65339
66134
  isChatAuth?: boolean;
65340
- }): Promise<McpServerCreateResponse<T>>;
66135
+ }): Promise<McpServerCreateResponse<typeof this.TMcpResponse>>;
65341
66136
  /**
65342
66137
  * Get the connection status of a user for an MCP server
65343
66138
  *
@@ -65420,7 +66215,7 @@ declare class MCP<T = McpServerGetResponse> {
65420
66215
  * @param {Object} [options] - Additional options for server configuration
65421
66216
  * @param {string[]} [options.limitTools] - Subset of tools to limit (from MCP config)
65422
66217
  * @param {boolean} [options.isChatAuth] - Whether to use chat-based authentication
65423
- * @returns {Promise<T>} Transformed server URLs in provider-specific format
66218
+ * @returns {Promise<TMcpResponse>} Transformed server URLs in provider-specific format
65424
66219
  *
65425
66220
  * @example
65426
66221
  * ```typescript
@@ -65433,11 +66228,12 @@ declare class MCP<T = McpServerGetResponse> {
65433
66228
  * isChatAuth: true
65434
66229
  * });
65435
66230
  * ```
66231
+ *
65436
66232
  */
65437
66233
  getServer(serverId: string, userId: string, options?: {
65438
66234
  limitTools?: string[];
65439
66235
  isChatAuth?: boolean;
65440
- }): Promise<T>;
66236
+ }): Promise<typeof this.TMcpResponse>;
65441
66237
  /**
65442
66238
  * List MCP server configurations with filtering options
65443
66239
  * @param {Object} options - Filtering and pagination options
@@ -65545,6 +66341,7 @@ declare class MCP<T = McpServerGetResponse> {
65545
66341
  * @param serverName - Name of the MCP server
65546
66342
 
65547
66343
  * @returns Transformed response in appropriate format
66344
+ * @deprecated
65548
66345
  */
65549
66346
  private wrapMcpServerResponse;
65550
66347
  /**
@@ -65574,7 +66371,7 @@ declare class MCP<T = McpServerGetResponse> {
65574
66371
 
65575
66372
  type OpenAiTool = OpenAI.ChatCompletionTool;
65576
66373
  type OpenAiToolCollection = Array<OpenAiTool>;
65577
- declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection, OpenAiTool> {
66374
+ declare class OpenAIProvider extends BaseNonAgenticProvider<OpenAiToolCollection, OpenAiTool, McpServerGetResponse> {
65578
66375
  readonly name = "openai";
65579
66376
  /**
65580
66377
  * Creates a new instance of the OpenAIProvider.
@@ -65942,6 +66739,73 @@ declare class Files {
65942
66739
  }): Promise<FileDownloadData>;
65943
66740
  }
65944
66741
 
66742
+ declare const ToolRouterConfigSchema: z$1.ZodObject<{
66743
+ toolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<[z$1.ZodString, z$1.ZodObject<{
66744
+ toolkit: z$1.ZodString;
66745
+ authConfigId: z$1.ZodOptional<z$1.ZodString>;
66746
+ }, "strip", z$1.ZodTypeAny, {
66747
+ toolkit: string;
66748
+ authConfigId?: string | undefined;
66749
+ }, {
66750
+ toolkit: string;
66751
+ authConfigId?: string | undefined;
66752
+ }>]>, "many">>;
66753
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodBoolean>;
66754
+ }, "strip", z$1.ZodTypeAny, {
66755
+ toolkits?: (string | {
66756
+ toolkit: string;
66757
+ authConfigId?: string | undefined;
66758
+ })[] | undefined;
66759
+ manuallyManageConnections?: boolean | undefined;
66760
+ }, {
66761
+ toolkits?: (string | {
66762
+ toolkit: string;
66763
+ authConfigId?: string | undefined;
66764
+ })[] | undefined;
66765
+ manuallyManageConnections?: boolean | undefined;
66766
+ }>;
66767
+ type ToolRouterConfig = z$1.infer<typeof ToolRouterConfigSchema>;
66768
+ declare const ToolRouterSessionSchema: z$1.ZodObject<{
66769
+ sessionId: z$1.ZodString;
66770
+ url: z$1.ZodString;
66771
+ }, "strip", z$1.ZodTypeAny, {
66772
+ sessionId: string;
66773
+ url: string;
66774
+ }, {
66775
+ sessionId: string;
66776
+ url: string;
66777
+ }>;
66778
+ type ToolRouterSession = z$1.infer<typeof ToolRouterSessionSchema>;
66779
+
66780
+ declare class ToolRouter {
66781
+ private client;
66782
+ constructor(client: Composio$1);
66783
+ /**
66784
+ * Creates a new Session for the tool router
66785
+ *
66786
+ * @param userId {string} The user id to create the session for
66787
+ * @param routerConfig {ToolRouterConfig} The router config to use
66788
+ * @returns {Promise<ToolRouterSession>} The tool router session
66789
+ *
66790
+ * @example
66791
+ * ```typescript
66792
+ * import { Composio } form "@composio/core"
66793
+ *
66794
+ * const composio = new Composio()
66795
+ * const userId = "xxx-ooo-xxxx"
66796
+ *
66797
+ * const mcpSession = await composio.experimental.toolRouter.createSession(userId, {
66798
+ * toolkits: ["github", "hackernews", "slack"]
66799
+ * })
66800
+ *
66801
+ * // with auth configs
66802
+ * const mcpSession = await composio.experimental.toolRouter.createSession(userId, {
66803
+ * toolkits: [{ toolkit: "github", authConfingId: "ac_123455344"}]
66804
+ * ```
66805
+ */
66806
+ createSession(userId: string, routerConfig?: ToolRouterConfig): Promise<ToolRouterSession>;
66807
+ }
66808
+
65945
66809
  type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unknown> = OpenAIProvider> = {
65946
66810
  /**
65947
66811
  * The API key for the Composio API.
@@ -66005,10 +66869,6 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
66005
66869
  */
66006
66870
  toolkitVersions?: ToolkitVersionParam;
66007
66871
  };
66008
- /**
66009
- * Extract the MCP response type from a provider
66010
- */
66011
- type ExtractMcpResponseType<T> = T extends BaseComposioProvider<unknown, unknown, infer TMcp> ? TMcp : McpServerGetResponse;
66012
66872
  /**
66013
66873
  * This is the core class for Composio.
66014
66874
  * It is used to initialize the Composio SDK and provide a global configuration.
@@ -66018,7 +66878,7 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
66018
66878
  * The Composio API client.
66019
66879
  * @type {ComposioClient}
66020
66880
  */
66021
- private client;
66881
+ protected client: ComposioClient;
66022
66882
  /**
66023
66883
  * The configuration for the Composio SDK.
66024
66884
  * @type {ComposioConfig<TProvider>}
@@ -66034,7 +66894,19 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
66034
66894
  files: Files;
66035
66895
  authConfigs: AuthConfigs;
66036
66896
  connectedAccounts: ConnectedAccounts;
66037
- mcp: MCP<ExtractMcpResponseType<TProvider>>;
66897
+ mcp: MCP$1;
66898
+ /**
66899
+ * Experimental features
66900
+ */
66901
+ experimental: {
66902
+ toolRouter: ToolRouter;
66903
+ };
66904
+ /**
66905
+ * Deprecated features
66906
+ */
66907
+ deprecated: {
66908
+ mcp: MCP<TProvider>;
66909
+ };
66038
66910
  /**
66039
66911
  * Creates a new instance of the Composio SDK.
66040
66912
  *