@composio/core 0.30.0 → 0.32.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 (88) hide show
  1. package/dist/{CustomTool-9Vlb4XaS.mjs → CustomTool-B4dQn2M5.mjs} +1 -1
  2. package/dist/{CustomTool-Dzk3iqfP.d.mts → CustomTool-CBx9kzea.d.mts} +1 -1
  3. package/dist/{FileModifierErrors-WrqokuIF.mjs → FileModifierErrors-D-AKc3ds.mjs} +1 -1
  4. package/dist/{SsrfErrors-BSVMW915.mjs → SsrfErrors-BekZPeWY.mjs} +59 -12
  5. package/dist/{Telemetry-a7SOQXcg.mjs → Telemetry-BWKZmDxM.mjs} +2 -2
  6. package/dist/composio-CPf6NHnB.d.mts +20334 -0
  7. package/dist/{customTool.types-CpJbzxT6.d.mts → customTool.types-BSbIG1OG.d.mts} +306 -83
  8. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +28 -11
  9. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +28 -10
  10. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +44 -32
  11. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +8 -6
  12. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +4 -3
  13. package/dist/docs/reference/sdk-reference/typescript/index.mdx +4 -2
  14. package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +6 -3
  15. package/dist/docs/reference/sdk-reference/typescript/logs.mdx +5 -3
  16. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +54 -43
  17. package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -0
  18. package/dist/docs/reference/sdk-reference/typescript/remote-file.mdx +5 -14
  19. package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +5 -3
  20. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +7 -5
  21. package/dist/docs/reference/sdk-reference/typescript/session-webhooks.mdx +64 -0
  22. package/dist/docs/reference/sdk-reference/typescript/session.mdx +16 -16
  23. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +36 -8
  24. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +14 -11
  25. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +18 -20
  26. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +42 -30
  27. package/dist/docs/reference/sdk-reference/typescript/usage.mdx +6 -4
  28. package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +9 -7
  29. package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +13 -9
  30. package/dist/docs/reference/sdk-reference/typescript/webhooks.mdx +3 -1
  31. package/dist/{errors-xC13uvaA.mjs → errors-CtIKA9BH.mjs} +2 -2
  32. package/dist/experimental/index.d.mts +2 -2
  33. package/dist/experimental/index.mjs +1 -1
  34. package/dist/{fileUtils.node-CAwIbWYH.mjs → fileUtils.node-BJUYMEph.mjs} +7 -7
  35. package/dist/index.d.mts +10 -15
  36. package/dist/index.mjs +582 -242
  37. package/dist/{jsonSchema-Cc4EtHRw.mjs → jsonSchema-BZoXGUCr.mjs} +2 -2
  38. package/dist/models/Files.node.mjs +3 -3
  39. package/dist/{sensitiveFileUploadPaths-CSyJ3Ku8.mjs → sensitiveFileUploadPaths-CcbMAYCC.mjs} +21 -15
  40. package/dist/{ssrfGuard.node-CdIkwqVu.mjs → ssrfGuard.node-B749ae5Q.mjs} +1 -1
  41. package/dist/{types-DQdUb7OG.d.mts → types-ns3Q_WrP.d.mts} +2 -2
  42. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  43. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  44. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  45. package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -5
  46. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  47. package/dist/utils/ssrfGuard.node.mjs +1 -1
  48. package/dist/utils/ssrfGuard.workerd.mjs +1 -1
  49. package/package.json +4 -4
  50. package/src/composio.ts +26 -7
  51. package/src/errors/ComposioError.ts +3 -2
  52. package/src/index.ts +19 -0
  53. package/src/lib/toolRouterParams.ts +38 -14
  54. package/src/models/AuthConfigs.ts +18 -2
  55. package/src/models/ConnectedAccounts.ts +30 -17
  56. package/src/models/CustomTool.ts +0 -10
  57. package/src/models/Keyring.ts +2 -1
  58. package/src/models/MCP.ts +44 -36
  59. package/src/models/SessionWebhooks.ts +136 -0
  60. package/src/models/ToolRouter.ts +39 -4
  61. package/src/models/ToolRouterSession.ts +2 -2
  62. package/src/models/ToolRouterSessionFileMount.ts +3 -1
  63. package/src/models/Toolkits.ts +1 -0
  64. package/src/models/Tools.ts +6 -10
  65. package/src/models/Triggers.ts +48 -213
  66. package/src/models/Webhooks.ts +2 -0
  67. package/src/provider/ComposioProvider.ts +0 -1
  68. package/src/telemetry/BatchProcessor.ts +1 -1
  69. package/src/telemetry/Telemetry.ts +1 -1
  70. package/src/types/authConfigs.types.ts +14 -0
  71. package/src/types/connectedAccountAuthStates.types.ts +0 -1
  72. package/src/types/provider.types.ts +0 -1
  73. package/src/types/sessionWebhooks.types.ts +292 -0
  74. package/src/types/tool.types.ts +1 -1
  75. package/src/types/toolRouter.types.ts +33 -4
  76. package/src/types/toolkit.types.ts +21 -0
  77. package/src/types/triggers.types.ts +4 -0
  78. package/src/utils/crypto.ts +6 -5
  79. package/src/utils/env.ts +2 -5
  80. package/src/utils/fileUtils.node.ts +4 -3
  81. package/src/utils/logger.ts +19 -9
  82. package/src/utils/pusher.ts +5 -2
  83. package/src/utils/readResponseBody.ts +30 -17
  84. package/src/utils/transformers/authConfigs.ts +6 -3
  85. package/src/utils/transformers/toolkits.ts +7 -0
  86. package/src/utils/userCallback.ts +3 -1
  87. package/src/utils/webhookVerification.ts +211 -0
  88. package/dist/composio-DaokW5sV.d.mts +0 -9593
