@composio/core 0.24.0 → 0.26.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 (59) hide show
  1. package/dist/{CustomTool-CnJxXr07.mjs → CustomTool-BYHB7sPs.mjs} +1 -1
  2. package/dist/{CustomTool-CNJysHMK.d.mts → CustomTool-DfP4ldQl.d.mts} +1 -1
  3. package/dist/{cancellation-BQibgpRG.mjs → cancellation-ZoRh6EJQ.mjs} +55 -3
  4. package/dist/{composio-BFTtZj82.d.mts → composio-BMDH-1Qj.d.mts} +35 -15
  5. package/dist/{customTool.types-D57QrTns.d.mts → customTool.types-BoOELgJF.d.mts} +346 -23
  6. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +10 -10
  7. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +2 -2
  8. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +22 -22
  9. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +8 -8
  10. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +2 -2
  11. package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -1
  12. package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +2 -2
  13. package/dist/docs/reference/sdk-reference/typescript/logs.mdx +5 -5
  14. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +15 -15
  15. package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -1
  16. package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +5 -5
  17. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +10 -10
  18. package/dist/docs/reference/sdk-reference/typescript/session.mdx +56 -21
  19. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +6 -6
  20. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +22 -22
  21. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +18 -18
  22. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +25 -25
  23. package/dist/docs/reference/sdk-reference/typescript/usage.mdx +6 -6
  24. package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +14 -14
  25. package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +13 -13
  26. package/dist/{errors-BN15NcCW.mjs → errors-Cly0vXFh.mjs} +5 -5
  27. package/dist/experimental/index.d.mts +2 -2
  28. package/dist/experimental/index.mjs +1 -1
  29. package/dist/index.d.mts +19 -11
  30. package/dist/index.mjs +693 -196
  31. package/dist/{types-q8TwAngA.d.mts → types-DHNV_T_z.d.mts} +2 -2
  32. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  33. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  34. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  35. package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
  36. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  37. package/package.json +5 -5
  38. package/src/composio.ts +81 -67
  39. package/src/errors/ToolRouterErrors.ts +5 -5
  40. package/src/lib/toolRouterMcp.ts +2 -0
  41. package/src/lib/toolRouterParams.ts +28 -16
  42. package/src/models/ConnectedAccounts.ts +7 -16
  43. package/src/models/ToolRouter.ts +8 -1
  44. package/src/models/ToolRouterSession.ts +17 -0
  45. package/src/models/Tools.ts +1 -4
  46. package/src/models/Triggers.ts +14 -7
  47. package/src/services/internal/InternalService.ts +3 -4
  48. package/src/services/pusher/Pusher.ts +170 -92
  49. package/src/types/connectedAccountAuthStates.types.ts +2 -1
  50. package/src/types/pusher.types.ts +2 -0
  51. package/src/types/requestOptions.types.ts +1 -10
  52. package/src/types/toolRouter.types.ts +104 -18
  53. package/src/utils/jsonSchema.ts +76 -4
  54. package/src/utils/sdk.ts +172 -11
  55. package/src/utils/session.ts +25 -47
  56. package/src/utils/toolkitDeprecation.ts +271 -0
  57. package/src/utils/transformers/connectedAccounts.ts +9 -20
  58. package/src/utils/transformers/mcp.ts +3 -10
  59. package/src/utils/userCallback.ts +41 -0
@@ -3,7 +3,7 @@ import z, { z as z$1 } from "zod/v3";
3
3
  import { z as z$2 } from "zod/v4";
4
4
  import { CustomCreateResponse, GenerateURLResponse, McpCreateResponse } from "@composio/client/resources/mcp";
5
5
  import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
