@composio/core 0.26.0 → 0.28.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 (49) hide show
  1. package/dist/{CustomTool-DfP4ldQl.d.mts → CustomTool-DyypijT6.d.mts} +2 -2
  2. package/dist/{Telemetry-41JkqpZ7.mjs → Telemetry-D2PJwXKx.mjs} +1 -1
  3. package/dist/{composio-BMDH-1Qj.d.mts → composio-CwHMpKXb.d.mts} +748 -70
  4. package/dist/{customTool.types-BoOELgJF.d.mts → customTool.types-DoItUHkO.d.mts} +780 -23
  5. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +3 -3
  6. package/dist/docs/reference/sdk-reference/typescript/session.mdx +5 -4
  7. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +5 -1
  8. package/dist/experimental/index.d.mts +2 -2
  9. package/dist/{fileUtils.node-DNLhLg0W.mjs → fileUtils.node-ILI1IjnZ.mjs} +4 -3
  10. package/dist/index.d.mts +10 -10
  11. package/dist/index.mjs +420 -158
  12. package/dist/models/Files.node.mjs +2 -2
  13. package/dist/sensitiveFileUploadPaths-BaEORC7-.mjs +588 -0
  14. package/dist/{types-DHNV_T_z.d.mts → types-DWZWePfZ.d.mts} +2 -2
  15. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  16. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  17. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  18. package/dist/utils/modifiers/FileToolModifier.node.mjs +1 -1
  19. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  20. package/package.json +7 -6
  21. package/src/lib/toolRouterParams.ts +33 -15
  22. package/src/lib/toolRouterSessionDelete.ts +1 -10
  23. package/src/models/ConnectedAccounts.ts +1 -1
  24. package/src/models/CustomTool.ts +1 -1
  25. package/src/models/CustomToolkits.ts +114 -8
  26. package/src/models/Experimental.ts +1 -1
  27. package/src/models/MCP.ts +1 -2
  28. package/src/models/SessionConfigs.ts +11 -3
  29. package/src/models/SessionContext.ts +6 -21
  30. package/src/models/ToolRouter.ts +5 -1
  31. package/src/models/ToolRouterSession.ts +21 -35
  32. package/src/models/Tools.ts +3 -3
  33. package/src/models/Triggers.ts +12 -5
  34. package/src/models/inlineCustomToolsPayload.ts +3 -3
  35. package/src/models/proxyParamsTransform.ts +1 -1
  36. package/src/types/customTool.types.ts +13 -5
  37. package/src/types/customToolkits.types.ts +89 -9
  38. package/src/types/sessionConfigs.types.ts +21 -7
  39. package/src/types/toolRouter.types.ts +169 -17
  40. package/src/types/triggers.types.ts +14 -0
  41. package/src/utils/fileUtils.node.ts +5 -2
  42. package/src/utils/mime.ts +347 -1
  43. package/src/utils/transformers/connectedAccounts.ts +2 -7
  44. package/src/utils/transformers/customToolkits.ts +78 -9
  45. package/src/utils/transformers/sessionConfigs.ts +3 -3
  46. package/src/utils/transformers/toolRouterResponseTransform.ts +71 -5
  47. package/src/utils/transformers/toolkits.ts +7 -13
  48. package/src/utils/transformers/triggers.ts +28 -18
  49. package/dist/sensitiveFileUploadPaths-BlLp-Yo2.mjs +0 -189
@@ -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, SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
6
+ import { SessionConfigHistoryResponse, SessionCreateParams, SessionCreateResponse, SessionExecuteMetaParams, SessionExecuteParams } from "@composio/client/resources/tool-router/session";
7
7
  //#region src/types/tool.types.d.ts
8
8
  /**
9
9
  * Toolkit is the collection of tools,
@@ -30843,6 +30843,160 @@ declare const ToolRouterProxyExecuteSchema: z.ZodUnion<[z.ZodBoolean, z.ZodObjec
30843
30843
  enable: boolean;
30844
30844
  }>]>;
30845
30845
  type ToolRouterProxyExecute = z.infer<typeof ToolRouterProxyExecuteSchema>;
30846
+ /** Which tool calls a hook runs on: `'all'`, or only calls to the listed toolkits (including their proxy calls). */
30847
+ declare const ToolRouterHookAppliesToSchema: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
30848
+ toolkits: z.ZodArray<z.ZodString, "many">;
30849
+ }, "strict", z.ZodTypeAny, {
30850
+ toolkits: string[];
30851
+ }, {
30852
+ toolkits: string[];
30853
+ }>]>;
30854
+ type ToolRouterHookAppliesTo = z.infer<typeof ToolRouterHookAppliesToSchema>;
30855
+ /** Blocks a call or result when it matches `condition`, a plain sentence describing what to block. */
30856
+ declare const ToolRouterHookConditionCheckHandlerSchema: z.ZodObject<{
30857
+ type: z.ZodLiteral<"condition_check">;
30858
+ condition: z.ZodString;
30859
+ action: z.ZodLiteral<"block">;
30860
+ }, "strict", z.ZodTypeAny, {
30861
+ type: "condition_check";
30862
+ condition: string;
30863
+ action: "block";
30864
+ }, {
30865
+ type: "condition_check";
30866
+ condition: string;
30867
+ action: "block";
30868
+ }>;
30869
+ type ToolRouterHookConditionCheckHandler = z.infer<typeof ToolRouterHookConditionCheckHandlerSchema>;
30870
+ /** A pre-defined check that blocks results with text that tries to give the agent instructions. */
30871
+ declare const ToolRouterHookPromptInjectionCheckHandlerSchema: z.ZodObject<{
30872
+ type: z.ZodLiteral<"prompt_injection_check">;
30873
+ action: z.ZodLiteral<"block">;
30874
+ }, "strict", z.ZodTypeAny, {
30875
+ type: "prompt_injection_check";
30876
+ action: "block";
30877
+ }, {
30878
+ type: "prompt_injection_check";
30879
+ action: "block";
30880
+ }>;
30881
+ type ToolRouterHookPromptInjectionCheckHandler = z.infer<typeof ToolRouterHookPromptInjectionCheckHandlerSchema>;
30882
+ /**
30883
+ * A hook on a session's tool calls. A `before_execute` hook can block a call
30884
+ * before it runs; an `after_execute` hook can block its result before the
30885
+ * agent sees it.
30886
+ */
30887
+ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30888
+ handler: z.ZodObject<{
30889
+ type: z.ZodLiteral<"condition_check">;
30890
+ condition: z.ZodString;
30891
+ action: z.ZodLiteral<"block">;
30892
+ }, "strict", z.ZodTypeAny, {
30893
+ type: "condition_check";
30894
+ condition: string;
30895
+ action: "block";
30896
+ }, {
30897
+ type: "condition_check";
30898
+ condition: string;
30899
+ action: "block";
30900
+ }>;
30901
+ id: z.ZodString;
30902
+ name: z.ZodOptional<z.ZodString>;
30903
+ appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
30904
+ toolkits: z.ZodArray<z.ZodString, "many">;
30905
+ }, "strict", z.ZodTypeAny, {
30906
+ toolkits: string[];
30907
+ }, {
30908
+ toolkits: string[];
30909
+ }>]>;
30910
+ type: z.ZodLiteral<"before_execute">;
30911
+ }, "strict", z.ZodTypeAny, {
30912
+ type: "before_execute";
30913
+ id: string;
30914
+ handler: {
30915
+ type: "condition_check";
30916
+ condition: string;
30917
+ action: "block";
30918
+ };
30919
+ appliesTo: "all" | {
30920
+ toolkits: string[];
30921
+ };
30922
+ name?: string | undefined;
30923
+ }, {
30924
+ type: "before_execute";
30925
+ id: string;
30926
+ handler: {
30927
+ type: "condition_check";
30928
+ condition: string;
30929
+ action: "block";
30930
+ };
30931
+ appliesTo: "all" | {
30932
+ toolkits: string[];
30933
+ };
30934
+ name?: string | undefined;
30935
+ }>, z.ZodObject<{
30936
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30937
+ type: z.ZodLiteral<"condition_check">;
30938
+ condition: z.ZodString;
30939
+ action: z.ZodLiteral<"block">;
30940
+ }, "strict", z.ZodTypeAny, {
30941
+ type: "condition_check";
30942
+ condition: string;
30943
+ action: "block";
30944
+ }, {
30945
+ type: "condition_check";
30946
+ condition: string;
30947
+ action: "block";
30948
+ }>, z.ZodObject<{
30949
+ type: z.ZodLiteral<"prompt_injection_check">;
30950
+ action: z.ZodLiteral<"block">;
30951
+ }, "strict", z.ZodTypeAny, {
30952
+ type: "prompt_injection_check";
30953
+ action: "block";
30954
+ }, {
30955
+ type: "prompt_injection_check";
30956
+ action: "block";
30957
+ }>]>;
30958
+ id: z.ZodString;
30959
+ name: z.ZodOptional<z.ZodString>;
30960
+ appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
30961
+ toolkits: z.ZodArray<z.ZodString, "many">;
30962
+ }, "strict", z.ZodTypeAny, {
30963
+ toolkits: string[];
30964
+ }, {
30965
+ toolkits: string[];
30966
+ }>]>;
30967
+ type: z.ZodLiteral<"after_execute">;
30968
+ }, "strict", z.ZodTypeAny, {
30969
+ type: "after_execute";
30970
+ id: string;
30971
+ handler: {
30972
+ type: "condition_check";
30973
+ condition: string;
30974
+ action: "block";
30975
+ } | {
30976
+ type: "prompt_injection_check";
30977
+ action: "block";
30978
+ };
30979
+ appliesTo: "all" | {
30980
+ toolkits: string[];
30981
+ };
30982
+ name?: string | undefined;
30983
+ }, {
30984
+ type: "after_execute";
30985
+ id: string;
30986
+ handler: {
30987
+ type: "condition_check";
30988
+ condition: string;
30989
+ action: "block";
30990
+ } | {
30991
+ type: "prompt_injection_check";
30992
+ action: "block";
30993
+ };
30994
+ appliesTo: "all" | {
30995
+ toolkits: string[];
30996
+ };
30997
+ name?: string | undefined;
30998
+ }>]>;
30999
+ type ToolRouterHook = z.infer<typeof ToolRouterHookSchema>;
30846
31000
  declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
