@composio/core 0.18.1 → 0.20.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 (100) hide show
  1. package/dist/{CustomTool-VRfWzMix.d.mts → CustomTool-B3m-188G.d.mts} +1 -1
  2. package/dist/{CustomTool-Bz0f52QR.mjs → CustomTool-fYEFjSLM.mjs} +1 -1
  3. package/dist/{FileModifierErrors-CwB-Inm9.mjs → FileModifierErrors-CdGSABoq.mjs} +1 -1
  4. package/dist/{FileToolModifier.utils.neutral-D_YkHwZP.mjs → FileToolModifier.utils.neutral-DWFpnsj2.mjs} +4 -2
  5. package/dist/{SsrfErrors-xhdVE4yw.mjs → SsrfErrors-DiQldIdC.mjs} +32 -17
  6. package/dist/{Telemetry-Dw9W5RSp.mjs → Telemetry-JRJJYS4I.mjs} +2 -2
  7. package/dist/{cancellation-P5YUlcfz.mjs → cancellation-Dwa9lGHA.mjs} +7 -5
  8. package/dist/{composio-Cb3d1jFe.d.mts → composio-B36OXii1.d.mts} +3017 -144
  9. package/dist/{customTool.types-B6ej_8XZ.d.mts → customTool.types-C436M_D0.d.mts} +525 -101
  10. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +10 -10
  11. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +8 -15
  12. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +101 -18
  13. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +123 -0
  14. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +9 -2
  15. package/dist/docs/reference/sdk-reference/typescript/index.mdx +7 -0
  16. package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +56 -0
  17. package/dist/docs/reference/sdk-reference/typescript/logs.mdx +78 -0
  18. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +15 -15
  19. package/dist/docs/reference/sdk-reference/typescript/meta.json +8 -1
  20. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +10 -10
  21. package/dist/docs/reference/sdk-reference/typescript/session.mdx +117 -24
  22. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +24 -10
  23. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +151 -14
  24. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +50 -40
  25. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +26 -25
  26. package/dist/docs/reference/sdk-reference/typescript/usage.mdx +78 -0
  27. package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +162 -0
  28. package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +218 -0
  29. package/dist/docs/reference/sdk-reference/typescript/webhooks.mdx +20 -0
  30. package/dist/{errors-Ue9wMrPK.mjs → errors-D_A4b2c2.mjs} +143 -4
  31. package/dist/experimental/index.d.mts +2 -2
  32. package/dist/experimental/index.mjs +1 -1
  33. package/dist/{fileUtils.node-KE5Fa-af.mjs → fileUtils.node-DNLhLg0W.mjs} +8 -6
  34. package/dist/index.d.mts +418 -146
  35. package/dist/index.mjs +2728 -349
  36. package/dist/models/Files.node.d.mts +2 -3
  37. package/dist/models/Files.node.mjs +2 -2
  38. package/dist/models/Files.workerd.d.mts +2 -3
  39. package/dist/platform/node.d.mts +2 -3
  40. package/dist/platform/workerd.d.mts +2 -3
  41. package/dist/{sensitiveFileUploadPaths-QN7w4n8v.mjs → sensitiveFileUploadPaths-BlLp-Yo2.mjs} +10 -7
  42. package/dist/{ssrfGuard.node-BLX6b-Rf.mjs → ssrfGuard.node-BZ270bcu.mjs} +104 -14
  43. package/dist/{types-CGdgK442.d.mts → types-Br3GBya5.d.mts} +2 -2
  44. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -4
  45. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -4
  46. package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -4
  47. package/dist/utils/modifiers/FileToolModifier.node.mjs +6 -6
  48. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +3 -4
  49. package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
  50. package/dist/utils/ssrfGuard.node.d.mts +19 -10
  51. package/dist/utils/ssrfGuard.node.mjs +1 -1
  52. package/dist/utils/ssrfGuard.workerd.d.mts +12 -4
  53. package/dist/utils/ssrfGuard.workerd.mjs +2 -2
  54. package/package.json +9 -9
  55. package/src/composio.ts +207 -10
  56. package/src/errors/ConnectedAccountsErrors.ts +47 -0
  57. package/src/errors/SDKErrors.ts +52 -0
  58. package/src/errors/ToolErrors.ts +24 -0
  59. package/src/errors/ToolRouterErrors.ts +57 -0
  60. package/src/errors/index.ts +3 -0
  61. package/src/index.ts +15 -0
  62. package/src/lib/toolRouterMcp.ts +132 -0
  63. package/src/lib/toolRouterParams.ts +116 -29
  64. package/src/models/ConnectedAccounts.ts +118 -2
  65. package/src/models/CustomToolkits.ts +169 -0
  66. package/src/models/Experimental.ts +27 -0
  67. package/src/models/Keyring.ts +65 -0
  68. package/src/models/Logs.ts +101 -0
  69. package/src/models/MCP.ts +29 -15
  70. package/src/models/ToolRouter.ts +43 -14
  71. package/src/models/ToolRouterSession.ts +224 -16
  72. package/src/models/Toolkits.ts +181 -2
  73. package/src/models/Tools.ts +58 -26
  74. package/src/models/Triggers.ts +10 -90
  75. package/src/models/Usage.ts +119 -0
  76. package/src/models/Webhooks.ts +520 -0
  77. package/src/services/pusher/Pusher.ts +46 -16
  78. package/src/types/authConfigs.types.ts +2 -0
  79. package/src/types/connectedAccounts.types.ts +54 -0
  80. package/src/types/customToolkits.types.ts +102 -0
  81. package/src/types/keyring.types.ts +32 -0
  82. package/src/types/logs.types.ts +108 -0
  83. package/src/types/toolRouter.types.ts +259 -14
  84. package/src/types/toolkit.types.ts +161 -0
  85. package/src/types/usage.types.ts +81 -0
  86. package/src/types/webhooks.types.ts +143 -0
  87. package/src/utils/constants.ts +1 -5
  88. package/src/utils/jsonSchema.ts +4 -1
  89. package/src/utils/logger.ts +39 -7
  90. package/src/utils/sdk.ts +385 -22
  91. package/src/utils/ssrfGuard.node.ts +127 -13
  92. package/src/utils/ssrfGuard.workerd.ts +11 -1
  93. package/src/utils/transformers/connectedAccounts.ts +37 -2
  94. package/src/utils/transformers/customToolkits.ts +98 -0
  95. package/src/utils/transformers/keyring.ts +24 -0
  96. package/src/utils/transformers/logs.ts +85 -0
  97. package/src/utils/transformers/toolkits.ts +183 -3
  98. package/src/utils/transformers/triggers.ts +2 -2
  99. package/src/utils/transformers/usage.ts +77 -0
  100. package/src/utils/transformers/webhooks.ts +139 -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 { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
6
+ import { SessionConfigHistoryResponse, SessionCreateParams, SessionCreateResponse } 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,
@@ -29696,19 +29696,19 @@ type CreateConnectedAccountResponse = z$1.infer<typeof CreateConnectedAccountRes
29696
29696
  declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
29697
29697
  id: z$1.ZodString;
29698
29698
  /** @deprecated Use `connectedAccount.state.authScheme` instead. */
29699
- authScheme: z$1.ZodOptional<z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
29699
+ authScheme: z$1.ZodOptional<z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "CIMD_OAUTH", "S2S_OAUTH2"]>>;
29700
29700
  isComposioManaged: z$1.ZodBoolean;
29701
29701
  isDisabled: z$1.ZodBoolean;
29702
29702
  }, "strip", z$1.ZodTypeAny, {
29703
29703
  id: string;
29704
29704
  isComposioManaged: boolean;
29705
29705
  isDisabled: boolean;
29706
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
29706
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
29707
29707
  }, {
29708
29708
  id: string;
29709
29709
  isComposioManaged: boolean;
29710
29710
  isDisabled: boolean;
29711
- authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
29711
+ authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "CIMD_OAUTH" | "S2S_OAUTH2" | undefined;
29712
29712
  }>;
29713
29713
  type ConnectedAccountAuthConfig = z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
