@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,10 +1,10 @@
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-CB_4JKhV.mjs";
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-B3HG185y.mjs";
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-oV5boR1w.mjs";
3
3
  import ComposioClient, { Composio } from "@composio/client";
4
4
  import z, { z as z$1 } from "zod/v3";
5
5
  import { OpenAI } from "openai";
6
6
  import { Files } from "#files";
7
- import { ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
7
+ import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
8
8
  import { SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
9
9
  import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
10
10
  import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
@@ -583,6 +583,7 @@ declare const ToolKitMetaSchema: z$1.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$1.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$1.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$1.ZodObject<{
609
609
  name: z$1.ZodString;
@@ -632,6 +632,7 @@ declare const ToolKitItemSchema: z$1.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$1.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$1.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$1.ZodBoolean;
658
658
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -666,6 +666,7 @@ declare const ToolKitItemSchema: z$1.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$1.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$1.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$1.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$1.ZodArray<z$1.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$1.ZodArray<z$1.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$1.ZodArray<z$1.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$1.ZodBoolean;
754
754
  authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -762,6 +762,7 @@ declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.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$1.ZodArray<z$1.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$1.ZodArray<z$1.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$1.ZodArray<z$1.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$1.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$1.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$1.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$1.ZodBoolean;
1213
1213
  composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
@@ -1557,6 +1557,7 @@ declare const ToolkitRetrieveResponseSchema: z$1.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$1.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$1.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$1.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$1.ZodObject<{
2634
2634
  }, "strip", z$1.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$1.ZodObject<{
2666
2666
  }, "strip", z$1.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$1.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$1.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
@@ -21,6 +21,54 @@ declare const ConnectedAccountStatuses: {
21
21
  declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
22
22
  type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
23
23
  type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
24
+ /**
25
+ * Sharing model for a connected account.
26
+ *
27
+ * - `PRIVATE` (default): only the owning `userId` can use the connection.
28
+ * - `SHARED`: can be used by other `userId`s, but only when the connection
29
+ * is explicitly pinned in a tool-router session's config and only when
30
+ * the requesting `userId` passes the connection's ACL (see
31
+ * `allowAllUsers` / `allowedUserIds` / `notAllowedUserIds`).
32
+ */
33
+ declare const ConnectedAccountTypes: {
34
+ readonly PRIVATE: "PRIVATE";
35
+ readonly SHARED: "SHARED";
36
+ };
37
+ declare const ConnectedAccountTypeSchema: z.ZodEnum<["PRIVATE", "SHARED"]>;
38
+ type ConnectedAccountType = (typeof ConnectedAccountTypes)[keyof typeof ConnectedAccountTypes];
39
+ declare const ConnectedAccountAclConfigSchema: z.ZodObject<{
40
+ allowAllUsers: z.ZodOptional<z.ZodBoolean>;
41
+ allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ allowAllUsers?: boolean | undefined;
45
+ allowedUserIds?: string[] | undefined;
46
+ notAllowedUserIds?: string[] | undefined;
47
+ }, {
48
+ allowAllUsers?: boolean | undefined;
49
+ allowedUserIds?: string[] | undefined;
50
+ notAllowedUserIds?: string[] | undefined;
51
+ }>;
52
+ type ConnectedAccountAclConfig = z.infer<typeof ConnectedAccountAclConfigSchema>;
53
+ /**
54
+ * Resolved ACL as it appears on responses. All three fields are populated
55
+ * when the field is visible; the field itself is `undefined` for callers
56
+ * not authorised to see it.
57
+ */
58
+ declare const ConnectedAccountAclConfigResponseSchema: z.ZodObject<{
59
+ allowAllUsers: z.ZodBoolean;
60
+ allowedUserIds: z.ZodArray<z.ZodString, "many">;
61
+ notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
62
+ }, "strip", z.ZodTypeAny, {
63
+ allowAllUsers: boolean;
64
+ allowedUserIds: string[];
65
+ notAllowedUserIds: string[];
66
+ }, {
67
+ allowAllUsers: boolean;
68
+ allowedUserIds: string[];
69
+ notAllowedUserIds: string[];
70
+ }>;
71
+ type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfigResponseSchema>;
24
72
  declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
25
73
  authConfig: z.ZodObject<{
26
74
  id: z.ZodString;
@@ -135,6 +183,8 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
135
183
  isDisabled: boolean;
136
184
  createdAt: string;
137
185
  updatedAt: string;
186
+ accountType?: ConnectedAccountType;
187
+ aclConfigForShared?: ConnectedAccountAclConfigResponse;
138
188
  }>;
139
189
  type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveResponseSchema>;
140
190
  /**
@@ -187,6 +237,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
187
237
  isDisabled: boolean;
188
238
  createdAt: string;
189
239
  updatedAt: string;
240
+ accountType?: ConnectedAccountType;
241
+ aclConfigForShared?: ConnectedAccountAclConfigResponse;
190
242
  }, z.ZodTypeDef, {
191
243
  id: string;
192
244
  authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
@@ -206,6 +258,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
206
258
  isDisabled: boolean;
207
259
  createdAt: string;
208
260
  updatedAt: string;
261
+ accountType?: ConnectedAccountType;
262
+ aclConfigForShared?: ConnectedAccountAclConfigResponse;
209
263
  }>, "many">;
210
264
  nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
265
  totalPages: z.ZodNumber;
@@ -229,6 +283,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
229
283
  isDisabled: boolean;
230
284
  createdAt: string;
231
285
  updatedAt: string;
286
+ accountType?: ConnectedAccountType;
287
+ aclConfigForShared?: ConnectedAccountAclConfigResponse;
232
288
  }[];
233
289
  totalPages: number;
234
290
  nextCursor?: string | null | undefined;
@@ -252,6 +308,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
252
308
  isDisabled: boolean;
253
309
  createdAt: string;
254
310
  updatedAt: string;
311
+ accountType?: ConnectedAccountType;
312
+ aclConfigForShared?: ConnectedAccountAclConfigResponse;
255
313
  }[];
256
314
  totalPages: number;
257
315
  nextCursor?: string | null | undefined;
@@ -280,14 +338,57 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
280
338
  * `multiAccount` config to disambiguate at execution time.
281
339
  */
282
340
  allowMultiple: z.ZodOptional<z.ZodBoolean>;
341
+ /**
342
+ * Sharing model for the new connection. `PRIVATE` (default) is usable only
343
+ * by the owning `userId`. `SHARED` can be used by other `userId`s — but
344
+ * only when the connection is explicitly pinned in a tool-router session's
345
+ * config and only when the requesting `userId` passes the connection's
346
+ * ACL.
347
+ */
348
+ accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
349
+ /**
350
+ * Per-user ACL for SHARED connections. Only valid when
351
+ * `accountType === 'SHARED'`; raises `ComposioAclOnlyForSharedError`
352
+ * on a PRIVATE connection.
353
+ *
354
+ * Omit the block (or pass `{}`) to keep the deny-by-default state: only the
355
+ * creator can use the connection. Grant access by setting
356
+ * `allowAllUsers: true` or listing user IDs in `allowedUserIds`.
357
+ * `notAllowedUserIds` always wins over allow.
358
+ */
359
+ aclConfigForShared: z.ZodOptional<z.ZodObject<{
360
+ allowAllUsers: z.ZodOptional<z.ZodBoolean>;
361
+ allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
362
+ notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ allowAllUsers?: boolean | undefined;
365
+ allowedUserIds?: string[] | undefined;
366
+ notAllowedUserIds?: string[] | undefined;
367
+ }, {
368
+ allowAllUsers?: boolean | undefined;
369
+ allowedUserIds?: string[] | undefined;
370
+ notAllowedUserIds?: string[] | undefined;
371
+ }>>;
283
372
  }, "strip", z.ZodTypeAny, {
284
373
  callbackUrl?: string | undefined;
285
374
  alias?: string | undefined;
286
375
  allowMultiple?: boolean | undefined;
376
+ accountType?: "PRIVATE" | "SHARED" | undefined;
377
+ aclConfigForShared?: {
378
+ allowAllUsers?: boolean | undefined;
379
+ allowedUserIds?: string[] | undefined;
380
+ notAllowedUserIds?: string[] | undefined;
381
+ } | undefined;
287
382
  }, {
288
383
  callbackUrl?: string | undefined;
289
384
  alias?: string | undefined;
290
385
  allowMultiple?: boolean | undefined;
386
+ accountType?: "PRIVATE" | "SHARED" | undefined;
387
+ aclConfigForShared?: {
388
+ allowAllUsers?: boolean | undefined;
389
+ allowedUserIds?: string[] | undefined;
390
+ notAllowedUserIds?: string[] | undefined;
391
+ } | undefined;
291
392
  }>;
292
393
  type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
293
394
  declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
@@ -316,6 +417,40 @@ declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
316
417
  }, {
317
418
  enabled: boolean;
318
419
  }>;
420
+ /**
421
+ * Params for `composio.connectedAccounts.updateAcl()`. Mirrors the inner
422
+ * shape of the wire's `acl_config_for_shared` block — the SDK adds the
423
+ * outer nesting at the boundary, so callers pass the three fields flat.
424
+ *
425
+ * PATCH-style semantics — omit a field to leave it unchanged; pass an
426
+ * empty array to clear an allow/deny list. Raises
427
+ * `ComposioAclOnlyForSharedError` on a PRIVATE connection.
428
+ *
429
+ * Each field is optional, but at least one must be provided — passing an
430
+ * empty object is rejected as a no-op.
431
+ */
432
+ declare const UpdateConnectedAccountAclParamsSchema: z.ZodEffects<z.ZodObject<{
433
+ allowAllUsers: z.ZodOptional<z.ZodBoolean>;
434
+ allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
+ notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ allowAllUsers?: boolean | undefined;
438
+ allowedUserIds?: string[] | undefined;
439
+ notAllowedUserIds?: string[] | undefined;
440
+ }, {
441
+ allowAllUsers?: boolean | undefined;
442
+ allowedUserIds?: string[] | undefined;
443
+ notAllowedUserIds?: string[] | undefined;
444
+ }>, {
445
+ allowAllUsers?: boolean | undefined;
446
+ allowedUserIds?: string[] | undefined;
447
+ notAllowedUserIds?: string[] | undefined;
448
+ }, {
449
+ allowAllUsers?: boolean | undefined;
450
+ allowedUserIds?: string[] | undefined;
451
+ notAllowedUserIds?: string[] | undefined;
452
+ }>;
453
+ type UpdateConnectedAccountAclParams = z.infer<typeof UpdateConnectedAccountAclParamsSchema>;
319
454
  //#endregion
320
455
  //#region src/types/connectionRequest.types.d.ts
321
456
  interface ConnectionRequestState {
@@ -2280,4 +2415,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
2280
2415
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
2281
2416
  type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
2282
2417
  //#endregion
2283
- export { ToolRouterSessionProxyExecuteFn as $, ConnectedAccountStatusSchema as $t, SandboxSizeSchema as A, ToolRouterSessionFilesMountDeleteOptions as At, ToolRouterConfigTools as B, ConnectedAccountAuthConfig as Bt, InputParamsSchema as C, RemoteFile as Ct, MCPServerType as D, FileListResponseSchema as Dt, SessionContext as E, FileListResponse as Et, SessionProxyExecuteParamsSchema as F, ToolRouterSessionFilesMountListOptionsSchema as Ft, ToolRouterMCPServerConfigSchema as G, ConnectedAccountListResponseItem as Gt, ToolRouterCreateSessionConfig as H, ConnectedAccountListParams as Ht, ToolRouterAuthorizeFn as I, ToolRouterSessionFilesMountUploadOptions as It, ToolRouterSessionExecuteOptions as J, ConnectedAccountRefreshOptionsSchema as Jt, ToolRouterManageConnectionsConfigSchema as K, ConnectedAccountListResponseSchema as Kt, ToolRouterConfigManageConnectionsSchema as L, ToolRouterSessionFilesMountUploadOptionsSchema as Lt, SessionExperimental as M, ToolRouterSessionFilesMountDownloadOptions as Mt, SessionPreset as N, ToolRouterSessionFilesMountDownloadOptionsSchema as Nt, MCPServerTypeSchema as O, RemoteFileData as Ot, SessionProxyExecuteParams as P, ToolRouterSessionFilesMountListOptions as Pt, ToolRouterSessionPreloadConfig as Q, ConnectedAccountStatusEnum as Qt, ToolRouterConfigTags as R, ConnectionRequest as Rt, InlineCustomToolsWirePayload as S, ToolkitConnectionsDetailsSchema as St, RegisteredCustomToolkit as T, FileDeleteResponseSchema as Tt, ToolRouterCreateSessionConfigSchema as U, ConnectedAccountListParamsSchema as Ut, ToolRouterConfigToolsSchema as V, ConnectedAccountAuthConfigSchema as Vt, ToolRouterMCPServerConfig as W, ConnectedAccountListResponse as Wt, ToolRouterSessionExecuteResponseSchema as X, ConnectedAccountRetrieveResponseSchema as Xt, ToolRouterSessionExecuteResponse as Y, ConnectedAccountRetrieveResponse as Yt, ToolRouterSessionMetadata as Z, ConnectedAccountStatus as Zt, CustomToolkitResponse as _, ToolRouterUpdateSessionConfig as _t, CustomTool as a, CreateConnectedAccountOptions as an, ToolRouterSessionWarning as at, CustomToolsMapEntry as b, ToolkitConnectionStateSchema as bt, CustomToolInputParameter as c, CreateConnectedAccountParamsSchema as cn, ToolRouterToolkitsDisabledConfigSchema as ct, CustomToolRegistryItem as d, DefaultCreateConnectedAccountParamsSchema as dn, ToolRouterToolkitsOptions as dt, ConnectedAccountStatuses as en, ToolRouterSessionProxyExecuteResponse as et, CustomToolResponse as f, UpdateConnectedAccountParams as fn, ToolRouterToolkitsOptionsSchema as ft, CustomToolkitDefinition as g, ToolRouterToolsParamSchema as gt, CustomToolkit as h, ToolRouterToolsParam as ht, CreateCustomToolkitParams as i, CreateConnectedAccountLinkResponseSchema as in, ToolRouterSessionUpdateFn as it, Session as j, ToolRouterSessionFilesMountDeleteOptionsSchema as jt, SandboxSize as k, RemoteFileDataSchema as kt, CustomToolOptions as l, CreateConnectedAccountResponse as ln, ToolRouterToolkitsEnabledConfigSchema as lt, CustomToolWireDefinition as m, ToolRouterToolsFn as mt, CreateCustomToolParams as n, CreateConnectedAccountLinkOptionsSchema as nn, ToolRouterSessionSearchResponse as nt, CustomToolDefinition as o, CreateConnectedAccountOptionsSchema as on, ToolRouterTagsEnableDisableSchema as ot, CustomToolSlugSchema as p, UpdateConnectedAccountParamsSchema as pn, ToolRouterToolkitsParamSchema as pt, ToolRouterSessionExecuteFn as q, ConnectedAccountRefreshOptions as qt, CreateCustomToolkitBaseSchema as r, CreateConnectedAccountLinkResponse as rn, ToolRouterSessionSearchResponseSchema as rt, CustomToolExecuteFn as s, CreateConnectedAccountParams as sn, ToolRouterTagsParamSchema as st, CreateCustomToolBaseSchema as t, CreateConnectedAccountLinkOptions as tn, ToolRouterSessionSearchFn as tt, CustomToolRegistry as u, CreateConnectedAccountResponseSchema as un, ToolRouterToolkitsFn as ut, CustomToolkitWireDefinition as v, ToolRouterUpdateSessionConfigSchema as vt, RegisteredCustomTool as w, FileDeleteResponse as wt, ExecuteMetadata as x, ToolkitConnectionsDetails as xt, CustomToolsMap as y, ToolkitConnectionState as yt, ToolRouterConfigTagsSchema as z, ConnectionRequestState as zt };
2418
+ export { ToolRouterSessionProxyExecuteFn as $, ConnectedAccountRetrieveResponse as $t, SandboxSizeSchema as A, ToolRouterSessionFilesMountDeleteOptions as At, ToolRouterConfigTools as B, ConnectedAccountAclConfig as Bt, InputParamsSchema as C, RemoteFile as Ct, MCPServerType as D, FileListResponseSchema as Dt, SessionContext as E, FileListResponse as Et, SessionProxyExecuteParamsSchema as F, ToolRouterSessionFilesMountListOptionsSchema as Ft, ToolRouterMCPServerConfigSchema as G, ConnectedAccountAuthConfigSchema as Gt, ToolRouterCreateSessionConfig as H, ConnectedAccountAclConfigResponseSchema as Ht, ToolRouterAuthorizeFn as I, ToolRouterSessionFilesMountUploadOptions as It, ToolRouterSessionExecuteOptions as J, ConnectedAccountListResponse as Jt, ToolRouterManageConnectionsConfigSchema as K, ConnectedAccountListParams as Kt, ToolRouterConfigManageConnectionsSchema as L, ToolRouterSessionFilesMountUploadOptionsSchema as Lt, SessionExperimental as M, ToolRouterSessionFilesMountDownloadOptions as Mt, SessionPreset as N, ToolRouterSessionFilesMountDownloadOptionsSchema as Nt, MCPServerTypeSchema as O, RemoteFileData as Ot, SessionProxyExecuteParams as P, ToolRouterSessionFilesMountListOptions as Pt, ToolRouterSessionPreloadConfig as Q, ConnectedAccountRefreshOptionsSchema as Qt, ToolRouterConfigTags as R, ConnectionRequest as Rt, InlineCustomToolsWirePayload as S, UpdateConnectedAccountParamsSchema as Sn, ToolkitConnectionsDetailsSchema as St, RegisteredCustomToolkit as T, FileDeleteResponseSchema as Tt, ToolRouterCreateSessionConfigSchema as U, ConnectedAccountAclConfigSchema as Ut, ToolRouterConfigToolsSchema as V, ConnectedAccountAclConfigResponse as Vt, ToolRouterMCPServerConfig as W, ConnectedAccountAuthConfig as Wt, ToolRouterSessionExecuteResponseSchema as X, ConnectedAccountListResponseSchema as Xt, ToolRouterSessionExecuteResponse as Y, ConnectedAccountListResponseItem as Yt, ToolRouterSessionMetadata as Z, ConnectedAccountRefreshOptions as Zt, CustomToolkitResponse as _, CreateConnectedAccountResponseSchema as _n, ToolRouterUpdateSessionConfig as _t, CustomTool as a, ConnectedAccountType as an, ToolRouterSessionWarning as at, CustomToolsMapEntry as b, UpdateConnectedAccountAclParamsSchema as bn, ToolkitConnectionStateSchema as bt, CustomToolInputParameter as c, CreateConnectedAccountLinkOptions as cn, ToolRouterToolkitsDisabledConfigSchema as ct, CustomToolRegistryItem as d, CreateConnectedAccountLinkResponseSchema as dn, ToolRouterToolkitsOptions as dt, ConnectedAccountRetrieveResponseSchema as en, ToolRouterSessionProxyExecuteResponse as et, CustomToolResponse as f, CreateConnectedAccountOptions as fn, ToolRouterToolkitsOptionsSchema as ft, CustomToolkitDefinition as g, CreateConnectedAccountResponse as gn, ToolRouterToolsParamSchema as gt, CustomToolkit as h, CreateConnectedAccountParamsSchema as hn, ToolRouterToolsParam as ht, CreateCustomToolkitParams as i, ConnectedAccountStatuses as in, ToolRouterSessionUpdateFn as it, Session as j, ToolRouterSessionFilesMountDeleteOptionsSchema as jt, SandboxSize as k, RemoteFileDataSchema as kt, CustomToolOptions as l, CreateConnectedAccountLinkOptionsSchema as ln, ToolRouterToolkitsEnabledConfigSchema as lt, CustomToolWireDefinition as m, CreateConnectedAccountParams as mn, ToolRouterToolsFn as mt, CreateCustomToolParams as n, ConnectedAccountStatusEnum as nn, ToolRouterSessionSearchResponse as nt, CustomToolDefinition as o, ConnectedAccountTypeSchema as on, ToolRouterTagsEnableDisableSchema as ot, CustomToolSlugSchema as p, CreateConnectedAccountOptionsSchema as pn, ToolRouterToolkitsParamSchema as pt, ToolRouterSessionExecuteFn as q, ConnectedAccountListParamsSchema as qt, CreateCustomToolkitBaseSchema as r, ConnectedAccountStatusSchema as rn, ToolRouterSessionSearchResponseSchema as rt, CustomToolExecuteFn as s, ConnectedAccountTypes as sn, ToolRouterTagsParamSchema as st, CreateCustomToolBaseSchema as t, ConnectedAccountStatus as tn, ToolRouterSessionSearchFn as tt, CustomToolRegistry as u, CreateConnectedAccountLinkResponse as un, ToolRouterToolkitsFn as ut, CustomToolkitWireDefinition as v, DefaultCreateConnectedAccountParamsSchema as vn, ToolRouterUpdateSessionConfigSchema as vt, RegisteredCustomTool as w, FileDeleteResponse as wt, ExecuteMetadata as x, UpdateConnectedAccountParams as xn, ToolkitConnectionsDetails as xt, CustomToolsMap as y, UpdateConnectedAccountAclParams as yn, ToolkitConnectionState as yt, ToolRouterConfigTagsSchema as z, ConnectionRequestState as zt };