30847
31001
  sessionPreset: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"direct_tools">>>;
30848
31002
  mcp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -31111,6 +31265,118 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31111
31265
  }, {
31112
31266
  enable: boolean;
31113
31267
  }>]>>>;
31268
+ hooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31269
+ handler: z.ZodObject<{
31270
+ type: z.ZodLiteral<"condition_check">;
31271
+ condition: z.ZodString;
31272
+ action: z.ZodLiteral<"block">;
31273
+ }, "strict", z.ZodTypeAny, {
31274
+ type: "condition_check";
31275
+ condition: string;
31276
+ action: "block";
31277
+ }, {
31278
+ type: "condition_check";
31279
+ condition: string;
31280
+ action: "block";
31281
+ }>;
31282
+ id: z.ZodString;
31283
+ name: z.ZodOptional<z.ZodString>;
31284
+ appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
31285
+ toolkits: z.ZodArray<z.ZodString, "many">;
31286
+ }, "strict", z.ZodTypeAny, {
31287
+ toolkits: string[];
31288
+ }, {
31289
+ toolkits: string[];
31290
+ }>]>;
31291
+ type: z.ZodLiteral<"before_execute">;
31292
+ }, "strict", z.ZodTypeAny, {
31293
+ type: "before_execute";
31294
+ id: string;
31295
+ handler: {
31296
+ type: "condition_check";
31297
+ condition: string;
31298
+ action: "block";
31299
+ };
31300
+ appliesTo: "all" | {
31301
+ toolkits: string[];
31302
+ };
31303
+ name?: string | undefined;
31304
+ }, {
31305
+ type: "before_execute";
31306
+ id: string;
31307
+ handler: {
31308
+ type: "condition_check";
31309
+ condition: string;
31310
+ action: "block";
31311
+ };
31312
+ appliesTo: "all" | {
31313
+ toolkits: string[];
31314
+ };
31315
+ name?: string | undefined;
31316
+ }>, z.ZodObject<{
31317
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31318
+ type: z.ZodLiteral<"condition_check">;
31319
+ condition: z.ZodString;
31320
+ action: z.ZodLiteral<"block">;
31321
+ }, "strict", z.ZodTypeAny, {
31322
+ type: "condition_check";
31323
+ condition: string;
31324
+ action: "block";
31325
+ }, {
31326
+ type: "condition_check";
31327
+ condition: string;
31328
+ action: "block";
31329
+ }>, z.ZodObject<{
31330
+ type: z.ZodLiteral<"prompt_injection_check">;
31331
+ action: z.ZodLiteral<"block">;
31332
+ }, "strict", z.ZodTypeAny, {
31333
+ type: "prompt_injection_check";
31334
+ action: "block";
31335
+ }, {
31336
+ type: "prompt_injection_check";
31337
+ action: "block";
31338
+ }>]>;
31339
+ id: z.ZodString;
31340
+ name: z.ZodOptional<z.ZodString>;
31341
+ appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
31342
+ toolkits: z.ZodArray<z.ZodString, "many">;
31343
+ }, "strict", z.ZodTypeAny, {
31344
+ toolkits: string[];
31345
+ }, {
31346
+ toolkits: string[];
31347
+ }>]>;
31348
+ type: z.ZodLiteral<"after_execute">;
31349
+ }, "strict", z.ZodTypeAny, {
31350
+ type: "after_execute";
31351
+ id: string;
31352
+ handler: {
31353
+ type: "condition_check";
31354
+ condition: string;
31355
+ action: "block";
31356
+ } | {
31357
+ type: "prompt_injection_check";
31358
+ action: "block";
31359
+ };
31360
+ appliesTo: "all" | {
31361
+ toolkits: string[];
31362
+ };
31363
+ name?: string | undefined;
31364
+ }, {
31365
+ type: "after_execute";
31366
+ id: string;
31367
+ handler: {
31368
+ type: "condition_check";
31369
+ condition: string;
31370
+ action: "block";
31371
+ } | {
31372
+ type: "prompt_injection_check";
31373
+ action: "block";
31374
+ };
31375
+ appliesTo: "all" | {
31376
+ toolkits: string[];
31377
+ };
31378
+ name?: string | undefined;
31379
+ }>]>, "many">>>;
31114
31380
  preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
