@composio/core 0.12.0 → 0.13.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 (144) hide show
  1. package/dist/BaseProvider-Brb3o86-.d.mts +29425 -0
  2. package/dist/{CustomTool-DEB4BQPl.mjs → CustomTool-D9qwyMrv.mjs} +1 -1
  3. package/dist/{CustomTool-DH18rVQu.d.mts → CustomTool-Dmi6ti3I.d.mts} +1 -1
  4. package/dist/CustomTool-DrJpOhY2.d.mts +74 -0
  5. package/dist/{composio-CHnEggnv.d.mts → composio-DHIKRdeG.d.mts} +253 -37
  6. package/dist/composio-vMwhASRc.d.mts +5698 -0
  7. package/dist/{customTool.types-DpIdOJjL.d.mts → customTool.types-CKH2R2ia.d.mts} +344 -25
  8. package/dist/customTool.types-DXin7Cfc.d.mts +2773 -0
  9. package/dist/docs/error-consistency.md +97 -0
  10. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +306 -0
  11. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +205 -0
  12. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +488 -0
  13. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +94 -0
  14. package/dist/docs/reference/sdk-reference/typescript/index.mdx +67 -0
  15. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +304 -0
  16. package/dist/docs/reference/sdk-reference/typescript/meta.json +17 -0
  17. package/dist/docs/reference/sdk-reference/typescript/remote-file.mdx +107 -0
  18. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +163 -0
  19. package/dist/docs/reference/sdk-reference/typescript/session.mdx +229 -0
  20. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +131 -0
  21. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +169 -0
  22. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +453 -0
  23. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +434 -0
  24. package/dist/{errors-D5f4pfvI.mjs → errors-DSIlYfl5.mjs} +2 -2
  25. package/dist/experimental/index.d.mts +2 -2
  26. package/dist/experimental/index.mjs +1 -1
  27. package/dist/index.d.mts +27 -4
  28. package/dist/index.mjs +423 -123
  29. package/dist/{jsonSchema-daqF3S3d.mjs → jsonSchema-CFKdONpP.mjs} +1 -1
  30. package/dist/{types-CaI5Z4PA.d.mts → types-D4Id3wXA.d.mts} +1 -1
  31. package/dist/types-qTbYYBJw.d.mts +12 -0
  32. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  33. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  34. package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
  35. package/docs/error-consistency.md +97 -0
  36. package/package.json +4 -3
  37. package/src/composio.ts +509 -0
  38. package/src/errors/AuthConfigErrors.ts +23 -0
  39. package/src/errors/ComposioError.ts +408 -0
  40. package/src/errors/ConnectedAccountsErrors.ts +158 -0
  41. package/src/errors/ConnectionRequestErrors.ts +32 -0
  42. package/src/errors/FileModifierErrors.ts +100 -0
  43. package/src/errors/PusherErrors.ts +28 -0
  44. package/src/errors/RemoteFileErrors.ts +62 -0
  45. package/src/errors/SDKErrors.ts +92 -0
  46. package/src/errors/ToolErrors.ts +244 -0
  47. package/src/errors/ToolkitErrors.ts +39 -0
  48. package/src/errors/TriggerErrors.ts +120 -0
  49. package/src/errors/ValidationErrors.ts +99 -0
  50. package/src/errors/index.ts +41 -0
  51. package/src/experimental/index.ts +28 -0
  52. package/src/index.ts +64 -0
  53. package/src/lib/toolRouterConstants.ts +1 -0
  54. package/src/lib/toolRouterParams.ts +306 -0
  55. package/src/models/AuthConfigs.ts +398 -0
  56. package/src/models/AuthScheme.ts +206 -0
  57. package/src/models/ConnectedAccounts.ts +735 -0
  58. package/src/models/ConnectionRequest.ts +150 -0
  59. package/src/models/CustomTool.ts +676 -0
  60. package/src/models/Experimental.ts +202 -0
  61. package/src/models/Files.node.ts +93 -0
  62. package/src/models/Files.workerd.ts +49 -0
  63. package/src/models/MCP.ts +478 -0
  64. package/src/models/RemoteFile.ts +172 -0
  65. package/src/models/SessionContext.ts +147 -0
  66. package/src/models/Sessions.ts +21 -0
  67. package/src/models/ToolRouter.ts +391 -0
  68. package/src/models/ToolRouterSession.ts +827 -0
  69. package/src/models/ToolRouterSessionFileMount.ts +389 -0
  70. package/src/models/Toolkits.ts +412 -0
  71. package/src/models/Tools.ts +1260 -0
  72. package/src/models/Triggers.ts +1381 -0
  73. package/src/models/customToolExecution.ts +118 -0
  74. package/src/models/inlineCustomToolsPayload.ts +17 -0
  75. package/src/models/proxyParamsTransform.ts +26 -0
  76. package/src/provider/BaseProvider.ts +138 -0
  77. package/src/provider/ComposioProvider.ts +29 -0
  78. package/src/provider/OpenAIProvider.ts +547 -0
  79. package/src/services/internal/InternalService.ts +50 -0
  80. package/src/services/internal/InternalService.types.ts +14 -0
  81. package/src/services/pusher/Pusher.ts +230 -0
  82. package/src/services/telemetry/TelemetryService.ts +48 -0
  83. package/src/services/telemetry/TelemetryService.types.ts +67 -0
  84. package/src/telemetry/BatchProcessor.ts +77 -0
  85. package/src/telemetry/README.md +123 -0
  86. package/src/telemetry/Telemetry.ts +356 -0
  87. package/src/types/ToolRouterSessionFilesMount.types.ts +96 -0
  88. package/src/types/authConfigs.types.ts +174 -0
  89. package/src/types/composio.types.ts +1 -0
  90. package/src/types/connectedAccountAuthStates.types.ts +852 -0
  91. package/src/types/connectedAccounts.types.ts +395 -0
  92. package/src/types/connectionRequest.types.ts +16 -0
  93. package/src/types/customTool.types.ts +261 -0
  94. package/src/types/files.types.ts +15 -0
  95. package/src/types/mcp.experimental.types.ts +163 -0
  96. package/src/types/mcp.types.ts +362 -0
  97. package/src/types/modifiers.types.ts +663 -0
  98. package/src/types/org.types.ts +0 -0
  99. package/src/types/provider.types.ts +41 -0
  100. package/src/types/pusher.types.ts +18 -0
  101. package/src/types/requestOptions.types.ts +62 -0
  102. package/src/types/telemetry.types.ts +89 -0
  103. package/src/types/tool.types.ts +408 -0
  104. package/src/types/toolRouter.types.ts +761 -0
  105. package/src/types/toolkit.types.ts +130 -0
  106. package/src/types/triggers.types.ts +401 -0
  107. package/src/types/webhookEvents.types.ts +219 -0
  108. package/src/utils/buffer.ts +30 -0
  109. package/src/utils/cancellation.ts +22 -0
  110. package/src/utils/config-defaults/ConfigDefaults.node.ts +7 -0
  111. package/src/utils/config-defaults/ConfigDefaults.workerd.ts +10 -0
  112. package/src/utils/config-defaults/index.ts +1 -0
  113. package/src/utils/config-defaults/types.ts +14 -0
  114. package/src/utils/constants.ts +22 -0
  115. package/src/utils/crypto.ts +34 -0
  116. package/src/utils/env.ts +34 -0
  117. package/src/utils/fileDirs.ts +81 -0
  118. package/src/utils/fileUtils.node.ts +458 -0
  119. package/src/utils/json-schema.ts +1 -0
  120. package/src/utils/jsonSchema.ts +355 -0
  121. package/src/utils/logger.ts +99 -0
  122. package/src/utils/mime.ts +75 -0
  123. package/src/utils/modifiers/FileToolModifier.node.ts +477 -0
  124. package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +132 -0
  125. package/src/utils/modifiers/FileToolModifier.workerd.ts +51 -0
  126. package/src/utils/pagination.ts +73 -0
  127. package/src/utils/pusher.ts +286 -0
  128. package/src/utils/schemaPropertyKeys.ts +433 -0
  129. package/src/utils/sdk.ts +110 -0
  130. package/src/utils/sensitiveFileUploadPaths.node.ts +105 -0
  131. package/src/utils/session.ts +114 -0
  132. package/src/utils/toolArguments.ts +73 -0
  133. package/src/utils/toolkitVersion.ts +26 -0
  134. package/src/utils/transform.ts +42 -0
  135. package/src/utils/transformers/authConfigs.ts +107 -0
  136. package/src/utils/transformers/connectedAccounts.ts +119 -0
  137. package/src/utils/transformers/mcp.ts +164 -0
  138. package/src/utils/transformers/toolRouterResponseTransform.ts +160 -0
  139. package/src/utils/transformers/toolkits.ts +100 -0
  140. package/src/utils/transformers/triggers.ts +118 -0
  141. package/src/utils/uploadDirAllowlist.node.ts +178 -0
  142. package/src/utils/uuid.ts +7 -0
  143. package/src/utils/version.ts +58 -0
  144. package/src/utils/zodSchema.ts +90 -0
