@composio/core 0.32.0 → 0.33.1-canary.1

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 (30) hide show
  1. package/dist/{CustomTool-CBx9kzea.d.mts → CustomTool-BI7pmomm.d.mts} +1 -1
  2. package/dist/{Telemetry-BWKZmDxM.mjs → Telemetry-CcCuFVUb.mjs} +1 -1
  3. package/dist/{composio-CPf6NHnB.d.mts → composio-xb_x1ykP.d.mts} +88 -57
  4. package/dist/{customTool.types-BSbIG1OG.d.mts → customTool.types-CneGTXg4.d.mts} +310 -56
  5. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +52 -8
  6. package/dist/experimental/index.d.mts +2 -2
  7. package/dist/{fileUtils.node-BJUYMEph.mjs → fileUtils.node-DPMtE0ER.mjs} +1 -65
  8. package/dist/index.d.mts +5 -238
  9. package/dist/index.mjs +52 -23
  10. package/dist/jsonSchema-CDHLYm7d.d.mts +237 -0
  11. package/dist/{jsonSchema-BZoXGUCr.mjs → jsonSchema-CfZwBS13.mjs} +5 -1
  12. package/dist/models/Files.node.mjs +3 -3
  13. package/dist/{sensitiveFileUploadPaths-CcbMAYCC.mjs → sensitiveFileUploadPaths-6NcnFSyX.mjs} +61 -70
  14. package/dist/{types-ns3Q_WrP.d.mts → types-B6qJOxJX.d.mts} +2 -2
  15. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  16. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  17. package/dist/utils/json-schema.d.mts +2 -1
  18. package/dist/utils/json-schema.mjs +2 -1
  19. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  20. package/dist/utils/modifiers/FileToolModifier.node.mjs +3 -3
  21. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  22. package/package.json +6 -6
  23. package/src/models/ConnectedAccounts.ts +71 -11
  24. package/src/types/connectedAccounts.types.ts +59 -1
  25. package/src/types/toolRouter.types.ts +2 -1
  26. package/src/utils/fileUtils.node.ts +1 -83
  27. package/src/utils/json-schema.ts +6 -0
  28. package/src/utils/jsonSchema.ts +17 -4
  29. package/src/utils/mime.ts +25 -385
  30. package/src/utils/mimeTables.generated.ts +356 -0
@@ -1,4 +1,4 @@
1
- import { S as LocalTool, o as CreateLocalToolParams, s as CreateLocalToolkitParams, t as AnyZodSchema, w as LocalToolkit } from "./customTool.types-BSbIG1OG.mjs";
1
+ import { S as LocalTool, o as CreateLocalToolParams, s as CreateLocalToolkitParams, t as AnyZodSchema, w as LocalToolkit } from "./customTool.types-CneGTXg4.mjs";
2
2
  import "@composio/client/resources/tool-router/session";
