@composio/core 0.28.0 → 0.30.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 (85) hide show
  1. package/README.md +25 -0
  2. package/dist/{CustomTool-BYHB7sPs.mjs → CustomTool-9Vlb4XaS.mjs} +12 -14
  3. package/dist/{CustomTool-DyypijT6.d.mts → CustomTool-Dzk3iqfP.d.mts} +10 -11
  4. package/dist/FileModifierErrors-WrqokuIF.mjs +199 -0
  5. package/dist/{FileToolModifier.utils.neutral-DWFpnsj2.mjs → FileToolModifier.utils.neutral-BQP85ZJj.mjs} +1 -2
  6. package/dist/{SsrfErrors-DiQldIdC.mjs → SsrfErrors-BSVMW915.mjs} +49 -26
  7. package/dist/{Telemetry-D2PJwXKx.mjs → Telemetry-a7SOQXcg.mjs} +6 -10
  8. package/dist/{composio-CwHMpKXb.d.mts → composio-DaokW5sV.d.mts} +220 -254
  9. package/dist/{customTool.types-DoItUHkO.d.mts → customTool.types-CpJbzxT6.d.mts} +255 -274
  10. package/dist/docs/error-consistency.md +3 -3
  11. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +2 -1
  12. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +2 -2
  13. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +88 -10
  14. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +1 -1
  15. package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -1
  16. package/dist/docs/reference/sdk-reference/typescript/remote-file.mdx +1 -1
  17. package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +1 -1
  18. package/dist/docs/reference/sdk-reference/typescript/session.mdx +48 -10
  19. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +6 -6
  20. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +4 -4
  21. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +5 -1
  22. package/dist/{errors-Cly0vXFh.mjs → errors-xC13uvaA.mjs} +116 -135
  23. package/dist/experimental/index.d.mts +17 -3
  24. package/dist/experimental/index.mjs +1 -1
  25. package/dist/{fileUtils.node-ILI1IjnZ.mjs → fileUtils.node-CAwIbWYH.mjs} +6 -8
  26. package/dist/{files.types-DeMC_mAW.d.mts → files.types-Dg6HcEzs.d.mts} +0 -2
  27. package/dist/index.d.mts +73 -78
  28. package/dist/index.mjs +393 -290
  29. package/dist/{cancellation-ZoRh6EJQ.mjs → jsonSchema-Cc4EtHRw.mjs} +5 -22
  30. package/dist/models/Files.node.d.mts +32 -13
  31. package/dist/models/Files.node.mjs +36 -19
  32. package/dist/models/Files.workerd.d.mts +8 -3
  33. package/dist/models/Files.workerd.mjs +1 -2
  34. package/dist/platform/node.d.mts +2 -4
  35. package/dist/platform/node.mjs +15 -16
  36. package/dist/platform/workerd.d.mts +2 -4
  37. package/dist/platform/workerd.mjs +1 -2
  38. package/dist/requestOptions.types-DWrTcbss.d.mts +38 -0
  39. package/dist/rolldown-runtime-ad2WFvuA.mjs +17 -0
  40. package/dist/{sensitiveFileUploadPaths-BaEORC7-.mjs → sensitiveFileUploadPaths-CSyJ3Ku8.mjs} +22 -12
  41. package/dist/{ssrfGuard.node-BZ270bcu.mjs → ssrfGuard.node-CdIkwqVu.mjs} +3 -5
  42. package/dist/{types-DWZWePfZ.d.mts → types-DQdUb7OG.d.mts} +2 -4
  43. package/dist/{types-DuVZKrXO.d.mts → types-Ds6XbK1m.d.mts} +0 -2
  44. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +2 -4
  45. package/dist/utils/config-defaults/ConfigDefaults.node.mjs +1 -2
  46. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +2 -4
  47. package/dist/utils/config-defaults/ConfigDefaults.workerd.mjs +1 -2
  48. package/dist/utils/modifiers/FileToolModifier.node.d.mts +2 -4
  49. package/dist/utils/modifiers/FileToolModifier.node.mjs +7 -8
  50. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +2 -4
  51. package/dist/utils/modifiers/FileToolModifier.workerd.mjs +2 -3
  52. package/dist/utils/ssrfGuard.node.d.mts +1 -3
  53. package/dist/utils/ssrfGuard.node.mjs +1 -1
  54. package/dist/utils/ssrfGuard.workerd.d.mts +1 -3
  55. package/dist/utils/ssrfGuard.workerd.mjs +2 -3
  56. package/docs/error-consistency.md +3 -3
  57. package/package.json +12 -13
  58. package/src/composio.ts +12 -0
  59. package/src/errors/ComposioError.ts +40 -16
  60. package/src/errors/ConnectedAccountsErrors.ts +2 -2
  61. package/src/errors/ToolErrors.ts +177 -28
  62. package/src/errors/apiErrorDetails.ts +40 -0
  63. package/src/experimental/index.ts +6 -1
  64. package/src/lib/toolRouterParams.ts +40 -0
  65. package/src/models/ConnectedAccounts.ts +2 -2
  66. package/src/models/ConnectionRequest.ts +44 -32
  67. package/src/models/CustomTool.ts +25 -30
  68. package/src/models/CustomToolkits.ts +16 -22
  69. package/src/models/Experimental.ts +2 -7
  70. package/src/models/Files.node.ts +68 -37
  71. package/src/models/RemoteFile.ts +22 -16
  72. package/src/models/SessionContext.ts +6 -7
  73. package/src/models/ToolRouter.ts +24 -14
  74. package/src/models/ToolRouterSession.ts +38 -31
  75. package/src/models/Tools.ts +274 -30
  76. package/src/models/Triggers.ts +8 -2
  77. package/src/types/customTool.types.ts +49 -28
  78. package/src/types/customToolkits.types.ts +7 -12
  79. package/src/types/toolRouter.types.ts +39 -17
  80. package/src/utils/cancellation.ts +5 -1
  81. package/src/utils/rateLimit.ts +25 -0
  82. package/src/utils/transformers/customToolkits.ts +2 -2
  83. package/dist/FileModifierErrors-CdGSABoq.mjs +0 -97
  84. package/dist/rolldown-runtime-w6R9maHv.mjs +0 -18
  85. package/src/models/inlineCustomToolsPayload.ts +0 -17
@@ -1,10 +1,10 @@
1
+ import { t as ComposioRequestOptions } from "./requestOptions.types-DWrTcbss.mjs";
1
2
  import { Composio } from "@composio/client";
2
3
  import z, { z as z$1 } from "zod/v3";
3
4
  import { z as z$2 } from "zod/v4";
4
- import { CustomCreateResponse, GenerateURLResponse, McpCreateResponse } from "@composio/client/resources/mcp";
5
+ import { CustomCreateResponse as CustomCreateResponse$1, GenerateURLResponse as GenerateURLResponse$1, McpCreateResponse } from "@composio/client/resources/mcp";
5
6
  import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
6
7
  import { SessionConfigHistoryResponse, SessionCreateParams, SessionCreateResponse, SessionExecuteMetaParams, SessionExecuteParams } from "@composio/client/resources/tool-router/session";
7
- //#region src/types/tool.types.d.ts
8
8
  /**
9
9
  * Toolkit is the collection of tools,
10
10
  * A toolkit can be thought of as an app which provides a set of tools/actions/triggers.
@@ -6584,8 +6584,6 @@ type ToolRetrievalOptions = {
6584
6584
  */
6585
6585
  version?: ToolkitVersion;
6586
6586
  };
6587
- //#endregion
6588
- //#region src/types/modifiers.types.d.ts
6589
6587
  /**
6590
6588
  * Modifier for altering the tool execute parameters before execution.
6591
6589
  *
@@ -7227,8 +7225,6 @@ type SessionMetaToolOptions = ToolOptions & SessionExecuteMetaModifiers;
7227
7225
  * ```
7228
7226
  */
7229
7227
  type ProviderOptions<TProvider> = TProvider extends BaseComposioProvider<infer TToolCollection, infer TTool, infer TMcpResponse> ? TProvider extends BaseAgenticProvider<TToolCollection, TTool, TMcpResponse> ? AgenticToolOptions : ToolOptions : never;
7230
- //#endregion
7231
- //#region src/types/connectedAccountAuthStates.types.d.ts
7232
7228
  declare const ConnectionStatuses: {
7233
7229
  readonly INITIALIZING: "INITIALIZING";
7234
7230
  readonly INITIATED: "INITIATED";
@@ -28569,8 +28565,6 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
28569
28565
  };
28570
28566
  }>]>;
28571
28567
  type CustomConnectionData = z$1.infer<typeof CustomConnectionDataSchema>;
28572
- //#endregion
28573
- //#region src/types/provider.types.d.ts
28574
28568
  /**
28575
28569
  * Base provider implementation, which needs to be implemented by the extended class.
28576
28570
  * This class is used to create a base provider by implementing this class.
@@ -28600,8 +28594,6 @@ type ToolCallExecutionTarget = string | ToolCallSession;
28600
28594
  */
28601
28595
  type ExecuteToolFn = (toolSlug: string, input: Record<string, unknown>) => Promise<ToolExecuteResponse>;
28602
28596
  type GlobalExecuteToolFn = (slug: string, body: ToolExecuteParams, modifiers?: ExecuteToolModifiers) => Promise<ToolExecuteResponse>;
28603
- //#endregion
28604
- //#region src/types/mcp.types.d.ts
28605
28597
  /**
28606
28598
  * @deprecated
28607
28599
  */
@@ -28682,13 +28674,13 @@ declare const MCPGenerateURLParamsSchema: z$1.ZodObject<{
28682
28674
  connectedAccountIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
28683
28675
  isChatAuth: z$1.ZodOptional<z$1.ZodBoolean>;
28684
28676
  }, "strip", z$1.ZodTypeAny, {
28685
- isChatAuth?: boolean | undefined;
28686
28677
  connectedAccountIds?: string[] | undefined;
28687
28678
  userIds?: string[] | undefined;
28688
- }, {
28689
28679
  isChatAuth?: boolean | undefined;
28680
+ }, {
28690
28681
  connectedAccountIds?: string[] | undefined;
28691
28682
  userIds?: string[] | undefined;
28683
+ isChatAuth?: boolean | undefined;
28692
28684
  }>;
28693
28685
  type MCPGenerateURLParams = z$1.infer<typeof MCPGenerateURLParamsSchema>;