@@ -221,7 +221,7 @@ declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
221
221
  }>;
222
222
  type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
223
223
  declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
224
- id: z.ZodString; /** @deprecated use connectedAccount.state.authScheme instead */
224
+ id: z.ZodString; /** @deprecated Use `connectedAccount.state.authScheme` instead. */
225
225
  authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
226
226
  isComposioManaged: z.ZodBoolean;
227
227
  isDisabled: z.ZodBoolean;
@@ -241,8 +241,8 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
241
241
  id: string;
242
242
  authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
243
243
  wordId?: string | null;
244
- alias?: string | null; /** @deprecated use connectedAccount.state instead */
245
- data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
244
+ alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
245
+ data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
246
246
  params?: Record<string, unknown>;
247
247
  status: ConnectedAccountStatusEnum;
248
248
  statusReason: string | null;
@@ -301,8 +301,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
301
301
  id: string;
302
302
  authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
303
303
  wordId?: string | null;
304
- alias?: string | null; /** @deprecated use connectedAccount.state instead */
305
- data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
304
+ alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
305
+ data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
306
306
  params?: Record<string, unknown>;
307
307
  status: ConnectedAccountStatusEnum;
308
308
  statusReason: string | null;
@@ -319,8 +319,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
319
319
  id: string;
320
320
  authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
321
321
  wordId?: string | null;
322
- alias?: string | null; /** @deprecated use connectedAccount.state instead */
323
- data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
322
+ alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
323
+ data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
324
324
  params?: Record<string, unknown>;
325
325
  status: ConnectedAccountStatusEnum;
326
326
  statusReason: string | null;
@@ -341,8 +341,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
341
341
  id: string;
342
342
  authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
343
343
  wordId?: string | null;
344
- alias?: string | null; /** @deprecated use connectedAccount.state instead */
345
- data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
344
+ alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
345
+ data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
346
346
  params?: Record<string, unknown>;
347
347
  status: ConnectedAccountStatusEnum;
348
348
  statusReason: string | null;
@@ -363,8 +363,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
363
363
  id: string;
364
364
  authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
365
365
  wordId?: string | null;