3
3
  /**
4
4
  * Create a local tool for use in tool router sessions.
@@ -1,5 +1,5 @@
1
1
  import { l as logger, r as ComposioError$1, u as redactSensitiveText, v as getEnvVariable } from "./SsrfErrors-BekZPeWY.mjs";
2
- import { h as getRandomUUID } from "./sensitiveFileUploadPaths-CcbMAYCC.mjs";
2
+ import { h as getRandomUUID } from "./sensitiveFileUploadPaths-6NcnFSyX.mjs";
3
3
  import { ComposioError } from "@composio/client";
4
4
 
5
5
  // src/types/telemetry.types.ts
@@ -1,4 +1,4 @@
1
- import { $n as ConnectedAccountListResponse, Ar as UpdateConnectedAccountParams, Bi as ToolCallSession, Di as McpServerGetResponse, Fa as SessionExecuteMetaModifiers, Fn as ConnectionRequest, Gn as ConnectedAccountCompleteAuthResponse, Ii as ExecuteToolFnOptions, J as ToolRouterCreateSessionConfig, Ja as SchemaModifierOptions, Ma as ExecuteToolModifiers, Mi as McpUrlResponse, Nr as BaseComposioProvider, Or as UpdateConnectedAccountAclParams, P as Session, Pa as ProviderOptions, Pr as BaseNonAgenticProvider, Qa as ToolExecuteParams, S as LocalTool, Un as ConnectedAccountCompleteAuthParams, Xa as ToolExecuteMetaParams, Ya as Tool, Zn as ConnectedAccountListParams, _r as CreateConnectedAccountLinkOptions, eo as ToolExecuteResponse, go as ToolkitVersionParam, ir as ConnectedAccountRetrieveResponse, lo as ToolRetrievalOptions, no as ToolList, nr as ConnectedAccountRefreshOptions, or as ConnectedAccountRevokeResponse, ro as ToolListParams, so as ToolProxyParams, w as LocalToolkit, wt as ToolRouterSessionDeleteResponse, xr as CreateConnectedAccountOptions, z as SessionWithoutMcp } from "./customTool.types-BSbIG1OG.mjs";
1
+ import { $n as ConnectedAccountListResponse, Ar as UpdateConnectedAccountAclParams, Fn as ConnectionRequest, Fr as BaseComposioProvider, Gn as ConnectedAccountCompleteAuthResponse, Hi as ToolCallSession, Ia as ProviderOptions, Ir as BaseNonAgenticProvider, J as ToolRouterCreateSessionConfig, La as SessionExecuteMetaModifiers, Mr as UpdateConnectedAccountParams, Or as PatchConnectedAccountParams, P as Session, Pa as ExecuteToolModifiers, Pi as McpUrlResponse, Qa as ToolExecuteMetaParams, Ri as ExecuteToolFnOptions, S as LocalTool, Un as ConnectedAccountCompleteAuthParams, Xa as SchemaModifierOptions, Za as Tool, Zn as ConnectedAccountListParams, _r as CreateConnectedAccountLinkOptions, ao as ToolListParams, do as ToolRetrievalOptions, eo as ToolExecuteParams, io as ToolList, ir as ConnectedAccountRetrieveResponse, ki as McpServerGetResponse, lo as ToolProxyParams, no as ToolExecuteResponse, nr as ConnectedAccountRefreshOptions, or as ConnectedAccountRevokeResponse, vo as ToolkitVersionParam, w as LocalToolkit, wt as ToolRouterSessionDeleteResponse, xr as CreateConnectedAccountOptions, z as SessionWithoutMcp } from "./customTool.types-CneGTXg4.mjs";
2
2
  import { t as ComposioRequestOptions } from "./requestOptions.types-DWrTcbss.mjs";
3
3
  import ComposioClient, { Composio as Composio$1 } from "@composio/client";
4
4
  import z, { z as z$1 } from "zod/v3";
@@ -602,26 +602,26 @@ declare const ToolKitMetaSchema: z$1.ZodObject<{
602
602
  logo?: string | undefined;
603
603
  description?: string | undefined;
604
604
  availableVersions?: string[] | undefined;
605
+ createdAt?: string | undefined;
605
606
  updatedAt?: string | undefined;
606
607
  categories?: {
607
608
  slug: string;
608
609
  name: string;
609
610
  }[] | undefined;
610
611
  appUrl?: string | undefined;
611
- createdAt?: string | undefined;
612
612
  toolsCount?: number | undefined;
613
613
  triggersCount?: number | undefined;
614
614
  }, {
615
615
  logo?: string | undefined;
616
616
  description?: string | undefined;
617
617
  availableVersions?: string[] | undefined;
618
+ createdAt?: string | undefined;
618
619
  updatedAt?: string | undefined;
619
620
  categories?: {
620
621
  slug: string;
621
622
  name: string;
622
623
  }[] | undefined;
623
624
  appUrl?: string | undefined;
624
- createdAt?: string | undefined;
625
625
  toolsCount?: number | undefined;
626
626
  triggersCount?: number | undefined;
627
627
  }>;
@@ -651,26 +651,26 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
651
651
  logo?: string | undefined;
652
652
  description?: string | undefined;
653
653
  availableVersions?: string[] | undefined;
654
+ createdAt?: string | undefined;
654
655
  updatedAt?: string | undefined;
655
656
  categories?: {
656
657
  slug: string;
657
658
  name: string;
658
659
  }[] | undefined;
659
660
  appUrl?: string | undefined;
660
- createdAt?: string | undefined;
661
661
  toolsCount?: number | undefined;
662
662
  triggersCount?: number | undefined;
663
663
  }, {
664
664
  logo?: string | undefined;
665
665
  description?: string | undefined;
666
666
  availableVersions?: string[] | undefined;
667
+ createdAt?: string | undefined;
667
668
  updatedAt?: string | undefined;
668
669
  categories?: {
669
670
  slug: string;
670
671
  name: string;
671
672
  }[] | undefined;
672
673
  appUrl?: string | undefined;
673
- createdAt?: string | undefined;
674
674
  toolsCount?: number | undefined;
675
675
  triggersCount?: number | undefined;
676
676
  }>;
@@ -685,13 +685,13 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
685
685
  logo?: string | undefined;
686
686
  description?: string | undefined;
687
687
  availableVersions?: string[] | undefined;
688
+ createdAt?: string | undefined;
688
689
  updatedAt?: string | undefined;
689
690
  categories?: {
690
691
  slug: string;
691
692
  name: string;
692
693
  }[] | undefined;
693
694
  appUrl?: string | undefined;
694
- createdAt?: string | undefined;
695
695
  toolsCount?: number | undefined;
696
696
  triggersCount?: number | undefined;
697
697
  };
@@ -706,13 +706,13 @@ declare const ToolKitItemSchema: z$1.ZodObject<{
706
706
  logo?: string | undefined;
707
707
  description?: string | undefined;
708
708
  availableVersions?: string[] | undefined;
709
+ createdAt?: string | undefined;
709
710
  updatedAt?: string | undefined;
710
711
  categories?: {
711
712
  slug: string;
712
713
  name: string;
713
714
  }[] | undefined;
714
715
  appUrl?: string | undefined;
715
- createdAt?: string | undefined;
716
716
  toolsCount?: number | undefined;
717
717
  triggersCount?: number | undefined;
718
718
  };
@@ -747,26 +747,26 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
747
747
  logo?: string | undefined;
748
748
  description?: string | undefined;
749
749
  availableVersions?: string[] | undefined;
750
+ createdAt?: string | undefined;
750
751
  updatedAt?: string | undefined;
751
752
  categories?: {
752
753
  slug: string;
753
754
  name: string;
754
755
  }[] | undefined;
755
756
  appUrl?: string | undefined;
756
- createdAt?: string | undefined;
757
757
  toolsCount?: number | undefined;
758
758
  triggersCount?: number | undefined;
759
759
  }, {
760
760
  logo?: string | undefined;
761
761
  description?: string | undefined;
762
762
  availableVersions?: string[] | undefined;
763
+ createdAt?: string | undefined;
763
764
  updatedAt?: string | undefined;
764
765
  categories?: {
765
766
  slug: string;
766
767
  name: string;
767
768
  }[] | undefined;
768
769
  appUrl?: string | undefined;
769
- createdAt?: string | undefined;
770
770
  toolsCount?: number | undefined;
771
771
  triggersCount?: number | undefined;
772
772
  }>;
@@ -781,13 +781,13 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
781
781
  logo?: string | undefined;
782
782
  description?: string | undefined;
783
783
  availableVersions?: string[] | undefined;
784
+ createdAt?: string | undefined;
784
785
  updatedAt?: string | undefined;
785
786
  categories?: {
786
787
  slug: string;
787
788
  name: string;
788
789
  }[] | undefined;
789
790
  appUrl?: string | undefined;
790
- createdAt?: string | undefined;
791
791
  toolsCount?: number | undefined;
792
792
  triggersCount?: number | undefined;
793
793
  };
@@ -802,13 +802,13 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
802
802
  logo?: string | undefined;
803
803
  description?: string | undefined;
804
804
  availableVersions?: string[] | undefined;
805
+ createdAt?: string | undefined;
805
806
  updatedAt?: string | undefined;
806
807
  categories?: {
807
808
  slug: string;
808
809
  name: string;
809
810
  }[] | undefined;
810
811
  appUrl?: string | undefined;
811
- createdAt?: string | undefined;
812
812
  toolsCount?: number | undefined;
813
813
  triggersCount?: number | undefined;
814
814
  };
@@ -1463,26 +1463,26 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1463
1463
  logo?: string | undefined;
1464
1464
  description?: string | undefined;
1465
1465
  availableVersions?: string[] | undefined;
1466
+ createdAt?: string | undefined;
1466
1467
  updatedAt?: string | undefined;
1467
1468
  categories?: {
1468
1469
  slug: string;
1469
1470
  name: string;
1470
1471
  }[] | undefined;
1471
1472
  appUrl?: string | undefined;
1472
- createdAt?: string | undefined;
1473
1473
  toolsCount?: number | undefined;
1474
1474
  triggersCount?: number | undefined;
1475
1475
  }, {
1476
1476
  logo?: string | undefined;
1477
1477
  description?: string | undefined;
1478
1478
  availableVersions?: string[] | undefined;
1479
+ createdAt?: string | undefined;
1479
1480
  updatedAt?: string | undefined;
1480
1481
  categories?: {
1481
1482
  slug: string;
1482
1483
  name: string;
1483
1484
  }[] | undefined;
1484
1485
  appUrl?: string | undefined;
1485
- createdAt?: string | undefined;
1486
1486
  toolsCount?: number | undefined;
1487
1487
  triggersCount?: number | undefined;
1488
1488
  }>;
@@ -2062,13 +2062,13 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
2062
2062
  logo?: string | undefined;
2063
2063
  description?: string | undefined;
2064
2064
  availableVersions?: string[] | undefined;
2065
+ createdAt?: string | undefined;
2065
2066
  updatedAt?: string | undefined;
2066
2067
  categories?: {
2067
2068
  slug: string;
2068
2069
  name: string;
2069
2070
  }[] | undefined;
2070
2071
  appUrl?: string | undefined;
2071
- createdAt?: string | undefined;
2072
2072
  toolsCount?: number | undefined;
2073
2073
  triggersCount?: number | undefined;
2074
2074
  };
@@ -2154,13 +2154,13 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
2154
2154
  logo?: string | undefined;
2155
2155
  description?: string | undefined;
2156
2156
  availableVersions?: string[] | undefined;
2157
+ createdAt?: string | undefined;
2157
2158
  updatedAt?: string | undefined;
2158
2159
  categories?: {
2159
2160
  slug: string;
2160
2161
  name: string;
2161
2162
  }[] | undefined;
2162
2163
  appUrl?: string | undefined;
2163
- createdAt?: string | undefined;
2164
2164
  toolsCount?: number | undefined;
2165
2165
  triggersCount?: number | undefined;
2166
2166
  };
@@ -2763,7 +2763,6 @@ declare const CreateComposioManagedAuthConfigParamsSchema: z$1.ZodObject<{
2763
2763
  }, "strip", z$1.ZodTypeAny, {
2764
2764
  type: "use_composio_managed_auth";
2765
2765
  name?: string | undefined;
2766
- managedAppId?: string | undefined;
2767
2766
  credentials?: z$1.objectOutputType<{
2768
2767
  scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2769
2768
  user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
@@ -2772,10 +2771,10 @@ declare const CreateComposioManagedAuthConfigParamsSchema: z$1.ZodObject<{
2772
2771
  toolsForConnectedAccountCreation?: string[] | undefined;
2773
2772
  } | undefined;
2774
2773
  isEnabledForToolRouter?: boolean | undefined;
2774
+ managedAppId?: string | undefined;
2775
2775
  }, {
2776
2776
  type: "use_composio_managed_auth";
2777
2777
  name?: string | undefined;
2778
- managedAppId?: string | undefined;
2779
2778
  credentials?: z$1.objectInputType<{
2780
2779
  scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2781
2780
  user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
@@ -2784,6 +2783,7 @@ declare const CreateComposioManagedAuthConfigParamsSchema: z$1.ZodObject<{
2784
2783
  toolsForConnectedAccountCreation?: string[] | undefined;
2785
2784
  } | undefined;
2786
2785
  isEnabledForToolRouter?: boolean | undefined;
2786
+ managedAppId?: string | undefined;
2787
2787
  }>;
2788
2788
  /**
2789
2789
  * Discriminated union of all possible auth config types.
@@ -2866,7 +2866,6 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2866
2866
  }, "strip", z$1.ZodTypeAny, {
2867
2867
  type: "use_composio_managed_auth";
2868
2868
  name?: string | undefined;
2869
- managedAppId?: string | undefined;
2870
2869
  credentials?: z$1.objectOutputType<{
2871
2870
  scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2872
2871
  user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
@@ -2875,10 +2874,10 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2875
2874
  toolsForConnectedAccountCreation?: string[] | undefined;
2876
2875
  } | undefined;
2877
2876
  isEnabledForToolRouter?: boolean | undefined;
2877
+ managedAppId?: string | undefined;
2878
2878
  }, {
2879
2879
  type: "use_composio_managed_auth";
2880
2880
  name?: string | undefined;
2881
- managedAppId?: string | undefined;
2882
2881
  credentials?: z$1.objectInputType<{
2883
2882
  scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2884
2883
  user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
@@ -2887,6 +2886,7 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2887
2886
  toolsForConnectedAccountCreation?: string[] | undefined;
2888
2887
  } | undefined;
2889
2888
  isEnabledForToolRouter?: boolean | undefined;
2889
+ managedAppId?: string | undefined;
2890
2890
  }>]>;
2891
2891
  type CreateAuthConfigParams = z$1.infer<typeof CreateAuthConfigParamsSchema>;
2892
2892
  declare const CreateAuthConfigResponseSchema: z$1.ZodObject<{
@@ -2959,7 +2959,6 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2959
2959
  noOfConnections: number;
2960
2960
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2961
2961
  isComposioManaged?: boolean | undefined;
2962
- createdAt?: string | undefined;
2963
2962
  credentials?: Record<string, unknown> | undefined;
2964
2963
  toolAccessConfig?: {
2965
2964
  toolsForConnectedAccountCreation?: string[] | undefined;
@@ -2969,6 +2968,7 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2969
2968
  expectedInputFields?: unknown[] | undefined;
2970
2969
  restrictToFollowingTools?: string[] | undefined;
2971
2970
  createdBy?: string | undefined;
2971
+ createdAt?: string | undefined;
2972
2972
  lastUpdatedAt?: string | undefined;
2973
2973
  }, {
2974
2974
  name: string;
@@ -2982,7 +2982,6 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2982
2982
  noOfConnections: number;
2983
2983
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
2984
2984
  isComposioManaged?: boolean | undefined;
2985
- createdAt?: string | undefined;
2986
2985
  credentials?: Record<string, unknown> | undefined;
2987
2986
  toolAccessConfig?: {
2988
2987
  toolsForConnectedAccountCreation?: string[] | undefined;
@@ -2992,6 +2991,7 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2992
2991
  expectedInputFields?: unknown[] | undefined;
2993
2992
  restrictToFollowingTools?: string[] | undefined;
2994
2993
  createdBy?: string | undefined;
2994
+ createdAt?: string | undefined;
2995
2995
  lastUpdatedAt?: string | undefined;
2996
2996
  }>;
2997
2997
  type AuthConfigRetrieveResponse = z$1.infer<typeof AuthConfigRetrieveResponseSchema>;
@@ -3069,7 +3069,6 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3069
3069
  noOfConnections: number;
3070
3070
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
3071
3071
  isComposioManaged?: boolean | undefined;
3072
- createdAt?: string | undefined;
3073
3072
  credentials?: Record<string, unknown> | undefined;
3074
3073
  toolAccessConfig?: {
3075
3074
  toolsForConnectedAccountCreation?: string[] | undefined;
@@ -3079,6 +3078,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3079
3078
  expectedInputFields?: unknown[] | undefined;
3080
3079
  restrictToFollowingTools?: string[] | undefined;
3081
3080
  createdBy?: string | undefined;
3081
+ createdAt?: string | undefined;
3082
3082
  lastUpdatedAt?: string | undefined;
3083
3083
  }, {
3084
3084
  name: string;
@@ -3092,7 +3092,6 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3092
3092
  noOfConnections: number;
3093
3093
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
3094
3094
  isComposioManaged?: boolean | undefined;
3095
- createdAt?: string | undefined;
3096
3095
  credentials?: Record<string, unknown> | undefined;
3097
3096
  toolAccessConfig?: {
3098
3097
  toolsForConnectedAccountCreation?: string[] | undefined;
@@ -3102,6 +3101,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3102
3101
  expectedInputFields?: unknown[] | undefined;
3103
3102
  restrictToFollowingTools?: string[] | undefined;
3104
3103
  createdBy?: string | undefined;
3104
+ createdAt?: string | undefined;
3105
3105
  lastUpdatedAt?: string | undefined;
3106
3106
  }>, "many">;
3107
3107
  nextCursor: z$1.ZodNullable<z$1.ZodString>;
@@ -3119,7 +3119,6 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3119
3119
  noOfConnections: number;
3120
3120
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
3121
3121
  isComposioManaged?: boolean | undefined;
3122
- createdAt?: string | undefined;
3123
3122
  credentials?: Record<string, unknown> | undefined;
3124
3123
  toolAccessConfig?: {
3125
3124
  toolsForConnectedAccountCreation?: string[] | undefined;
@@ -3129,6 +3128,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3129
3128
  expectedInputFields?: unknown[] | undefined;
3130
3129
  restrictToFollowingTools?: string[] | undefined;
3131
3130
  createdBy?: string | undefined;
3131
+ createdAt?: string | undefined;
3132
3132
  lastUpdatedAt?: string | undefined;
3133
3133
  }[];
3134
3134
  nextCursor: string | null;
@@ -3146,7 +3146,6 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3146
3146
  noOfConnections: number;
3147
3147
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
3148
3148
  isComposioManaged?: boolean | undefined;
3149
- createdAt?: string | undefined;
3150
3149
  credentials?: Record<string, unknown> | undefined;
3151
3150
  toolAccessConfig?: {
3152
3151
  toolsForConnectedAccountCreation?: string[] | undefined;
@@ -3156,6 +3155,7 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
3156
3155
  expectedInputFields?: unknown[] | undefined;
3157
3156
  restrictToFollowingTools?: string[] | undefined;
3158
3157
  createdBy?: string | undefined;
3158
+ createdAt?: string | undefined;
3159
3159
  lastUpdatedAt?: string | undefined;
3160
3160
  }[];
3161
3161
  nextCursor: string | null;
@@ -3592,16 +3592,16 @@ declare const TriggerInstanceListActiveParamsSchema: z$1.ZodObject<{
3592
3592
  limit?: number | undefined;
3593
3593
  authConfigIds?: string[] | null | undefined;
3594
3594
  cursor?: string | undefined;
3595
- connectedAccountIds?: string[] | null | undefined;
3596
3595
  showDisabled?: boolean | null | undefined;
3596
+ connectedAccountIds?: string[] | null | undefined;
3597
3597
  triggerIds?: string[] | null | undefined;
3598
3598
  triggerNames?: string[] | null | undefined;
3599
3599
  }, {
3600
3600
  limit?: number | undefined;
3601
3601
  authConfigIds?: string[] | null | undefined;
3602
3602
  cursor?: string | undefined;
3603
- connectedAccountIds?: string[] | null | undefined;
3604
3603
  showDisabled?: boolean | null | undefined;
3604
+ connectedAccountIds?: string[] | null | undefined;
3605
3605
  triggerIds?: string[] | null | undefined;
3606
3606
  triggerNames?: string[] | null | undefined;
3607
3607
  }>;
@@ -5384,21 +5384,52 @@ declare class ConnectedAccounts {
5384
5384
  */