28694
28686
  declare const ComposioGenerateURLParamsSchema: z$1.ZodObject<{
@@ -29049,7 +29041,7 @@ type MCPServerCreateResponse = z$1.infer<typeof MCPServerCreateResponseSchema>;
29049
29041
  * MCP Create Method Response Type
29050
29042
  * Extends the API response with a getServer method for retrieving server instances
29051
29043
  */
29052
- type MCPCreateMethodResponse<T = GenerateURLResponse> = (McpCreateResponse | CustomCreateResponse) & {
29044
+ type MCPCreateMethodResponse<T = GenerateURLResponse$1> = (McpCreateResponse | CustomCreateResponse$1) & {
29053
29045
  toolkits: string[];
29054
29046
  getServer: (params: MCPGetServerParams) => Promise<T>;
29055
29047
  };
@@ -29071,7 +29063,7 @@ type McpUrlResponse = {
29071
29063
  name: string;
29072
29064
  url: string;
29073
29065
  }[];
29074
- type McpServerCreateResponse<T> = (McpCreateResponse | CustomCreateResponse) & {
29066
+ type McpServerCreateResponse<T> = (McpCreateResponse | CustomCreateResponse$1) & {
29075
29067
  toolkits: string[];
29076
29068
  getServer: (params: MCPGetServerParams) => Promise<T>;
29077
29069
  };
@@ -29117,7 +29109,7 @@ declare const CustomCreateResponseSchema: z$1.ZodObject<{
29117
29109
  createdAt?: string | null | undefined;
29118
29110
  updatedAt?: string | null | undefined;
29119
29111
  }>;
29120
- type CustomCreateResponse$1 = z$1.infer<typeof CustomCreateResponseSchema>;
29112
+ type CustomCreateResponse = z$1.infer<typeof CustomCreateResponseSchema>;
29121
29113
  declare const ComposioCustomCreateResponseSchema: z$1.ZodObject<{
29122
29114
  id: z$1.ZodString;
29123
29115
  name: z$1.ZodString;
@@ -29228,21 +29220,21 @@ declare const McpRetrieveResponseSchema: z$1.ZodObject<{
29228
29220
  cursor: z$1.ZodString;
29229
29221
  windsurf: z$1.ZodString;
29230
29222
  }, "strip", z$1.ZodTypeAny, {
29231
- claude: string;
29232
29223
  cursor: string;
29224
+ claude: string;
29233
29225
  windsurf: string;
29234
29226
  }, {
29235
- claude: string;
29236
29227
  cursor: string;
29228
+ claude: string;
29237
29229
  windsurf: string;
29238
29230
  }>;
29239
29231
  }, "strip", z$1.ZodTypeAny, {
29240
29232
  name: string;
29241
- mcpUrl: string;
29242
29233
  id: string;
29234
+ mcpUrl: string;
29243
29235
  commands: {
29244
- claude: string;
29245
29236
  cursor: string;
29237
+ claude: string;
29246
29238
  windsurf: string;
29247
29239
  };
29248
29240
  status?: string | undefined;
@@ -29254,11 +29246,11 @@ declare const McpRetrieveResponseSchema: z$1.ZodObject<{
29254
29246
  managedAuthViaComposio?: boolean | undefined;
29255
29247
  }, {
29256
29248
  name: string;
29257
- mcpUrl: string;
29258
29249
  id: string;
29250
+ mcpUrl: string;
29259
29251
  commands: {
29260
- claude: string;
29261
29252
  cursor: string;
29253
+ claude: string;
29262
29254
  windsurf: string;
29263
29255
  };
29264
29256
  status?: string | undefined;
@@ -29377,9 +29369,7 @@ type McpListResponse = z$1.infer<typeof McpListResponseSchema>;
29377
29369
  type McpRetrieveResponse = z$1.infer<typeof McpRetrieveResponseSchema>;
29378
29370
  type McpDeleteResponse = z$1.infer<typeof McpDeleteResponseSchema>;
29379
29371
  type McpUpdateResponse = z$1.infer<typeof McpUpdateResponseSchema>;
29380
- type GenerateURLResponse$1 = z$1.infer<typeof GenerateURLResponseSchema>;
29381
- //#endregion
29382
- //#region src/provider/BaseProvider.d.ts
29372
+ type GenerateURLResponse = z$1.infer<typeof GenerateURLResponseSchema>;
29383
29373
  /**
29384
29374
  * @internal
29385
29375
  * Base class for all providers.
@@ -29489,8 +29479,6 @@ declare abstract class BaseAgenticProvider<TToolCollection, TTool, TMcpResponse>
29489
29479
  * This type is used to infer the type of the provider from the provider implementation.
29490
29480
  */
29491
29481
  type BaseComposioProvider<TToolCollection, TTool, TMcpResponse = McpServerGetResponse> = BaseNonAgenticProvider<TToolCollection, TTool, TMcpResponse> | BaseAgenticProvider<TToolCollection, TTool, TMcpResponse>;
29492
- //#endregion
29493
- //#region src/types/connectedAccounts.types.d.ts
29494
29482
  /**
29495
29483
  * Connected Account create parameters
29496
29484
  */
@@ -29767,21 +29755,21 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
29767
29755
  }, "strip", z$1.ZodTypeAny, {
29768
29756
  limit?: number | null | undefined;
29769
29757
  authConfigIds?: string[] | null | undefined;
29770
- userIds?: string[] | null | undefined;
29771
29758
  cursor?: string | null | undefined;
29772
29759
  accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
29773
29760
  orderBy?: "created_at" | "updated_at" | undefined;
29774
29761
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
29775
29762
  toolkitSlugs?: string[] | null | undefined;
29763
+ userIds?: string[] | null | undefined;
29776
29764
  }, {
29777
29765
  limit?: number | null | undefined;
29778
29766
  authConfigIds?: string[] | null | undefined;
29779
- userIds?: string[] | null | undefined;
29780
29767
  cursor?: string | null | undefined;
29781
29768
  accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
29782
29769
  orderBy?: "created_at" | "updated_at" | undefined;
29783
29770
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
29784
29771
  toolkitSlugs?: string[] | null | undefined;
29772
+ userIds?: string[] | null | undefined;
29785
29773
  }>;
29786
29774
  type ConnectedAccountListParams = z$1.infer<typeof ConnectedAccountListParamsSchema>;
29787
29775
  declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
@@ -29947,6 +29935,8 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
29947
29935
  }>>;
29948
29936
  }, "strip", z$1.ZodTypeAny, {
29949
29937
  callbackUrl?: string | undefined;
29938
+ alias?: string | undefined;
29939
+ allowMultiple?: boolean | undefined;
29950
29940
  experimental?: {
29951
29941
  accountType?: "PRIVATE" | "SHARED" | undefined;
29952
29942
  aclConfigForShared?: {
@@ -29955,10 +29945,10 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
29955
29945
  notAllowedUserIds?: string[] | undefined;
29956
29946
  } | undefined;
29957
29947
  } | undefined;
29958
- alias?: string | undefined;
29959
- allowMultiple?: boolean | undefined;
29960
29948
  }, {
29961
29949
  callbackUrl?: string | undefined;
29950
+ alias?: string | undefined;
29951
+ allowMultiple?: boolean | undefined;
29962
29952
  experimental?: {
29963
29953
  accountType?: "PRIVATE" | "SHARED" | undefined;
29964
29954
  aclConfigForShared?: {
@@ -29967,8 +29957,6 @@ declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
29967
29957
  notAllowedUserIds?: string[] | undefined;
29968
29958
  } | undefined;
29969
29959
  } | undefined;
29970
- alias?: string | undefined;
29971
- allowMultiple?: boolean | undefined;
29972
29960
  }>;
29973
29961
  type CreateConnectedAccountLinkOptions = z$1.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
29974
29962
  declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
@@ -30103,8 +30091,6 @@ declare const ConnectedAccountCompleteAuthResponseSchema: z$1.ZodObject<{
30103
30091
  toolkitSlug: string;
30104
30092
  }>;
30105
30093
  type ConnectedAccountCompleteAuthResponse = z$1.infer<typeof ConnectedAccountCompleteAuthResponseSchema>;
30106
- //#endregion
30107
- //#region src/types/connectionRequest.types.d.ts
30108
30094
  interface ConnectionRequestState {
30109
30095
  id: string;
30110
30096
  status?: ConnectedAccountStatus;
@@ -30115,47 +30101,6 @@ interface ConnectionRequest extends ConnectionRequestState {
30115
30101
  toJSON: () => ConnectionRequestState;
30116
30102
  toString: () => string;
30117
30103
  }
30118
- //#endregion
30119
- //#region src/types/requestOptions.types.d.ts
30120
- /**
30121
- * Per-request transport options for cancelling an SDK call.
30122
- *
30123
- * For `tools.get` and `tools.execute`, pass `signal` directly in the
30124
- * options bag (3rd argument) alongside any modifiers or provider options.
30125
- * For other methods (e.g. `toolkits.get`, `authConfigs.list`), pass as a
30126
- * trailing argument. Forwarded to the underlying `@composio/client` request.
30127
- *
30128
- * If the underlying request is aborted via this signal, the SDK throws a
30129
- * {@link ComposioRequestCancelledError} so callers can `instanceof`-detect
30130
- * cancellation without unwrapping nested causes.
30131
- *
30132
- * @example Timeout after 5 seconds
30133
- * ```typescript
30134
- * await composio.tools.execute(
30135
- * 'HACKERNEWS_GET_FRONTPAGE',
30136
- * { userId: 'default', arguments: {} },
30137
- * { signal: AbortSignal.timeout(5_000) }
30138
- * );
30139
- * ```
30140
- *
30141
- * @example Combine signal with modifiers
30142
- * ```typescript
30143
- * await composio.tools.execute('TOOL', body, {
30144
- * signal: AbortSignal.timeout(10_000),
30145
- * beforeExecute: ({ params }) => params,
30146
- * });
30147
- * ```
30148
- */
30149
- type ComposioRequestOptions = {
30150
- /**
30151
- * An `AbortSignal` used to cancel the in-flight HTTP request. When the
30152
- * signal aborts, the underlying fetch is aborted and the SDK throws a
30153
- * {@link ComposioRequestCancelledError} (subclass of {@link ComposioError}).
30154
- */
30155
- signal?: AbortSignal;
30156
- };
30157
- //#endregion
30158
- //#region src/types/ToolRouterSessionFilesMount.types.d.ts
30159
30104
  declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
30160
30105
  path: z.ZodOptional<z.ZodString>;
30161
30106
  mountId: z.ZodDefault<z.ZodString>;
@@ -30304,8 +30249,6 @@ declare const FileDeleteResponseSchema: z.ZodEffects<z.ZodObject<{
30304
30249
  sandbox_mount_prefix: string;
30305
30250
  }>;
30306
30251
  type FileDeleteResponse = z.infer<typeof FileDeleteResponseSchema>;
30307
- //#endregion
30308
- //#region src/models/RemoteFile.d.ts
30309
30252
  /**
30310
30253
  * Represents a file stored in a tool router session's file mount.
30311
30254
  * Provides methods to fetch, save, and work with the file content.
@@ -30386,7 +30329,8 @@ declare class RemoteFile {
30386
30329
  * Downloads and saves the file to the local filesystem.
30387
30330
  * Requires a Node.js runtime with file system support (not available in Cloudflare Workers/Edge).
30388
30331
  *
30389
- * @param path - Local path to save the file. If omitted, saves to the Composio temp directory using the filename from the mount path.
30332
+ * @param path - Local path to save the file. An explicit path does not require a home directory.
30333
+ * If omitted, saves to the Composio temp directory using the filename from the mount path.
30390
30334
  * An existing default destination gets a copy number before its extension.
30391
30335
  * @returns The absolute path where the file was saved
30392
30336
  * @throws Error if file system is not supported or the save fails
@@ -30394,8 +30338,6 @@ declare class RemoteFile {
30394
30338
  */
30395
30339
  save(path?: string): Promise<string>;
30396
30340
  }
30397
- //#endregion
30398
- //#region src/models/ToolRouterSessionFileMount.d.ts
30399
30341
  /**
30400
30342
  * File mount for a Composio session, reached via `session.experimental.files`
30401
30343
  * on a session created with `composio.sessions.create(...)`. Upload, list,
@@ -30523,8 +30465,6 @@ declare class ToolRouterSessionFilesMount {
30523
30465
  */
30524
30466
  delete(remotePath: string, options?: ToolRouterSessionFilesMountDeleteOptions): Promise<FileDeleteResponse>;
30525
30467
  }
30526
- //#endregion
30527
- //#region src/types/toolRouter.types.d.ts
30528
30468
  declare const SessionPreset: {
30529
30469
  readonly DIRECT_TOOLS: "direct_tools";
30530
30470
  };
@@ -30678,12 +30618,12 @@ declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
30678
30618
  */
30679
30619
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30680
30620
  }, "strict", z.ZodTypeAny, {
30681
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30682
30621
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30622
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30683
30623
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30684
30624
  }, {
30685
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30686
30625
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30626
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30687
30627
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30688
30628
  }>;
30689
30629
  declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