29714
29714
  declare const ConnectedAccountRetrieveResponseSchema: z$1.ZodType<{
@@ -29969,6 +29969,10 @@ declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
29969
29969
  type CreateConnectedAccountLinkResponse = z$1.infer<typeof CreateConnectedAccountLinkResponseSchema>;
29970
29970
  declare const ConnectedAccountRefreshOptionsSchema: z$1.ZodObject<{
29971
29971
  redirectUrl: z$1.ZodOptional<z$1.ZodString>;
29972
+ /**
29973
+ * @deprecated The Composio API no longer accepts this field. It is ignored
29974
+ * and `refresh()` logs a warning when it is set.
29975
+ */
29972
29976
  validateCredentials: z$1.ZodOptional<z$1.ZodBoolean>;
29973
29977
  }, "strip", z$1.ZodTypeAny, {
29974
29978
  redirectUrl?: string | undefined;
@@ -30019,6 +30023,74 @@ declare const UpdateConnectedAccountAclParamsSchema: z$1.ZodEffects<z$1.ZodObjec
30019
30023
  notAllowedUserIds?: string[] | undefined;
30020
30024
  }>;
30021
30025
  type UpdateConnectedAccountAclParams = z$1.infer<typeof UpdateConnectedAccountAclParamsSchema>;
30026
+ /**
30027
+ * Response of `composio.connectedAccounts.revoke()`.
30028
+ */
30029
+ declare const ConnectedAccountRevokedTokenSchema: z$1.ZodEnum<["access_token", "refresh_token", "credential"]>;
30030
+ type ConnectedAccountRevokedToken = z$1.infer<typeof ConnectedAccountRevokedTokenSchema>;
30031
+ declare const ConnectedAccountRevokeResponseSchema: z$1.ZodObject<{
30032
+ /**
30033
+ * Tokens revoked at the provider on this call. An empty array means the
30034
+ * connection was already revoked (no upstream dispatch).
30035
+ */
30036
+ revokedTokens: z$1.ZodArray<z$1.ZodEnum<["access_token", "refresh_token", "credential"]>, "many">;
30037
+ connectedAccount: z$1.ZodObject<{
30038
+ id: z$1.ZodString;
30039
+ /** The connection status after this call (`REVOKED` on success). */
30040
+ status: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
30041
+ }, "strip", z$1.ZodTypeAny, {
30042
+ status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
30043
+ id: string;
30044
+ }, {
30045
+ status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
30046
+ id: string;
30047
+ }>;
30048
+ }, "strip", z$1.ZodTypeAny, {
30049
+ connectedAccount: {
30050
+ status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
30051
+ id: string;
30052
+ };
30053
+ revokedTokens: ("access_token" | "refresh_token" | "credential")[];
30054
+ }, {
30055
+ connectedAccount: {
30056
+ status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
30057
+ id: string;
30058
+ };
30059
+ revokedTokens: ("access_token" | "refresh_token" | "credential")[];
30060
+ }>;
30061
+ type ConnectedAccountRevokeResponse = z$1.infer<typeof ConnectedAccountRevokeResponseSchema>;
30062
+ /**
30063
+ * Params for `composio.connectedAccounts.completeAuth()`.
30064
+ */
30065
+ declare const ConnectedAccountCompleteAuthParamsSchema: z$1.ZodObject<{
30066
+ /** The user the connection was initiated for. Must match the connection owner. */
30067
+ userId: z$1.ZodString;
30068
+ /** The opaque, single-use session URI your OAuth callback verifier received. */
30069
+ sessionUri: z$1.ZodString;
30070
+ }, "strip", z$1.ZodTypeAny, {
30071
+ userId: string;
30072
+ sessionUri: string;
30073
+ }, {
30074
+ userId: string;
30075
+ sessionUri: string;
30076
+ }>;
30077
+ type ConnectedAccountCompleteAuthParams = z$1.infer<typeof ConnectedAccountCompleteAuthParamsSchema>;
30078
+ /**
30079
+ * Response of `composio.connectedAccounts.completeAuth()`.
30080
+ */
30081
+ declare const ConnectedAccountCompleteAuthResponseSchema: z$1.ZodObject<{
30082
+ /** The connection that was completed; it is now `ACTIVE`. */
30083
+ connectedAccountId: z$1.ZodString;
30084
+ /** The toolkit the connection belongs to. */
30085
+ toolkitSlug: z$1.ZodString;
30086
+ }, "strip", z$1.ZodTypeAny, {
30087
+ connectedAccountId: string;
30088
+ toolkitSlug: string;
30089
+ }, {
30090
+ connectedAccountId: string;
30091
+ toolkitSlug: string;
30092
+ }>;
30093
+ type ConnectedAccountCompleteAuthResponse = z$1.infer<typeof ConnectedAccountCompleteAuthResponseSchema>;
30022
30094
  //#endregion
30023
30095
  //#region src/types/connectionRequest.types.d.ts
30024
30096
  interface ConnectionRequestState {
@@ -30508,21 +30580,21 @@ declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
30508
30580
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30509
30581
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30510
30582
  }, "strict", z.ZodTypeAny, {
30511
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30512
30583
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30513
- }, {
30514
30584
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30585
+ }, {
30515
30586
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30587
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30516
30588
  }>;
30517
30589
  declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
30518
30590
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30519
30591
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30520
30592
  }, "strict", z.ZodTypeAny, {
30521
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30522
30593
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30523
- }, {
30524
30594
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30595
+ }, {
30525
30596
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30597
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30526
30598
  }>]>;
30527
30599
  type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
30528
30600
  /**
@@ -30566,21 +30638,21 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
30566
30638
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30567
30639
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30568
30640
  }, "strict", z.ZodTypeAny, {
30569
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30570
30641
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30571
- }, {
30572
30642
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30643
+ }, {
30573
30644
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30645
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30574
30646
  }>]>;
30575
30647
  }, "strict", z.ZodTypeAny, {
30576
30648
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30577
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30578
30649
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30650
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30579
30651
  };
30580
30652
  }, {
30581
30653
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30582
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30583
30654
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30655
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30584
30656
  };
30585
30657
  }>]>, string[] | {
30586
30658
  enable: string[];
@@ -30588,8 +30660,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
30588
30660
  disable: string[];
30589
30661
  } | {
30590
30662
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30591
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30592
30663
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30664
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30593
30665
  };
30594
30666
  }, string[] | {
30595
30667
  enable: string[];
@@ -30597,8 +30669,8 @@ declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z
30597
30669
  disable: string[];
30598
30670
  } | {
30599
30671
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30600
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30601
30672
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30673
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30602
30674
  };
30603
30675
  }>;
30604
30676
  type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
@@ -30622,21 +30694,21 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30622
30694
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30623
30695
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30624
30696
  }, "strict", z.ZodTypeAny, {
30625
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30626
30697
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30627
- }, {
30628
30698
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30699
+ }, {
30629
30700
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30701
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30630
30702
  }>]>;
30631
30703
  }, "strict", z.ZodTypeAny, {
30632
30704
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30633
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30634
30705
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30706
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30635
30707
  };
30636
30708
  }, {
30637
30709
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30638
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30639
30710
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30711
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30640
30712
  };
30641
30713
  }>]>, string[] | {
30642
30714
  enable: string[];
@@ -30644,8 +30716,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30644
30716
  disable: string[];
30645
30717
  } | {
30646
30718
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30647
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30648
30719
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30720
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30649
30721
  };
30650
30722
  }, string[] | {
30651
30723
  enable: string[];
@@ -30653,19 +30725,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30653
30725
  disable: string[];
30654
30726
  } | {
30655
30727
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30656
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30657
30728
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30729
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30658
30730
  };
30659
30731
  }>]>>>>;
30660
30732
  tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
30661
30733
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30662
30734
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
30663
30735
  }, "strict", z.ZodTypeAny, {
30664
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30665
30736
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30666
- }, {
30667
30737
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30738
+ }, {
30668
30739
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30740
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30669
30741
  }>]>>>;
30670
30742
  toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
30671
30743
  disable: z.ZodArray<z.ZodString, "many">;
@@ -30772,8 +30844,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30772
30844
  }>>>;
30773
30845
  }, "strip", z.ZodTypeAny, {
30774
30846
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30775
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30776
30847
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30848
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30777
30849
  } | undefined;
30778
30850
  tools?: Record<string, string[] | {
30779
30851
  enable: string[];
@@ -30781,8 +30853,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30781
30853
  disable: string[];
30782
30854
  } | {
30783
30855
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30784
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30785
30856
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30857
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30786
30858
  };
30787
30859
  }> | undefined;
30788
30860
  toolkits?: string[] | {
@@ -30828,8 +30900,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30828
30900
  } | undefined;
30829
30901
  }, {
30830
30902
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30831
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30832
30903
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30904
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30833
30905
  } | undefined;
30834
30906
  tools?: Record<string, string[] | {
30835
30907
  enable: string[];
@@ -30837,8 +30909,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30837
30909
  disable: string[];
30838
30910
  } | {
30839
30911
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30840
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30841
30912
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30913
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30842
30914
  };
30843
30915
  }> | undefined;
30844
30916
  toolkits?: string[] | {
@@ -30884,8 +30956,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30884
30956
  } | undefined;
30885
30957
  }>, {
30886
30958
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30887
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30888
30959
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30960
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30889
30961
  } | undefined;
30890
30962
  tools?: Record<string, string[] | {
30891
30963
  enable: string[];
@@ -30893,8 +30965,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30893
30965
  disable: string[];
30894
30966
  } | {
30895
30967
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30896
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30897
30968
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30969
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30898
30970
  };
30899
30971
  }> | undefined;
30900
30972
  toolkits?: string[] | {
@@ -30940,8 +31012,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30940
31012
  } | undefined;
30941
31013
  }, {
30942
31014
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30943
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30944
31015
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31016
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30945
31017
  } | undefined;
30946
31018
  tools?: Record<string, string[] | {
30947
31019
  enable: string[];
@@ -30949,8 +31021,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30949
31021
  disable: string[];
30950
31022
  } | {
30951
31023
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30952
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30953
31024
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31025
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
30954
31026
  };
30955
31027
  }> | undefined;
30956
31028
  toolkits?: string[] | {
@@ -30996,8 +31068,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
30996
31068
  } | undefined;
30997
31069
  }>, {
30998
31070
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
30999
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31000
31071
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31072
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31001
31073
  } | undefined;
31002
31074
  tools?: Record<string, string[] | {
31003
31075
  enable: string[];
@@ -31005,8 +31077,8 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31005
31077
  disable: string[];
31006
31078
  } | {
31007
31079
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31008
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31009
31080
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31081
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31010
31082
  };
31011
31083
  }> | undefined;
31012
31084
  toolkits?: string[] | {
@@ -31673,7 +31745,9 @@ type ToolRouterSessionSearchFn = (params: {
31673
31745
  type ToolRouterSessionExecuteFn = (toolSlug: string, arguments_?: Record<string, unknown>, options?: ToolRouterSessionExecuteOptions) => Promise<ToolRouterSessionExecuteResponse>;
31674
31746
  interface ToolRouterSessionExecuteOptions {
31675
31747
  /**
31676
- * Account identifier for direct app tool execution in multi-account sessions.
31748
+ * Account identifier for direct app tool execution. Accepted on every project:
31749
+ * in multi-account sessions it picks the account; on single-account projects it
31750
+ * must match one of the session's active connections for the toolkit.
31677
31751
  * Meta/helper tools either ignore this top-level field or define
31678
31752
  * their own account-selection fields, for example
31679
31753
  * COMPOSIO_MULTI_EXECUTE_TOOL.tools[].account.
@@ -31683,7 +31757,15 @@ interface ToolRouterSessionExecuteOptions {
31683
31757
  type ToolRouterSessionPreloadConfig = SessionCreateResponse.Config.Preload;
31684
31758
  type ToolRouterSessionWorkbenchConfig = SessionCreateResponse.Config.Workbench;
31685
31759
  type ToolRouterSessionWarning = SessionCreateResponse.Warning;
31760
+ /**
31761
+ * Server-side session configuration as returned by the API: toolkit and tool
31762
+ * allowlists, tags, auth configs, connected accounts, manage_connections,
31763
+ * preload, sandbox (`workbench`), search and execute settings.
31764
+ */
31765
+ type ToolRouterSessionConfig = SessionCreateResponse.Config;
31686
31766
  interface ToolRouterSessionMetadata {
31767
+ /** Present on every session built from an API response; the constructor synthesises a minimal config when absent. */
31768
+ config?: ToolRouterSessionConfig;
31687
31769
  preload?: ToolRouterSessionPreloadConfig;
31688
31770
  workbench?: ToolRouterSessionWorkbenchConfig;
31689
31771
  configVersion?: number;
@@ -31737,8 +31819,86 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
31737
31819
  }>;