5385
5385
  updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>;
5386
5386
  /**
5387
- * Enable or disable a connected account. Accepts `{ enabled: boolean }`.
5387
+ * Update a connected account's alias, credentials, or both in one request.
5388
+ * The response contains the account ID, status, and success flag.
5388
5389
  *
5389
- * Use `updateAcl()` for ACL writes on SHARED connections.
5390
+ * Pass `alias`, `connection`, or both. Set `alias` to an empty string to
5391
+ * clear it. To update credentials, put the fields you want to change in
5392
+ * `connection.state.val`. Set a field to `null` to remove it. Omitted fields
5393
+ * keep their current values.
5390
5394
  *
5391
- * @param {string} nanoid - The unique identifier of the connected account
5392
- * @param {UpdateConnectedAccountParams} params - The update parameters
5393
- * @returns {Promise<ConnectedAccountUpdateStatusResponse>} The update response
5395
+ * Use `enable()` or `disable()` to change the account's status. The deprecated
5396
+ * `update(id, { enabled })` overload accepts only `enabled` and logs a warning.
5397
+ * The SDK throws `ValidationError` before sending a request if the input is
5398
+ * empty or contains unsupported fields.
5399
+ *
5400
+ * Use `updateAcl()` to change access to a shared connected account.
5401
+ *
5402
+ * @param {string} nanoid - The connected account ID.
5403
+ * @param {PatchConnectedAccountParams} params - The alias or credential fields to update.
5404
+ * @returns {Promise<ConnectedAccountPatchResponse>}
5394
5405
  *
5395
5406
  * @example
5396
5407
  * ```typescript
5397
- * // Disable an account
5398
- * await composio.connectedAccounts.update('ca_abc123', { enabled: false });
5408
+ * // Set an alias.
5409
+ * await composio.connectedAccounts.update('ca_abc123', { alias: 'work-gmail' });
5410
+ *
5411
+ * // Clear the alias.
5412
+ * await composio.connectedAccounts.update('ca_abc123', { alias: '' });
5413
+ *
5414
+ * // Replace the stored bearer token.
5415
+ * await composio.connectedAccounts.update('ca_abc123', {
5416
+ * connection: {
5417
+ * state: {
5418
+ * authScheme: 'BEARER_TOKEN',
5419
+ * val: { token: 'new-access-token' },
5420
+ * },
5421
+ * },
5422
+ * });
5399
5423
  * ```
5400
5424
  */