@@ -30695,12 +30635,12 @@ declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["rea
30695
30635
  */
30696
30636
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30697
30637
  }, "strict", z.ZodTypeAny, {
30698
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30699
30638
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30639
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30700
30640
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30701
30641
  }, {
30702
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30703
30642
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30643
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30704
30644
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30705
30645
  }>]>;
30706
30646
  type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
@@ -30756,26 +30696,26 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
30756
30696
  */
30757
30697
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30758
30698
  }, "strict", z.ZodTypeAny, {
30759
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30760
30699
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30700
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30761
30701
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30762
30702
  }, {
30763
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30764
30703
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30704
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30765
30705
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30766
30706
  }>]>;
30767
30707
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30768
30708
  }, "strict", z.ZodTypeAny, {
30769
30709
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30770
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30771
30710
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30711
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30772
30712
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30773
30713
  };
30774
30714
  requireApproval?: string[] | undefined;
30775
30715
  }, {
30776
30716
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30777
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30778
30717
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30718
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30779
30719
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30780
30720
  };
30781
30721
  requireApproval?: string[] | undefined;
@@ -30793,8 +30733,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
30793
30733
  requireApproval?: string[] | undefined;
30794
30734
  } | {
30795
30735
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30796
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30797
30736
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30737
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30798
30738
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30799
30739
  };
30800
30740
  requireApproval?: string[] | undefined;
@@ -30808,8 +30748,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
30808
30748
  requireApproval?: string[] | undefined;
30809
30749
  } | {
30810
30750
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30811
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30812
30751
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30752
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30813
30753
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30814
30754
  };
30815
30755
  requireApproval?: string[] | undefined;
@@ -31028,26 +30968,26 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31028
30968
  */
31029
30969
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
31030
30970
  }, "strict", z.ZodTypeAny, {
31031
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31032
30971
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30972
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31033
30973
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31034
30974
  }, {
31035
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31036
30975
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30976
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31037
30977
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31038
30978
  }>]>;
31039
30979
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31040
30980
  }, "strict", z.ZodTypeAny, {
31041
30981
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31042
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31043
30982
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30983
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31044
30984
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31045
30985
  };
31046
30986
  requireApproval?: string[] | undefined;
31047
30987
  }, {
31048
30988
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31049
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31050
30989
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30990
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31051
30991
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31052
30992
  };
31053
30993
  requireApproval?: string[] | undefined;
@@ -31065,8 +31005,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31065
31005
  requireApproval?: string[] | undefined;
31066
31006
  } | {
31067
31007
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31068
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31069
31008
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31009
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31070
31010
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31071
31011
  };
31072
31012
  requireApproval?: string[] | undefined;
@@ -31080,8 +31020,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31080
31020
  requireApproval?: string[] | undefined;
31081
31021
  } | {
31082
31022
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31083
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31084
31023
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31024
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31085
31025
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31086
31026
  };
31087
31027
  requireApproval?: string[] | undefined;
@@ -31097,12 +31037,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31097
31037
  */
31098
31038
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
31099
31039
  }, "strict", z.ZodTypeAny, {
31100
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31101
31040
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31041
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31102
31042
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31103
31043
  }, {
31104
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31105
31044
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31045
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31106
31046
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31107
31047
  }>]>>>;
31108
31048
  toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
@@ -31392,8 +31332,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31392
31332
  }, {
31393
31333
  userTimezone?: string | undefined;
31394
31334
  }>>;
31395
- customTools: z.ZodOptional<z.ZodArray<z.ZodType<CustomTool, z.ZodTypeDef, CustomTool>, "many">>;
31396
- customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<CustomToolkit, z.ZodTypeDef, CustomToolkit>, "many">>;
31335
+ localTools: z.ZodOptional<z.ZodArray<z.ZodType<LocalTool, z.ZodTypeDef, LocalTool>, "many">>;
31336
+ localToolkits: z.ZodOptional<z.ZodArray<z.ZodType<LocalToolkit, z.ZodTypeDef, LocalToolkit>, "many">>;
31337
+ /** @deprecated Use `localTools` instead. */
31338
+ customTools: z.ZodOptional<z.ZodArray<z.ZodType<LocalTool, z.ZodTypeDef, LocalTool>, "many">>;
31339
+ /** @deprecated Use `localToolkits` instead. */
31340
+ customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<LocalToolkit, z.ZodTypeDef, LocalToolkit>, "many">>;
31397
31341
  sessionConfigId: z.ZodOptional<z.ZodString>;
31398
31342
  /**
31399
31343
  * What happens to a call that needs the user's approval when the
@@ -31406,23 +31350,27 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31406
31350
  assistivePrompt?: {
31407
31351
  userTimezone?: string | undefined;
31408
31352
  } | undefined;
31409
- customTools?: CustomTool[] | undefined;
31410
- customToolkits?: CustomToolkit[] | undefined;
31353
+ localTools?: LocalTool[] | undefined;
31354
+ localToolkits?: LocalToolkit[] | undefined;
31355
+ customTools?: LocalTool[] | undefined;
31356
+ customToolkits?: LocalToolkit[] | undefined;
31411
31357
  sessionConfigId?: string | undefined;
31412
31358
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31413
31359
  }, {
31414
31360
  assistivePrompt?: {
31415
31361
  userTimezone?: string | undefined;
31416
31362
  } | undefined;
31417
- customTools?: CustomTool[] | undefined;
31418
- customToolkits?: CustomToolkit[] | undefined;
31363
+ localTools?: LocalTool[] | undefined;
31364
+ localToolkits?: LocalToolkit[] | undefined;
31365
+ customTools?: LocalTool[] | undefined;
31366
+ customToolkits?: LocalToolkit[] | undefined;
31419
31367
  sessionConfigId?: string | undefined;
31420
31368
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31421
31369
  }>>>;
31422
31370
  }, "strip", z.ZodTypeAny, {
31423
31371
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31424
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31425
31372
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31373
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31426
31374
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31427
31375
  } | undefined;
31428
31376
  tools?: Record<string, string[] | {
@@ -31433,8 +31381,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31433
31381
  requireApproval?: string[] | undefined;
31434
31382
  } | {
31435
31383
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31436
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31437
31384
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31385
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31438
31386
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31439
31387
  };
31440
31388
  requireApproval?: string[] | undefined;
@@ -31453,6 +31401,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31453
31401
  preload?: {
31454
31402
  tools?: string[] | "all" | undefined;
31455
31403
  } | undefined;
31404
+ experimental?: {
31405
+ assistivePrompt?: {
31406
+ userTimezone?: string | undefined;
31407
+ } | undefined;
31408
+ localTools?: LocalTool[] | undefined;
31409
+ localToolkits?: LocalToolkit[] | undefined;
31410
+ customTools?: LocalTool[] | undefined;
31411
+ customToolkits?: LocalToolkit[] | undefined;
31412
+ sessionConfigId?: string | undefined;
31413
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31414
+ } | undefined;
31456
31415
  sessionPreset?: "direct_tools" | undefined;
31457
31416
  mcp?: boolean | undefined;
31458
31417
  instant?: false | {
@@ -31524,19 +31483,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31524
31483
  };
31525
31484
  name?: string | undefined;
31526
31485
  })[] | undefined;
31527
- experimental?: {
31528
- assistivePrompt?: {
31529
- userTimezone?: string | undefined;
31530
- } | undefined;
31531
- customTools?: CustomTool[] | undefined;
31532
- customToolkits?: CustomToolkit[] | undefined;
31533
- sessionConfigId?: string | undefined;
31534
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
31535
- } | undefined;
31536
31486
  }, {
31537
31487
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31538
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31539
31488
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31489
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31540
31490
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31541
31491
  } | undefined;
31542
31492
  tools?: Record<string, string[] | {
@@ -31547,8 +31497,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31547
31497
  requireApproval?: string[] | undefined;
31548
31498
  } | {
31549
31499
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31550
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31551
31500
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31501
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31552
31502
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31553
31503
  };
31554
31504
  requireApproval?: string[] | undefined;
@@ -31567,6 +31517,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31567
31517
  preload?: {
31568
31518
  tools?: string[] | "all" | undefined;
31569
31519
  } | undefined;
31520
+ experimental?: {
31521
+ assistivePrompt?: {
31522
+ userTimezone?: string | undefined;
31523
+ } | undefined;
31524
+ localTools?: LocalTool[] | undefined;
31525
+ localToolkits?: LocalToolkit[] | undefined;
31526
+ customTools?: LocalTool[] | undefined;
31527
+ customToolkits?: LocalToolkit[] | undefined;
31528
+ sessionConfigId?: string | undefined;
31529
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31530
+ } | undefined;
31570
31531
  sessionPreset?: "direct_tools" | undefined;
31571
31532
  mcp?: boolean | undefined;
31572
31533
  instant?: false | {
@@ -31638,19 +31599,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31638
31599
  };
31639
31600
  name?: string | undefined;
31640
31601
  })[] | undefined;
31641
- experimental?: {
31642
- assistivePrompt?: {
31643
- userTimezone?: string | undefined;
31644
- } | undefined;
31645
- customTools?: CustomTool[] | undefined;
31646
- customToolkits?: CustomToolkit[] | undefined;
31647
- sessionConfigId?: string | undefined;
31648
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
31649
- } | undefined;
31650
31602
  }>, {
31651
31603
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31652
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31653
31604
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31605
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31654
31606
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31655
31607
  } | undefined;
31656
31608
  tools?: Record<string, string[] | {
@@ -31661,8 +31613,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31661
31613
  requireApproval?: string[] | undefined;
31662
31614
  } | {
31663
31615
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31664
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31665
31616
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31617
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31666
31618
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31667
31619
  };
31668
31620
  requireApproval?: string[] | undefined;
@@ -31681,6 +31633,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31681
31633
  preload?: {
31682
31634
  tools?: string[] | "all" | undefined;
31683
31635
  } | undefined;
31636
+ experimental?: {
31637
+ assistivePrompt?: {
31638
+ userTimezone?: string | undefined;
31639
+ } | undefined;
31640
+ localTools?: LocalTool[] | undefined;
31641
+ localToolkits?: LocalToolkit[] | undefined;
31642
+ customTools?: LocalTool[] | undefined;
31643
+ customToolkits?: LocalToolkit[] | undefined;
31644
+ sessionConfigId?: string | undefined;
31645
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31646
+ } | undefined;
31684
31647
  sessionPreset?: "direct_tools" | undefined;
31685
31648
  mcp?: boolean | undefined;
31686
31649
  instant?: false | {
@@ -31752,19 +31715,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31752
31715
  };
31753
31716
  name?: string | undefined;
31754
31717
  })[] | undefined;
31755
- experimental?: {
31756
- assistivePrompt?: {
31757
- userTimezone?: string | undefined;
31758
- } | undefined;
31759
- customTools?: CustomTool[] | undefined;
31760
- customToolkits?: CustomToolkit[] | undefined;
31761
- sessionConfigId?: string | undefined;
31762
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
31763
- } | undefined;
31764
31718
  }, {
31765
31719
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31766
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31767
31720
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31721
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31768
31722
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31769
31723
  } | undefined;
31770
31724
  tools?: Record<string, string[] | {
@@ -31775,8 +31729,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31775
31729
  requireApproval?: string[] | undefined;
31776
31730
  } | {
31777
31731
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31778
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31779
31732
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31733
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31780
31734
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31781
31735
  };
31782
31736
  requireApproval?: string[] | undefined;
@@ -31795,6 +31749,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31795
31749
  preload?: {
31796
31750
  tools?: string[] | "all" | undefined;
31797
31751
  } | undefined;
31752
+ experimental?: {
31753
+ assistivePrompt?: {
31754
+ userTimezone?: string | undefined;
31755
+ } | undefined;
31756
+ localTools?: LocalTool[] | undefined;
31757
+ localToolkits?: LocalToolkit[] | undefined;
31758
+ customTools?: LocalTool[] | undefined;
31759
+ customToolkits?: LocalToolkit[] | undefined;
31760
+ sessionConfigId?: string | undefined;
31761
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31762
+ } | undefined;
31798
31763
  sessionPreset?: "direct_tools" | undefined;
31799
31764
  mcp?: boolean | undefined;
31800
31765
  instant?: false | {
@@ -31866,19 +31831,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31866
31831
  };
31867
31832
  name?: string | undefined;
31868
31833
  })[] | undefined;
31869
- experimental?: {
31870
- assistivePrompt?: {
31871
- userTimezone?: string | undefined;
31872
- } | undefined;
31873
- customTools?: CustomTool[] | undefined;
31874
- customToolkits?: CustomToolkit[] | undefined;
31875
- sessionConfigId?: string | undefined;
31876
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
31877
- } | undefined;
31878
31834
  }>, {
31879
31835
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31880
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31881
31836
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31837
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31882
31838
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31883
31839
  } | undefined;
31884
31840
  tools?: Record<string, string[] | {
@@ -31889,8 +31845,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31889
31845
  requireApproval?: string[] | undefined;
31890
31846
  } | {
31891
31847
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31892
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31893
31848
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31849
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31894
31850
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31895
31851
  };
31896
31852
  requireApproval?: string[] | undefined;
@@ -31909,6 +31865,17 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31909
31865
  preload?: {
31910
31866
  tools?: string[] | "all" | undefined;
31911
31867
  } | undefined;
31868
+ experimental?: {
31869
+ assistivePrompt?: {
31870
+ userTimezone?: string | undefined;
31871
+ } | undefined;
31872
+ localTools?: LocalTool[] | undefined;
31873
+ localToolkits?: LocalToolkit[] | undefined;
31874
+ customTools?: LocalTool[] | undefined;
31875
+ customToolkits?: LocalToolkit[] | undefined;
31876
+ sessionConfigId?: string | undefined;
31877
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31878
+ } | undefined;
31912
31879
  sessionPreset?: "direct_tools" | undefined;
31913
31880
  mcp?: boolean | undefined;
31914
31881
  instant?: false | {
@@ -31980,15 +31947,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31980
31947
  };
31981
31948
  name?: string | undefined;
31982
31949
  })[] | undefined;
31983
- experimental?: {
31984
- assistivePrompt?: {
31985
- userTimezone?: string | undefined;
31986
- } | undefined;
31987
- customTools?: CustomTool[] | undefined;
31988
- customToolkits?: CustomToolkit[] | undefined;
31989
- sessionConfigId?: string | undefined;
31990
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
31991
- } | undefined;
31992
31950
  }, unknown>;
31993
31951
  /**
31994
31952
  * The config for the tool router session.
@@ -32019,7 +31977,11 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
32019
31977
  * @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
32020
31978
  * @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
32021
31979
  * @param {object} [experimental] - Experimental features configuration. Not stable; may change or be removed.
32022
- * @param {string} [experimental.sessionConfigId] - ID of a saved Session config (`sc_…`) to apply at creation; see `composio.sessionConfigs`. Cannot be combined with `toolkits`, `tools`, `tags`, `hooks`, `experimental.customTools` or `experimental.customToolkits`. Per-session fields such as `authConfigs`, `connectedAccounts`, `manageConnections`, `sandbox`, `multiAccount` and `preload` stay allowed.
31980
+ * @param {LocalTool[]} [experimental.localTools] - Local tools to include in this session, created with `experimental_createTool()`. They run in your process.
31981
+ * @param {LocalToolkit[]} [experimental.localToolkits] - Toolkits of local tools to include in this session, created with `experimental_createToolkit()`.
31982
+ * @param {LocalTool[]} [experimental.customTools] - Deprecated alias for `experimental.localTools`.
31983
+ * @param {LocalToolkit[]} [experimental.customToolkits] - Deprecated alias for `experimental.localToolkits`.
31984
+ * @param {string} [experimental.sessionConfigId] - ID of a saved Session config (`sc_…`) to apply at creation; see `composio.sessionConfigs`. Cannot be combined with `toolkits`, `tools`, `tags`, `hooks`, `experimental.localTools` or `experimental.localToolkits` (or their deprecated aliases `experimental.customTools` / `experimental.customToolkits`). Per-session fields such as `authConfigs`, `connectedAccounts`, `manageConnections`, `sandbox`, `multiAccount` and `preload` stay allowed.
32023
31985
  */