366
- alias?: string | null; /** @deprecated use connectedAccount.state instead */
367
- data?: Record<string, unknown>; /** @deprecated use connectedAccount.state instead */
366
+ alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
367
+ data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
368
368
  params?: Record<string, unknown>;
369
369
  status: ConnectedAccountStatusEnum;
370
370
  statusReason: string | null;
@@ -770,6 +770,11 @@ declare class RemoteFile {
770
770
  }
771
771
  //#endregion
772
772
  //#region src/models/ToolRouterSessionFileMount.d.ts
773
+ /**
774
+ * File mount for a Composio session, reached via `session.experimental.files`
775
+ * on a session created with `composio.sessions.create(...)`. Upload, list,
776
+ * download, and delete files scoped to a single session.
777
+ */
773
778
  declare class ToolRouterSessionFilesMount {
774
779
  private readonly sessionId;
775
780
  private readonly client;
@@ -899,7 +904,7 @@ type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
899
904
  declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
900
905
  type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
901
906
  /**
902
- * Sandbox compute tier for the tool router workbench.
907
+ * Sandbox compute tier for the session sandbox.
903
908
  *
904
909
  * | Tier | vCPU | RAM |
905
910
  * | -------- | ---- | ----- |
@@ -912,6 +917,23 @@ type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
912
917
  */
913
918
  declare const SandboxSizeSchema: z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>;
914
919
  type SandboxSize = z$1.infer<typeof SandboxSizeSchema>;
920
+ declare const ToolRouterSandboxConfigSchema: z$1.ZodObject<{
921
+ enable: z$1.ZodDefault<z$1.ZodBoolean>;
922
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
923
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
924
+ sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
925
+ }, "strip", z$1.ZodTypeAny, {
926
+ enable: boolean;
927
+ enableProxyExecution?: boolean | undefined;
928
+ autoOffloadThreshold?: number | undefined;
929
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
930
+ }, {
931
+ enable?: boolean | undefined;
932
+ enableProxyExecution?: boolean | undefined;
933
+ autoOffloadThreshold?: number | undefined;
934
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
935
+ }>;
936
+ type ToolRouterSandboxConfig = z$1.infer<typeof ToolRouterSandboxConfigSchema>;
915
937
  declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
916
938
  enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
917
939
  callbackUrl: z$1.ZodOptional<z$1.ZodString>;
@@ -1049,8 +1071,9 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
1049
1071
  };
1050
1072
  }>;
1051
1073
  type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
1052
- declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
1074
+ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObject<{
1053
1075
  sessionPreset: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodLiteral<"direct_tools">>>;
1076
+ mcp: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
1054
1077
  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<{
1055
1078
  enable: z$1.ZodArray<z$1.ZodString, "many">;
1056
1079
  }, "strict", z$1.ZodTypeAny, {
@@ -1141,6 +1164,22 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1141
1164
  callbackUrl?: string | undefined;
1142
1165
  waitForConnections?: boolean | undefined;
1143
1166
  }>]>>>>;
1167
+ sandbox: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
1168
+ enable: z$1.ZodDefault<z$1.ZodBoolean>;
1169
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
1170
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
1171
+ sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
1172
+ }, "strip", z$1.ZodTypeAny, {
1173
+ enable: boolean;
1174
+ enableProxyExecution?: boolean | undefined;
1175
+ autoOffloadThreshold?: number | undefined;
1176
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1177
+ }, {
1178
+ enable?: boolean | undefined;
1179
+ enableProxyExecution?: boolean | undefined;
1180
+ autoOffloadThreshold?: number | undefined;
1181
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1182
+ }>>>;
1144
1183
  workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
1145
1184
  enable: z$1.ZodDefault<z$1.ZodBoolean>;
1146
1185
  enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -1224,6 +1263,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1224
1263
  tools?: string[] | "all" | undefined;
1225
1264
  } | undefined;
1226
1265
  sessionPreset?: "direct_tools" | undefined;
1266
+ mcp?: boolean | undefined;
1227
1267
  authConfigs?: Record<string, string> | undefined;
1228
1268
  connectedAccounts?: Record<string, string | string[]> | undefined;
1229
1269
  manageConnections?: boolean | {
@@ -1231,6 +1271,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1231
1271
  callbackUrl?: string | undefined;
1232
1272
  waitForConnections?: boolean | undefined;
1233
1273
  } | undefined;
1274
+ sandbox?: {
1275
+ enable: boolean;
1276
+ enableProxyExecution?: boolean | undefined;
1277
+ autoOffloadThreshold?: number | undefined;
1278
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1279
+ } | undefined;
1234
1280
  workbench?: {
1235
1281
  enable: boolean;
1236
1282
  enableProxyExecution?: boolean | undefined;
@@ -1273,6 +1319,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1273
1319
  tools?: string[] | "all" | undefined;
1274
1320
  } | undefined;
1275
1321
  sessionPreset?: "direct_tools" | undefined;
1322
+ mcp?: boolean | undefined;
1276
1323
  authConfigs?: Record<string, string> | undefined;
1277
1324
  connectedAccounts?: Record<string, string | string[]> | undefined;
1278
1325
  manageConnections?: boolean | {
@@ -1280,6 +1327,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1280
1327
  callbackUrl?: string | undefined;
1281
1328
  waitForConnections?: boolean | undefined;
1282
1329
  } | undefined;
1330
+ sandbox?: {
1331
+ enable?: boolean | undefined;
1332
+ enableProxyExecution?: boolean | undefined;
1333
+ autoOffloadThreshold?: number | undefined;
1334
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1335
+ } | undefined;
1283
1336
  workbench?: {
1284
1337
  enable?: boolean | undefined;
1285
1338
  enableProxyExecution?: boolean | undefined;
@@ -1322,6 +1375,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1322
1375
  tools?: string[] | "all" | undefined;
1323
1376
  } | undefined;