5401
- update(nanoid: string, params: UpdateConnectedAccountParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
5425
+ update(nanoid: string, params: PatchConnectedAccountParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountPatchResponse>;
5426
+ /**
5427
+ * @deprecated Use `enable()` or `disable()` instead.
5428
+ */
5429
+ update(nanoid: string, params: UpdateConnectedAccountParams & {
5430
+ alias?: never;
5431
+ connection?: never;
5432
+ }, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
5402
5433
  }
5403
5434
  /**
5404
5435
  * Filters shared by the usage summary and breakdown queries.
@@ -5443,19 +5474,19 @@ declare const UsageSummaryParamsSchema: z$1.ZodObject<{
5443
5474
  }, "strip", z$1.ZodTypeAny, {
5444
5475
  from?: number | undefined;
5445
5476
  to?: number | undefined;
5446
- entityTypes?: string[] | undefined;
5447
5477
  filters?: {
5448
5478
  userId?: string[] | null | undefined;
5449
5479
  sessionId?: string[] | null | undefined;
5450
5480
  } | undefined;
5481
+ entityTypes?: string[] | undefined;
5451
5482
  }, {
5452
5483
  from?: number | undefined;
5453
5484
  to?: number | undefined;
5454
- entityTypes?: string[] | undefined;
5455
5485
  filters?: {
5456
5486
  userId?: string[] | null | undefined;
5457
5487
  sessionId?: string[] | null | undefined;
5458
5488
  } | undefined;
5489
+ entityTypes?: string[] | undefined;
5459
5490
  }>;
5460
5491
  type UsageSummaryParams = z$1.infer<typeof UsageSummaryParamsSchema>;
5461
5492
  declare const UsageOrderBySchema: z$1.ZodEnum<["key", "total_quantity", "event_count"]>;
@@ -6596,16 +6627,16 @@ declare const MCPServerInstanceSchema: z.ZodObject<{
6596
6627
  userId: string;
6597
6628
  id: string;
6598
6629
  url: string;
6599
- allowedTools: string[];
6600
6630
  authConfigs: string[];
6631
+ allowedTools: string[];
6601
6632
  }, {
6602
6633
  name: string;
6603
6634
  type: "streamable_http";
6604
6635
  userId: string;
6605
6636
  id: string;
6606
6637
  url: string;
6607
- allowedTools: string[];
6608
6638
  authConfigs: string[];
6639
+ allowedTools: string[];
6609
6640
  }>;
6610
6641
  type MCPServerInstance = z.infer<typeof MCPServerInstanceSchema>;
6611
6642
  declare const MCPConfigCreationParamsSchema: z.ZodObject<{
@@ -6732,15 +6763,15 @@ declare const MCPListParamsSchema: z.ZodObject<{
6732
6763
  }, "strip", z.ZodTypeAny, {
6733
6764
  toolkits: string[];
6734
6765
  limit: number;
6735
- page: number;
6736
6766
  authConfigs: string[];
6767
+ page: number;
6737
6768
  name?: string | undefined;
6738
6769
  }, {
6739
6770
  name?: string | undefined;
6740
6771
  toolkits?: string[] | undefined;
6741
6772
  limit?: number | undefined;
6742
- page?: number | undefined;
6743
6773
  authConfigs?: string[] | undefined;
6774
+ page?: number | undefined;
6744
6775
  }>;
6745
6776
  type MCPListParams = z.infer<typeof MCPListParamsSchema>;
6746
6777
  declare const MCPItemSchema: z.ZodObject<{
@@ -7229,17 +7260,17 @@ declare const WebhookSubscriptionSchema: z$1.ZodObject<{
7229
7260
  id: string;
7230
7261
  webhookUrl: string;
7231
7262
  enabledEvents: string[];
7263
+ createdAt?: string | undefined;
7232
7264
  updatedAt?: string | undefined;
7233
7265
  secret?: string | undefined;
7234
- createdAt?: string | undefined;
7235
7266
  }, {
7236
7267
  version: "V1" | "V2" | "V3";
7237
7268
  id: string;
7238
7269
  webhookUrl: string;
7239
7270
  enabledEvents: string[];
7271
+ createdAt?: string | undefined;
7240
7272
  updatedAt?: string | undefined;
7241
7273
  secret?: string | undefined;
7242
- createdAt?: string | undefined;
7243
7274
  }>;
7244
7275
  declare const WebhookSubscriptionListParamsSchema: z$1.ZodObject<{
7245
7276
  /** Number of items per page, max allowed is 50. */
@@ -7268,17 +7299,17 @@ declare const WebhookSubscriptionListResponseSchema: z$1.ZodObject<{
7268
7299
  id: string;
7269
7300
  webhookUrl: string;
7270
7301
  enabledEvents: string[];
7302
+ createdAt?: string | undefined;
7271
7303
  updatedAt?: string | undefined;
7272
7304
  secret?: string | undefined;
7273
- createdAt?: string | undefined;
7274
7305
  }, {
7275
7306
  version: "V1" | "V2" | "V3";
7276
7307
  id: string;
7277
7308
  webhookUrl: string;
7278
7309
  enabledEvents: string[];
7310
+ createdAt?: string | undefined;
7279
7311
  updatedAt?: string | undefined;
7280
7312
  secret?: string | undefined;
7281
- createdAt?: string | undefined;
7282
7313
  }>, "many">;
7283
7314
  nextCursor: z$1.ZodNullable<z$1.ZodString>;
7284
7315
  totalPages: z$1.ZodNumber;
@@ -7290,9 +7321,9 @@ declare const WebhookSubscriptionListResponseSchema: z$1.ZodObject<{
7290
7321
  id: string;
7291
7322
  webhookUrl: string;
7292
7323
  enabledEvents: string[];
7324
+ createdAt?: string | undefined;
7293
7325
  updatedAt?: string | undefined;
7294
7326
  secret?: string | undefined;
7295
- createdAt?: string | undefined;
7296
7327
  }[];
7297
7328
  nextCursor: string | null;
7298
7329
  totalPages: number;
@@ -7304,9 +7335,9 @@ declare const WebhookSubscriptionListResponseSchema: z$1.ZodObject<{
7304
7335
  id: string;
7305
7336
  webhookUrl: string;
7306
7337
  enabledEvents: string[];
7338
+ createdAt?: string | undefined;
7307
7339
  updatedAt?: string | undefined;
7308
7340
  secret?: string | undefined;
7309
- createdAt?: string | undefined;
7310
7341
  }[];
7311
7342
  nextCursor: string | null;
7312
7343
  totalPages: number;
@@ -7475,15 +7506,15 @@ declare const WebhookEndpointSchema: z$1.ZodObject<{
7475
7506
  toolkitSlug: string;
7476
7507
  data: Record<string, string> | null;
7477
7508
  id: string;
7478
- webhookUrl: string;
7479
7509
  createdAt: string;
7510
+ webhookUrl: string;
7480
7511
  clientId: string | null;
7481
7512
  }, {
7482
7513
  toolkitSlug: string;
7483
7514
  data: Record<string, string> | null;
7484
7515
  id: string;
7485
- webhookUrl: string;
7486
7516
  createdAt: string;
7517
+ webhookUrl: string;
7487
7518
  clientId: string | null;
7488
7519
  }>;
7489
7520
  type WebhookEndpoint = z$1.infer<typeof WebhookEndpointSchema>;
@@ -8252,14 +8283,14 @@ declare const SessionConfigSummarySchema: z$1.ZodObject<{
8252
8283
  }, "strip", z$1.ZodTypeAny, {
8253
8284
  name: string;
8254
8285
  id: string;
8255
- updatedAt: string;
8256
8286
  createdAt: string;
8287
+ updatedAt: string;
8257
8288
  archived: boolean;
8258
8289
  }, {
8259
8290
  name: string;
8260
8291
  id: string;
8261
- updatedAt: string;
8262
8292
  createdAt: string;
8293
+ updatedAt: string;
8263
8294
  archived: boolean;
8264
8295
  }>;
8265
8296
  type SessionConfigSummary = z$1.infer<typeof SessionConfigSummarySchema>;
@@ -8277,14 +8308,14 @@ declare const SessionConfigListResponseSchema: z$1.ZodObject<{
8277
8308
  }, "strip", z$1.ZodTypeAny, {
8278
8309
  name: string;
8279
8310
  id: string;
8280
- updatedAt: string;
8281
8311
  createdAt: string;
8312
+ updatedAt: string;
8282
8313
  archived: boolean;
8283
8314
  }, {
8284
8315
  name: string;
8285
8316
  id: string;
8286
- updatedAt: string;
8287
8317
  createdAt: string;
8318
+ updatedAt: string;
8288
8319
  archived: boolean;
8289
8320
  }>, "many">;
8290
8321
  /** Cursor for the next page, or `null` on the last page. */
@@ -8293,8 +8324,8 @@ declare const SessionConfigListResponseSchema: z$1.ZodObject<{
8293
8324
  items: {
8294
8325
  name: string;
8295
8326
  id: string;
8296
- updatedAt: string;
8297
8327
  createdAt: string;
8328
+ updatedAt: string;
8298
8329
  archived: boolean;
8299
8330
  }[];
8300
8331
  nextCursor: string | null;
@@ -8302,8 +8333,8 @@ declare const SessionConfigListResponseSchema: z$1.ZodObject<{
8302
8333
  items: {
8303
8334
  name: string;
8304
8335
  id: string;
8305
- updatedAt: string;
8306
8336
  createdAt: string;
8337
+ updatedAt: string;
8307
8338
  archived: boolean;
8308
8339
  }[];
8309
8340
  nextCursor: string | null;
@@ -8655,6 +8686,7 @@ declare const SessionConfigSchema: z$1.ZodObject<{
8655
8686
  name: string;
8656
8687
  description: string | null;
8657
8688
  id: string;
8689
+ createdAt: string;
8658
8690
  updatedAt: string;
8659
8691
  config: {
8660
8692
  tags?: {
@@ -8688,12 +8720,12 @@ declare const SessionConfigSchema: z$1.ZodObject<{
8688
8720
  require_approval: string[];
8689
8721
  } | undefined;
8690
8722
  };
8691
- createdAt: string;
8692
8723
  archived: boolean;
8693
8724
  }, {
8694
8725
  name: string;
8695
8726
  description: string | null;
8696
8727
  id: string;
8728
+ createdAt: string;
8697
8729
  updatedAt: string;
8698
8730
  config: {
8699
8731
  tags?: {
@@ -8727,7 +8759,6 @@ declare const SessionConfigSchema: z$1.ZodObject<{
8727
8759
  require_approval: string[];
8728
8760
  } | undefined;
8729
8761
  };
8730
- createdAt: string;
8731
8762
  archived: boolean;
8732
8763
  }>;
8733
8764
  type SessionConfig = z$1.infer<typeof SessionConfigSchema>;