@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.
@@ -21,6 +21,54 @@ declare const ConnectedAccountStatuses: {
21
21
  declare const ConnectedAccountStatusSchema: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
22
22
  type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
23
23
  type ConnectedAccountStatusEnum = z$1.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$1.ZodEnum<["PRIVATE", "SHARED"]>;
38
+ type ConnectedAccountType = (typeof ConnectedAccountTypes)[keyof typeof ConnectedAccountTypes];
39
+ declare const ConnectedAccountAclConfigSchema: z$1.ZodObject<{
40
+ allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
41
+ allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
42
+ notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
43
+ }, "strip", z$1.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$1.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$1.ZodObject<{
59
+ allowAllUsers: z$1.ZodBoolean;
60
+ allowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
61
+ notAllowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
62
+ }, "strip", z$1.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$1.infer<typeof ConnectedAccountAclConfigResponseSchema>;
24
72
  declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
25
73
  authConfig: z$1.ZodObject<{
26
74
  id: z$1.ZodString;
@@ -135,6 +183,8 @@ declare const ConnectedAccountRetrieveResponseSchema: z$1.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$1.infer<typeof ConnectedAccountRetrieveResponseSchema>;
140
190
  /**
@@ -187,6 +237,8 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
187
237
  isDisabled: boolean;
188
238
  createdAt: string;
189
239
  updatedAt: string;
240
+ accountType?: ConnectedAccountType;
241
+ aclConfigForShared?: ConnectedAccountAclConfigResponse;
190
242
  }, z$1.ZodTypeDef, {
191
243
  id: string;
192
244
  authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
@@ -206,6 +258,8 @@ declare const ConnectedAccountListResponseSchema: z$1.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$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
211
265
  totalPages: z$1.ZodNumber;
@@ -229,6 +283,8 @@ declare const ConnectedAccountListResponseSchema: z$1.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$1.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$1.ZodObject<{
280
338
  * `multiAccount` config to disambiguate at execution time.
281
339
  */
282
340
  allowMultiple: z$1.ZodOptional<z$1.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$1.ZodOptional<z$1.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$1.ZodOptional<z$1.ZodObject<{
360
+ allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
361
+ allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
362
+ notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
363
+ }, "strip", z$1.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$1.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$1.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
293
394
  declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
@@ -316,6 +417,40 @@ declare const UpdateConnectedAccountParamsSchema: z$1.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$1.ZodEffects<z$1.ZodObject<{
433
+ allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
434
+ allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
435
+ notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
436
+ }, "strip", z$1.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$1.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 };
@@ -1,5 +1,5 @@
1
1
  require('../FileModifierErrors-BYJBHiay.cjs');
2
- const require_CustomTool = require('../CustomTool-Dj4fNvsu.cjs');
2
+ const require_CustomTool = require('../CustomTool-Bkk0QYzw.cjs');
3
3
 
4
4
  exports.experimental_createTool = require_CustomTool.createCustomTool;
5
5
  exports.experimental_createToolkit = require_CustomTool.createCustomToolkit;
@@ -1,3 +1,3 @@
1
- import { E as SessionContext, a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-Bd8ylotX.cjs";
2
- import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-87USJ2u0.cjs";
1
+ import { E as SessionContext, a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-BVgnEbR2.cjs";
2
+ import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-PSRHsd85.cjs";
3
3
  export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
@@ -1,4 +1,4 @@
1
1
  import "../tool.types-CB_4JKhV.mjs";
2
- import { E as SessionContext, a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-B3HG185y.mjs";
3
- import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-BNxqr6BI.mjs";
2
+ import { E as SessionContext, a as CustomTool, h as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-oV5boR1w.mjs";
3
+ import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-BFkwL1aY.mjs";
4
4
  export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
@@ -1,5 +1,5 @@
1
1
  import "../chunk-CWQeghP5.mjs";
2
2
  import "../FileModifierErrors-C7z16Dfi.mjs";
3
- import { a as createCustomToolkit, i as createCustomTool } from "../CustomTool-DOE7hgw6.mjs";
3
+ import { a as createCustomToolkit, i as createCustomTool } from "../CustomTool-IIUhFtP8.mjs";
4
4
 
5
5
  export { createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require('./chunk-CQwRTUmo.cjs');
2
2
  const require_FileModifierErrors = require('./FileModifierErrors-BYJBHiay.cjs');
3
- const require_CustomTool = require('./CustomTool-Dj4fNvsu.cjs');
3
+ const require_CustomTool = require('./CustomTool-Bkk0QYzw.cjs');
4
4
  const require_Telemetry = require('./Telemetry-Dm-0sewu.cjs');
5
5
  const require_buffer = require('./buffer-BjWptbNH.cjs');
6
6
  const require_FileToolModifier_utils_neutral = require('./FileToolModifier.utils.neutral-Dfwqgimk.cjs');
@@ -1039,6 +1039,59 @@ const ConnectedAccountStatusSchema = zod_v3.z.enum([
1039
1039
  ConnectedAccountStatuses.INACTIVE,
1040
1040
  ConnectedAccountStatuses.REVOKED
1041
1041
  ]);
1042
+ /**
1043
+ * Sharing model for a connected account.
1044
+ *
1045
+ * - `PRIVATE` (default): only the owning `userId` can use the connection.
1046
+ * - `SHARED`: can be used by other `userId`s, but only when the connection
1047
+ * is explicitly pinned in a tool-router session's config and only when
1048
+ * the requesting `userId` passes the connection's ACL (see
1049
+ * `allowAllUsers` / `allowedUserIds` / `notAllowedUserIds`).
1050
+ */
1051
+ const ConnectedAccountTypes = {
1052
+ PRIVATE: "PRIVATE",
1053
+ SHARED: "SHARED"
1054
+ };
1055
+ const ConnectedAccountTypeSchema = zod_v3.z.enum([ConnectedAccountTypes.PRIVATE, ConnectedAccountTypes.SHARED]);
1056
+ /**
1057
+ * Per-user access control for a SHARED connected account. Ignored for
1058
+ * PRIVATE.
1059
+ *
1060
+ * Pass `aclConfigForShared` on create / PATCH to grant access; omit it
1061
+ * to leave the ACL unchanged (on PATCH) or to keep the default
1062
+ * deny-by-default state (on create). On responses, the field is
1063
+ * `undefined` when the caller isn't authorised to see the ACL —
1064
+ * distinguish that from an empty/default state explicitly.
1065
+ *
1066
+ * Resolution rule (deny wins):
1067
+ * 1. requesting `userId` in `notAllowedUserIds` → DENY
1068
+ * 2. `allowAllUsers === true` → ALLOW
1069
+ * 3. requesting `userId` in `allowedUserIds` → ALLOW
1070
+ * 4. otherwise → DENY (deny-by-default)
1071
+ *
1072
+ * Default state (block omitted or `{}`) means only the connection's
1073
+ * creator can use it. The creator must grant access explicitly.
1074
+ *
1075
+ * Limits: each list accepts up to 1000 entries; each `userId` is
1076
+ * 1..256 characters.
1077
+ */
1078
+ const ACL_LIST_MAX_LENGTH = 1e3;
1079
+ const aclUserIdString = zod_v3.z.string().min(1).max(256);
1080
+ const ConnectedAccountAclConfigSchema = zod_v3.z.object({
1081
+ allowAllUsers: zod_v3.z.boolean().optional().describe("When true, any `userId` may use this SHARED connection (subject to the deny list). Default false."),
1082
+ allowedUserIds: zod_v3.z.array(aclUserIdString).max(ACL_LIST_MAX_LENGTH).optional().describe("Explicit list of `userId` strings allowed to use this SHARED connection. Default []."),
1083
+ notAllowedUserIds: zod_v3.z.array(aclUserIdString).max(ACL_LIST_MAX_LENGTH).optional().describe("Explicit list of `userId` strings denied access. Wins over allow on conflict. Default [].")
1084
+ });
1085
+ /**
1086
+ * Resolved ACL as it appears on responses. All three fields are populated
1087
+ * when the field is visible; the field itself is `undefined` for callers
1088
+ * not authorised to see it.
1089
+ */
1090
+ const ConnectedAccountAclConfigResponseSchema = zod_v3.z.object({
1091
+ allowAllUsers: zod_v3.z.boolean(),
1092
+ allowedUserIds: zod_v3.z.array(zod_v3.z.string()),
1093
+ notAllowedUserIds: zod_v3.z.array(zod_v3.z.string())
1094
+ });
1042
1095
  const CreateConnectedAccountParamsSchema = zod_v3.z.object({
1043
1096
  authConfig: zod_v3.z.object({ id: zod_v3.z.string() }),
1044
1097
  connection: zod_v3.z.object({
@@ -1091,7 +1144,9 @@ const ConnectedAccountRetrieveResponseSchema = zod_v3.z.object({
1091
1144
  testRequestEndpoint: zod_v3.z.string().optional(),
1092
1145
  isDisabled: zod_v3.z.boolean(),
1093
1146
  createdAt: zod_v3.z.string(),
1094
- updatedAt: zod_v3.z.string()
1147
+ updatedAt: zod_v3.z.string(),
1148
+ accountType: ConnectedAccountTypeSchema.optional(),
1149
+ aclConfigForShared: ConnectedAccountAclConfigResponseSchema.optional()
1095
1150
  });
1096
1151
  const ConnectedAccountListParamsSchema = zod_v3.z.object({
1097
1152
  authConfigIds: zod_v3.z.array(zod_v3.z.string()).nullable().optional().describe("The auth config ids of the connected accounts"),
@@ -1110,7 +1165,9 @@ const ConnectedAccountListResponseSchema = zod_v3.z.object({
1110
1165
  const CreateConnectedAccountLinkOptionsSchema = zod_v3.z.object({
1111
1166
  callbackUrl: zod_v3.z.string().optional(),
1112
1167
  alias: zod_v3.z.string().optional(),
1113
- allowMultiple: zod_v3.z.boolean().optional()
1168
+ allowMultiple: zod_v3.z.boolean().optional(),
1169
+ accountType: ConnectedAccountTypeSchema.optional(),
1170
+ aclConfigForShared: ConnectedAccountAclConfigSchema.optional()
1114
1171
  });
1115
1172
  const CreateConnectedAccountLinkResponseSchema = zod_v3.z.object({ redirectUrl: zod_v3.z.string() });
1116
1173
  const ConnectedAccountRefreshOptionsSchema = zod_v3.z.object({
@@ -1118,6 +1175,19 @@ const ConnectedAccountRefreshOptionsSchema = zod_v3.z.object({
1118
1175
  validateCredentials: zod_v3.z.boolean().optional()
1119
1176
  });
1120
1177
  const UpdateConnectedAccountParamsSchema = zod_v3.z.object({ enabled: zod_v3.z.boolean() });
1178
+ /**
1179
+ * Params for `composio.connectedAccounts.updateAcl()`. Mirrors the inner
1180
+ * shape of the wire's `acl_config_for_shared` block — the SDK adds the
1181
+ * outer nesting at the boundary, so callers pass the three fields flat.
1182
+ *
1183
+ * PATCH-style semantics — omit a field to leave it unchanged; pass an
1184
+ * empty array to clear an allow/deny list. Raises
1185
+ * `ComposioAclOnlyForSharedError` on a PRIVATE connection.
1186
+ *
1187
+ * Each field is optional, but at least one must be provided — passing an
1188
+ * empty object is rejected as a no-op.
1189
+ */
1190
+ const UpdateConnectedAccountAclParamsSchema = ConnectedAccountAclConfigSchema.refine((acl) => acl.allowAllUsers !== void 0 || acl.allowedUserIds !== void 0 || acl.notAllowedUserIds !== void 0, { message: "At least one of allowAllUsers, allowedUserIds, or notAllowedUserIds must be provided" });
1121
1191
 
1122
1192
  //#endregion
1123
1193
  //#region src/utils/transform.ts
@@ -1179,7 +1249,13 @@ function transformConnectedAccountResponse(response) {
1179
1249
  isDisabled: response$1.is_disabled,
1180
1250
  createdAt: response$1.created_at,
1181
1251
  updatedAt: response$1.updated_at,
1182
- testRequestEndpoint: response$1.test_request_endpoint
1252
+ testRequestEndpoint: response$1.test_request_endpoint,
1253
+ accountType: responseWithLabels.account_type,
1254
+ aclConfigForShared: responseWithLabels.acl_config_for_shared ? {
1255
+ allowAllUsers: responseWithLabels.acl_config_for_shared.allow_all_users,
1256
+ allowedUserIds: responseWithLabels.acl_config_for_shared.allowed_user_ids,
1257
+ notAllowedUserIds: responseWithLabels.acl_config_for_shared.not_allowed_user_ids
1258
+ } : void 0
1183
1259
  }));
1184
1260
  }
1185
1261
  /**
@@ -2795,13 +2871,24 @@ function createConnectionRequest(client, connectedAccountId, status, redirectUrl
2795
2871
  * @date 2025-05-05
2796
2872
  * @module ConnectedAccounts
2797
2873
  */
2798
- const LEGACY_RETIRING_OAUTH_SCHEMES = new Set([
2799
- "OAUTH1",
2800
- "OAUTH2",
2801
- "DCR_OAUTH"
2802
- ]);
2803
2874
  let _legacyInitiateWarningEmitted = false;
2804
2875
  /**
2876
+ * Serialise the SDK's `aclConfigForShared` (camelCase) to the wire's
2877
+ * `acl_config_for_shared` block. Returns `undefined` when the caller
2878
+ * didn't pass anything (PATCH-style "don't touch ACL"); returns `{}`
2879
+ * when the caller passed an explicit empty object — both mean
2880
+ * deny-by-default, but the explicit form preserves the caller's intent
2881
+ * in network traces.
2882
+ */
2883
+ function serializeAclConfigForWire(acl) {
2884
+ if (acl === void 0) return void 0;
2885
+ return {
2886
+ ...acl.allowAllUsers !== void 0 && { allow_all_users: acl.allowAllUsers },
2887
+ ...acl.allowedUserIds !== void 0 && { allowed_user_ids: acl.allowedUserIds },
2888
+ ...acl.notAllowedUserIds !== void 0 && { not_allowed_user_ids: acl.notAllowedUserIds }
2889
+ };
2890
+ }
2891
+ /**
2805
2892
  * ConnectedAccounts class
2806
2893
  *
2807
2894
  * This class is used to manage connected accounts in the Composio SDK.
@@ -2940,16 +3027,21 @@ var ConnectedAccounts = class {
2940
3027
  }
2941
3028
  };
2942
3029
  let response;
3030
+ let httpResponse;
2943
3031
  try {
2944
- response = await this.client.connectedAccounts.create(createParams);
3032
+ const apiCall = this.client.connectedAccounts.create(createParams);
3033
+ if (typeof apiCall.withResponse === "function") {
3034
+ const resolved = await apiCall.withResponse();
3035
+ response = resolved.data;
3036
+ httpResponse = resolved.response;
3037
+ } else response = await apiCall;
2945
3038
  } catch (error) {
2946
3039
  if (error instanceof _composio_client.BadRequestError && typeof error.message === "string" && error.message.includes("no longer supported") && error.message.includes("/api/v3/connected_accounts/link")) throw new require_CustomTool.ComposioLegacyConnectedAccountsEndpointRetiredError(error.message, { cause: error });
2947
3040
  throw error;
2948
3041
  }
2949
- const responseAuthScheme = response.connectionData?.authScheme;
2950
- if (!_legacyInitiateWarningEmitted && typeof responseAuthScheme === "string" && LEGACY_RETIRING_OAUTH_SCHEMES.has(responseAuthScheme)) {
3042
+ if (!_legacyInitiateWarningEmitted && httpResponse?.headers.get("Deprecation")) {
2951
3043
  _legacyInitiateWarningEmitted = true;
2952
- require_FileModifierErrors.logger_default.warn("[Deprecation] composio.connectedAccounts.initiate() will stop working for Composio-managed OAuth auth configs on 2026-05-08 (new orgs) and 2026-07-03 (all orgs). If this auth config is Composio-managed, switch to composio.connectedAccounts.link() before then. Custom auth configs are unaffected. See https://docs.composio.dev/docs/changelog/2026/04/24");
3044
+ require_FileModifierErrors.logger_default.warn("[Deprecation] composio.connectedAccounts.initiate() will stop working for this auth config on or before 2026-07-03 (see Sunset header on the response). Switch to composio.connectedAccounts.link() — same return shape, same allowMultiple semantics. https://docs.composio.dev/docs/changelog/2026/04/24");
2953
3045
  }
2954
3046
  const redirectUrl = typeof response.connectionData?.val?.redirectUrl === "string" ? response.connectionData.val.redirectUrl : null;
2955
3047
  return createConnectionRequest(this.client, response.id, response.connectionData.val.status, redirectUrl);
@@ -2999,15 +3091,21 @@ var ConnectedAccounts = class {
2999
3091
  });
3000
3092
  if (existing.items.length > 0 && !requestOptions.data.allowMultiple) throw new require_CustomTool.ComposioMultipleConnectedAccountsError(`Multiple connected accounts found for user ${userId} in auth config ${authConfigId}. Please use the allowMultiple option to allow multiple connected accounts.`);
3001
3093
  else if (existing.items.length > 0) require_FileModifierErrors.logger_default.warn(`[Warn:AllowMultiple] Multiple connected accounts found for user ${userId} in auth config ${authConfigId}`);
3094
+ const opts = requestOptions.data;
3095
+ const aclWire = serializeAclConfigForWire(opts.aclConfigForShared);
3096
+ const body = {
3097
+ auth_config_id: authConfigId,
3098
+ user_id: userId,
3099
+ ...opts.callbackUrl !== void 0 && { callback_url: opts.callbackUrl },
3100
+ ...opts.alias !== void 0 && { alias: opts.alias },
3101
+ ...opts.accountType !== void 0 && { account_type: opts.accountType },
3102
+ ...aclWire !== void 0 && { acl_config_for_shared: aclWire }
3103
+ };
3002
3104
  try {
3003
- const response = await this.client.link.create({
3004
- auth_config_id: authConfigId,
3005
- user_id: userId,
3006
- ...requestOptions?.data.callbackUrl && { callback_url: requestOptions.data.callbackUrl },
3007
- ...requestOptions?.data.alias != null && { alias: requestOptions.data.alias }
3008
- });
3105
+ const response = await this.client.link.create(body);
3009
3106
  return createConnectionRequest(this.client, response.connected_account_id, ConnectedAccountStatuses.INITIATED, response.redirect_url);
3010
3107
  } catch (error) {
3108
+ if (error instanceof _composio_client.BadRequestError && typeof error.message === "string" && error.message.includes("acl_config_for_shared is only valid on SHARED")) throw new require_CustomTool.ComposioAclOnlyForSharedError(error.message, { cause: error });
3011
3109
  throw new require_CustomTool.ComposioFailedToCreateConnectedAccountLink("Failed to create connected account link", { cause: error });
3012
3110
  }
3013
3111
  }
@@ -3164,7 +3262,9 @@ var ConnectedAccounts = class {
3164
3262
  return this.client.connectedAccounts.updateStatus(nanoid, { enabled: false });
3165
3263
  }
3166
3264
  /**
3167
- * Update a connected account's alias and/or credentials.
3265
+ * Enable or disable a connected account. Accepts `{ enabled: boolean }`.
3266
+ *
3267
+ * For ACL writes on SHARED connections, see {@link updateAcl}.
3168
3268
  *
3169
3269
  * @param {string} nanoid - The unique identifier of the connected account
3170
3270
  * @param {UpdateConnectedAccountParams} params - The update parameters
@@ -3181,6 +3281,67 @@ var ConnectedAccounts = class {
3181
3281
  if (!parsedParams.success) throw new require_CustomTool.ValidationError("Failed to parse connected account update params", { cause: parsedParams.error });
3182
3282
  return this.client.connectedAccounts.updateStatus(nanoid, parsedParams.data);
3183
3283
  }
3284
+ /**
3285
+ * Update the per-user ACL on a SHARED connected account.
3286
+ *
3287
+ * Only meaningful for SHARED connections — calling this on a PRIVATE
3288
+ * connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
3289
+ * require the connection's creator or an API key; alias edits via
3290
+ * {@link update} are governed separately.
3291
+ *
3292
+ * PATCH semantics: omit a field to leave it unchanged; pass an empty array
3293
+ * to clear an allow/deny list. At least one field must be provided.
3294
+ *
3295
+ * Resolution rule (deny wins):
3296
+ * 1. requesting `userId` in `notAllowedUserIds` → DENY
3297
+ * 2. `allowAllUsers === true` → ALLOW
3298
+ * 3. requesting `userId` in `allowedUserIds` → ALLOW
3299
+ * 4. otherwise → DENY
3300
+ *
3301
+ * @example
3302
+ * ```typescript
3303
+ * // Allow every userId to use this connection
3304
+ * await composio.connectedAccounts.updateAcl('ca_abc', { allowAllUsers: true });
3305
+ *
3306
+ * // Everyone except a specific user
3307
+ * await composio.connectedAccounts.updateAcl('ca_abc', {
3308
+ * allowAllUsers: true,
3309
+ * notAllowedUserIds: ['user_bob'],
3310
+ * });
3311
+ *
3312
+ * // Targeted allow
3313
+ * await composio.connectedAccounts.updateAcl('ca_abc', {
3314
+ * allowedUserIds: ['user_alice', 'user_bob'],
3315
+ * });
3316
+ *
3317
+ * // Revoke a previously-granted allow list (back to deny-by-default)
3318
+ * await composio.connectedAccounts.updateAcl('ca_abc', { allowedUserIds: [] });
3319
+ * ```
3320
+ *
3321
+ * **Empty-array semantics — read carefully.** Passing `[]` for either
3322
+ * list **replaces** the list, it does not extend it:
3323
+ *
3324
+ * - `allowedUserIds: []` → revoke all previously-granted user IDs (state
3325
+ * reverts to deny-by-default unless `allowAllUsers` is true).
3326
+ * - `notAllowedUserIds: []` → **clears the deny list**, which silently
3327
+ * re-grants access to users you previously blocked. Always pair an
3328
+ * empty deny list with a deliberate audit of the allow side.
3329
+ *
3330
+ * @returns The PATCH response (`{ id, status, success }`). To read the
3331
+ * updated `aclConfigForShared` block, call `get(nanoid)` after the
3332
+ * promise resolves.
3333
+ */
3334
+ async updateAcl(nanoid, params) {
3335
+ const parsedParams = UpdateConnectedAccountAclParamsSchema.safeParse(params);
3336
+ if (!parsedParams.success) throw new require_CustomTool.ValidationError("Failed to parse connected account ACL update params", { cause: parsedParams.error });
3337
+ const body = { acl_config_for_shared: serializeAclConfigForWire(parsedParams.data) };
3338
+ try {
3339
+ return await this.client.connectedAccounts.patch(nanoid, body);
3340
+ } catch (error) {
3341
+ if (error instanceof _composio_client.BadRequestError && typeof error.message === "string" && error.message.includes("acl_config_for_shared is only valid on SHARED")) throw new require_CustomTool.ComposioAclOnlyForSharedError(error.message, { cause: error });
3342
+ throw error;
3343
+ }
3344
+ }
3184
3345
  };
3185
3346
 
3186
3347
  //#endregion
@@ -5489,7 +5650,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
5489
5650
 
5490
5651
  //#endregion
5491
5652
  //#region package.json
5492
- var version = "0.9.0";
5653
+ var version = "0.9.1";
5493
5654
 
5494
5655
  //#endregion
5495
5656
  //#region src/utils/session.ts
@@ -6642,6 +6803,20 @@ var SessionContextImpl = class {
6642
6803
  //#region src/models/ToolRouterSession.ts
6643
6804
  const COMPOSIO_MULTI_EXECUTE_TOOL = "COMPOSIO_MULTI_EXECUTE_TOOL";
6644
6805
  const DIRECT_CUSTOM_TOOL_DESCRIPTION_PREFIX = "[Direct tool - call directly, no search needed beforehand.]";
6806
+ /**
6807
+ * Options accepted by {@link ToolRouterSession.authorize}.
6808
+ *
6809
+ * Validated at the SDK boundary so callers get clear `ValidationError`s for
6810
+ * oversized ACL lists or invalid `userId`s — same caps as the equivalent
6811
+ * `composio.connectedAccounts.link()` path (≤1000 entries per list, each
6812
+ * `userId` 1..256 characters).
6813
+ */
6814
+ const AuthorizeOptionsSchema = zod_v3.z.object({
6815
+ callbackUrl: zod_v3.z.string().optional(),
6816
+ alias: zod_v3.z.string().optional(),
6817
+ accountType: ConnectedAccountTypeSchema.optional(),
6818
+ aclConfigForShared: ConnectedAccountAclConfigSchema.optional()
6819
+ });
6645
6820
  var ToolRouterSession = class {
6646
6821
  sessionId;
6647
6822
  mcp;
@@ -6789,13 +6964,39 @@ var ToolRouterSession = class {
6789
6964
  /**
6790
6965
  * Initiate an authorization flow for a toolkit.
6791
6966
  * Returns a ConnectionRequest with a redirect URL for the user.
6967
+ *
6968
+ * Use `accountType` and `aclConfigForShared` to create a SHARED connection
6969
+ * with a per-user ACL in one flow. Default behaviour (omit both) creates
6970
+ * a PRIVATE connection.
6971
+ *
6972
+ * `aclConfigForShared` is validated against the same caps as
6973
+ * `composio.connectedAccounts.link()` (≤1000 entries per list, each
6974
+ * `userId` 1..256 characters). Invalid input throws `ValidationError`
6975
+ * at the SDK boundary.
6792
6976
  */
6793
6977
  async authorize(toolkit, options) {
6794
- const response = await this.client.toolRouter.session.link(this.sessionId, {
6978
+ const requestOptions = AuthorizeOptionsSchema.safeParse(options ?? {});
6979
+ if (!requestOptions.success) throw new require_CustomTool.ValidationError("Failed to parse tool router authorize options", { cause: requestOptions.error });
6980
+ const opts = requestOptions.data;
6981
+ const aclWire = opts.aclConfigForShared === void 0 ? void 0 : {
6982
+ ...opts.aclConfigForShared.allowAllUsers !== void 0 && { allow_all_users: opts.aclConfigForShared.allowAllUsers },
6983
+ ...opts.aclConfigForShared.allowedUserIds !== void 0 && { allowed_user_ids: opts.aclConfigForShared.allowedUserIds },
6984
+ ...opts.aclConfigForShared.notAllowedUserIds !== void 0 && { not_allowed_user_ids: opts.aclConfigForShared.notAllowedUserIds }
6985
+ };
6986
+ const body = {
6795
6987
  toolkit,
6796
- ...options?.callbackUrl && { callback_url: options.callbackUrl },
6797
- ...options?.alias != null && { alias: options.alias }
6798
- });
6988
+ ...opts.callbackUrl !== void 0 && { callback_url: opts.callbackUrl },
6989
+ ...opts.alias !== void 0 && { alias: opts.alias },
6990
+ ...opts.accountType !== void 0 && { account_type: opts.accountType },
6991
+ ...aclWire !== void 0 && { acl_config_for_shared: aclWire }
6992
+ };
6993
+ let response;
6994
+ try {
6995
+ response = await this.client.toolRouter.session.link(this.sessionId, body);
6996
+ } catch (error) {
6997
+ if (error instanceof _composio_client.BadRequestError && typeof error.message === "string" && error.message.includes("acl_config_for_shared is only valid on SHARED")) throw new require_CustomTool.ComposioAclOnlyForSharedError(error.message, { cause: error });
6998
+ throw error;
6999
+ }
6799
7000
  return createConnectionRequest(this.client, response.connected_account_id, ConnectedAccountStatuses.INITIATED, response.redirect_url);
6800
7001
  }
6801
7002
  /**
@@ -8127,6 +8328,7 @@ exports.BaseAgenticProvider = BaseAgenticProvider;
8127
8328
  exports.BaseNonAgenticProvider = BaseNonAgenticProvider;
8128
8329
  exports.BillcomAuthConnectionDataSchema = BillcomAuthConnectionDataSchema;
8129
8330
  exports.Composio = Composio;
8331
+ exports.ComposioAclOnlyForSharedError = require_CustomTool.ComposioAclOnlyForSharedError;
8130
8332
  exports.ComposioAuthConfigNotFoundError = require_CustomTool.ComposioAuthConfigNotFoundError;
8131
8333
  exports.ComposioConnectedAccountNotFoundError = require_CustomTool.ComposioConnectedAccountNotFoundError;
8132
8334
  exports.ComposioCustomCreateResponseSchema = ComposioCustomCreateResponseSchema;
@@ -8156,6 +8358,8 @@ exports.ComposioNoAPIKeyError = require_CustomTool.ComposioNoAPIKeyError;
8156
8358
  exports.ComposioProvider = ComposioProvider;
8157
8359
  exports.ComposioProviderNotDefinedError = require_CustomTool.ComposioProviderNotDefinedError;
8158
8360
  exports.ComposioSensitiveFilePathBlockedError = require_FileModifierErrors.ComposioSensitiveFilePathBlockedError;
8361
+ exports.ComposioSharedAccessDeniedError = require_CustomTool.ComposioSharedAccessDeniedError;
8362
+ exports.ComposioSharedConnectionNotAccessibleError = require_CustomTool.ComposioSharedConnectionNotAccessibleError;
8159
8363
  exports.ComposioToolExecutionError = require_CustomTool.ComposioToolExecutionError;
8160
8364
  exports.ComposioToolNotFoundError = require_CustomTool.ComposioToolNotFoundError;
8161
8365
  exports.ComposioToolVersionRequiredError = require_CustomTool.ComposioToolVersionRequiredError;
@@ -8164,6 +8368,8 @@ exports.ComposioToolkitNotFoundError = require_CustomTool.ComposioToolkitNotFoun
8164
8368
  exports.ComposioTriggerTypeNotFoundError = require_CustomTool.ComposioTriggerTypeNotFoundError;
8165
8369
  exports.ComposioWebhookPayloadError = require_CustomTool.ComposioWebhookPayloadError;
8166
8370
  exports.ComposioWebhookSignatureVerificationError = require_CustomTool.ComposioWebhookSignatureVerificationError;
8371
+ exports.ConnectedAccountAclConfigResponseSchema = ConnectedAccountAclConfigResponseSchema;
8372
+ exports.ConnectedAccountAclConfigSchema = ConnectedAccountAclConfigSchema;
8167
8373
  exports.ConnectedAccountAuthConfigSchema = ConnectedAccountAuthConfigSchema;
8168
8374
  exports.ConnectedAccountErrorCodes = require_CustomTool.ConnectedAccountErrorCodes;
8169
8375
  exports.ConnectedAccountListParamsSchema = ConnectedAccountListParamsSchema;
@@ -8172,6 +8378,8 @@ exports.ConnectedAccountRefreshOptionsSchema = ConnectedAccountRefreshOptionsSch
8172
8378
  exports.ConnectedAccountRetrieveResponseSchema = ConnectedAccountRetrieveResponseSchema;
8173
8379
  exports.ConnectedAccountStatusSchema = ConnectedAccountStatusSchema;
8174
8380
  exports.ConnectedAccountStatuses = ConnectedAccountStatuses;
8381
+ exports.ConnectedAccountTypeSchema = ConnectedAccountTypeSchema;
8382
+ exports.ConnectedAccountTypes = ConnectedAccountTypes;
8175
8383
  exports.ConnectionDataSchema = ConnectionDataSchema;
8176
8384
  exports.ConnectionExpiredEventSchema = ConnectionExpiredEventSchema;
8177
8385
  exports.ConnectionRequestErrorCodes = require_CustomTool.ConnectionRequestErrorCodes;
@@ -8313,6 +8521,7 @@ exports.TriggerSubscribeParamSchema = TriggerSubscribeParamSchema;
8313
8521
  exports.TriggerTypeSchema = TriggerTypeSchema;
8314
8522
  exports.TriggersTypeListParamsSchema = TriggersTypeListParamsSchema;
8315
8523
  exports.TriggersTypeListResponseSchema = TriggersTypeListResponseSchema;
8524
+ exports.UpdateConnectedAccountAclParamsSchema = UpdateConnectedAccountAclParamsSchema;
8316
8525
  exports.UpdateConnectedAccountParamsSchema = UpdateConnectedAccountParamsSchema;
8317
8526
  exports.ValidationError = require_CustomTool.ValidationError;
8318
8527
  exports.ValidationErrorCodes = require_CustomTool.ValidationErrorCodes;