1324
1377
  sessionPreset?: "direct_tools" | undefined;
1378
+ mcp?: boolean | undefined;
1325
1379
  authConfigs?: Record<string, string> | undefined;
1326
1380
  connectedAccounts?: Record<string, string | string[]> | undefined;
1327
1381
  manageConnections?: boolean | {
@@ -1329,6 +1383,124 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1329
1383
  callbackUrl?: string | undefined;
1330
1384
  waitForConnections?: boolean | undefined;
1331
1385
  } | undefined;
1386
+ sandbox?: {
1387
+ enable: boolean;
1388
+ enableProxyExecution?: boolean | undefined;
1389
+ autoOffloadThreshold?: number | undefined;
1390
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1391
+ } | undefined;
1392
+ workbench?: {
1393
+ enable: boolean;
1394
+ enableProxyExecution?: boolean | undefined;
1395
+ autoOffloadThreshold?: number | undefined;
1396
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1397
+ } | undefined;
1398
+ multiAccount?: {
1399
+ enable: boolean;
1400
+ maxAccountsPerToolkit?: number | undefined;
1401
+ requireExplicitSelection?: boolean | undefined;
1402
+ } | undefined;
1403
+ experimental?: {
1404
+ assistivePrompt?: {
1405
+ userTimezone?: string | undefined;
1406
+ } | undefined;
1407
+ customTools?: CustomTool[] | undefined;
1408
+ customToolkits?: CustomToolkit[] | undefined;
1409
+ } | undefined;
1410
+ }, {
1411
+ tools?: Record<string, string[] | {
1412
+ enable: string[];
1413
+ } | {
1414
+ disable: string[];
1415
+ } | {
1416
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1417
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1418
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1419
+ };
1420
+ }> | undefined;
1421
+ toolkits?: string[] | {
1422
+ disable: string[];
1423
+ } | {
1424
+ enable: string[];
1425
+ } | undefined;
1426
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1427
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1428
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1429
+ } | undefined;
1430
+ preload?: {
1431
+ tools?: string[] | "all" | undefined;
1432
+ } | undefined;
1433
+ sessionPreset?: "direct_tools" | undefined;
1434
+ mcp?: boolean | undefined;
1435
+ authConfigs?: Record<string, string> | undefined;
1436
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1437
+ manageConnections?: boolean | {
1438
+ enable?: boolean | undefined;
1439
+ callbackUrl?: string | undefined;
1440
+ waitForConnections?: boolean | undefined;
1441
+ } | undefined;
1442
+ sandbox?: {
1443
+ enable?: boolean | undefined;
1444
+ enableProxyExecution?: boolean | undefined;
1445
+ autoOffloadThreshold?: number | undefined;
1446
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1447
+ } | undefined;
1448
+ workbench?: {
1449
+ enable?: boolean | undefined;
1450
+ enableProxyExecution?: boolean | undefined;
1451
+ autoOffloadThreshold?: number | undefined;
1452
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1453
+ } | undefined;
1454
+ multiAccount?: {
1455
+ enable?: boolean | undefined;
1456
+ maxAccountsPerToolkit?: number | undefined;
1457
+ requireExplicitSelection?: boolean | undefined;
1458
+ } | undefined;
1459
+ experimental?: {
1460
+ assistivePrompt?: {
1461
+ userTimezone?: string | undefined;
1462
+ } | undefined;
1463
+ customTools?: CustomTool[] | undefined;
1464
+ customToolkits?: CustomToolkit[] | undefined;
1465
+ } | undefined;
1466
+ }>, {
1467
+ tools?: Record<string, string[] | {
1468
+ enable: string[];
1469
+ } | {
1470
+ disable: string[];
1471
+ } | {
1472
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1473
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1474
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1475
+ };
1476
+ }> | undefined;
1477
+ toolkits?: string[] | {
1478
+ disable: string[];
1479
+ } | {
1480
+ enable: string[];
1481
+ } | undefined;
1482
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1483
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1484
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1485
+ } | undefined;
1486
+ preload?: {
1487
+ tools?: string[] | "all" | undefined;
1488
+ } | undefined;
1489
+ sessionPreset?: "direct_tools" | undefined;
1490
+ mcp?: boolean | undefined;
1491
+ authConfigs?: Record<string, string> | undefined;
1492
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1493
+ manageConnections?: boolean | {
1494
+ enable?: boolean | undefined;
1495
+ callbackUrl?: string | undefined;
1496
+ waitForConnections?: boolean | undefined;
1497
+ } | undefined;
1498
+ sandbox?: {
1499
+ enable: boolean;
1500
+ enableProxyExecution?: boolean | undefined;
1501
+ autoOffloadThreshold?: number | undefined;
1502
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1503
+ } | undefined;
1332
1504
  workbench?: {
1333
1505
  enable: boolean;
1334
1506
  enableProxyExecution?: boolean | undefined;
@@ -1351,7 +1523,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1351
1523
  /**
1352
1524
  * The config for the tool router session.
1353
1525
  *
1354
- * @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.
1526
+ * @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 sandbox by default; explicit overrides for supported fields still win. Without this preset, ToolRouter uses the default configuration with meta tools enabled.
1355
1527
  * @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
1356
1528
  * @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
1357
1529
  * @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
@@ -1360,11 +1532,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1360
1532
  * @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.
1361
1533
  * @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
1362
1534
  * @param {string} [manageConnections.callbackUrl] - The callback url to use in the tool router session
1363
- * @param {object} workbench - Workbench configuration for tool execution
1364
- * @param {boolean} [workbench.enable] - Whether to enable the workbench entirely. Defaults to true. When false, no code execution tools are available.
1365
- * @param {boolean} [workbench.enableProxyExecution] - Whether to enable proxy execution
1366
- * @param {number} [workbench.autoOffloadThreshold] - Auto offload threshold in characters for moving execution to workbench
1367
- * @param {SandboxSize} [workbench.sandboxSize] - Sandbox compute tier: 'standard' (1 vCPU/1 GB, default), 'medium' (2 vCPU/2 GB), 'large' (4 vCPU/4 GB), or 'xlarge' (8 vCPU/8 GB)
1535
+ * @param {object} sandbox - Sandbox configuration for code execution. Preferred over workbench.
1536
+ * @param {boolean} [sandbox.enable] - Whether to enable the sandbox entirely. Defaults to true. When false, no code execution tools are available.
1537
+ * @param {boolean} [sandbox.enableProxyExecution] - Whether to enable proxy execution
1538
+ * @param {number} [sandbox.autoOffloadThreshold] - Auto offload threshold in characters for moving execution to the sandbox
1539
+ * @param {SandboxSize} [sandbox.sandboxSize] - Sandbox compute tier: 'standard' (1 vCPU/1 GB, default), 'medium' (2 vCPU/2 GB), 'large' (4 vCPU/4 GB), or 'xlarge' (8 vCPU/8 GB)
1540
+ * @param {object} workbench - Deprecated alias for sandbox. Accepted for backwards compatibility.
1368
1541
  * @param {object} [multiAccount] - Multi-account configuration for this session
1369
1542
  * @param {boolean} [multiAccount.enable] - When true, enables multi-account mode. Falls back to org/project-level config when not set.
1370
1543
  * @param {number} [multiAccount.maxAccountsPerToolkit] - Max connected accounts per toolkit (2-10, default 5)
@@ -1977,9 +2150,11 @@ interface ToolRouterSessionExecuteOptions {
1977
2150
  account?: string;
1978
2151
  }
1979
2152
  type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
2153
+ type ToolRouterSessionWorkbenchConfig = SessionCreateResponse.Config.Workbench;
1980
2154
  type ToolRouterSessionWarning = SessionCreateResponse.Warning;
1981
2155
  interface ToolRouterSessionMetadata {
1982
2156
  preload?: ToolRouterSessionPreloadConfig;
2157
+ workbench?: ToolRouterSessionWorkbenchConfig;
1983
2158
  configVersion?: number;
1984
2159
  warnings?: ToolRouterSessionWarning[];
1985
2160
  preloadedCustomToolSlugs?: string[];
@@ -2026,7 +2201,7 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
2026
2201
  }>;
2027
2202
  type SessionProxyExecuteParams = z$1.infer<typeof SessionProxyExecuteParamsSchema>;
2028
2203
  type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
2029
- declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2204
+ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
2030
2205
  toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
2031
2206
  disable: z$1.ZodArray<z$1.ZodString, "many">;
2032
2207
  }, "strict", z$1.ZodTypeAny, {
@@ -2117,11 +2292,27 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2117
2292
  callbackUrl?: string | undefined;
2118
2293
  waitForConnections?: boolean | undefined;
2119
2294
  }>]>>>>;
2295
+ sandbox: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
2296
+ enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
2297
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
2298
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNumber>>;
2299
+ sandboxSize: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
2300
+ }, "strip", z$1.ZodTypeAny, {
2301
+ enable?: boolean | undefined;
2302
+ enableProxyExecution?: boolean | undefined;
2303
+ autoOffloadThreshold?: number | undefined;
2304
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2305
+ }, {
2306
+ enable?: boolean | undefined;
2307
+ enableProxyExecution?: boolean | undefined;
2308
+ autoOffloadThreshold?: number | undefined;
2309
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2310
+ }>>>>;
2120
2311
  workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
2121
- enable: z$1.ZodOptional<z$1.ZodBoolean>;
2122
- enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
2123
- autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
2124
- sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
2312
+ enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
2313
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
2314
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNumber>>;
2315
+ sandboxSize: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
2125
2316
  }, "strip", z$1.ZodTypeAny, {
2126
2317
  enable?: boolean | undefined;
2127
2318
  enableProxyExecution?: boolean | undefined;
@@ -2183,6 +2374,106 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2183
2374
  callbackUrl?: string | undefined;
2184
2375
  waitForConnections?: boolean | undefined;
2185
2376
  } | null | undefined;
2377
+ sandbox?: {
2378
+ enable?: boolean | undefined;
2379
+ enableProxyExecution?: boolean | undefined;
2380
+ autoOffloadThreshold?: number | undefined;
2381
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2382
+ } | null | undefined;
2383
+ workbench?: {
2384
+ enable?: boolean | undefined;
2385
+ enableProxyExecution?: boolean | undefined;
2386
+ autoOffloadThreshold?: number | undefined;
2387
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2388
+ } | null | undefined;
2389
+ multiAccount?: {
2390
+ enable?: boolean | undefined;
2391
+ maxAccountsPerToolkit?: number | undefined;
2392
+ requireExplicitSelection?: boolean | undefined;
2393
+ } | null | undefined;
2394
+ }, {
2395
+ tools?: Record<string, string[] | {
2396
+ enable: string[];
2397
+ } | {
2398
+ disable: string[];
2399
+ } | {
2400
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2401
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2402
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2403
+ };
2404
+ }> | undefined;
2405
+ toolkits?: string[] | {
2406
+ disable: string[];
2407
+ } | {
2408
+ enable: string[];
2409
+ } | undefined;
2410
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2411
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2412
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2413
+ } | undefined;
2414
+ preload?: {
2415
+ tools?: string[] | "all" | undefined;
2416
+ } | undefined;
2417
+ authConfigs?: Record<string, string> | undefined;
2418
+ connectedAccounts?: Record<string, string | string[]> | undefined;
2419
+ manageConnections?: boolean | {
2420
+ enable?: boolean | undefined;
2421
+ callbackUrl?: string | undefined;
2422
+ waitForConnections?: boolean | undefined;
2423
+ } | null | undefined;
2424
+ sandbox?: {
2425
+ enable?: boolean | undefined;
2426
+ enableProxyExecution?: boolean | undefined;
2427
+ autoOffloadThreshold?: number | undefined;
2428
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2429
+ } | null | undefined;
2430
+ workbench?: {
2431
+ enable?: boolean | undefined;
2432
+ enableProxyExecution?: boolean | undefined;
2433
+ autoOffloadThreshold?: number | undefined;
2434
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2435
+ } | null | undefined;
2436
+ multiAccount?: {
2437
+ enable?: boolean | undefined;
2438
+ maxAccountsPerToolkit?: number | undefined;
2439
+ requireExplicitSelection?: boolean | undefined;
2440
+ } | null | undefined;
2441
+ }>, {
2442
+ tools?: Record<string, string[] | {
2443
+ enable: string[];
2444
+ } | {
2445
+ disable: string[];
2446
+ } | {
2447
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2448
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2449
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2450
+ };
2451
+ }> | undefined;
2452
+ toolkits?: string[] | {
2453
+ disable: string[];
2454
+ } | {
2455
+ enable: string[];
2456
+ } | undefined;
2457
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2458
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2459
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2460
+ } | undefined;
2461
+ preload?: {
2462
+ tools?: string[] | "all" | undefined;
2463
+ } | undefined;
2464
+ authConfigs?: Record<string, string> | undefined;
2465
+ connectedAccounts?: Record<string, string[]> | undefined;
2466
+ manageConnections?: boolean | {
2467
+ enable?: boolean | undefined;
2468
+ callbackUrl?: string | undefined;
2469
+ waitForConnections?: boolean | undefined;
2470
+ } | null | undefined;
2471
+ sandbox?: {
2472
+ enable?: boolean | undefined;
2473
+ enableProxyExecution?: boolean | undefined;
2474
+ autoOffloadThreshold?: number | undefined;
2475
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2476
+ } | null | undefined;
2186
2477
  workbench?: {
2187
2478
  enable?: boolean | undefined;
2188
2479
  enableProxyExecution?: boolean | undefined;
@@ -2224,6 +2515,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2224
2515
  callbackUrl?: string | undefined;
2225
2516
  waitForConnections?: boolean | undefined;
2226
2517
  } | null | undefined;
2518
+ sandbox?: {
2519
+ enable?: boolean | undefined;
2520
+ enableProxyExecution?: boolean | undefined;
2521
+ autoOffloadThreshold?: number | undefined;
2522
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2523
+ } | null | undefined;
2227
2524
  workbench?: {
2228
2525
  enable?: boolean | undefined;
2229
2526
  enableProxyExecution?: boolean | undefined;
@@ -2244,6 +2541,18 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
2244
2541
  mcp: ToolRouterMCPServerConfig;
2245
2542
  /** Stored preload configuration for this session. */
2246
2543
  preload: ToolRouterSessionPreloadConfig;
2544
+ /**
2545
+ * Resolved sandbox (code-execution) config returned by the API. `enable` defaults to `true` server-side.
2546
+ *
2547
+ * This is the read-side counterpart to the `sandbox` key you pass into `create()`.
2548
+ */
2549
+ sandbox?: ToolRouterSessionWorkbenchConfig;
2550
+ /**
2551
+ * Resolved sandbox config for the session.
2552
+ *
2553
+ * @deprecated Use `sandbox` instead. `workbench` is a backwards-compatible alias and will be removed in a future release.
2554
+ */
2555
+ workbench?: ToolRouterSessionWorkbenchConfig;
2247
2556
  /** Server-side config version when returned by the API. */
2248
2557
  configVersion?: number;
2249
2558
  /** Non-blocking session creation warnings returned by the API. */
@@ -2268,6 +2577,16 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
2268
2577
  /** Experimental features (files, assistive prompt, etc.) */
2269
2578
  experimental: SessionExperimental;
2270
2579
  }