32024
31986
  type ToolRouterCreateSessionConfig = InlineAccessCreateSessionConfig | SavedConfigCreateSessionConfig;
32025
31987
  type ParsedCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
@@ -32036,8 +31998,10 @@ type SavedConfigCreateSessionConfig = Omit<ParsedCreateSessionConfig, 'toolkits'
32036
31998
  tools?: never;
32037
31999
  tags?: never;
32038
32000
  hooks?: never;
32039
- experimental: Omit<ParsedCreateSessionExperimental, 'sessionConfigId' | 'customTools' | 'customToolkits'> & {
32001
+ experimental: Omit<ParsedCreateSessionExperimental, 'sessionConfigId' | 'localTools' | 'localToolkits' | 'customTools' | 'customToolkits'> & {
32040
32002
  sessionConfigId: string;
32003
+ localTools?: never;
32004
+ localToolkits?: never;
32041
32005
  customTools?: never;
32042
32006
  customToolkits?: never;
32043
32007
  };
@@ -32500,12 +32464,12 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
32500
32464
  instructions: z.ZodString;
32501
32465
  }, "strip", z.ZodTypeAny, {
32502
32466
  id: string;
32503
- generateId: boolean;
32504
32467
  instructions: string;
32468
+ generateId: boolean;
32505
32469
  }, {
32506
32470
  id: string;
32507
- generateId: boolean;
32508
32471
  instructions: string;
32472
+ generateId: boolean;
32509
32473
  }>;
32510
32474
  timeInfo: z.ZodObject<{
32511
32475
  currentTimeUtc: z.ZodString;
@@ -32574,8 +32538,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
32574
32538
  nextStepsGuidance: string[];
32575
32539
  session: {
32576
32540
  id: string;
32577
- generateId: boolean;
32578
32541
  instructions: string;
32542
+ generateId: boolean;
32579
32543
  };
32580
32544
  timeInfo: {
32581
32545
  message: string;
@@ -32636,8 +32600,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
32636
32600
  nextStepsGuidance: string[];
32637
32601
  session: {
32638
32602
  id: string;
32639
- generateId: boolean;
32640
32603
  instructions: string;
32604
+ generateId: boolean;
32641
32605
  };
32642
32606
  timeInfo: {
32643
32607
  message: string;
@@ -32742,7 +32706,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32742
32706
  data: Record<string, unknown>;
32743
32707
  error: string | null;
32744
32708
  logId: string;
32745
- resultType: "completed" | "failed" | "blocked";
32709
+ resultType: "failed" | "completed" | "blocked";
32746
32710
  instantCharge?: unknown;
32747
32711
  blockReason?: {
32748
32712
  type: "request_blocked" | "response_blocked";
@@ -32760,7 +32724,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32760
32724
  data: Record<string, unknown>;
32761
32725
  error: string | null;
32762
32726
  logId: string;
32763
- resultType: "completed" | "failed" | "blocked";
32727
+ resultType: "failed" | "completed" | "blocked";
32764
32728
  instantCharge?: unknown;
32765
32729
  blockReason?: {
32766
32730
  type: "request_blocked" | "response_blocked";
@@ -33157,26 +33121,26 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33157
33121
  */
33158
33122
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
33159
33123
  }, "strict", z.ZodTypeAny, {
33160
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33161
33124
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33125
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33162
33126
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33163
33127
  }, {
33164
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33165
33128
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33129
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33166
33130
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33167
33131
  }>]>;
33168
33132
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33169
33133
  }, "strict", z.ZodTypeAny, {
33170
33134
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33171
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33172
33135
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33136
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33173
33137
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33174
33138
  };
33175
33139
  requireApproval?: string[] | undefined;
33176
33140
  }, {
33177
33141
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33178
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33179
33142
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33143
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33180
33144
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33181
33145
  };
33182
33146
  requireApproval?: string[] | undefined;
@@ -33194,8 +33158,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33194
33158
  requireApproval?: string[] | undefined;
33195
33159
  } | {
33196
33160
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33197
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33198
33161
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33162
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33199
33163
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33200
33164
  };
33201
33165
  requireApproval?: string[] | undefined;
@@ -33209,8 +33173,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33209
33173
  requireApproval?: string[] | undefined;
33210
33174
  } | {
33211
33175
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33212
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33213
33176
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33177
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33214
33178
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33215
33179
  };
33216
33180
  requireApproval?: string[] | undefined;
@@ -33226,12 +33190,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33226
33190
  */
33227
33191
  requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
33228
33192
  }, "strict", z.ZodTypeAny, {
33229
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33230
33193
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33194
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33231
33195
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33232
33196
  }, {
33233
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33234
33197
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33198
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33235
33199
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33236
33200
  }>]>>>>;
33237
33201
  authConfigs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
@@ -33492,8 +33456,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33492
33456
  expectedConfigVersion: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>>;
33493
33457
  }, "strip", z.ZodTypeAny, {
33494
33458
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33495
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33496
33459
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33460
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33497
33461
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33498
33462
  } | null | undefined;
33499
33463
  tools?: Record<string, string[] | {
@@ -33504,8 +33468,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33504
33468
  requireApproval?: string[] | undefined;
33505
33469
  } | {
33506
33470
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33507
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33508
33471
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33472
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33509
33473
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33510
33474
  };
33511
33475
  requireApproval?: string[] | undefined;
@@ -33527,6 +33491,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33527
33491
  preload?: {
33528
33492
  tools?: string[] | "all" | undefined;
33529
33493
  } | null | undefined;
33494
+ experimental?: {
33495
+ sessionConfigId?: string | undefined;
33496
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
33497
+ permissions?: {
33498
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33499
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33500
+ } | null | undefined;
33501
+ linkUrlOverwrite?: string | null | undefined;
33502
+ fastMode?: boolean | null | undefined;
33503
+ submitFeedback?: {
33504
+ enable: boolean;
33505
+ } | null | undefined;
33506
+ } | null | undefined;
33530
33507
  instant?: false | {
33531
33508
  tools?: Record<string, {
33532
33509
  enable: string[];
@@ -33597,27 +33574,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33597
33574
  };
33598
33575
  name?: string | undefined;
33599
33576
  })[] | null | undefined;
33600
- experimental?: {
33601
- sessionConfigId?: string | undefined;
33602
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
33603
- permissions?: {
33604
- default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33605
- overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33606
- } | null | undefined;
33607
- linkUrlOverwrite?: string | null | undefined;
33608
- fastMode?: boolean | null | undefined;
33609
- submitFeedback?: {
33610
- enable: boolean;
33611
- } | null | undefined;
33612
- } | null | undefined;
33613
33577
  execute?: {
33614
33578
  enableMultiExecute?: boolean | undefined;
33615
33579
  } | null | undefined;
33616
33580
  expectedConfigVersion?: number | false | undefined;
33617
33581
  }, {
33618
33582
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33619
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33620
33583
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33584
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33621
33585
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33622
33586
  } | null | undefined;
33623
33587
  tools?: Record<string, string[] | {
@@ -33628,8 +33592,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33628
33592
  requireApproval?: string[] | undefined;
33629
33593
  } | {
33630
33594
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33631
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33632
33595
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33596
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33633
33597
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33634
33598
  };
33635
33599
  requireApproval?: string[] | undefined;
@@ -33651,6 +33615,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33651
33615
  preload?: {
33652
33616
  tools?: string[] | "all" | undefined;
33653
33617
  } | null | undefined;