6
- import { SessionConfigHistoryResponse, SessionCreateParams, SessionCreateResponse, SessionExecuteMetaParams } from "@composio/client/resources/tool-router/session/session.mjs";
6
+ import { SessionConfigHistoryResponse, SessionCreateParams, SessionCreateResponse, SessionExecuteMetaParams, SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
7
7
  //#region src/types/tool.types.d.ts
8
8
  /**
9
9
  * Toolkit is the collection of tools,
@@ -1111,7 +1111,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1111
1111
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
1112
1112
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
1113
1113
  } & {
1114
- access_token: z$1.ZodOptional<z$1.ZodString>;
1114
+ access_token: z$1.ZodString;
1115
1115
  id_token: z$1.ZodOptional<z$1.ZodString>;
1116
1116
  token_type: z$1.ZodOptional<z$1.ZodString>;
1117
1117
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -1150,7 +1150,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1150
1150
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
1151
1151
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
1152
1152
  } & {
1153
- access_token: z$1.ZodOptional<z$1.ZodString>;
1153
+ access_token: z$1.ZodString;
1154
1154
  id_token: z$1.ZodOptional<z$1.ZodString>;
1155
1155
  token_type: z$1.ZodOptional<z$1.ZodString>;
1156
1156
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -1189,7 +1189,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1189
1189
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
1190
1190
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
1191
1191
  } & {
1192
- access_token: z$1.ZodOptional<z$1.ZodString>;
1192
+ access_token: z$1.ZodString;
1193
1193
  id_token: z$1.ZodOptional<z$1.ZodString>;
1194
1194
  token_type: z$1.ZodOptional<z$1.ZodString>;
1195
1195
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -1200,6 +1200,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1200
1200
  authScheme: "S2S_OAUTH2";
1201
1201
  toolkitSlug: string;
1202
1202
  val: {
1203
+ access_token: string;
1203
1204
  version?: string | undefined;
1204
1205
  "your-domain"?: string | undefined;
1205
1206
  subdomain?: string | undefined;
@@ -1231,7 +1232,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1231
1232
  registration_access_token?: string | undefined;
1232
1233
  registration_client_uri?: string | undefined;
1233
1234
  composio_link_redirect_url?: string | undefined;
1234
- access_token?: string | undefined;
1235
1235
  id_token?: string | undefined;
1236
1236
  token_type?: string | undefined;
1237
1237
  refresh_token?: string | null | undefined;
@@ -1244,6 +1244,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1244
1244
  authScheme: "S2S_OAUTH2";
1245
1245
  toolkitSlug: string;
1246
1246
  val: {
1247
+ access_token: string;
1247
1248
  version?: string | undefined;
1248
1249
  "your-domain"?: string | undefined;
1249
1250
  subdomain?: string | undefined;
@@ -1275,7 +1276,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1275
1276
  registration_access_token?: string | undefined;
1276
1277
  registration_client_uri?: string | undefined;
1277
1278
  composio_link_redirect_url?: string | undefined;
1278
- access_token?: string | undefined;
1279
1279
  id_token?: string | undefined;
1280
1280
  token_type?: string | undefined;
1281
1281
  refresh_token?: string | null | undefined;
@@ -2868,6 +2868,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
2868
2868
  authScheme: "S2S_OAUTH2";
2869
2869
  toolkitSlug: string;
2870
2870
  val: {
2871
+ access_token: string;
2871
2872
  version?: string | undefined;
2872
2873
  "your-domain"?: string | undefined;
2873
2874
  subdomain?: string | undefined;
@@ -2899,7 +2900,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
2899
2900
  registration_access_token?: string | undefined;
2900
2901
  registration_client_uri?: string | undefined;
2901
2902
  composio_link_redirect_url?: string | undefined;
2902
- access_token?: string | undefined;
2903
2903
  id_token?: string | undefined;
2904
2904
  token_type?: string | undefined;
2905
2905
  refresh_token?: string | null | undefined;
@@ -3299,6 +3299,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
3299
3299
  authScheme: "S2S_OAUTH2";
3300
3300
  toolkitSlug: string;
3301
3301
  val: {
3302
+ access_token: string;
3302
3303
  version?: string | undefined;
3303
3304
  "your-domain"?: string | undefined;
3304
3305
  subdomain?: string | undefined;
@@ -3330,7 +3331,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
3330
3331
  registration_access_token?: string | undefined;
3331
3332
  registration_client_uri?: string | undefined;
3332
3333
  composio_link_redirect_url?: string | undefined;
3333
- access_token?: string | undefined;
3334
3334
  id_token?: string | undefined;
3335
3335
  token_type?: string | undefined;
3336
3336
  refresh_token?: string | null | undefined;
@@ -4021,7 +4021,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4021
4021
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
4022
4022
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
4023
4023
  } & {
4024
- access_token: z$1.ZodOptional<z$1.ZodString>;
4024
+ access_token: z$1.ZodString;
4025
4025
  id_token: z$1.ZodOptional<z$1.ZodString>;
4026
4026
  token_type: z$1.ZodOptional<z$1.ZodString>;
4027
4027
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -4060,7 +4060,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4060
4060
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
4061
4061
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
4062
4062
  } & {
4063
- access_token: z$1.ZodOptional<z$1.ZodString>;
4063
+ access_token: z$1.ZodString;
4064
4064
  id_token: z$1.ZodOptional<z$1.ZodString>;
4065
4065
  token_type: z$1.ZodOptional<z$1.ZodString>;
4066
4066
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -4099,7 +4099,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4099
4099
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
4100
4100
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
4101
4101
  } & {
4102
- access_token: z$1.ZodOptional<z$1.ZodString>;
4102
+ access_token: z$1.ZodString;
4103
4103
  id_token: z$1.ZodOptional<z$1.ZodString>;
4104
4104
  token_type: z$1.ZodOptional<z$1.ZodString>;
4105
4105
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -4110,6 +4110,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4110
4110
  authScheme: "S2S_OAUTH2";
4111
4111
  toolkitSlug: string;
4112
4112
  val: {
4113
+ access_token: string;
4113
4114
  version?: string | undefined;
4114
4115
  "your-domain"?: string | undefined;
4115
4116
  subdomain?: string | undefined;
@@ -4141,7 +4142,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4141
4142
  registration_access_token?: string | undefined;
4142
4143
  registration_client_uri?: string | undefined;
4143
4144
  composio_link_redirect_url?: string | undefined;
4144
- access_token?: string | undefined;
4145
4145
  id_token?: string | undefined;
4146
4146
  token_type?: string | undefined;
4147
4147
  refresh_token?: string | null | undefined;
@@ -4154,6 +4154,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4154
4154
  authScheme: "S2S_OAUTH2";
4155
4155
  toolkitSlug: string;
4156
4156
  val: {
4157
+ access_token: string;
4157
4158
  version?: string | undefined;
4158
4159
  "your-domain"?: string | undefined;
4159
4160
  subdomain?: string | undefined;
@@ -4185,7 +4186,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4185
4186
  registration_access_token?: string | undefined;
4186
4187
  registration_client_uri?: string | undefined;
4187
4188
  composio_link_redirect_url?: string | undefined;
4188
- access_token?: string | undefined;
4189
4189
  id_token?: string | undefined;
4190
4190
  token_type?: string | undefined;
4191
4191
  refresh_token?: string | null | undefined;
@@ -5770,6 +5770,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
5770
5770
  authScheme: "S2S_OAUTH2";
5771
5771
  toolkitSlug: string;
5772
5772
  val: {
5773
+ access_token: string;
5773
5774
  version?: string | undefined;
5774
5775
  "your-domain"?: string | undefined;
5775
5776
  subdomain?: string | undefined;
@@ -5801,7 +5802,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
5801
5802
  registration_access_token?: string | undefined;
5802
5803
  registration_client_uri?: string | undefined;
5803
5804
  composio_link_redirect_url?: string | undefined;
5804
- access_token?: string | undefined;
5805
5805
  id_token?: string | undefined;
5806
5806
  token_type?: string | undefined;
5807
5807
  refresh_token?: string | null | undefined;
@@ -6195,6 +6195,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
6195
6195
  authScheme: "S2S_OAUTH2";
6196
6196
  toolkitSlug: string;
6197
6197
  val: {
6198
+ access_token: string;
6198
6199
  version?: string | undefined;
6199
6200
  "your-domain"?: string | undefined;
6200
6201
  subdomain?: string | undefined;
@@ -6226,7 +6227,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
6226
6227
  registration_access_token?: string | undefined;
6227
6228
  registration_client_uri?: string | undefined;
6228
6229
  composio_link_redirect_url?: string | undefined;
6229
- access_token?: string | undefined;
6230
6230
  id_token?: string | undefined;
6231
6231
  token_type?: string | undefined;
6232
6232
  refresh_token?: string | null | undefined;
@@ -26882,7 +26882,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26882
26882
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
26883
26883
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
26884
26884
  } & {
26885
- access_token: z$1.ZodOptional<z$1.ZodString>;
26885
+ access_token: z$1.ZodString;
26886
26886
  id_token: z$1.ZodOptional<z$1.ZodString>;
26887
26887
  token_type: z$1.ZodOptional<z$1.ZodString>;
26888
26888
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -26921,7 +26921,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26921
26921
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
26922
26922
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
26923
26923
  } & {
26924
- access_token: z$1.ZodOptional<z$1.ZodString>;
26924
+ access_token: z$1.ZodString;
26925
26925
  id_token: z$1.ZodOptional<z$1.ZodString>;
26926
26926
  token_type: z$1.ZodOptional<z$1.ZodString>;
26927
26927
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -26960,7 +26960,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26960
26960
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
26961
26961
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
26962
26962
  } & {
26963
- access_token: z$1.ZodOptional<z$1.ZodString>;
26963
+ access_token: z$1.ZodString;
26964
26964
  id_token: z$1.ZodOptional<z$1.ZodString>;
26965
26965
  token_type: z$1.ZodOptional<z$1.ZodString>;
26966
26966
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -26971,6 +26971,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26971
26971
  authScheme: "S2S_OAUTH2";
26972
26972
  toolkitSlug: string;
26973
26973
  val: {
26974
+ access_token: string;
26974
26975
  version?: string | undefined;
26975
26976
  "your-domain"?: string | undefined;
26976
26977
  subdomain?: string | undefined;
@@ -27002,7 +27003,6 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
27002
27003
  registration_access_token?: string | undefined;
27003
27004
  registration_client_uri?: string | undefined;
27004
27005
  composio_link_redirect_url?: string | undefined;
27005
- access_token?: string | undefined;
27006
27006
  id_token?: string | undefined;
27007
27007
  token_type?: string | undefined;
27008
27008
  refresh_token?: string | null | undefined;
@@ -27015,6 +27015,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
27015
27015
  authScheme: "S2S_OAUTH2";
27016
27016
  toolkitSlug: string;
27017
27017
  val: {
27018
+ access_token: string;
27018
27019
  version?: string | undefined;
27019
27020
  "your-domain"?: string | undefined;
27020
27021
  subdomain?: string | undefined;
@@ -27046,7 +27047,6 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
27046
27047
  registration_access_token?: string | undefined;
27047
27048
  registration_client_uri?: string | undefined;
27048
27049
  composio_link_redirect_url?: string | undefined;
27049
- access_token?: string | undefined;
27050
27050
  id_token?: string | undefined;
27051
27051
  token_type?: string | undefined;
27052
27052
  refresh_token?: string | null | undefined;
@@ -29436,6 +29436,7 @@ declare abstract class BaseProvider<TMcpResponse> {
29436
29436
  * for MCP server responses.
29437
29437
  *
29438
29438
  * @param data - The MCP URL response data
29439
+
29439
29440
  * @returns Transformed response in provider-specific format, or undefined to use default transformation
29440
29441
  */
29441
29442
  wrapMcpServerResponse?(data: McpUrlResponse): TMcpResponse;
@@ -30671,22 +30672,36 @@ declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "
30671
30672
  declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
30672
30673
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30673
30674
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30675
+ /**
30676
+ * Tools with any of these tags need the user's approval before they run.
30677
+ * @experimental
30678
+ */
30679
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30674
30680
  }, "strict", z.ZodTypeAny, {
30675
30681
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30676
30682
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30683
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30677
30684
  }, {
30678
30685
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30679
30686
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30687
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30680
30688
  }>;
30681
30689
  declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
30682
30690
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30683
30691
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30692
+ /**
30693
+ * Tools with any of these tags need the user's approval before they run.
30694
+ * @experimental
30695
+ */
30696
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30684
30697
  }, "strict", z.ZodTypeAny, {
30685
30698
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30686
30699
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30700
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30687
30701
  }, {
30688
30702
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30689
30703
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30704
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30690
30705
  }>]>;
30691
30706
  type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
30692
30707
  /**
@@ -30715,55 +30730,91 @@ declare const ToolRouterToolsParamSchema: z.ZodArray<z.ZodString, "many">;
30715
30730
  type ToolRouterToolsParam = z.infer<typeof ToolRouterToolsParamSchema>;
30716
30731
  declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
30717
30732
  enable: z.ZodArray<z.ZodString, "many">;
30733
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30718
30734
  }, "strict", z.ZodTypeAny, {
30719
30735
  enable: string[];
30736
+ requireApproval?: string[] | undefined;
30720
30737
  }, {
30721
30738
  enable: string[];
30739
+ requireApproval?: string[] | undefined;
30722
30740
  }>, z.ZodObject<{
30723
30741
  disable: z.ZodArray<z.ZodString, "many">;
30742
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30724
30743
  }, "strict", z.ZodTypeAny, {
30725
30744
  disable: string[];
30745
+ requireApproval?: string[] | undefined;
30726
30746
  }, {
30727
30747
  disable: string[];
30748
+ requireApproval?: string[] | undefined;
30728
30749
  }>, z.ZodObject<{
30729
30750
  tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
30730
30751
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30731
30752
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30753
+ /**
30754
+ * Tools with any of these tags need the user's approval before they run.
30755
+ * @experimental
30756
+ */
30757
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30732
30758
  }, "strict", z.ZodTypeAny, {
30733
30759
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30734
30760
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30761
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30735
30762
  }, {
30736
30763
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30737
30764
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30765
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30738
30766
  }>]>;
30767
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30739
30768
  }, "strict", z.ZodTypeAny, {
30740
30769
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30741
30770
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30742
30771
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30772
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30743
30773
  };
30774
+ requireApproval?: string[] | undefined;
30744
30775
  }, {
30745
30776
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30746
30777
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30747
30778
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30779
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30748
30780
  };
30781
+ requireApproval?: string[] | undefined;
30782
+ }>, z.ZodObject<{
30783
+ requireApproval: z.ZodArray<z.ZodString, "many">;
30784
+ }, "strict", z.ZodTypeAny, {
30785
+ requireApproval: string[];
30786
+ }, {
30787
+ requireApproval: string[];
30749
30788
  }>]>, string[] | {
30750
30789
  enable: string[];
30790
+ requireApproval?: string[] | undefined;
30751
30791
  } | {
30752
30792
  disable: string[];
30793
+ requireApproval?: string[] | undefined;
30753
30794
  } | {
30754
30795
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30755
30796
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30756
30797
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30798
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30757
30799
  };