2580
+ /**
2581
+ * Session type without the typed `mcp` endpoint.
2582
+ *
2583
+ * Returned by `create()` / `use()` when `{ mcp: true }` is not passed. The
2584
+ * hosted MCP endpoint still exists on the underlying session at runtime — this
2585
+ * only hides it from the type so MCP is an explicit opt-in. Pass `{ mcp: true }`
2586
+ * to get a `Session` with `session.mcp` surfaced. See
2587
+ * https://docs.composio.dev/docs/sessions-via-mcp
2588
+ */
2589
+ type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
2271
2590
  //#endregion
2272
2591
  //#region src/types/customTool.types.d.ts
2273
2592
  type AnyZodSchema = z.ZodType | z$2.ZodType;
@@ -2451,4 +2770,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
2451
2770
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
2452
2771
  type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
2453
2772
  //#endregion
2454
- export { ToolRouterSessionSearchResponseSchema as $, ConnectedAccountRetrieveResponse as $t, SessionProxyExecuteParams as A, ToolRouterSessionFilesMountListOptions as At, ToolRouterMCPServerConfig as B, ConnectedAccountAuthConfig as Bt, MCPServerType as C, FileListResponseSchema as Ct, Session as D, ToolRouterSessionFilesMountDeleteOptionsSchema as Dt, SandboxSizeSchema as E, ToolRouterSessionFilesMountDeleteOptions as Et, ToolRouterConfigTagsSchema as F, ConnectionRequestState as Ft, ToolRouterSessionExecuteResponse as G, ConnectedAccountExperimentalSchema as Gt, ToolRouterManageConnectionsConfigSchema as H, ConnectedAccountExperimental as Ht, ToolRouterConfigTools as I, ConnectedAccountAclConfig as It, ToolRouterSessionPreloadConfig as J, ConnectedAccountListResponse as Jt, ToolRouterSessionExecuteResponseSchema as K, ConnectedAccountListParams as Kt, ToolRouterConfigToolsSchema as L, ConnectedAccountAclConfigResponse as Lt, ToolRouterAuthorizeFn as M, ToolRouterSessionFilesMountUploadOptions as Mt, ToolRouterConfigManageConnectionsSchema as N, ToolRouterSessionFilesMountUploadOptionsSchema as Nt, SessionExperimental as O, ToolRouterSessionFilesMountDownloadOptions as Ot, ToolRouterConfigTags as P, ConnectionRequest as Pt, ToolRouterSessionSearchResponse as Q, ConnectedAccountRefreshOptionsSchema as Qt, ToolRouterCreateSessionConfig as R, ConnectedAccountAclConfigResponseSchema as Rt, SessionContext as S, UpdateConnectedAccountParamsSchema as Sn, FileListResponse as St, SandboxSize as T, RemoteFileDataSchema as Tt, ToolRouterSessionExecuteFn as U, ConnectedAccountExperimentalResponse as Ut, ToolRouterMCPServerConfigSchema as V, ConnectedAccountAuthConfigSchema as Vt, ToolRouterSessionExecuteOptions as W, ConnectedAccountExperimentalResponseSchema as Wt, ToolRouterSessionProxyExecuteResponse as X, ConnectedAccountListResponseSchema as Xt, ToolRouterSessionProxyExecuteFn as Y, ConnectedAccountListResponseItem as Yt, ToolRouterSessionSearchFn as Z, ConnectedAccountRefreshOptions as Zt, CustomToolsMapEntry as _, CreateConnectedAccountResponseSchema as _n, ToolkitConnectionsDetails as _t, CreateCustomToolkitParams as a, ConnectedAccountType as an, ToolRouterToolkitsEnabledConfigSchema as at, RegisteredCustomTool as b, UpdateConnectedAccountAclParamsSchema as bn, FileDeleteResponse as bt, CustomToolExecuteFn as c, CreateConnectedAccountLinkOptions as cn, ToolRouterToolkitsOptionsSchema as ct, CustomToolWireDefinition as d, CreateConnectedAccountLinkResponseSchema as dn, ToolRouterToolsParam as dt, ConnectedAccountRetrieveResponseSchema as en, ToolRouterSessionUpdateFn as et, CustomToolkit as f, CreateConnectedAccountOptions as fn, ToolRouterToolsParamSchema as ft, CustomToolsMap as g, CreateConnectedAccountResponse as gn, ToolkitConnectionStateSchema as gt, CustomToolkitWireDefinition as h, CreateConnectedAccountParamsSchema as hn, ToolkitConnectionState as ht, CreateCustomToolkitBaseSchema as i, ConnectedAccountStatuses as in, ToolRouterToolkitsDisabledConfigSchema as it, SessionProxyExecuteParamsSchema as j, ToolRouterSessionFilesMountListOptionsSchema as jt, SessionPreset as k, ToolRouterSessionFilesMountDownloadOptionsSchema as kt, CustomToolResponse as l, CreateConnectedAccountLinkOptionsSchema as ln, ToolRouterToolkitsParamSchema as lt, CustomToolkitResponse as m, CreateConnectedAccountParams as mn, ToolRouterUpdateSessionConfigSchema as mt, CreateCustomToolBaseSchema as n, ConnectedAccountStatusEnum as nn, ToolRouterTagsEnableDisableSchema as nt, CustomTool as o, ConnectedAccountTypeSchema as on, ToolRouterToolkitsFn as ot, CustomToolkitDefinition as p, CreateConnectedAccountOptionsSchema as pn, ToolRouterUpdateSessionConfig as pt, ToolRouterSessionMetadata as q, ConnectedAccountListParamsSchema as qt, CreateCustomToolParams as r, ConnectedAccountStatusSchema as rn, ToolRouterTagsParamSchema as rt, CustomToolDefinition as s, ConnectedAccountTypes as sn, ToolRouterToolkitsOptions as st, AnyZodSchema as t, ConnectedAccountStatus as tn, ToolRouterSessionWarning as tt, CustomToolSlugSchema as u, CreateConnectedAccountLinkResponse as un, ToolRouterToolsFn as ut, InferZodSchema as v, DefaultCreateConnectedAccountParamsSchema as vn, ToolkitConnectionsDetailsSchema as vt, MCPServerTypeSchema as w, RemoteFileData as wt, RegisteredCustomToolkit as x, UpdateConnectedAccountParams as xn, FileDeleteResponseSchema as xt, InlineCustomToolsWirePayload as y, UpdateConnectedAccountAclParams as yn, RemoteFile as yt, ToolRouterCreateSessionConfigSchema as z, ConnectedAccountAclConfigSchema as zt };
2773
+ export { ToolRouterSessionProxyExecuteResponse as $, ConnectedAccountListResponseItem as $t, SessionProxyExecuteParams as A, ToolRouterSessionFilesMountDeleteOptions as At, ToolRouterCreateSessionConfigSchema as B, ConnectedAccountAclConfig as Bt, MCPServerType as C, UpdateConnectedAccountAclParams as Cn, RemoteFile as Ct, Session as D, FileListResponseSchema as Dt, SandboxSizeSchema as E, UpdateConnectedAccountParamsSchema as En, FileListResponse as Et, ToolRouterConfigTags as F, ToolRouterSessionFilesMountListOptionsSchema as Ft, ToolRouterSandboxConfigSchema as G, ConnectedAccountAuthConfigSchema as Gt, ToolRouterMCPServerConfigSchema as H, ConnectedAccountAclConfigResponseSchema as Ht, ToolRouterConfigTagsSchema as I, ToolRouterSessionFilesMountUploadOptions as It, ToolRouterSessionExecuteResponse as J, ConnectedAccountExperimentalResponseSchema as Jt, ToolRouterSessionExecuteFn as K, ConnectedAccountExperimental as Kt, ToolRouterConfigTools as L, ToolRouterSessionFilesMountUploadOptionsSchema as Lt, SessionWithoutMcp as M, ToolRouterSessionFilesMountDownloadOptions as Mt, ToolRouterAuthorizeFn as N, ToolRouterSessionFilesMountDownloadOptionsSchema as Nt, SessionExperimental as O, RemoteFileData as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolRouterSessionFilesMountListOptions as Pt, ToolRouterSessionProxyExecuteFn as Q, ConnectedAccountListResponse as Qt, ToolRouterConfigToolsSchema as R, ConnectionRequest as Rt, SessionContext as S, DefaultCreateConnectedAccountParamsSchema as Sn, ToolkitConnectionsDetailsSchema as St, SandboxSize as T, UpdateConnectedAccountParams as Tn, FileDeleteResponseSchema as Tt, ToolRouterManageConnectionsConfigSchema as U, ConnectedAccountAclConfigSchema as Ut, ToolRouterMCPServerConfig as V, ConnectedAccountAclConfigResponse as Vt, ToolRouterSandboxConfig as W, ConnectedAccountAuthConfig as Wt, ToolRouterSessionMetadata as X, ConnectedAccountListParams as Xt, ToolRouterSessionExecuteResponseSchema as Y, ConnectedAccountExperimentalSchema as Yt, ToolRouterSessionPreloadConfig as Z, ConnectedAccountListParamsSchema as Zt, CustomToolsMapEntry as _, CreateConnectedAccountOptionsSchema as _n, ToolRouterUpdateSessionConfig as _t, CreateCustomToolkitParams as a, ConnectedAccountStatus as an, ToolRouterSessionWorkbenchConfig as at, RegisteredCustomTool as b, CreateConnectedAccountResponse as bn, ToolkitConnectionStateSchema as bt, CustomToolExecuteFn as c, ConnectedAccountStatuses as cn, ToolRouterToolkitsDisabledConfigSchema as ct, CustomToolWireDefinition as d, ConnectedAccountTypes as dn, ToolRouterToolkitsOptions as dt, ConnectedAccountListResponseSchema as en, ToolRouterSessionSearchFn as et, CustomToolkit as f, CreateConnectedAccountLinkOptions as fn, ToolRouterToolkitsOptionsSchema as ft, CustomToolsMap as g, CreateConnectedAccountOptions as gn, ToolRouterToolsParamSchema as gt, CustomToolkitWireDefinition as h, CreateConnectedAccountLinkResponseSchema as hn, ToolRouterToolsParam as ht, CreateCustomToolkitBaseSchema as i, ConnectedAccountRetrieveResponseSchema as in, ToolRouterSessionWarning as it, SessionProxyExecuteParamsSchema as j, ToolRouterSessionFilesMountDeleteOptionsSchema as jt, SessionPreset as k, RemoteFileDataSchema as kt, CustomToolResponse as l, ConnectedAccountType as ln, ToolRouterToolkitsEnabledConfigSchema as lt, CustomToolkitResponse as m, CreateConnectedAccountLinkResponse as mn, ToolRouterToolsFn as mt, CreateCustomToolBaseSchema as n, ConnectedAccountRefreshOptionsSchema as nn, ToolRouterSessionSearchResponseSchema as nt, CustomTool as o, ConnectedAccountStatusEnum as on, ToolRouterTagsEnableDisableSchema as ot, CustomToolkitDefinition as p, CreateConnectedAccountLinkOptionsSchema as pn, ToolRouterToolkitsParamSchema as pt, ToolRouterSessionExecuteOptions as q, ConnectedAccountExperimentalResponse as qt, CreateCustomToolParams as r, ConnectedAccountRetrieveResponse as rn, ToolRouterSessionUpdateFn as rt, CustomToolDefinition as s, ConnectedAccountStatusSchema as sn, ToolRouterTagsParamSchema as st, AnyZodSchema as t, ConnectedAccountRefreshOptions as tn, ToolRouterSessionSearchResponse as tt, CustomToolSlugSchema as u, ConnectedAccountTypeSchema as un, ToolRouterToolkitsFn as ut, InferZodSchema as v, CreateConnectedAccountParams as vn, ToolRouterUpdateSessionConfigSchema as vt, MCPServerTypeSchema as w, UpdateConnectedAccountAclParamsSchema as wn, FileDeleteResponse as wt, RegisteredCustomToolkit as x, CreateConnectedAccountResponseSchema as xn, ToolkitConnectionsDetails as xt, InlineCustomToolsWirePayload as y, CreateConnectedAccountParamsSchema as yn, ToolkitConnectionState as yt, ToolRouterCreateSessionConfig as z, ConnectionRequestState as zt };