31738
31820
  type SessionProxyExecuteParams = z.infer<typeof SessionProxyExecuteParamsSchema>;
31739
31821
  type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
31822
+ /**
31823
+ * `manageConnections` shape accepted by `session.update()`. Unlike the create
31824
+ * schema, `callbackUrl: null` removes the stored callback URL while leaving
31825
+ * the sibling connection settings untouched.
31826
+ */
31827
+ declare const ToolRouterUpdateManageConnectionsSchema: z.ZodObject<{
31828
+ enable: z.ZodOptional<z.ZodBoolean>;
31829
+ callbackUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31830
+ waitForConnections: z.ZodOptional<z.ZodBoolean>;
31831
+ enableConnectionRemoval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31832
+ }, "strict", z.ZodTypeAny, {
31833
+ enable?: boolean | undefined;
31834
+ callbackUrl?: string | null | undefined;
31835
+ waitForConnections?: boolean | undefined;
31836
+ enableConnectionRemoval?: boolean | null | undefined;
31837
+ }, {
31838
+ enable?: boolean | undefined;
31839
+ callbackUrl?: string | null | undefined;
31840
+ waitForConnections?: boolean | undefined;
31841
+ enableConnectionRemoval?: boolean | null | undefined;
31842
+ }>;
31843
+ type ToolRouterUpdateManageConnectionsConfig = z.infer<typeof ToolRouterUpdateManageConnectionsSchema>;
31844
+ /**
31845
+ * `experimental` block accepted by `session.update()`. Each leaf follows the
31846
+ * PATCH contract of the API: omit to keep the stored value, `null` to remove
31847
+ * it, a value to replace it.
31848
+ */
31849
+ declare const ToolRouterUpdateExperimentalSchema: z.ZodObject<{
31850
+ permissions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31851
+ default: z.ZodEnum<["allow_all", "ask_every_call", "ask_once_per_session"]>;
31852
+ overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["always_allow", "always_deny", "ask_once", "ask_always"]>>>;
31853
+ }, "strict", z.ZodTypeAny, {
31854
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
31855
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
31856
+ }, {
31857
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
31858
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
31859
+ }>>>;
31860
+ linkUrlOverwrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31861
+ fastMode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31862
+ submitFeedback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
31863
+ enable: z.ZodBoolean;
31864
+ }, "strict", z.ZodTypeAny, {
31865
+ enable: boolean;
31866
+ }, {
31867
+ enable: boolean;
31868
+ }>>>;
31869
+ sessionConfigId: z.ZodOptional<z.ZodString>;
31870
+ }, "strict", z.ZodTypeAny, {
31871
+ permissions?: {
31872
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
31873
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
31874
+ } | null | undefined;
31875
+ linkUrlOverwrite?: string | null | undefined;
31876
+ fastMode?: boolean | null | undefined;
31877
+ submitFeedback?: {
31878
+ enable: boolean;
31879
+ } | null | undefined;
31880
+ sessionConfigId?: string | undefined;
31881
+ }, {
31882
+ permissions?: {
31883
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
31884
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
31885
+ } | null | undefined;
31886
+ linkUrlOverwrite?: string | null | undefined;
31887
+ fastMode?: boolean | null | undefined;
31888
+ submitFeedback?: {
31889
+ enable: boolean;
31890
+ } | null | undefined;
31891
+ sessionConfigId?: string | undefined;
31892
+ }>;
31893
+ type ToolRouterUpdateExperimentalConfig = z.infer<typeof ToolRouterUpdateExperimentalSchema>;
31894
+ /**
31895
+ * Options for `session.update()`. For every policy block, omitting the key
31896
+ * preserves the stored value and `null` removes the stored override (which can
31897
+ * increase access: `toolkits: null` restores the unrestricted default, unlike
31898
+ * `toolkits: []`, which denies every app toolkit).
31899
+ */
31740
31900
  declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31741
- toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
31901
+ toolkits: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
31742
31902
  disable: z.ZodArray<z.ZodString, "many">;
31743
31903
  }, "strict", z.ZodTypeAny, {
31744
31904
  disable: string[];
@@ -31750,8 +31910,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31750
31910
  enable: string[];
31751
31911
  }, {
31752
31912
  enable: string[];
31753
- }>]>>>;
31754
- 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<{
31913
+ }>]>>>>;
31914
+ 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<{
31755
31915
  enable: z.ZodArray<z.ZodString, "many">;
31756
31916
  }, "strict", z.ZodTypeAny, {
31757
31917
  enable: string[];
@@ -31768,21 +31928,21 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31768
31928
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
31769
31929
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
31770
31930
  }, "strict", z.ZodTypeAny, {
31771
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31772
31931
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31773
- }, {
31774
31932
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31933
+ }, {
31775
31934
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31935
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31776
31936
  }>]>;
31777
31937
  }, "strict", z.ZodTypeAny, {
31778
31938
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31779
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31780
31939
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31940
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31781
31941
  };
31782
31942
  }, {
31783
31943
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31784
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31785
31944
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31945
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31786
31946
  };
31787
31947
  }>]>, string[] | {
31788
31948
  enable: string[];
@@ -31790,8 +31950,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31790
31950
  disable: string[];
31791
31951
  } | {
31792
31952
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31793
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31794
31953
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31954
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31795
31955
  };
31796
31956
  }, string[] | {
31797
31957
  enable: string[];
@@ -31799,34 +31959,37 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31799
31959
  disable: string[];
31800
31960
  } | {
31801
31961
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31802
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31803
31962
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31963
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31804
31964
  };
31805
- }>]>>>>;
31806
- tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
31965
+ }>]>>>>>;
31966
+ tags: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
31807
31967
  enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
31808
31968
  disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
31809
31969
  }, "strict", z.ZodTypeAny, {
31810
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31811
31970
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31812
- }, {
31813
31971
  disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31972
+ }, {
31814
31973
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31815
- }>]>>>;
31816
- authConfigs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
31817
- connectedAccounts: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>;
31974
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31975
+ }>]>>>>;
31976
+ authConfigs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
31977
+ 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[]>>>>>;
31818
31978
  manageConnections: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
31819
- enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
31820
- callbackUrl: z.ZodOptional<z.ZodString>;
31979
+ enable: z.ZodOptional<z.ZodBoolean>;
31980
+ callbackUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31821
31981
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
31982
+ enableConnectionRemoval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31822
31983
  }, "strict", z.ZodTypeAny, {
31823
31984
  enable?: boolean | undefined;
31824
- callbackUrl?: string | undefined;
31985
+ callbackUrl?: string | null | undefined;
31825
31986
  waitForConnections?: boolean | undefined;
31987
+ enableConnectionRemoval?: boolean | null | undefined;
31826
31988
  }, {
31827
31989
  enable?: boolean | undefined;
31828
- callbackUrl?: string | undefined;
31990
+ callbackUrl?: string | null | undefined;
31829
31991
  waitForConnections?: boolean | undefined;
31992
+ enableConnectionRemoval?: boolean | null | undefined;
31830
31993
  }>]>>>>;
31831
31994
  sandbox: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
31832
31995
  enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -31862,53 +32025,116 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31862
32025
  }>>>>;
31863
32026
  multiAccount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
31864
32027
  enable: z.ZodOptional<z.ZodBoolean>;
31865
- maxAccountsPerToolkit: z.ZodOptional<z.ZodNumber>;
32028
+ maxAccountsPerToolkit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31866
32029
  requireExplicitSelection: z.ZodOptional<z.ZodBoolean>;
31867
32030
  }, "strip", z.ZodTypeAny, {
31868
32031
  enable?: boolean | undefined;
31869
- maxAccountsPerToolkit?: number | undefined;
32032
+ maxAccountsPerToolkit?: number | null | undefined;
31870
32033
  requireExplicitSelection?: boolean | undefined;
31871
32034
  }, {
31872
32035
  enable?: boolean | undefined;
31873
- maxAccountsPerToolkit?: number | undefined;
32036
+ maxAccountsPerToolkit?: number | null | undefined;
31874
32037
  requireExplicitSelection?: boolean | undefined;
31875
32038
  }>>>>;