30800
+ requireApproval?: string[] | undefined;
30801
+ } | {
30802
+ requireApproval: string[];
30758
30803
  }, string[] | {
30759
30804
  enable: string[];
30805
+ requireApproval?: string[] | undefined;
30760
30806
  } | {
30761
30807
  disable: string[];
30808
+ requireApproval?: string[] | undefined;
30762
30809
  } | {
30763
30810
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30764
30811
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30765
30812
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30813
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30766
30814
  };
30815
+ requireApproval?: string[] | undefined;
30816
+ } | {
30817
+ requireApproval: string[];
30767
30818
  }>;
30768
30819
  type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
30769
30820
  /**
@@ -30797,78 +30848,135 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30797
30848
  mcp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
30798
30849
  tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
30799
30850
  enable: z.ZodArray<z.ZodString, "many">;
30851
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30800
30852
  }, "strict", z.ZodTypeAny, {
30801
30853
  enable: string[];
30854
+ requireApproval?: string[] | undefined;
30802
30855
  }, {
30803
30856
  enable: string[];
30857
+ requireApproval?: string[] | undefined;
30804
30858
  }>, z.ZodObject<{
30805
30859
  disable: z.ZodArray<z.ZodString, "many">;
30860
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30806
30861
  }, "strict", z.ZodTypeAny, {
30807
30862
  disable: string[];
30863
+ requireApproval?: string[] | undefined;
30808
30864
  }, {
30809
30865
  disable: string[];
30866
+ requireApproval?: string[] | undefined;
30810
30867
  }>, z.ZodObject<{
30811
30868
  tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
30812
30869
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30813
30870
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30871
+ /**
30872
+ * Tools with any of these tags need the user's approval before they run.
30873
+ * @experimental
30874
+ */
30875
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30814
30876
  }, "strict", z.ZodTypeAny, {
30815
30877
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30816
30878
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30879
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30817
30880
  }, {
30818
30881
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30819
30882
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30883
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30820
30884
  }>]>;
30885
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30821
30886
  }, "strict", z.ZodTypeAny, {
30822
30887
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30823
30888
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30824
30889
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30890
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30825
30891
  };
30892
+ requireApproval?: string[] | undefined;
30826
30893
  }, {
30827
30894
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30828
30895
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30829
30896
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30897
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30830
30898
  };
30899
+ requireApproval?: string[] | undefined;
30900
+ }>, z.ZodObject<{
30901
+ requireApproval: z.ZodArray<z.ZodString, "many">;
30902
+ }, "strict", z.ZodTypeAny, {
30903
+ requireApproval: string[];
30904
+ }, {
30905
+ requireApproval: string[];
30831
30906
  }>]>, string[] | {
30832
30907
  enable: string[];
30908
+ requireApproval?: string[] | undefined;
30833
30909
  } | {
30834
30910
  disable: string[];
30911
+ requireApproval?: string[] | undefined;
30835
30912
  } | {
30836
30913
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30837
30914
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30838
30915
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30916
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30839
30917
  };
30918
+ requireApproval?: string[] | undefined;
30919
+ } | {
30920
+ requireApproval: string[];
30840
30921
  }, string[] | {
30841
30922
  enable: string[];
30923
+ requireApproval?: string[] | undefined;
30842
30924
  } | {
30843
30925
  disable: string[];
30926
+ requireApproval?: string[] | undefined;
30844
30927
  } | {
30845
30928
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30846
30929
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30847
30930
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30931
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30848
30932
  };
30933
+ requireApproval?: string[] | undefined;
30934
+ } | {
30935
+ requireApproval: string[];
30849
30936
  }>]>>>>;
30850
30937
  tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
30851
30938
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30852
30939
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30940
+ /**
30941
+ * Tools with any of these tags need the user's approval before they run.
30942
+ * @experimental
30943
+ */
30944
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30853
30945
  }, "strict", z.ZodTypeAny, {
30854
30946
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30855
30947
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30948
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30856
30949
  }, {
30857
30950
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30858
30951
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30952
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30859
30953
  }>]>>>;
30860
30954
  toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
30861
30955
  disable: z.ZodArray<z.ZodString, "many">;
30956
+ } & {
30957
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30862
30958
  }, "strict", z.ZodTypeAny, {
30863
30959
  disable: string[];
30960
+ requireApproval?: string[] | undefined;
30864
30961
  }, {
30865
30962
  disable: string[];
30963
+ requireApproval?: string[] | undefined;
30866
30964
  }>, z.ZodObject<{
30867
30965
  enable: z.ZodArray<z.ZodString, "many">;
30966
+ } & {
30967
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30868
30968
  }, "strict", z.ZodTypeAny, {
30869
30969
  enable: string[];
30970
+ requireApproval?: string[] | undefined;
30870
30971
  }, {
30871
30972
  enable: string[];
30973
+ requireApproval?: string[] | undefined;
30974
+ }>, z.ZodObject<{
30975
+ requireApproval: z.ZodArray<z.ZodString, "many">;
30976
+ }, "strict", z.ZodTypeAny, {
30977
+ requireApproval: string[];
30978
+ }, {
30979
+ requireApproval: string[];
30872
30980
  }>]>>>;
30873
30981
  instant: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
30874
30982
  toolkits: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -31021,6 +31129,13 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31021
31129
  customTools: z.ZodOptional<z.ZodArray<z.ZodType<CustomTool, z.ZodTypeDef, CustomTool>, "many">>;
31022
31130
  customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<CustomToolkit, z.ZodTypeDef, CustomToolkit>, "many">>;
31023
31131
  sessionConfigId: z.ZodOptional<z.ZodString>;
31132
+ /**
31133
+ * What happens to a call that needs the user's approval when the
31134
+ * session's MCP client can't ask the user: `deny` (the default) or
31135
+ * `allow`.
31136
+ * @experimental
31137
+ */
31138
+ noElicitationSupportFallback: z.ZodOptional<z.ZodEnum<["deny", "allow"]>>;
31024
31139
  }, "strip", z.ZodTypeAny, {
31025
31140
  assistivePrompt?: {
31026
31141
  userTimezone?: string | undefined;
@@ -31028,6 +31143,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31028
31143
  customTools?: CustomTool[] | undefined;
31029
31144
  customToolkits?: CustomToolkit[] | undefined;
31030
31145
  sessionConfigId?: string | undefined;
31146
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31031
31147
  }, {
31032
31148
  assistivePrompt?: {
31033
31149
  userTimezone?: string | undefined;
@@ -31035,26 +31151,38 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31035
31151
  customTools?: CustomTool[] | undefined;
31036
31152
  customToolkits?: CustomToolkit[] | undefined;
31037
31153
  sessionConfigId?: string | undefined;
31154
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31038
31155
  }>>>;
31039
31156
  }, "strip", z.ZodTypeAny, {
31040
31157
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31041
31158
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31042
31159
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31160
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31043
31161
  } | undefined;
31044
31162
  tools?: Record<string, string[] | {
31045
31163
  enable: string[];
31164
+ requireApproval?: string[] | undefined;
31046
31165
  } | {
31047
31166
  disable: string[];
31167
+ requireApproval?: string[] | undefined;
31048
31168
  } | {
31049
31169
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31050
31170
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31051
31171
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31172
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31052
31173
  };
31174
+ requireApproval?: string[] | undefined;
31175
+ } | {
31176
+ requireApproval: string[];
31053
31177
  }> | undefined;
31054
31178
  toolkits?: string[] | {
31055
31179
  disable: string[];
31180
+ requireApproval?: string[] | undefined;
31056
31181
  } | {
31057
31182
  enable: string[];
31183
+ requireApproval?: string[] | undefined;
31184
+ } | {
31185
+ requireApproval: string[];
31058
31186
  } | undefined;
31059
31187
  preload?: {
31060
31188
  tools?: string[] | "all" | undefined;
@@ -31109,26 +31237,38 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31109
31237
  customTools?: CustomTool[] | undefined;
31110
31238
  customToolkits?: CustomToolkit[] | undefined;
31111
31239
  sessionConfigId?: string | undefined;
31240
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31112
31241
  } | undefined;
31113
31242
  }, {
31114
31243
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31115
31244
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31116
31245
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31246
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31117
31247
  } | undefined;
31118
31248
  tools?: Record<string, string[] | {
31119
31249
  enable: string[];
31250
+ requireApproval?: string[] | undefined;
31120
31251
  } | {
31121
31252
  disable: string[];
31253
+ requireApproval?: string[] | undefined;
31122
31254
  } | {
31123
31255
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31124
31256
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31125
31257
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31258
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31126
31259
  };
31260
+ requireApproval?: string[] | undefined;
31261
+ } | {
31262
+ requireApproval: string[];
31127
31263
  }> | undefined;
31128
31264
  toolkits?: string[] | {
31129
31265
  disable: string[];
31266
+ requireApproval?: string[] | undefined;
31130
31267
  } | {
31131
31268
  enable: string[];
31269
+ requireApproval?: string[] | undefined;
31270
+ } | {
31271
+ requireApproval: string[];
31132
31272
  } | undefined;
31133
31273
  preload?: {
31134
31274
  tools?: string[] | "all" | undefined;
@@ -31183,26 +31323,38 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31183
31323
  customTools?: CustomTool[] | undefined;
31184
31324
  customToolkits?: CustomToolkit[] | undefined;
31185
31325
  sessionConfigId?: string | undefined;
31326
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31186
31327
  } | undefined;
31187
31328
  }>, {
31188
31329
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31189
31330
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31190
31331
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31332
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31191
31333
  } | undefined;