33618
+ experimental?: {
33619
+ sessionConfigId?: string | undefined;
33620
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
33621
+ permissions?: {
33622
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33623
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33624
+ } | null | undefined;
33625
+ linkUrlOverwrite?: string | null | undefined;
33626
+ fastMode?: boolean | null | undefined;
33627
+ submitFeedback?: {
33628
+ enable: boolean;
33629
+ } | null | undefined;
33630
+ } | null | undefined;
33654
33631
  instant?: false | {
33655
33632
  tools?: Record<string, {
33656
33633
  enable: string[];
@@ -33721,27 +33698,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33721
33698
  };
33722
33699
  name?: string | undefined;
33723
33700
  })[] | null | undefined;
33724
- experimental?: {
33725
- sessionConfigId?: string | undefined;
33726
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
33727
- permissions?: {
33728
- default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33729
- overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33730
- } | null | undefined;
33731
- linkUrlOverwrite?: string | null | undefined;
33732
- fastMode?: boolean | null | undefined;
33733
- submitFeedback?: {
33734
- enable: boolean;
33735
- } | null | undefined;
33736
- } | null | undefined;
33737
33701
  execute?: {
33738
33702
  enableMultiExecute?: boolean | undefined;
33739
33703
  } | null | undefined;
33740
33704
  expectedConfigVersion?: number | false | undefined;
33741
33705
  }>, {
33742
33706
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33743
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33744
33707
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33708
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33745
33709
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33746
33710
  } | null | undefined;
33747
33711
  tools?: Record<string, string[] | {
@@ -33752,8 +33716,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33752
33716
  requireApproval?: string[] | undefined;
33753
33717
  } | {
33754
33718
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33755
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33756
33719
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33720
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33757
33721
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33758
33722
  };
33759
33723
  requireApproval?: string[] | undefined;
@@ -33775,6 +33739,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33775
33739
  preload?: {
33776
33740
  tools?: string[] | "all" | undefined;
33777
33741
  } | null | undefined;
33742
+ experimental?: {
33743
+ sessionConfigId?: string | undefined;
33744
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
33745
+ permissions?: {
33746
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33747
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33748
+ } | null | undefined;
33749
+ linkUrlOverwrite?: string | null | undefined;
33750
+ fastMode?: boolean | null | undefined;
33751
+ submitFeedback?: {
33752
+ enable: boolean;
33753
+ } | null | undefined;
33754
+ } | null | undefined;
33778
33755
  instant?: false | {
33779
33756
  tools?: Record<string, {
33780
33757
  enable: string[];
@@ -33845,27 +33822,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33845
33822
  };
33846
33823
  name?: string | undefined;
33847
33824
  })[] | null | undefined;
33848
- experimental?: {
33849
- sessionConfigId?: string | undefined;
33850
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
33851
- permissions?: {
33852
- default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33853
- overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33854
- } | null | undefined;
33855
- linkUrlOverwrite?: string | null | undefined;
33856
- fastMode?: boolean | null | undefined;
33857
- submitFeedback?: {
33858
- enable: boolean;
33859
- } | null | undefined;
33860
- } | null | undefined;
33861
33825
  execute?: {
33862
33826
  enableMultiExecute?: boolean | undefined;
33863
33827
  } | null | undefined;
33864
33828
  expectedConfigVersion?: number | false | undefined;
33865
33829
  }, {
33866
33830
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33867
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33868
33831
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33832
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33869
33833
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33870
33834
  } | null | undefined;
33871
33835
  tools?: Record<string, string[] | {
@@ -33876,8 +33840,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33876
33840
  requireApproval?: string[] | undefined;
33877
33841
  } | {
33878
33842
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
33879
- disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33880
33843
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33844
+ disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33881
33845
  requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33882
33846
  };
33883
33847
  requireApproval?: string[] | undefined;
@@ -33899,6 +33863,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33899
33863
  preload?: {
33900
33864
  tools?: string[] | "all" | undefined;
33901
33865
  } | null | undefined;
33866
+ experimental?: {
33867
+ sessionConfigId?: string | undefined;
33868
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
33869
+ permissions?: {
33870
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33871
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33872
+ } | null | undefined;
33873
+ linkUrlOverwrite?: string | null | undefined;
33874
+ fastMode?: boolean | null | undefined;
33875
+ submitFeedback?: {
33876
+ enable: boolean;
33877
+ } | null | undefined;
33878
+ } | null | undefined;
33902
33879
  instant?: false | {
33903
33880
  tools?: Record<string, {
33904
33881
  enable: string[];
@@ -33969,19 +33946,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33969
33946
  };
33970
33947
  name?: string | undefined;
33971
33948
  })[] | null | undefined;
33972
- experimental?: {
33973
- sessionConfigId?: string | undefined;
33974
- noElicitationSupportFallback?: "deny" | "allow" | undefined;
33975
- permissions?: {
33976
- default: "allow_all" | "ask_every_call" | "ask_once_per_session";
33977
- overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
33978
- } | null | undefined;
33979
- linkUrlOverwrite?: string | null | undefined;
33980
- fastMode?: boolean | null | undefined;
33981
- submitFeedback?: {
33982
- enable: boolean;
33983
- } | null | undefined;
33984
- } | null | undefined;
33985
33949
  execute?: {
33986
33950
  enableMultiExecute?: boolean | undefined;
33987
33951
  } | null | undefined;
@@ -34100,6 +34064,7 @@ declare const ToolRouterSessionEnsureConnectedOptionsSchema: z.ZodObject<{
34100
34064
  timeout: z.ZodOptional<z.ZodNumber>;
34101
34065
  }, "strip", z.ZodTypeAny, {
34102
34066
  callbackUrl?: string | undefined;
34067
+ alias?: string | undefined;
34103
34068
  experimental?: {
34104
34069
  accountType?: "PRIVATE" | "SHARED" | undefined;
34105
34070
  aclConfigForShared?: {
@@ -34108,10 +34073,10 @@ declare const ToolRouterSessionEnsureConnectedOptionsSchema: z.ZodObject<{
34108
34073
  notAllowedUserIds?: string[] | undefined;
34109
34074
  } | undefined;
34110
34075
  } | undefined;
34111
- alias?: string | undefined;
34112
34076
  timeout?: number | undefined;
34113
34077
  }, {
34114
34078
  callbackUrl?: string | undefined;
34079
+ alias?: string | undefined;
34115
34080
  experimental?: {
34116
34081
  accountType?: "PRIVATE" | "SHARED" | undefined;
34117
34082
  aclConfigForShared?: {
@@ -34120,7 +34085,6 @@ declare const ToolRouterSessionEnsureConnectedOptionsSchema: z.ZodObject<{
34120
34085
  notAllowedUserIds?: string[] | undefined;
34121
34086
  } | undefined;
34122
34087
  } | undefined;
34123
- alias?: string | undefined;
34124
34088
  timeout?: number | undefined;
34125
34089
  }>;
34126
34090
  type ToolRouterSessionEnsureConnectedOptions = z.infer<typeof ToolRouterSessionEnsureConnectedOptionsSchema>;
@@ -34183,12 +34147,18 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
34183
34147
  listConfigHistory: ToolRouterSessionListConfigHistoryFn;
34184
34148
  /** Proxy an API call through Composio's auth layer using the session's connected account */
34185
34149
  proxyExecute: ToolRouterSessionProxyExecuteFn;
34186
- /** List custom tools registered in this session, with their final slugs and schemas */
34150
+ /** List local tools registered in this session, with their final slugs and schemas */
34151
+ localTools: (options?: {
34152
+ toolkit?: string;
34153
+ }) => RegisteredLocalTool[];
34154
+ /** List toolkits of local tools registered in this session, with final slugs on nested tools */
34155
+ localToolkits: () => RegisteredLocalToolkit[];
34156
+ /** @deprecated Use `localTools()` instead. */
34187
34157
  customTools: (options?: {
34188
34158
  toolkit?: string;
34189
- }) => RegisteredCustomTool[];
34190
- /** List custom toolkits registered in this session, with final slugs on nested tools */
34191
- customToolkits: () => RegisteredCustomToolkit[];
34159
+ }) => RegisteredLocalTool[];
34160
+ /** @deprecated Use `localToolkits()` instead. */
34161
+ customToolkits: () => RegisteredLocalToolkit[];
34192
34162
  /** Experimental features (files, assistive prompt, etc.) */
34193
34163
  experimental: SessionExperimental;
34194
34164
  }
@@ -34202,8 +34172,6 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
34202
34172
  * https://docs.composio.dev/docs/sessions-via-mcp
34203
34173
  */
34204
34174
  type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
34205
- //#endregion
34206
- //#region src/types/customTool.types.d.ts
34207
34175
  type AnyZodSchema = z$1.ZodType | z$2.ZodType;
34208
34176
  type InferZodSchema<T extends AnyZodSchema> = T extends z$1.ZodType ? z$1.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
34209
34177
  /**
@@ -34227,14 +34195,16 @@ interface SessionContext {
34227
34195
  readonly signal?: AbortSignal;
34228
34196
  }
34229
34197
  /**
34230
- * Execute function for custom tools.
34198
+ * Execute function for local tools.
34231
34199
  * Just return the result data, or throw an error. The SDK wraps it internally.
34232
34200
  *
34233
34201
  * Supports two call patterns:
34234
34202
  * - `(input) => data` — for tools that don't need session context
34235
34203
  * - `(input, ctx) => data` — for tools that need to call other tools or proxy APIs
34236
34204
  */
34237
- type CustomToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ctx: SessionContext) => Promise<Record<string, unknown>>;
34205
+ type LocalToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ctx: SessionContext) => Promise<Record<string, unknown>>;
34206
+ /** @deprecated Use `LocalToolExecuteFn` instead; local tools were previously called custom tools. */
34207
+ type CustomToolExecuteFn<T extends AnyZodSchema> = LocalToolExecuteFn<T>;
34238
34208
  /**
34239
34209
  * Zod schema for validating a custom tool slug.
34240
34210
  * Alphanumeric, underscores, and hyphens only. No `LOCAL_` or `COMPOSIO_` prefix.
@@ -34268,20 +34238,22 @@ declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
34268
34238
  extendsToolkit?: string | undefined;
34269
34239
  preload?: boolean | undefined;
34270
34240
  }>;
34271
- /** Options for creating a custom tool via `createCustomTool()`. */
34272
- type CreateCustomToolParams<T extends AnyZodSchema> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
34241
+ /** Options for creating local tools via `experimental_createTool()`. */
34242
+ type CreateLocalToolParams<T extends AnyZodSchema> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
34273
34243
  /** Zod schema for input parameters */
34274
34244
  inputParams: T;
34275
34245
  /** Optional Zod schema for output parameters (sent to backend for documentation) */
34276
34246
  outputParams?: AnyZodSchema;
34277
34247
  /** The function that executes the tool */
34278
- execute: CustomToolExecuteFn<T>;
34248
+ execute: LocalToolExecuteFn<T>;
34279
34249
  };
34250
+ /** @deprecated Use `CreateLocalToolParams` instead; local tools were previously called custom tools. */
34251
+ type CreateCustomToolParams<T extends AnyZodSchema> = CreateLocalToolParams<T>;
34280
34252
  /**
34281
- * Custom tool definition returned from `createCustomTool()`.
34282
- * Pass to `composio.create(userId, { experimental: { customTools: [...] } })` to bind to a session.
34253
+ * One of your local tools, returned from `experimental_createTool()`; it runs in your process.
34254
+ * Pass to `composio.create(userId, { experimental: { localTools: [...] } })` to bind to a session.
34283
34255
  */
