@composio/core 0.8.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{CustomTool-CzhY9iPX.d.cts → CustomTool-87USJ2u0.d.cts} +1 -1
  2. package/dist/{CustomTool-BaRzlwyV.d.mts → CustomTool-BNxqr6BI.d.mts} +1 -1
  3. package/dist/{CustomTool-CVwF_isu.mjs → CustomTool-DOE7hgw6.mjs} +232 -27
  4. package/dist/{CustomTool-DnCSEC6t.cjs → CustomTool-Dj4fNvsu.cjs} +279 -26
  5. package/dist/{composio-CwcLLO7C.d.mts → composio-BJW2NaoA.d.mts} +174 -144
  6. package/dist/{composio-B75SFMkx.d.cts → composio-DTntXzL-.d.cts} +174 -144
  7. package/dist/{customTool.types-BL_z-C_B.d.mts → customTool.types-B3HG185y.d.mts} +332 -30
  8. package/dist/{customTool.types-2DhEI1vs.d.cts → customTool.types-Bd8ylotX.d.cts} +332 -30
  9. package/dist/experimental/index.cjs +1 -1
  10. package/dist/experimental/index.d.cts +2 -2
  11. package/dist/experimental/index.d.mts +3 -3
  12. package/dist/experimental/index.mjs +1 -1
  13. package/dist/index.cjs +492 -58
  14. package/dist/index.d.cts +80 -9
  15. package/dist/index.d.mts +80 -9
  16. package/dist/index.mjs +489 -61
  17. package/dist/{tool.types-CNYy-lBq.d.mts → tool.types-CB_4JKhV.d.mts} +600 -37
  18. package/dist/{tool.types-BlXcjUs1.d.cts → tool.types-CwbAy9l_.d.cts} +600 -37
  19. package/dist/{types-DGrpnYFI.d.mts → types-BClz5lKM.d.mts} +2 -2
  20. package/dist/{types-CZkT1raQ.d.cts → types-jsOgjrWN.d.cts} +2 -2
  21. package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
  22. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +4 -4
  23. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
  24. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +4 -4
  25. package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
  26. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  27. package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
  28. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  29. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { R as SessionMetaToolOptions, nn as ConnectionDataSchema, o as Tool, q as BaseComposioProvider, tn as ConnectionData, v as ToolProxyParams } from "./tool.types-BlXcjUs1.cjs";
1
+ import { R as SessionMetaToolOptions, nn as ConnectionDataSchema, o as Tool, q as BaseComposioProvider, tn as ConnectionData, v as ToolProxyParams } from "./tool.types-CwbAy9l_.cjs";
2
2
  import z$1, { z } from "zod/v3";
3
3
  import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
4
4
  import { Composio } from "@composio/client";
@@ -16,8 +16,9 @@ declare const ConnectedAccountStatuses: {
16
16
  readonly FAILED: "FAILED";
17
17
  readonly EXPIRED: "EXPIRED";
18
18
  readonly INACTIVE: "INACTIVE";
19
+ readonly REVOKED: "REVOKED";
19
20
  };
20
- declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
21
+ declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
21
22
  type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
22
23
  type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
23
24
  declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
@@ -85,14 +86,14 @@ type CreateConnectedAccountParams = z.infer<typeof CreateConnectedAccountParamsS
85
86
  */
86
87
  declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
87
88
  id: z.ZodString;
88
- status: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>;
89
+ status: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
89
90
  redirectUrl: z.ZodNullable<z.ZodString>;
90
91
  }, "strip", z.ZodTypeAny, {
91
- status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
92
+ status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
92
93
  redirectUrl: string | null;
93
94
  id: string;
94
95
  }, {
95
- status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
96
+ status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
96
97
  redirectUrl: string | null;
97
98
  id: string;
98
99
  }>;
@@ -145,7 +146,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
145
146
  cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
147
  limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
147
148
  orderBy: z.ZodOptional<z.ZodEnum<["created_at", "updated_at"]>>;
148
- statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE"]>, "many">>>;
149
+ statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
149
150
  toolkitSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
150
151
  userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