31192
31334
  tools?: Record<string, string[] | {
31193
31335
  enable: string[];
31336
+ requireApproval?: string[] | undefined;
31194
31337
  } | {
31195
31338
  disable: string[];
31339
+ requireApproval?: string[] | undefined;
31196
31340
  } | {
31197
31341
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31198
31342
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31199
31343
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31344
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31200
31345
  };
31346
+ requireApproval?: string[] | undefined;
31347
+ } | {
31348
+ requireApproval: string[];
31201
31349
  }> | undefined;
31202
31350
  toolkits?: string[] | {
31203
31351
  disable: string[];
31352
+ requireApproval?: string[] | undefined;
31204
31353
  } | {
31205
31354
  enable: string[];
31355
+ requireApproval?: string[] | undefined;
31356
+ } | {
31357
+ requireApproval: string[];
31206
31358
  } | undefined;
31207
31359
  preload?: {
31208
31360
  tools?: string[] | "all" | undefined;
@@ -31257,26 +31409,38 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31257
31409
  customTools?: CustomTool[] | undefined;
31258
31410
  customToolkits?: CustomToolkit[] | undefined;
31259
31411
  sessionConfigId?: string | undefined;
31412
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31260
31413
  } | undefined;
31261
31414
  }, {
31262
31415
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31263
31416
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31264
31417
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31418
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31265
31419
  } | undefined;
31266
31420
  tools?: Record<string, string[] | {
31267
31421
  enable: string[];
31422
+ requireApproval?: string[] | undefined;
31268
31423
  } | {
31269
31424
  disable: string[];
31425
+ requireApproval?: string[] | undefined;
31270
31426
  } | {
31271
31427
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31272
31428
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31273
31429
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31430
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31274
31431
  };
31432
+ requireApproval?: string[] | undefined;
31433
+ } | {
31434
+ requireApproval: string[];
31275
31435
  }> | undefined;
31276
31436
  toolkits?: string[] | {
31277
31437
  disable: string[];
31438
+ requireApproval?: string[] | undefined;
31278
31439
  } | {
31279
31440
  enable: string[];
31441
+ requireApproval?: string[] | undefined;
31442
+ } | {
31443
+ requireApproval: string[];
31280
31444
  } | undefined;
31281
31445
  preload?: {
31282
31446
  tools?: string[] | "all" | undefined;
@@ -31331,26 +31495,38 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31331
31495
  customTools?: CustomTool[] | undefined;
31332
31496
  customToolkits?: CustomToolkit[] | undefined;
31333
31497
  sessionConfigId?: string | undefined;
31498
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31334
31499
  } | undefined;
31335
31500
  }>, {
31336
31501
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31337
31502
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31338
31503
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31504
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31339
31505
  } | undefined;
31340
31506
  tools?: Record<string, string[] | {
31341
31507
  enable: string[];
31508
+ requireApproval?: string[] | undefined;
31342
31509
  } | {
31343
31510
  disable: string[];
31511
+ requireApproval?: string[] | undefined;
31344
31512
  } | {
31345
31513
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31346
31514
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31347
31515
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31516
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31348
31517
  };
31518
+ requireApproval?: string[] | undefined;
31519
+ } | {
31520
+ requireApproval: string[];
31349
31521
  }> | undefined;
31350
31522
  toolkits?: string[] | {
31351
31523
  disable: string[];
31524
+ requireApproval?: string[] | undefined;
31352
31525
  } | {
31353
31526
  enable: string[];
31527
+ requireApproval?: string[] | undefined;
31528
+ } | {
31529
+ requireApproval: string[];
31354
31530
  } | undefined;
31355
31531
  preload?: {
31356
31532
  tools?: string[] | "all" | undefined;
@@ -31405,6 +31581,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31405
31581
  customTools?: CustomTool[] | undefined;
31406
31582
  customToolkits?: CustomToolkit[] | undefined;
31407
31583
  sessionConfigId?: string | undefined;
31584
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
31408
31585
  } | undefined;
31409
31586
  }, unknown>;
31410
31587
  /**
@@ -31413,7 +31590,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31413
31590
  * @param {SessionPreset} [sessionPreset] - Shortcut that exposes every tool allowed by the session filters directly in session.tools() and the MCP tool list. Disables search, multi-execute, manage-connections, and sandbox by default; explicit overrides for supported fields still win. Without this preset, ToolRouter uses the default configuration with meta tools enabled.
31414
31591
  * @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
31415
31592
  * @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
31416
- * @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
31593
+ * @param {Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint'>} tags - Global tags to filter tools by the type of action they take
31417
31594
  * @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
31418
31595
  * @param {Record<string, string | string[]>} connectedAccounts - The connected accounts to use in the tool router session. A single string is coerced to a single-element array before being sent to the backend.
31419
31596
  * @param {ToolRouterInstant} [instant] - Experimental Instant usage policy. The project must allow Instant usage.
@@ -32142,13 +32319,38 @@ interface ToolRouterSessionExecuteOptions {
32142
32319
  * COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
32143
32320
  */
32144
32321
  account?: string;
32322
+ /**
32323
+ * The user's answers to the questions of a `ComposioToolInputRequiredError`,
32324
+ * keyed by the IDs in its `inputRequests`. Send them by repeating the same
32325
+ * call (same tool and arguments). An approved call runs; a denied or
32326
+ * declined one returns `resultType: 'failed'`.
32327
+ * @experimental
32328
+ */
32329
+ inputResponses?: Record<string, ToolRouterInputResponse>;
32330
+ /**
32331
+ * The `requestState` of the `ComposioToolInputRequiredError`, sent back
32332
+ * unchanged with `inputResponses`.
32333
+ * @experimental
32334
+ */
32335
+ requestState?: string;
32145
32336
  }
32337
+ /**
32338
+ * The user's answer to one question, in the shape of an MCP elicitation
32339
+ * result: `accept` with the form's fields in `content`, `decline` when they
32340
+ * said no, or `cancel` when they dismissed it. For an approval, `content` is
32341
+ * `{ decision: 'approve' }`, `{ decision: 'always_approve' }` or
32342
+ * `{ decision: 'deny' }`.
32343
+ * @experimental
32344
+ */
32345
+ type ToolRouterInputResponse = NonNullable<SessionExecuteParams['input_responses']>[string];
32146
32346
  /**
32147
32347
  * Slug of a Composio meta tool (`COMPOSIO_*`) that `session.executeMeta()` can
32148
32348
  * run, for example `COMPOSIO_SEARCH_TOOLS`.
32149
32349
  */
32150
32350
  type ToolRouterSessionMetaToolSlug = SessionExecuteMetaParams['slug'];
32151
- type ToolRouterSessionExecuteMetaFn = (slug: ToolRouterSessionMetaToolSlug, arguments_?: Record<string, unknown>, requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionExecuteResponse>;
32351
+ /** Options for `session.executeMeta()`: the user's answers to an earlier `input_required` call. */
32352
+ type ToolRouterSessionExecuteMetaOptions = Pick<ToolRouterSessionExecuteOptions, 'inputResponses' | 'requestState'>;
32353
+ type ToolRouterSessionExecuteMetaFn = (slug: ToolRouterSessionMetaToolSlug, arguments_?: Record<string, unknown>, options?: ToolRouterSessionExecuteMetaOptions, requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionExecuteResponse>;
32152
32354
  type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
32153
32355
  type ToolRouterSessionWorkbenchConfig = SessionCreateResponse.Config.Workbench;
32154
32356
  type ToolRouterSessionWarning = SessionCreateResponse.Warning;
@@ -32262,9 +32464,16 @@ declare const ToolRouterUpdateExperimentalSchema: z.ZodObject<{
32262
32464
  }, {
32263
32465
  enable: boolean;
32264
32466
  }>>>;
32467
+ /**
32468
+ * What happens to a call that needs the user's approval when the session's
32469
+ * MCP client can't ask the user: `deny` or `allow`.
32470
+ * @experimental
32471
+ */
32472
+ noElicitationSupportFallback: z.ZodOptional<z.ZodEnum<["deny", "allow"]>>;
32265
32473
  sessionConfigId: z.ZodOptional<z.ZodString>;
32266
32474
  }, "strict", z.ZodTypeAny, {
32267
32475
  sessionConfigId?: string | undefined;
32476
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32268
32477
  permissions?: {
32269
32478
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32270
32479
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32276,6 +32485,7 @@ declare const ToolRouterUpdateExperimentalSchema: z.ZodObject<{
32276
32485
  } | null | undefined;
32277
32486
  }, {
32278
32487
  sessionConfigId?: string | undefined;
32488
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32279
32489
  permissions?: {
32280
32490
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32281
32491
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32362,78 +32572,135 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32362
32572
  }>]>>>;
32363
32573
  toolkits: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
32364
32574
  disable: z.ZodArray<z.ZodString, "many">;
32575
+ } & {
32576
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32365
32577
  }, "strict", z.ZodTypeAny, {
32366
32578
  disable: string[];
32579
+ requireApproval?: string[] | undefined;
32367
32580
  }, {
32368
32581
  disable: string[];
32582
+ requireApproval?: string[] | undefined;
32369
32583
  }>, z.ZodObject<{
32370
32584
  enable: z.ZodArray<z.ZodString, "many">;
32585
+ } & {
32586
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32371
32587
  }, "strict", z.ZodTypeAny, {
32372
32588
  enable: string[];
32589
+ requireApproval?: string[] | undefined;
32373
32590
  }, {
32374
32591
  enable: string[];
32592
+ requireApproval?: string[] | undefined;
32593
+ }>, z.ZodObject<{
32594
+ requireApproval: z.ZodArray<z.ZodString, "many">;
32595
+ }, "strict", z.ZodTypeAny, {
32596
+ requireApproval: string[];
32597
+ }, {
32598
+ requireApproval: string[];
32375
32599
  }>]>>>>;