31876
- preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
32039
+ preload: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
31877
32040
  tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
31878
32041
  }, "strict", z.ZodTypeAny, {
31879
32042
  tools?: string[] | "all" | undefined;
31880
32043
  }, {
31881
32044
  tools?: string[] | "all" | undefined;
31882
- }>>>;
32045
+ }>>>>;
32046
+ search: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
32047
+ enable: z.ZodOptional<z.ZodBoolean>;
32048
+ }, "strict", z.ZodTypeAny, {
32049
+ enable?: boolean | undefined;
32050
+ }, {
32051
+ enable?: boolean | undefined;
32052
+ }>>>>;
32053
+ execute: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
32054
+ enableMultiExecute: z.ZodOptional<z.ZodBoolean>;
32055
+ }, "strict", z.ZodTypeAny, {
32056
+ enableMultiExecute?: boolean | undefined;
32057
+ }, {
32058
+ enableMultiExecute?: boolean | undefined;
32059
+ }>>>>;
32060
+ experimental: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
32061
+ permissions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32062
+ default: z.ZodEnum<["allow_all", "ask_every_call", "ask_once_per_session"]>;
32063
+ overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["always_allow", "always_deny", "ask_once", "ask_always"]>>>;
32064
+ }, "strict", z.ZodTypeAny, {
32065
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32066
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32067
+ }, {
32068
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32069
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32070
+ }>>>;
32071
+ linkUrlOverwrite: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32072
+ fastMode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32073
+ submitFeedback: z.ZodOptional<z.ZodNullable<z.ZodObject<{
32074
+ enable: z.ZodBoolean;
32075
+ }, "strict", z.ZodTypeAny, {
32076
+ enable: boolean;
32077
+ }, {
32078
+ enable: boolean;
32079
+ }>>>;
32080
+ sessionConfigId: z.ZodOptional<z.ZodString>;
32081
+ }, "strict", z.ZodTypeAny, {
32082
+ permissions?: {
32083
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32084
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32085
+ } | null | undefined;
32086
+ linkUrlOverwrite?: string | null | undefined;
32087
+ fastMode?: boolean | null | undefined;
32088
+ submitFeedback?: {
32089
+ enable: boolean;
32090
+ } | null | undefined;
32091
+ sessionConfigId?: string | undefined;
32092
+ }, {
32093
+ permissions?: {
32094
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32095
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32096
+ } | null | undefined;
32097
+ linkUrlOverwrite?: string | null | undefined;
32098
+ fastMode?: boolean | null | undefined;
32099
+ submitFeedback?: {
32100
+ enable: boolean;
32101
+ } | null | undefined;
32102
+ sessionConfigId?: string | undefined;
32103
+ }>>>>;
32104
+ expectedConfigVersion: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<false>]>>>;
31883
32105
  }, "strip", z.ZodTypeAny, {
31884
32106
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31885
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31886
32107
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31887
- } | undefined;
32108
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32109
+ } | null | undefined;
31888
32110
  tools?: Record<string, string[] | {
31889
32111
  enable: string[];
31890
32112
  } | {
31891
32113
  disable: string[];
31892
32114
  } | {
31893
32115
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31894
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31895
32116
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32117
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31896
32118
  };
31897
- }> | undefined;
32119
+ }> | null | undefined;
31898
32120
  toolkits?: string[] | {
31899
32121
  disable: string[];
31900
32122
  } | {
31901
32123
  enable: string[];
31902
- } | undefined;
32124
+ } | null | undefined;
32125
+ search?: {
32126
+ enable?: boolean | undefined;
32127
+ } | null | undefined;
31903
32128
  preload?: {
31904
32129
  tools?: string[] | "all" | undefined;
31905
- } | undefined;
31906
- authConfigs?: Record<string, string> | undefined;
31907
- connectedAccounts?: Record<string, string[]> | undefined;
32130
+ } | null | undefined;
32131
+ authConfigs?: Record<string, string> | null | undefined;
32132
+ connectedAccounts?: Record<string, string[]> | null | undefined;
31908
32133
  manageConnections?: boolean | {
31909
32134
  enable?: boolean | undefined;
31910
- callbackUrl?: string | undefined;
32135
+ callbackUrl?: string | null | undefined;
31911
32136
  waitForConnections?: boolean | undefined;
32137
+ enableConnectionRemoval?: boolean | null | undefined;
31912
32138
  } | null | undefined;
31913
32139
  sandbox?: {
31914
32140
  enable?: boolean | undefined;
@@ -31924,38 +32150,58 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31924
32150
  } | null | undefined;
31925
32151
  multiAccount?: {
31926
32152
  enable?: boolean | undefined;
31927
- maxAccountsPerToolkit?: number | undefined;
32153
+ maxAccountsPerToolkit?: number | null | undefined;
31928
32154
  requireExplicitSelection?: boolean | undefined;
31929
32155
  } | null | undefined;
32156
+ experimental?: {
32157
+ permissions?: {
32158
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32159
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32160
+ } | null | undefined;
32161
+ linkUrlOverwrite?: string | null | undefined;
32162
+ fastMode?: boolean | null | undefined;
32163
+ submitFeedback?: {
32164
+ enable: boolean;
32165
+ } | null | undefined;
32166
+ sessionConfigId?: string | undefined;
32167
+ } | null | undefined;
32168
+ execute?: {
32169
+ enableMultiExecute?: boolean | undefined;
32170
+ } | null | undefined;
32171
+ expectedConfigVersion?: number | false | undefined;
31930
32172
  }, {
31931
32173
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31932
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31933
32174
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31934
- } | undefined;
32175
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32176
+ } | null | undefined;
31935
32177
  tools?: Record<string, string[] | {
31936
32178
  enable: string[];
31937
32179
  } | {
31938
32180
  disable: string[];
31939
32181
  } | {
31940
32182
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31941
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31942
32183
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32184
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31943
32185
  };
31944
- }> | undefined;
32186
+ }> | null | undefined;
31945
32187
  toolkits?: string[] | {
31946
32188
  disable: string[];
31947
32189
  } | {
31948
32190
  enable: string[];
31949
- } | undefined;
32191
+ } | null | undefined;
32192
+ search?: {
32193
+ enable?: boolean | undefined;
32194
+ } | null | undefined;
31950
32195
  preload?: {
31951
32196
  tools?: string[] | "all" | undefined;
31952
- } | undefined;
31953
- authConfigs?: Record<string, string> | undefined;
31954
- connectedAccounts?: Record<string, string | string[]> | undefined;
32197
+ } | null | undefined;
32198
+ authConfigs?: Record<string, string> | null | undefined;
32199
+ connectedAccounts?: Record<string, string | string[]> | null | undefined;
31955
32200
  manageConnections?: boolean | {
31956
32201
  enable?: boolean | undefined;
31957
- callbackUrl?: string | undefined;
32202
+ callbackUrl?: string | null | undefined;
31958
32203
  waitForConnections?: boolean | undefined;
32204
+ enableConnectionRemoval?: boolean | null | undefined;
31959
32205
  } | null | undefined;
31960
32206
  sandbox?: {
31961
32207
  enable?: boolean | undefined;
@@ -31971,38 +32217,58 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
31971
32217
  } | null | undefined;
31972
32218
  multiAccount?: {
31973
32219
  enable?: boolean | undefined;
31974
- maxAccountsPerToolkit?: number | undefined;
32220
+ maxAccountsPerToolkit?: number | null | undefined;
31975
32221
  requireExplicitSelection?: boolean | undefined;
31976
32222
  } | null | undefined;
32223
+ experimental?: {
32224
+ permissions?: {
32225
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32226
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32227
+ } | null | undefined;
32228
+ linkUrlOverwrite?: string | null | undefined;
32229
+ fastMode?: boolean | null | undefined;
32230
+ submitFeedback?: {
32231
+ enable: boolean;
32232
+ } | null | undefined;
32233
+ sessionConfigId?: string | undefined;
32234
+ } | null | undefined;
32235
+ execute?: {
32236
+ enableMultiExecute?: boolean | undefined;
32237
+ } | null | undefined;
32238
+ expectedConfigVersion?: number | false | undefined;
31977
32239
  }>, {
31978
32240
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31979
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31980
32241
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31981
- } | undefined;
32242
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32243
+ } | null | undefined;
31982
32244
  tools?: Record<string, string[] | {
31983
32245
  enable: string[];
31984
32246
  } | {
31985
32247
  disable: string[];
31986
32248
  } | {
31987
32249
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
31988
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31989
32250
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32251
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
31990
32252
  };
31991
- }> | undefined;
32253
+ }> | null | undefined;
31992
32254
  toolkits?: string[] | {
31993
32255
  disable: string[];
31994
32256
  } | {
31995
32257
  enable: string[];
31996
- } | undefined;
32258
+ } | null | undefined;
32259
+ search?: {
32260
+ enable?: boolean | undefined;
32261
+ } | null | undefined;
31997
32262
  preload?: {
31998
32263
  tools?: string[] | "all" | undefined;
31999
- } | undefined;
32000
- authConfigs?: Record<string, string> | undefined;
32001
- connectedAccounts?: Record<string, string[]> | undefined;
32264
+ } | null | undefined;
32265
+ authConfigs?: Record<string, string> | null | undefined;
32266
+ connectedAccounts?: Record<string, string[]> | null | undefined;
32002
32267
  manageConnections?: boolean | {
32003
32268
  enable?: boolean | undefined;
32004
- callbackUrl?: string | undefined;
32269
+ callbackUrl?: string | null | undefined;
32005
32270
  waitForConnections?: boolean | undefined;
32271
+ enableConnectionRemoval?: boolean | null | undefined;
32006
32272
  } | null | undefined;