31115
31381
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
31116
31382
  }, "strict", z.ZodTypeAny, {
@@ -31230,6 +31496,34 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31230
31496
  proxyExecute?: boolean | {
31231
31497
  enable: boolean;
31232
31498
  } | undefined;
31499
+ hooks?: ({
31500
+ type: "before_execute";
31501
+ id: string;
31502
+ handler: {
31503
+ type: "condition_check";
31504
+ condition: string;
31505
+ action: "block";
31506
+ };
31507
+ appliesTo: "all" | {
31508
+ toolkits: string[];
31509
+ };
31510
+ name?: string | undefined;
31511
+ } | {
31512
+ type: "after_execute";
31513
+ id: string;
31514
+ handler: {
31515
+ type: "condition_check";
31516
+ condition: string;
31517
+ action: "block";
31518
+ } | {
31519
+ type: "prompt_injection_check";
31520
+ action: "block";
31521
+ };
31522
+ appliesTo: "all" | {
31523
+ toolkits: string[];
31524
+ };
31525
+ name?: string | undefined;
31526
+ })[] | undefined;
31233
31527
  experimental?: {
31234
31528
  assistivePrompt?: {
31235
31529
  userTimezone?: string | undefined;
@@ -31316,6 +31610,34 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31316
31610
  proxyExecute?: boolean | {
31317
31611
  enable: boolean;
31318
31612
  } | undefined;
31613
+ hooks?: ({
31614
+ type: "before_execute";
31615
+ id: string;
31616
+ handler: {
31617
+ type: "condition_check";
31618
+ condition: string;
31619
+ action: "block";
31620
+ };
31621
+ appliesTo: "all" | {
31622
+ toolkits: string[];
31623
+ };
31624
+ name?: string | undefined;
31625
+ } | {
31626
+ type: "after_execute";
31627
+ id: string;
31628
+ handler: {
31629
+ type: "condition_check";
31630
+ condition: string;
31631
+ action: "block";
31632
+ } | {
31633
+ type: "prompt_injection_check";
31634
+ action: "block";
31635
+ };
31636
+ appliesTo: "all" | {
31637
+ toolkits: string[];
31638
+ };
31639
+ name?: string | undefined;
31640
+ })[] | undefined;
31319
31641
  experimental?: {
31320
31642
  assistivePrompt?: {
31321
31643
  userTimezone?: string | undefined;
@@ -31402,6 +31724,34 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31402
31724
  proxyExecute?: boolean | {
31403
31725
  enable: boolean;
31404
31726
  } | undefined;
31727
+ hooks?: ({
31728
+ type: "before_execute";
31729
+ id: string;
31730
+ handler: {
31731
+ type: "condition_check";
31732
+ condition: string;
31733
+ action: "block";
31734
+ };
31735
+ appliesTo: "all" | {
31736
+ toolkits: string[];
31737
+ };
31738
+ name?: string | undefined;
31739
+ } | {
31740
+ type: "after_execute";
31741
+ id: string;
31742
+ handler: {
31743
+ type: "condition_check";
31744
+ condition: string;
31745
+ action: "block";
31746
+ } | {
31747
+ type: "prompt_injection_check";
31748
+ action: "block";
31749
+ };
31750
+ appliesTo: "all" | {
31751
+ toolkits: string[];
31752
+ };
31753
+ name?: string | undefined;
31754
+ })[] | undefined;
31405
31755
  experimental?: {
31406
31756
  assistivePrompt?: {
31407
31757
  userTimezone?: string | undefined;
@@ -31488,6 +31838,34 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31488
31838
  proxyExecute?: boolean | {
31489
31839
  enable: boolean;
31490
31840
  } | undefined;
31841
+ hooks?: ({
31842
+ type: "before_execute";
31843
+ id: string;
31844
+ handler: {
31845
+ type: "condition_check";
31846
+ condition: string;
31847
+ action: "block";
31848
+ };
31849
+ appliesTo: "all" | {
31850
+ toolkits: string[];
31851
+ };
31852
+ name?: string | undefined;
31853
+ } | {
31854
+ type: "after_execute";
31855
+ id: string;
31856
+ handler: {
31857
+ type: "condition_check";
31858
+ condition: string;
31859
+ action: "block";
31860
+ } | {
31861
+ type: "prompt_injection_check";
31862
+ action: "block";
31863
+ };
31864
+ appliesTo: "all" | {
31865
+ toolkits: string[];
31866
+ };
31867
+ name?: string | undefined;
31868
+ })[] | undefined;
31491
31869
  experimental?: {
31492
31870
  assistivePrompt?: {
31493
31871
  userTimezone?: string | undefined;
@@ -31574,6 +31952,34 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31574
31952
  proxyExecute?: boolean | {
31575
31953
  enable: boolean;
31576
31954
  } | undefined;
31955
+ hooks?: ({
31956
+ type: "before_execute";
31957
+ id: string;
31958
+ handler: {
31959
+ type: "condition_check";
31960
+ condition: string;
31961
+ action: "block";
31962
+ };
31963
+ appliesTo: "all" | {
31964
+ toolkits: string[];
31965
+ };
31966
+ name?: string | undefined;
31967
+ } | {
31968
+ type: "after_execute";
31969
+ id: string;
31970
+ handler: {
31971
+ type: "condition_check";
31972
+ condition: string;
31973
+ action: "block";
31974
+ } | {
31975
+ type: "prompt_injection_check";
31976
+ action: "block";
31977
+ };
31978
+ appliesTo: "all" | {
31979
+ toolkits: string[];
31980
+ };
31981
+ name?: string | undefined;
31982
+ })[] | undefined;
31577
31983
  experimental?: {
31578
31984
  assistivePrompt?: {
31579
31985
  userTimezone?: string | undefined;
@@ -31609,10 +32015,11 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31609
32015
  * @param {boolean} [multiAccount.requireExplicitSelection] - When true, require explicit account selection when multiple accounts are connected
31610
32016
  * @param {boolean | object} [proxyExecute] - Proxy execute configuration for this session. A boolean is shorthand for `{ enable }`.
31611
32017
  * @param {boolean} proxyExecute.enable - `true` exposes the `COMPOSIO_PROXY_EXECUTE` meta tool. `false` also turns off the sandbox `proxy_execute()` helper.
32018
+ * @param {ToolRouterHook[]} [hooks] - Hooks that run on this session's tool calls. A `before_execute` hook can block a call before it runs; an `after_execute` hook can block its result before the agent sees it. Cannot be combined with `experimental.sessionConfigId`.
31612
32019
  * @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
31613
32020
  * @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
31614
32021
  * @param {object} [experimental] - Experimental features configuration. Not stable; may change or be removed.
31615
- * @param {string} [experimental.sessionConfigId] - ID of a saved Session config (`sc_…`) to apply at creation; see `composio.sessionConfigs`. Cannot be combined with `toolkits`, `tools`, `tags`, `experimental.customTools` or `experimental.customToolkits`. Per-session fields such as `authConfigs`, `connectedAccounts`, `manageConnections`, `sandbox`, `multiAccount` and `preload` stay allowed.
32022
+ * @param {string} [experimental.sessionConfigId] - ID of a saved Session config (`sc_…`) to apply at creation; see `composio.sessionConfigs`. Cannot be combined with `toolkits`, `tools`, `tags`, `hooks`, `experimental.customTools` or `experimental.customToolkits`. Per-session fields such as `authConfigs`, `connectedAccounts`, `manageConnections`, `sandbox`, `multiAccount` and `preload` stay allowed.
31616
32023
  */
31617
32024
  type ToolRouterCreateSessionConfig = InlineAccessCreateSessionConfig | SavedConfigCreateSessionConfig;
31618
32025
  type ParsedCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
@@ -31624,10 +32031,11 @@ type InlineAccessCreateSessionConfig = Omit<ParsedCreateSessionConfig, 'experime
31624
32031
  };
31625
32032
  };
31626
32033
  /** Create input that takes its access policy from a saved Session config. */
31627
- type SavedConfigCreateSessionConfig = Omit<ParsedCreateSessionConfig, 'toolkits' | 'tools' | 'tags' | 'experimental'> & {
32034
+ type SavedConfigCreateSessionConfig = Omit<ParsedCreateSessionConfig, 'toolkits' | 'tools' | 'tags' | 'hooks' | 'experimental'> & {
31628
32035
  toolkits?: never;
31629
32036
  tools?: never;
31630
32037
  tags?: never;
32038
+ hooks?: never;
31631
32039
  experimental: Omit<ParsedCreateSessionExperimental, 'sessionConfigId' | 'customTools' | 'customToolkits'> & {
31632
32040
  sessionConfigId: string;
31633
32041
  customTools?: never;
@@ -31876,6 +32284,7 @@ type ToolRouterToolsFn<TToolCollection, TTool, TProvider extends BaseComposioPro
31876
32284
  type ToolRouterAuthorizeFn = (toolkit: string, options?: {
31877
32285
  callbackUrl?: string;
31878
32286
  alias?: string;
32287
+ experimental?: ConnectedAccountExperimental;
31879
32288
  }) => Promise<ConnectionRequest>;
31880
32289
  declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
31881
32290
  toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -32237,33 +32646,139 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
32237
32646
  };
32238
32647
  }>;
32239
32648
  type ToolRouterSessionSearchResponse = z.infer<typeof ToolRouterSessionSearchResponseSchema>;
32649
+ /**
32650
+ * What one session hook decided about a call. `unavailable` means the hook
32651
+ * could not be evaluated (for example it timed out); it does not block the
32652
+ * call.
32653
+ */
32654
+ declare const ToolRouterHookResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
32655
+ id: z.ZodString;
32656
+ status: z.ZodLiteral<"evaluated">;
32657
+ outcome: z.ZodEnum<["continue", "block"]>;
32658
+ }, "strip", z.ZodTypeAny, {
32659
+ status: "evaluated";
32660
+ id: string;
32661
+ outcome: "block" | "continue";
32662
+ }, {
32663
+ status: "evaluated";
32664
+ id: string;
32665
+ outcome: "block" | "continue";
32666
+ }>, z.ZodObject<{
32667
+ id: z.ZodString;
32668
+ status: z.ZodLiteral<"unavailable">;
32669
+ }, "strip", z.ZodTypeAny, {
32670
+ status: "unavailable";
32671
+ id: string;
32672
+ }, {
32673
+ status: "unavailable";
32674
+ id: string;
32675
+ }>]>;
32676
+ type ToolRouterHookResult = z.infer<typeof ToolRouterHookResultSchema>;
32677
+ /**
32678
+ * Why a session hook blocked a call. `request_blocked`: a `before_execute` hook
32679
+ * blocked it and the tool did not run. `response_blocked`: the tool ran and an
32680
+ * `after_execute` hook blocked its result.
32681
+ */
32682
+ declare const ToolRouterBlockReasonSchema: z.ZodObject<{
32683
+ type: z.ZodEnum<["request_blocked", "response_blocked"]>;
32684
+ hookId: z.ZodString;
32685
+ }, "strip", z.ZodTypeAny, {
32686
+ type: "request_blocked" | "response_blocked";
32687
+ hookId: string;
32688
+ }, {
32689
+ type: "request_blocked" | "response_blocked";
32690
+ hookId: string;
32691
+ }>;
32692
+ type ToolRouterBlockReason = z.infer<typeof ToolRouterBlockReasonSchema>;
32240
32693
  declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32241
32694
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
32242
32695
  error: z.ZodNullable<z.ZodString>;
32243
32696
  logId: z.ZodString;
32244
32697
  /**
32245
- * Whether the tool ran and succeeded (`completed`) or ran and failed
32246
- * (`failed`). A failed execution can carry a `null` or empty `error`, so
32247
- * read this rather than `error` to tell the two apart.
32698
+ * Whether the tool ran and succeeded (`completed`), ran and failed
32699
+ * (`failed`), or was blocked by a session hook (`blocked`). A failed
32700
+ * execution can carry a `null` or empty `error`, so read this rather than
32701
+ * `error` to tell them apart. A blocked call has empty `data` and the
32702
+ * agent-facing message in `error`.
32248
32703
  */
32249
- resultType: z.ZodEnum<["completed", "failed"]>;
32704
+ resultType: z.ZodEnum<["completed", "failed", "blocked"]>;
32250
32705
  /** Actual Instant usage charge when the Session opts into returning it. */
32251
32706
  instantCharge: z.ZodOptional<z.ZodUnknown>;
32707
+ /** Set when `resultType` is `blocked`: which hook blocked the call, and at which stage. */
32708
+ blockReason: z.ZodOptional<z.ZodObject<{
32709
+ type: z.ZodEnum<["request_blocked", "response_blocked"]>;
32710
+ hookId: z.ZodString;
32711
+ }, "strip", z.ZodTypeAny, {
32712
+ type: "request_blocked" | "response_blocked";
32713
+ hookId: string;
32714
+ }, {
32715
+ type: "request_blocked" | "response_blocked";
32716
+ hookId: string;
32717
+ }>>;
32718
+ /** Every session hook that applied to this call. Absent when none applied. */
32719
+ hookResults: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
32720
+ id: z.ZodString;
32721
+ status: z.ZodLiteral<"evaluated">;
32722
+ outcome: z.ZodEnum<["continue", "block"]>;
32723
+ }, "strip", z.ZodTypeAny, {
32724
+ status: "evaluated";
32725
+ id: string;
32726
+ outcome: "block" | "continue";
32727
+ }, {
32728
+ status: "evaluated";
32729
+ id: string;
32730
+ outcome: "block" | "continue";
32731
+ }>, z.ZodObject<{
32732
+ id: z.ZodString;
32733
+ status: z.ZodLiteral<"unavailable">;
32734
+ }, "strip", z.ZodTypeAny, {
32735
+ status: "unavailable";
32736
+ id: string;
32737
+ }, {
32738
+ status: "unavailable";
32739
+ id: string;
32740
+ }>]>, "many">>;
32252
32741
  }, "strip", z.ZodTypeAny, {
32253
32742
  data: Record<string, unknown>;
32254
32743
  error: string | null;
32255
32744
  logId: string;
32256
- resultType: "completed" | "failed";
32745
+ resultType: "completed" | "failed" | "blocked";
32257
32746
  instantCharge?: unknown;
32747
+ blockReason?: {
32748
+ type: "request_blocked" | "response_blocked";
32749
+ hookId: string;
32750
+ } | undefined;
32751
+ hookResults?: ({
32752
+ status: "evaluated";
32753
+ id: string;
32754
+ outcome: "block" | "continue";
32755
+ } | {
32756
+ status: "unavailable";
32757
+ id: string;
32758
+ })[] | undefined;
32258
32759
  }, {
32259
32760
  data: Record<string, unknown>;
32260
32761
  error: string | null;
32261
32762
  logId: string;
32262
- resultType: "completed" | "failed";
32763
+ resultType: "completed" | "failed" | "blocked";
32263
32764
  instantCharge?: unknown;
32765
+ blockReason?: {
32766
+ type: "request_blocked" | "response_blocked";
32767
+ hookId: string;
32768
+ } | undefined;
32769
+ hookResults?: ({
32770
+ status: "evaluated";
32771
+ id: string;
32772
+ outcome: "block" | "continue";
32773
+ } | {
32774
+ status: "unavailable";
32775
+ id: string;
32776
+ })[] | undefined;
32264
32777
  }>;
32265
32778
  type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
32266
- interface ToolRouterSessionProxyExecuteResponse {
32779
+ /** A proxied request that was sent. */
32780
+ interface ToolRouterSessionProxyExecuteCompleted {
32781
+ resultType: 'completed';
32267
32782
  /** The HTTP status code returned from the proxied API */
32268
32783
  status: number;
32269
32784
  /** The response data from the proxied API */
@@ -32277,7 +32792,24 @@ interface ToolRouterSessionProxyExecuteResponse {
32277
32792
  url: string;
32278
32793
  expiresAt?: string;
32279
32794
  };
32795
+ /** Every session hook that applied to this request. Absent when none applied. */
32796
+ hookResults?: ToolRouterHookResult[];
32797
+ }
32798
+ /** A proxied request that a session hook blocked. */
32799
+ interface ToolRouterSessionProxyExecuteBlocked {
32800
+ resultType: 'blocked';
32801
+ /** Which hook blocked the request, and at which stage. */
32802
+ blockReason: ToolRouterBlockReason;
32803
+ /** A message for the agent. It names the hook when the hook has a `name`. */
32804
+ message: string;
32805
+ /** Every session hook that applied to this request. */
32806
+ hookResults?: ToolRouterHookResult[];
32280
32807
  }
32808
+ /**
32809
+ * Result of `session.proxyExecute()`. Check `resultType` before reading
32810
+ * `status`: a request a session hook blocked has no HTTP response.
32811
+ */
32812
+ type ToolRouterSessionProxyExecuteResponse = ToolRouterSessionProxyExecuteCompleted | ToolRouterSessionProxyExecuteBlocked;
32281
32813
  /**
32282
32814
  * Experimental features on a tool router session.
32283
32815
  * Contains features that may be modified or removed in future versions.
@@ -32351,16 +32883,16 @@ type ToolRouterSessionMetaToolSlug = SessionExecuteMetaParams['slug'];
32351
32883
  /** Options for `session.executeMeta()`: the user's answers to an earlier `input_required` call. */
32352
32884
  type ToolRouterSessionExecuteMetaOptions = Pick<ToolRouterSessionExecuteOptions, 'inputResponses' | 'requestState'>;
32353
32885
  type ToolRouterSessionExecuteMetaFn = (slug: ToolRouterSessionMetaToolSlug, arguments_?: Record<string, unknown>, options?: ToolRouterSessionExecuteMetaOptions, requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionExecuteResponse>;
32354
- type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
32355
- type ToolRouterSessionWorkbenchConfig = SessionCreateResponse.Config.Workbench;
32356
- type ToolRouterSessionWarning = SessionCreateResponse.Warning;
32886
+ type ToolRouterSessionPreloadConfig = NonNullable<SessionCreateResponse['config']>['preload'];
32887
+ type ToolRouterSessionWorkbenchConfig = NonNullable<NonNullable<SessionCreateResponse['config']>['workbench']>;
32888
+ type ToolRouterSessionWarning = NonNullable<SessionCreateResponse['warnings']>[number];
32357
32889
  /**
32358
32890
  * Server-side session configuration as returned by the API: toolkit/tool
32359
32891
  * allowlists, tags, auth configs, connected accounts, manage_connections,
32360
32892
  * preload, sandbox (`workbench`), search, execute, proxy execute and Instant
32361
32893
  * settings.
32362
32894
  */
32363
- type ToolRouterSessionConfig = SessionCreateResponse.Config;
32895
+ type ToolRouterSessionConfig = NonNullable<SessionCreateResponse['config']>;
32364
32896
  interface ToolRouterSessionMetadata {
32365
32897
  /** Present on every session built from an API response; the constructor synthesises a minimal config when absent. */
32366
32898
  config?: ToolRouterSessionConfig;
@@ -32772,6 +33304,118 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32772
33304
  }, {
32773
33305
  enable: boolean;
32774
33306
  }>]>>>>;
33307
+ hooks: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33308
+ handler: z.ZodObject<{
33309
+ type: z.ZodLiteral<"condition_check">;
33310
+ condition: z.ZodString;
33311
+ action: z.ZodLiteral<"block">;
33312
+ }, "strict", z.ZodTypeAny, {
33313
+ type: "condition_check";
33314
+ condition: string;
33315
+ action: "block";
33316
+ }, {
33317
+ type: "condition_check";
33318
+ condition: string;
33319
+ action: "block";
33320
+ }>;
33321
+ id: z.ZodString;
33322
+ name: z.ZodOptional<z.ZodString>;
33323
+ appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
33324
+ toolkits: z.ZodArray<z.ZodString, "many">;
33325
+ }, "strict", z.ZodTypeAny, {
33326
+ toolkits: string[];
33327
+ }, {
33328
+ toolkits: string[];
33329
+ }>]>;
33330
+ type: z.ZodLiteral<"before_execute">;
33331
+ }, "strict", z.ZodTypeAny, {
33332
+ type: "before_execute";
33333
+ id: string;
33334
+ handler: {
33335
+ type: "condition_check";
33336
+ condition: string;
33337
+ action: "block";
33338
+ };
33339
+ appliesTo: "all" | {
33340
+ toolkits: string[];
33341
+ };
33342
+ name?: string | undefined;
33343
+ }, {
33344
+ type: "before_execute";
33345
+ id: string;
33346
+ handler: {
33347
+ type: "condition_check";
33348
+ condition: string;
33349
+ action: "block";
33350
+ };
33351
+ appliesTo: "all" | {
33352
+ toolkits: string[];
33353
+ };
33354
+ name?: string | undefined;
33355
+ }>, z.ZodObject<{
33356
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33357
+ type: z.ZodLiteral<"condition_check">;
33358
+ condition: z.ZodString;
33359
+ action: z.ZodLiteral<"block">;
33360
+ }, "strict", z.ZodTypeAny, {
33361
+ type: "condition_check";
33362
+ condition: string;
33363
+ action: "block";
33364
+ }, {
33365
+ type: "condition_check";
33366
+ condition: string;
33367
+ action: "block";
33368
+ }>, z.ZodObject<{
33369
+ type: z.ZodLiteral<"prompt_injection_check">;
33370
+ action: z.ZodLiteral<"block">;
33371
+ }, "strict", z.ZodTypeAny, {
33372
+ type: "prompt_injection_check";
33373
+ action: "block";
33374
+ }, {
33375
+ type: "prompt_injection_check";
33376
+ action: "block";
33377
+ }>]>;
33378
+ id: z.ZodString;
33379
+ name: z.ZodOptional<z.ZodString>;
33380
+ appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
33381
+ toolkits: z.ZodArray<z.ZodString, "many">;
33382
+ }, "strict", z.ZodTypeAny, {
33383
+ toolkits: string[];
33384
+ }, {
33385
+ toolkits: string[];
33386
+ }>]>;
33387
+ type: z.ZodLiteral<"after_execute">;
33388
+ }, "strict", z.ZodTypeAny, {
33389
+ type: "after_execute";
33390
+ id: string;
33391
+ handler: {
33392
+ type: "condition_check";
33393
+ condition: string;
33394
+ action: "block";
33395
+ } | {
33396
+ type: "prompt_injection_check";
33397
+ action: "block";
33398
+ };
33399
+ appliesTo: "all" | {
33400
+ toolkits: string[];
33401
+ };
33402
+ name?: string | undefined;
33403
+ }, {
33404
+ type: "after_execute";
33405
+ id: string;
33406
+ handler: {
33407
+ type: "condition_check";
33408
+ condition: string;
33409
+ action: "block";
33410
+ } | {
33411
+ type: "prompt_injection_check";
33412
+ action: "block";
33413
+ };
33414
+ appliesTo: "all" | {
33415
+ toolkits: string[];
33416
+ };
33417
+ name?: string | undefined;
33418
+ }>]>, "many">>>>;
32775
33419
  preload: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