34284
- interface CustomTool {
34256
+ interface LocalTool {
34285
34257
  readonly slug: string;
34286
34258
  readonly name: string;
34287
34259
  readonly description: string;
@@ -34302,8 +34274,10 @@ interface CustomTool {
34302
34274
  /** @internal Original Zod schema — used for runtime input validation (defaults, coercions, transforms) */
34303
34275
  readonly inputParams: AnyZodSchema;
34304
34276
  /** Direct reference to the execute function — useful for testing */
34305
- readonly execute: CustomToolExecuteFn<AnyZodSchema>;
34277
+ readonly execute: LocalToolExecuteFn<AnyZodSchema>;
34306
34278
  }
34279
+ /** @deprecated Use `LocalTool` instead; local tools were previously called custom tools. */
34280
+ type CustomTool = LocalTool;
34307
34281
  /** Serialized tool definition sent to backend for search indexing. Uses official client type. */
34308
34282
  type CustomToolDefinition = NonNullable<NonNullable<SessionCreateParams['experimental']>['custom_tools']>[number];
34309
34283
  type CustomToolWireDefinition = CustomToolDefinition;
@@ -34324,16 +34298,18 @@ declare const CreateCustomToolkitBaseSchema: z$1.ZodObject<{
34324
34298
  description: string;
34325
34299
  preload?: boolean | undefined;
34326
34300
  }>;
34327
- /** Options for creating a custom toolkit via `createCustomToolkit()`. */
34328
- type CreateCustomToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
34301
+ /** Options for grouping local tools into a toolkit via `experimental_createToolkit()`. */
34302
+ type CreateLocalToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
34329
34303
  /** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
34330
- tools: CustomTool[];
34304
+ tools: LocalTool[];
34331
34305
  };
34306
+ /** @deprecated Use `CreateLocalToolkitParams` instead; local toolkits were previously called custom toolkits. */
34307
+ type CreateCustomToolkitParams = CreateLocalToolkitParams;
34332
34308
  /**
34333
- * Custom toolkit definition returned from `createCustomToolkit()`.
34334
- * Pass to `composio.create(userId, { experimental: { customToolkits: [...] } })`.
34309
+ * A toolkit of local tools returned from `experimental_createToolkit()`.
34310
+ * Pass to `composio.create(userId, { experimental: { localToolkits: [...] } })`.
34335
34311
  */
34336
- interface CustomToolkit {
34312
+ interface LocalToolkit {
34337
34313
  readonly slug: string;
34338
34314
  readonly name: string;
34339
34315
  readonly description: string;
@@ -34342,8 +34318,10 @@ interface CustomToolkit {
34342
34318
  * Tool-level preload values override this default.
34343
34319
  */
34344
34320
  readonly preload?: boolean;
34345
- readonly tools: readonly CustomTool[];
34321
+ readonly tools: readonly LocalTool[];
34346
34322
  }
34323
+ /** @deprecated Use `LocalToolkit` instead; local toolkits were previously called custom toolkits. */
34324
+ type CustomToolkit = LocalToolkit;
34347
34325
  /** Serialized toolkit definition sent to backend. Uses official client type. */
34348
34326
  type CustomToolkitDefinition = NonNullable<NonNullable<NonNullable<SessionCreateParams['experimental']>['custom_toolkits']>[number]>;
34349
34327
  type CustomToolkitWireDefinition = CustomToolkitDefinition;
@@ -34353,7 +34331,7 @@ interface InlineCustomToolsWirePayload {
34353
34331
  }
34354
34332
  /** @internal Entry in the per-session custom tools routing map. */
34355
34333
  type CustomToolsMapEntry = {
34356
- handle: CustomTool;
34334
+ handle: LocalTool;
34357
34335
  /** @internal The final slug assigned by the prefixing rules (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
34358
34336
  finalSlug: string;
34359
34337
  /** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
@@ -34369,32 +34347,35 @@ type CustomToolsMap = {
34369
34347
  byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>;
34370
34348
  /** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
34371
34349
  ambiguousOriginalSlugs?: Set<string>;
34372
- /** The original custom toolkits passed at session creation — used for session.customToolkits() */
34373
- toolkits?: CustomToolkit[];
34374
- /** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
34375
- tools?: CustomTool[];
34350
+ /** The original local toolkits passed at session creation — used for session.localToolkits() */
34351
+ toolkits?: LocalToolkit[];
34352
+ /** The original standalone local tools passed at session creation — kept for inline re-injection on later requests. */
34353
+ tools?: LocalTool[];
34376
34354
  };
34377
- /** A custom tool as registered in a session, with its final resolved slug. */
34378
- interface RegisteredCustomTool {
34355
+ /** One of your local tools as registered in a session, with its final resolved slug. */
34356
+ interface RegisteredLocalTool {
34379
34357
  /** The final slug as registered with the backend (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
34380
34358
  slug: string;
34381
34359
  name: string;
34382
34360
  description: string;
34383
- /** Resolved toolkit — extendsToolkit value, custom toolkit slug, or undefined for standalone */
34361
+ /** Resolved toolkit — extendsToolkit value, local toolkit slug, or undefined for standalone */
34384
34362
  toolkit?: string;
34385
34363
  inputSchema: Record<string, unknown>;
34386
34364
  outputSchema?: Record<string, unknown>;
34387
34365
  }
34388
- /** A custom toolkit as registered in a session, with final slugs on nested tools. */
34389
- interface RegisteredCustomToolkit {
34366
+ /** A toolkit of local tools as registered in a session, with final slugs on nested tools. */
34367
+ interface RegisteredLocalToolkit {
34390
34368
  slug: string;
34391
34369
  name: string;
34392
34370
  description: string;
34393
- tools: RegisteredCustomTool[];
34371
+ tools: RegisteredLocalTool[];
34394
34372
  }
34373
+ /** @deprecated Use `RegisteredLocalTool` instead; local tools were previously called custom tools. */
34374
+ type RegisteredCustomTool = RegisteredLocalTool;
34375
+ /** @deprecated Use `RegisteredLocalToolkit` instead; local toolkits were previously called custom toolkits. */
34376
+ type RegisteredCustomToolkit = RegisteredLocalToolkit;
34395
34377
  /** Custom tool as returned in the session create response (has prefixed slug + original_slug). */
34396
34378
  type CustomToolResponse = NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_tools']>[number];
34397
34379
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
34398
34380
  type CustomToolkitResponse = NonNullable<NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_toolkits']>[number]>;
34399
- //#endregion
34400
- export { ToolRouterInputResponse as $, ToolProxyParams as $a, Oauth1InactiveConnectionData as $i, ConnectedAccountRevokeResponseSchema as $n, MCPServer as $r, ToolRouterToolsParam as $t, SessionProxyExecuteParams as A, TransformToolSchemaModifier as Aa, Provider as Ai, ConnectedAccountAclConfigResponse as An, ComposioMcpDeleteResponseSchema as Ar, ToolRouterSessionListConfigHistoryResponse as At, ToolRouterConfigToolsSchema as B, SchemaModifierOptions as Ba, CustomConnectionDataSchema as Bi, ConnectedAccountExperimentalResponse as Bn, GenerateURLResponse$1 as Br, ToolRouterSessionSearchResponseSchema as Bt, MCPServerType as C, BeforeFileUploadSource as Ca, McpUpdateResponseSchema as Ci, ToolRouterSessionFilesMountListOptionsSchema as Cn, UpdateConnectedAccountParamsSchema as Cr, ToolRouterSessionExecuteMetaOptions as Ct, Session as D, SessionExecuteMetaModifiers as Da, ExecuteToolFn as Di, ConnectionRequest as Dn, ComposioCustomCreateResponseSchema as Dr, ToolRouterSessionListConfigHistoryFn as Dt, SandboxSizeSchema as E, ProviderOptions as Ea, McpUserConnectionStatus as Ei, ComposioRequestOptions as En, BaseNonAgenticProvider as Er, ToolRouterSessionExecuteResponseSchema as Et, ToolRouterBlockReasonSchema as F, beforeFileUploadModifier as Fa, ConnectionData as Fi, ConnectedAccountCompleteAuthParams as Fn, CustomCreateResponse$1 as Fr, ToolRouterSessionProxyExecuteCompleted as Ft, ToolRouterHookAppliesToSchema as G, ToolExecuteParamsSchema as Ga, Oauth1ActiveConnectionData as Gi, ConnectedAccountListResponse as Gn, MCPCreateMethodResponse as Gr, ToolRouterTagsParamSchema as Gt, ToolRouterCreateSessionConfigSchema as H, ToolExecuteMetaParams as Ha, CustomOauth1ConnectionDataSchema as Hi, ConnectedAccountExperimentalSchema as Hn, GenerateURLResponseValidated as Hr, ToolRouterSessionWarning as Ht, ToolRouterConfigManageConnectionsSchema as I, CustomAuthParams as Ia, ConnectionDataSchema as Ii, ConnectedAccountCompleteAuthParamsSchema as In, CustomCreateResponseSchema as Ir, ToolRouterSessionProxyExecuteFn as It, ToolRouterHookPromptInjectionCheckHandler as J, ToolList as Ja, Oauth1ConnectionDataSchema as Ji, ConnectedAccountRefreshOptions as Jn, MCPGetServerParams as Jr, ToolRouterToolkitsFn as Jt, ToolRouterHookConditionCheckHandler as K, ToolExecuteResponse as Ka, Oauth1ActiveConnectionDataSchema as Ki, ConnectedAccountListResponseItem as Kn, MCPGenerateURLParams as Kr, ToolRouterToolkitsDisabledConfigSchema as Kt, ToolRouterConfigTags as L, CustomAuthParamsSchema as La, ConnectionStatusEnum as Li, ConnectedAccountCompleteAuthResponse as Ln, CustomCreateResponseValidated as Lr, ToolRouterSessionProxyExecuteResponse as Lt, SessionWithoutMcp as M, afterExecuteModifier as Ma, ToolCallSession as Mi, ConnectedAccountAclConfigSchema as Mn, ComposioMcpRetrieveResponseSchema as Mr, ToolRouterSessionMetadata as Mt, ToolRouterAuthorizeFn as N, beforeExecuteMetaModifier as Na, BaseConnectionFields as Ni, ConnectedAccountAuthConfig as Nn, ComposioMcpUpdateResponseSchema as Nr, ToolRouterSessionPreloadConfig as Nt, SessionExperimental as O, SessionMetaToolOptions as Oa, ExecuteToolFnOptions as Oi, ConnectionRequestState as On, ComposioGenerateURLParamsSchema as Or, ToolRouterSessionListConfigHistoryOptions as Ot, ToolRouterBlockReason as P, beforeExecuteModifier as Pa, BillcomAuthConnectionDataSchema as Pi, ConnectedAccountAuthConfigSchema as Pn, ConnectionStatus as Pr, ToolRouterSessionProxyExecuteBlocked as Pt, ToolRouterHookSchema as Q, ToolListResponseSchema as Qa, Oauth1FailedConnectionDataSchema as Qi, ConnectedAccountRevokeResponse as Qn, MCPMultiAppServerSchema as Qr, ToolRouterToolsFn as Qt, ToolRouterConfigTagsSchema as R, JSONSchemaProperty as Ra, ConnectionStatuses as Ri, ConnectedAccountCompleteAuthResponseSchema as Rn, GenerateURLParams as Rr, ToolRouterSessionSearchFn as Rt, SessionContext as S, AgenticToolOptions as Sa, McpUpdateResponse as Si, ToolRouterSessionFilesMountListOptions as Sn, UpdateConnectedAccountParams as Sr, ToolRouterSessionExecuteMetaFn as St, SandboxSize as T, MetaToolArguments as Ta, McpUrlResponseCamelCase as Ti, ToolRouterSessionFilesMountUploadOptionsSchema as Tn, BaseComposioProvider as Tr, ToolRouterSessionExecuteResponse as Tt, ToolRouterHook as U, ToolExecuteMetaParamsSchema as Ua, CustomOauth2ConnectionData as Ui, ConnectedAccountListParams as Un, MCPAuthOptions as Ur, ToolRouterSessionWorkbenchConfig as Ut, ToolRouterCreateSessionConfig as V, Tool as Va, CustomOauth1ConnectionData as Vi, ConnectedAccountExperimentalResponseSchema as Vn, GenerateURLResponseSchema as Vr, ToolRouterSessionUpdateFn as Vt, ToolRouterHookAppliesTo as W, ToolExecuteParams as Wa, CustomOauth2ConnectionDataSchema as Wi, ConnectedAccountListParamsSchema as Wn, MCPAuthOptionsSchema as Wr, ToolRouterTagsEnableDisableSchema as Wt, ToolRouterHookResult as X, ToolListParamsSchema as Xa, Oauth1ExpiredConnectionDataSchema as Xi, ConnectedAccountRetrieveResponse as Xn, MCPInstanceParams as Xr, ToolRouterToolkitsOptionsSchema as Xt, ToolRouterHookPromptInjectionCheckHandlerSchema as Y, ToolListParams as Ya, Oauth1ExpiredConnectionData as Yi, ConnectedAccountRefreshOptionsSchema as Yn, MCPGetServerParamsSchema as Yr, ToolRouterToolkitsOptions as Yt, ToolRouterHookResultSchema as Z, ToolListResponse as Za, Oauth1FailedConnectionData as Zi, ConnectedAccountRetrieveResponseSchema as Zn, MCPMultiAppServer as Zr, ToolRouterToolkitsParamSchema as Zt, CustomToolsMapEntry as _, Oauth2InitiatingConnectionData as _a, McpRetrieveResponseSchema as _i, RemoteFileDataSchema as _n, CreateConnectedAccountResponse as _r, ToolRouterSessionEnsureConnectedFn as _t, CreateCustomToolkitParams as a, Oauth2ActiveConnectionData as aa, MCPServerUpdateParams as ai, ToolRouterUpdateSessionConfig as an, ToolkitLatestVersionSchema as ao, ConnectedAccountStatuses as ar, ToolRouterProxyExecute as at, RegisteredCustomTool as b, Oauth2RevokedConnectionDataSchema as ba, McpServerUrlInfo as bi, ToolRouterSessionFilesMountDownloadOptions as bn, UpdateConnectedAccountAclParams as br, ToolRouterSessionEnsureConnectedResult as bt, CustomToolExecuteFn as c, Oauth2ConnectionDataSchema as ca, MCPSingleAppServerSchema as ci, ToolkitConnectionStateSchema as cn, ToolkitVersionParam as co, ConnectedAccountTypes as cr, ToolRouterProxyExecuteSchema as ct, CustomToolWireDefinition as d, Oauth2FailedConnectionData as da, MCPToolkitConfigsArraySchema as di, RemoteFile as dn, ToolkitVersions as do, CreateConnectedAccountLinkResponse as dr, ToolRouterSessionConfig as dt, Oauth1InactiveConnectionDataSchema as ea, MCPServerCreateResponse as ei, ToolRouterToolsParamSchema as en, ToolProxyParamsSchema as eo, ConnectedAccountRevokedToken as er, ToolRouterInstant as et, CustomToolkit as f, Oauth2FailedConnectionDataSchema as fa, McpDeleteResponse as fi, FileDeleteResponse as fn, ToolkitVersionsSchema as fo, CreateConnectedAccountLinkResponseSchema as fr, ToolRouterSessionConfigHistoryConfig as ft, CustomToolsMap as g, Oauth2InitiatedConnectionDataSchema as ga, McpRetrieveResponse as gi, RemoteFileData as gn, CreateConnectedAccountParamsSchema as gr, ToolRouterSessionDeleteResponseSchema as gt, CustomToolkitWireDefinition as h, Oauth2InitiatedConnectionData as ha, McpListResponseSchema as hi, FileListResponseSchema as hn, CreateConnectedAccountParams as hr, ToolRouterSessionDeleteResponse as ht, CreateCustomToolkitBaseSchema as i, Oauth1InitiatingConnectionDataSchema as ia, MCPServerSchema as ii, ToolRouterUpdateManageConnectionsSchema as in, ToolkitLatestVersion as io, ConnectedAccountStatusSchema as ir, ToolRouterManageConnectionsConfigSchema as it, SessionProxyExecuteParamsSchema as j, afterExecuteMetaModifier as ja, ToolCallExecutionTarget as ji, ConnectedAccountAclConfigResponseSchema as jn, ComposioMcpListResponseSchema as jr, ToolRouterSessionMetaToolSlug as jt, SessionPreset as k, ToolOptions as ka, GlobalExecuteToolFn as ki, ConnectedAccountAclConfig as kn, ComposioGenerateURLResponseSchema as kr, ToolRouterSessionListConfigHistoryOptionsSchema as kt, CustomToolResponse as l, Oauth2ExpiredConnectionData as la, MCPToolkitConfig as li, ToolkitConnectionsDetails as ln, ToolkitVersionParamSchema as lo, CreateConnectedAccountLinkOptions as lr, ToolRouterSandboxConfig as lt, CustomToolkitResponse as m, Oauth2InactiveConnectionDataSchema as ma, McpListResponse as mi, FileListResponse as mn, CreateConnectedAccountOptionsSchema as mr, ToolRouterSessionDeleteFn as mt, CreateCustomToolBaseSchema as n, Oauth1InitiatedConnectionDataSchema as na, MCPServerListResponse as ni, ToolRouterUpdateExperimentalSchema as nn, ToolSchema as no, ConnectedAccountStatus as nr, ToolRouterMCPServerConfig as nt, CustomTool as o, Oauth2ActiveConnectionDataSchema as oa, MCPServerUpdateParamsSchema as oi, ToolRouterUpdateSessionConfigSchema as on, ToolkitSchema as oo, ConnectedAccountType as or, ToolRouterProxyExecuteConfig as ot, CustomToolkitDefinition as p, Oauth2InactiveConnectionData as pa, McpDeleteResponseSchema as pi, FileDeleteResponseSchema as pn, CreateConnectedAccountOptions as pr, ToolRouterSessionConfigHistoryItem as pt, ToolRouterHookConditionCheckHandlerSchema as q, ToolExecuteResponseSchema as qa, Oauth1ConnectionData as qi, ConnectedAccountListResponseSchema as qn, MCPGenerateURLParamsSchema as qr, ToolRouterToolkitsEnabledConfigSchema as qt, CreateCustomToolParams as r, Oauth1InitiatingConnectionData as ra, MCPServerListResponseSchema as ri, ToolRouterUpdateManageConnectionsConfig as rn, Toolkit as ro, ConnectedAccountStatusEnum as rr, ToolRouterMCPServerConfigSchema as rt, CustomToolDefinition as s, Oauth2ConnectionData as sa, MCPSingleAppServer as si, ToolkitConnectionState as sn, ToolkitVersion as so, ConnectedAccountTypeSchema as sr, ToolRouterProxyExecuteConfigSchema as st, AnyZodSchema as t, Oauth1InitiatedConnectionData as ta, MCPServerCreateResponseSchema as ti, ToolRouterUpdateExperimentalConfig as tn, ToolRetrievalOptions as to, ConnectedAccountRevokedTokenSchema as tr, ToolRouterInstantSchema as tt, CustomToolSlugSchema as u, Oauth2ExpiredConnectionDataSchema as ua, MCPToolkitConfigSchema as ui, ToolkitConnectionsDetailsSchema as un, ToolkitVersionSchema as uo, CreateConnectedAccountLinkOptionsSchema as ur, ToolRouterSandboxConfigSchema as ut, InferZodSchema as v, Oauth2InitiatingConnectionDataSchema as va, McpServerCreateResponse as vi, ToolRouterSessionFilesMountDeleteOptions as vn, CreateConnectedAccountResponseSchema as vr, ToolRouterSessionEnsureConnectedOptions as vt, MCPServerTypeSchema as w, ExecuteToolModifiers as wa, McpUrlResponse as wi, ToolRouterSessionFilesMountUploadOptions as wn, BaseAgenticProvider as wr, ToolRouterSessionExecuteOptions as wt, RegisteredCustomToolkit as x, RedirectableAuthSchemeSchema as xa, McpToolkitConnectionStatus as xi, ToolRouterSessionFilesMountDownloadOptionsSchema as xn, UpdateConnectedAccountAclParamsSchema as xr, ToolRouterSessionExecuteFn as xt, InlineCustomToolsWirePayload as y, Oauth2RevokedConnectionData as ya, McpServerGetResponse as yi, ToolRouterSessionFilesMountDeleteOptionsSchema as yn, DefaultCreateConnectedAccountParamsSchema as yr, ToolRouterSessionEnsureConnectedOptionsSchema as yt, ToolRouterConfigTools as z, JSONSchemaPropertySchema as za, CustomConnectionData as zi, ConnectedAccountExperimental as zn, GenerateURLParamsSchema as zr, ToolRouterSessionSearchResponse as zt };
34381
+ export { ToolRouterHookConditionCheckHandler as $, ToolExecuteResponseSchema as $a, Oauth1ConnectionData as $i, ConnectedAccountListResponseSchema as $n, MCPGenerateURLParamsSchema as $r, ToolRouterToolkitsDisabledConfigSchema as $t, MCPServerType as A, ExecuteToolModifiers as Aa, McpUrlResponse as Ai, ToolRouterSessionFilesMountListOptionsSchema as An, BaseAgenticProvider as Ar, ToolRouterSessionExecuteMetaOptions as At, ToolRouterAuthorizeFn as B, beforeExecuteModifier as Ba, BillcomAuthConnectionDataSchema as Bi, ConnectedAccountAuthConfigSchema as Bn, ConnectionStatus as Br, ToolRouterSessionPreloadConfig as Bt, LocalToolExecuteFn as C, Oauth2InitiatingConnectionData as Ca, McpRetrieveResponseSchema as Ci, RemoteFileData as Cn, CreateConnectedAccountResponse as Cr, ToolRouterSessionDeleteResponseSchema as Ct, RegisteredLocalTool as D, RedirectableAuthSchemeSchema as Da, McpToolkitConnectionStatus as Di, ToolRouterSessionFilesMountDownloadOptions as Dn, UpdateConnectedAccountAclParamsSchema as Dr, ToolRouterSessionEnsureConnectedResult as Dt, RegisteredCustomToolkit as E, Oauth2RevokedConnectionDataSchema as Ea, McpServerUrlInfo as Ei, ToolRouterSessionFilesMountDeleteOptionsSchema as En, UpdateConnectedAccountAclParams as Er, ToolRouterSessionEnsureConnectedOptionsSchema as Et, SessionExperimental as F, ToolOptions as Fa, GlobalExecuteToolFn as Fi, ConnectedAccountAclConfig as Fn, ComposioGenerateURLResponseSchema as Fr, ToolRouterSessionListConfigHistoryOptions as Ft, ToolRouterConfigTagsSchema as G, JSONSchemaPropertySchema as Ga, CustomConnectionData as Gi, ConnectedAccountExperimental as Gn, GenerateURLParamsSchema as Gr, ToolRouterSessionSearchFn as Gt, ToolRouterBlockReasonSchema as H, CustomAuthParams as Ha, ConnectionDataSchema as Hi, ConnectedAccountCompleteAuthParamsSchema as Hn, CustomCreateResponseSchema as Hr, ToolRouterSessionProxyExecuteCompleted as Ht, SessionPreset as I, TransformToolSchemaModifier as Ia, Provider as Ii, ConnectedAccountAclConfigResponse as In, ComposioMcpDeleteResponseSchema as Ir, ToolRouterSessionListConfigHistoryOptionsSchema as It, ToolRouterCreateSessionConfig as J, ToolExecuteMetaParams as Ja, CustomOauth1ConnectionDataSchema as Ji, ConnectedAccountExperimentalSchema as Jn, GenerateURLResponseValidated as Jr, ToolRouterSessionUpdateFn as Jt, ToolRouterConfigTools as K, SchemaModifierOptions as Ka, CustomConnectionDataSchema as Ki, ConnectedAccountExperimentalResponse as Kn, GenerateURLResponse as Kr, ToolRouterSessionSearchResponse as Kt, SessionProxyExecuteParams as L, afterExecuteMetaModifier as La, ToolCallExecutionTarget as Li, ConnectedAccountAclConfigResponseSchema as Ln, ComposioMcpListResponseSchema as Lr, ToolRouterSessionListConfigHistoryResponse as Lt, SandboxSize as M, ProviderOptions as Ma, McpUserConnectionStatus as Mi, ToolRouterSessionFilesMountUploadOptionsSchema as Mn, BaseNonAgenticProvider as Mr, ToolRouterSessionExecuteResponse as Mt, SandboxSizeSchema as N, SessionExecuteMetaModifiers as Na, ExecuteToolFn as Ni, ConnectionRequest as Nn, ComposioCustomCreateResponseSchema as Nr, ToolRouterSessionExecuteResponseSchema as Nt, RegisteredLocalToolkit as O, AgenticToolOptions as Oa, McpUpdateResponse as Oi, ToolRouterSessionFilesMountDownloadOptionsSchema as On, UpdateConnectedAccountParams as Or, ToolRouterSessionExecuteFn as Ot, Session as P, SessionMetaToolOptions as Pa, ExecuteToolFnOptions as Pi, ConnectionRequestState as Pn, ComposioGenerateURLParamsSchema as Pr, ToolRouterSessionListConfigHistoryFn as Pt, ToolRouterHookAppliesToSchema as Q, ToolExecuteResponse as Qa, Oauth1ActiveConnectionDataSchema as Qi, ConnectedAccountListResponseItem as Qn, MCPGenerateURLParams as Qr, ToolRouterTagsParamSchema as Qt, SessionProxyExecuteParamsSchema as R, afterExecuteModifier as Ra, ToolCallSession as Ri, ConnectedAccountAclConfigSchema as Rn, ComposioMcpRetrieveResponseSchema as Rr, ToolRouterSessionMetaToolSlug as Rt, LocalTool as S, Oauth2InitiatedConnectionDataSchema as Sa, McpRetrieveResponse as Si, FileListResponseSchema as Sn, CreateConnectedAccountParamsSchema as Sr, ToolRouterSessionDeleteResponse as St, RegisteredCustomTool as T, Oauth2RevokedConnectionData as Ta, McpServerGetResponse as Ti, ToolRouterSessionFilesMountDeleteOptions as Tn, DefaultCreateConnectedAccountParamsSchema as Tr, ToolRouterSessionEnsureConnectedOptions as Tt, ToolRouterConfigManageConnectionsSchema as U, CustomAuthParamsSchema as Ua, ConnectionStatusEnum as Ui, ConnectedAccountCompleteAuthResponse as Un, CustomCreateResponseValidated as Ur, ToolRouterSessionProxyExecuteFn as Ut, ToolRouterBlockReason as V, beforeFileUploadModifier as Va, ConnectionData as Vi, ConnectedAccountCompleteAuthParams as Vn, CustomCreateResponse as Vr, ToolRouterSessionProxyExecuteBlocked as Vt, ToolRouterConfigTags as W, JSONSchemaProperty as Wa, ConnectionStatuses as Wi, ConnectedAccountCompleteAuthResponseSchema as Wn, GenerateURLParams as Wr, ToolRouterSessionProxyExecuteResponse as Wt, ToolRouterHook as X, ToolExecuteParams as Xa, CustomOauth2ConnectionDataSchema as Xi, ConnectedAccountListParamsSchema as Xn, MCPAuthOptionsSchema as Xr, ToolRouterSessionWorkbenchConfig as Xt, ToolRouterCreateSessionConfigSchema as Y, ToolExecuteMetaParamsSchema as Ya, CustomOauth2ConnectionData as Yi, ConnectedAccountListParams as Yn, MCPAuthOptions as Yr, ToolRouterSessionWarning as Yt, ToolRouterHookAppliesTo as Z, ToolExecuteParamsSchema as Za, Oauth1ActiveConnectionData as Zi, ConnectedAccountListResponse as Zn, MCPCreateMethodResponse as Zr, ToolRouterTagsEnableDisableSchema as Zt, CustomToolkitWireDefinition as _, Oauth2FailedConnectionData as _a, MCPToolkitConfigsArraySchema as _i, ToolkitConnectionsDetailsSchema as _n, ToolkitVersions as _o, CreateConnectedAccountLinkResponse as _r, ToolRouterSandboxConfigSchema as _t, CreateCustomToolkitParams as a, Oauth1InactiveConnectionData as aa, MCPServer as ai, ToolRouterToolsFn as an, ToolProxyParams as ao, ConnectedAccountRevokeResponseSchema as ar, ToolRouterHookSchema as at, InferZodSchema as b, Oauth2InactiveConnectionDataSchema as ba, McpListResponse as bi, FileDeleteResponseSchema as bn, CreateConnectedAccountOptionsSchema as br, ToolRouterSessionConfigHistoryItem as bt, CustomTool as c, Oauth1InitiatedConnectionDataSchema as ca, MCPServerListResponse as ci, ToolRouterUpdateExperimentalConfig as cn, ToolSchema as co, ConnectedAccountStatus as cr, ToolRouterInstantSchema as ct, CustomToolResponse as d, Oauth2ActiveConnectionData as da, MCPServerUpdateParams as di, ToolRouterUpdateManageConnectionsSchema as dn, ToolkitLatestVersionSchema as do, ConnectedAccountStatuses as dr, ToolRouterManageConnectionsConfigSchema as dt, Oauth1ConnectionDataSchema as ea, MCPGetServerParams as ei, ToolRouterToolkitsEnabledConfigSchema as en, ToolList as eo, ConnectedAccountRefreshOptions as er, ToolRouterHookConditionCheckHandlerSchema as et, CustomToolSlugSchema as f, Oauth2ActiveConnectionDataSchema as fa, MCPServerUpdateParamsSchema as fi, ToolRouterUpdateSessionConfig as fn, ToolkitSchema as fo, ConnectedAccountType as fr, ToolRouterProxyExecute as ft, CustomToolkitResponse as g, Oauth2ExpiredConnectionDataSchema as ga, MCPToolkitConfigSchema as gi, ToolkitConnectionsDetails as gn, ToolkitVersionSchema as go, CreateConnectedAccountLinkOptionsSchema as gr, ToolRouterSandboxConfig as gt, CustomToolkitDefinition as h, Oauth2ExpiredConnectionData as ha, MCPToolkitConfig as hi, ToolkitConnectionStateSchema as hn, ToolkitVersionParamSchema as ho, CreateConnectedAccountLinkOptions as hr, ToolRouterProxyExecuteSchema as ht, CreateCustomToolkitBaseSchema as i, Oauth1FailedConnectionDataSchema as ia, MCPMultiAppServerSchema as ii, ToolRouterToolkitsParamSchema as in, ToolListResponseSchema as io, ConnectedAccountRevokeResponse as ir, ToolRouterHookResultSchema as it, MCPServerTypeSchema as j, MetaToolArguments as ja, McpUrlResponseCamelCase as ji, ToolRouterSessionFilesMountUploadOptions as jn, BaseComposioProvider as jr, ToolRouterSessionExecuteOptions as jt, SessionContext as k, BeforeFileUploadSource as ka, McpUpdateResponseSchema as ki, ToolRouterSessionFilesMountListOptions as kn, UpdateConnectedAccountParamsSchema as kr, ToolRouterSessionExecuteMetaFn as kt, CustomToolDefinition as l, Oauth1InitiatingConnectionData as la, MCPServerListResponseSchema as li, ToolRouterUpdateExperimentalSchema as ln, Toolkit as lo, ConnectedAccountStatusEnum as lr, ToolRouterMCPServerConfig as lt, CustomToolkit as m, Oauth2ConnectionDataSchema as ma, MCPSingleAppServerSchema as mi, ToolkitConnectionState as mn, ToolkitVersionParam as mo, ConnectedAccountTypes as mr, ToolRouterProxyExecuteConfigSchema as mt, CreateCustomToolBaseSchema as n, Oauth1ExpiredConnectionDataSchema as na, MCPInstanceParams as ni, ToolRouterToolkitsOptions as nn, ToolListParamsSchema as no, ConnectedAccountRetrieveResponse as nr, ToolRouterHookPromptInjectionCheckHandlerSchema as nt, CreateLocalToolParams as o, Oauth1InactiveConnectionDataSchema as oa, MCPServerCreateResponse as oi, ToolRouterToolsParam as on, ToolProxyParamsSchema as oo, ConnectedAccountRevokedToken as or, ToolRouterInputResponse as ot, CustomToolWireDefinition as p, Oauth2ConnectionData as pa, MCPSingleAppServer as pi, ToolRouterUpdateSessionConfigSchema as pn, ToolkitVersion as po, ConnectedAccountTypeSchema as pr, ToolRouterProxyExecuteConfig as pt, ToolRouterConfigToolsSchema as q, Tool as qa, CustomOauth1ConnectionData as qi, ConnectedAccountExperimentalResponseSchema as qn, GenerateURLResponseSchema as qr, ToolRouterSessionSearchResponseSchema as qt, CreateCustomToolParams as r, Oauth1FailedConnectionData as ra, MCPMultiAppServer as ri, ToolRouterToolkitsOptionsSchema as rn, ToolListResponse as ro, ConnectedAccountRetrieveResponseSchema as rr, ToolRouterHookResult as rt, CreateLocalToolkitParams as s, Oauth1InitiatedConnectionData as sa, MCPServerCreateResponseSchema as si, ToolRouterToolsParamSchema as sn, ToolRetrievalOptions as so, ConnectedAccountRevokedTokenSchema as sr, ToolRouterInstant as st, AnyZodSchema as t, Oauth1ExpiredConnectionData as ta, MCPGetServerParamsSchema as ti, ToolRouterToolkitsFn as tn, ToolListParams as to, ConnectedAccountRefreshOptionsSchema as tr, ToolRouterHookPromptInjectionCheckHandler as tt, CustomToolExecuteFn as u, Oauth1InitiatingConnectionDataSchema as ua, MCPServerSchema as ui, ToolRouterUpdateManageConnectionsConfig as un, ToolkitLatestVersion as uo, ConnectedAccountStatusSchema as ur, ToolRouterMCPServerConfigSchema as ut, CustomToolsMap as v, Oauth2FailedConnectionDataSchema as va, McpDeleteResponse as vi, RemoteFile as vn, ToolkitVersionsSchema as vo, CreateConnectedAccountLinkResponseSchema as vr, ToolRouterSessionConfig as vt, LocalToolkit as w, Oauth2InitiatingConnectionDataSchema as wa, McpServerCreateResponse as wi, RemoteFileDataSchema as wn, CreateConnectedAccountResponseSchema as wr, ToolRouterSessionEnsureConnectedFn as wt, InlineCustomToolsWirePayload as x, Oauth2InitiatedConnectionData as xa, McpListResponseSchema as xi, FileListResponse as xn, CreateConnectedAccountParams as xr, ToolRouterSessionDeleteFn as xt, CustomToolsMapEntry as y, Oauth2InactiveConnectionData as ya, McpDeleteResponseSchema as yi, FileDeleteResponse as yn, CreateConnectedAccountOptions as yr, ToolRouterSessionConfigHistoryConfig as yt, SessionWithoutMcp as z, beforeExecuteMetaModifier as za, BaseConnectionFields as zi, ConnectedAccountAuthConfig as zn, ComposioMcpUpdateResponseSchema as zr, ToolRouterSessionMetadata as zt };