32007
32273
  sandbox?: {
32008
32274
  enable?: boolean | undefined;
@@ -32018,38 +32284,58 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32018
32284
  } | null | undefined;
32019
32285
  multiAccount?: {
32020
32286
  enable?: boolean | undefined;
32021
- maxAccountsPerToolkit?: number | undefined;
32287
+ maxAccountsPerToolkit?: number | null | undefined;
32022
32288
  requireExplicitSelection?: boolean | undefined;
32023
32289
  } | null | undefined;
32290
+ experimental?: {
32291
+ permissions?: {
32292
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32293
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32294
+ } | null | undefined;
32295
+ linkUrlOverwrite?: string | null | undefined;
32296
+ fastMode?: boolean | null | undefined;
32297
+ submitFeedback?: {
32298
+ enable: boolean;
32299
+ } | null | undefined;
32300
+ sessionConfigId?: string | undefined;
32301
+ } | null | undefined;
32302
+ execute?: {
32303
+ enableMultiExecute?: boolean | undefined;
32304
+ } | null | undefined;
32305
+ expectedConfigVersion?: number | false | undefined;
32024
32306
  }, {
32025
32307
  tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32026
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32027
32308
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32028
- } | undefined;
32309
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32310
+ } | null | undefined;
32029
32311
  tools?: Record<string, string[] | {
32030
32312
  enable: string[];
32031
32313
  } | {
32032
32314
  disable: string[];
32033
32315
  } | {
32034
32316
  tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
32035
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32036
32317
  enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32318
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
32037
32319
  };
32038
- }> | undefined;
32320
+ }> | null | undefined;
32039
32321
  toolkits?: string[] | {
32040
32322
  disable: string[];
32041
32323
  } | {
32042
32324
  enable: string[];
32043
- } | undefined;
32325
+ } | null | undefined;
32326
+ search?: {
32327
+ enable?: boolean | undefined;
32328
+ } | null | undefined;
32044
32329
  preload?: {
32045
32330
  tools?: string[] | "all" | undefined;
32046
- } | undefined;
32047
- authConfigs?: Record<string, string> | undefined;
32048
- connectedAccounts?: Record<string, string | string[]> | undefined;
32331
+ } | null | undefined;
32332
+ authConfigs?: Record<string, string> | null | undefined;
32333
+ connectedAccounts?: Record<string, string | string[]> | null | undefined;
32049
32334
  manageConnections?: boolean | {
32050
32335
  enable?: boolean | undefined;
32051
- callbackUrl?: string | undefined;
32336
+ callbackUrl?: string | null | undefined;
32052
32337
  waitForConnections?: boolean | undefined;
32338
+ enableConnectionRemoval?: boolean | null | undefined;
32053
32339
  } | null | undefined;
32054
32340
  sandbox?: {
32055
32341
  enable?: boolean | undefined;
@@ -32065,12 +32351,28 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
32065
32351
  } | null | undefined;
32066
32352
  multiAccount?: {
32067
32353
  enable?: boolean | undefined;
32068
- maxAccountsPerToolkit?: number | undefined;
32354
+ maxAccountsPerToolkit?: number | null | undefined;
32069
32355
  requireExplicitSelection?: boolean | undefined;
32070
32356
  } | null | undefined;
32357
+ experimental?: {
32358
+ permissions?: {
32359
+ default: "allow_all" | "ask_every_call" | "ask_once_per_session";
32360
+ overrides?: Record<string, "always_allow" | "always_deny" | "ask_once" | "ask_always"> | undefined;
32361
+ } | null | undefined;
32362
+ linkUrlOverwrite?: string | null | undefined;
32363
+ fastMode?: boolean | null | undefined;
32364
+ submitFeedback?: {
32365
+ enable: boolean;
32366
+ } | null | undefined;
32367
+ sessionConfigId?: string | undefined;
32368
+ } | null | undefined;
32369
+ execute?: {
32370
+ enableMultiExecute?: boolean | undefined;
32371
+ } | null | undefined;
32372
+ expectedConfigVersion?: number | false | undefined;
32071
32373
  }>;
32072
32374
  type ToolRouterUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
32073
- type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
32375
+ type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<ToolRouterSessionConfig>;
32074
32376
  declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
32075
32377
  sessionId: z.ZodString;
32076
32378
  deleted: z.ZodLiteral<true>;
@@ -32082,11 +32384,129 @@ declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
32082
32384
  deleted: true;
32083
32385
  }>;
32084
32386
  type ToolRouterSessionDeleteResponse = z.infer<typeof ToolRouterSessionDeleteResponseSchema>;
32387
+ /**
32388
+ * Options for `session.listConfigHistory()`.
32389
+ */
32390
+ declare const ToolRouterSessionListConfigHistoryOptionsSchema: z.ZodObject<{
32391
+ /** Cursor from a previous response's `nextCursor`. */
32392
+ cursor: z.ZodOptional<z.ZodString>;
32393
+ /** Number of items per page, max allowed is 100. */
32394
+ limit: z.ZodOptional<z.ZodNumber>;
32395
+ }, "strip", z.ZodTypeAny, {
32396
+ limit?: number | undefined;
32397
+ cursor?: string | undefined;
32398
+ }, {
32399
+ limit?: number | undefined;
32400
+ cursor?: string | undefined;
32401
+ }>;
32402
+ type ToolRouterSessionListConfigHistoryOptions = z.infer<typeof ToolRouterSessionListConfigHistoryOptionsSchema>;
32403
+ /**
32404
+ * The session configuration at one version, as stored by the API. This is
32405
+ * the wire shape (snake_case), typed from the generated client.
32406
+ */
32407
+ type ToolRouterSessionConfigHistoryConfig = SessionConfigHistoryResponse.Item.Config;
32408
+ type ToolRouterSessionConfigHistoryItem = {
32409
+ /** The config version this entry represents. */
32410
+ version: number;
32411
+ /** ISO timestamp — for archived rows, when the version was superseded by an update. */
32412
+ createdAt: string;
32413
+ /** True only for the live (current) config, present on the first page. */
32414
+ isCurrent: boolean;
32415
+ /** The session configuration at this version. */
32416
+ config: ToolRouterSessionConfigHistoryConfig;
32417
+ };
32418
+ type ToolRouterSessionListConfigHistoryResponse = {
32419
+ items: ToolRouterSessionConfigHistoryItem[];
32420
+ nextCursor: string | null;
32421
+ totalPages: number;
32422
+ currentPage: number;
32423
+ totalItems: number;
32424
+ };
32425
+ type ToolRouterSessionListConfigHistoryFn = (options?: ToolRouterSessionListConfigHistoryOptions, requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionListConfigHistoryResponse>;
32085
32426
  type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
32427
+ declare const ToolRouterSessionEnsureConnectedOptionsSchema: z.ZodObject<{
32428
+ callbackUrl: z.ZodOptional<z.ZodString>;
32429
+ alias: z.ZodOptional<z.ZodString>;
32430
+ experimental: z.ZodOptional<z.ZodObject<{
32431
+ accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
32432
+ aclConfigForShared: z.ZodOptional<z.ZodObject<{
32433
+ allowAllUsers: z.ZodOptional<z.ZodBoolean>;
32434
+ allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32435
+ notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32436
+ }, "strip", z.ZodTypeAny, {
32437
+ allowAllUsers?: boolean | undefined;
32438
+ allowedUserIds?: string[] | undefined;
32439
+ notAllowedUserIds?: string[] | undefined;
32440
+ }, {
32441
+ allowAllUsers?: boolean | undefined;
32442
+ allowedUserIds?: string[] | undefined;
32443
+ notAllowedUserIds?: string[] | undefined;
32444
+ }>>;
32445
+ }, "strip", z.ZodTypeAny, {
32446
+ accountType?: "PRIVATE" | "SHARED" | undefined;
32447
+ aclConfigForShared?: {
32448
+ allowAllUsers?: boolean | undefined;
32449
+ allowedUserIds?: string[] | undefined;
32450
+ notAllowedUserIds?: string[] | undefined;
32451
+ } | undefined;
32452
+ }, {
32453
+ accountType?: "PRIVATE" | "SHARED" | undefined;
32454
+ aclConfigForShared?: {
32455
+ allowAllUsers?: boolean | undefined;
32456
+ allowedUserIds?: string[] | undefined;
32457
+ notAllowedUserIds?: string[] | undefined;
32458
+ } | undefined;
32459
+ }>>;
32460
+ /** Max time to wait for a newly-initiated connection to become active, in milliseconds. Defaults to 60000. */
32461
+ timeout: z.ZodOptional<z.ZodNumber>;
32462
+ }, "strip", z.ZodTypeAny, {
32463
+ callbackUrl?: string | undefined;
32464
+ experimental?: {
32465
+ accountType?: "PRIVATE" | "SHARED" | undefined;
32466
+ aclConfigForShared?: {
32467
+ allowAllUsers?: boolean | undefined;
32468
+ allowedUserIds?: string[] | undefined;
32469
+ notAllowedUserIds?: string[] | undefined;
32470
+ } | undefined;
32471
+ } | undefined;
32472
+ alias?: string | undefined;
32473
+ timeout?: number | undefined;
32474
+ }, {
32475
+ callbackUrl?: string | undefined;
32476
+ experimental?: {
32477
+ accountType?: "PRIVATE" | "SHARED" | undefined;
32478
+ aclConfigForShared?: {
32479
+ allowAllUsers?: boolean | undefined;
32480
+ allowedUserIds?: string[] | undefined;
32481
+ notAllowedUserIds?: string[] | undefined;
32482
+ } | undefined;
32483
+ } | undefined;
32484
+ alias?: string | undefined;
32485
+ timeout?: number | undefined;
32486
+ }>;
32487
+ type ToolRouterSessionEnsureConnectedOptions = z.infer<typeof ToolRouterSessionEnsureConnectedOptionsSchema>;
32488
+ type ToolRouterSessionEnsureConnectedResult = {
32489
+ /** Canonical slug of the toolkit this call ensured. */
32490
+ toolkit: string;
32491
+ /** True when the session already had an active connection (or a no-auth toolkit) — no link was created. */
32492
+ wasConnected: boolean;
32493
+ /** The active connected account backing the toolkit. Omitted for no-auth toolkits. */
32494
+ connectedAccount?: {
32495
+ id: string;
32496
+ status: string;
32497
+ };
32498
+ };
32499
+ type ToolRouterSessionEnsureConnectedFn = (toolkit: string, options?: ToolRouterSessionEnsureConnectedOptions, requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionEnsureConnectedResult>;
32086
32500
  /** Session type returned by ToolRouter.create() and ToolRouter.use() */
32087
32501
  interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
32088
32502
  sessionId: string;
32089
32503
  mcp: ToolRouterMCPServerConfig;
32504
+ /**
32505
+ * Server-side session configuration (toolkit/tool allowlists, tags, preload,
32506
+ * sandbox, manage_connections) as returned by the API. Refreshed in place by
32507
+ * `update()`.
32508
+ */
32509
+ config: ToolRouterSessionConfig;
32090
32510
  /** Stored preload configuration for this session. */
32091
32511
  preload: ToolRouterSessionPreloadConfig;
32092
32512
  /**
@@ -32107,15 +32527,19 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
32107
32527
  warnings: ToolRouterSessionWarning[];
32108
32528
  tools: ToolRouterToolsFn<TToolCollection, TTool, TProvider>;
32109
32529
  authorize: ToolRouterAuthorizeFn;
32530
+ /** Ensure a toolkit has an active connection, linking and waiting only when needed. */
32531
+ ensureConnected: ToolRouterSessionEnsureConnectedFn;
32110
32532
  toolkits: ToolRouterToolkitsFn;
32111
32533
  /** Search for tools by semantic use case */
32112
32534
  search: ToolRouterSessionSearchFn;
32113
32535
  /** Execute a tool within the session */
32114
32536
  execute: ToolRouterSessionExecuteFn;
32115
- /** Update the session configuration. Mutates this session in-place. */
32537
+ /** Update the session configuration. Mutates this session in-place and resolves to the updated `config`. */
32116
32538
  update: ToolRouterSessionUpdateFn;
32117
32539
  /** Delete the session. Deleted sessions are no longer retrievable or executable. */
32118
32540
  delete: ToolRouterSessionDeleteFn;
32541
+ /** Page through the session's configuration history (newest first). */
32542
+ listConfigHistory: ToolRouterSessionListConfigHistoryFn;
32119
32543
  /** Proxy an API call through Composio's auth layer using the session's connected account */
32120
32544
  proxyExecute: ToolRouterSessionProxyExecuteFn;
32121
32545
  /** List custom tools registered in this session, with their final slugs and schemas */
@@ -32332,4 +32756,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
32332
32756
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
32333
32757
  type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
32334
32758
  //#endregion
32335
- export { ToolRouterSessionMetadata as $, ToolExecuteResponse as $i, MCPGenerateURLParams as $n, Oauth1ActiveConnectionDataSchema as $r, ConnectedAccountExperimentalSchema as $t, SessionProxyExecuteParams as A, BeforeFileUploadSource as Ai, UpdateConnectedAccountParamsSchema as An, McpUpdateResponseSchema as Ar, FileListResponseSchema as At, ToolRouterCreateSessionConfigSchema as B, beforeExecuteMetaModifier as Bi, ComposioMcpUpdateResponseSchema as Bn, BaseConnectionFields as Br, ToolRouterSessionFilesMountUploadOptionsSchema as Bt, MCPServerType as C, Oauth2InitiatedConnectionDataSchema as Ci, CreateConnectedAccountParamsSchema as Cn, McpRetrieveResponse as Cr, ToolkitConnectionStateSchema as Ct, Session as D, Oauth2RevokedConnectionDataSchema as Di, UpdateConnectedAccountAclParams as Dn, McpServerUrlInfo as Dr, FileDeleteResponse as Dt, SandboxSizeSchema as E, Oauth2RevokedConnectionData as Ei, DefaultCreateConnectedAccountParamsSchema as En, McpServerGetResponse as Er, RemoteFile as Et, ToolRouterConfigTags as F, SessionMetaToolOptions as Fi, ComposioGenerateURLParamsSchema as Fn, ExecuteToolFnOptions as Fr, ToolRouterSessionFilesMountDownloadOptions as Ft, ToolRouterSandboxConfigSchema as G, JSONSchemaProperty as Gi, GenerateURLParams as Gn, ConnectionStatuses as Gr, ConnectedAccountAclConfigResponse as Gt, ToolRouterMCPServerConfigSchema as H, beforeFileUploadModifier as Hi, CustomCreateResponse$1 as Hn, ConnectionData as Hr, ConnectionRequest as Ht, ToolRouterConfigTagsSchema as I, ToolOptions as Ii, ComposioGenerateURLResponseSchema as In, GlobalExecuteToolFn as Ir, ToolRouterSessionFilesMountDownloadOptionsSchema as It, ToolRouterSessionDeleteResponseSchema as J, Tool as Ji, GenerateURLResponseSchema as Jn, CustomOauth1ConnectionData as Jr, ConnectedAccountAuthConfig as Jt, ToolRouterSessionDeleteFn as K, JSONSchemaPropertySchema as Ki, GenerateURLParamsSchema as Kn, CustomConnectionData as Kr, ConnectedAccountAclConfigResponseSchema as Kt, ToolRouterConfigTools as L, TransformToolSchemaModifier as Li, ComposioMcpDeleteResponseSchema as Ln, Provider as Lr, ToolRouterSessionFilesMountListOptions as Lt, SessionWithoutMcp as M, MetaToolArguments as Mi, BaseComposioProvider as Mn, McpUrlResponseCamelCase as Mr, RemoteFileDataSchema as Mt, ToolRouterAuthorizeFn as N, ProviderOptions as Ni, BaseNonAgenticProvider as Nn, McpUserConnectionStatus as Nr, ToolRouterSessionFilesMountDeleteOptions as Nt, SessionExperimental as O, RedirectableAuthSchemeSchema as Oi, UpdateConnectedAccountAclParamsSchema as On, McpToolkitConnectionStatus as Or, FileDeleteResponseSchema as Ot, ToolRouterConfigManageConnectionsSchema as P, SessionExecuteMetaModifiers as Pi, ComposioCustomCreateResponseSchema as Pn, ExecuteToolFn as Pr, ToolRouterSessionFilesMountDeleteOptionsSchema as Pt, ToolRouterSessionExecuteResponseSchema as Q, ToolExecuteParamsSchema as Qi, MCPCreateMethodResponse as Qn, Oauth1ActiveConnectionData as Qr, ConnectedAccountExperimentalResponseSchema as Qt, ToolRouterConfigToolsSchema as R, afterExecuteMetaModifier as Ri, ComposioMcpListResponseSchema as Rn, ToolCallExecutionTarget as Rr, ToolRouterSessionFilesMountListOptionsSchema as Rt, SessionContext as S, Oauth2InitiatedConnectionData as Si, CreateConnectedAccountParams as Sn, McpListResponseSchema as Sr, ToolkitConnectionState as St, SandboxSize as T, Oauth2InitiatingConnectionDataSchema as Ti, CreateConnectedAccountResponseSchema as Tn, McpServerCreateResponse as Tr, ToolkitConnectionsDetailsSchema as Tt, ToolRouterManageConnectionsConfigSchema as U, CustomAuthParams as Ui, CustomCreateResponseSchema as Un, ConnectionDataSchema as Ur, ConnectionRequestState as Ut, ToolRouterMCPServerConfig as V, beforeExecuteModifier as Vi, ConnectionStatus as Vn, BillcomAuthConnectionDataSchema as Vr, ComposioRequestOptions as Vt, ToolRouterSandboxConfig as W, CustomAuthParamsSchema as Wi, CustomCreateResponseValidated as Wn, ConnectionStatusEnum as Wr, ConnectedAccountAclConfig as Wt, ToolRouterSessionExecuteOptions as X, ToolExecuteMetaParamsSchema as Xi, MCPAuthOptions as Xn, CustomOauth2ConnectionData as Xr, ConnectedAccountExperimental as Xt, ToolRouterSessionExecuteFn as Y, ToolExecuteMetaParams as Yi, GenerateURLResponseValidated as Yn, CustomOauth1ConnectionDataSchema as Yr, ConnectedAccountAuthConfigSchema as Yt, ToolRouterSessionExecuteResponse as Z, ToolExecuteParams as Zi, MCPAuthOptionsSchema as Zn, CustomOauth2ConnectionDataSchema as Zr, ConnectedAccountExperimentalResponse as Zt, CustomToolsMapEntry as _, ToolkitVersionSchema as _a, Oauth2ExpiredConnectionDataSchema as _i, CreateConnectedAccountLinkOptionsSchema as _n, MCPToolkitConfigSchema as _r, ToolRouterToolsFn as _t, CreateCustomToolkitParams as a, ToolListResponseSchema as aa, Oauth1FailedConnectionDataSchema as ai, ConnectedAccountRefreshOptions as an, MCPMultiAppServerSchema as ar, ToolRouterSessionSearchResponseSchema as at, RegisteredCustomTool as b, Oauth2InactiveConnectionData as bi, CreateConnectedAccountOptions as bn, McpDeleteResponseSchema as br, ToolRouterUpdateSessionConfig as bt, CustomToolExecuteFn as c, ToolRetrievalOptions as ca, Oauth1InitiatedConnectionData as ci, ConnectedAccountRetrieveResponseSchema as cn, MCPServerCreateResponseSchema as cr, ToolRouterSessionWorkbenchConfig as ct, CustomToolWireDefinition as d, ToolkitLatestVersion as da, Oauth1InitiatingConnectionDataSchema as di, ConnectedAccountStatusSchema as dn, MCPServerSchema as dr, ToolRouterToolkitsDisabledConfigSchema as dt, ToolExecuteResponseSchema as ea, Oauth1ConnectionData as ei, ConnectedAccountListParams as en, MCPGenerateURLParamsSchema as er, ToolRouterSessionPreloadConfig as et, CustomToolkit as f, ToolkitLatestVersionSchema as fa, Oauth2ActiveConnectionData as fi, ConnectedAccountStatuses as fn, MCPServerUpdateParams as fr, ToolRouterToolkitsEnabledConfigSchema as ft, CustomToolsMap as g, ToolkitVersionParamSchema as ga, Oauth2ExpiredConnectionData as gi, CreateConnectedAccountLinkOptions as gn, MCPToolkitConfig as gr, ToolRouterToolkitsParamSchema as gt, CustomToolkitWireDefinition as h, ToolkitVersionParam as ha, Oauth2ConnectionDataSchema as hi, ConnectedAccountTypes as hn, MCPSingleAppServerSchema as hr, ToolRouterToolkitsOptionsSchema as ht, CreateCustomToolkitBaseSchema as i, ToolListResponse as ia, Oauth1FailedConnectionData as ii, ConnectedAccountListResponseSchema as in, MCPMultiAppServer as ir, ToolRouterSessionSearchResponse as it, SessionProxyExecuteParamsSchema as j, ExecuteToolModifiers as ji, BaseAgenticProvider as jn, McpUrlResponse as jr, RemoteFileData as jt, SessionPreset as k, AgenticToolOptions as ki, UpdateConnectedAccountParams as kn, McpUpdateResponse as kr, FileListResponse as kt, CustomToolResponse as l, ToolSchema as la, Oauth1InitiatedConnectionDataSchema as li, ConnectedAccountStatus as ln, MCPServerListResponse as lr, ToolRouterTagsEnableDisableSchema as lt, CustomToolkitResponse as m, ToolkitVersion as ma, Oauth2ConnectionData as mi, ConnectedAccountTypeSchema as mn, MCPSingleAppServer as mr, ToolRouterToolkitsOptions as mt, CreateCustomToolBaseSchema as n, ToolListParams as na, Oauth1ExpiredConnectionData as ni, ConnectedAccountListResponse as nn, MCPGetServerParamsSchema as nr, ToolRouterSessionProxyExecuteResponse as nt, CustomTool as o, ToolProxyParams as oa, Oauth1InactiveConnectionData as oi, ConnectedAccountRefreshOptionsSchema as on, MCPServer as or, ToolRouterSessionUpdateFn as ot, CustomToolkitDefinition as p, ToolkitSchema as pa, Oauth2ActiveConnectionDataSchema as pi, ConnectedAccountType as pn, MCPServerUpdateParamsSchema as pr, ToolRouterToolkitsFn as pt, ToolRouterSessionDeleteResponse as q, SchemaModifierOptions as qi, GenerateURLResponse$1 as qn, CustomConnectionDataSchema as qr, ConnectedAccountAclConfigSchema as qt, CreateCustomToolParams as r, ToolListParamsSchema as ra, Oauth1ExpiredConnectionDataSchema as ri, ConnectedAccountListResponseItem as rn, MCPInstanceParams as rr, ToolRouterSessionSearchFn as rt, CustomToolDefinition as s, ToolProxyParamsSchema as sa, Oauth1InactiveConnectionDataSchema as si, ConnectedAccountRetrieveResponse as sn, MCPServerCreateResponse as sr, ToolRouterSessionWarning as st, AnyZodSchema as t, ToolList as ta, Oauth1ConnectionDataSchema as ti, ConnectedAccountListParamsSchema as tn, MCPGetServerParams as tr, ToolRouterSessionProxyExecuteFn as tt, CustomToolSlugSchema as u, Toolkit as ua, Oauth1InitiatingConnectionData as ui, ConnectedAccountStatusEnum as un, MCPServerListResponseSchema as ur, ToolRouterTagsParamSchema as ut, InferZodSchema as v, ToolkitVersions as va, Oauth2FailedConnectionData as vi, CreateConnectedAccountLinkResponse as vn, MCPToolkitConfigsArraySchema as vr, ToolRouterToolsParam as vt, MCPServerTypeSchema as w, Oauth2InitiatingConnectionData as wi, CreateConnectedAccountResponse as wn, McpRetrieveResponseSchema as wr, ToolkitConnectionsDetails as wt, RegisteredCustomToolkit as x, Oauth2InactiveConnectionDataSchema as xi, CreateConnectedAccountOptionsSchema as xn, McpListResponse as xr, ToolRouterUpdateSessionConfigSchema as xt, InlineCustomToolsWirePayload as y, ToolkitVersionsSchema as ya, Oauth2FailedConnectionDataSchema as yi, CreateConnectedAccountLinkResponseSchema as yn, McpDeleteResponse as yr, ToolRouterToolsParamSchema as yt, ToolRouterCreateSessionConfig as z, afterExecuteModifier as zi, ComposioMcpRetrieveResponseSchema as zn, ToolCallSession as zr, ToolRouterSessionFilesMountUploadOptions as zt };
32759
+ export { ToolRouterSessionEnsureConnectedOptions as $, BeforeFileUploadSource as $i, UpdateConnectedAccountParamsSchema as $n, McpUpdateResponseSchema as $r, ToolRouterSessionFilesMountListOptionsSchema as $t, SessionProxyExecuteParams as A, ToolProxyParamsSchema as Aa, Oauth1InactiveConnectionDataSchema as Ai, ConnectedAccountRevokedToken as An, MCPServerCreateResponse as Ar, ToolRouterToolsParamSchema as At, ToolRouterCreateSessionConfigSchema as B, ToolkitVersionSchema as Ba, Oauth2ExpiredConnectionDataSchema as Bi, CreateConnectedAccountLinkOptionsSchema as Bn, MCPToolkitConfigSchema as Br, ToolkitConnectionsDetailsSchema as Bt, MCPServerType as C, ToolExecuteResponseSchema as Ca, Oauth1ConnectionData as Ci, ConnectedAccountListResponseSchema as Cn, MCPGenerateURLParamsSchema as Cr, ToolRouterToolkitsEnabledConfigSchema as Ct, Session as D, ToolListResponse as Da, Oauth1FailedConnectionData as Di, ConnectedAccountRetrieveResponseSchema as Dn, MCPMultiAppServer as Dr, ToolRouterToolkitsParamSchema as Dt, SandboxSizeSchema as E, ToolListParamsSchema as Ea, Oauth1ExpiredConnectionDataSchema as Ei, ConnectedAccountRetrieveResponse as En, MCPInstanceParams as Er, ToolRouterToolkitsOptionsSchema as Et, ToolRouterConfigTags as F, ToolkitLatestVersionSchema as Fa, Oauth2ActiveConnectionData as Fi, ConnectedAccountStatuses as Fn, MCPServerUpdateParams as Fr, ToolRouterUpdateSessionConfig as Ft, ToolRouterSandboxConfigSchema as G, Oauth2InitiatedConnectionData as Gi, CreateConnectedAccountParams as Gn, McpListResponseSchema as Gr, FileListResponseSchema as Gt, ToolRouterMCPServerConfigSchema as H, ToolkitVersionsSchema as Ha, Oauth2FailedConnectionDataSchema as Hi, CreateConnectedAccountLinkResponseSchema as Hn, McpDeleteResponse as Hr, FileDeleteResponse as Ht, ToolRouterConfigTagsSchema as I, ToolkitSchema as Ia, Oauth2ActiveConnectionDataSchema as Ii, ConnectedAccountType as In, MCPServerUpdateParamsSchema as Ir, ToolRouterUpdateSessionConfigSchema as It, ToolRouterSessionConfigHistoryItem as J, Oauth2InitiatingConnectionDataSchema as Ji, CreateConnectedAccountResponseSchema as Jn, McpServerCreateResponse as Jr, ToolRouterSessionFilesMountDeleteOptions as Jt, ToolRouterSessionConfig as K, Oauth2InitiatedConnectionDataSchema as Ki, CreateConnectedAccountParamsSchema as Kn, McpRetrieveResponse as Kr, RemoteFileData as Kt, ToolRouterConfigTools as L, ToolkitVersion as La, Oauth2ConnectionData as Li, ConnectedAccountTypeSchema as Ln, MCPSingleAppServer as Lr, ToolkitConnectionState as Lt, SessionWithoutMcp as M, ToolSchema as Ma, Oauth1InitiatedConnectionDataSchema as Mi, ConnectedAccountStatus as Mn, MCPServerListResponse as Mr, ToolRouterUpdateExperimentalSchema as Mt, ToolRouterAuthorizeFn as N, Toolkit as Na, Oauth1InitiatingConnectionData as Ni, ConnectedAccountStatusEnum as Nn, MCPServerListResponseSchema as Nr, ToolRouterUpdateManageConnectionsConfig as Nt, SessionExperimental as O, ToolListResponseSchema as Oa, Oauth1FailedConnectionDataSchema as Oi, ConnectedAccountRevokeResponse as On, MCPMultiAppServerSchema as Or, ToolRouterToolsFn as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolkitLatestVersion as Pa, Oauth1InitiatingConnectionDataSchema as Pi, ConnectedAccountStatusSchema as Pn, MCPServerSchema as Pr, ToolRouterUpdateManageConnectionsSchema as Pt, ToolRouterSessionEnsureConnectedFn as Q, AgenticToolOptions as Qi, UpdateConnectedAccountParams as Qn, McpUpdateResponse as Qr, ToolRouterSessionFilesMountListOptions as Qt, ToolRouterConfigToolsSchema as R, ToolkitVersionParam as Ra, Oauth2ConnectionDataSchema as Ri, ConnectedAccountTypes as Rn, MCPSingleAppServerSchema as Rr, ToolkitConnectionStateSchema as Rt, SessionContext as S, ToolExecuteResponse as Sa, Oauth1ActiveConnectionDataSchema as Si, ConnectedAccountListResponseItem as Sn, MCPGenerateURLParams as Sr, ToolRouterToolkitsDisabledConfigSchema as St, SandboxSize as T, ToolListParams as Ta, Oauth1ExpiredConnectionData as Ti, ConnectedAccountRefreshOptionsSchema as Tn, MCPGetServerParamsSchema as Tr, ToolRouterToolkitsOptions as Tt, ToolRouterManageConnectionsConfigSchema as U, Oauth2InactiveConnectionData as Ui, CreateConnectedAccountOptions as Un, McpDeleteResponseSchema as Ur, FileDeleteResponseSchema as Ut, ToolRouterMCPServerConfig as V, ToolkitVersions as Va, Oauth2FailedConnectionData as Vi, CreateConnectedAccountLinkResponse as Vn, MCPToolkitConfigsArraySchema as Vr, RemoteFile as Vt, ToolRouterSandboxConfig as W, Oauth2InactiveConnectionDataSchema as Wi, CreateConnectedAccountOptionsSchema as Wn, McpListResponse as Wr, FileListResponse as Wt, ToolRouterSessionDeleteResponse as X, Oauth2RevokedConnectionDataSchema as Xi, UpdateConnectedAccountAclParams as Xn, McpServerUrlInfo as Xr, ToolRouterSessionFilesMountDownloadOptions as Xt, ToolRouterSessionDeleteFn as Y, Oauth2RevokedConnectionData as Yi, DefaultCreateConnectedAccountParamsSchema as Yn, McpServerGetResponse as Yr, ToolRouterSessionFilesMountDeleteOptionsSchema as Yt, ToolRouterSessionDeleteResponseSchema as Z, RedirectableAuthSchemeSchema as Zi, UpdateConnectedAccountAclParamsSchema as Zn, McpToolkitConnectionStatus as Zr, ToolRouterSessionFilesMountDownloadOptionsSchema as Zt, CustomToolsMapEntry as _, Tool as _a, CustomOauth1ConnectionData as _i, ConnectedAccountExperimentalResponseSchema as _n, GenerateURLResponseSchema as _r, ToolRouterSessionUpdateFn as _t, CreateCustomToolkitParams as a, ToolOptions as aa, GlobalExecuteToolFn as ai, ConnectedAccountAclConfig as an, ComposioGenerateURLResponseSchema as ar, ToolRouterSessionExecuteResponseSchema as at, RegisteredCustomTool as b, ToolExecuteParams as ba, CustomOauth2ConnectionDataSchema as bi, ConnectedAccountListParamsSchema as bn, MCPAuthOptionsSchema as br, ToolRouterTagsEnableDisableSchema as bt, CustomToolExecuteFn as c, afterExecuteModifier as ca, ToolCallSession as ci, ConnectedAccountAclConfigSchema as cn, ComposioMcpRetrieveResponseSchema as cr, ToolRouterSessionListConfigHistoryOptionsSchema as ct, CustomToolWireDefinition as d, beforeFileUploadModifier as da, ConnectionData as di, ConnectedAccountCompleteAuthParams as dn, CustomCreateResponse$1 as dr, ToolRouterSessionPreloadConfig as dt, ExecuteToolModifiers as ea, McpUrlResponse as ei, ToolRouterSessionFilesMountUploadOptions as en, BaseAgenticProvider as er, ToolRouterSessionEnsureConnectedOptionsSchema as et, CustomToolkit as f, CustomAuthParams as fa, ConnectionDataSchema as fi, ConnectedAccountCompleteAuthParamsSchema as fn, CustomCreateResponseSchema as fr, ToolRouterSessionProxyExecuteFn as ft, CustomToolsMap as g, SchemaModifierOptions as ga, CustomConnectionDataSchema as gi, ConnectedAccountExperimentalResponse as gn, GenerateURLResponse$1 as gr, ToolRouterSessionSearchResponseSchema as gt, CustomToolkitWireDefinition as h, JSONSchemaPropertySchema as ha, CustomConnectionData as hi, ConnectedAccountExperimental as hn, GenerateURLParamsSchema as hr, ToolRouterSessionSearchResponse as ht, CreateCustomToolkitBaseSchema as i, SessionMetaToolOptions as ia, ExecuteToolFnOptions as ii, ConnectionRequestState as in, ComposioGenerateURLParamsSchema as ir, ToolRouterSessionExecuteResponse as it, SessionProxyExecuteParamsSchema as j, ToolRetrievalOptions as ja, Oauth1InitiatedConnectionData as ji, ConnectedAccountRevokedTokenSchema as jn, MCPServerCreateResponseSchema as jr, ToolRouterUpdateExperimentalConfig as jt, SessionPreset as k, ToolProxyParams as ka, Oauth1InactiveConnectionData as ki, ConnectedAccountRevokeResponseSchema as kn, MCPServer as kr, ToolRouterToolsParam as kt, CustomToolResponse as l, beforeExecuteMetaModifier as la, BaseConnectionFields as li, ConnectedAccountAuthConfig as ln, ComposioMcpUpdateResponseSchema as lr, ToolRouterSessionListConfigHistoryResponse as lt, CustomToolkitResponse as m, JSONSchemaProperty as ma, ConnectionStatuses as mi, ConnectedAccountCompleteAuthResponseSchema as mn, GenerateURLParams as mr, ToolRouterSessionSearchFn as mt, CreateCustomToolBaseSchema as n, ProviderOptions as na, McpUserConnectionStatus as ni, ComposioRequestOptions as nn, BaseNonAgenticProvider as nr, ToolRouterSessionExecuteFn as nt, CustomTool as o, TransformToolSchemaModifier as oa, Provider as oi, ConnectedAccountAclConfigResponse as on, ComposioMcpDeleteResponseSchema as or, ToolRouterSessionListConfigHistoryFn as ot, CustomToolkitDefinition as p, CustomAuthParamsSchema as pa, ConnectionStatusEnum as pi, ConnectedAccountCompleteAuthResponse as pn, CustomCreateResponseValidated as pr, ToolRouterSessionProxyExecuteResponse as pt, ToolRouterSessionConfigHistoryConfig as q, Oauth2InitiatingConnectionData as qi, CreateConnectedAccountResponse as qn, McpRetrieveResponseSchema as qr, RemoteFileDataSchema as qt, CreateCustomToolParams as r, SessionExecuteMetaModifiers as ra, ExecuteToolFn as ri, ConnectionRequest as rn, ComposioCustomCreateResponseSchema as rr, ToolRouterSessionExecuteOptions as rt, CustomToolDefinition as s, afterExecuteMetaModifier as sa, ToolCallExecutionTarget as si, ConnectedAccountAclConfigResponseSchema as sn, ComposioMcpListResponseSchema as sr, ToolRouterSessionListConfigHistoryOptions as st, AnyZodSchema as t, MetaToolArguments as ta, McpUrlResponseCamelCase as ti, ToolRouterSessionFilesMountUploadOptionsSchema as tn, BaseComposioProvider as tr, ToolRouterSessionEnsureConnectedResult as tt, CustomToolSlugSchema as u, beforeExecuteModifier as ua, BillcomAuthConnectionDataSchema as ui, ConnectedAccountAuthConfigSchema as un, ConnectionStatus as ur, ToolRouterSessionMetadata as ut, InferZodSchema as v, ToolExecuteMetaParams as va, CustomOauth1ConnectionDataSchema as vi, ConnectedAccountExperimentalSchema as vn, GenerateURLResponseValidated as vr, ToolRouterSessionWarning as vt, MCPServerTypeSchema as w, ToolList as wa, Oauth1ConnectionDataSchema as wi, ConnectedAccountRefreshOptions as wn, MCPGetServerParams as wr, ToolRouterToolkitsFn as wt, RegisteredCustomToolkit as x, ToolExecuteParamsSchema as xa, Oauth1ActiveConnectionData as xi, ConnectedAccountListResponse as xn, MCPCreateMethodResponse as xr, ToolRouterTagsParamSchema as xt, InlineCustomToolsWirePayload as y, ToolExecuteMetaParamsSchema as ya, CustomOauth2ConnectionData as yi, ConnectedAccountListParams as yn, MCPAuthOptions as yr, ToolRouterSessionWorkbenchConfig as yt, ToolRouterCreateSessionConfig as z, ToolkitVersionParamSchema as za, Oauth2ExpiredConnectionData as zi, CreateConnectedAccountLinkOptions as zn, MCPToolkitConfig as zr, ToolkitConnectionsDetails as zt };