32776
33420
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
32777
33421
  }, "strict", z.ZodTypeAny, {
@@ -32925,6 +33569,34 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32925
33569
  proxyExecute?: boolean | {
32926
33570
  enable: boolean;
32927
33571
  } | null | undefined;
33572
+ hooks?: ({
33573
+ type: "before_execute";
33574
+ id: string;
33575
+ handler: {
33576
+ type: "condition_check";
33577
+ condition: string;
33578
+ action: "block";
33579
+ };
33580
+ appliesTo: "all" | {
33581
+ toolkits: string[];
33582
+ };
33583
+ name?: string | undefined;
33584
+ } | {
33585
+ type: "after_execute";
33586
+ id: string;
33587
+ handler: {
33588
+ type: "condition_check";
33589
+ condition: string;
33590
+ action: "block";
33591
+ } | {
33592
+ type: "prompt_injection_check";
33593
+ action: "block";
33594
+ };
33595
+ appliesTo: "all" | {
33596
+ toolkits: string[];
33597
+ };
33598
+ name?: string | undefined;
33599
+ })[] | null | undefined;
32928
33600
  experimental?: {
32929
33601
  sessionConfigId?: string | undefined;
32930
33602
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33021,6 +33693,34 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33021
33693
  proxyExecute?: boolean | {
33022
33694
  enable: boolean;
33023
33695
  } | null | undefined;
33696
+ hooks?: ({
33697
+ type: "before_execute";
33698
+ id: string;
33699
+ handler: {
33700
+ type: "condition_check";
33701
+ condition: string;
33702
+ action: "block";
33703
+ };
33704
+ appliesTo: "all" | {
33705
+ toolkits: string[];
33706
+ };
33707
+ name?: string | undefined;
33708
+ } | {
33709
+ type: "after_execute";
33710
+ id: string;
33711
+ handler: {
33712
+ type: "condition_check";
33713
+ condition: string;
33714
+ action: "block";
33715
+ } | {
33716
+ type: "prompt_injection_check";
33717
+ action: "block";
33718
+ };
33719
+ appliesTo: "all" | {
33720
+ toolkits: string[];
33721
+ };
33722
+ name?: string | undefined;
33723
+ })[] | null | undefined;
33024
33724
  experimental?: {
33025
33725
  sessionConfigId?: string | undefined;
33026
33726
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33117,6 +33817,34 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33117
33817
  proxyExecute?: boolean | {
33118
33818
  enable: boolean;
33119
33819
  } | null | undefined;
33820
+ hooks?: ({
33821
+ type: "before_execute";
33822
+ id: string;
33823
+ handler: {
33824
+ type: "condition_check";
33825
+ condition: string;
33826
+ action: "block";
33827
+ };
33828
+ appliesTo: "all" | {
33829
+ toolkits: string[];
33830
+ };
33831
+ name?: string | undefined;
33832
+ } | {
33833
+ type: "after_execute";
33834
+ id: string;
33835
+ handler: {
33836
+ type: "condition_check";
33837
+ condition: string;
33838
+ action: "block";
33839
+ } | {
33840
+ type: "prompt_injection_check";
33841
+ action: "block";
33842
+ };
33843
+ appliesTo: "all" | {
33844
+ toolkits: string[];
33845
+ };
33846
+ name?: string | undefined;
33847
+ })[] | null | undefined;
33120
33848
  experimental?: {
33121
33849
  sessionConfigId?: string | undefined;
33122
33850
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33213,6 +33941,34 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33213
33941
  proxyExecute?: boolean | {
33214
33942
  enable: boolean;
33215
33943
  } | null | undefined;
33944
+ hooks?: ({
33945
+ type: "before_execute";
33946
+ id: string;
33947
+ handler: {
33948
+ type: "condition_check";
33949
+ condition: string;
33950
+ action: "block";
33951
+ };
33952
+ appliesTo: "all" | {
33953
+ toolkits: string[];
33954
+ };
33955
+ name?: string | undefined;
33956
+ } | {
33957
+ type: "after_execute";
33958
+ id: string;
33959
+ handler: {
33960
+ type: "condition_check";
33961
+ condition: string;
33962
+ action: "block";
33963
+ } | {
33964
+ type: "prompt_injection_check";
33965
+ action: "block";
33966
+ };
33967
+ appliesTo: "all" | {
33968
+ toolkits: string[];
33969
+ };
33970
+ name?: string | undefined;
33971
+ })[] | null | undefined;
33216
33972
  experimental?: {
33217
33973
  sessionConfigId?: string | undefined;
33218
33974
  noElicitationSupportFallback?: "deny" | "allow" | undefined;
@@ -33233,8 +33989,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33233
33989
  }>;
33234
33990
  /**
33235
33991
  * Options for `session.update()`. `experimental.sessionConfigId` applies a
33236
- * saved Session config and cannot be combined with `toolkits`, `tools` or
33237
- * `tags` (including `null`).
33992
+ * saved Session config and cannot be combined with `toolkits`, `tools`,
33993
+ * `tags` or `hooks` (including `null`).
33238
33994
  */
33239
33995
  type ToolRouterUpdateSessionConfig = InlineAccessUpdateSessionConfig | SavedConfigUpdateSessionConfig;
33240
33996
  type ParsedUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
@@ -33246,10 +34002,11 @@ type InlineAccessUpdateSessionConfig = Omit<ParsedUpdateSessionConfig, 'experime
33246
34002
  }) | null;
33247
34003
  };
33248
34004
  /** Update input that applies a saved Session config. */
33249
- type SavedConfigUpdateSessionConfig = Omit<ParsedUpdateSessionConfig, 'toolkits' | 'tools' | 'tags' | 'experimental'> & {
34005
+ type SavedConfigUpdateSessionConfig = Omit<ParsedUpdateSessionConfig, 'toolkits' | 'tools' | 'tags' | 'hooks' | 'experimental'> & {
33250
34006
  toolkits?: never;
33251
34007
  tools?: never;
33252
34008
  tags?: never;
34009
+ hooks?: never;
33253
34010
  experimental: Omit<ParsedUpdateSessionExperimental, 'sessionConfigId'> & {
33254
34011
  sessionConfigId: string;
33255
34012
  };
@@ -33286,7 +34043,7 @@ type ToolRouterSessionListConfigHistoryOptions = z.infer<typeof ToolRouterSessio
33286
34043
  * The session configuration at one version, as stored by the API. This is
33287
34044
  * the wire shape (snake_case), with the Instant policy under `instant`.
33288
34045
  */
33289
- type ToolRouterSessionConfigHistoryConfig = SessionConfigHistoryResponse.Item.Config;
34046
+ type ToolRouterSessionConfigHistoryConfig = NonNullable<SessionConfigHistoryResponse['items'][number]['config']>;
33290
34047
  type ToolRouterSessionConfigHistoryItem = {
33291
34048
  /** The config version this entry represents. */
33292
34049
  version: number;
@@ -33548,7 +34305,7 @@ interface CustomTool {
33548
34305
  readonly execute: CustomToolExecuteFn<AnyZodSchema>;
33549
34306
  }
33550
34307
  /** Serialized tool definition sent to backend for search indexing. Uses official client type. */
33551
- type CustomToolDefinition = SessionCreateParams.Experimental.CustomTool;
34308
+ type CustomToolDefinition = NonNullable<NonNullable<SessionCreateParams['experimental']>['custom_tools']>[number];
33552
34309
  type CustomToolWireDefinition = CustomToolDefinition;
33553
34310
  /**
33554
34311
  * Zod schema for validating the string/scalar fields of createCustomToolkit() options.
@@ -33588,7 +34345,7 @@ interface CustomToolkit {
33588
34345
  readonly tools: readonly CustomTool[];
33589
34346
  }
33590
34347
  /** Serialized toolkit definition sent to backend. Uses official client type. */
33591
- type CustomToolkitDefinition = SessionCreateParams.Experimental.CustomToolkit;
34348
+ type CustomToolkitDefinition = NonNullable<NonNullable<NonNullable<SessionCreateParams['experimental']>['custom_toolkits']>[number]>;
33592
34349
  type CustomToolkitWireDefinition = CustomToolkitDefinition;
33593
34350
  interface InlineCustomToolsWirePayload {
33594
34351
  custom_tools?: CustomToolWireDefinition[];
@@ -33636,8 +34393,8 @@ interface RegisteredCustomToolkit {
33636
34393
  tools: RegisteredCustomTool[];
33637
34394
  }
33638
34395
  /** Custom tool as returned in the session create response (has prefixed slug + original_slug). */
33639
- type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
34396
+ type CustomToolResponse = NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_tools']>[number];
33640
34397
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
33641
- type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
34398
+ type CustomToolkitResponse = NonNullable<NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_toolkits']>[number]>;
33642
34399
  //#endregion
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 };
34400
+ export { ToolRouterInputResponse as $, ToolProxyParams as $a, Oauth1InactiveConnectionData as $i, ConnectedAccountRevokeResponseSchema as $n, MCPServer as $r, ToolRouterToolsParam as $t, SessionProxyExecuteParams as A, TransformToolSchemaModifier as Aa, Provider as Ai, ConnectedAccountAclConfigResponse as An, ComposioMcpDeleteResponseSchema as Ar, ToolRouterSessionListConfigHistoryResponse as At, ToolRouterConfigToolsSchema as B, SchemaModifierOptions as Ba, CustomConnectionDataSchema as Bi, ConnectedAccountExperimentalResponse as Bn, GenerateURLResponse$1 as Br, ToolRouterSessionSearchResponseSchema as Bt, MCPServerType as C, BeforeFileUploadSource as Ca, McpUpdateResponseSchema as Ci, ToolRouterSessionFilesMountListOptionsSchema as Cn, UpdateConnectedAccountParamsSchema as Cr, ToolRouterSessionExecuteMetaOptions as Ct, Session as D, SessionExecuteMetaModifiers as Da, ExecuteToolFn as Di, ConnectionRequest as Dn, ComposioCustomCreateResponseSchema as Dr, ToolRouterSessionListConfigHistoryFn as Dt, SandboxSizeSchema as E, ProviderOptions as Ea, McpUserConnectionStatus as Ei, ComposioRequestOptions as En, BaseNonAgenticProvider as Er, ToolRouterSessionExecuteResponseSchema as Et, ToolRouterBlockReasonSchema as F, beforeFileUploadModifier as Fa, ConnectionData as Fi, ConnectedAccountCompleteAuthParams as Fn, CustomCreateResponse$1 as Fr, ToolRouterSessionProxyExecuteCompleted as Ft, ToolRouterHookAppliesToSchema as G, ToolExecuteParamsSchema as Ga, Oauth1ActiveConnectionData as Gi, ConnectedAccountListResponse as Gn, MCPCreateMethodResponse as Gr, ToolRouterTagsParamSchema as Gt, ToolRouterCreateSessionConfigSchema as H, ToolExecuteMetaParams as Ha, CustomOauth1ConnectionDataSchema as Hi, ConnectedAccountExperimentalSchema as Hn, GenerateURLResponseValidated as Hr, ToolRouterSessionWarning as Ht, ToolRouterConfigManageConnectionsSchema as I, CustomAuthParams as Ia, ConnectionDataSchema as Ii, ConnectedAccountCompleteAuthParamsSchema as In, CustomCreateResponseSchema as Ir, ToolRouterSessionProxyExecuteFn as It, ToolRouterHookPromptInjectionCheckHandler as J, ToolList as Ja, Oauth1ConnectionDataSchema as Ji, ConnectedAccountRefreshOptions as Jn, MCPGetServerParams as Jr, ToolRouterToolkitsFn as Jt, ToolRouterHookConditionCheckHandler as K, ToolExecuteResponse as Ka, Oauth1ActiveConnectionDataSchema as Ki, ConnectedAccountListResponseItem as Kn, MCPGenerateURLParams as Kr, ToolRouterToolkitsDisabledConfigSchema as Kt, ToolRouterConfigTags as L, CustomAuthParamsSchema as La, ConnectionStatusEnum as Li, ConnectedAccountCompleteAuthResponse as Ln, CustomCreateResponseValidated as Lr, ToolRouterSessionProxyExecuteResponse as Lt, SessionWithoutMcp as M, afterExecuteModifier as Ma, ToolCallSession as Mi, ConnectedAccountAclConfigSchema as Mn, ComposioMcpRetrieveResponseSchema as Mr, ToolRouterSessionMetadata as Mt, ToolRouterAuthorizeFn as N, beforeExecuteMetaModifier as Na, BaseConnectionFields as Ni, ConnectedAccountAuthConfig as Nn, ComposioMcpUpdateResponseSchema as Nr, ToolRouterSessionPreloadConfig as Nt, SessionExperimental as O, SessionMetaToolOptions as Oa, ExecuteToolFnOptions as Oi, ConnectionRequestState as On, ComposioGenerateURLParamsSchema as Or, ToolRouterSessionListConfigHistoryOptions as Ot, ToolRouterBlockReason as P, beforeExecuteModifier as Pa, BillcomAuthConnectionDataSchema as Pi, ConnectedAccountAuthConfigSchema as Pn, ConnectionStatus as Pr, ToolRouterSessionProxyExecuteBlocked as Pt, ToolRouterHookSchema as Q, ToolListResponseSchema as Qa, Oauth1FailedConnectionDataSchema as Qi, ConnectedAccountRevokeResponse as Qn, MCPMultiAppServerSchema as Qr, ToolRouterToolsFn as Qt, ToolRouterConfigTagsSchema as R, JSONSchemaProperty as Ra, ConnectionStatuses as Ri, ConnectedAccountCompleteAuthResponseSchema as Rn, GenerateURLParams as Rr, ToolRouterSessionSearchFn as Rt, SessionContext as S, AgenticToolOptions as Sa, McpUpdateResponse as Si, ToolRouterSessionFilesMountListOptions as Sn, UpdateConnectedAccountParams as Sr, ToolRouterSessionExecuteMetaFn as St, SandboxSize as T, MetaToolArguments as Ta, McpUrlResponseCamelCase as Ti, ToolRouterSessionFilesMountUploadOptionsSchema as Tn, BaseComposioProvider as Tr, ToolRouterSessionExecuteResponse as Tt, ToolRouterHook as U, ToolExecuteMetaParamsSchema as Ua, CustomOauth2ConnectionData as Ui, ConnectedAccountListParams as Un, MCPAuthOptions as Ur, ToolRouterSessionWorkbenchConfig as Ut, ToolRouterCreateSessionConfig as V, Tool as Va, CustomOauth1ConnectionData as Vi, ConnectedAccountExperimentalResponseSchema as Vn, GenerateURLResponseSchema as Vr, ToolRouterSessionUpdateFn as Vt, ToolRouterHookAppliesTo as W, ToolExecuteParams as Wa, CustomOauth2ConnectionDataSchema as Wi, ConnectedAccountListParamsSchema as Wn, MCPAuthOptionsSchema as Wr, ToolRouterTagsEnableDisableSchema as Wt, ToolRouterHookResult as X, ToolListParamsSchema as Xa, Oauth1ExpiredConnectionDataSchema as Xi, ConnectedAccountRetrieveResponse as Xn, MCPInstanceParams as Xr, ToolRouterToolkitsOptionsSchema as Xt, ToolRouterHookPromptInjectionCheckHandlerSchema as Y, ToolListParams as Ya, Oauth1ExpiredConnectionData as Yi, ConnectedAccountRefreshOptionsSchema as Yn, MCPGetServerParamsSchema as Yr, ToolRouterToolkitsOptions as Yt, ToolRouterHookResultSchema as Z, ToolListResponse as Za, Oauth1FailedConnectionData as Zi, ConnectedAccountRetrieveResponseSchema as Zn, MCPMultiAppServer as Zr, ToolRouterToolkitsParamSchema as Zt, CustomToolsMapEntry as _, Oauth2InitiatingConnectionData as _a, McpRetrieveResponseSchema as _i, RemoteFileDataSchema as _n, CreateConnectedAccountResponse as _r, ToolRouterSessionEnsureConnectedFn as _t, CreateCustomToolkitParams as a, Oauth2ActiveConnectionData as aa, MCPServerUpdateParams as ai, ToolRouterUpdateSessionConfig as an, ToolkitLatestVersionSchema as ao, ConnectedAccountStatuses as ar, ToolRouterProxyExecute as at, RegisteredCustomTool as b, Oauth2RevokedConnectionDataSchema as ba, McpServerUrlInfo as bi, ToolRouterSessionFilesMountDownloadOptions as bn, UpdateConnectedAccountAclParams as br, ToolRouterSessionEnsureConnectedResult as bt, CustomToolExecuteFn as c, Oauth2ConnectionDataSchema as ca, MCPSingleAppServerSchema as ci, ToolkitConnectionStateSchema as cn, ToolkitVersionParam as co, ConnectedAccountTypes as cr, ToolRouterProxyExecuteSchema as ct, CustomToolWireDefinition as d, Oauth2FailedConnectionData as da, MCPToolkitConfigsArraySchema as di, RemoteFile as dn, ToolkitVersions as do, CreateConnectedAccountLinkResponse as dr, ToolRouterSessionConfig as dt, Oauth1InactiveConnectionDataSchema as ea, MCPServerCreateResponse as ei, ToolRouterToolsParamSchema as en, ToolProxyParamsSchema as eo, ConnectedAccountRevokedToken as er, ToolRouterInstant as et, CustomToolkit as f, Oauth2FailedConnectionDataSchema as fa, McpDeleteResponse as fi, FileDeleteResponse as fn, ToolkitVersionsSchema as fo, CreateConnectedAccountLinkResponseSchema as fr, ToolRouterSessionConfigHistoryConfig as ft, CustomToolsMap as g, Oauth2InitiatedConnectionDataSchema as ga, McpRetrieveResponse as gi, RemoteFileData as gn, CreateConnectedAccountParamsSchema as gr, ToolRouterSessionDeleteResponseSchema as gt, CustomToolkitWireDefinition as h, Oauth2InitiatedConnectionData as ha, McpListResponseSchema as hi, FileListResponseSchema as hn, CreateConnectedAccountParams as hr, ToolRouterSessionDeleteResponse as ht, CreateCustomToolkitBaseSchema as i, Oauth1InitiatingConnectionDataSchema as ia, MCPServerSchema as ii, ToolRouterUpdateManageConnectionsSchema as in, ToolkitLatestVersion as io, ConnectedAccountStatusSchema as ir, ToolRouterManageConnectionsConfigSchema as it, SessionProxyExecuteParamsSchema as j, afterExecuteMetaModifier as ja, ToolCallExecutionTarget as ji, ConnectedAccountAclConfigResponseSchema as jn, ComposioMcpListResponseSchema as jr, ToolRouterSessionMetaToolSlug as jt, SessionPreset as k, ToolOptions as ka, GlobalExecuteToolFn as ki, ConnectedAccountAclConfig as kn, ComposioGenerateURLResponseSchema as kr, ToolRouterSessionListConfigHistoryOptionsSchema as kt, CustomToolResponse as l, Oauth2ExpiredConnectionData as la, MCPToolkitConfig as li, ToolkitConnectionsDetails as ln, ToolkitVersionParamSchema as lo, CreateConnectedAccountLinkOptions as lr, ToolRouterSandboxConfig as lt, CustomToolkitResponse as m, Oauth2InactiveConnectionDataSchema as ma, McpListResponse as mi, FileListResponse as mn, CreateConnectedAccountOptionsSchema as mr, ToolRouterSessionDeleteFn as mt, CreateCustomToolBaseSchema as n, Oauth1InitiatedConnectionDataSchema as na, MCPServerListResponse as ni, ToolRouterUpdateExperimentalSchema as nn, ToolSchema as no, ConnectedAccountStatus as nr, ToolRouterMCPServerConfig as nt, CustomTool as o, Oauth2ActiveConnectionDataSchema as oa, MCPServerUpdateParamsSchema as oi, ToolRouterUpdateSessionConfigSchema as on, ToolkitSchema as oo, ConnectedAccountType as or, ToolRouterProxyExecuteConfig as ot, CustomToolkitDefinition as p, Oauth2InactiveConnectionData as pa, McpDeleteResponseSchema as pi, FileDeleteResponseSchema as pn, CreateConnectedAccountOptions as pr, ToolRouterSessionConfigHistoryItem as pt, ToolRouterHookConditionCheckHandlerSchema as q, ToolExecuteResponseSchema as qa, Oauth1ConnectionData as qi, ConnectedAccountListResponseSchema as qn, MCPGenerateURLParamsSchema as qr, ToolRouterToolkitsEnabledConfigSchema as qt, CreateCustomToolParams as r, Oauth1InitiatingConnectionData as ra, MCPServerListResponseSchema as ri, ToolRouterUpdateManageConnectionsConfig as rn, Toolkit as ro, ConnectedAccountStatusEnum as rr, ToolRouterMCPServerConfigSchema as rt, CustomToolDefinition as s, Oauth2ConnectionData as sa, MCPSingleAppServer as si, ToolkitConnectionState as sn, ToolkitVersion as so, ConnectedAccountTypeSchema as sr, ToolRouterProxyExecuteConfigSchema as st, AnyZodSchema as t, Oauth1InitiatedConnectionData as ta, MCPServerCreateResponseSchema as ti, ToolRouterUpdateExperimentalConfig as tn, ToolRetrievalOptions as to, ConnectedAccountRevokedTokenSchema as tr, ToolRouterInstantSchema as tt, CustomToolSlugSchema as u, Oauth2ExpiredConnectionDataSchema as ua, MCPToolkitConfigSchema as ui, ToolkitConnectionsDetailsSchema as un, ToolkitVersionSchema as uo, CreateConnectedAccountLinkOptionsSchema as ur, ToolRouterSandboxConfigSchema as ut, InferZodSchema as v, Oauth2InitiatingConnectionDataSchema as va, McpServerCreateResponse as vi, ToolRouterSessionFilesMountDeleteOptions as vn, CreateConnectedAccountResponseSchema as vr, ToolRouterSessionEnsureConnectedOptions as vt, MCPServerTypeSchema as w, ExecuteToolModifiers as wa, McpUrlResponse as wi, ToolRouterSessionFilesMountUploadOptions as wn, BaseAgenticProvider as wr, ToolRouterSessionExecuteOptions as wt, RegisteredCustomToolkit as x, RedirectableAuthSchemeSchema as xa, McpToolkitConnectionStatus as xi, ToolRouterSessionFilesMountDownloadOptionsSchema as xn, UpdateConnectedAccountAclParamsSchema as xr, ToolRouterSessionExecuteFn as xt, InlineCustomToolsWirePayload as y, Oauth2RevokedConnectionData as ya, McpServerGetResponse as yi, ToolRouterSessionFilesMountDeleteOptionsSchema as yn, DefaultCreateConnectedAccountParamsSchema as yr, ToolRouterSessionEnsureConnectedOptionsSchema as yt, ToolRouterConfigTools as z, JSONSchemaPropertySchema as za, CustomConnectionData as zi, ConnectedAccountExperimental as zn, GenerateURLParamsSchema as zr, ToolRouterSessionSearchResponse as zt };