151
152
  }, "strip", z.ZodTypeAny, {
@@ -153,7 +154,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
153
154
  authConfigIds?: string[] | null | undefined;
154
155
  cursor?: string | null | undefined;
155
156
  orderBy?: "created_at" | "updated_at" | undefined;
156
- statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
157
+ statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
157
158
  toolkitSlugs?: string[] | null | undefined;
158
159
  userIds?: string[] | null | undefined;
159
160
  }, {
@@ -161,7 +162,7 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
161
162
  authConfigIds?: string[] | null | undefined;
162
163
  cursor?: string | null | undefined;
163
164
  orderBy?: "created_at" | "updated_at" | undefined;
164
- statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
165
+ statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
165
166
  toolkitSlugs?: string[] | null | undefined;
166
167
  userIds?: string[] | null | undefined;
167
168
  }>;
@@ -676,6 +677,10 @@ declare class ToolRouterSessionFilesMount {
676
677
  }
677
678
  //#endregion
678
679
  //#region src/types/toolRouter.types.d.ts
680
+ declare const SessionPreset: {
681
+ readonly DIRECT_TOOLS: "direct_tools";
682
+ };
683
+ type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
679
684
  declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
680
685
  type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
681
686
  /**
@@ -829,7 +834,8 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
829
834
  };
830
835
  }>;
831
836
  type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
832
- declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
837
+ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
838
+ sessionPreset: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodLiteral<"direct_tools">>>;
833
839
  tools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
834
840
  enable: z$1.ZodArray<z$1.ZodString, "many">;
835
841
  }, "strict", z$1.ZodTypeAny, {
@@ -906,7 +912,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
906
912
  enable: string[];
907
913
  }>]>>>;
908
914
  authConfigs: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
909
- connectedAccounts: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
915
+ connectedAccounts: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>>>;
910
916
  manageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodObject<{
911
917
  enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
912
918
  callbackUrl: z$1.ZodOptional<z$1.ZodString>;
@@ -950,11 +956,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
950
956
  requireExplicitSelection?: boolean | undefined;
951
957
  }>>>;
952
958
  preload: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
953
- tools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
959
+ tools: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodLiteral<"all">]>>;
954
960
  }, "strict", z$1.ZodTypeAny, {
955
- tools?: string[] | undefined;
961
+ tools?: string[] | "all" | undefined;
956
962
  }, {
957
- tools?: string[] | undefined;
963
+ tools?: string[] | "all" | undefined;
958
964
  }>>>;
959
965
  experimental: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
960
966
  assistivePrompt: z$1.ZodOptional<z$1.ZodObject<{
@@ -999,8 +1005,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
999
1005
  } | {
1000
1006
  enable: string[];
1001
1007
  } | undefined;
1008
+ preload?: {
1009
+ tools?: string[] | "all" | undefined;
1010
+ } | undefined;
1011
+ sessionPreset?: "direct_tools" | undefined;
1002
1012
  authConfigs?: Record<string, string> | undefined;
1003
- connectedAccounts?: Record<string, string> | undefined;
1013
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1004
1014
  manageConnections?: boolean | {
1005
1015
  callbackUrl?: string | undefined;
1006
1016
  enable?: boolean | undefined;
@@ -1017,9 +1027,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
1017
1027
  maxAccountsPerToolkit?: number | undefined;
1018
1028
  requireExplicitSelection?: boolean | undefined;
1019
1029
  } | undefined;
1020
- preload?: {
1021
- tools?: string[] | undefined;
1022
- } | undefined;
1023
1030
  experimental?: {
1024
1031
  assistivePrompt?: {
1025
1032
  userTimezone?: string | undefined;
@@ -1047,8 +1054,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
1047
1054
  } | {
1048
1055
  enable: string[];
1049
1056
  } | undefined;
1057
+ preload?: {
1058
+ tools?: string[] | "all" | undefined;
1059
+ } | undefined;
1060
+ sessionPreset?: "direct_tools" | undefined;
1050
1061
  authConfigs?: Record<string, string> | undefined;
1051
- connectedAccounts?: Record<string, string> | undefined;
1062
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1052
1063
  manageConnections?: boolean | {
1053
1064
  callbackUrl?: string | undefined;
1054
1065
  enable?: boolean | undefined;
@@ -1065,8 +1076,54 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
1065
1076
  maxAccountsPerToolkit?: number | undefined;
1066
1077
  requireExplicitSelection?: boolean | undefined;
1067
1078
  } | undefined;
1079
+ experimental?: {
1080
+ assistivePrompt?: {
1081
+ userTimezone?: string | undefined;
1082
+ } | undefined;
1083
+ customTools?: CustomTool[] | undefined;
1084
+ customToolkits?: CustomToolkit[] | undefined;
1085
+ } | undefined;
1086
+ }>, {
1087
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1088
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1089
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1090
+ } | undefined;
1091
+ tools?: Record<string, string[] | {
1092
+ enable: string[];
1093
+ } | {
1094
+ disable: string[];
1095
+ } | {
1096
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1097
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1098
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1099
+ };
1100
+ }> | undefined;
1101
+ toolkits?: string[] | {
1102
+ disable: string[];
1103
+ } | {
1104
+ enable: string[];
1105
+ } | undefined;
1068
1106
  preload?: {
1069
- tools?: string[] | undefined;
1107
+ tools?: string[] | "all" | undefined;
1108
+ } | undefined;
1109
+ sessionPreset?: "direct_tools" | undefined;
1110
+ authConfigs?: Record<string, string> | undefined;
1111
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1112
+ manageConnections?: boolean | {
1113
+ callbackUrl?: string | undefined;
1114
+ enable?: boolean | undefined;
1115
+ waitForConnections?: boolean | undefined;
1116
+ } | undefined;
1117
+ workbench?: {
1118
+ enable: boolean;
1119
+ enableProxyExecution?: boolean | undefined;
1120
+ autoOffloadThreshold?: number | undefined;
1121
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1122
+ } | undefined;
1123
+ multiAccount?: {
1124
+ enable: boolean;
1125
+ maxAccountsPerToolkit?: number | undefined;
1126
+ requireExplicitSelection?: boolean | undefined;
1070
1127
  } | undefined;
1071
1128
  experimental?: {
1072
1129
  assistivePrompt?: {
@@ -1075,15 +1132,16 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
1075
1132
  customTools?: CustomTool[] | undefined;
1076
1133
  customToolkits?: CustomToolkit[] | undefined;
1077
1134
  } | undefined;
1078
- }>;
1135
+ }, unknown>;
1079
1136
  /**
1080
1137
  * The config for the tool router session.
1081
1138
  *
1139
+ * @param {SessionPreset} [sessionPreset] - Shortcut that exposes every tool allowed by the session filters directly in session.tools() and the MCP tool list. Disables search, multi-execute, manage-connections, and workbench by default; explicit overrides for supported fields still win. Without this preset, ToolRouter uses the default configuration with meta tools enabled.
1082
1140
  * @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
1083
1141
  * @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
1084
1142
  * @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
1085
1143
  * @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
1086
- * @param {Record<string, string>} connectedAccounts - The connected accounts to use in the tool router session
1144
+ * @param {Record<string, string | string[]>} connectedAccounts - The connected accounts to use in the tool router session. A single string is coerced to a single-element array before being sent to the backend.
1087
1145
  * @param {ToolRouterConfigManageConnectionsSchema | boolean} manageConnections - The config for the manage connections in the tool router session. Defaults to true, if set to false, you need to manage connections manually. If set to an object, you can configure the manage connections settings.
1088
1146
  * @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
1089
1147
  * @param {string} [manageConnections.callbackUrl] - The callback url to use in the tool router session
@@ -1097,7 +1155,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodObject<{
1097
1155
  * @param {number} [multiAccount.maxAccountsPerToolkit] - Max connected accounts per toolkit (2-10, default 5)
1098
1156
  * @param {boolean} [multiAccount.requireExplicitSelection] - When true, require explicit account selection when multiple accounts are connected
1099
1157
  * @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
1100
- * @param {string[]} [preload.tools] - Tool slugs to preload. Server-side validation ensures they exist and are allowed by the session filters.
1158
+ * @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
1101
1159
  */