32376
32600
  tools: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
32377
32601
  enable: z.ZodArray<z.ZodString, "many">;
32602
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32378
32603
  }, "strict", z.ZodTypeAny, {
32379
32604
  enable: string[];
32605
+ requireApproval?: string[] | undefined;
32380
32606
  }, {
32381
32607
  enable: string[];
32608
+ requireApproval?: string[] | undefined;
32382
32609
  }>, z.ZodObject<{
32383
32610
  disable: z.ZodArray<z.ZodString, "many">;
32611
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32384
32612
  }, "strict", z.ZodTypeAny, {
32385
32613
  disable: string[];
32614
+ requireApproval?: string[] | undefined;
32386
32615
  }, {
32387
32616
  disable: string[];
32617
+ requireApproval?: string[] | undefined;
32388
32618
  }>, z.ZodObject<{
32389
32619
  tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
32390
32620
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
32391
32621
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
32622
+ /**
32623
+ * Tools with any of these tags need the user's approval before they run.
32624
+ * @experimental
32625
+ */
32626
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
32392
32627
  }, "strict", z.ZodTypeAny, {
32393
32628
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32394
32629
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32630
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32395
32631
  }, {
32396
32632
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32397
32633
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32634
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32398
32635
  }>]>;
32636
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32399
32637
  }, "strict", z.ZodTypeAny, {
32400
32638
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32401
32639
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32402
32640
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32641
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32403
32642
  };
32643
+ requireApproval?: string[] | undefined;
32404
32644
  }, {
32405
32645
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32406
32646
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32407
32647
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32648
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32408
32649
  };
32650
+ requireApproval?: string[] | undefined;
32651
+ }>, z.ZodObject<{
32652
+ requireApproval: z.ZodArray<z.ZodString, "many">;
32653
+ }, "strict", z.ZodTypeAny, {
32654
+ requireApproval: string[];
32655
+ }, {
32656
+ requireApproval: string[];
32409
32657
  }>]>, string[] | {
32410
32658
  enable: string[];
32659
+ requireApproval?: string[] | undefined;
32411
32660
  } | {
32412
32661
  disable: string[];
32662
+ requireApproval?: string[] | undefined;
32413
32663
  } | {
32414
32664
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32415
32665
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32416
32666
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32667
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32417
32668
  };
32669
+ requireApproval?: string[] | undefined;
32670
+ } | {
32671
+ requireApproval: string[];
32418
32672
  }, string[] | {
32419
32673
  enable: string[];
32674
+ requireApproval?: string[] | undefined;
32420
32675
  } | {
32421
32676
  disable: string[];
32677
+ requireApproval?: string[] | undefined;
32422
32678
  } | {
32423
32679
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32424
32680
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32425
32681
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32682
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32426
32683
  };
32684
+ requireApproval?: string[] | undefined;
32685
+ } | {
32686
+ requireApproval: string[];
32427
32687
  }>]>>>>>;
32428
32688
  tags: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
32429
32689
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
32430
32690
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
32691
+ /**
32692
+ * Tools with any of these tags need the user's approval before they run.
32693
+ * @experimental
32694
+ */
32695
+ requireApproval: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
32431
32696
  }, "strict", z.ZodTypeAny, {
32432
32697
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32433
32698
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32699
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32434
32700
  }, {
32435
32701
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32436
32702
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32703
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32437
32704
  }>]>>>>;
32438
32705
  authConfigs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
32439
32706
  connectedAccounts: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>>;
@@ -32546,9 +32813,16 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32546
32813
  }, {
32547
32814
  enable: boolean;
32548
32815
  }>>>;
32816
+ /**
32817
+ * What happens to a call that needs the user's approval when the session's
32818
+ * MCP client can't ask the user: `deny` or `allow`.
32819
+ * @experimental
32820
+ */
32821
+ noElicitationSupportFallback: z.ZodOptional<z.ZodEnum<["deny", "allow"]>>;
32549
32822
  sessionConfigId: z.ZodOptional<z.ZodString>;
32550
32823
  }, "strict", z.ZodTypeAny, {
32551
32824
  sessionConfigId?: string | undefined;
32825
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32552
32826
  permissions?: {
32553
32827
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32554
32828
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32560,6 +32834,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32560
32834
  } | null | undefined;
32561
32835
  }, {
32562
32836
  sessionConfigId?: string | undefined;
32837
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32563
32838
  permissions?: {
32564
32839
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32565
32840
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32575,21 +32850,32 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32575
32850
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32576
32851
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32577
32852
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32853
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32578
32854
  } | null | undefined;
32579
32855
  tools?: Record<string, string[] | {
32580
32856
  enable: string[];
32857
+ requireApproval?: string[] | undefined;
32581
32858
  } | {
32582
32859
  disable: string[];
32860
+ requireApproval?: string[] | undefined;
32583
32861
  } | {
32584
32862
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32585
32863
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32586
32864
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32865
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32587
32866
  };
32867
+ requireApproval?: string[] | undefined;
32868
+ } | {
32869
+ requireApproval: string[];
32588
32870
  }> | null | undefined;
32589
32871
  toolkits?: string[] | {
32590
32872
  disable: string[];
32873
+ requireApproval?: string[] | undefined;
32591
32874
  } | {
32592
32875
  enable: string[];
32876
+ requireApproval?: string[] | undefined;
32877
+ } | {
32878
+ requireApproval: string[];
32593
32879
  } | null | undefined;
32594
32880
  search?: {
32595
32881
  enable?: boolean | undefined;
@@ -32641,6 +32927,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32641
32927
  } | null | undefined;
32642
32928
  experimental?: {
32643
32929
  sessionConfigId?: string | undefined;
32930
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32644
32931
  permissions?: {
32645
32932
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32646
32933
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32659,21 +32946,32 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32659
32946
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32660
32947
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32661
32948
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32949
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32662
32950
  } | null | undefined;
32663
32951
  tools?: Record<string, string[] | {
32664
32952
  enable: string[];
32953
+ requireApproval?: string[] | undefined;
32665
32954
  } | {
32666
32955
  disable: string[];
32956
+ requireApproval?: string[] | undefined;
32667
32957
  } | {
32668
32958
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32669
32959
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32670
32960
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32961
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32671
32962
  };
32963
+ requireApproval?: string[] | undefined;
32964
+ } | {
32965
+ requireApproval: string[];
32672
32966
  }> | null | undefined;
32673
32967
  toolkits?: string[] | {
32674
32968
  disable: string[];
32969
+ requireApproval?: string[] | undefined;
32675
32970
  } | {
32676
32971
  enable: string[];
32972
+ requireApproval?: string[] | undefined;
32973
+ } | {
32974
+ requireApproval: string[];
32677
32975
  } | null | undefined;
32678
32976
  search?: {
32679
32977
  enable?: boolean | undefined;
@@ -32725,6 +33023,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32725
33023
  } | null | undefined;
32726
33024
  experimental?: {
32727
33025
  sessionConfigId?: string | undefined;
33026
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32728
33027
  permissions?: {
32729
33028
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32730
33029
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32743,21 +33042,32 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32743
33042
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32744
33043
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32745
33044
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33045
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32746
33046
  } | null | undefined;
32747
33047
  tools?: Record<string, string[] | {
32748
33048
  enable: string[];
33049
+ requireApproval?: string[] | undefined;
32749
33050
  } | {
32750
33051
  disable: string[];
33052
+ requireApproval?: string[] | undefined;
32751
33053
  } | {
32752
33054
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32753
33055
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32754
33056
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33057
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32755
33058
  };
33059
+ requireApproval?: string[] | undefined;
33060
+ } | {
33061
+ requireApproval: string[];
32756
33062
  }> | null | undefined;
32757
33063
  toolkits?: string[] | {
32758
33064
  disable: string[];
33065
+ requireApproval?: string[] | undefined;
32759
33066
  } | {
32760
33067
  enable: string[];
33068
+ requireApproval?: string[] | undefined;
33069
+ } | {
33070
+ requireApproval: string[];
32761
33071
  } | null | undefined;
32762
33072
  search?: {
32763
33073
  enable?: boolean | undefined;
@@ -32809,6 +33119,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32809
33119
  } | null | undefined;
32810
33120
  experimental?: {
32811
33121
  sessionConfigId?: string | undefined;
33122
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32812
33123
  permissions?: {
32813
33124
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32814
33125
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -32827,21 +33138,32 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32827
33138
  tags?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32828
33139
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32829
33140
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33141
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32830
33142
  } | null | undefined;
32831
33143
  tools?: Record<string, string[] | {
32832
33144
  enable: string[];
33145
+ requireApproval?: string[] | undefined;
32833
33146
  } | {
32834
33147
  disable: string[];
33148
+ requireApproval?: string[] | undefined;
32835
33149
  } | {
32836
33150
  tags: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32837
33151
  disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32838
33152
  enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
33153
+ requireApproval?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32839
33154
  };
33155
+ requireApproval?: string[] | undefined;
33156
+ } | {
33157
+ requireApproval: string[];
32840
33158
  }> | null | undefined;
