@composio/core 0.9.0 → 0.9.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.
@@ -1,4 +1,4 @@
1
- import { a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams } from "./customTool.types-B3HG185y.mjs";
1
+ import { a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams } from "./customTool.types-oV5boR1w.mjs";
2
2
  import { z as z$1 } from "zod/v3";
3
3
  import { SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
4
4
 
@@ -10,7 +10,10 @@ const ConnectedAccountErrorCodes = {
10
10
  CONNECTED_ACCOUNT_NOT_FOUND: "CONNECTED_ACCOUNT_NOT_FOUND",
11
11
  MULTIPLE_CONNECTED_ACCOUNTS: "MULTIPLE_CONNECTED_ACCOUNTS",
12
12
  FAILED_TO_CREATE_CONNECTED_ACCOUNT_LINK: "FAILED_TO_CREATE_CONNECTED_ACCOUNT_LINK",
13
- LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED: "LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED"
13
+ LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED: "LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED",
14
+ SHARED_ACCESS_DENIED: "SHARED_ACCESS_DENIED",
15
+ ACL_ONLY_FOR_SHARED: "ACL_ONLY_FOR_SHARED",
16
+ SHARED_CONNECTION_NOT_ACCESSIBLE: "SHARED_CONNECTION_NOT_ACCESSIBLE"
14
17
  };
15
18
  var ComposioConnectedAccountNotFoundError = class extends require_FileModifierErrors.ComposioError {
16
19
  constructor(message = "Connected account not found", options = {}) {
@@ -43,6 +46,58 @@ var ComposioFailedToCreateConnectedAccountLink = class extends require_FileModif
43
46
  }
44
47
  };
45
48
  /**
49
+ * Thrown when a tool execution attempts to use a SHARED connected account
50
+ * but the requesting `userId` is not allowed by the connection's ACL.
51
+ *
52
+ * Surfaces when a SHARED connection is reached directly (e.g. via
53
+ * `composio.tools.execute(slug, { connectedAccountId })`) without going
54
+ * through a tool-router session.
55
+ */
56
+ var ComposioSharedAccessDeniedError = class extends require_FileModifierErrors.ComposioError {
57
+ constructor(message = "Access denied: this SHARED connected account is not available to the requesting user", options = {}) {
58
+ super(message, {
59
+ ...options,
60
+ code: ConnectedAccountErrorCodes.SHARED_ACCESS_DENIED,
61
+ statusCode: 403,
62
+ possibleFixes: options.possibleFixes || ["Ask the connection's creator to grant access via composio.connectedAccounts.updateAcl() — set allowAllUsers, add the userId to allowedUserIds, or remove it from notAllowedUserIds."]
63
+ });
64
+ this.name = "ComposioSharedAccessDeniedError";
65
+ }
66
+ };
67
+ /**
68
+ * Thrown when ACL fields (`allowAllUsers`, `allowedUserIds`,
69
+ * `notAllowedUserIds`) are sent on a `PRIVATE` connection — at create
70
+ * time or via PATCH. ACL is only meaningful for `SHARED` connections.
71
+ */
72
+ var ComposioAclOnlyForSharedError = class extends require_FileModifierErrors.ComposioError {
73
+ constructor(message = "ACL fields are only valid on SHARED connected accounts", options = {}) {
74
+ super(message, {
75
+ ...options,
76
+ code: ConnectedAccountErrorCodes.ACL_ONLY_FOR_SHARED,
77
+ statusCode: 400,
78
+ possibleFixes: options.possibleFixes || ["Use accountType: \"SHARED\", or omit ACL fields when creating/updating a PRIVATE connection."]
79
+ });
80
+ this.name = "ComposioAclOnlyForSharedError";
81
+ }
82
+ };
83
+ /**
84
+ * Thrown by `toolRouter.session.create()` / `session.patch()` when the
85
+ * session's `userId` cannot use a pinned SHARED connection. Raised at
86
+ * session-create time so the session never enters a state that fails
87
+ * mid-execution.
88
+ */
89
+ var ComposioSharedConnectionNotAccessibleError = class extends require_FileModifierErrors.ComposioError {
90
+ constructor(message = "A SHARED connected account pinned in the session config is not accessible to the session user", options = {}) {
91
+ super(message, {
92
+ ...options,
93
+ code: ConnectedAccountErrorCodes.SHARED_CONNECTION_NOT_ACCESSIBLE,
94
+ statusCode: 400,
95
+ possibleFixes: options.possibleFixes || ["Grant the session user access via composio.connectedAccounts.updateAcl() on the pinned connection, or pin a different connection the user can use."]
96
+ });
97
+ this.name = "ComposioSharedConnectionNotAccessibleError";
98
+ }
99
+ };
100
+ /**
46
101
  * Thrown by `composio.connectedAccounts.initiate()` when the legacy
47
102
  * `POST /api/v3/connected_accounts` endpoint rejects a Composio-managed
48
103
  * OAuth (OAuth1, OAuth2, DCR_OAUTH) auth-config request.
@@ -954,6 +1009,12 @@ Object.defineProperty(exports, 'AuthConfigErrorCodes', {
954
1009
  return AuthConfigErrorCodes;
955
1010
  }
956
1011
  });
1012
+ Object.defineProperty(exports, 'ComposioAclOnlyForSharedError', {
1013
+ enumerable: true,
1014
+ get: function () {
1015
+ return ComposioAclOnlyForSharedError;
1016
+ }
1017
+ });
957
1018
  Object.defineProperty(exports, 'ComposioAuthConfigNotFoundError', {
958
1019
  enumerable: true,
959
1020
  get: function () {
@@ -1044,6 +1105,18 @@ Object.defineProperty(exports, 'ComposioProviderNotDefinedError', {
1044
1105
  return ComposioProviderNotDefinedError;
1045
1106
  }
1046
1107
  });
1108
+ Object.defineProperty(exports, 'ComposioSharedAccessDeniedError', {
1109
+ enumerable: true,
1110
+ get: function () {
1111
+ return ComposioSharedAccessDeniedError;
1112
+ }
1113
+ });
1114
+ Object.defineProperty(exports, 'ComposioSharedConnectionNotAccessibleError', {
1115
+ enumerable: true,
1116
+ get: function () {
1117
+ return ComposioSharedConnectionNotAccessibleError;
1118
+ }
1119
+ });
1047
1120
  Object.defineProperty(exports, 'ComposioToolExecutionError', {
1048
1121
  enumerable: true,
1049
1122
  get: function () {
@@ -8,7 +8,10 @@ const ConnectedAccountErrorCodes = {
8
8
  CONNECTED_ACCOUNT_NOT_FOUND: "CONNECTED_ACCOUNT_NOT_FOUND",
9
9
  MULTIPLE_CONNECTED_ACCOUNTS: "MULTIPLE_CONNECTED_ACCOUNTS",
10
10
  FAILED_TO_CREATE_CONNECTED_ACCOUNT_LINK: "FAILED_TO_CREATE_CONNECTED_ACCOUNT_LINK",
11
- LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED: "LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED"
11
+ LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED: "LEGACY_CONNECTED_ACCOUNTS_ENDPOINT_RETIRED",
12
+ SHARED_ACCESS_DENIED: "SHARED_ACCESS_DENIED",
13
+ ACL_ONLY_FOR_SHARED: "ACL_ONLY_FOR_SHARED",
14
+ SHARED_CONNECTION_NOT_ACCESSIBLE: "SHARED_CONNECTION_NOT_ACCESSIBLE"
12
15
  };
13
16
  var ComposioConnectedAccountNotFoundError = class extends ComposioError$1 {
14
17
  constructor(message = "Connected account not found", options = {}) {
@@ -41,6 +44,58 @@ var ComposioFailedToCreateConnectedAccountLink = class extends ComposioError$1 {
41
44
  }
42
45
  };
43
46
  /**
47
+ * Thrown when a tool execution attempts to use a SHARED connected account
48
+ * but the requesting `userId` is not allowed by the connection's ACL.
49
+ *
50
+ * Surfaces when a SHARED connection is reached directly (e.g. via
51
+ * `composio.tools.execute(slug, { connectedAccountId })`) without going
52
+ * through a tool-router session.
53
+ */
54
+ var ComposioSharedAccessDeniedError = class extends ComposioError$1 {
55
+ constructor(message = "Access denied: this SHARED connected account is not available to the requesting user", options = {}) {
56
+ super(message, {
57
+ ...options,
58
+ code: ConnectedAccountErrorCodes.SHARED_ACCESS_DENIED,
59
+ statusCode: 403,
60
+ possibleFixes: options.possibleFixes || ["Ask the connection's creator to grant access via composio.connectedAccounts.updateAcl() — set allowAllUsers, add the userId to allowedUserIds, or remove it from notAllowedUserIds."]
61
+ });
62
+ this.name = "ComposioSharedAccessDeniedError";
63
+ }
64
+ };
65
+ /**
66
+ * Thrown when ACL fields (`allowAllUsers`, `allowedUserIds`,
67
+ * `notAllowedUserIds`) are sent on a `PRIVATE` connection — at create
68
+ * time or via PATCH. ACL is only meaningful for `SHARED` connections.
69
+ */
70
+ var ComposioAclOnlyForSharedError = class extends ComposioError$1 {
71
+ constructor(message = "ACL fields are only valid on SHARED connected accounts", options = {}) {
72
+ super(message, {
73
+ ...options,
74
+ code: ConnectedAccountErrorCodes.ACL_ONLY_FOR_SHARED,
75
+ statusCode: 400,
76
+ possibleFixes: options.possibleFixes || ["Use accountType: \"SHARED\", or omit ACL fields when creating/updating a PRIVATE connection."]
77
+ });
78
+ this.name = "ComposioAclOnlyForSharedError";
79
+ }
80
+ };
81
+ /**
82
+ * Thrown by `toolRouter.session.create()` / `session.patch()` when the
83
+ * session's `userId` cannot use a pinned SHARED connection. Raised at
84
+ * session-create time so the session never enters a state that fails
85
+ * mid-execution.
86
+ */
87
+ var ComposioSharedConnectionNotAccessibleError = class extends ComposioError$1 {
88
+ constructor(message = "A SHARED connected account pinned in the session config is not accessible to the session user", options = {}) {
89
+ super(message, {
90
+ ...options,
91
+ code: ConnectedAccountErrorCodes.SHARED_CONNECTION_NOT_ACCESSIBLE,
92
+ statusCode: 400,
93
+ possibleFixes: options.possibleFixes || ["Grant the session user access via composio.connectedAccounts.updateAcl() on the pinned connection, or pin a different connection the user can use."]
94
+ });
95
+ this.name = "ComposioSharedConnectionNotAccessibleError";
96
+ }
97
+ };
98
+ /**
44
99
  * Thrown by `composio.connectedAccounts.initiate()` when the legacy
45
100
  * `POST /api/v3/connected_accounts` endpoint rejects a Composio-managed
46
101
  * OAuth (OAuth1, OAuth2, DCR_OAUTH) auth-config request.
@@ -946,4 +1001,4 @@ function getPreloadedCustomToolSlugs(customToolsMap, defaultPreload = false) {
946
1001
  }
947
1002
 
948
1003
  //#endregion
949
- export { ConnectedAccountErrorCodes as $, ValidationErrorCodes as A, ComposioGlobalExecuteToolFnNotSetError as B, ComposioWebhookSignatureVerificationError as C, JsonSchemaRefResolutionError as D, SDKErrorCodes as E, ConnectionRequestFailedError as F, ComposioToolNotFoundError as G, ComposioInvalidModifierError as H, ConnectionRequestTimeoutError as I, handleToolExecutionError as J, ComposioToolVersionRequiredError as K, AuthConfigErrorCodes as L, ComposioToolkitNotFoundError as M, ToolkitErrorCodes as N, JsonSchemaToZodError as O, ConnectionRequestErrorCodes as P, ComposioMultipleConnectedAccountsError as Q, ComposioAuthConfigNotFoundError as R, ComposioWebhookPayloadError as S, ComposioNoAPIKeyError as T, ComposioProviderNotDefinedError as U, ComposioInvalidExecuteFunctionError as V, ComposioToolExecutionError as W, ComposioFailedToCreateConnectedAccountLink as X, ComposioConnectedAccountNotFoundError as Y, ComposioLegacyConnectedAccountsEndpointRetiredError as Z, ComposioFailedToCreatePusherClientError as _, createCustomToolkit as a, ComposioFailedToUnsubscribeFromPusherChannelError as b, getPreloadedCustomToolSlugs as c, CreateCustomToolBaseSchema as d, CreateCustomToolkitBaseSchema as f, RemoteFileErrorCodes as g, RemoteFileDownloadError as h, createCustomTool as i, ComposioToolkitFetchError as j, ValidationError as k, serializeCustomToolkits as l, PRELOAD_TOOLS_ALL as m, buildCustomToolsMap as n, findCustomToolMapEntryByFinalSlug as o, CustomToolSlugSchema as p, ToolErrorCodes as q, buildCustomToolsMapFromResponse as r, findCustomToolMapEntryByToolkitAndOriginalSlug as s, assertNoCustomToolSlugsInPreload as t, serializeCustomTools as u, ComposioFailedToGetSDKRealtimeCredentialsError as v, TriggerErrorCodes as w, ComposioTriggerTypeNotFoundError as x, ComposioFailedToSubscribeToPusherChannelError as y, ComposioCustomToolsNotInitializedError as z };
1004
+ export { ComposioMultipleConnectedAccountsError as $, ValidationErrorCodes as A, ComposioGlobalExecuteToolFnNotSetError as B, ComposioWebhookSignatureVerificationError as C, JsonSchemaRefResolutionError as D, SDKErrorCodes as E, ConnectionRequestFailedError as F, ComposioToolNotFoundError as G, ComposioInvalidModifierError as H, ConnectionRequestTimeoutError as I, handleToolExecutionError as J, ComposioToolVersionRequiredError as K, AuthConfigErrorCodes as L, ComposioToolkitNotFoundError as M, ToolkitErrorCodes as N, JsonSchemaToZodError as O, ConnectionRequestErrorCodes as P, ComposioLegacyConnectedAccountsEndpointRetiredError as Q, ComposioAuthConfigNotFoundError as R, ComposioWebhookPayloadError as S, ComposioNoAPIKeyError as T, ComposioProviderNotDefinedError as U, ComposioInvalidExecuteFunctionError as V, ComposioToolExecutionError as W, ComposioConnectedAccountNotFoundError as X, ComposioAclOnlyForSharedError as Y, ComposioFailedToCreateConnectedAccountLink as Z, ComposioFailedToCreatePusherClientError as _, createCustomToolkit as a, ComposioFailedToUnsubscribeFromPusherChannelError as b, getPreloadedCustomToolSlugs as c, CreateCustomToolBaseSchema as d, ComposioSharedAccessDeniedError as et, CreateCustomToolkitBaseSchema as f, RemoteFileErrorCodes as g, RemoteFileDownloadError as h, createCustomTool as i, ComposioToolkitFetchError as j, ValidationError as k, serializeCustomToolkits as l, PRELOAD_TOOLS_ALL as m, buildCustomToolsMap as n, ConnectedAccountErrorCodes as nt, findCustomToolMapEntryByFinalSlug as o, CustomToolSlugSchema as p, ToolErrorCodes as q, buildCustomToolsMapFromResponse as r, findCustomToolMapEntryByToolkitAndOriginalSlug as s, assertNoCustomToolSlugsInPreload as t, ComposioSharedConnectionNotAccessibleError as tt, serializeCustomTools as u, ComposioFailedToGetSDKRealtimeCredentialsError as v, TriggerErrorCodes as w, ComposioTriggerTypeNotFoundError as x, ComposioFailedToSubscribeToPusherChannelError as y, ComposioCustomToolsNotInitializedError as z };
@@ -1,4 +1,4 @@
1
- import { a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams } from "./customTool.types-Bd8ylotX.cjs";
1
+ import { a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams } from "./customTool.types-BVgnEbR2.cjs";
2
2
  import { z } from "zod/v3";
3
3
  import { SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { D as ToolkitVersionParam, I as ProviderOptions, J as BaseNonAgenticProvider, Kt as McpUrlResponse, L as SessionExecuteMetaModifiers, P as ExecuteToolModifiers, Vt as McpServerGetResponse, Xt as ExecuteToolFnOptions, a as SchemaModifierOptions, b as ToolRetrievalOptions, d as ToolExecuteResponse$1, l as ToolExecuteParams, m as ToolListParams, o as Tool, p as ToolList, q as BaseComposioProvider, s as ToolExecuteMetaParams, v as ToolProxyParams } from "./tool.types-CwbAy9l_.cjs";
2
- import { H as ToolRouterCreateSessionConfig, Ht as ConnectedAccountListParams, Rt as ConnectionRequest, Wt as ConnectedAccountListResponse, Yt as ConnectedAccountRetrieveResponse, a as CustomTool, an as CreateConnectedAccountOptions, c as CustomToolInputParameter, fn as UpdateConnectedAccountParams, h as CustomToolkit, j as Session, l as CustomToolOptions, qt as ConnectedAccountRefreshOptions, tn as CreateConnectedAccountLinkOptions } from "./customTool.types-Bd8ylotX.cjs";
2
+ import { $t as ConnectedAccountRetrieveResponse, H as ToolRouterCreateSessionConfig, Jt as ConnectedAccountListResponse, Kt as ConnectedAccountListParams, Rt as ConnectionRequest, Zt as ConnectedAccountRefreshOptions, a as CustomTool, c as CustomToolInputParameter, cn as CreateConnectedAccountLinkOptions, fn as CreateConnectedAccountOptions, h as CustomToolkit, j as Session, l as CustomToolOptions, xn as UpdateConnectedAccountParams, yn as UpdateConnectedAccountAclParams } from "./customTool.types-BVgnEbR2.cjs";
3
3
  import z$1, { z } from "zod/v3";
4
- import { ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
4
+ import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
5
5
  import ComposioClient, { Composio } from "@composio/client";
6
6
  import { SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
7
7
  import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
@@ -583,6 +583,7 @@ declare const ToolKitMetaSchema: z.ZodObject<{
583
583
  description?: string | undefined;
584
584
  availableVersions?: string[] | undefined;
585
585
  createdAt?: string | undefined;
586
+ updatedAt?: string | undefined;
586
587
  categories?: {
587
588
  slug: string;
588
589
  name: string;
@@ -590,12 +591,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
590
591
  appUrl?: string | undefined;
591
592
  toolsCount?: number | undefined;
592
593
  triggersCount?: number | undefined;
593
- updatedAt?: string | undefined;
594
594
  }, {
595
595
  logo?: string | undefined;
596
596
  description?: string | undefined;
597
597
  availableVersions?: string[] | undefined;
598
598
  createdAt?: string | undefined;
599
+ updatedAt?: string | undefined;
599
600
  categories?: {
600
601
  slug: string;
601
602
  name: string;
@@ -603,7 +604,6 @@ declare const ToolKitMetaSchema: z.ZodObject<{
603
604
  appUrl?: string | undefined;
604
605
  toolsCount?: number | undefined;
605
606
  triggersCount?: number | undefined;
606
- updatedAt?: string | undefined;
607
607
  }>;
608
608
  declare const ToolKitItemSchema: z.ZodObject<{
609
609
  name: z.ZodString;
@@ -632,6 +632,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
632
632
  description?: string | undefined;
633
633
  availableVersions?: string[] | undefined;
634
634
  createdAt?: string | undefined;
635
+ updatedAt?: string | undefined;
635
636
  categories?: {
636
637
  slug: string;
637
638
  name: string;
@@ -639,12 +640,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
639
640
  appUrl?: string | undefined;
640
641
  toolsCount?: number | undefined;
641
642
  triggersCount?: number | undefined;
642
- updatedAt?: string | undefined;
643
643
  }, {
644
644
  logo?: string | undefined;
645
645
  description?: string | undefined;
646
646
  availableVersions?: string[] | undefined;
647
647
  createdAt?: string | undefined;
648
+ updatedAt?: string | undefined;
648
649
  categories?: {
649
650
  slug: string;
650
651
  name: string;
@@ -652,7 +653,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
652
653
  appUrl?: string | undefined;
653
654
  toolsCount?: number | undefined;
654
655
  triggersCount?: number | undefined;
655
- updatedAt?: string | undefined;
656
656
  }>;
657
657
  isLocalToolkit: z.ZodBoolean;
658
658
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -666,6 +666,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
666
666
  description?: string | undefined;
667
667
  availableVersions?: string[] | undefined;
668
668
  createdAt?: string | undefined;
669
+ updatedAt?: string | undefined;
669
670
  categories?: {
670
671
  slug: string;
671
672
  name: string;
@@ -673,7 +674,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
673
674
  appUrl?: string | undefined;
674
675
  toolsCount?: number | undefined;
675
676
  triggersCount?: number | undefined;
676
- updatedAt?: string | undefined;
677
677
  };
678
678
  isLocalToolkit: boolean;
679
679
  authSchemes?: string[] | undefined;
@@ -687,6 +687,7 @@ declare const ToolKitItemSchema: z.ZodObject<{
687
687
  description?: string | undefined;
688
688
  availableVersions?: string[] | undefined;
689
689
  createdAt?: string | undefined;
690
+ updatedAt?: string | undefined;
690
691
  categories?: {
691
692
  slug: string;
692
693
  name: string;
@@ -694,7 +695,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
694
695
  appUrl?: string | undefined;
695
696
  toolsCount?: number | undefined;
696
697
  triggersCount?: number | undefined;
697
- updatedAt?: string | undefined;
698
698
  };
699
699
  isLocalToolkit: boolean;
700
700
  authSchemes?: string[] | undefined;
@@ -728,6 +728,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
728
728
  description?: string | undefined;
729
729
  availableVersions?: string[] | undefined;
730
730
  createdAt?: string | undefined;
731
+ updatedAt?: string | undefined;
731
732
  categories?: {
732
733
  slug: string;
733
734
  name: string;
@@ -735,12 +736,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
735
736
  appUrl?: string | undefined;
736
737
  toolsCount?: number | undefined;
737
738
  triggersCount?: number | undefined;
738
- updatedAt?: string | undefined;
739
739
  }, {
740
740
  logo?: string | undefined;
741
741
  description?: string | undefined;
742
742
  availableVersions?: string[] | undefined;
743
743
  createdAt?: string | undefined;
744
+ updatedAt?: string | undefined;
744
745
  categories?: {
745
746
  slug: string;
746
747
  name: string;
@@ -748,7 +749,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
748
749
  appUrl?: string | undefined;
749
750
  toolsCount?: number | undefined;
750
751
  triggersCount?: number | undefined;
751
- updatedAt?: string | undefined;
752
752
  }>;
753
753
  isLocalToolkit: z.ZodBoolean;
754
754
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -762,6 +762,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
762
762
  description?: string | undefined;
763
763
  availableVersions?: string[] | undefined;
764
764
  createdAt?: string | undefined;
765
+ updatedAt?: string | undefined;
765
766
  categories?: {
766
767
  slug: string;
767
768
  name: string;
@@ -769,7 +770,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
769
770
  appUrl?: string | undefined;
770
771
  toolsCount?: number | undefined;
771
772
  triggersCount?: number | undefined;
772
- updatedAt?: string | undefined;
773
773
  };
774
774
  isLocalToolkit: boolean;
775
775
  authSchemes?: string[] | undefined;
@@ -783,6 +783,7 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
783
783
  description?: string | undefined;
784
784
  availableVersions?: string[] | undefined;
785
785
  createdAt?: string | undefined;
786
+ updatedAt?: string | undefined;
786
787
  categories?: {
787
788
  slug: string;
788
789
  name: string;
@@ -790,7 +791,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
790
791
  appUrl?: string | undefined;
791
792
  toolsCount?: number | undefined;
792
793
  triggersCount?: number | undefined;
793
- updatedAt?: string | undefined;
794
794
  };
795
795
  isLocalToolkit: boolean;
796
796
  authSchemes?: string[] | undefined;
@@ -1187,6 +1187,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1187
1187
  description?: string | undefined;
1188
1188
  availableVersions?: string[] | undefined;
1189
1189
  createdAt?: string | undefined;
1190
+ updatedAt?: string | undefined;
1190
1191
  categories?: {
1191
1192
  slug: string;
1192
1193
  name: string;
@@ -1194,12 +1195,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1194
1195
  appUrl?: string | undefined;
1195
1196
  toolsCount?: number | undefined;
1196
1197
  triggersCount?: number | undefined;
1197
- updatedAt?: string | undefined;
1198
1198
  }, {
1199
1199
  logo?: string | undefined;
1200
1200
  description?: string | undefined;
1201
1201
  availableVersions?: string[] | undefined;
1202
1202
  createdAt?: string | undefined;
1203
+ updatedAt?: string | undefined;
1203
1204
  categories?: {
1204
1205
  slug: string;
1205
1206
  name: string;
@@ -1207,7 +1208,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1207
1208
  appUrl?: string | undefined;
1208
1209
  toolsCount?: number | undefined;
1209
1210
  triggersCount?: number | undefined;
1210
- updatedAt?: string | undefined;
1211
1211
  }>;
1212
1212
  isLocalToolkit: z.ZodBoolean;
1213
1213
  composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1557,6 +1557,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1557
1557
  description?: string | undefined;
1558
1558
  availableVersions?: string[] | undefined;
1559
1559
  createdAt?: string | undefined;
1560
+ updatedAt?: string | undefined;
1560
1561
  categories?: {
1561
1562
  slug: string;
1562
1563
  name: string;
@@ -1564,7 +1565,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1564
1565
  appUrl?: string | undefined;
1565
1566
  toolsCount?: number | undefined;
1566
1567
  triggersCount?: number | undefined;
1567
- updatedAt?: string | undefined;
1568
1568
  };
1569
1569
  isLocalToolkit: boolean;
1570
1570
  composioManagedAuthSchemes?: string[] | undefined;
@@ -1624,6 +1624,7 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1624
1624
  description?: string | undefined;
1625
1625
  availableVersions?: string[] | undefined;
1626
1626
  createdAt?: string | undefined;
1627
+ updatedAt?: string | undefined;
1627
1628
  categories?: {
1628
1629
  slug: string;
1629
1630
  name: string;
@@ -1631,7 +1632,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1631
1632
  appUrl?: string | undefined;
1632
1633
  toolsCount?: number | undefined;
1633
1634
  triggersCount?: number | undefined;
1634
- updatedAt?: string | undefined;
1635
1635
  };
1636
1636
  isLocalToolkit: boolean;
1637
1637
  composioManagedAuthSchemes?: string[] | undefined;
@@ -2634,21 +2634,21 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
2634
2634
  }, "strip", z.ZodTypeAny, {
2635
2635
  connectedAccountId: string;
2636
2636
  id: string;
2637
- updatedAt: string;
2638
2637
  disabledAt: string | null;
2639
2638
  state: Record<string, unknown>;
2640
2639
  triggerConfig: Record<string, unknown>;
2641
2640
  triggerName: string;
2641
+ updatedAt: string;
2642
2642
  uuid?: string | undefined;
2643
2643
  triggerData?: string | undefined;
2644
2644
  }, {
2645
2645
  connectedAccountId: string;
2646
2646
  id: string;
2647
- updatedAt: string;
2648
2647
  disabledAt: string | null;
2649
2648
  state: Record<string, unknown>;
2650
2649
  triggerConfig: Record<string, unknown>;
2651
2650
  triggerName: string;
2651
+ updatedAt: string;
2652
2652
  uuid?: string | undefined;
2653
2653
  triggerData?: string | undefined;
2654
2654
  }>;
@@ -2666,21 +2666,21 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2666
2666
  }, "strip", z.ZodTypeAny, {
2667
2667
  connectedAccountId: string;
2668
2668
  id: string;
2669
- updatedAt: string;
2670
2669
  disabledAt: string | null;
2671
2670
  state: Record<string, unknown>;
2672
2671
  triggerConfig: Record<string, unknown>;
2673
2672
  triggerName: string;
2673
+ updatedAt: string;
2674
2674
  uuid?: string | undefined;
2675
2675
  triggerData?: string | undefined;
2676
2676
  }, {
2677
2677
  connectedAccountId: string;
2678
2678
  id: string;
2679
- updatedAt: string;
2680
2679
  disabledAt: string | null;
2681
2680
  state: Record<string, unknown>;
2682
2681
  triggerConfig: Record<string, unknown>;
2683
2682
  triggerName: string;
2683
+ updatedAt: string;
2684
2684
  uuid?: string | undefined;
2685
2685
  triggerData?: string | undefined;
2686
2686
  }>, "many">;
@@ -2690,11 +2690,11 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2690
2690
  items: {
2691
2691
  connectedAccountId: string;
2692
2692
  id: string;
2693
- updatedAt: string;
2694
2693
  disabledAt: string | null;
2695
2694
  state: Record<string, unknown>;
2696
2695
  triggerConfig: Record<string, unknown>;
2697
2696
  triggerName: string;
2697
+ updatedAt: string;
2698
2698
  uuid?: string | undefined;
2699
2699
  triggerData?: string | undefined;
2700
2700
  }[];
@@ -2704,11 +2704,11 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2704
2704
  items: {
2705
2705
  connectedAccountId: string;
2706
2706
  id: string;
2707
- updatedAt: string;
2708
2707
  disabledAt: string | null;
2709
2708
  state: Record<string, unknown>;
2710
2709
  triggerConfig: Record<string, unknown>;
2711
2710
  triggerName: string;
2711
+ updatedAt: string;
2712
2712
  uuid?: string | undefined;
2713
2713
  triggerData?: string | undefined;
2714
2714
  }[];
@@ -4064,7 +4064,9 @@ declare class ConnectedAccounts {
4064
4064
  */
4065
4065
  disable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
4066
4066
  /**
4067
- * Update a connected account's alias and/or credentials.
4067
+ * Enable or disable a connected account. Accepts `{ enabled: boolean }`.
4068
+ *
4069
+ * For ACL writes on SHARED connections, see {@link updateAcl}.
4068
4070
  *
4069
4071
  * @param {string} nanoid - The unique identifier of the connected account
4070
4072
  * @param {UpdateConnectedAccountParams} params - The update parameters
@@ -4077,6 +4079,57 @@ declare class ConnectedAccounts {
4077
4079
  * ```
4078
4080
  */
4079
4081
  update(nanoid: string, params: UpdateConnectedAccountParams): Promise<ConnectedAccountUpdateStatusResponse>;
4082
+ /**
4083
+ * Update the per-user ACL on a SHARED connected account.
4084
+ *
4085
+ * Only meaningful for SHARED connections — calling this on a PRIVATE
4086
+ * connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
4087
+ * require the connection's creator or an API key; alias edits via
4088
+ * {@link update} are governed separately.
4089
+ *
4090
+ * PATCH semantics: omit a field to leave it unchanged; pass an empty array
4091
+ * to clear an allow/deny list. At least one field must be provided.
4092
+ *
4093
+ * Resolution rule (deny wins):
4094
+ * 1. requesting `userId` in `notAllowedUserIds` → DENY
4095
+ * 2. `allowAllUsers === true` → ALLOW
4096
+ * 3. requesting `userId` in `allowedUserIds` → ALLOW
4097
+ * 4. otherwise → DENY
4098
+ *
4099
+ * @example
4100
+ * ```typescript
4101
+ * // Allow every userId to use this connection
4102
+ * await composio.connectedAccounts.updateAcl('ca_abc', { allowAllUsers: true });
4103
+ *
4104
+ * // Everyone except a specific user
4105
+ * await composio.connectedAccounts.updateAcl('ca_abc', {
4106
+ * allowAllUsers: true,
4107
+ * notAllowedUserIds: ['user_bob'],
4108
+ * });
4109
+ *
4110
+ * // Targeted allow
4111
+ * await composio.connectedAccounts.updateAcl('ca_abc', {
4112
+ * allowedUserIds: ['user_alice', 'user_bob'],
4113
+ * });
4114
+ *
4115
+ * // Revoke a previously-granted allow list (back to deny-by-default)
4116
+ * await composio.connectedAccounts.updateAcl('ca_abc', { allowedUserIds: [] });
4117
+ * ```
4118
+ *
4119
+ * **Empty-array semantics — read carefully.** Passing `[]` for either
4120
+ * list **replaces** the list, it does not extend it:
4121
+ *
4122
+ * - `allowedUserIds: []` → revoke all previously-granted user IDs (state
4123
+ * reverts to deny-by-default unless `allowAllUsers` is true).
4124
+ * - `notAllowedUserIds: []` → **clears the deny list**, which silently
4125
+ * re-grants access to users you previously blocked. Always pair an
4126
+ * empty deny list with a deliberate audit of the allow side.
4127
+ *
4128
+ * @returns The PATCH response (`{ id, status, success }`). To read the
4129
+ * updated `aclConfigForShared` block, call `get(nanoid)` after the
4130
+ * promise resolves.
4131
+ */
4132
+ updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>;
4080
4133
  }
4081
4134
  //#endregion
4082
4135
  //#region src/types/mcp.experimental.types.d.ts