1102
1160
  type ToolRouterCreateSessionConfig = z$1.infer<typeof ToolRouterCreateSessionConfigSchema>;
1103
1161
  declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
@@ -1154,8 +1212,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
1154
1212
  } | undefined;
1155
1213
  }>>;
1156
1214
  }, "strip", z$1.ZodTypeAny, {
1157
- name: string;
1158
1215
  slug: string;
1216
+ name: string;
1159
1217
  isNoAuth: boolean;
1160
1218
  logo?: string | undefined;
1161
1219
  connection?: {
@@ -1171,8 +1229,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
1171
1229
  } | undefined;
1172
1230
  } | undefined;
1173
1231
  }, {
1174
- name: string;
1175
1232
  slug: string;
1233
+ name: string;
1176
1234
  logo?: string | undefined;
1177
1235
  isNoAuth?: boolean | undefined;
1178
1236
  connection?: {
@@ -1243,8 +1301,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1243
1301
  } | undefined;
1244
1302
  }>>;
1245
1303
  }, "strip", z$1.ZodTypeAny, {
1246
- name: string;
1247
1304
  slug: string;
1305
+ name: string;
1248
1306
  isNoAuth: boolean;
1249
1307
  logo?: string | undefined;
1250
1308
  connection?: {
@@ -1260,8 +1318,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1260
1318
  } | undefined;
1261
1319
  } | undefined;