@@ -6576,7 +6576,7 @@ type ToolRetrievalOptions = {
6576
6576
  *
6577
6577
  * @example Override with specific version
6578
6578
  * ```typescript
6579
- * const tool = await tools.getRawComposioToolBySlug('GITHUB_CREATE_ISSUE', {
6579
+ * const tool = await tools.getRawComposioToolBySlug('GITHUB_CREATE_AN_ISSUE', {
6580
6580
  * version: '20250909_00'
6581
6581
  * });
6582
6582
  * ```
@@ -28815,7 +28815,6 @@ declare const MCPServerSchema: z$1.ZodObject<{
28815
28815
  type: "single" | "multi";
28816
28816
  status: "error" | "active" | "inactive";
28817
28817
  id: string;
28818
- createdAt: string;
28819
28818
  updatedAt: string;
28820
28819
  config: {
28821
28820
  name: string;
@@ -28826,10 +28825,10 @@ declare const MCPServerSchema: z$1.ZodObject<{
28826
28825
  tools: string[];
28827
28826
  toolkits: string[];
28828
28827
  };
28828
+ createdAt: string;
28829
28829
  }, {
28830
28830
  type: "single" | "multi";
28831
28831
  id: string;
28832
- createdAt: string;
28833
28832
  updatedAt: string;
28834
28833
  config: {
28835
28834
  name: string;
@@ -28840,6 +28839,7 @@ declare const MCPServerSchema: z$1.ZodObject<{
28840
28839
  tools: string[];
28841
28840
  toolkits: string[];
28842
28841
  };
28842
+ createdAt: string;
28843
28843
  status?: "error" | "active" | "inactive" | undefined;
28844
28844
  }>;
28845
28845
  type MCPServer = z$1.infer<typeof MCPServerSchema>;
@@ -28882,7 +28882,6 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28882
28882
  type: "single" | "multi";
28883
28883
  status: "error" | "active" | "inactive";
28884
28884
  id: string;
28885
- createdAt: string;
28886
28885
  updatedAt: string;
28887
28886
  config: {
28888
28887
  name: string;
@@ -28893,10 +28892,10 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28893
28892
  tools: string[];
28894
28893
  toolkits: string[];
28895
28894
  };
28895
+ createdAt: string;
28896
28896
  }, {
28897
28897
  type: "single" | "multi";
28898
28898
  id: string;
28899
- createdAt: string;
28900
28899
  updatedAt: string;
28901
28900
  config: {
28902
28901
  name: string;
@@ -28907,6 +28906,7 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28907
28906
  tools: string[];
28908
28907
  toolkits: string[];
28909
28908
  };
28909
+ createdAt: string;
28910
28910
  status?: "error" | "active" | "inactive" | undefined;
28911
28911
  }>, "many">;
28912
28912
  total: z$1.ZodNumber;
@@ -28917,7 +28917,6 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28917
28917
  type: "single" | "multi";
28918
28918
  status: "error" | "active" | "inactive";
28919
28919
  id: string;
28920
- createdAt: string;
28921
28920
  updatedAt: string;
28922
28921
  config: {
28923
28922
  name: string;
@@ -28928,6 +28927,7 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28928
28927
  tools: string[];
28929
28928
  toolkits: string[];
28930
28929
  };
28930
+ createdAt: string;
28931
28931
  }[];
28932
28932
  total: number;
28933
28933
  page: number;
@@ -28936,7 +28936,6 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28936
28936
  items: {
28937
28937
  type: "single" | "multi";
28938
28938
  id: string;
28939
- createdAt: string;
28940
28939
  updatedAt: string;
28941
28940
  config: {
28942
28941
  name: string;
@@ -28947,6 +28946,7 @@ declare const MCPServerListResponseSchema: z$1.ZodObject<{
28947
28946
  tools: string[];
28948
28947
  toolkits: string[];
28949
28948
  };
28949
+ createdAt: string;
28950
28950
  status?: "error" | "active" | "inactive" | undefined;
28951
28951
  }[];
28952
28952
  total: number;
@@ -29009,7 +29009,6 @@ declare const MCPServerCreateResponseSchema: z$1.ZodObject<{
29009
29009
  type: "single" | "multi";
29010
29010
  status: "error" | "active" | "inactive";
29011
29011
  id: string;
29012
- createdAt: string;
29013
29012
  updatedAt: string;
29014
29013
  config: {
29015
29014
  name: string;
@@ -29020,10 +29019,10 @@ declare const MCPServerCreateResponseSchema: z$1.ZodObject<{
29020
29019
  tools: string[];
29021
29020
  toolkits: string[];
29022
29021
  };
29022
+ createdAt: string;
29023
29023
  }, {
29024
29024
  type: "single" | "multi";
29025
29025
  id: string;
29026
- createdAt: string;
29027
29026
  updatedAt: string;
29028
29027
  config: {
29029
29028
  name: string;
@@ -29034,6 +29033,7 @@ declare const MCPServerCreateResponseSchema: z$1.ZodObject<{
29034
29033
  tools: string[];
29035
29034
  toolkits: string[];
29036
29035
  };
29036
+ createdAt: string;
29037
29037
  status?: "error" | "active" | "inactive" | undefined;
29038
29038
  }>;
29039
29039
  type MCPServerCreateResponse = z$1.infer<typeof MCPServerCreateResponseSchema>;
@@ -29100,14 +29100,14 @@ declare const CustomCreateResponseSchema: z$1.ZodObject<{
29100
29100
  name: string;
29101
29101
  id: string;
29102
29102
  status?: string | null | undefined;
29103
- createdAt?: string | null | undefined;
29104
29103
  updatedAt?: string | null | undefined;
29104
+ createdAt?: string | null | undefined;
29105
29105
  }, {
29106
29106
  name: string;
29107
29107
  id: string;
29108
29108
  status?: string | null | undefined;
29109
- createdAt?: string | null | undefined;
29110
29109
  updatedAt?: string | null | undefined;
29110
+ createdAt?: string | null | undefined;
29111
29111
  }>;
29112
29112
  type CustomCreateResponse = z$1.infer<typeof CustomCreateResponseSchema>;
29113
29113
  declare const ComposioCustomCreateResponseSchema: z$1.ZodObject<{
@@ -29141,30 +29141,30 @@ declare const McpListResponseSchema: z$1.ZodObject<{
29141
29141
  name: string;
29142
29142
  id: string;
29143
29143
  status?: string | undefined;
29144
- createdAt?: string | undefined;
29145
29144
  updatedAt?: string | undefined;
29145
+ createdAt?: string | undefined;
29146
29146
  }, {
29147
29147
  name: string;
29148
29148
  id: string;
29149
29149
  status?: string | undefined;
29150
- createdAt?: string | undefined;
29151
29150
  updatedAt?: string | undefined;
29151
+ createdAt?: string | undefined;
29152
29152
  }>, "many">>;
29153
29153
  }, "strip", z$1.ZodTypeAny, {
29154
29154
  items?: {
29155
29155
  name: string;
29156
29156
  id: string;
29157
29157
  status?: string | undefined;
29158
- createdAt?: string | undefined;
29159
29158
  updatedAt?: string | undefined;
29159
+ createdAt?: string | undefined;
29160
29160
  }[] | undefined;
29161
29161
  }, {
29162
29162
  items?: {
29163
29163
  name: string;
29164
29164
  id: string;
29165
29165
  status?: string | undefined;
29166
- createdAt?: string | undefined;
29167
29166
  updatedAt?: string | undefined;
29167
+ createdAt?: string | undefined;
29168
29168
  }[] | undefined;
29169
29169
  }>;
29170
29170
  declare const ComposioMcpListResponseSchema: z$1.ZodObject<{
@@ -29241,8 +29241,8 @@ declare const McpRetrieveResponseSchema: z$1.ZodObject<{
29241
29241
  tools?: string[] | undefined;
29242
29242
  toolkits?: string[] | undefined;
29243
29243
  authConfigIds?: string[] | undefined;
29244
- createdAt?: string | undefined;
29245
29244
  updatedAt?: string | undefined;
29245
+ createdAt?: string | undefined;
29246
29246
  managedAuthViaComposio?: boolean | undefined;
29247
29247
  }, {
29248
29248
  name: string;
@@ -29257,8 +29257,8 @@ declare const McpRetrieveResponseSchema: z$1.ZodObject<{
29257
29257
  tools?: string[] | undefined;
29258
29258
  toolkits?: string[] | undefined;
29259
29259
  authConfigIds?: string[] | undefined;
29260
- createdAt?: string | undefined;
29261
29260
  updatedAt?: string | undefined;
29261
+ createdAt?: string | undefined;
29262
29262
  managedAuthViaComposio?: boolean | undefined;
29263
29263
  }>;
29264
29264
  declare const ComposioMcpRetrieveResponseSchema: z$1.ZodObject<{
@@ -29329,16 +29329,16 @@ declare const McpUpdateResponseSchema: z$1.ZodObject<{
29329
29329
  status?: string | undefined;
29330
29330
  tools?: string[] | undefined;
29331
29331
  toolkits?: string[] | undefined;
29332
- createdAt?: string | undefined;
29333
29332
  updatedAt?: string | undefined;
29333
+ createdAt?: string | undefined;
29334
29334
  }, {
29335
29335
  name: string;
29336
29336
  id: string;
29337
29337
  status?: string | undefined;
29338
29338
  tools?: string[] | undefined;
29339
29339
  toolkits?: string[] | undefined;
29340
- createdAt?: string | undefined;
29341
29340
  updatedAt?: string | undefined;
29341
+ createdAt?: string | undefined;
29342
29342
  }>;
29343
29343
  declare const ComposioMcpUpdateResponseSchema: z$1.ZodObject<{
29344
29344
  id: z$1.ZodString;
@@ -30127,31 +30127,31 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
30127
30127
  sandbox_mount_prefix: z.ZodString;
30128
30128
  size: z.ZodNumber;
30129
30129
  }, "strip", z.ZodTypeAny, {
30130
+ size: number;
30130
30131
  last_modified: string;
30131
30132
  mount_relative_path: string;
30132
30133
  sandbox_mount_prefix: string;
30133
- size: number;
30134
30134
  }, {
30135
+ size: number;
30135
30136
  last_modified: string;
30136
30137
  mount_relative_path: string;
30137
30138
  sandbox_mount_prefix: string;
30138
- size: number;
30139
30139
  }>, "many">;
30140
30140
  next_cursor: z.ZodOptional<z.ZodString>;
30141
30141
  }, "strip", z.ZodTypeAny, {
30142
30142
  items: {
30143
+ size: number;
30143
30144
  last_modified: string;
30144
30145
  mount_relative_path: string;
30145
30146
  sandbox_mount_prefix: string;
30146
- size: number;
30147
30147
  }[];
30148
30148
  next_cursor?: string | undefined;
30149
30149
  }, {
30150
30150
  items: {
30151
+ size: number;
30151
30152
  last_modified: string;
30152
30153
  mount_relative_path: string;
30153
30154
  sandbox_mount_prefix: string;
30154
- size: number;
30155
30155
  }[];
30156
30156
  next_cursor?: string | undefined;
30157
30157
  }>, {
@@ -30164,10 +30164,10 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
30164
30164
  nextCursor: string | undefined;
30165
30165
  }, {
30166
30166
  items: {
30167
+ size: number;
30167
30168
  last_modified: string;
30168
30169
  mount_relative_path: string;
30169
30170
  sandbox_mount_prefix: string;
30170
- size: number;
30171
30171
  }[];
30172
30172
  next_cursor?: string | undefined;
30173
30173
  }>;
@@ -30210,14 +30210,14 @@ declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
30210
30210
  sandbox_mount_prefix: z.ZodString;
30211
30211
  download_url: z.ZodString;
30212
30212
  }, "strip", z.ZodTypeAny, {
30213
+ expires_at: string;
30213
30214
  mount_relative_path: string;
30214
30215
  sandbox_mount_prefix: string;
30215
- expires_at: string;
30216
30216
  download_url: string;
30217
30217
  }, {
30218
+ expires_at: string;
30218
30219
  mount_relative_path: string;
30219
30220
  sandbox_mount_prefix: string;
30220
- expires_at: string;
30221
30221
  download_url: string;
30222
30222
  }>, {
30223
30223
  expiresAt: string;
@@ -30225,9 +30225,9 @@ declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
30225
30225
  sandboxMountPrefix: string;
30226
30226
  downloadUrl: string;
30227
30227
  }, {
30228
+ expires_at: string;
30228
30229
  mount_relative_path: string;
30229
30230
  sandbox_mount_prefix: string;
30230
- expires_at: string;
30231
30231
  download_url: string;
30232
30232
  }>;
30233
30233
  /** Parsed shape from API response. Use with `new RemoteFile(data)`. */
@@ -30400,12 +30400,14 @@ declare class ToolRouterSessionFilesMount {
30400
30400
  * @example
30401
30401
  * ```typescript
30402
30402
  * // From native File (e.g. from input[type=file])
30403
- * await session.experimental.files.upload(fileInput.files[0]);
30403
+ * const file = new File(['hello world'], 'hello.txt', { type: 'text/plain' });
30404
+ * await session.experimental.files.upload(file);
30404
30405
  * ```
30405
30406
  *
30406
30407
  * @example
30407
30408
  * ```typescript
30408
30409
  * // From raw buffer
30410
+ * const buffer = new TextEncoder().encode(JSON.stringify({ hello: 'world' }));
30409
30411
  * await session.experimental.files.upload(buffer, { remotePath: 'data.json', mimetype: 'application/json' });
30410
30412
  * ```
30411
30413
  */
@@ -30507,12 +30509,12 @@ declare const ToolRouterConfigManageConnectionsSchema: z.ZodObject<{
30507
30509
  callbackUrl: z.ZodOptional<z.ZodString>;
30508
30510
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
30509
30511
  }, "strict", z.ZodTypeAny, {
30510
- enable?: boolean | undefined;
30511
30512
  callbackUrl?: string | undefined;
30513
+ enable?: boolean | undefined;
30512
30514
  waitForConnections?: boolean | undefined;
30513
30515
  }, {
30514
- enable?: boolean | undefined;
30515
30516
  callbackUrl?: string | undefined;
30517
+ enable?: boolean | undefined;
30516
30518
  waitForConnections?: boolean | undefined;
30517
30519
  }>;
30518
30520
  declare const ToolRouterToolkitsParamSchema: z.ZodArray<z.ZodString, "many">;
@@ -30605,8 +30607,8 @@ declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
30605
30607
  enable: boolean;
30606
30608
  callbackUrl?: string | undefined;
30607
30609
  }, {
30608
- enable?: boolean | undefined;
30609
30610
  callbackUrl?: string | undefined;
30611
+ enable?: boolean | undefined;
30610
30612
  }>;
30611
30613
  declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
30612
30614
  declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
@@ -30819,13 +30821,33 @@ declare const ToolRouterHookPromptInjectionCheckHandlerSchema: z.ZodObject<{
30819
30821
  action: "block";
30820
30822
  }>;
30821
30823
  type ToolRouterHookPromptInjectionCheckHandler = z.infer<typeof ToolRouterHookPromptInjectionCheckHandlerSchema>;
30824
+ /**
30825
+ * Sends the call to the project's session webhook URL and waits for your
30826
+ * endpoint's answer: let it run, block it, or change it. Read the request in
30827
+ * your endpoint with `composio.sessions.webhooks.parse()`.
30828
+ */
30829
+ declare const ToolRouterHookWebhookHandlerSchema: z.ZodObject<{
30830
+ type: z.ZodLiteral<"webhook">;
30831
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
30832
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
30833
+ }, "strict", z.ZodTypeAny, {
30834
+ type: "webhook";
30835
+ fallbackAction: "block" | "continue";
30836
+ timeoutMs?: number | undefined;
30837
+ }, {
30838
+ type: "webhook";
30839
+ fallbackAction: "block" | "continue";
30840
+ timeoutMs?: number | undefined;
30841
+ }>;
30842
+ type ToolRouterHookWebhookHandler = z.infer<typeof ToolRouterHookWebhookHandlerSchema>;
30822
30843
  /**
30823
30844
  * A hook on a session's tool calls. A `before_execute` hook can block a call
30824
30845
  * before it runs; an `after_execute` hook can block its result before the
30825
- * agent sees it.
30846
+ * agent sees it. A hook with a `webhook` handler can also change the call or
30847
+ * its result.
30826
30848
  */
30827
30849
  declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30828
- handler: z.ZodObject<{
30850
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30829
30851
  type: z.ZodLiteral<"condition_check">;
30830
30852
  condition: z.ZodString;
30831
30853
  action: z.ZodLiteral<"block">;
@@ -30837,7 +30859,19 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30837
30859
  type: "condition_check";
30838
30860
  condition: string;
30839
30861
  action: "block";
30840
- }>;
30862
+ }>, z.ZodObject<{
30863
+ type: z.ZodLiteral<"webhook">;
30864
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
30865
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
30866
+ }, "strict", z.ZodTypeAny, {
30867
+ type: "webhook";
30868
+ fallbackAction: "block" | "continue";
30869
+ timeoutMs?: number | undefined;
30870
+ }, {
30871
+ type: "webhook";
30872
+ fallbackAction: "block" | "continue";
30873
+ timeoutMs?: number | undefined;
30874
+ }>]>;
30841
30875
  id: z.ZodString;
30842
30876
  name: z.ZodOptional<z.ZodString>;
30843
30877
  appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
@@ -30855,6 +30889,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30855
30889
  type: "condition_check";
30856
30890
  condition: string;
30857
30891
  action: "block";
30892
+ } | {
30893
+ type: "webhook";
30894
+ fallbackAction: "block" | "continue";
30895
+ timeoutMs?: number | undefined;
30858
30896
  };
30859
30897
  appliesTo: "all" | {
30860
30898
  toolkits: string[];
@@ -30867,6 +30905,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30867
30905
  type: "condition_check";
30868
30906
  condition: string;
30869
30907
  action: "block";
30908
+ } | {
30909
+ type: "webhook";
30910
+ fallbackAction: "block" | "continue";
30911
+ timeoutMs?: number | undefined;
30870
30912
  };
30871
30913
  appliesTo: "all" | {
30872
30914
  toolkits: string[];
@@ -30894,6 +30936,18 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30894
30936
  }, {
30895
30937
  type: "prompt_injection_check";
30896
30938
  action: "block";
30939
+ }>, z.ZodObject<{
30940
+ type: z.ZodLiteral<"webhook">;
30941
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
30942
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
30943
+ }, "strict", z.ZodTypeAny, {
30944
+ type: "webhook";
30945
+ fallbackAction: "block" | "continue";
30946
+ timeoutMs?: number | undefined;
30947
+ }, {
30948
+ type: "webhook";
30949
+ fallbackAction: "block" | "continue";
30950
+ timeoutMs?: number | undefined;
30897
30951
  }>]>;
30898
30952
  id: z.ZodString;
30899
30953
  name: z.ZodOptional<z.ZodString>;
@@ -30915,6 +30969,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30915
30969
  } | {
30916
30970
  type: "prompt_injection_check";
30917
30971
  action: "block";
30972
+ } | {
30973
+ type: "webhook";
30974
+ fallbackAction: "block" | "continue";
30975
+ timeoutMs?: number | undefined;
30918
30976
  };
30919
30977
  appliesTo: "all" | {
30920
30978
  toolkits: string[];
@@ -30930,6 +30988,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30930
30988
  } | {
30931
30989
  type: "prompt_injection_check";
30932
30990
  action: "block";
30991
+ } | {
30992
+ type: "webhook";
30993
+ fallbackAction: "block" | "continue";
30994
+ timeoutMs?: number | undefined;
30933
30995
  };
30934
30996
  appliesTo: "all" | {
30935
30997
  toolkits: string[];
@@ -31145,12 +31207,12 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31145
31207
  callbackUrl: z.ZodOptional<z.ZodString>;
31146
31208
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
31147
31209
  }, "strict", z.ZodTypeAny, {
31148
- enable?: boolean | undefined;
31149
31210
  callbackUrl?: string | undefined;
31211
+ enable?: boolean | undefined;
31150
31212
  waitForConnections?: boolean | undefined;
31151
31213
  }, {
31152
- enable?: boolean | undefined;
31153
31214
  callbackUrl?: string | undefined;
31215
+ enable?: boolean | undefined;
31154
31216
  waitForConnections?: boolean | undefined;
31155
31217
  }>]>>>>;
31156
31218
  sandbox: z.ZodOptional<z.ZodOptional<z.ZodObject<{
@@ -31206,7 +31268,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31206
31268
  enable: boolean;
31207
31269
  }>]>>>;
31208
31270
  hooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31209
- handler: z.ZodObject<{
31271
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31210
31272
  type: z.ZodLiteral<"condition_check">;
31211
31273
  condition: z.ZodString;
31212
31274
  action: z.ZodLiteral<"block">;
@@ -31218,7 +31280,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31218
31280
  type: "condition_check";
31219
31281
  condition: string;
31220
31282
  action: "block";
31221
- }>;
31283
+ }>, z.ZodObject<{
31284
+ type: z.ZodLiteral<"webhook">;
31285
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31286
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31287
+ }, "strict", z.ZodTypeAny, {
31288
+ type: "webhook";
31289
+ fallbackAction: "block" | "continue";
31290
+ timeoutMs?: number | undefined;
31291
+ }, {
31292
+ type: "webhook";
31293
+ fallbackAction: "block" | "continue";
31294
+ timeoutMs?: number | undefined;
31295
+ }>]>;
31222
31296
  id: z.ZodString;
31223
31297
  name: z.ZodOptional<z.ZodString>;
31224
31298
  appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
@@ -31236,6 +31310,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31236
31310
  type: "condition_check";
31237
31311
  condition: string;
31238
31312
  action: "block";
31313
+ } | {
31314
+ type: "webhook";
31315
+ fallbackAction: "block" | "continue";
31316
+ timeoutMs?: number | undefined;
31239
31317
  };
31240
31318
  appliesTo: "all" | {
31241
31319
  toolkits: string[];
@@ -31248,6 +31326,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31248
31326
  type: "condition_check";
31249
31327
  condition: string;
31250
31328
  action: "block";
31329
+ } | {
31330
+ type: "webhook";
31331
+ fallbackAction: "block" | "continue";
31332
+ timeoutMs?: number | undefined;
31251
31333
  };
31252
31334
  appliesTo: "all" | {
31253
31335
  toolkits: string[];
@@ -31275,6 +31357,18 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31275
31357
  }, {
31276
31358
  type: "prompt_injection_check";
31277
31359
  action: "block";
31360
+ }>, z.ZodObject<{
31361
+ type: z.ZodLiteral<"webhook">;
31362
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31363
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31364
+ }, "strict", z.ZodTypeAny, {
31365
+ type: "webhook";
31366
+ fallbackAction: "block" | "continue";
31367
+ timeoutMs?: number | undefined;
31368
+ }, {
31369
+ type: "webhook";
31370
+ fallbackAction: "block" | "continue";
31371
+ timeoutMs?: number | undefined;
31278
31372
  }>]>;
31279
31373
  id: z.ZodString;
31280
31374
  name: z.ZodOptional<z.ZodString>;
@@ -31296,6 +31390,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31296
31390
  } | {
31297
31391
  type: "prompt_injection_check";
31298
31392
  action: "block";
31393
+ } | {
31394
+ type: "webhook";
31395
+ fallbackAction: "block" | "continue";
31396
+ timeoutMs?: number | undefined;
31299
31397
  };
31300
31398
  appliesTo: "all" | {
31301
31399
  toolkits: string[];
@@ -31311,6 +31409,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31311
31409
  } | {
31312
31410
  type: "prompt_injection_check";
31313
31411
  action: "block";
31412
+ } | {
31413
+ type: "webhook";
31414
+ fallbackAction: "block" | "continue";
31415
+ timeoutMs?: number | undefined;
31314
31416
  };
31315
31417
  appliesTo: "all" | {
31316
31418
  toolkits: string[];
@@ -31398,9 +31500,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31398
31500
  } | {
31399
31501
  requireApproval: string[];
31400
31502
  } | undefined;
31401
- preload?: {
31402
- tools?: string[] | "all" | undefined;
31403
- } | undefined;
31404
31503
  experimental?: {
31405
31504
  assistivePrompt?: {
31406
31505
  userTimezone?: string | undefined;
@@ -31412,6 +31511,9 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31412
31511
  sessionConfigId?: string | undefined;
31413
31512
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31414
31513
  } | undefined;
31514
+ preload?: {
31515
+ tools?: string[] | "all" | undefined;
31516
+ } | undefined;
31415
31517
  sessionPreset?: "direct_tools" | undefined;
31416
31518
  mcp?: boolean | undefined;
31417
31519
  instant?: false | {
@@ -31431,8 +31533,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31431
31533
  authConfigs?: Record<string, string> | undefined;
31432
31534
  connectedAccounts?: Record<string, string | string[]> | undefined;
31433
31535
  manageConnections?: boolean | {
31434
- enable?: boolean | undefined;
31435
31536
  callbackUrl?: string | undefined;
31537
+ enable?: boolean | undefined;
31436
31538
  waitForConnections?: boolean | undefined;
31437
31539
  } | undefined;
31438
31540
  sandbox?: {
@@ -31462,6 +31564,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31462
31564
  type: "condition_check";
31463
31565
  condition: string;
31464
31566
  action: "block";
31567
+ } | {
31568
+ type: "webhook";
31569
+ fallbackAction: "block" | "continue";
31570
+ timeoutMs?: number | undefined;
31465
31571
  };
31466
31572
  appliesTo: "all" | {
31467
31573
  toolkits: string[];
@@ -31477,6 +31583,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31477
31583
  } | {
31478
31584
  type: "prompt_injection_check";
31479
31585
  action: "block";
31586
+ } | {
31587
+ type: "webhook";
31588
+ fallbackAction: "block" | "continue";
31589
+ timeoutMs?: number | undefined;
31480
31590
  };
31481
31591
  appliesTo: "all" | {
31482
31592
  toolkits: string[];
@@ -31514,9 +31624,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31514
31624
  } | {
31515
31625
  requireApproval: string[];
31516
31626
  } | undefined;
31517
- preload?: {
31518
- tools?: string[] | "all" | undefined;
31519
- } | undefined;
31520
31627
  experimental?: {
31521
31628
  assistivePrompt?: {
31522
31629
  userTimezone?: string | undefined;
@@ -31528,6 +31635,9 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31528
31635
  sessionConfigId?: string | undefined;
31529
31636
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31530
31637
  } | undefined;
31638
+ preload?: {
31639
+ tools?: string[] | "all" | undefined;
31640
+ } | undefined;
31531
31641
  sessionPreset?: "direct_tools" | undefined;
31532
31642
  mcp?: boolean | undefined;
31533
31643
  instant?: false | {
@@ -31547,8 +31657,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31547
31657
  authConfigs?: Record<string, string> | undefined;
31548
31658
  connectedAccounts?: Record<string, string | string[]> | undefined;
31549
31659
  manageConnections?: boolean | {
31550
- enable?: boolean | undefined;
31551
31660
  callbackUrl?: string | undefined;
31661
+ enable?: boolean | undefined;
31552
31662
  waitForConnections?: boolean | undefined;
31553
31663
  } | undefined;
31554
31664
  sandbox?: {
@@ -31578,6 +31688,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31578
31688
  type: "condition_check";
31579
31689
  condition: string;
31580
31690
  action: "block";
31691
+ } | {
31692
+ type: "webhook";
31693
+ fallbackAction: "block" | "continue";
31694
+ timeoutMs?: number | undefined;
31581
31695
  };
31582
31696
  appliesTo: "all" | {
31583
31697
  toolkits: string[];
@@ -31593,6 +31707,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31593
31707
  } | {
31594
31708
  type: "prompt_injection_check";
31595
31709
  action: "block";
31710
+ } | {
31711
+ type: "webhook";
31712
+ fallbackAction: "block" | "continue";
31713
+ timeoutMs?: number | undefined;
31596
31714
  };
31597
31715
  appliesTo: "all" | {
31598
31716
  toolkits: string[];
@@ -31630,9 +31748,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31630
31748
  } | {
31631
31749
  requireApproval: string[];
31632
31750
  } | undefined;
31633
- preload?: {
31634
- tools?: string[] | "all" | undefined;
31635
- } | undefined;
31636
31751
  experimental?: {
31637
31752
  assistivePrompt?: {
31638
31753
  userTimezone?: string | undefined;
@@ -31644,6 +31759,9 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31644
31759
  sessionConfigId?: string | undefined;
31645
31760
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31646
31761
  } | undefined;
31762
+ preload?: {
31763
+ tools?: string[] | "all" | undefined;
31764
+ } | undefined;
31647
31765
  sessionPreset?: "direct_tools" | undefined;
31648
31766
  mcp?: boolean | undefined;
31649
31767
  instant?: false | {
@@ -31663,8 +31781,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31663
31781
  authConfigs?: Record<string, string> | undefined;
31664
31782
  connectedAccounts?: Record<string, string | string[]> | undefined;
31665
31783
  manageConnections?: boolean | {
31666
- enable?: boolean | undefined;
31667
31784
  callbackUrl?: string | undefined;
31785
+ enable?: boolean | undefined;
31668
31786
  waitForConnections?: boolean | undefined;
31669
31787
  } | undefined;
31670
31788
  sandbox?: {
@@ -31694,6 +31812,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31694
31812
  type: "condition_check";
31695
31813
  condition: string;
31696
31814
  action: "block";
31815
+ } | {
31816
+ type: "webhook";
31817
+ fallbackAction: "block" | "continue";
31818
+ timeoutMs?: number | undefined;
31697
31819
  };
31698
31820
  appliesTo: "all" | {
31699
31821
  toolkits: string[];
@@ -31709,6 +31831,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31709
31831
  } | {
31710
31832
  type: "prompt_injection_check";
31711
31833
  action: "block";
31834
+ } | {
31835
+ type: "webhook";
31836
+ fallbackAction: "block" | "continue";
31837
+ timeoutMs?: number | undefined;
31712
31838
  };
31713
31839
  appliesTo: "all" | {
31714
31840
  toolkits: string[];
@@ -31746,9 +31872,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31746
31872
  } | {
31747
31873
  requireApproval: string[];
31748
31874
  } | undefined;
31749
- preload?: {
31750
- tools?: string[] | "all" | undefined;
31751
- } | undefined;
31752
31875
  experimental?: {
31753
31876
  assistivePrompt?: {
31754
31877
  userTimezone?: string | undefined;
@@ -31760,6 +31883,9 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31760
31883
  sessionConfigId?: string | undefined;
31761
31884
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31762
31885
  } | undefined;
31886
+ preload?: {
31887
+ tools?: string[] | "all" | undefined;
31888
+ } | undefined;
31763
31889
  sessionPreset?: "direct_tools" | undefined;
31764
31890
  mcp?: boolean | undefined;
31765
31891
  instant?: false | {
@@ -31779,8 +31905,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31779
31905
  authConfigs?: Record<string, string> | undefined;
31780
31906
  connectedAccounts?: Record<string, string | string[]> | undefined;
31781
31907
  manageConnections?: boolean | {
31782
- enable?: boolean | undefined;
31783
31908
  callbackUrl?: string | undefined;
31909
+ enable?: boolean | undefined;
31784
31910
  waitForConnections?: boolean | undefined;
31785
31911
  } | undefined;
31786
31912
  sandbox?: {
@@ -31810,6 +31936,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31810
31936
  type: "condition_check";
31811
31937
  condition: string;
31812
31938
  action: "block";
31939
+ } | {
31940
+ type: "webhook";
31941
+ fallbackAction: "block" | "continue";
31942
+ timeoutMs?: number | undefined;
31813
31943
  };
31814
31944
  appliesTo: "all" | {
31815
31945
  toolkits: string[];
@@ -31825,6 +31955,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31825
31955
  } | {
31826
31956
  type: "prompt_injection_check";
31827
31957
  action: "block";
31958
+ } | {
31959
+ type: "webhook";
31960
+ fallbackAction: "block" | "continue";
31961
+ timeoutMs?: number | undefined;
31828
31962
  };
31829
31963
  appliesTo: "all" | {
31830
31964
  toolkits: string[];
@@ -31862,9 +31996,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31862
31996
  } | {
31863
31997
  requireApproval: string[];
31864
31998
  } | undefined;
31865
- preload?: {
31866
- tools?: string[] | "all" | undefined;
31867
- } | undefined;
31868
31999
  experimental?: {
31869
32000
  assistivePrompt?: {
31870
32001
  userTimezone?: string | undefined;
@@ -31876,6 +32007,9 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31876
32007
  sessionConfigId?: string | undefined;
31877
32008
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
31878
32009
  } | undefined;
32010
+ preload?: {
32011
+ tools?: string[] | "all" | undefined;
32012
+ } | undefined;
31879
32013
  sessionPreset?: "direct_tools" | undefined;
31880
32014
  mcp?: boolean | undefined;
31881
32015
  instant?: false | {
@@ -31895,8 +32029,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31895
32029
  authConfigs?: Record<string, string> | undefined;
31896
32030
  connectedAccounts?: Record<string, string | string[]> | undefined;
31897
32031
  manageConnections?: boolean | {
31898
- enable?: boolean | undefined;
31899
32032
  callbackUrl?: string | undefined;
32033
+ enable?: boolean | undefined;
31900
32034
  waitForConnections?: boolean | undefined;
31901
32035
  } | undefined;
31902
32036
  sandbox?: {
@@ -31926,6 +32060,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31926
32060
  type: "condition_check";
31927
32061
  condition: string;
31928
32062
  action: "block";
32063
+ } | {
32064
+ type: "webhook";
32065
+ fallbackAction: "block" | "continue";
32066
+ timeoutMs?: number | undefined;
31929
32067
  };
31930
32068
  appliesTo: "all" | {
31931
32069
  toolkits: string[];
@@ -31941,6 +32079,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31941
32079
  } | {
31942
32080
  type: "prompt_injection_check";
31943
32081
  action: "block";
32082
+ } | {
32083
+ type: "webhook";
32084
+ fallbackAction: "block" | "continue";
32085
+ timeoutMs?: number | undefined;
31944
32086
  };
31945
32087
  appliesTo: "all" | {
31946
32088
  toolkits: string[];
@@ -32612,8 +32754,9 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
32612
32754
  type ToolRouterSessionSearchResponse = z.infer<typeof ToolRouterSessionSearchResponseSchema>;
32613
32755
  /**
32614
32756
  * What one session hook decided about a call. `unavailable` means the hook
32615
- * could not be evaluated (for example it timed out); it does not block the
32616
- * call.
32757
+ * could not be evaluated (for example it timed out), and `detail` says why
32758
+ * when the API gives a reason. An unavailable hook does not block the call,
32759
+ * unless it has a `webhook` handler with `fallbackAction: 'block'`.
32617
32760
  */
32618
32761
  declare const ToolRouterHookResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
32619
32762
  id: z.ZodString;
@@ -32630,12 +32773,15 @@ declare const ToolRouterHookResultSchema: z.ZodDiscriminatedUnion<"status", [z.Z
32630
32773
  }>, z.ZodObject<{
32631
32774
  id: z.ZodString;
32632
32775
  status: z.ZodLiteral<"unavailable">;
32776
+ detail: z.ZodOptional<z.ZodString>;
32633
32777
  }, "strip", z.ZodTypeAny, {
32634
32778
  status: "unavailable";
32635
32779
  id: string;
32780
+ detail?: string | undefined;
32636
32781
  }, {
32637
32782
  status: "unavailable";
32638
32783
  id: string;
32784
+ detail?: string | undefined;
32639
32785
  }>]>;
32640
32786
  type ToolRouterHookResult = z.infer<typeof ToolRouterHookResultSchema>;
32641
32787
  /**
@@ -32695,12 +32841,15 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32695
32841
  }>, z.ZodObject<{
32696
32842
  id: z.ZodString;
32697
32843
  status: z.ZodLiteral<"unavailable">;
32844
+ detail: z.ZodOptional<z.ZodString>;
32698
32845
  }, "strip", z.ZodTypeAny, {
32699
32846
  status: "unavailable";
32700
32847
  id: string;
32848
+ detail?: string | undefined;
32701
32849
  }, {
32702
32850
  status: "unavailable";
32703
32851
  id: string;
32852
+ detail?: string | undefined;
32704
32853
  }>]>, "many">>;
32705
32854
  }, "strip", z.ZodTypeAny, {
32706
32855
  data: Record<string, unknown>;
@@ -32719,6 +32868,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32719
32868
  } | {
32720
32869
  status: "unavailable";
32721
32870
  id: string;
32871
+ detail?: string | undefined;
32722
32872
  })[] | undefined;
32723
32873
  }, {
32724
32874
  data: Record<string, unknown>;
@@ -32737,6 +32887,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32737
32887
  } | {
32738
32888
  status: "unavailable";
32739
32889
  id: string;
32890
+ detail?: string | undefined;
32740
32891
  })[] | undefined;
32741
32892
  }>;
32742
32893
  type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
@@ -32924,13 +33075,13 @@ declare const ToolRouterUpdateManageConnectionsSchema: z.ZodObject<{
32924
33075
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
32925
33076
  enableConnectionRemoval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32926
33077
  }, "strict", z.ZodTypeAny, {
32927
- enable?: boolean | undefined;
32928
33078
  callbackUrl?: string | null | undefined;
33079
+ enable?: boolean | undefined;
32929
33080
  waitForConnections?: boolean | undefined;
32930
33081
  enableConnectionRemoval?: boolean | null | undefined;
32931
33082
  }, {
32932
- enable?: boolean | undefined;
32933
33083
  callbackUrl?: string | null | undefined;
33084
+ enable?: boolean | undefined;
32934
33085
  waitForConnections?: boolean | undefined;
32935
33086
  enableConnectionRemoval?: boolean | null | undefined;
32936
33087
  }>;
@@ -33206,13 +33357,13 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33206
33357
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
33207
33358
  enableConnectionRemoval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33208
33359
  }, "strict", z.ZodTypeAny, {
33209
- enable?: boolean | undefined;
33210
33360
  callbackUrl?: string | null | undefined;
33361
+ enable?: boolean | undefined;
33211
33362
  waitForConnections?: boolean | undefined;
33212
33363
  enableConnectionRemoval?: boolean | null | undefined;
33213
33364
  }, {
33214
- enable?: boolean | undefined;
33215
33365
  callbackUrl?: string | null | undefined;
33366
+ enable?: boolean | undefined;
33216
33367
  waitForConnections?: boolean | undefined;
33217
33368
  enableConnectionRemoval?: boolean | null | undefined;
33218
33369
  }>]>>>>;
@@ -33269,7 +33420,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33269
33420
  enable: boolean;
33270
33421
  }>]>>>>;
33271
33422
  hooks: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33272
- handler: z.ZodObject<{
33423
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33273
33424
  type: z.ZodLiteral<"condition_check">;
33274
33425
  condition: z.ZodString;
33275
33426
  action: z.ZodLiteral<"block">;
@@ -33281,7 +33432,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33281
33432
  type: "condition_check";
33282
33433
  condition: string;
33283
33434
  action: "block";
33284
- }>;
33435
+ }>, z.ZodObject<{
33436
+ type: z.ZodLiteral<"webhook">;
33437
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
33438
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
33439
+ }, "strict", z.ZodTypeAny, {
33440
+ type: "webhook";
33441
+ fallbackAction: "block" | "continue";
33442
+ timeoutMs?: number | undefined;
33443
+ }, {
33444
+ type: "webhook";
33445
+ fallbackAction: "block" | "continue";
33446
+ timeoutMs?: number | undefined;
33447
+ }>]>;
33285
33448
  id: z.ZodString;
33286
33449
  name: z.ZodOptional<z.ZodString>;
33287
33450
  appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
@@ -33299,6 +33462,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33299
33462
  type: "condition_check";
33300
33463
  condition: string;
33301
33464
  action: "block";
33465
+ } | {
33466
+ type: "webhook";
33467
+ fallbackAction: "block" | "continue";
33468
+ timeoutMs?: number | undefined;
33302
33469
  };
33303
33470
  appliesTo: "all" | {
33304
33471
  toolkits: string[];
@@ -33311,6 +33478,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33311
33478
  type: "condition_check";
33312
33479
  condition: string;
33313
33480
  action: "block";
33481
+ } | {
33482
+ type: "webhook";
33483
+ fallbackAction: "block" | "continue";
33484
+ timeoutMs?: number | undefined;
33314
33485
  };
33315
33486
  appliesTo: "all" | {
33316
33487
  toolkits: string[];
@@ -33338,6 +33509,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33338
33509
  }, {
33339
33510
  type: "prompt_injection_check";
33340
33511
  action: "block";
33512
+ }>, z.ZodObject<{
33513
+ type: z.ZodLiteral<"webhook">;
33514
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
33515
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
33516
+ }, "strict", z.ZodTypeAny, {
33517
+ type: "webhook";
33518
+ fallbackAction: "block" | "continue";
33519
+ timeoutMs?: number | undefined;
33520
+ }, {
33521
+ type: "webhook";
33522
+ fallbackAction: "block" | "continue";
33523
+ timeoutMs?: number | undefined;
33341
33524
  }>]>;
33342
33525
  id: z.ZodString;
33343
33526
  name: z.ZodOptional<z.ZodString>;
@@ -33359,6 +33542,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33359
33542
  } | {
33360
33543
  type: "prompt_injection_check";
33361
33544
  action: "block";
33545
+ } | {
33546
+ type: "webhook";
33547
+ fallbackAction: "block" | "continue";
33548
+ timeoutMs?: number | undefined;
33362
33549
  };
33363
33550
  appliesTo: "all" | {
33364
33551
  toolkits: string[];
@@ -33374,6 +33561,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33374
33561
  } | {
33375
33562
  type: "prompt_injection_check";
33376
33563
  action: "block";
33564
+ } | {
33565
+ type: "webhook";
33566
+ fallbackAction: "block" | "continue";
33567
+ timeoutMs?: number | undefined;
33377
33568
  };
33378
33569
  appliesTo: "all" | {
33379
33570
  toolkits: string[];
@@ -33488,9 +33679,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33488
33679
  search?: {
33489
33680
  enable?: boolean | undefined;
33490
33681
  } | null | undefined;
33491
- preload?: {
33492
- tools?: string[] | "all" | undefined;
33493
- } | null | undefined;
33494
33682
  experimental?: {
33495
33683
  sessionConfigId?: string | undefined;
33496
33684
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33504,6 +33692,9 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33504
33692
  enable: boolean;
33505
33693
  } | null | undefined;
33506
33694
  } | null | undefined;
33695
+ preload?: {
33696
+ tools?: string[] | "all" | undefined;
33697
+ } | null | undefined;
33507
33698
  instant?: false | {
33508
33699
  tools?: Record<string, {
33509
33700
  enable: string[];
@@ -33521,8 +33712,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33521
33712
  authConfigs?: Record<string, string> | null | undefined;
33522
33713
  connectedAccounts?: Record<string, string[]> | null | undefined;
33523
33714
  manageConnections?: boolean | {
33524
- enable?: boolean | undefined;
33525
33715
  callbackUrl?: string | null | undefined;
33716
+ enable?: boolean | undefined;
33526
33717
  waitForConnections?: boolean | undefined;
33527
33718
  enableConnectionRemoval?: boolean | null | undefined;
33528
33719
  } | null | undefined;
@@ -33553,6 +33744,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33553
33744
  type: "condition_check";
33554
33745
  condition: string;
33555
33746
  action: "block";
33747
+ } | {
33748
+ type: "webhook";
33749
+ fallbackAction: "block" | "continue";
33750
+ timeoutMs?: number | undefined;
33556
33751
  };
33557
33752
  appliesTo: "all" | {
33558
33753
  toolkits: string[];
@@ -33568,6 +33763,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33568
33763
  } | {
33569
33764
  type: "prompt_injection_check";
33570
33765
  action: "block";
33766
+ } | {
33767
+ type: "webhook";
33768
+ fallbackAction: "block" | "continue";
33769
+ timeoutMs?: number | undefined;
33571
33770
  };
33572
33771
  appliesTo: "all" | {
33573
33772
  toolkits: string[];
@@ -33612,9 +33811,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33612
33811
  search?: {
33613
33812
  enable?: boolean | undefined;
33614
33813
  } | null | undefined;
33615
- preload?: {
33616
- tools?: string[] | "all" | undefined;
33617
- } | null | undefined;
33618
33814
  experimental?: {
33619
33815
  sessionConfigId?: string | undefined;
33620
33816
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33628,6 +33824,9 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33628
33824
  enable: boolean;
33629
33825
  } | null | undefined;
33630
33826
  } | null | undefined;
33827
+ preload?: {
33828
+ tools?: string[] | "all" | undefined;
33829
+ } | null | undefined;
33631
33830
  instant?: false | {
33632
33831
  tools?: Record<string, {
33633
33832
  enable: string[];
@@ -33645,8 +33844,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33645
33844
  authConfigs?: Record<string, string> | null | undefined;
33646
33845
  connectedAccounts?: Record<string, string | string[]> | null | undefined;
33647
33846
  manageConnections?: boolean | {
33648
- enable?: boolean | undefined;
33649
33847
  callbackUrl?: string | null | undefined;
33848
+ enable?: boolean | undefined;
33650
33849
  waitForConnections?: boolean | undefined;
33651
33850
  enableConnectionRemoval?: boolean | null | undefined;
33652
33851
  } | null | undefined;
@@ -33677,6 +33876,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33677
33876
  type: "condition_check";
33678
33877
  condition: string;
33679
33878
  action: "block";
33879
+ } | {
33880
+ type: "webhook";
33881
+ fallbackAction: "block" | "continue";
33882
+ timeoutMs?: number | undefined;
33680
33883
  };
33681
33884
  appliesTo: "all" | {
33682
33885
  toolkits: string[];
@@ -33692,6 +33895,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33692
33895
  } | {
33693
33896
  type: "prompt_injection_check";
33694
33897
  action: "block";
33898
+ } | {
33899
+ type: "webhook";
33900
+ fallbackAction: "block" | "continue";
33901
+ timeoutMs?: number | undefined;
33695
33902
  };
33696
33903
  appliesTo: "all" | {
33697
33904
  toolkits: string[];
@@ -33736,9 +33943,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33736
33943
  search?: {
33737
33944
  enable?: boolean | undefined;
33738
33945
  } | null | undefined;
33739
- preload?: {
33740
- tools?: string[] | "all" | undefined;
33741
- } | null | undefined;
33742
33946
  experimental?: {
33743
33947
  sessionConfigId?: string | undefined;
33744
33948
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33752,6 +33956,9 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33752
33956
  enable: boolean;
33753
33957
  } | null | undefined;
33754
33958
  } | null | undefined;
33959
+ preload?: {
33960
+ tools?: string[] | "all" | undefined;
33961
+ } | null | undefined;
33755
33962
  instant?: false | {
33756
33963
  tools?: Record<string, {
33757
33964
  enable: string[];
@@ -33769,8 +33976,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33769
33976
  authConfigs?: Record<string, string> | null | undefined;
33770
33977
  connectedAccounts?: Record<string, string[]> | null | undefined;
33771
33978
  manageConnections?: boolean | {
33772
- enable?: boolean | undefined;
33773
33979
  callbackUrl?: string | null | undefined;
33980
+ enable?: boolean | undefined;
33774
33981
  waitForConnections?: boolean | undefined;
33775
33982
  enableConnectionRemoval?: boolean | null | undefined;
33776
33983
  } | null | undefined;
@@ -33801,6 +34008,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33801
34008
  type: "condition_check";
33802
34009
  condition: string;
33803
34010
  action: "block";
34011
+ } | {
34012
+ type: "webhook";
34013
+ fallbackAction: "block" | "continue";
34014
+ timeoutMs?: number | undefined;
33804
34015
  };
33805
34016
  appliesTo: "all" | {
33806
34017
  toolkits: string[];
@@ -33816,6 +34027,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33816
34027
  } | {
33817
34028
  type: "prompt_injection_check";
33818
34029
  action: "block";
34030
+ } | {
34031
+ type: "webhook";
34032
+ fallbackAction: "block" | "continue";
34033
+ timeoutMs?: number | undefined;
33819
34034
  };
33820
34035
  appliesTo: "all" | {
33821
34036
  toolkits: string[];
@@ -33860,9 +34075,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33860
34075
  search?: {
33861
34076
  enable?: boolean | undefined;
33862
34077
  } | null | undefined;
33863
- preload?: {
33864
- tools?: string[] | "all" | undefined;
33865
- } | null | undefined;
33866
34078
  experimental?: {
33867
34079
  sessionConfigId?: string | undefined;
33868
34080
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33876,6 +34088,9 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33876
34088
  enable: boolean;
33877
34089
  } | null | undefined;
33878
34090
  } | null | undefined;
34091
+ preload?: {
34092
+ tools?: string[] | "all" | undefined;
34093
+ } | null | undefined;
33879
34094
  instant?: false | {
33880
34095
  tools?: Record<string, {
33881
34096
  enable: string[];
@@ -33893,8 +34108,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33893
34108
  authConfigs?: Record<string, string> | null | undefined;
33894
34109
  connectedAccounts?: Record<string, string | string[]> | null | undefined;
33895
34110
  manageConnections?: boolean | {
33896
- enable?: boolean | undefined;
33897
34111
  callbackUrl?: string | null | undefined;
34112
+ enable?: boolean | undefined;
33898
34113
  waitForConnections?: boolean | undefined;
33899
34114
  enableConnectionRemoval?: boolean | null | undefined;
33900
34115
  } | null | undefined;
@@ -33925,6 +34140,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33925
34140
  type: "condition_check";
33926
34141
  condition: string;
33927
34142
  action: "block";
34143
+ } | {
34144
+ type: "webhook";
34145
+ fallbackAction: "block" | "continue";
34146
+ timeoutMs?: number | undefined;
33928
34147
  };
33929
34148
  appliesTo: "all" | {
33930
34149
  toolkits: string[];
@@ -33940,6 +34159,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33940
34159
  } | {
33941
34160
  type: "prompt_injection_check";
33942
34161
  action: "block";
34162
+ } | {
34163
+ type: "webhook";
34164
+ fallbackAction: "block" | "continue";
34165
+ timeoutMs?: number | undefined;
33943
34166
  };
33944
34167
  appliesTo: "all" | {
33945
34168
  toolkits: string[];
@@ -34378,4 +34601,4 @@ type RegisteredCustomToolkit = RegisteredLocalToolkit;
34378
34601
  type CustomToolResponse = NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_tools']>[number];
34379
34602
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
34380
34603
  type CustomToolkitResponse = NonNullable<NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_toolkits']>[number]>;
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 };
34604
+ export { ToolRouterHookConditionCheckHandler as $, ToolExecuteParamsSchema as $a, Oauth1ActiveConnectionData as $i, ConnectedAccountListResponse as $n, MCPCreateMethodResponse as $r, ToolRouterTagsEnableDisableSchema as $t, MCPServerType as A, AgenticToolOptions as Aa, McpUpdateResponse as Ai, ToolRouterSessionFilesMountDownloadOptionsSchema as An, UpdateConnectedAccountParams as Ar, ToolRouterSessionExecuteFn as At, ToolRouterAuthorizeFn as B, afterExecuteModifier as Ba, ToolCallSession as Bi, ConnectedAccountAclConfigSchema as Bn, ComposioMcpRetrieveResponseSchema as Br, ToolRouterSessionMetaToolSlug as Bt, LocalToolExecuteFn as C, Oauth2InitiatedConnectionData as Ca, McpListResponseSchema as Ci, FileListResponse as Cn, CreateConnectedAccountParams as Cr, ToolRouterSessionDeleteFn as Ct, RegisteredLocalTool as D, Oauth2RevokedConnectionData as Da, McpServerGetResponse as Di, ToolRouterSessionFilesMountDeleteOptions as Dn, DefaultCreateConnectedAccountParamsSchema as Dr, ToolRouterSessionEnsureConnectedOptions as Dt, RegisteredCustomToolkit as E, Oauth2InitiatingConnectionDataSchema as Ea, McpServerCreateResponse as Ei, RemoteFileDataSchema as En, CreateConnectedAccountResponseSchema as Er, ToolRouterSessionEnsureConnectedFn as Et, SessionExperimental as F, SessionExecuteMetaModifiers as Fa, ExecuteToolFn as Fi, ConnectionRequest as Fn, ComposioCustomCreateResponseSchema as Fr, ToolRouterSessionExecuteResponseSchema as Ft, ToolRouterConfigTagsSchema as G, CustomAuthParamsSchema as Ga, ConnectionStatusEnum as Gi, ConnectedAccountCompleteAuthResponse as Gn, CustomCreateResponseValidated as Gr, ToolRouterSessionProxyExecuteFn as Gt, ToolRouterBlockReasonSchema as H, beforeExecuteModifier as Ha, BillcomAuthConnectionDataSchema as Hi, ConnectedAccountAuthConfigSchema as Hn, ConnectionStatus as Hr, ToolRouterSessionPreloadConfig as Ht, SessionPreset as I, SessionMetaToolOptions as Ia, ExecuteToolFnOptions as Ii, ConnectionRequestState as In, ComposioGenerateURLParamsSchema as Ir, ToolRouterSessionListConfigHistoryFn as It, ToolRouterCreateSessionConfig as J, SchemaModifierOptions as Ja, CustomConnectionDataSchema as Ji, ConnectedAccountExperimentalResponse as Jn, GenerateURLResponse as Jr, ToolRouterSessionSearchResponse as Jt, ToolRouterConfigTools as K, JSONSchemaProperty as Ka, ConnectionStatuses as Ki, ConnectedAccountCompleteAuthResponseSchema as Kn, GenerateURLParams as Kr, ToolRouterSessionProxyExecuteResponse as Kt, SessionProxyExecuteParams as L, ToolOptions as La, GlobalExecuteToolFn as Li, ConnectedAccountAclConfig as Ln, ComposioGenerateURLResponseSchema as Lr, ToolRouterSessionListConfigHistoryOptions as Lt, SandboxSize as M, ExecuteToolModifiers as Ma, McpUrlResponse as Mi, ToolRouterSessionFilesMountListOptionsSchema as Mn, BaseAgenticProvider as Mr, ToolRouterSessionExecuteMetaOptions as Mt, SandboxSizeSchema as N, MetaToolArguments as Na, McpUrlResponseCamelCase as Ni, ToolRouterSessionFilesMountUploadOptions as Nn, BaseComposioProvider as Nr, ToolRouterSessionExecuteOptions as Nt, RegisteredLocalToolkit as O, Oauth2RevokedConnectionDataSchema as Oa, McpServerUrlInfo as Oi, ToolRouterSessionFilesMountDeleteOptionsSchema as On, UpdateConnectedAccountAclParams as Or, ToolRouterSessionEnsureConnectedOptionsSchema as Ot, Session as P, ProviderOptions as Pa, McpUserConnectionStatus as Pi, ToolRouterSessionFilesMountUploadOptionsSchema as Pn, BaseNonAgenticProvider as Pr, ToolRouterSessionExecuteResponse as Pt, ToolRouterHookAppliesToSchema as Q, ToolExecuteParams as Qa, CustomOauth2ConnectionDataSchema as Qi, ConnectedAccountListParamsSchema as Qn, MCPAuthOptionsSchema as Qr, ToolRouterSessionWorkbenchConfig as Qt, SessionProxyExecuteParamsSchema as R, TransformToolSchemaModifier as Ra, Provider as Ri, ConnectedAccountAclConfigResponse as Rn, ComposioMcpDeleteResponseSchema as Rr, ToolRouterSessionListConfigHistoryOptionsSchema as Rt, LocalTool as S, Oauth2InactiveConnectionDataSchema as Sa, McpListResponse as Si, FileDeleteResponseSchema as Sn, CreateConnectedAccountOptionsSchema as Sr, ToolRouterSessionConfigHistoryItem as St, RegisteredCustomTool as T, Oauth2InitiatingConnectionData as Ta, McpRetrieveResponseSchema as Ti, RemoteFileData as Tn, CreateConnectedAccountResponse as Tr, ToolRouterSessionDeleteResponseSchema as Tt, ToolRouterConfigManageConnectionsSchema as U, beforeFileUploadModifier as Ua, ConnectionData as Ui, ConnectedAccountCompleteAuthParams as Un, CustomCreateResponse as Ur, ToolRouterSessionProxyExecuteBlocked as Ut, ToolRouterBlockReason as V, beforeExecuteMetaModifier as Va, BaseConnectionFields as Vi, ConnectedAccountAuthConfig as Vn, ComposioMcpUpdateResponseSchema as Vr, ToolRouterSessionMetadata as Vt, ToolRouterConfigTags as W, CustomAuthParams as Wa, ConnectionDataSchema as Wi, ConnectedAccountCompleteAuthParamsSchema as Wn, CustomCreateResponseSchema as Wr, ToolRouterSessionProxyExecuteCompleted as Wt, ToolRouterHook as X, ToolExecuteMetaParams as Xa, CustomOauth1ConnectionDataSchema as Xi, ConnectedAccountExperimentalSchema as Xn, GenerateURLResponseValidated as Xr, ToolRouterSessionUpdateFn as Xt, ToolRouterCreateSessionConfigSchema as Y, Tool as Ya, CustomOauth1ConnectionData as Yi, ConnectedAccountExperimentalResponseSchema as Yn, GenerateURLResponseSchema as Yr, ToolRouterSessionSearchResponseSchema as Yt, ToolRouterHookAppliesTo as Z, ToolExecuteMetaParamsSchema as Za, CustomOauth2ConnectionData as Zi, ConnectedAccountListParams as Zn, MCPAuthOptions as Zr, ToolRouterSessionWarning as Zt, CustomToolkitWireDefinition as _, Oauth2ExpiredConnectionData as _a, MCPToolkitConfig as _i, ToolkitConnectionStateSchema as _n, ToolkitVersionParamSchema as _o, CreateConnectedAccountLinkOptions as _r, ToolRouterProxyExecuteSchema as _t, CreateCustomToolkitParams as a, Oauth1FailedConnectionData as aa, MCPMultiAppServer as ai, ToolRouterToolkitsOptionsSchema as an, ToolListResponse as ao, ConnectedAccountRetrieveResponseSchema as ar, ToolRouterHookSchema as at, InferZodSchema as b, Oauth2FailedConnectionDataSchema as ba, McpDeleteResponse as bi, RemoteFile as bn, ToolkitVersionsSchema as bo, CreateConnectedAccountLinkResponseSchema as br, ToolRouterSessionConfig as bt, CustomTool as c, Oauth1InactiveConnectionDataSchema as ca, MCPServerCreateResponse as ci, ToolRouterToolsParam as cn, ToolProxyParamsSchema as co, ConnectedAccountRevokedToken as cr, ToolRouterInputResponse as ct, CustomToolResponse as d, Oauth1InitiatingConnectionData as da, MCPServerListResponseSchema as di, ToolRouterUpdateExperimentalSchema as dn, Toolkit as do, ConnectedAccountStatusEnum as dr, ToolRouterMCPServerConfig as dt, Oauth1ActiveConnectionDataSchema as ea, MCPGenerateURLParams as ei, ToolRouterTagsParamSchema as en, ToolExecuteResponse as eo, ConnectedAccountListResponseItem as er, ToolRouterHookConditionCheckHandlerSchema as et, CustomToolSlugSchema as f, Oauth1InitiatingConnectionDataSchema as fa, MCPServerSchema as fi, ToolRouterUpdateManageConnectionsConfig as fn, ToolkitLatestVersion as fo, ConnectedAccountStatusSchema as fr, ToolRouterMCPServerConfigSchema as ft, CustomToolkitResponse as g, Oauth2ConnectionDataSchema as ga, MCPSingleAppServerSchema as gi, ToolkitConnectionState as gn, ToolkitVersionParam as go, ConnectedAccountTypes as gr, ToolRouterProxyExecuteConfigSchema as gt, CustomToolkitDefinition as h, Oauth2ConnectionData as ha, MCPSingleAppServer as hi, ToolRouterUpdateSessionConfigSchema as hn, ToolkitVersion as ho, ConnectedAccountTypeSchema as hr, ToolRouterProxyExecuteConfig as ht, CreateCustomToolkitBaseSchema as i, Oauth1ExpiredConnectionDataSchema as ia, MCPInstanceParams as ii, ToolRouterToolkitsOptions as in, ToolListParamsSchema as io, ConnectedAccountRetrieveResponse as ir, ToolRouterHookResultSchema as it, MCPServerTypeSchema as j, BeforeFileUploadSource as ja, McpUpdateResponseSchema as ji, ToolRouterSessionFilesMountListOptions as jn, UpdateConnectedAccountParamsSchema as jr, ToolRouterSessionExecuteMetaFn as jt, SessionContext as k, RedirectableAuthSchemeSchema as ka, McpToolkitConnectionStatus as ki, ToolRouterSessionFilesMountDownloadOptions as kn, UpdateConnectedAccountAclParamsSchema as kr, ToolRouterSessionEnsureConnectedResult as kt, CustomToolDefinition as l, Oauth1InitiatedConnectionData as la, MCPServerCreateResponseSchema as li, ToolRouterToolsParamSchema as ln, ToolRetrievalOptions as lo, ConnectedAccountRevokedTokenSchema as lr, ToolRouterInstant as lt, CustomToolkit as m, Oauth2ActiveConnectionDataSchema as ma, MCPServerUpdateParamsSchema as mi, ToolRouterUpdateSessionConfig as mn, ToolkitSchema as mo, ConnectedAccountType as mr, ToolRouterProxyExecute as mt, CreateCustomToolBaseSchema as n, Oauth1ConnectionDataSchema as na, MCPGetServerParams as ni, ToolRouterToolkitsEnabledConfigSchema as nn, ToolList as no, ConnectedAccountRefreshOptions as nr, ToolRouterHookPromptInjectionCheckHandlerSchema as nt, CreateLocalToolParams as o, Oauth1FailedConnectionDataSchema as oa, MCPMultiAppServerSchema as oi, ToolRouterToolkitsParamSchema as on, ToolListResponseSchema as oo, ConnectedAccountRevokeResponse as or, ToolRouterHookWebhookHandler as ot, CustomToolWireDefinition as p, Oauth2ActiveConnectionData as pa, MCPServerUpdateParams as pi, ToolRouterUpdateManageConnectionsSchema as pn, ToolkitLatestVersionSchema as po, ConnectedAccountStatuses as pr, ToolRouterManageConnectionsConfigSchema as pt, ToolRouterConfigToolsSchema as q, JSONSchemaPropertySchema as qa, CustomConnectionData as qi, ConnectedAccountExperimental as qn, GenerateURLParamsSchema as qr, ToolRouterSessionSearchFn as qt, CreateCustomToolParams as r, Oauth1ExpiredConnectionData as ra, MCPGetServerParamsSchema as ri, ToolRouterToolkitsFn as rn, ToolListParams as ro, ConnectedAccountRefreshOptionsSchema as rr, ToolRouterHookResult as rt, CreateLocalToolkitParams as s, Oauth1InactiveConnectionData as sa, MCPServer as si, ToolRouterToolsFn as sn, ToolProxyParams as so, ConnectedAccountRevokeResponseSchema as sr, ToolRouterHookWebhookHandlerSchema as st, AnyZodSchema as t, Oauth1ConnectionData as ta, MCPGenerateURLParamsSchema as ti, ToolRouterToolkitsDisabledConfigSchema as tn, ToolExecuteResponseSchema as to, ConnectedAccountListResponseSchema as tr, ToolRouterHookPromptInjectionCheckHandler as tt, CustomToolExecuteFn as u, Oauth1InitiatedConnectionDataSchema as ua, MCPServerListResponse as ui, ToolRouterUpdateExperimentalConfig as un, ToolSchema as uo, ConnectedAccountStatus as ur, ToolRouterInstantSchema as ut, CustomToolsMap as v, Oauth2ExpiredConnectionDataSchema as va, MCPToolkitConfigSchema as vi, ToolkitConnectionsDetails as vn, ToolkitVersionSchema as vo, CreateConnectedAccountLinkOptionsSchema as vr, ToolRouterSandboxConfig as vt, LocalToolkit as w, Oauth2InitiatedConnectionDataSchema as wa, McpRetrieveResponse as wi, FileListResponseSchema as wn, CreateConnectedAccountParamsSchema as wr, ToolRouterSessionDeleteResponse as wt, InlineCustomToolsWirePayload as x, Oauth2InactiveConnectionData as xa, McpDeleteResponseSchema as xi, FileDeleteResponse as xn, CreateConnectedAccountOptions as xr, ToolRouterSessionConfigHistoryConfig as xt, CustomToolsMapEntry as y, Oauth2FailedConnectionData as ya, MCPToolkitConfigsArraySchema as yi, ToolkitConnectionsDetailsSchema as yn, ToolkitVersions as yo, CreateConnectedAccountLinkResponse as yr, ToolRouterSandboxConfigSchema as yt, SessionWithoutMcp as z, afterExecuteMetaModifier as za, ToolCallExecutionTarget as zi, ConnectedAccountAclConfigResponseSchema as zn, ComposioMcpListResponseSchema as zr, ToolRouterSessionListConfigHistoryResponse as zt };