32841
33159
  toolkits?: string[] | {
32842
33160
  disable: string[];
33161
+ requireApproval?: string[] | undefined;
32843
33162
  } | {
32844
33163
  enable: string[];
33164
+ requireApproval?: string[] | undefined;
33165
+ } | {
33166
+ requireApproval: string[];
32845
33167
  } | null | undefined;
32846
33168
  search?: {
32847
33169
  enable?: boolean | undefined;
@@ -32893,6 +33215,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32893
33215
  } | null | undefined;
32894
33216
  experimental?: {
32895
33217
  sessionConfigId?: string | undefined;
33218
+ noElicitationSupportFallback?: "deny" | "allow" | undefined;
32896
33219
  permissions?: {
32897
33220
  default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32898
33221
  overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
@@ -33317,4 +33640,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
33317
33640
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
33318
33641
  type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
33319
33642
  //#endregion
33320
- export { ToolRouterSessionConfigHistoryConfig as $, Oauth2InitiatedConnectionData as $i, CreateConnectedAccountParams as $n, McpListResponseSchema as $r, FileListResponseSchema as $t, SessionProxyExecuteParams as A, ToolExecuteResponse as Aa, Oauth1ActiveConnectionDataSchema as Ai, ConnectedAccountListResponseItem as An, MCPGenerateURLParams as Ar, ToolRouterToolkitsDisabledConfigSchema as At, ToolRouterCreateSessionConfigSchema as B, ToolSchema as Ba, Oauth1InitiatedConnectionDataSchema as Bi, ConnectedAccountStatus as Bn, MCPServerListResponse as Br, ToolRouterUpdateExperimentalSchema as Bt, MCPServerType as C, JSONSchemaPropertySchema as Ca, CustomConnectionData as Ci, ConnectedAccountExperimental as Cn, GenerateURLParamsSchema as Cr, ToolRouterSessionSearchResponse as Ct, Session as D, ToolExecuteMetaParamsSchema as Da, CustomOauth2ConnectionData as Di, ConnectedAccountListParams as Dn, MCPAuthOptions as Dr, ToolRouterSessionWorkbenchConfig as Dt, SandboxSizeSchema as E, ToolExecuteMetaParams as Ea, CustomOauth1ConnectionDataSchema as Ei, ConnectedAccountExperimentalSchema as En, GenerateURLResponseValidated as Er, ToolRouterSessionWarning as Et, ToolRouterConfigTags as F, ToolListResponse as Fa, Oauth1FailedConnectionData as Fi, ConnectedAccountRetrieveResponseSchema as Fn, MCPMultiAppServer as Fr, ToolRouterToolkitsParamSchema as Ft, ToolRouterManageConnectionsConfigSchema as G, ToolkitVersion as Ga, Oauth2ConnectionData as Gi, ConnectedAccountTypeSchema as Gn, MCPSingleAppServer as Gr, ToolkitConnectionState as Gt, ToolRouterInstantSchema as H, ToolkitLatestVersion as Ha, Oauth1InitiatingConnectionDataSchema as Hi, ConnectedAccountStatusSchema as Hn, MCPServerSchema as Hr, ToolRouterUpdateManageConnectionsSchema as Ht, ToolRouterConfigTagsSchema as I, ToolListResponseSchema as Ia, Oauth1FailedConnectionDataSchema as Ii, ConnectedAccountRevokeResponse as In, MCPMultiAppServerSchema as Ir, ToolRouterToolsFn as It, ToolRouterProxyExecuteConfigSchema as J, ToolkitVersionSchema as Ja, Oauth2ExpiredConnectionDataSchema as Ji, CreateConnectedAccountLinkOptionsSchema as Jn, MCPToolkitConfigSchema as Jr, ToolkitConnectionsDetailsSchema as Jt, ToolRouterProxyExecute as K, ToolkitVersionParam as Ka, Oauth2ConnectionDataSchema as Ki, ConnectedAccountTypes as Kn, MCPSingleAppServerSchema as Kr, ToolkitConnectionStateSchema as Kt, ToolRouterConfigTools as L, ToolProxyParams as La, Oauth1InactiveConnectionData as Li, ConnectedAccountRevokeResponseSchema as Ln, MCPServer as Lr, ToolRouterToolsParam as Lt, SessionWithoutMcp as M, ToolList as Ma, Oauth1ConnectionDataSchema as Mi, ConnectedAccountRefreshOptions as Mn, MCPGetServerParams as Mr, ToolRouterToolkitsFn as Mt, ToolRouterAuthorizeFn as N, ToolListParams as Na, Oauth1ExpiredConnectionData as Ni, ConnectedAccountRefreshOptionsSchema as Nn, MCPGetServerParamsSchema as Nr, ToolRouterToolkitsOptions as Nt, SessionExperimental as O, ToolExecuteParams as Oa, CustomOauth2ConnectionDataSchema as Oi, ConnectedAccountListParamsSchema as On, MCPAuthOptionsSchema as Or, ToolRouterTagsEnableDisableSchema as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolListParamsSchema as Pa, Oauth1ExpiredConnectionDataSchema as Pi, ConnectedAccountRetrieveResponse as Pn, MCPInstanceParams as Pr, ToolRouterToolkitsOptionsSchema as Pt, ToolRouterSessionConfig as Q, Oauth2InactiveConnectionDataSchema as Qi, CreateConnectedAccountOptionsSchema as Qn, McpListResponse as Qr, FileListResponse as Qt, ToolRouterConfigToolsSchema as R, ToolProxyParamsSchema as Ra, Oauth1InactiveConnectionDataSchema as Ri, ConnectedAccountRevokedToken as Rn, MCPServerCreateResponse as Rr, ToolRouterToolsParamSchema as Rt, SessionContext as S, JSONSchemaProperty as Sa, ConnectionStatuses as Si, ConnectedAccountCompleteAuthResponseSchema as Sn, GenerateURLParams as Sr, ToolRouterSessionSearchFn as St, SandboxSize as T, Tool as Ta, CustomOauth1ConnectionData as Ti, ConnectedAccountExperimentalResponseSchema as Tn, GenerateURLResponseSchema as Tr, ToolRouterSessionUpdateFn as Tt, ToolRouterMCPServerConfig as U, ToolkitLatestVersionSchema as Ua, Oauth2ActiveConnectionData as Ui, ConnectedAccountStatuses as Un, MCPServerUpdateParams as Ur, ToolRouterUpdateSessionConfig as Ut, ToolRouterInstant as V, Toolkit as Va, Oauth1InitiatingConnectionData as Vi, ConnectedAccountStatusEnum as Vn, MCPServerListResponseSchema as Vr, ToolRouterUpdateManageConnectionsConfig as Vt, ToolRouterMCPServerConfigSchema as W, ToolkitSchema as Wa, Oauth2ActiveConnectionDataSchema as Wi, ConnectedAccountType as Wn, MCPServerUpdateParamsSchema as Wr, ToolRouterUpdateSessionConfigSchema as Wt, ToolRouterSandboxConfig as X, ToolkitVersionsSchema as Xa, Oauth2FailedConnectionDataSchema as Xi, CreateConnectedAccountLinkResponseSchema as Xn, McpDeleteResponse as Xr, FileDeleteResponse as Xt, ToolRouterProxyExecuteSchema as Y, ToolkitVersions as Ya, Oauth2FailedConnectionData as Yi, CreateConnectedAccountLinkResponse as Yn, MCPToolkitConfigsArraySchema as Yr, RemoteFile as Yt, ToolRouterSandboxConfigSchema as Z, Oauth2InactiveConnectionData as Zi, CreateConnectedAccountOptions as Zn, McpDeleteResponseSchema as Zr, FileDeleteResponseSchema as Zt, CustomToolsMapEntry as _, beforeExecuteMetaModifier as _a, BaseConnectionFields as _i, ConnectedAccountAuthConfig as _n, ComposioMcpUpdateResponseSchema as _r, ToolRouterSessionMetaToolSlug as _t, CreateCustomToolkitParams as a, RedirectableAuthSchemeSchema as aa, McpToolkitConnectionStatus as ai, ToolRouterSessionFilesMountDownloadOptionsSchema as an, UpdateConnectedAccountAclParamsSchema as ar, ToolRouterSessionEnsureConnectedOptions as at, RegisteredCustomTool as b, CustomAuthParams as ba, ConnectionDataSchema as bi, ConnectedAccountCompleteAuthParamsSchema as bn, CustomCreateResponseSchema as br, ToolRouterSessionProxyExecuteFn as bt, CustomToolExecuteFn as c, ExecuteToolModifiers as ca, McpUrlResponse as ci, ToolRouterSessionFilesMountUploadOptions as cn, BaseAgenticProvider as cr, ToolRouterSessionExecuteFn as ct, CustomToolWireDefinition as d, SessionExecuteMetaModifiers as da, ExecuteToolFn as di, ConnectionRequest as dn, ComposioCustomCreateResponseSchema as dr, ToolRouterSessionExecuteResponse as dt, Oauth2InitiatedConnectionDataSchema as ea, McpRetrieveResponse as ei, RemoteFileData as en, CreateConnectedAccountParamsSchema as er, ToolRouterSessionConfigHistoryItem as et, CustomToolkit as f, SessionMetaToolOptions as fa, ExecuteToolFnOptions as fi, ConnectionRequestState as fn, ComposioGenerateURLParamsSchema as fr, ToolRouterSessionExecuteResponseSchema as ft, CustomToolsMap as g, afterExecuteModifier as ga, ToolCallSession as gi, ConnectedAccountAclConfigSchema as gn, ComposioMcpRetrieveResponseSchema as gr, ToolRouterSessionListConfigHistoryResponse as gt, CustomToolkitWireDefinition as h, afterExecuteMetaModifier as ha, ToolCallExecutionTarget as hi, ConnectedAccountAclConfigResponseSchema as hn, ComposioMcpListResponseSchema as hr, ToolRouterSessionListConfigHistoryOptionsSchema as ht, CreateCustomToolkitBaseSchema as i, Oauth2RevokedConnectionDataSchema as ia, McpServerUrlInfo as ii, ToolRouterSessionFilesMountDownloadOptions as in, UpdateConnectedAccountAclParams as ir, ToolRouterSessionEnsureConnectedFn as it, SessionProxyExecuteParamsSchema as j, ToolExecuteResponseSchema as ja, Oauth1ConnectionData as ji, ConnectedAccountListResponseSchema as jn, MCPGenerateURLParamsSchema as jr, ToolRouterToolkitsEnabledConfigSchema as jt, SessionPreset as k, ToolExecuteParamsSchema as ka, Oauth1ActiveConnectionData as ki, ConnectedAccountListResponse as kn, MCPCreateMethodResponse as kr, ToolRouterTagsParamSchema as kt, CustomToolResponse as l, MetaToolArguments as la, McpUrlResponseCamelCase as li, ToolRouterSessionFilesMountUploadOptionsSchema as ln, BaseComposioProvider as lr, ToolRouterSessionExecuteMetaFn as lt, CustomToolkitResponse as m, TransformToolSchemaModifier as ma, Provider as mi, ConnectedAccountAclConfigResponse as mn, ComposioMcpDeleteResponseSchema as mr, ToolRouterSessionListConfigHistoryOptions as mt, CreateCustomToolBaseSchema as n, Oauth2InitiatingConnectionDataSchema as na, McpServerCreateResponse as ni, ToolRouterSessionFilesMountDeleteOptions as nn, CreateConnectedAccountResponseSchema as nr, ToolRouterSessionDeleteResponse as nt, CustomTool as o, AgenticToolOptions as oa, McpUpdateResponse as oi, ToolRouterSessionFilesMountListOptions as on, UpdateConnectedAccountParams as or, ToolRouterSessionEnsureConnectedOptionsSchema as ot, CustomToolkitDefinition as p, ToolOptions as pa, GlobalExecuteToolFn as pi, ConnectedAccountAclConfig as pn, ComposioGenerateURLResponseSchema as pr, ToolRouterSessionListConfigHistoryFn as pt, ToolRouterProxyExecuteConfig as q, ToolkitVersionParamSchema as qa, Oauth2ExpiredConnectionData as qi, CreateConnectedAccountLinkOptions as qn, MCPToolkitConfig as qr, ToolkitConnectionsDetails as qt, CreateCustomToolParams as r, Oauth2RevokedConnectionData as ra, McpServerGetResponse as ri, ToolRouterSessionFilesMountDeleteOptionsSchema as rn, DefaultCreateConnectedAccountParamsSchema as rr, ToolRouterSessionDeleteResponseSchema as rt, CustomToolDefinition as s, BeforeFileUploadSource as sa, McpUpdateResponseSchema as si, ToolRouterSessionFilesMountListOptionsSchema as sn, UpdateConnectedAccountParamsSchema as sr, ToolRouterSessionEnsureConnectedResult as st, AnyZodSchema as t, Oauth2InitiatingConnectionData as ta, McpRetrieveResponseSchema as ti, RemoteFileDataSchema as tn, CreateConnectedAccountResponse as tr, ToolRouterSessionDeleteFn as tt, CustomToolSlugSchema as u, ProviderOptions as ua, McpUserConnectionStatus as ui, ComposioRequestOptions as un, BaseNonAgenticProvider as ur, ToolRouterSessionExecuteOptions as ut, InferZodSchema as v, beforeExecuteModifier as va, BillcomAuthConnectionDataSchema as vi, ConnectedAccountAuthConfigSchema as vn, ConnectionStatus as vr, ToolRouterSessionMetadata as vt, MCPServerTypeSchema as w, SchemaModifierOptions as wa, CustomConnectionDataSchema as wi, ConnectedAccountExperimentalResponse as wn, GenerateURLResponse$1 as wr, ToolRouterSessionSearchResponseSchema as wt, RegisteredCustomToolkit as x, CustomAuthParamsSchema as xa, ConnectionStatusEnum as xi, ConnectedAccountCompleteAuthResponse as xn, CustomCreateResponseValidated as xr, ToolRouterSessionProxyExecuteResponse as xt, InlineCustomToolsWirePayload as y, beforeFileUploadModifier as ya, ConnectionData as yi, ConnectedAccountCompleteAuthParams as yn, CustomCreateResponse$1 as yr, ToolRouterSessionPreloadConfig as yt, ToolRouterCreateSessionConfig as z, ToolRetrievalOptions as za, Oauth1InitiatedConnectionData as zi, ConnectedAccountRevokedTokenSchema as zn, MCPServerCreateResponseSchema as zr, ToolRouterUpdateExperimentalConfig as zt };
33643
+ export { ToolRouterSessionConfig as $, Oauth2InactiveConnectionData as $i, CreateConnectedAccountOptions as $n, McpDeleteResponseSchema as $r, FileDeleteResponseSchema as $t, SessionProxyExecuteParams as A, ToolExecuteParams as Aa, CustomOauth2ConnectionDataSchema as Ai, ConnectedAccountListParamsSchema as An, MCPAuthOptionsSchema as Ar, ToolRouterTagsEnableDisableSchema as At, ToolRouterCreateSessionConfigSchema as B, ToolProxyParamsSchema as Ba, Oauth1InactiveConnectionDataSchema as Bi, ConnectedAccountRevokedToken as Bn, MCPServerCreateResponse as Br, ToolRouterToolsParamSchema as Bt, MCPServerType as C, CustomAuthParamsSchema as Ca, ConnectionStatusEnum as Ci, ConnectedAccountCompleteAuthResponse as Cn, CustomCreateResponseValidated as Cr, ToolRouterSessionProxyExecuteResponse as Ct, Session as D, Tool as Da, CustomOauth1ConnectionData as Di, ConnectedAccountExperimentalResponseSchema as Dn, GenerateURLResponseSchema as Dr, ToolRouterSessionUpdateFn as Dt, SandboxSizeSchema as E, SchemaModifierOptions as Ea, CustomConnectionDataSchema as Ei, ConnectedAccountExperimentalResponse as En, GenerateURLResponse$1 as Er, ToolRouterSessionSearchResponseSchema as Et, ToolRouterConfigTags as F, ToolListParams as Fa, Oauth1ExpiredConnectionData as Fi, ConnectedAccountRefreshOptionsSchema as Fn, MCPGetServerParamsSchema as Fr, ToolRouterToolkitsOptions as Ft, ToolRouterMCPServerConfigSchema as G, ToolkitLatestVersionSchema as Ga, Oauth2ActiveConnectionData as Gi, ConnectedAccountStatuses as Gn, MCPServerUpdateParams as Gr, ToolRouterUpdateSessionConfig as Gt, ToolRouterInstant as H, ToolSchema as Ha, Oauth1InitiatedConnectionDataSchema as Hi, ConnectedAccountStatus as Hn, MCPServerListResponse as Hr, ToolRouterUpdateExperimentalSchema as Ht, ToolRouterConfigTagsSchema as I, ToolListParamsSchema as Ia, Oauth1ExpiredConnectionDataSchema as Ii, ConnectedAccountRetrieveResponse as In, MCPInstanceParams as Ir, ToolRouterToolkitsOptionsSchema as It, ToolRouterProxyExecuteConfig as J, ToolkitVersionParam as Ja, Oauth2ConnectionDataSchema as Ji, ConnectedAccountTypes as Jn, MCPSingleAppServerSchema as Jr, ToolkitConnectionStateSchema as Jt, ToolRouterManageConnectionsConfigSchema as K, ToolkitSchema as Ka, Oauth2ActiveConnectionDataSchema as Ki, ConnectedAccountType as Kn, MCPServerUpdateParamsSchema as Kr, ToolRouterUpdateSessionConfigSchema as Kt, ToolRouterConfigTools as L, ToolListResponse as La, Oauth1FailedConnectionData as Li, ConnectedAccountRetrieveResponseSchema as Ln, MCPMultiAppServer as Lr, ToolRouterToolkitsParamSchema as Lt, SessionWithoutMcp as M, ToolExecuteResponse as Ma, Oauth1ActiveConnectionDataSchema as Mi, ConnectedAccountListResponseItem as Mn, MCPGenerateURLParams as Mr, ToolRouterToolkitsDisabledConfigSchema as Mt, ToolRouterAuthorizeFn as N, ToolExecuteResponseSchema as Na, Oauth1ConnectionData as Ni, ConnectedAccountListResponseSchema as Nn, MCPGenerateURLParamsSchema as Nr, ToolRouterToolkitsEnabledConfigSchema as Nt, SessionExperimental as O, ToolExecuteMetaParams as Oa, CustomOauth1ConnectionDataSchema as Oi, ConnectedAccountExperimentalSchema as On, GenerateURLResponseValidated as Or, ToolRouterSessionWarning as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolList as Pa, Oauth1ConnectionDataSchema as Pi, ConnectedAccountRefreshOptions as Pn, MCPGetServerParams as Pr, ToolRouterToolkitsFn as Pt, ToolRouterSandboxConfigSchema as Q, ToolkitVersionsSchema as Qa, Oauth2FailedConnectionDataSchema as Qi, CreateConnectedAccountLinkResponseSchema as Qn, McpDeleteResponse as Qr, FileDeleteResponse as Qt, ToolRouterConfigToolsSchema as R, ToolListResponseSchema as Ra, Oauth1FailedConnectionDataSchema as Ri, ConnectedAccountRevokeResponse as Rn, MCPMultiAppServerSchema as Rr, ToolRouterToolsFn as Rt, SessionContext as S, CustomAuthParams as Sa, ConnectionDataSchema as Si, ConnectedAccountCompleteAuthParamsSchema as Sn, CustomCreateResponseSchema as Sr, ToolRouterSessionProxyExecuteFn as St, SandboxSize as T, JSONSchemaPropertySchema as Ta, CustomConnectionData as Ti, ConnectedAccountExperimental as Tn, GenerateURLParamsSchema as Tr, ToolRouterSessionSearchResponse as Tt, ToolRouterInstantSchema as U, Toolkit as Ua, Oauth1InitiatingConnectionData as Ui, ConnectedAccountStatusEnum as Un, MCPServerListResponseSchema as Ur, ToolRouterUpdateManageConnectionsConfig as Ut, ToolRouterInputResponse as V, ToolRetrievalOptions as Va, Oauth1InitiatedConnectionData as Vi, ConnectedAccountRevokedTokenSchema as Vn, MCPServerCreateResponseSchema as Vr, ToolRouterUpdateExperimentalConfig as Vt, ToolRouterMCPServerConfig as W, ToolkitLatestVersion as Wa, Oauth1InitiatingConnectionDataSchema as Wi, ConnectedAccountStatusSchema as Wn, MCPServerSchema as Wr, ToolRouterUpdateManageConnectionsSchema as Wt, ToolRouterProxyExecuteSchema as X, ToolkitVersionSchema as Xa, Oauth2ExpiredConnectionDataSchema as Xi, CreateConnectedAccountLinkOptionsSchema as Xn, MCPToolkitConfigSchema as Xr, ToolkitConnectionsDetailsSchema as Xt, ToolRouterProxyExecuteConfigSchema as Y, ToolkitVersionParamSchema as Ya, Oauth2ExpiredConnectionData as Yi, CreateConnectedAccountLinkOptions as Yn, MCPToolkitConfig as Yr, ToolkitConnectionsDetails as Yt, ToolRouterSandboxConfig as Z, ToolkitVersions as Za, Oauth2FailedConnectionData as Zi, CreateConnectedAccountLinkResponse as Zn, MCPToolkitConfigsArraySchema as Zr, RemoteFile as Zt, CustomToolsMapEntry as _, afterExecuteMetaModifier as _a, ToolCallExecutionTarget as _i, ConnectedAccountAclConfigResponseSchema as _n, ComposioMcpListResponseSchema as _r, ToolRouterSessionListConfigHistoryOptionsSchema as _t, CreateCustomToolkitParams as a, Oauth2RevokedConnectionData as aa, McpServerGetResponse as ai, ToolRouterSessionFilesMountDeleteOptionsSchema as an, DefaultCreateConnectedAccountParamsSchema as ar, ToolRouterSessionEnsureConnectedFn as at, RegisteredCustomTool as b, beforeExecuteModifier as ba, BillcomAuthConnectionDataSchema as bi, ConnectedAccountAuthConfigSchema as bn, ConnectionStatus as br, ToolRouterSessionMetadata as bt, CustomToolExecuteFn as c, AgenticToolOptions as ca, McpUpdateResponse as ci, ToolRouterSessionFilesMountListOptions as cn, UpdateConnectedAccountParams as cr, ToolRouterSessionEnsureConnectedResult as ct, CustomToolWireDefinition as d, MetaToolArguments as da, McpUrlResponseCamelCase as di, ToolRouterSessionFilesMountUploadOptionsSchema as dn, BaseComposioProvider as dr, ToolRouterSessionExecuteMetaOptions as dt, Oauth2InactiveConnectionDataSchema as ea, McpListResponse as ei, FileListResponse as en, CreateConnectedAccountOptionsSchema as er, ToolRouterSessionConfigHistoryConfig as et, CustomToolkit as f, ProviderOptions as fa, McpUserConnectionStatus as fi, ComposioRequestOptions as fn, BaseNonAgenticProvider as fr, ToolRouterSessionExecuteOptions as ft, CustomToolsMap as g, TransformToolSchemaModifier as ga, Provider as gi, ConnectedAccountAclConfigResponse as gn, ComposioMcpDeleteResponseSchema as gr, ToolRouterSessionListConfigHistoryOptions as gt, CustomToolkitWireDefinition as h, ToolOptions as ha, GlobalExecuteToolFn as hi, ConnectedAccountAclConfig as hn, ComposioGenerateURLResponseSchema as hr, ToolRouterSessionListConfigHistoryFn as ht, CreateCustomToolkitBaseSchema as i, Oauth2InitiatingConnectionDataSchema as ia, McpServerCreateResponse as ii, ToolRouterSessionFilesMountDeleteOptions as in, CreateConnectedAccountResponseSchema as ir, ToolRouterSessionDeleteResponseSchema as it, SessionProxyExecuteParamsSchema as j, ToolExecuteParamsSchema as ja, Oauth1ActiveConnectionData as ji, ConnectedAccountListResponse as jn, MCPCreateMethodResponse as jr, ToolRouterTagsParamSchema as jt, SessionPreset as k, ToolExecuteMetaParamsSchema as ka, CustomOauth2ConnectionData as ki, ConnectedAccountListParams as kn, MCPAuthOptions as kr, ToolRouterSessionWorkbenchConfig as kt, CustomToolResponse as l, BeforeFileUploadSource as la, McpUpdateResponseSchema as li, ToolRouterSessionFilesMountListOptionsSchema as ln, UpdateConnectedAccountParamsSchema as lr, ToolRouterSessionExecuteFn as lt, CustomToolkitResponse as m, SessionMetaToolOptions as ma, ExecuteToolFnOptions as mi, ConnectionRequestState as mn, ComposioGenerateURLParamsSchema as mr, ToolRouterSessionExecuteResponseSchema as mt, CreateCustomToolBaseSchema as n, Oauth2InitiatedConnectionDataSchema as na, McpRetrieveResponse as ni, RemoteFileData as nn, CreateConnectedAccountParamsSchema as nr, ToolRouterSessionDeleteFn as nt, CustomTool as o, Oauth2RevokedConnectionDataSchema as oa, McpServerUrlInfo as oi, ToolRouterSessionFilesMountDownloadOptions as on, UpdateConnectedAccountAclParams as or, ToolRouterSessionEnsureConnectedOptions as ot, CustomToolkitDefinition as p, SessionExecuteMetaModifiers as pa, ExecuteToolFn as pi, ConnectionRequest as pn, ComposioCustomCreateResponseSchema as pr, ToolRouterSessionExecuteResponse as pt, ToolRouterProxyExecute as q, ToolkitVersion as qa, Oauth2ConnectionData as qi, ConnectedAccountTypeSchema as qn, MCPSingleAppServer as qr, ToolkitConnectionState as qt, CreateCustomToolParams as r, Oauth2InitiatingConnectionData as ra, McpRetrieveResponseSchema as ri, RemoteFileDataSchema as rn, CreateConnectedAccountResponse as rr, ToolRouterSessionDeleteResponse as rt, CustomToolDefinition as s, RedirectableAuthSchemeSchema as sa, McpToolkitConnectionStatus as si, ToolRouterSessionFilesMountDownloadOptionsSchema as sn, UpdateConnectedAccountAclParamsSchema as sr, ToolRouterSessionEnsureConnectedOptionsSchema as st, AnyZodSchema as t, Oauth2InitiatedConnectionData as ta, McpListResponseSchema as ti, FileListResponseSchema as tn, CreateConnectedAccountParams as tr, ToolRouterSessionConfigHistoryItem as tt, CustomToolSlugSchema as u, ExecuteToolModifiers as ua, McpUrlResponse as ui, ToolRouterSessionFilesMountUploadOptions as un, BaseAgenticProvider as ur, ToolRouterSessionExecuteMetaFn as ut, InferZodSchema as v, afterExecuteModifier as va, ToolCallSession as vi, ConnectedAccountAclConfigSchema as vn, ComposioMcpRetrieveResponseSchema as vr, ToolRouterSessionListConfigHistoryResponse as vt, MCPServerTypeSchema as w, JSONSchemaProperty as wa, ConnectionStatuses as wi, ConnectedAccountCompleteAuthResponseSchema as wn, GenerateURLParams as wr, ToolRouterSessionSearchFn as wt, RegisteredCustomToolkit as x, beforeFileUploadModifier as xa, ConnectionData as xi, ConnectedAccountCompleteAuthParams as xn, CustomCreateResponse$1 as xr, ToolRouterSessionPreloadConfig as xt, InlineCustomToolsWirePayload as y, beforeExecuteMetaModifier as ya, BaseConnectionFields as yi, ConnectedAccountAuthConfig as yn, ComposioMcpUpdateResponseSchema as yr, ToolRouterSessionMetaToolSlug as yt, ToolRouterCreateSessionConfig as z, ToolProxyParams as za, Oauth1InactiveConnectionData as zi, ConnectedAccountRevokeResponseSchema as zn, MCPServer as zr, ToolRouterToolsParam as zt };