1262
1320
  }, {
1263
- name: string;
1264
1321
  slug: string;
1322
+ name: string;
1265
1323
  logo?: string | undefined;
1266
1324
  isNoAuth?: boolean | undefined;
1267
1325
  connection?: {
@@ -1281,8 +1339,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1281
1339
  totalPages: z$1.ZodNumber;
1282
1340
  }, "strip", z$1.ZodTypeAny, {
1283
1341
  items: {
1284
- name: string;
1285
1342
  slug: string;
1343
+ name: string;
1286
1344
  isNoAuth: boolean;
1287
1345
  logo?: string | undefined;
1288
1346
  connection?: {
@@ -1302,8 +1360,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1302
1360
  cursor?: string | undefined;
1303
1361
  }, {
1304
1362
  items: {
1305
- name: string;
1306
1363
  slug: string;
1364
+ name: string;
1307
1365
  logo?: string | undefined;
1308
1366
  isNoAuth?: boolean | undefined;
1309
1367
  connection?: {
@@ -1709,6 +1767,8 @@ interface ToolRouterSessionMetadata {
1709
1767
  preload?: ToolRouterSessionPreloadConfig;
1710
1768
  configVersion?: number;
1711
1769
  warnings?: ToolRouterSessionWarning[];
1770
+ preloadedCustomToolSlugs?: string[];
1771
+ inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
1712
1772
  }
1713
1773
  declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
1714
1774
  /** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
@@ -1756,6 +1816,218 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
1756
1816
  }>;
1757
1817
  type SessionProxyExecuteParams = z$1.infer<typeof SessionProxyExecuteParamsSchema>;
1758
1818
  type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
1819
+ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
1820
+ toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
1821
+ disable: z$1.ZodArray<z$1.ZodString, "many">;
1822
+ }, "strict", z$1.ZodTypeAny, {
1823
+ disable: string[];
1824
+ }, {
1825
+ disable: string[];
1826
+ }>, z$1.ZodObject<{
1827
+ enable: z$1.ZodArray<z$1.ZodString, "many">;
1828
+ }, "strict", z$1.ZodTypeAny, {
1829
+ enable: string[];
1830
+ }, {
1831
+ enable: string[];
1832
+ }>]>>>;
1833
+ tools: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
1834
+ enable: z$1.ZodArray<z$1.ZodString, "many">;
1835
+ }, "strict", z$1.ZodTypeAny, {
1836
+ enable: string[];
1837
+ }, {
1838
+ enable: string[];
1839
+ }>, z$1.ZodObject<{
1840
+ disable: z$1.ZodArray<z$1.ZodString, "many">;
1841
+ }, "strict", z$1.ZodTypeAny, {
1842
+ disable: string[];
1843
+ }, {
1844
+ disable: string[];
1845
+ }>, z$1.ZodObject<{
1846
+ tags: z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
1847
+ enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
1848
+ disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
1849
+ }, "strict", z$1.ZodTypeAny, {
1850
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1851
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1852
+ }, {
1853
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1854
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1855
+ }>]>;
1856
+ }, "strict", z$1.ZodTypeAny, {
1857
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1858
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1859
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1860
+ };
1861
+ }, {
1862
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1863
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1864
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1865
+ };
1866
+ }>]>, string[] | {
1867
+ enable: string[];
1868
+ } | {
1869
+ disable: string[];
1870
+ } | {
1871
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1872
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1873
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1874
+ };
1875
+ }, string[] | {
1876
+ enable: string[];
1877
+ } | {
1878
+ disable: string[];
1879
+ } | {
1880
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1881
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1882
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1883
+ };
1884
+ }>]>>>>;
1885
+ tags: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z$1.ZodObject<{
1886
+ enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
1887
+ disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
1888
+ }, "strict", z$1.ZodTypeAny, {
1889
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1890
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1891
+ }, {
1892
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1893
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1894
+ }>]>>>;
1895
+ authConfigs: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>>;
1896
+ connectedAccounts: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEffects<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>;
1897
+ manageConnections: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodObject<{
1898
+ enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
1899
+ callbackUrl: z$1.ZodOptional<z$1.ZodString>;
1900
+ waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
1901
+ }, "strict", z$1.ZodTypeAny, {
1902
+ callbackUrl?: string | undefined;
1903
+ enable?: boolean | undefined;
1904
+ waitForConnections?: boolean | undefined;
1905
+ }, {
1906
+ callbackUrl?: string | undefined;
1907
+ enable?: boolean | undefined;
1908
+ waitForConnections?: boolean | undefined;
1909
+ }>]>>>>;
1910
+ workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
1911
+ enable: z$1.ZodOptional<z$1.ZodBoolean>;
1912
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
1913
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
1914
+ sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
1915
+ }, "strip", z$1.ZodTypeAny, {
1916
+ enable?: boolean | undefined;
1917
+ enableProxyExecution?: boolean | undefined;
1918
+ autoOffloadThreshold?: number | undefined;
1919
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1920
+ }, {
1921
+ enable?: boolean | undefined;
1922
+ enableProxyExecution?: boolean | undefined;
1923
+ autoOffloadThreshold?: number | undefined;
1924
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1925
+ }>>>>;
1926
+ multiAccount: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
1927
+ enable: z$1.ZodOptional<z$1.ZodBoolean>;
1928
+ maxAccountsPerToolkit: z$1.ZodOptional<z$1.ZodNumber>;
1929
+ requireExplicitSelection: z$1.ZodOptional<z$1.ZodBoolean>;
1930
+ }, "strip", z$1.ZodTypeAny, {
1931
+ enable?: boolean | undefined;
1932
+ maxAccountsPerToolkit?: number | undefined;
1933
+ requireExplicitSelection?: boolean | undefined;
1934
+ }, {
1935
+ enable?: boolean | undefined;
1936
+ maxAccountsPerToolkit?: number | undefined;
1937
+ requireExplicitSelection?: boolean | undefined;
1938
+ }>>>>;
1939
+ preload: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
1940
+ tools: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodLiteral<"all">]>>;
1941
+ }, "strict", z$1.ZodTypeAny, {
1942
+ tools?: string[] | "all" | undefined;
1943
+ }, {
1944
+ tools?: string[] | "all" | undefined;
1945
+ }>>>;
1946
+ }, "strip", z$1.ZodTypeAny, {
1947
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1948
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1949
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1950
+ } | undefined;
1951
+ tools?: Record<string, string[] | {
1952
+ enable: string[];
1953
+ } | {
1954
+ disable: string[];
1955
+ } | {
1956
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1957
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1958
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1959
+ };
1960
+ }> | undefined;
1961
+ toolkits?: string[] | {
1962
+ disable: string[];
1963
+ } | {
1964
+ enable: string[];
1965
+ } | undefined;
1966
+ preload?: {
1967
+ tools?: string[] | "all" | undefined;
1968
+ } | undefined;
1969
+ authConfigs?: Record<string, string> | undefined;
1970
+ connectedAccounts?: Record<string, string[]> | undefined;
1971
+ manageConnections?: boolean | {
1972
+ callbackUrl?: string | undefined;
1973
+ enable?: boolean | undefined;
1974
+ waitForConnections?: boolean | undefined;
1975
+ } | null | undefined;
1976
+ workbench?: {
1977
+ enable?: boolean | undefined;
1978
+ enableProxyExecution?: boolean | undefined;
1979
+ autoOffloadThreshold?: number | undefined;
1980
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1981
+ } | null | undefined;
1982
+ multiAccount?: {
1983
+ enable?: boolean | undefined;
1984
+ maxAccountsPerToolkit?: number | undefined;
1985
+ requireExplicitSelection?: boolean | undefined;
1986
+ } | null | undefined;
1987
+ }, {
1988
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1989
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1990
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1991
+ } | undefined;
1992
+ tools?: Record<string, string[] | {
1993
+ enable: string[];
1994
+ } | {
1995
+ disable: string[];
1996
+ } | {
1997
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1998
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1999
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2000
+ };
2001
+ }> | undefined;
2002
+ toolkits?: string[] | {
2003
+ disable: string[];
2004
+ } | {
2005
+ enable: string[];
2006
+ } | undefined;
2007
+ preload?: {
2008
+ tools?: string[] | "all" | undefined;
2009
+ } | undefined;
2010
+ authConfigs?: Record<string, string> | undefined;
2011
+ connectedAccounts?: Record<string, string | string[]> | undefined;
2012
+ manageConnections?: boolean | {
2013
+ callbackUrl?: string | undefined;
2014
+ enable?: boolean | undefined;
2015
+ waitForConnections?: boolean | undefined;
2016
+ } | null | undefined;
2017
+ workbench?: {
2018
+ enable?: boolean | undefined;
2019
+ enableProxyExecution?: boolean | undefined;
2020
+ autoOffloadThreshold?: number | undefined;
2021
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2022
+ } | null | undefined;
2023
+ multiAccount?: {
2024
+ enable?: boolean | undefined;
2025
+ maxAccountsPerToolkit?: number | undefined;
2026
+ requireExplicitSelection?: boolean | undefined;
2027
+ } | null | undefined;
2028
+ }>;
2029
+ type ToolRouterUpdateSessionConfig = z$1.infer<typeof ToolRouterUpdateSessionConfigSchema>;
2030
+ type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
1759
2031
  /** Session type returned by ToolRouter.create() and ToolRouter.use() */
1760
2032
  interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
1761
2033
  sessionId: string;
@@ -1773,6 +2045,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
1773
2045
  search: ToolRouterSessionSearchFn;
1774
2046
  /** Execute a tool within the session */
1775
2047
  execute: ToolRouterSessionExecuteFn;
2048
+ /** Update the session configuration. Mutates this session in-place. */
2049
+ update: ToolRouterSessionUpdateFn;
1776
2050
  /** Proxy an API call through Composio's auth layer using the session's connected account */
1777
2051
  proxyExecute: ToolRouterSessionProxyExecuteFn;
1778
2052
  /** List custom tools registered in this session, with their final slugs and schemas */
@@ -1865,14 +2139,17 @@ declare const CreateCustomToolBaseSchema: z.ZodObject<{
1865
2139
  * Leave empty for tools that don't need any Composio-managed authentication.
1866
2140
  */
1867
2141
  extendsToolkit: z.ZodOptional<z.ZodString>;
2142
+ preload: z.ZodOptional<z.ZodBoolean>;
1868
2143
  }, "strip", z.ZodTypeAny, {
1869
2144
  name: string;
1870
2145
  description: string;
1871
2146
  extendsToolkit?: string | undefined;
2147
+ preload?: boolean | undefined;
1872
2148
  }, {
1873
2149
  name: string;
1874
2150
  description: string;
1875
2151
  extendsToolkit?: string | undefined;
2152
+ preload?: boolean | undefined;
1876
2153
  }>;
1877
2154
  /** Options for creating a custom tool via `createCustomTool()`. */
1878
2155
  type CreateCustomToolParams<T extends z.ZodType> = z.infer<typeof CreateCustomToolBaseSchema> & {
@@ -1897,6 +2174,11 @@ interface CustomTool {
1897
2174
  * Undefined means the tool doesn't need any Composio-managed authentication.
1898
2175
  */
1899
2176
  readonly extendsToolkit?: string;
2177
+ /**
2178
+ * Include this custom tool in session.tools() so it can be called without
2179
+ * searching first.
2180
+ */
2181
+ readonly preload?: boolean;
1900
2182
  readonly inputSchema: Record<string, unknown>;
1901
2183
  /** JSON Schema representation of the output (for backend documentation) */
1902
2184
  readonly outputSchema?: Record<string, unknown>;
@@ -1907,6 +2189,7 @@ interface CustomTool {
1907
2189
  }
1908
2190
  /** Serialized tool definition sent to backend for search indexing. Uses official client type. */
1909
2191
  type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
2192
+ type CustomToolWireDefinition = CustomToolDefinition;
1910
2193
  /**
1911
2194
  * Zod schema for validating the string/scalar fields of createCustomToolkit() options.
1912
2195
  * Slug is validated separately as the first argument.
@@ -1914,12 +2197,15 @@ type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
1914
2197
  declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
1915
2198
  name: z.ZodString;
1916
2199
  description: z.ZodString;
2200
+ preload: z.ZodOptional<z.ZodBoolean>;
1917
2201
  }, "strip", z.ZodTypeAny, {
1918
2202
  name: string;
1919
2203
  description: string;
2204
+ preload?: boolean | undefined;
1920
2205
  }, {
1921
2206
  name: string;
1922
2207
  description: string;
2208
+ preload?: boolean | undefined;
1923
2209
  }>;
1924
2210
  /** Options for creating a custom toolkit via `createCustomToolkit()`. */
1925
2211
  type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
@@ -1934,10 +2220,20 @@ interface CustomToolkit {
1934
2220
  readonly slug: string;
1935
2221
  readonly name: string;
1936
2222
  readonly description: string;
2223
+ /**
2224
+ * Default session.tools() exposure for tools in this custom toolkit.
2225
+ * Tool-level preload values override this default.
2226
+ */
2227
+ readonly preload?: boolean;
1937
2228
  readonly tools: readonly CustomTool[];
1938
2229
  }
1939
2230
  /** Serialized toolkit definition sent to backend. Uses official client type. */
1940
2231
  type CustomToolkitDefinition = SessionCreateParams.Experimental.CustomToolkit;
2232
+ type CustomToolkitWireDefinition = CustomToolkitDefinition;
2233
+ interface InlineCustomToolsWirePayload {
2234
+ custom_tools?: CustomToolWireDefinition[];
2235
+ custom_toolkits?: CustomToolkitWireDefinition[];
2236
+ }
1941
2237
  /** @internal Entry in the per-session custom tools routing map. */
1942
2238
  type CustomToolsMapEntry = {
1943
2239
  handle: CustomTool;
@@ -1950,10 +2246,16 @@ type CustomToolsMapEntry = {
1950
2246
  type CustomToolsMap = {
1951
2247
  /** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */
1952
2248
  byFinalSlug: Map<string, CustomToolsMapEntry>;
1953
- /** Lookup by original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
2249
+ /** Lookup by unique original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
1954
2250
  byOriginalSlug: Map<string, CustomToolsMapEntry>;
2251
+ /** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
2252
+ byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>;
2253
+ /** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
2254
+ ambiguousOriginalSlugs?: Set<string>;
1955
2255
  /** The original custom toolkits passed at session creation — used for session.customToolkits() */
1956
2256
  toolkits?: CustomToolkit[];
2257
+ /** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
2258
+ tools?: CustomTool[];
1957
2259
  };
1958
2260
  /** A custom tool as registered in a session, with its final resolved slug. */
1959
2261
  interface RegisteredCustomTool {
@@ -1978,4 +2280,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
1978
2280
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
1979
2281
  type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
1980
2282
  //#endregion
1981
- export { ToolRouterSessionSearchResponseSchema as $, CreateConnectedAccountOptionsSchema as $t, SessionProxyExecuteParams as A, ToolRouterSessionFilesMountUploadOptionsSchema as At, ToolRouterMCPServerConfig as B, ConnectedAccountRefreshOptions as Bt, SessionContext as C, ToolRouterSessionFilesMountDeleteOptions as Ct, SandboxSizeSchema as D, ToolRouterSessionFilesMountListOptions as Dt, SandboxSize as E, ToolRouterSessionFilesMountDownloadOptionsSchema as Et, ToolRouterConfigTagsSchema as F, ConnectedAccountListParams as Ft, ToolRouterSessionExecuteResponse as G, ConnectedAccountStatusEnum as Gt, ToolRouterManageConnectionsConfigSchema as H, ConnectedAccountRetrieveResponse as Ht, ToolRouterConfigTools as I, ConnectedAccountListParamsSchema as It, ToolRouterSessionPreloadConfig as J, CreateConnectedAccountLinkOptions as Jt, ToolRouterSessionExecuteResponseSchema as K, ConnectedAccountStatusSchema as Kt, ToolRouterConfigToolsSchema as L, ConnectedAccountListResponse as Lt, ToolRouterAuthorizeFn as M, ConnectionRequestState as Mt, ToolRouterConfigManageConnectionsSchema as N, ConnectedAccountAuthConfig as Nt, Session as O, ToolRouterSessionFilesMountListOptionsSchema as Ot, ToolRouterConfigTags as P, ConnectedAccountAuthConfigSchema as Pt, ToolRouterSessionSearchResponse as Q, CreateConnectedAccountOptions as Qt, ToolRouterCreateSessionConfig as R, ConnectedAccountListResponseItem as Rt, RegisteredCustomToolkit as S, RemoteFileDataSchema as St, MCPServerTypeSchema as T, ToolRouterSessionFilesMountDownloadOptions as Tt, ToolRouterSessionExecuteFn as U, ConnectedAccountRetrieveResponseSchema as Ut, ToolRouterMCPServerConfigSchema as V, ConnectedAccountRefreshOptionsSchema as Vt, ToolRouterSessionExecuteOptions as W, ConnectedAccountStatus as Wt, ToolRouterSessionProxyExecuteResponse as X, CreateConnectedAccountLinkResponse as Xt, ToolRouterSessionProxyExecuteFn as Y, CreateConnectedAccountLinkOptionsSchema as Yt, ToolRouterSessionSearchFn as Z, CreateConnectedAccountLinkResponseSchema as Zt, CustomToolsMap as _, FileDeleteResponse as _t, CustomTool as a, UpdateConnectedAccountParams as an, ToolRouterToolkitsFn as at, InputParamsSchema as b, FileListResponseSchema as bt, CustomToolInputParameter as c, ToolRouterToolkitsParamSchema as ct, CustomToolRegistryItem as d, ToolRouterToolsParamSchema as dt, CreateConnectedAccountParams as en, ToolRouterSessionWarning as et, CustomToolResponse as f, ToolkitConnectionState as ft, CustomToolkitResponse as g, RemoteFile as gt, CustomToolkitDefinition as h, ToolkitConnectionsDetailsSchema as ht, CreateCustomToolkitParams as i, DefaultCreateConnectedAccountParamsSchema as in, ToolRouterToolkitsEnabledConfigSchema as it, SessionProxyExecuteParamsSchema as j, ConnectionRequest as jt, SessionExperimental as k, ToolRouterSessionFilesMountUploadOptions as kt, CustomToolOptions as l, ToolRouterToolsFn as lt, CustomToolkit as m, ToolkitConnectionsDetails as mt, CreateCustomToolParams as n, CreateConnectedAccountResponse as nn, ToolRouterTagsParamSchema as nt, CustomToolDefinition as o, UpdateConnectedAccountParamsSchema as on, ToolRouterToolkitsOptions as ot, CustomToolSlugSchema as p, ToolkitConnectionStateSchema as pt, ToolRouterSessionMetadata as q, ConnectedAccountStatuses as qt, CreateCustomToolkitBaseSchema as r, CreateConnectedAccountResponseSchema as rn, ToolRouterToolkitsDisabledConfigSchema as rt, CustomToolExecuteFn as s, ToolRouterToolkitsOptionsSchema as st, CreateCustomToolBaseSchema as t, CreateConnectedAccountParamsSchema as tn, ToolRouterTagsEnableDisableSchema as tt, CustomToolRegistry as u, ToolRouterToolsParam as ut, CustomToolsMapEntry as v, FileDeleteResponseSchema as vt, MCPServerType as w, ToolRouterSessionFilesMountDeleteOptionsSchema as wt, RegisteredCustomTool as x, RemoteFileData as xt, ExecuteMetadata as y, FileListResponse as yt, ToolRouterCreateSessionConfigSchema as z, ConnectedAccountListResponseSchema as zt };
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 };
@@ -1,5 +1,5 @@
1
1
  require('../FileModifierErrors-BYJBHiay.cjs');
2
- const require_CustomTool = require('../CustomTool-DnCSEC6t.cjs');
2
+ const require_CustomTool = require('../CustomTool-Dj4fNvsu.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 { C as SessionContext, a as CustomTool, i as CreateCustomToolkitParams, m as CustomToolkit, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-2DhEI1vs.cjs";
2
- import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-CzhY9iPX.cjs";
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";
3
3
  export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };