@composio/core 0.12.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/{BaseProvider-BBnsv9kS.d.mts → BaseProvider-Brb3o86-.d.mts} +80 -80
  2. package/dist/{CustomTool-DEB4BQPl.mjs → CustomTool-D9qwyMrv.mjs} +1 -1
  3. package/dist/{CustomTool-DH18rVQu.d.mts → CustomTool-DLf7JeKt.d.mts} +1 -1
  4. package/dist/CustomTool-NpHpqdnU.d.mts +74 -0
  5. package/dist/{composio-CHnEggnv.d.mts → composio-BHSQwOUz.d.mts} +503 -319
  6. package/dist/composio-DfPD7BAi.d.mts +5666 -0
  7. package/dist/{customTool.types-DpIdOJjL.d.mts → customTool.types-9yFqPjdw.d.mts} +448 -76
  8. package/dist/customTool.types-D-6YqFdW.d.mts +2826 -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 +252 -0
  20. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +155 -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 +36 -6
  28. package/dist/index.mjs +455 -123
  29. package/dist/{jsonSchema-daqF3S3d.mjs → jsonSchema-CFKdONpP.mjs} +1 -1
  30. package/dist/{types-CaI5Z4PA.d.mts → types-BJLCRj9q.d.mts} +2 -2
  31. package/dist/types-CCh8qvui.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.d.mts +1 -1
  35. package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
  36. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  37. package/docs/error-consistency.md +97 -0
  38. package/package.json +4 -3
  39. package/src/composio.ts +509 -0
  40. package/src/errors/AuthConfigErrors.ts +23 -0
  41. package/src/errors/ComposioError.ts +408 -0
  42. package/src/errors/ConnectedAccountsErrors.ts +158 -0
  43. package/src/errors/ConnectionRequestErrors.ts +32 -0
  44. package/src/errors/FileModifierErrors.ts +100 -0
  45. package/src/errors/PusherErrors.ts +28 -0
  46. package/src/errors/RemoteFileErrors.ts +62 -0
  47. package/src/errors/SDKErrors.ts +92 -0
  48. package/src/errors/ToolErrors.ts +244 -0
  49. package/src/errors/ToolkitErrors.ts +39 -0
  50. package/src/errors/TriggerErrors.ts +120 -0
  51. package/src/errors/ValidationErrors.ts +99 -0
  52. package/src/errors/index.ts +41 -0
  53. package/src/experimental/index.ts +28 -0
  54. package/src/index.ts +64 -0
  55. package/src/lib/toolRouterConstants.ts +1 -0
  56. package/src/lib/toolRouterParams.ts +306 -0
  57. package/src/lib/toolRouterSessionDelete.ts +30 -0
  58. package/src/models/AuthConfigs.ts +398 -0
  59. package/src/models/AuthScheme.ts +206 -0
  60. package/src/models/ConnectedAccounts.ts +735 -0
  61. package/src/models/ConnectionRequest.ts +150 -0
  62. package/src/models/CustomTool.ts +676 -0
  63. package/src/models/Experimental.ts +202 -0
  64. package/src/models/Files.node.ts +93 -0
  65. package/src/models/Files.workerd.ts +49 -0
  66. package/src/models/MCP.ts +478 -0
  67. package/src/models/RemoteFile.ts +172 -0
  68. package/src/models/SessionContext.ts +147 -0
  69. package/src/models/Sessions.ts +21 -0
  70. package/src/models/ToolRouter.ts +406 -0
  71. package/src/models/ToolRouterSession.ts +839 -0
  72. package/src/models/ToolRouterSessionFileMount.ts +389 -0
  73. package/src/models/Toolkits.ts +412 -0
  74. package/src/models/Tools.ts +1260 -0
  75. package/src/models/Triggers.ts +1381 -0
  76. package/src/models/customToolExecution.ts +118 -0
  77. package/src/models/inlineCustomToolsPayload.ts +17 -0
  78. package/src/models/proxyParamsTransform.ts +26 -0
  79. package/src/provider/BaseProvider.ts +138 -0
  80. package/src/provider/ComposioProvider.ts +29 -0
  81. package/src/provider/OpenAIProvider.ts +547 -0
  82. package/src/services/internal/InternalService.ts +50 -0
  83. package/src/services/internal/InternalService.types.ts +14 -0
  84. package/src/services/pusher/Pusher.ts +230 -0
  85. package/src/services/telemetry/TelemetryService.ts +48 -0
  86. package/src/services/telemetry/TelemetryService.types.ts +67 -0
  87. package/src/telemetry/BatchProcessor.ts +77 -0
  88. package/src/telemetry/README.md +123 -0
  89. package/src/telemetry/Telemetry.ts +356 -0
  90. package/src/types/ToolRouterSessionFilesMount.types.ts +96 -0
  91. package/src/types/authConfigs.types.ts +174 -0
  92. package/src/types/composio.types.ts +1 -0
  93. package/src/types/connectedAccountAuthStates.types.ts +852 -0
  94. package/src/types/connectedAccounts.types.ts +395 -0
  95. package/src/types/connectionRequest.types.ts +16 -0
  96. package/src/types/customTool.types.ts +261 -0
  97. package/src/types/files.types.ts +15 -0
  98. package/src/types/mcp.experimental.types.ts +163 -0
  99. package/src/types/mcp.types.ts +362 -0
  100. package/src/types/modifiers.types.ts +663 -0
  101. package/src/types/org.types.ts +0 -0
  102. package/src/types/provider.types.ts +41 -0
  103. package/src/types/pusher.types.ts +18 -0
  104. package/src/types/requestOptions.types.ts +62 -0
  105. package/src/types/telemetry.types.ts +89 -0
  106. package/src/types/tool.types.ts +408 -0
  107. package/src/types/toolRouter.types.ts +774 -0
  108. package/src/types/toolkit.types.ts +130 -0
  109. package/src/types/triggers.types.ts +401 -0
  110. package/src/types/webhookEvents.types.ts +219 -0
  111. package/src/utils/buffer.ts +30 -0
  112. package/src/utils/cancellation.ts +22 -0
  113. package/src/utils/config-defaults/ConfigDefaults.node.ts +7 -0
  114. package/src/utils/config-defaults/ConfigDefaults.workerd.ts +10 -0
  115. package/src/utils/config-defaults/index.ts +1 -0
  116. package/src/utils/config-defaults/types.ts +14 -0
  117. package/src/utils/constants.ts +22 -0
  118. package/src/utils/crypto.ts +34 -0
  119. package/src/utils/env.ts +34 -0
  120. package/src/utils/fileDirs.ts +81 -0
  121. package/src/utils/fileUtils.node.ts +458 -0
  122. package/src/utils/json-schema.ts +1 -0
  123. package/src/utils/jsonSchema.ts +355 -0
  124. package/src/utils/logger.ts +99 -0
  125. package/src/utils/mime.ts +75 -0
  126. package/src/utils/modifiers/FileToolModifier.node.ts +477 -0
  127. package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +132 -0
  128. package/src/utils/modifiers/FileToolModifier.workerd.ts +51 -0
  129. package/src/utils/pagination.ts +73 -0
  130. package/src/utils/pusher.ts +286 -0
  131. package/src/utils/schemaPropertyKeys.ts +433 -0
  132. package/src/utils/sdk.ts +110 -0
  133. package/src/utils/sensitiveFileUploadPaths.node.ts +105 -0
  134. package/src/utils/session.ts +114 -0
  135. package/src/utils/toolArguments.ts +73 -0
  136. package/src/utils/toolkitVersion.ts +26 -0
  137. package/src/utils/transform.ts +42 -0
  138. package/src/utils/transformers/authConfigs.ts +107 -0
  139. package/src/utils/transformers/connectedAccounts.ts +119 -0
  140. package/src/utils/transformers/mcp.ts +164 -0
  141. package/src/utils/transformers/toolRouterResponseTransform.ts +160 -0
  142. package/src/utils/transformers/toolkits.ts +100 -0
  143. package/src/utils/transformers/triggers.ts +118 -0
  144. package/src/utils/uploadDirAllowlist.node.ts +178 -0
  145. package/src/utils/uuid.ts +7 -0
  146. package/src/utils/version.ts +58 -0
  147. package/src/utils/zodSchema.ts +90 -0
@@ -1,4 +1,4 @@
1
- import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-BBnsv9kS.mjs";
1
+ import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-Brb3o86-.mjs";
2
2
  import { Composio } from "@composio/client";
3
3
  import z$1, { z } from "zod/v3";
4
4
  import { z as z$2 } from "zod/v4";
@@ -212,16 +212,16 @@ declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
212
212
  redirectUrl: z.ZodNullable<z.ZodString>;
213
213
  }, "strip", z.ZodTypeAny, {
214
214
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
215
- id: string;
216
215
  redirectUrl: string | null;
216
+ id: string;
217
217
  }, {
218
218
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
219
- id: string;
220
219
  redirectUrl: string | null;
220
+ id: string;
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;
@@ -277,19 +277,19 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
277
277
  */
278
278
  accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
279
279
  }, "strip", z.ZodTypeAny, {
280
- userIds?: string[] | null | undefined;
280
+ limit?: number | null | undefined;
281
281
  authConfigIds?: string[] | null | undefined;
282
+ userIds?: string[] | null | undefined;
282
283
  cursor?: string | null | undefined;
283
- limit?: number | null | undefined;
284
284
  accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
285
285
  orderBy?: "created_at" | "updated_at" | undefined;
286
286
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
287
287
  toolkitSlugs?: string[] | null | undefined;
288
288
  }, {
289
- userIds?: string[] | null | undefined;
289
+ limit?: number | null | undefined;
290
290
  authConfigIds?: string[] | null | undefined;
291
+ userIds?: string[] | null | undefined;
291
292
  cursor?: string | null | undefined;
292
- limit?: number | null | undefined;
293
293
  accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
294
294
  orderBy?: "created_at" | "updated_at" | undefined;
295
295
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
@@ -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;
@@ -548,6 +548,45 @@ interface ConnectionRequest extends ConnectionRequestState {
548
548
  toString: () => string;
549
549
  }
550
550
  //#endregion
551
+ //#region src/types/requestOptions.types.d.ts
552
+ /**
553
+ * Per-request transport options for cancelling an SDK call.
554
+ *
555
+ * For `tools.get` and `tools.execute`, pass `signal` directly in the
556
+ * options bag (3rd argument) alongside any modifiers or provider options.
557
+ * For other methods (e.g. `toolkits.get`, `authConfigs.list`), pass as a
558
+ * trailing argument. Forwarded to the underlying `@composio/client` request.
559
+ *
560
+ * If the underlying request is aborted via this signal, the SDK throws a
561
+ * {@link ComposioRequestCancelledError} so callers can `instanceof`-detect
562
+ * cancellation without unwrapping nested causes.
563
+ *
564
+ * @example Timeout after 5 seconds
565
+ * ```typescript
566
+ * await composio.tools.execute(
567
+ * 'HACKERNEWS_GET_FRONTPAGE',
568
+ * { userId: 'default', arguments: {} },
569
+ * { signal: AbortSignal.timeout(5_000) }
570
+ * );
571
+ * ```
572
+ *
573
+ * @example Combine signal with modifiers
574
+ * ```typescript
575
+ * await composio.tools.execute('TOOL', body, {
576
+ * signal: AbortSignal.timeout(10_000),
577
+ * beforeExecute: ({ params }) => params,
578
+ * });
579
+ * ```
580
+ */
581
+ type ComposioRequestOptions = {
582
+ /**
583
+ * An `AbortSignal` used to cancel the in-flight HTTP request. When the
584
+ * signal aborts, the underlying fetch is aborted and the SDK throws a
585
+ * {@link ComposioRequestCancelledError} (subclass of {@link ComposioError}).
586
+ */
587
+ signal?: AbortSignal;
588
+ };
589
+ //#endregion
551
590
  //#region src/types/ToolRouterSessionFilesMount.types.d.ts
552
591
  declare const ToolRouterSessionFilesMountListOptionsSchema: z$1.ZodObject<{
553
592
  path: z$1.ZodOptional<z$1.ZodString>;
@@ -557,12 +596,12 @@ declare const ToolRouterSessionFilesMountListOptionsSchema: z$1.ZodObject<{
557
596
  }, "strip", z$1.ZodTypeAny, {
558
597
  mountId: string;
559
598
  path?: string | undefined;
560
- cursor?: string | undefined;
561
599
  limit?: number | undefined;
600
+ cursor?: string | undefined;
562
601
  }, {
563
602
  path?: string | undefined;
564
- cursor?: string | undefined;
565
603
  limit?: number | undefined;
604
+ cursor?: string | undefined;
566
605
  mountId?: string | undefined;
567
606
  }>;
568
607
  type ToolRouterSessionFilesMountListOptions = z$1.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
@@ -770,6 +809,11 @@ declare class RemoteFile {
770
809
  }
771
810
  //#endregion
772
811
  //#region src/models/ToolRouterSessionFileMount.d.ts
812
+ /**
813
+ * File mount for a Composio session, reached via `session.experimental.files`
814
+ * on a session created with `composio.sessions.create(...)`. Upload, list,
815
+ * download, and delete files scoped to a single session.
816
+ */
773
817
  declare class ToolRouterSessionFilesMount {
774
818
  private readonly sessionId;
775
819
  private readonly client;
@@ -899,7 +943,7 @@ type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
899
943
  declare const MCPServerTypeSchema: z$1.ZodEnum<["http", "sse"]>;
900
944
  type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
901
945
  /**
902
- * Sandbox compute tier for the tool router workbench.
946
+ * Sandbox compute tier for the session sandbox.
903
947
  *
904
948
  * | Tier | vCPU | RAM |
905
949
  * | -------- | ---- | ----- |
@@ -912,17 +956,34 @@ type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
912
956
  */
913
957
  declare const SandboxSizeSchema: z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>;
914
958
  type SandboxSize = z$1.infer<typeof SandboxSizeSchema>;
959
+ declare const ToolRouterSandboxConfigSchema: z$1.ZodObject<{
960
+ enable: z$1.ZodDefault<z$1.ZodBoolean>;
961
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
962
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
963
+ sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
964
+ }, "strip", z$1.ZodTypeAny, {
965
+ enable: boolean;
966
+ enableProxyExecution?: boolean | undefined;
967
+ autoOffloadThreshold?: number | undefined;
968
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
969
+ }, {
970
+ enable?: boolean | undefined;
971
+ enableProxyExecution?: boolean | undefined;
972
+ autoOffloadThreshold?: number | undefined;
973
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
974
+ }>;
975
+ type ToolRouterSandboxConfig = z$1.infer<typeof ToolRouterSandboxConfigSchema>;
915
976
  declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
916
977
  enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
917
978
  callbackUrl: z$1.ZodOptional<z$1.ZodString>;
918
979
  waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
919
980
  }, "strict", z$1.ZodTypeAny, {
920
- enable?: boolean | undefined;
921
981
  callbackUrl?: string | undefined;
982
+ enable?: boolean | undefined;
922
983
  waitForConnections?: boolean | undefined;
923
984
  }, {
924
- enable?: boolean | undefined;
925
985
  callbackUrl?: string | undefined;
986
+ enable?: boolean | undefined;
926
987
  waitForConnections?: boolean | undefined;
927
988
  }>;
928
989
  declare const ToolRouterToolkitsParamSchema: z$1.ZodArray<z$1.ZodString, "many">;
@@ -947,8 +1008,8 @@ declare const ToolRouterManageConnectionsConfigSchema: z$1.ZodObject<{
947
1008
  enable: boolean;
948
1009
  callbackUrl?: string | undefined;
949
1010
  }, {
950
- enable?: boolean | undefined;
951
1011
  callbackUrl?: string | undefined;
1012
+ enable?: boolean | undefined;
952
1013
  }>;
953
1014
  declare const ToolRouterTagsParamSchema: z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
954
1015
  declare const ToolRouterTagsEnableDisableSchema: z$1.ZodObject<{
@@ -1049,8 +1110,9 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
1049
1110
  };
1050
1111
  }>;
1051
1112
  type ToolRouterConfigTools = z$1.infer<typeof ToolRouterConfigToolsSchema>;
1052
- declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
1113
+ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObject<{
1053
1114
  sessionPreset: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodLiteral<"direct_tools">>>;
1115
+ mcp: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
1054
1116
  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
1117
  enable: z$1.ZodArray<z$1.ZodString, "many">;
1056
1118
  }, "strict", z$1.ZodTypeAny, {
@@ -1133,14 +1195,30 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1133
1195
  callbackUrl: z$1.ZodOptional<z$1.ZodString>;
1134
1196
  waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
1135
1197
  }, "strict", z$1.ZodTypeAny, {
1136
- enable?: boolean | undefined;
1137
1198
  callbackUrl?: string | undefined;
1199
+ enable?: boolean | undefined;
1138
1200
  waitForConnections?: boolean | undefined;
1139
1201
  }, {
1140
- enable?: boolean | undefined;
1141
1202
  callbackUrl?: string | undefined;
1203
+ enable?: boolean | undefined;
1142
1204
  waitForConnections?: boolean | undefined;
1143
1205
  }>]>>>>;
1206
+ sandbox: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
1207
+ enable: z$1.ZodDefault<z$1.ZodBoolean>;
1208
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
1209
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodNumber>;
1210
+ sandboxSize: z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
1211
+ }, "strip", z$1.ZodTypeAny, {
1212
+ enable: boolean;
1213
+ enableProxyExecution?: boolean | undefined;
1214
+ autoOffloadThreshold?: number | undefined;
1215
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1216
+ }, {
1217
+ enable?: boolean | undefined;
1218
+ enableProxyExecution?: boolean | undefined;
1219
+ autoOffloadThreshold?: number | undefined;
1220
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1221
+ }>>>;
1144
1222
  workbench: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodObject<{
1145
1223
  enable: z$1.ZodDefault<z$1.ZodBoolean>;
1146
1224
  enableProxyExecution: z$1.ZodOptional<z$1.ZodBoolean>;
@@ -1201,6 +1279,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1201
1279
  customToolkits?: CustomToolkit[] | undefined;
1202
1280
  }>>>;
1203
1281
  }, "strip", z$1.ZodTypeAny, {
1282
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1283
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1284
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1285
+ } | undefined;
1204
1286
  tools?: Record<string, string[] | {
1205
1287
  enable: string[];
1206
1288
  } | {
@@ -1216,21 +1298,24 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1216
1298
  } | {
1217
1299
  enable: string[];
1218
1300
  } | undefined;
1219
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1220
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1221
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1222
- } | undefined;
1223
1301
  preload?: {
1224
1302
  tools?: string[] | "all" | undefined;
1225
1303
  } | undefined;
1226
- sessionPreset?: "direct_tools" | undefined;
1227
1304
  authConfigs?: Record<string, string> | undefined;
1305
+ sessionPreset?: "direct_tools" | undefined;
1306
+ mcp?: boolean | undefined;
1228
1307
  connectedAccounts?: Record<string, string | string[]> | undefined;
1229
1308
  manageConnections?: boolean | {
1230
- enable?: boolean | undefined;
1231
1309
  callbackUrl?: string | undefined;
1310
+ enable?: boolean | undefined;
1232
1311
  waitForConnections?: boolean | undefined;
1233
1312
  } | undefined;
1313
+ sandbox?: {
1314
+ enable: boolean;
1315
+ enableProxyExecution?: boolean | undefined;
1316
+ autoOffloadThreshold?: number | undefined;
1317
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1318
+ } | undefined;
1234
1319
  workbench?: {
1235
1320
  enable: boolean;
1236
1321
  enableProxyExecution?: boolean | undefined;
@@ -1250,6 +1335,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1250
1335
  customToolkits?: CustomToolkit[] | undefined;
1251
1336
  } | undefined;
1252
1337
  }, {
1338
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1339
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1340
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1341
+ } | undefined;
1253
1342
  tools?: Record<string, string[] | {
1254
1343
  enable: string[];
1255
1344
  } | {
@@ -1265,21 +1354,24 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1265
1354
  } | {
1266
1355
  enable: string[];
1267
1356
  } | undefined;
1268
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1269
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1270
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1271
- } | undefined;
1272
1357
  preload?: {
1273
1358
  tools?: string[] | "all" | undefined;
1274
1359
  } | undefined;
1275
- sessionPreset?: "direct_tools" | undefined;
1276
1360
  authConfigs?: Record<string, string> | undefined;
1361
+ sessionPreset?: "direct_tools" | undefined;
1362
+ mcp?: boolean | undefined;
1277
1363
  connectedAccounts?: Record<string, string | string[]> | undefined;
1278
1364
  manageConnections?: boolean | {
1279
- enable?: boolean | undefined;
1280
1365
  callbackUrl?: string | undefined;
1366
+ enable?: boolean | undefined;
1281
1367
  waitForConnections?: boolean | undefined;
1282
1368
  } | undefined;
1369
+ sandbox?: {
1370
+ enable?: boolean | undefined;
1371
+ enableProxyExecution?: boolean | undefined;
1372
+ autoOffloadThreshold?: number | undefined;
1373
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1374
+ } | undefined;
1283
1375
  workbench?: {
1284
1376
  enable?: boolean | undefined;
1285
1377
  enableProxyExecution?: boolean | undefined;
@@ -1299,6 +1391,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1299
1391
  customToolkits?: CustomToolkit[] | undefined;
1300
1392
  } | undefined;
1301
1393
  }>, {
1394
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1395
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1396
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1397
+ } | undefined;
1302
1398
  tools?: Record<string, string[] | {
1303
1399
  enable: string[];
1304
1400
  } | {
@@ -1314,21 +1410,136 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1314
1410
  } | {
1315
1411
  enable: string[];
1316
1412
  } | undefined;
1413
+ preload?: {
1414
+ tools?: string[] | "all" | undefined;
1415
+ } | undefined;
1416
+ authConfigs?: Record<string, string> | undefined;
1417
+ sessionPreset?: "direct_tools" | undefined;
1418
+ mcp?: boolean | undefined;
1419
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1420
+ manageConnections?: boolean | {
1421
+ callbackUrl?: string | undefined;
1422
+ enable?: boolean | undefined;
1423
+ waitForConnections?: boolean | undefined;
1424
+ } | undefined;
1425
+ sandbox?: {
1426
+ enable: boolean;
1427
+ enableProxyExecution?: boolean | undefined;
1428
+ autoOffloadThreshold?: number | undefined;
1429
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1430
+ } | undefined;
1431
+ workbench?: {
1432
+ enable: boolean;
1433
+ enableProxyExecution?: boolean | undefined;
1434
+ autoOffloadThreshold?: number | undefined;
1435
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1436
+ } | undefined;
1437
+ multiAccount?: {
1438
+ enable: boolean;
1439
+ maxAccountsPerToolkit?: number | undefined;
1440
+ requireExplicitSelection?: boolean | undefined;
1441
+ } | undefined;
1442
+ experimental?: {
1443
+ assistivePrompt?: {
1444
+ userTimezone?: string | undefined;
1445
+ } | undefined;
1446
+ customTools?: CustomTool[] | undefined;
1447
+ customToolkits?: CustomToolkit[] | undefined;
1448
+ } | undefined;
1449
+ }, {
1317
1450
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1318
1451
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1319
1452
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1320
1453
  } | undefined;
1454
+ tools?: Record<string, string[] | {
1455
+ enable: string[];
1456
+ } | {
1457
+ disable: string[];
1458
+ } | {
1459
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1460
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1461
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1462
+ };
1463
+ }> | undefined;
1464
+ toolkits?: string[] | {
1465
+ disable: string[];
1466
+ } | {
1467
+ enable: string[];
1468
+ } | undefined;
1321
1469
  preload?: {
1322
1470
  tools?: string[] | "all" | undefined;
1323
1471
  } | undefined;
1324
- sessionPreset?: "direct_tools" | undefined;
1325
1472
  authConfigs?: Record<string, string> | undefined;
1473
+ sessionPreset?: "direct_tools" | undefined;
1474
+ mcp?: boolean | undefined;
1326
1475
  connectedAccounts?: Record<string, string | string[]> | undefined;
1327
1476
  manageConnections?: boolean | {
1477
+ callbackUrl?: string | undefined;
1328
1478
  enable?: boolean | undefined;
1479
+ waitForConnections?: boolean | undefined;
1480
+ } | undefined;
1481
+ sandbox?: {
1482
+ enable?: boolean | undefined;
1483
+ enableProxyExecution?: boolean | undefined;
1484
+ autoOffloadThreshold?: number | undefined;
1485
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1486
+ } | undefined;
1487
+ workbench?: {
1488
+ enable?: boolean | undefined;
1489
+ enableProxyExecution?: boolean | undefined;
1490
+ autoOffloadThreshold?: number | undefined;
1491
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1492
+ } | undefined;
1493
+ multiAccount?: {
1494
+ enable?: boolean | undefined;
1495
+ maxAccountsPerToolkit?: number | undefined;
1496
+ requireExplicitSelection?: boolean | undefined;
1497
+ } | undefined;
1498
+ experimental?: {
1499
+ assistivePrompt?: {
1500
+ userTimezone?: string | undefined;
1501
+ } | undefined;
1502
+ customTools?: CustomTool[] | undefined;
1503
+ customToolkits?: CustomToolkit[] | undefined;
1504
+ } | undefined;
1505
+ }>, {
1506
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1507
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1508
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1509
+ } | undefined;
1510
+ tools?: Record<string, string[] | {
1511
+ enable: string[];
1512
+ } | {
1513
+ disable: string[];
1514
+ } | {
1515
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1516
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1517
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1518
+ };
1519
+ }> | undefined;
1520
+ toolkits?: string[] | {
1521
+ disable: string[];
1522
+ } | {
1523
+ enable: string[];
1524
+ } | undefined;
1525
+ preload?: {
1526
+ tools?: string[] | "all" | undefined;
1527
+ } | undefined;
1528
+ authConfigs?: Record<string, string> | undefined;
1529
+ sessionPreset?: "direct_tools" | undefined;
1530
+ mcp?: boolean | undefined;
1531
+ connectedAccounts?: Record<string, string | string[]> | undefined;
1532
+ manageConnections?: boolean | {
1329
1533
  callbackUrl?: string | undefined;
1534
+ enable?: boolean | undefined;
1330
1535
  waitForConnections?: boolean | undefined;
1331
1536
  } | undefined;
1537
+ sandbox?: {
1538
+ enable: boolean;
1539
+ enableProxyExecution?: boolean | undefined;
1540
+ autoOffloadThreshold?: number | undefined;
1541
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
1542
+ } | undefined;
1332
1543
  workbench?: {
1333
1544
  enable: boolean;
1334
1545
  enableProxyExecution?: boolean | undefined;
@@ -1351,7 +1562,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1351
1562
  /**
1352
1563
  * The config for the tool router session.
1353
1564
  *
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.
1565
+ * @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
1566
  * @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
1356
1567
  * @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
1357
1568
  * @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
@@ -1360,11 +1571,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
1360
1571
  * @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
1572
  * @param {boolean} [manageConnections.enable] - Whether to use tools to manage connections in the tool router session @default true
1362
1573
  * @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)
1574
+ * @param {object} sandbox - Sandbox configuration for code execution. Preferred over workbench.
1575
+ * @param {boolean} [sandbox.enable] - Whether to enable the sandbox entirely. Defaults to true. When false, no code execution tools are available.
1576
+ * @param {boolean} [sandbox.enableProxyExecution] - Whether to enable proxy execution
1577
+ * @param {number} [sandbox.autoOffloadThreshold] - Auto offload threshold in characters for moving execution to the sandbox
1578
+ * @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)
1579
+ * @param {object} workbench - Deprecated alias for sandbox. Accepted for backwards compatibility.
1368
1580
  * @param {object} [multiAccount] - Multi-account configuration for this session
1369
1581
  * @param {boolean} [multiAccount.enable] - When true, enables multi-account mode. Falls back to org/project-level config when not set.
1370
1582
  * @param {number} [multiAccount.maxAccountsPerToolkit] - Max connected accounts per toolkit (2-10, default 5)
@@ -1427,8 +1639,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
1427
1639
  } | undefined;
1428
1640
  }>>;
1429
1641
  }, "strip", z$1.ZodTypeAny, {
1430
- name: string;
1431
1642
  slug: string;
1643
+ name: string;
1432
1644
  isNoAuth: boolean;
1433
1645
  logo?: string | undefined;
1434
1646
  connection?: {
@@ -1444,8 +1656,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
1444
1656
  } | undefined;
1445
1657
  } | undefined;
1446
1658
  }, {
1447
- name: string;
1448
1659
  slug: string;
1660
+ name: string;
1449
1661
  logo?: string | undefined;
1450
1662
  isNoAuth?: boolean | undefined;
1451
1663
  connection?: {
@@ -1516,8 +1728,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1516
1728
  } | undefined;
1517
1729
  }>>;
1518
1730
  }, "strip", z$1.ZodTypeAny, {
1519
- name: string;
1520
1731
  slug: string;
1732
+ name: string;
1521
1733
  isNoAuth: boolean;
1522
1734
  logo?: string | undefined;
1523
1735
  connection?: {
@@ -1533,8 +1745,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1533
1745
  } | undefined;
1534
1746
  } | undefined;
1535
1747
  }, {
1536
- name: string;
1537
1748
  slug: string;
1749
+ name: string;
1538
1750
  logo?: string | undefined;
1539
1751
  isNoAuth?: boolean | undefined;
1540
1752
  connection?: {
@@ -1554,8 +1766,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1554
1766
  totalPages: z$1.ZodNumber;
1555
1767
  }, "strip", z$1.ZodTypeAny, {
1556
1768
  items: {
1557
- name: string;
1558
1769
  slug: string;
1770
+ name: string;
1559
1771
  isNoAuth: boolean;
1560
1772
  logo?: string | undefined;
1561
1773
  connection?: {
@@ -1575,8 +1787,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
1575
1787
  cursor?: string | undefined;
1576
1788
  }, {
1577
1789
  items: {
1578
- name: string;
1579
1790
  slug: string;
1791
+ name: string;
1580
1792
  logo?: string | undefined;
1581
1793
  isNoAuth?: boolean | undefined;
1582
1794
  connection?: {
@@ -1624,15 +1836,15 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
1624
1836
  search: z$1.ZodOptional<z$1.ZodString>;
1625
1837
  }, "strip", z$1.ZodTypeAny, {
1626
1838
  toolkits?: string[] | undefined;
1627
- cursor?: string | undefined;
1628
1839
  limit?: number | undefined;
1629
1840
  search?: string | undefined;
1841
+ cursor?: string | undefined;
1630
1842
  isConnected?: boolean | undefined;
1631
1843
  }, {
1632
1844
  toolkits?: string[] | undefined;
1633
- cursor?: string | undefined;
1634
1845
  limit?: number | undefined;
1635
1846
  search?: string | undefined;
1847
+ cursor?: string | undefined;
1636
1848
  isConnected?: boolean | undefined;
1637
1849
  }>;
1638
1850
  type ToolRouterToolkitsOptions = z$1.infer<typeof ToolRouterToolkitsOptionsSchema>;
@@ -1765,15 +1977,15 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
1765
1977
  connectionDetails: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1766
1978
  currentUserInfo: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1767
1979
  }, "strip", z$1.ZodTypeAny, {
1768
- toolkit: string;
1769
1980
  description: string;
1981
+ toolkit: string;
1770
1982
  hasActiveConnection: boolean;
1771
1983
  statusMessage: string;
1772
1984
  connectionDetails?: Record<string, unknown> | undefined;
1773
1985
  currentUserInfo?: Record<string, unknown> | undefined;
1774
1986
  }, {
1775
- toolkit: string;
1776
1987
  description: string;
1988
+ toolkit: string;
1777
1989
  hasActiveConnection: boolean;
1778
1990
  statusMessage: string;
1779
1991
  connectionDetails?: Record<string, unknown> | undefined;
@@ -1843,8 +2055,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
1843
2055
  } | undefined;
1844
2056
  }>;
1845
2057
  toolkitConnectionStatuses: {
1846
- toolkit: string;
1847
2058
  description: string;
2059
+ toolkit: string;
1848
2060
  hasActiveConnection: boolean;
1849
2061
  statusMessage: string;
1850
2062
  connectionDetails?: Record<string, unknown> | undefined;
@@ -1898,8 +2110,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
1898
2110
  } | undefined;
1899
2111
  }>;
1900
2112
  toolkitConnectionStatuses: {
1901
- toolkit: string;
1902
2113
  description: string;
2114
+ toolkit: string;
1903
2115
  hasActiveConnection: boolean;
1904
2116
  statusMessage: string;
1905
2117
  connectionDetails?: Record<string, unknown> | undefined;
@@ -1923,12 +2135,12 @@ declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
1923
2135
  error: z$1.ZodNullable<z$1.ZodString>;
1924
2136
  logId: z$1.ZodString;
1925
2137
  }, "strip", z$1.ZodTypeAny, {
1926
- error: string | null;
1927
2138
  data: Record<string, unknown>;
2139
+ error: string | null;
1928
2140
  logId: string;
1929
2141
  }, {
1930
- error: string | null;
1931
2142
  data: Record<string, unknown>;
2143
+ error: string | null;
1932
2144
  logId: string;
1933
2145
  }>;
1934
2146
  type ToolRouterSessionExecuteResponse = z$1.infer<typeof ToolRouterSessionExecuteResponseSchema>;
@@ -1977,9 +2189,11 @@ interface ToolRouterSessionExecuteOptions {
1977
2189
  account?: string;
1978
2190
  }
1979
2191
  type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
2192
+ type ToolRouterSessionWorkbenchConfig = SessionCreateResponse.Config.Workbench;
1980
2193
  type ToolRouterSessionWarning = SessionCreateResponse.Warning;
1981
2194
  interface ToolRouterSessionMetadata {
1982
2195
  preload?: ToolRouterSessionPreloadConfig;
2196
+ workbench?: ToolRouterSessionWorkbenchConfig;
1983
2197
  configVersion?: number;
1984
2198
  warnings?: ToolRouterSessionWarning[];
1985
2199
  preloadedCustomToolSlugs?: string[];
@@ -1995,12 +2209,12 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
1995
2209
  name: z$1.ZodString;
1996
2210
  value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>;
1997
2211
  }, "strip", z$1.ZodTypeAny, {
1998
- value: string | number;
1999
2212
  name: string;
2213
+ value: string | number;
2000
2214
  in: "query" | "header";
2001
2215
  }, {
2002
- value: string | number;
2003
2216
  name: string;
2217
+ value: string | number;
2004
2218
  in: "query" | "header";
2005
2219
  }>, "many">>;
2006
2220
  }, "strip", z$1.ZodTypeAny, {
@@ -2009,8 +2223,8 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
2009
2223
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2010
2224
  body?: unknown;
2011
2225
  parameters?: {
2012
- value: string | number;
2013
2226
  name: string;
2227
+ value: string | number;
2014
2228
  in: "query" | "header";
2015
2229
  }[] | undefined;
2016
2230
  }, {
@@ -2019,14 +2233,14 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
2019
2233
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2020
2234
  body?: unknown;
2021
2235
  parameters?: {
2022
- value: string | number;
2023
2236
  name: string;
2237
+ value: string | number;
2024
2238
  in: "query" | "header";
2025
2239
  }[] | undefined;
2026
2240
  }>;
2027
2241
  type SessionProxyExecuteParams = z$1.infer<typeof SessionProxyExecuteParamsSchema>;
2028
2242
  type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
2029
- declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2243
+ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<{
2030
2244
  toolkits: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodObject<{
2031
2245
  disable: z$1.ZodArray<z$1.ZodString, "many">;
2032
2246
  }, "strict", z$1.ZodTypeAny, {
@@ -2109,19 +2323,35 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2109
2323
  callbackUrl: z$1.ZodOptional<z$1.ZodString>;
2110
2324
  waitForConnections: z$1.ZodOptional<z$1.ZodBoolean>;
2111
2325
  }, "strict", z$1.ZodTypeAny, {
2112
- enable?: boolean | undefined;
2113
2326
  callbackUrl?: string | undefined;
2327
+ enable?: boolean | undefined;
2114
2328
  waitForConnections?: boolean | undefined;
2115
2329
  }, {
2116
- enable?: boolean | undefined;
2117
2330
  callbackUrl?: string | undefined;
2331
+ enable?: boolean | undefined;
2118
2332
  waitForConnections?: boolean | undefined;
2119
2333
  }>]>>>>;
2334
+ sandbox: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
2335
+ enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
2336
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
2337
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNumber>>;
2338
+ sandboxSize: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
2339
+ }, "strip", z$1.ZodTypeAny, {
2340
+ enable?: boolean | undefined;
2341
+ enableProxyExecution?: boolean | undefined;
2342
+ autoOffloadThreshold?: number | undefined;
2343
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2344
+ }, {
2345
+ enable?: boolean | undefined;
2346
+ enableProxyExecution?: boolean | undefined;
2347
+ autoOffloadThreshold?: number | undefined;
2348
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2349
+ }>>>>;
2120
2350
  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"]>>;
2351
+ enable: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
2352
+ enableProxyExecution: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodBoolean>>;
2353
+ autoOffloadThreshold: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNumber>>;
2354
+ sandboxSize: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
2125
2355
  }, "strip", z$1.ZodTypeAny, {
2126
2356
  enable?: boolean | undefined;
2127
2357
  enableProxyExecution?: boolean | undefined;
@@ -2154,6 +2384,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2154
2384
  tools?: string[] | "all" | undefined;
2155
2385
  }>>>;
2156
2386
  }, "strip", z$1.ZodTypeAny, {
2387
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2388
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2389
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2390
+ } | undefined;
2157
2391
  tools?: Record<string, string[] | {
2158
2392
  enable: string[];
2159
2393
  } | {
@@ -2169,20 +2403,69 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2169
2403
  } | {
2170
2404
  enable: string[];
2171
2405
  } | undefined;
2406
+ preload?: {
2407
+ tools?: string[] | "all" | undefined;
2408
+ } | undefined;
2409
+ authConfigs?: Record<string, string> | undefined;
2410
+ connectedAccounts?: Record<string, string[]> | undefined;
2411
+ manageConnections?: boolean | {
2412
+ callbackUrl?: string | undefined;
2413
+ enable?: boolean | undefined;
2414
+ waitForConnections?: boolean | undefined;
2415
+ } | null | undefined;
2416
+ sandbox?: {
2417
+ enable?: boolean | undefined;
2418
+ enableProxyExecution?: boolean | undefined;
2419
+ autoOffloadThreshold?: number | undefined;
2420
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2421
+ } | null | undefined;
2422
+ workbench?: {
2423
+ enable?: boolean | undefined;
2424
+ enableProxyExecution?: boolean | undefined;
2425
+ autoOffloadThreshold?: number | undefined;
2426
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2427
+ } | null | undefined;
2428
+ multiAccount?: {
2429
+ enable?: boolean | undefined;
2430
+ maxAccountsPerToolkit?: number | undefined;
2431
+ requireExplicitSelection?: boolean | undefined;
2432
+ } | null | undefined;
2433
+ }, {
2172
2434
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2173
2435
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2174
2436
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2175
2437
  } | undefined;
2438
+ tools?: Record<string, string[] | {
2439
+ enable: string[];
2440
+ } | {
2441
+ disable: string[];
2442
+ } | {
2443
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2444
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2445
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2446
+ };
2447
+ }> | undefined;
2448
+ toolkits?: string[] | {
2449
+ disable: string[];
2450
+ } | {
2451
+ enable: string[];
2452
+ } | undefined;
2176
2453
  preload?: {
2177
2454
  tools?: string[] | "all" | undefined;
2178
2455
  } | undefined;
2179
2456
  authConfigs?: Record<string, string> | undefined;
2180
- connectedAccounts?: Record<string, string[]> | undefined;
2457
+ connectedAccounts?: Record<string, string | string[]> | undefined;
2181
2458
  manageConnections?: boolean | {
2182
- enable?: boolean | undefined;
2183
2459
  callbackUrl?: string | undefined;
2460
+ enable?: boolean | undefined;
2184
2461
  waitForConnections?: boolean | undefined;
2185
2462
  } | null | undefined;
2463
+ sandbox?: {
2464
+ enable?: boolean | undefined;
2465
+ enableProxyExecution?: boolean | undefined;
2466
+ autoOffloadThreshold?: number | undefined;
2467
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2468
+ } | null | undefined;
2186
2469
  workbench?: {
2187
2470
  enable?: boolean | undefined;
2188
2471
  enableProxyExecution?: boolean | undefined;
@@ -2194,7 +2477,11 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2194
2477
  maxAccountsPerToolkit?: number | undefined;
2195
2478
  requireExplicitSelection?: boolean | undefined;
2196
2479
  } | null | undefined;
2197
- }, {
2480
+ }>, {
2481
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2482
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2483
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2484
+ } | undefined;
2198
2485
  tools?: Record<string, string[] | {
2199
2486
  enable: string[];
2200
2487
  } | {
@@ -2210,20 +2497,69 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2210
2497
  } | {
2211
2498
  enable: string[];
2212
2499
  } | undefined;
2500
+ preload?: {
2501
+ tools?: string[] | "all" | undefined;
2502
+ } | undefined;
2503
+ authConfigs?: Record<string, string> | undefined;
2504
+ connectedAccounts?: Record<string, string[]> | undefined;
2505
+ manageConnections?: boolean | {
2506
+ callbackUrl?: string | undefined;
2507
+ enable?: boolean | undefined;
2508
+ waitForConnections?: boolean | undefined;
2509
+ } | null | undefined;
2510
+ sandbox?: {
2511
+ enable?: boolean | undefined;
2512
+ enableProxyExecution?: boolean | undefined;
2513
+ autoOffloadThreshold?: number | undefined;
2514
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2515
+ } | null | undefined;
2516
+ workbench?: {
2517
+ enable?: boolean | undefined;
2518
+ enableProxyExecution?: boolean | undefined;
2519
+ autoOffloadThreshold?: number | undefined;
2520
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2521
+ } | null | undefined;
2522
+ multiAccount?: {
2523
+ enable?: boolean | undefined;
2524
+ maxAccountsPerToolkit?: number | undefined;
2525
+ requireExplicitSelection?: boolean | undefined;
2526
+ } | null | undefined;
2527
+ }, {
2213
2528
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2214
2529
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2215
2530
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2216
2531
  } | undefined;
2532
+ tools?: Record<string, string[] | {
2533
+ enable: string[];
2534
+ } | {
2535
+ disable: string[];
2536
+ } | {
2537
+ tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2538
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2539
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2540
+ };
2541
+ }> | undefined;
2542
+ toolkits?: string[] | {
2543
+ disable: string[];
2544
+ } | {
2545
+ enable: string[];
2546
+ } | undefined;
2217
2547
  preload?: {
2218
2548
  tools?: string[] | "all" | undefined;
2219
2549
  } | undefined;
2220
2550
  authConfigs?: Record<string, string> | undefined;
2221
2551
  connectedAccounts?: Record<string, string | string[]> | undefined;
2222
2552
  manageConnections?: boolean | {
2223
- enable?: boolean | undefined;
2224
2553
  callbackUrl?: string | undefined;
2554
+ enable?: boolean | undefined;
2225
2555
  waitForConnections?: boolean | undefined;
2226
2556
  } | null | undefined;
2557
+ sandbox?: {
2558
+ enable?: boolean | undefined;
2559
+ enableProxyExecution?: boolean | undefined;
2560
+ autoOffloadThreshold?: number | undefined;
2561
+ sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
2562
+ } | null | undefined;
2227
2563
  workbench?: {
2228
2564
  enable?: boolean | undefined;
2229
2565
  enableProxyExecution?: boolean | undefined;
@@ -2238,12 +2574,36 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
2238
2574
  }>;
2239
2575
  type ToolRouterUpdateSessionConfig = z$1.infer<typeof ToolRouterUpdateSessionConfigSchema>;
2240
2576
  type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
2577
+ declare const ToolRouterSessionDeleteResponseSchema: z$1.ZodObject<{
2578
+ sessionId: z$1.ZodString;
2579
+ deleted: z$1.ZodLiteral<true>;
2580
+ }, "strip", z$1.ZodTypeAny, {
2581
+ sessionId: string;
2582
+ deleted: true;
2583
+ }, {
2584
+ sessionId: string;
2585
+ deleted: true;
2586
+ }>;
2587
+ type ToolRouterSessionDeleteResponse = z$1.infer<typeof ToolRouterSessionDeleteResponseSchema>;
2588
+ type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
2241
2589
  /** Session type returned by ToolRouter.create() and ToolRouter.use() */
2242
2590
  interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
2243
2591
  sessionId: string;
2244
2592
  mcp: ToolRouterMCPServerConfig;
2245
2593
  /** Stored preload configuration for this session. */
2246
2594
  preload: ToolRouterSessionPreloadConfig;
2595
+ /**
2596
+ * Resolved sandbox (code-execution) config returned by the API. `enable` defaults to `true` server-side.
2597
+ *
2598
+ * This is the read-side counterpart to the `sandbox` key you pass into `create()`.
2599
+ */
2600
+ sandbox?: ToolRouterSessionWorkbenchConfig;
2601
+ /**
2602
+ * Resolved sandbox config for the session.
2603
+ *
2604
+ * @deprecated Use `sandbox` instead. `workbench` is a backwards-compatible alias and will be removed in a future release.
2605
+ */
2606
+ workbench?: ToolRouterSessionWorkbenchConfig;
2247
2607
  /** Server-side config version when returned by the API. */
2248
2608
  configVersion?: number;
2249
2609
  /** Non-blocking session creation warnings returned by the API. */
@@ -2257,6 +2617,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
2257
2617
  execute: ToolRouterSessionExecuteFn;
2258
2618
  /** Update the session configuration. Mutates this session in-place. */
2259
2619
  update: ToolRouterSessionUpdateFn;
2620
+ /** Delete the session. Deleted sessions are no longer retrievable or executable. */
2621
+ delete: ToolRouterSessionDeleteFn;
2260
2622
  /** Proxy an API call through Composio's auth layer using the session's connected account */
2261
2623
  proxyExecute: ToolRouterSessionProxyExecuteFn;
2262
2624
  /** List custom tools registered in this session, with their final slugs and schemas */
@@ -2268,6 +2630,16 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
2268
2630
  /** Experimental features (files, assistive prompt, etc.) */
2269
2631
  experimental: SessionExperimental;
2270
2632
  }
2633
+ /**
2634
+ * Session type without the typed `mcp` endpoint.
2635
+ *
2636
+ * Returned by `create()` / `use()` when `{ mcp: true }` is not passed. The
2637
+ * hosted MCP endpoint still exists on the underlying session at runtime — this
2638
+ * only hides it from the type so MCP is an explicit opt-in. Pass `{ mcp: true }`
2639
+ * to get a `Session` with `session.mcp` surfaced. See
2640
+ * https://docs.composio.dev/docs/sessions-via-mcp
2641
+ */
2642
+ type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
2271
2643
  //#endregion
2272
2644
  //#region src/types/customTool.types.d.ts
2273
2645
  type AnyZodSchema = z.ZodType | z$2.ZodType;
@@ -2451,4 +2823,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
2451
2823
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
2452
2824
  type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
2453
2825
  //#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 };
2826
+ export { ToolRouterSessionMetadata as $, ConnectedAccountExperimentalSchema as $t, SessionProxyExecuteParams as A, UpdateConnectedAccountParamsSchema as An, FileListResponseSchema as At, ToolRouterCreateSessionConfigSchema as B, ToolRouterSessionFilesMountUploadOptionsSchema as Bt, MCPServerType as C, CreateConnectedAccountParamsSchema as Cn, ToolkitConnectionStateSchema as Ct, Session as D, UpdateConnectedAccountAclParams as Dn, FileDeleteResponse as Dt, SandboxSizeSchema as E, DefaultCreateConnectedAccountParamsSchema as En, RemoteFile as Et, ToolRouterConfigTags as F, ToolRouterSessionFilesMountDownloadOptions as Ft, ToolRouterSandboxConfigSchema as G, ConnectedAccountAclConfigResponse as Gt, ToolRouterMCPServerConfigSchema as H, ConnectionRequest as Ht, ToolRouterConfigTagsSchema as I, ToolRouterSessionFilesMountDownloadOptionsSchema as It, ToolRouterSessionDeleteResponseSchema as J, ConnectedAccountAuthConfig as Jt, ToolRouterSessionDeleteFn as K, ConnectedAccountAclConfigResponseSchema as Kt, ToolRouterConfigTools as L, ToolRouterSessionFilesMountListOptions as Lt, SessionWithoutMcp as M, RemoteFileDataSchema as Mt, ToolRouterAuthorizeFn as N, ToolRouterSessionFilesMountDeleteOptions as Nt, SessionExperimental as O, UpdateConnectedAccountAclParamsSchema as On, FileDeleteResponseSchema as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolRouterSessionFilesMountDeleteOptionsSchema as Pt, ToolRouterSessionExecuteResponseSchema as Q, ConnectedAccountExperimentalResponseSchema as Qt, ToolRouterConfigToolsSchema as R, ToolRouterSessionFilesMountListOptionsSchema as Rt, SessionContext as S, CreateConnectedAccountParams as Sn, ToolkitConnectionState as St, SandboxSize as T, CreateConnectedAccountResponseSchema as Tn, ToolkitConnectionsDetailsSchema as Tt, ToolRouterManageConnectionsConfigSchema as U, ConnectionRequestState as Ut, ToolRouterMCPServerConfig as V, ComposioRequestOptions as Vt, ToolRouterSandboxConfig as W, ConnectedAccountAclConfig as Wt, ToolRouterSessionExecuteOptions as X, ConnectedAccountExperimental as Xt, ToolRouterSessionExecuteFn as Y, ConnectedAccountAuthConfigSchema as Yt, ToolRouterSessionExecuteResponse as Z, ConnectedAccountExperimentalResponse as Zt, CustomToolsMapEntry as _, CreateConnectedAccountLinkOptionsSchema as _n, ToolRouterToolsFn as _t, CreateCustomToolkitParams as a, ConnectedAccountRefreshOptions as an, ToolRouterSessionSearchResponseSchema as at, RegisteredCustomTool as b, CreateConnectedAccountOptions as bn, ToolRouterUpdateSessionConfig as bt, CustomToolExecuteFn as c, ConnectedAccountRetrieveResponseSchema as cn, ToolRouterSessionWorkbenchConfig as ct, CustomToolWireDefinition as d, ConnectedAccountStatusSchema as dn, ToolRouterToolkitsDisabledConfigSchema as dt, ConnectedAccountListParams as en, ToolRouterSessionPreloadConfig as et, CustomToolkit as f, ConnectedAccountStatuses as fn, ToolRouterToolkitsEnabledConfigSchema as ft, CustomToolsMap as g, CreateConnectedAccountLinkOptions as gn, ToolRouterToolkitsParamSchema as gt, CustomToolkitWireDefinition as h, ConnectedAccountTypes as hn, ToolRouterToolkitsOptionsSchema as ht, CreateCustomToolkitBaseSchema as i, ConnectedAccountListResponseSchema as in, ToolRouterSessionSearchResponse as it, SessionProxyExecuteParamsSchema as j, RemoteFileData as jt, SessionPreset as k, UpdateConnectedAccountParams as kn, FileListResponse as kt, CustomToolResponse as l, ConnectedAccountStatus as ln, ToolRouterTagsEnableDisableSchema as lt, CustomToolkitResponse as m, ConnectedAccountTypeSchema as mn, ToolRouterToolkitsOptions as mt, CreateCustomToolBaseSchema as n, ConnectedAccountListResponse as nn, ToolRouterSessionProxyExecuteResponse as nt, CustomTool as o, ConnectedAccountRefreshOptionsSchema as on, ToolRouterSessionUpdateFn as ot, CustomToolkitDefinition as p, ConnectedAccountType as pn, ToolRouterToolkitsFn as pt, ToolRouterSessionDeleteResponse as q, ConnectedAccountAclConfigSchema as qt, CreateCustomToolParams as r, ConnectedAccountListResponseItem as rn, ToolRouterSessionSearchFn as rt, CustomToolDefinition as s, ConnectedAccountRetrieveResponse as sn, ToolRouterSessionWarning as st, AnyZodSchema as t, ConnectedAccountListParamsSchema as tn, ToolRouterSessionProxyExecuteFn as tt, CustomToolSlugSchema as u, ConnectedAccountStatusEnum as un, ToolRouterTagsParamSchema as ut, InferZodSchema as v, CreateConnectedAccountLinkResponse as vn, ToolRouterToolsParam as vt, MCPServerTypeSchema as w, CreateConnectedAccountResponse as wn, ToolkitConnectionsDetails as wt, RegisteredCustomToolkit as x, CreateConnectedAccountOptionsSchema as xn, ToolRouterUpdateSessionConfigSchema as xt, InlineCustomToolsWirePayload as y, CreateConnectedAccountLinkResponseSchema as yn, ToolRouterToolsParamSchema as yt, ToolRouterCreateSessionConfig as z, ToolRouterSessionFilesMountUploadOptions as zt };