@composio/core 0.31.0 → 0.33.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 (92) hide show
  1. package/dist/{CustomTool-9Vlb4XaS.mjs → CustomTool-B4dQn2M5.mjs} +1 -1
  2. package/dist/{CustomTool-Ds5aLDth.d.mts → CustomTool-C2kvAvzk.d.mts} +1 -1
  3. package/dist/{FileModifierErrors-WrqokuIF.mjs → FileModifierErrors-D-AKc3ds.mjs} +1 -1
  4. package/dist/{SsrfErrors-BSVMW915.mjs → SsrfErrors-BekZPeWY.mjs} +59 -12
  5. package/dist/{Telemetry-a7SOQXcg.mjs → Telemetry-CcCuFVUb.mjs} +2 -2
  6. package/dist/composio-BqE615oV.d.mts +20365 -0
  7. package/dist/{customTool.types-DHxXBU6E.d.mts → customTool.types-DnyEZmlx.d.mts} +510 -33
  8. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +20 -12
  9. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +28 -10
  10. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +96 -40
  11. package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +8 -6
  12. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +4 -3
  13. package/dist/docs/reference/sdk-reference/typescript/index.mdx +4 -2
  14. package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +6 -3
  15. package/dist/docs/reference/sdk-reference/typescript/logs.mdx +5 -3
  16. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +53 -42
  17. package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -0
  18. package/dist/docs/reference/sdk-reference/typescript/remote-file.mdx +5 -14
  19. package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +5 -3
  20. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +7 -5
  21. package/dist/docs/reference/sdk-reference/typescript/session-webhooks.mdx +64 -0
  22. package/dist/docs/reference/sdk-reference/typescript/session.mdx +16 -16
  23. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +36 -8
  24. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +14 -11
  25. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +16 -18
  26. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +42 -30
  27. package/dist/docs/reference/sdk-reference/typescript/usage.mdx +6 -4
  28. package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +9 -7
  29. package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +13 -9
  30. package/dist/docs/reference/sdk-reference/typescript/webhooks.mdx +3 -1
  31. package/dist/{errors-xC13uvaA.mjs → errors-CtIKA9BH.mjs} +2 -2
  32. package/dist/experimental/index.d.mts +2 -2
  33. package/dist/experimental/index.mjs +1 -1
  34. package/dist/{fileUtils.node-CAwIbWYH.mjs → fileUtils.node-DPMtE0ER.mjs} +7 -71
  35. package/dist/index.d.mts +7 -245
  36. package/dist/index.mjs +573 -251
  37. package/dist/jsonSchema-CDHLYm7d.d.mts +237 -0
  38. package/dist/{jsonSchema-Cc4EtHRw.mjs → jsonSchema-CfZwBS13.mjs} +7 -3
  39. package/dist/models/Files.node.mjs +3 -3
  40. package/dist/{sensitiveFileUploadPaths-CSyJ3Ku8.mjs → sensitiveFileUploadPaths-6NcnFSyX.mjs} +82 -85
  41. package/dist/{ssrfGuard.node-CdIkwqVu.mjs → ssrfGuard.node-B749ae5Q.mjs} +1 -1
  42. package/dist/{types-DcdZy5Nc.d.mts → types-Cwr_Makk.d.mts} +2 -2
  43. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  44. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  45. package/dist/utils/json-schema.d.mts +2 -1
  46. package/dist/utils/json-schema.mjs +2 -1
  47. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  48. package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -5
  49. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  50. package/dist/utils/ssrfGuard.node.mjs +1 -1
  51. package/dist/utils/ssrfGuard.workerd.mjs +1 -1
  52. package/package.json +6 -6
  53. package/src/composio.ts +26 -7
  54. package/src/errors/ComposioError.ts +3 -2
  55. package/src/index.ts +19 -0
  56. package/src/lib/toolRouterParams.ts +38 -14
  57. package/src/models/AuthConfigs.ts +10 -3
  58. package/src/models/ConnectedAccounts.ts +101 -28
  59. package/src/models/CustomTool.ts +0 -10
  60. package/src/models/Keyring.ts +2 -1
  61. package/src/models/MCP.ts +43 -35
  62. package/src/models/SessionWebhooks.ts +136 -0
  63. package/src/models/ToolRouter.ts +39 -4
  64. package/src/models/ToolRouterSession.ts +2 -2
  65. package/src/models/ToolRouterSessionFileMount.ts +3 -1
  66. package/src/models/Toolkits.ts +1 -0
  67. package/src/models/Tools.ts +4 -8
  68. package/src/models/Triggers.ts +48 -213
  69. package/src/models/Webhooks.ts +2 -0
  70. package/src/provider/ComposioProvider.ts +0 -1
  71. package/src/telemetry/BatchProcessor.ts +1 -1
  72. package/src/telemetry/Telemetry.ts +1 -1
  73. package/src/types/connectedAccountAuthStates.types.ts +0 -1
  74. package/src/types/connectedAccounts.types.ts +59 -1
  75. package/src/types/provider.types.ts +0 -1
  76. package/src/types/sessionWebhooks.types.ts +292 -0
  77. package/src/types/toolRouter.types.ts +35 -5
  78. package/src/types/triggers.types.ts +4 -0
  79. package/src/utils/crypto.ts +6 -5
  80. package/src/utils/env.ts +2 -5
  81. package/src/utils/fileUtils.node.ts +5 -86
  82. package/src/utils/json-schema.ts +6 -0
  83. package/src/utils/jsonSchema.ts +17 -4
  84. package/src/utils/logger.ts +19 -9
  85. package/src/utils/mime.ts +25 -385
  86. package/src/utils/mimeTables.generated.ts +356 -0
  87. package/src/utils/pusher.ts +5 -2
  88. package/src/utils/readResponseBody.ts +30 -17
  89. package/src/utils/transformers/authConfigs.ts +0 -1
  90. package/src/utils/userCallback.ts +3 -1
  91. package/src/utils/webhookVerification.ts +211 -0
  92. package/dist/composio-Ba89XGHL.d.mts +0 -9736
@@ -28674,12 +28674,12 @@ declare const MCPGenerateURLParamsSchema: z$1.ZodObject<{
28674
28674
  connectedAccountIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
28675
28675
  isChatAuth: z$1.ZodOptional<z$1.ZodBoolean>;
28676
28676
  }, "strip", z$1.ZodTypeAny, {
28677
- userIds?: string[] | undefined;
28678
28677
  connectedAccountIds?: string[] | undefined;
28678
+ userIds?: string[] | undefined;
28679
28679
  isChatAuth?: boolean | undefined;
28680
28680
  }, {
28681
- userIds?: string[] | undefined;
28682
28681
  connectedAccountIds?: string[] | undefined;
28682
+ userIds?: string[] | undefined;
28683
28683
  isChatAuth?: boolean | undefined;
28684
28684
  }>;
28685
28685
  type MCPGenerateURLParams = z$1.infer<typeof MCPGenerateURLParamsSchema>;
@@ -28706,14 +28706,14 @@ declare const GenerateURLParamsSchema: z$1.ZodObject<{
28706
28706
  composioManagedAuth: z$1.ZodOptional<z$1.ZodBoolean>;
28707
28707
  }, "strip", z$1.ZodTypeAny, {
28708
28708
  mcpServerId: string;
28709
- userIds?: string[] | undefined;
28710
28709
  composioManagedAuth?: boolean | undefined;
28711
28710
  connectedAccountIds?: string[] | undefined;
28711
+ userIds?: string[] | undefined;
28712
28712
  }, {
28713
28713
  mcpServerId: string;
28714
- userIds?: string[] | undefined;
28715
28714
  composioManagedAuth?: boolean | undefined;
28716
28715
  connectedAccountIds?: string[] | undefined;
28716
+ userIds?: string[] | undefined;
28717
28717
  }>;
28718
28718
  type GenerateURLParams = z$1.infer<typeof GenerateURLParamsSchema>;
28719
28719
  declare const GenerateURLResponseSchema: z$1.ZodObject<{
@@ -29989,6 +29989,260 @@ declare const UpdateConnectedAccountParamsSchema: z$1.ZodObject<{
29989
29989
  }, {
29990
29990
  enabled: boolean;
29991
29991
  }>;
29992
+ /**
29993
+ * Params for `composio.connectedAccounts.update()`: a new `alias` (an empty
29994
+ * string clears it), new credential fields in `connection`, or both. At
29995
+ * least one of the two is required.
29996
+ *
29997
+ * Use `enable()` or `disable()` to change whether the account is active.
29998
+ */
29999
+ type PatchConnectedAccountParams = z$1.infer<typeof PatchConnectedAccountParamsSchema> & {
30000
+ enabled?: never;
30001
+ };
30002
+ declare const PatchConnectedAccountParamsSchema: z$1.ZodEffects<z$1.ZodObject<{
30003
+ alias: z$1.ZodOptional<z$1.ZodString>;
30004
+ connection: z$1.ZodOptional<z$1.ZodObject<{
30005
+ state: z$1.ZodObject<{
30006
+ authScheme: z$1.ZodEnum<["BEARER_TOKEN", "API_KEY", "BASIC", "BASIC_WITH_JWT", "GOOGLE_SERVICE_ACCOUNT", "SERVICE_ACCOUNT"]>;
30007
+ val: z$1.ZodObject<{
30008
+ token: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30009
+ generic_api_key: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30010
+ api_key: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30011
+ bearer_token: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30012
+ basic_encoded: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30013
+ generic_token: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30014
+ api_key_prefix: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30015
+ generic_secret: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30016
+ generic_id: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30017
+ user_agent: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30018
+ username: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30019
+ password: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30020
+ credentials_json: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30021
+ application_id: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30022
+ installation_id: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30023
+ private_key: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
30024
+ }, "strict", z$1.ZodTypeAny, {
30025
+ api_key?: string | null | undefined;
30026
+ generic_api_key?: string | null | undefined;
30027
+ bearer_token?: string | null | undefined;
30028
+ basic_encoded?: string | null | undefined;
30029
+ username?: string | null | undefined;
30030
+ password?: string | null | undefined;
30031
+ token?: string | null | undefined;
30032
+ application_id?: string | null | undefined;
30033
+ installation_id?: string | null | undefined;
30034
+ private_key?: string | null | undefined;
30035
+ credentials_json?: string | null | undefined;
30036
+ generic_token?: string | null | undefined;
30037
+ api_key_prefix?: string | null | undefined;
30038
+ generic_secret?: string | null | undefined;
30039
+ generic_id?: string | null | undefined;
30040
+ user_agent?: string | null | undefined;
30041
+ }, {
30042
+ api_key?: string | null | undefined;
30043
+ generic_api_key?: string | null | undefined;
30044
+ bearer_token?: string | null | undefined;
30045
+ basic_encoded?: string | null | undefined;
30046
+ username?: string | null | undefined;
30047
+ password?: string | null | undefined;
30048
+ token?: string | null | undefined;
30049
+ application_id?: string | null | undefined;
30050
+ installation_id?: string | null | undefined;
30051
+ private_key?: string | null | undefined;
30052
+ credentials_json?: string | null | undefined;
30053
+ generic_token?: string | null | undefined;
30054
+ api_key_prefix?: string | null | undefined;
30055
+ generic_secret?: string | null | undefined;
30056
+ generic_id?: string | null | undefined;
30057
+ user_agent?: string | null | undefined;
30058
+ }>;
30059
+ }, "strict", z$1.ZodTypeAny, {
30060
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30061
+ val: {
30062
+ api_key?: string | null | undefined;
30063
+ generic_api_key?: string | null | undefined;
30064
+ bearer_token?: string | null | undefined;
30065
+ basic_encoded?: string | null | undefined;
30066
+ username?: string | null | undefined;
30067
+ password?: string | null | undefined;
30068
+ token?: string | null | undefined;
30069
+ application_id?: string | null | undefined;
30070
+ installation_id?: string | null | undefined;
30071
+ private_key?: string | null | undefined;
30072
+ credentials_json?: string | null | undefined;
30073
+ generic_token?: string | null | undefined;
30074
+ api_key_prefix?: string | null | undefined;
30075
+ generic_secret?: string | null | undefined;
30076
+ generic_id?: string | null | undefined;
30077
+ user_agent?: string | null | undefined;
30078
+ };
30079
+ }, {
30080
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30081
+ val: {
30082
+ api_key?: string | null | undefined;
30083
+ generic_api_key?: string | null | undefined;
30084
+ bearer_token?: string | null | undefined;
30085
+ basic_encoded?: string | null | undefined;
30086
+ username?: string | null | undefined;
30087
+ password?: string | null | undefined;
30088
+ token?: string | null | undefined;
30089
+ application_id?: string | null | undefined;
30090
+ installation_id?: string | null | undefined;
30091
+ private_key?: string | null | undefined;
30092
+ credentials_json?: string | null | undefined;
30093
+ generic_token?: string | null | undefined;
30094
+ api_key_prefix?: string | null | undefined;
30095
+ generic_secret?: string | null | undefined;
30096
+ generic_id?: string | null | undefined;
30097
+ user_agent?: string | null | undefined;
30098
+ };
30099
+ }>;
30100
+ }, "strict", z$1.ZodTypeAny, {
30101
+ state: {
30102
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30103
+ val: {
30104
+ api_key?: string | null | undefined;
30105
+ generic_api_key?: string | null | undefined;
30106
+ bearer_token?: string | null | undefined;
30107
+ basic_encoded?: string | null | undefined;
30108
+ username?: string | null | undefined;
30109
+ password?: string | null | undefined;
30110
+ token?: string | null | undefined;
30111
+ application_id?: string | null | undefined;
30112
+ installation_id?: string | null | undefined;
30113
+ private_key?: string | null | undefined;
30114
+ credentials_json?: string | null | undefined;
30115
+ generic_token?: string | null | undefined;
30116
+ api_key_prefix?: string | null | undefined;
30117
+ generic_secret?: string | null | undefined;
30118
+ generic_id?: string | null | undefined;
30119
+ user_agent?: string | null | undefined;
30120
+ };
30121
+ };
30122
+ }, {
30123
+ state: {
30124
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30125
+ val: {
30126
+ api_key?: string | null | undefined;
30127
+ generic_api_key?: string | null | undefined;
30128
+ bearer_token?: string | null | undefined;
30129
+ basic_encoded?: string | null | undefined;
30130
+ username?: string | null | undefined;
30131
+ password?: string | null | undefined;
30132
+ token?: string | null | undefined;
30133
+ application_id?: string | null | undefined;
30134
+ installation_id?: string | null | undefined;
30135
+ private_key?: string | null | undefined;
30136
+ credentials_json?: string | null | undefined;
30137
+ generic_token?: string | null | undefined;
30138
+ api_key_prefix?: string | null | undefined;
30139
+ generic_secret?: string | null | undefined;
30140
+ generic_id?: string | null | undefined;
30141
+ user_agent?: string | null | undefined;
30142
+ };
30143
+ };
30144
+ }>>;
30145
+ }, "strict", z$1.ZodTypeAny, {
30146
+ connection?: {
30147
+ state: {
30148
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30149
+ val: {
30150
+ api_key?: string | null | undefined;
30151
+ generic_api_key?: string | null | undefined;
30152
+ bearer_token?: string | null | undefined;
30153
+ basic_encoded?: string | null | undefined;
30154
+ username?: string | null | undefined;
30155
+ password?: string | null | undefined;
30156
+ token?: string | null | undefined;
30157
+ application_id?: string | null | undefined;
30158
+ installation_id?: string | null | undefined;
30159
+ private_key?: string | null | undefined;
30160
+ credentials_json?: string | null | undefined;
30161
+ generic_token?: string | null | undefined;
30162
+ api_key_prefix?: string | null | undefined;
30163
+ generic_secret?: string | null | undefined;
30164
+ generic_id?: string | null | undefined;
30165
+ user_agent?: string | null | undefined;
30166
+ };
30167
+ };
30168
+ } | undefined;
30169
+ alias?: string | undefined;
30170
+ }, {
30171
+ connection?: {
30172
+ state: {
30173
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30174
+ val: {
30175
+ api_key?: string | null | undefined;
30176
+ generic_api_key?: string | null | undefined;
30177
+ bearer_token?: string | null | undefined;
30178
+ basic_encoded?: string | null | undefined;
30179
+ username?: string | null | undefined;
30180
+ password?: string | null | undefined;
30181
+ token?: string | null | undefined;
30182
+ application_id?: string | null | undefined;
30183
+ installation_id?: string | null | undefined;
30184
+ private_key?: string | null | undefined;
30185
+ credentials_json?: string | null | undefined;
30186
+ generic_token?: string | null | undefined;
30187
+ api_key_prefix?: string | null | undefined;
30188
+ generic_secret?: string | null | undefined;
30189
+ generic_id?: string | null | undefined;
30190
+ user_agent?: string | null | undefined;
30191
+ };
30192
+ };
30193
+ } | undefined;
30194
+ alias?: string | undefined;
30195
+ }>, {
30196
+ connection?: {
30197
+ state: {
30198
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30199
+ val: {
30200
+ api_key?: string | null | undefined;
30201
+ generic_api_key?: string | null | undefined;
30202
+ bearer_token?: string | null | undefined;
30203
+ basic_encoded?: string | null | undefined;
30204
+ username?: string | null | undefined;
30205
+ password?: string | null | undefined;
30206
+ token?: string | null | undefined;
30207
+ application_id?: string | null | undefined;
30208
+ installation_id?: string | null | undefined;
30209
+ private_key?: string | null | undefined;
30210
+ credentials_json?: string | null | undefined;
30211
+ generic_token?: string | null | undefined;
30212
+ api_key_prefix?: string | null | undefined;
30213
+ generic_secret?: string | null | undefined;
30214
+ generic_id?: string | null | undefined;
30215
+ user_agent?: string | null | undefined;
30216
+ };
30217
+ };
30218
+ } | undefined;
30219
+ alias?: string | undefined;
30220
+ }, {
30221
+ connection?: {
30222
+ state: {
30223
+ authScheme: "API_KEY" | "BASIC" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "SERVICE_ACCOUNT";
30224
+ val: {
30225
+ api_key?: string | null | undefined;
30226
+ generic_api_key?: string | null | undefined;
30227
+ bearer_token?: string | null | undefined;
30228
+ basic_encoded?: string | null | undefined;
30229
+ username?: string | null | undefined;
30230
+ password?: string | null | undefined;
30231
+ token?: string | null | undefined;
30232
+ application_id?: string | null | undefined;
30233
+ installation_id?: string | null | undefined;
30234
+ private_key?: string | null | undefined;
30235
+ credentials_json?: string | null | undefined;
30236
+ generic_token?: string | null | undefined;
30237
+ api_key_prefix?: string | null | undefined;
30238
+ generic_secret?: string | null | undefined;
30239
+ generic_id?: string | null | undefined;
30240
+ user_agent?: string | null | undefined;
30241
+ };
30242
+ };
30243
+ } | undefined;
30244
+ alias?: string | undefined;
30245
+ }>;
29992
30246
  /**
29993
30247
  * Params for `composio.connectedAccounts.updateAcl()`. Mirrors the inner
29994
30248
  * shape of the wire's `acl_config_for_shared` block — the SDK adds the
@@ -30127,31 +30381,31 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
30127
30381
  sandbox_mount_prefix: z.ZodString;
30128
30382
  size: z.ZodNumber;
30129
30383
  }, "strip", z.ZodTypeAny, {
30384
+ size: number;
30130
30385
  last_modified: string;
30131
30386
  mount_relative_path: string;
30132
30387
  sandbox_mount_prefix: string;
30133
- size: number;
30134
30388
  }, {
30389
+ size: number;
30135
30390
  last_modified: string;
30136
30391
  mount_relative_path: string;
30137
30392
  sandbox_mount_prefix: string;
30138
- size: number;
30139
30393
  }>, "many">;
30140
30394
  next_cursor: z.ZodOptional<z.ZodString>;
30141
30395
  }, "strip", z.ZodTypeAny, {
30142
30396
  items: {
30397
+ size: number;
30143
30398
  last_modified: string;
30144
30399
  mount_relative_path: string;
30145
30400
  sandbox_mount_prefix: string;
30146
- size: number;
30147
30401
  }[];
30148
30402
  next_cursor?: string | undefined;
30149
30403
  }, {
30150
30404
  items: {
30405
+ size: number;
30151
30406
  last_modified: string;
30152
30407
  mount_relative_path: string;
30153
30408
  sandbox_mount_prefix: string;
30154
- size: number;
30155
30409
  }[];
30156
30410
  next_cursor?: string | undefined;
30157
30411
  }>, {
@@ -30164,10 +30418,10 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
30164
30418
  nextCursor: string | undefined;
30165
30419
  }, {
30166
30420
  items: {
30421
+ size: number;
30167
30422
  last_modified: string;
30168
30423
  mount_relative_path: string;
30169
30424
  sandbox_mount_prefix: string;
30170
- size: number;
30171
30425
  }[];
30172
30426
  next_cursor?: string | undefined;
30173
30427
  }>;
@@ -30210,14 +30464,14 @@ declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
30210
30464
  sandbox_mount_prefix: z.ZodString;
30211
30465
  download_url: z.ZodString;
30212
30466
  }, "strip", z.ZodTypeAny, {
30467
+ expires_at: string;
30213
30468
  mount_relative_path: string;
30214
30469
  sandbox_mount_prefix: string;
30215
- expires_at: string;
30216
30470
  download_url: string;
30217
30471
  }, {
30472
+ expires_at: string;
30218
30473
  mount_relative_path: string;
30219
30474
  sandbox_mount_prefix: string;
30220
- expires_at: string;
30221
30475
  download_url: string;
30222
30476
  }>, {
30223
30477
  expiresAt: string;
@@ -30225,9 +30479,9 @@ declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
30225
30479
  sandboxMountPrefix: string;
30226
30480
  downloadUrl: string;
30227
30481
  }, {
30482
+ expires_at: string;
30228
30483
  mount_relative_path: string;
30229
30484
  sandbox_mount_prefix: string;
30230
- expires_at: string;
30231
30485
  download_url: string;
30232
30486
  }>;
30233
30487
  /** Parsed shape from API response. Use with `new RemoteFile(data)`. */
@@ -30400,12 +30654,14 @@ declare class ToolRouterSessionFilesMount {
30400
30654
  * @example
30401
30655
  * ```typescript
30402
30656
  * // From native File (e.g. from input[type=file])
30403
- * await session.experimental.files.upload(fileInput.files[0]);
30657
+ * const file = new File(['hello world'], 'hello.txt', { type: 'text/plain' });
30658
+ * await session.experimental.files.upload(file);
30404
30659
  * ```
30405
30660
  *
30406
30661
  * @example
30407
30662
  * ```typescript
30408
30663
  * // From raw buffer
30664
+ * const buffer = new TextEncoder().encode(JSON.stringify({ hello: 'world' }));
30409
30665
  * await session.experimental.files.upload(buffer, { remotePath: 'data.json', mimetype: 'application/json' });
30410
30666
  * ```
30411
30667
  */
@@ -30819,13 +31075,33 @@ declare const ToolRouterHookPromptInjectionCheckHandlerSchema: z.ZodObject<{
30819
31075
  action: "block";
30820
31076
  }>;
30821
31077
  type ToolRouterHookPromptInjectionCheckHandler = z.infer<typeof ToolRouterHookPromptInjectionCheckHandlerSchema>;
31078
+ /**
31079
+ * Sends the call to the project's session webhook URL and waits for your
31080
+ * endpoint's answer: let it run, block it, or change it. Read the request in
31081
+ * your endpoint with `composio.sessions.webhooks.parse()`.
31082
+ */
31083
+ declare const ToolRouterHookWebhookHandlerSchema: z.ZodObject<{
31084
+ type: z.ZodLiteral<"webhook">;
31085
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31086
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31087
+ }, "strict", z.ZodTypeAny, {
31088
+ type: "webhook";
31089
+ fallbackAction: "block" | "continue";
31090
+ timeoutMs?: number | undefined;
31091
+ }, {
31092
+ type: "webhook";
31093
+ fallbackAction: "block" | "continue";
31094
+ timeoutMs?: number | undefined;
31095
+ }>;
31096
+ type ToolRouterHookWebhookHandler = z.infer<typeof ToolRouterHookWebhookHandlerSchema>;
30822
31097
  /**
30823
31098
  * A hook on a session's tool calls. A `before_execute` hook can block a call
30824
31099
  * before it runs; an `after_execute` hook can block its result before the
30825
- * agent sees it.
31100
+ * agent sees it. A hook with a `webhook` handler can also change the call or
31101
+ * its result.
30826
31102
  */
30827
31103
  declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30828
- handler: z.ZodObject<{
31104
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30829
31105
  type: z.ZodLiteral<"condition_check">;
30830
31106
  condition: z.ZodString;
30831
31107
  action: z.ZodLiteral<"block">;
@@ -30837,7 +31113,19 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30837
31113
  type: "condition_check";
30838
31114
  condition: string;
30839
31115
  action: "block";
30840
- }>;
31116
+ }>, z.ZodObject<{
31117
+ type: z.ZodLiteral<"webhook">;
31118
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31119
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31120
+ }, "strict", z.ZodTypeAny, {
31121
+ type: "webhook";
31122
+ fallbackAction: "block" | "continue";
31123
+ timeoutMs?: number | undefined;
31124
+ }, {
31125
+ type: "webhook";
31126
+ fallbackAction: "block" | "continue";
31127
+ timeoutMs?: number | undefined;
31128
+ }>]>;
30841
31129
  id: z.ZodString;
30842
31130
  name: z.ZodOptional<z.ZodString>;
30843
31131
  appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
@@ -30855,6 +31143,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30855
31143
  type: "condition_check";
30856
31144
  condition: string;
30857
31145
  action: "block";
31146
+ } | {
31147
+ type: "webhook";
31148
+ fallbackAction: "block" | "continue";
31149
+ timeoutMs?: number | undefined;
30858
31150
  };
30859
31151
  appliesTo: "all" | {
30860
31152
  toolkits: string[];
@@ -30867,6 +31159,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30867
31159
  type: "condition_check";
30868
31160
  condition: string;
30869
31161
  action: "block";
31162
+ } | {
31163
+ type: "webhook";
31164
+ fallbackAction: "block" | "continue";
31165
+ timeoutMs?: number | undefined;
30870
31166
  };
30871
31167
  appliesTo: "all" | {
30872
31168
  toolkits: string[];
@@ -30894,6 +31190,18 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30894
31190
  }, {
30895
31191
  type: "prompt_injection_check";
30896
31192
  action: "block";
31193
+ }>, z.ZodObject<{
31194
+ type: z.ZodLiteral<"webhook">;
31195
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31196
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31197
+ }, "strict", z.ZodTypeAny, {
31198
+ type: "webhook";
31199
+ fallbackAction: "block" | "continue";
31200
+ timeoutMs?: number | undefined;
31201
+ }, {
31202
+ type: "webhook";
31203
+ fallbackAction: "block" | "continue";
31204
+ timeoutMs?: number | undefined;
30897
31205
  }>]>;
30898
31206
  id: z.ZodString;
30899
31207
  name: z.ZodOptional<z.ZodString>;
@@ -30915,6 +31223,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30915
31223
  } | {
30916
31224
  type: "prompt_injection_check";
30917
31225
  action: "block";
31226
+ } | {
31227
+ type: "webhook";
31228
+ fallbackAction: "block" | "continue";
31229
+ timeoutMs?: number | undefined;
30918
31230
  };
30919
31231
  appliesTo: "all" | {
30920
31232
  toolkits: string[];
@@ -30930,6 +31242,10 @@ declare const ToolRouterHookSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject
30930
31242
  } | {
30931
31243
  type: "prompt_injection_check";
30932
31244
  action: "block";
31245
+ } | {
31246
+ type: "webhook";
31247
+ fallbackAction: "block" | "continue";
31248
+ timeoutMs?: number | undefined;
30933
31249
  };
30934
31250
  appliesTo: "all" | {
30935
31251
  toolkits: string[];
@@ -31206,7 +31522,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31206
31522
  enable: boolean;
31207
31523
  }>]>>>;
31208
31524
  hooks: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31209
- handler: z.ZodObject<{
31525
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
31210
31526
  type: z.ZodLiteral<"condition_check">;
31211
31527
  condition: z.ZodString;
31212
31528
  action: z.ZodLiteral<"block">;
@@ -31218,7 +31534,19 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31218
31534
  type: "condition_check";
31219
31535
  condition: string;
31220
31536
  action: "block";
31221
- }>;
31537
+ }>, z.ZodObject<{
31538
+ type: z.ZodLiteral<"webhook">;
31539
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31540
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31541
+ }, "strict", z.ZodTypeAny, {
31542
+ type: "webhook";
31543
+ fallbackAction: "block" | "continue";
31544
+ timeoutMs?: number | undefined;
31545
+ }, {
31546
+ type: "webhook";
31547
+ fallbackAction: "block" | "continue";
31548
+ timeoutMs?: number | undefined;
31549
+ }>]>;
31222
31550
  id: z.ZodString;
31223
31551
  name: z.ZodOptional<z.ZodString>;
31224
31552
  appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
@@ -31236,6 +31564,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31236
31564
  type: "condition_check";
31237
31565
  condition: string;
31238
31566
  action: "block";
31567
+ } | {
31568
+ type: "webhook";
31569
+ fallbackAction: "block" | "continue";
31570
+ timeoutMs?: number | undefined;
31239
31571
  };
31240
31572
  appliesTo: "all" | {
31241
31573
  toolkits: string[];
@@ -31248,6 +31580,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31248
31580
  type: "condition_check";
31249
31581
  condition: string;
31250
31582
  action: "block";
31583
+ } | {
31584
+ type: "webhook";
31585
+ fallbackAction: "block" | "continue";
31586
+ timeoutMs?: number | undefined;
31251
31587
  };
31252
31588
  appliesTo: "all" | {
31253
31589
  toolkits: string[];
@@ -31275,6 +31611,18 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31275
31611
  }, {
31276
31612
  type: "prompt_injection_check";
31277
31613
  action: "block";
31614
+ }>, z.ZodObject<{
31615
+ type: z.ZodLiteral<"webhook">;
31616
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
31617
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
31618
+ }, "strict", z.ZodTypeAny, {
31619
+ type: "webhook";
31620
+ fallbackAction: "block" | "continue";
31621
+ timeoutMs?: number | undefined;
31622
+ }, {
31623
+ type: "webhook";
31624
+ fallbackAction: "block" | "continue";
31625
+ timeoutMs?: number | undefined;
31278
31626
  }>]>;
31279
31627
  id: z.ZodString;
31280
31628
  name: z.ZodOptional<z.ZodString>;
@@ -31296,6 +31644,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31296
31644
  } | {
31297
31645
  type: "prompt_injection_check";
31298
31646
  action: "block";
31647
+ } | {
31648
+ type: "webhook";
31649
+ fallbackAction: "block" | "continue";
31650
+ timeoutMs?: number | undefined;
31299
31651
  };
31300
31652
  appliesTo: "all" | {
31301
31653
  toolkits: string[];
@@ -31311,6 +31663,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31311
31663
  } | {
31312
31664
  type: "prompt_injection_check";
31313
31665
  action: "block";
31666
+ } | {
31667
+ type: "webhook";
31668
+ fallbackAction: "block" | "continue";
31669
+ timeoutMs?: number | undefined;
31314
31670
  };
31315
31671
  appliesTo: "all" | {
31316
31672
  toolkits: string[];
@@ -31462,6 +31818,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31462
31818
  type: "condition_check";
31463
31819
  condition: string;
31464
31820
  action: "block";
31821
+ } | {
31822
+ type: "webhook";
31823
+ fallbackAction: "block" | "continue";
31824
+ timeoutMs?: number | undefined;
31465
31825
  };
31466
31826
  appliesTo: "all" | {
31467
31827
  toolkits: string[];
@@ -31477,6 +31837,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31477
31837
  } | {
31478
31838
  type: "prompt_injection_check";
31479
31839
  action: "block";
31840
+ } | {
31841
+ type: "webhook";
31842
+ fallbackAction: "block" | "continue";
31843
+ timeoutMs?: number | undefined;
31480
31844
  };
31481
31845
  appliesTo: "all" | {
31482
31846
  toolkits: string[];
@@ -31578,6 +31942,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31578
31942
  type: "condition_check";
31579
31943
  condition: string;
31580
31944
  action: "block";
31945
+ } | {
31946
+ type: "webhook";
31947
+ fallbackAction: "block" | "continue";
31948
+ timeoutMs?: number | undefined;
31581
31949
  };
31582
31950
  appliesTo: "all" | {
31583
31951
  toolkits: string[];
@@ -31593,6 +31961,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31593
31961
  } | {
31594
31962
  type: "prompt_injection_check";
31595
31963
  action: "block";
31964
+ } | {
31965
+ type: "webhook";
31966
+ fallbackAction: "block" | "continue";
31967
+ timeoutMs?: number | undefined;
31596
31968
  };
31597
31969
  appliesTo: "all" | {
31598
31970
  toolkits: string[];
@@ -31694,6 +32066,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31694
32066
  type: "condition_check";
31695
32067
  condition: string;
31696
32068
  action: "block";
32069
+ } | {
32070
+ type: "webhook";
32071
+ fallbackAction: "block" | "continue";
32072
+ timeoutMs?: number | undefined;
31697
32073
  };
31698
32074
  appliesTo: "all" | {
31699
32075
  toolkits: string[];
@@ -31709,6 +32085,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31709
32085
  } | {
31710
32086
  type: "prompt_injection_check";
31711
32087
  action: "block";
32088
+ } | {
32089
+ type: "webhook";
32090
+ fallbackAction: "block" | "continue";
32091
+ timeoutMs?: number | undefined;
31712
32092
  };
31713
32093
  appliesTo: "all" | {
31714
32094
  toolkits: string[];
@@ -31810,6 +32190,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31810
32190
  type: "condition_check";
31811
32191
  condition: string;
31812
32192
  action: "block";
32193
+ } | {
32194
+ type: "webhook";
32195
+ fallbackAction: "block" | "continue";
32196
+ timeoutMs?: number | undefined;
31813
32197
  };
31814
32198
  appliesTo: "all" | {
31815
32199
  toolkits: string[];
@@ -31825,6 +32209,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31825
32209
  } | {
31826
32210
  type: "prompt_injection_check";
31827
32211
  action: "block";
32212
+ } | {
32213
+ type: "webhook";
32214
+ fallbackAction: "block" | "continue";
32215
+ timeoutMs?: number | undefined;
31828
32216
  };
31829
32217
  appliesTo: "all" | {
31830
32218
  toolkits: string[];
@@ -31926,6 +32314,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31926
32314
  type: "condition_check";
31927
32315
  condition: string;
31928
32316
  action: "block";
32317
+ } | {
32318
+ type: "webhook";
32319
+ fallbackAction: "block" | "continue";
32320
+ timeoutMs?: number | undefined;
31929
32321
  };
31930
32322
  appliesTo: "all" | {
31931
32323
  toolkits: string[];
@@ -31941,6 +32333,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31941
32333
  } | {
31942
32334
  type: "prompt_injection_check";
31943
32335
  action: "block";
32336
+ } | {
32337
+ type: "webhook";
32338
+ fallbackAction: "block" | "continue";
32339
+ timeoutMs?: number | undefined;
31944
32340
  };
31945
32341
  appliesTo: "all" | {
31946
32342
  toolkits: string[];
@@ -32612,8 +33008,9 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
32612
33008
  type ToolRouterSessionSearchResponse = z.infer<typeof ToolRouterSessionSearchResponseSchema>;
32613
33009
  /**
32614
33010
  * What one session hook decided about a call. `unavailable` means the hook
32615
- * could not be evaluated (for example it timed out); it does not block the
32616
- * call.
33011
+ * could not be evaluated (for example it timed out), and `detail` says why
33012
+ * when the API gives a reason. An unavailable hook does not block the call,
33013
+ * unless it has a `webhook` handler with `fallbackAction: 'block'`.
32617
33014
  */
32618
33015
  declare const ToolRouterHookResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
32619
33016
  id: z.ZodString;
@@ -32630,12 +33027,15 @@ declare const ToolRouterHookResultSchema: z.ZodDiscriminatedUnion<"status", [z.Z
32630
33027
  }>, z.ZodObject<{
32631
33028
  id: z.ZodString;
32632
33029
  status: z.ZodLiteral<"unavailable">;
33030
+ detail: z.ZodOptional<z.ZodString>;
32633
33031
  }, "strip", z.ZodTypeAny, {
32634
33032
  status: "unavailable";
32635
33033
  id: string;
33034
+ detail?: string | undefined;
32636
33035
  }, {
32637
33036
  status: "unavailable";
32638
33037
  id: string;
33038
+ detail?: string | undefined;
32639
33039
  }>]>;
32640
33040
  type ToolRouterHookResult = z.infer<typeof ToolRouterHookResultSchema>;
32641
33041
  /**
@@ -32695,12 +33095,15 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32695
33095
  }>, z.ZodObject<{
32696
33096
  id: z.ZodString;
32697
33097
  status: z.ZodLiteral<"unavailable">;
33098
+ detail: z.ZodOptional<z.ZodString>;
32698
33099
  }, "strip", z.ZodTypeAny, {
32699
33100
  status: "unavailable";
32700
33101
  id: string;
33102
+ detail?: string | undefined;
32701
33103
  }, {
32702
33104
  status: "unavailable";
32703
33105
  id: string;
33106
+ detail?: string | undefined;
32704
33107
  }>]>, "many">>;
32705
33108
  }, "strip", z.ZodTypeAny, {
32706
33109
  data: Record<string, unknown>;
@@ -32719,6 +33122,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32719
33122
  } | {
32720
33123
  status: "unavailable";
32721
33124
  id: string;
33125
+ detail?: string | undefined;
32722
33126
  })[] | undefined;
32723
33127
  }, {
32724
33128
  data: Record<string, unknown>;
@@ -32737,6 +33141,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
32737
33141
  } | {
32738
33142
  status: "unavailable";
32739
33143
  id: string;
33144
+ detail?: string | undefined;
32740
33145
  })[] | undefined;
32741
33146
  }>;
32742
33147
  type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
@@ -32919,18 +33324,18 @@ type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Pr
32919
33324
  * the sibling connection settings untouched.
32920
33325
  */
32921
33326
  declare const ToolRouterUpdateManageConnectionsSchema: z.ZodObject<{
32922
- enable: z.ZodOptional<z.ZodBoolean>;
33327
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32923
33328
  callbackUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32924
33329
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
32925
33330
  enableConnectionRemoval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
32926
33331
  }, "strict", z.ZodTypeAny, {
32927
33332
  callbackUrl?: string | null | undefined;
32928
- enable?: boolean | undefined;
33333
+ enable?: boolean | null | undefined;
32929
33334
  waitForConnections?: boolean | undefined;
32930
33335
  enableConnectionRemoval?: boolean | null | undefined;
32931
33336
  }, {
32932
33337
  callbackUrl?: string | null | undefined;
32933
- enable?: boolean | undefined;
33338
+ enable?: boolean | null | undefined;
32934
33339
  waitForConnections?: boolean | undefined;
32935
33340
  enableConnectionRemoval?: boolean | null | undefined;
32936
33341
  }>;
@@ -33201,18 +33606,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33201
33606
  authConfigs: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
33202
33607
  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[]>>>>>;
33203
33608
  manageConnections: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
33204
- enable: z.ZodOptional<z.ZodBoolean>;
33609
+ enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33205
33610
  callbackUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33206
33611
  waitForConnections: z.ZodOptional<z.ZodBoolean>;
33207
33612
  enableConnectionRemoval: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
33208
33613
  }, "strict", z.ZodTypeAny, {
33209
33614
  callbackUrl?: string | null | undefined;
33210
- enable?: boolean | undefined;
33615
+ enable?: boolean | null | undefined;
33211
33616
  waitForConnections?: boolean | undefined;
33212
33617
  enableConnectionRemoval?: boolean | null | undefined;
33213
33618
  }, {
33214
33619
  callbackUrl?: string | null | undefined;
33215
- enable?: boolean | undefined;
33620
+ enable?: boolean | null | undefined;
33216
33621
  waitForConnections?: boolean | undefined;
33217
33622
  enableConnectionRemoval?: boolean | null | undefined;
33218
33623
  }>]>>>>;
@@ -33269,7 +33674,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33269
33674
  enable: boolean;
33270
33675
  }>]>>>>;
33271
33676
  hooks: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33272
- handler: z.ZodObject<{
33677
+ handler: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33273
33678
  type: z.ZodLiteral<"condition_check">;
33274
33679
  condition: z.ZodString;
33275
33680
  action: z.ZodLiteral<"block">;
@@ -33281,7 +33686,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33281
33686
  type: "condition_check";
33282
33687
  condition: string;
33283
33688
  action: "block";
33284
- }>;
33689
+ }>, z.ZodObject<{
33690
+ type: z.ZodLiteral<"webhook">;
33691
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
33692
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
33693
+ }, "strict", z.ZodTypeAny, {
33694
+ type: "webhook";
33695
+ fallbackAction: "block" | "continue";
33696
+ timeoutMs?: number | undefined;
33697
+ }, {
33698
+ type: "webhook";
33699
+ fallbackAction: "block" | "continue";
33700
+ timeoutMs?: number | undefined;
33701
+ }>]>;
33285
33702
  id: z.ZodString;
33286
33703
  name: z.ZodOptional<z.ZodString>;
33287
33704
  appliesTo: z.ZodUnion<[z.ZodLiteral<"all">, z.ZodObject<{
@@ -33299,6 +33716,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33299
33716
  type: "condition_check";
33300
33717
  condition: string;
33301
33718
  action: "block";
33719
+ } | {
33720
+ type: "webhook";
33721
+ fallbackAction: "block" | "continue";
33722
+ timeoutMs?: number | undefined;
33302
33723
  };
33303
33724
  appliesTo: "all" | {
33304
33725
  toolkits: string[];
@@ -33311,6 +33732,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33311
33732
  type: "condition_check";
33312
33733
  condition: string;
33313
33734
  action: "block";
33735
+ } | {
33736
+ type: "webhook";
33737
+ fallbackAction: "block" | "continue";
33738
+ timeoutMs?: number | undefined;
33314
33739
  };
33315
33740
  appliesTo: "all" | {
33316
33741
  toolkits: string[];
@@ -33338,6 +33763,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33338
33763
  }, {
33339
33764
  type: "prompt_injection_check";
33340
33765
  action: "block";
33766
+ }>, z.ZodObject<{
33767
+ type: z.ZodLiteral<"webhook">;
33768
+ fallbackAction: z.ZodEnum<["block", "continue"]>;
33769
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
33770
+ }, "strict", z.ZodTypeAny, {
33771
+ type: "webhook";
33772
+ fallbackAction: "block" | "continue";
33773
+ timeoutMs?: number | undefined;
33774
+ }, {
33775
+ type: "webhook";
33776
+ fallbackAction: "block" | "continue";
33777
+ timeoutMs?: number | undefined;
33341
33778
  }>]>;
33342
33779
  id: z.ZodString;
33343
33780
  name: z.ZodOptional<z.ZodString>;
@@ -33359,6 +33796,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33359
33796
  } | {
33360
33797
  type: "prompt_injection_check";
33361
33798
  action: "block";
33799
+ } | {
33800
+ type: "webhook";
33801
+ fallbackAction: "block" | "continue";
33802
+ timeoutMs?: number | undefined;
33362
33803
  };
33363
33804
  appliesTo: "all" | {
33364
33805
  toolkits: string[];
@@ -33374,6 +33815,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33374
33815
  } | {
33375
33816
  type: "prompt_injection_check";
33376
33817
  action: "block";
33818
+ } | {
33819
+ type: "webhook";
33820
+ fallbackAction: "block" | "continue";
33821
+ timeoutMs?: number | undefined;
33377
33822
  };
33378
33823
  appliesTo: "all" | {
33379
33824
  toolkits: string[];
@@ -33522,7 +33967,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33522
33967
  connectedAccounts?: Record<string, string[]> | null | undefined;
33523
33968
  manageConnections?: boolean | {
33524
33969
  callbackUrl?: string | null | undefined;
33525
- enable?: boolean | undefined;
33970
+ enable?: boolean | null | undefined;
33526
33971
  waitForConnections?: boolean | undefined;
33527
33972
  enableConnectionRemoval?: boolean | null | undefined;
33528
33973
  } | null | undefined;
@@ -33553,6 +33998,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33553
33998
  type: "condition_check";
33554
33999
  condition: string;
33555
34000
  action: "block";
34001
+ } | {
34002
+ type: "webhook";
34003
+ fallbackAction: "block" | "continue";
34004
+ timeoutMs?: number | undefined;
33556
34005
  };
33557
34006
  appliesTo: "all" | {
33558
34007
  toolkits: string[];
@@ -33568,6 +34017,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33568
34017
  } | {
33569
34018
  type: "prompt_injection_check";
33570
34019
  action: "block";
34020
+ } | {
34021
+ type: "webhook";
34022
+ fallbackAction: "block" | "continue";
34023
+ timeoutMs?: number | undefined;
33571
34024
  };
33572
34025
  appliesTo: "all" | {
33573
34026
  toolkits: string[];
@@ -33646,7 +34099,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33646
34099
  connectedAccounts?: Record<string, string | string[]> | null | undefined;
33647
34100
  manageConnections?: boolean | {
33648
34101
  callbackUrl?: string | null | undefined;
33649
- enable?: boolean | undefined;
34102
+ enable?: boolean | null | undefined;
33650
34103
  waitForConnections?: boolean | undefined;
33651
34104
  enableConnectionRemoval?: boolean | null | undefined;
33652
34105
  } | null | undefined;
@@ -33677,6 +34130,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33677
34130
  type: "condition_check";
33678
34131
  condition: string;
33679
34132
  action: "block";
34133
+ } | {
34134
+ type: "webhook";
34135
+ fallbackAction: "block" | "continue";
34136
+ timeoutMs?: number | undefined;
33680
34137
  };
33681
34138
  appliesTo: "all" | {
33682
34139
  toolkits: string[];
@@ -33692,6 +34149,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33692
34149
  } | {
33693
34150
  type: "prompt_injection_check";
33694
34151
  action: "block";
34152
+ } | {
34153
+ type: "webhook";
34154
+ fallbackAction: "block" | "continue";
34155
+ timeoutMs?: number | undefined;
33695
34156
  };
33696
34157
  appliesTo: "all" | {
33697
34158
  toolkits: string[];
@@ -33770,7 +34231,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33770
34231
  connectedAccounts?: Record<string, string[]> | null | undefined;
33771
34232
  manageConnections?: boolean | {
33772
34233
  callbackUrl?: string | null | undefined;
33773
- enable?: boolean | undefined;
34234
+ enable?: boolean | null | undefined;
33774
34235
  waitForConnections?: boolean | undefined;
33775
34236
  enableConnectionRemoval?: boolean | null | undefined;
33776
34237
  } | null | undefined;
@@ -33801,6 +34262,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33801
34262
  type: "condition_check";
33802
34263
  condition: string;
33803
34264
  action: "block";
34265
+ } | {
34266
+ type: "webhook";
34267
+ fallbackAction: "block" | "continue";
34268
+ timeoutMs?: number | undefined;
33804
34269
  };
33805
34270
  appliesTo: "all" | {
33806
34271
  toolkits: string[];
@@ -33816,6 +34281,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33816
34281
  } | {
33817
34282
  type: "prompt_injection_check";
33818
34283
  action: "block";
34284
+ } | {
34285
+ type: "webhook";
34286
+ fallbackAction: "block" | "continue";
34287
+ timeoutMs?: number | undefined;
33819
34288
  };
33820
34289
  appliesTo: "all" | {
33821
34290
  toolkits: string[];
@@ -33894,7 +34363,7 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33894
34363
  connectedAccounts?: Record<string, string | string[]> | null | undefined;
33895
34364
  manageConnections?: boolean | {
33896
34365
  callbackUrl?: string | null | undefined;
33897
- enable?: boolean | undefined;
34366
+ enable?: boolean | null | undefined;
33898
34367
  waitForConnections?: boolean | undefined;
33899
34368
  enableConnectionRemoval?: boolean | null | undefined;
33900
34369
  } | null | undefined;
@@ -33925,6 +34394,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33925
34394
  type: "condition_check";
33926
34395
  condition: string;
33927
34396
  action: "block";
34397
+ } | {
34398
+ type: "webhook";
34399
+ fallbackAction: "block" | "continue";
34400
+ timeoutMs?: number | undefined;
33928
34401
  };
33929
34402
  appliesTo: "all" | {
33930
34403
  toolkits: string[];
@@ -33940,6 +34413,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
33940
34413
  } | {
33941
34414
  type: "prompt_injection_check";
33942
34415
  action: "block";
34416
+ } | {
34417
+ type: "webhook";
34418
+ fallbackAction: "block" | "continue";
34419
+ timeoutMs?: number | undefined;
33943
34420
  };
33944
34421
  appliesTo: "all" | {
33945
34422
  toolkits: string[];
@@ -34378,4 +34855,4 @@ type RegisteredCustomToolkit = RegisteredLocalToolkit;
34378
34855
  type CustomToolResponse = NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_tools']>[number];
34379
34856
  /** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
34380
34857
  type CustomToolkitResponse = NonNullable<NonNullable<NonNullable<SessionCreateResponse['experimental']>['custom_toolkits']>[number]>;
34381
- export { ToolRouterHookConditionCheckHandler as $, ToolExecuteResponseSchema as $a, Oauth1ConnectionData as $i, ConnectedAccountListResponseSchema as $n, MCPGenerateURLParamsSchema as $r, ToolRouterToolkitsDisabledConfigSchema as $t, MCPServerType as A, ExecuteToolModifiers as Aa, McpUrlResponse as Ai, ToolRouterSessionFilesMountListOptionsSchema as An, BaseAgenticProvider as Ar, ToolRouterSessionExecuteMetaOptions as At, ToolRouterAuthorizeFn as B, beforeExecuteModifier as Ba, BillcomAuthConnectionDataSchema as Bi, ConnectedAccountAuthConfigSchema as Bn, ConnectionStatus as Br, ToolRouterSessionPreloadConfig as Bt, LocalToolExecuteFn as C, Oauth2InitiatingConnectionData as Ca, McpRetrieveResponseSchema as Ci, RemoteFileData as Cn, CreateConnectedAccountResponse as Cr, ToolRouterSessionDeleteResponseSchema as Ct, RegisteredLocalTool as D, RedirectableAuthSchemeSchema as Da, McpToolkitConnectionStatus as Di, ToolRouterSessionFilesMountDownloadOptions as Dn, UpdateConnectedAccountAclParamsSchema as Dr, ToolRouterSessionEnsureConnectedResult as Dt, RegisteredCustomToolkit as E, Oauth2RevokedConnectionDataSchema as Ea, McpServerUrlInfo as Ei, ToolRouterSessionFilesMountDeleteOptionsSchema as En, UpdateConnectedAccountAclParams as Er, ToolRouterSessionEnsureConnectedOptionsSchema as Et, SessionExperimental as F, ToolOptions as Fa, GlobalExecuteToolFn as Fi, ConnectedAccountAclConfig as Fn, ComposioGenerateURLResponseSchema as Fr, ToolRouterSessionListConfigHistoryOptions as Ft, ToolRouterConfigTagsSchema as G, JSONSchemaPropertySchema as Ga, CustomConnectionData as Gi, ConnectedAccountExperimental as Gn, GenerateURLParamsSchema as Gr, ToolRouterSessionSearchFn as Gt, ToolRouterBlockReasonSchema as H, CustomAuthParams as Ha, ConnectionDataSchema as Hi, ConnectedAccountCompleteAuthParamsSchema as Hn, CustomCreateResponseSchema as Hr, ToolRouterSessionProxyExecuteCompleted as Ht, SessionPreset as I, TransformToolSchemaModifier as Ia, Provider as Ii, ConnectedAccountAclConfigResponse as In, ComposioMcpDeleteResponseSchema as Ir, ToolRouterSessionListConfigHistoryOptionsSchema as It, ToolRouterCreateSessionConfig as J, ToolExecuteMetaParams as Ja, CustomOauth1ConnectionDataSchema as Ji, ConnectedAccountExperimentalSchema as Jn, GenerateURLResponseValidated as Jr, ToolRouterSessionUpdateFn as Jt, ToolRouterConfigTools as K, SchemaModifierOptions as Ka, CustomConnectionDataSchema as Ki, ConnectedAccountExperimentalResponse as Kn, GenerateURLResponse as Kr, ToolRouterSessionSearchResponse as Kt, SessionProxyExecuteParams as L, afterExecuteMetaModifier as La, ToolCallExecutionTarget as Li, ConnectedAccountAclConfigResponseSchema as Ln, ComposioMcpListResponseSchema as Lr, ToolRouterSessionListConfigHistoryResponse as Lt, SandboxSize as M, ProviderOptions as Ma, McpUserConnectionStatus as Mi, ToolRouterSessionFilesMountUploadOptionsSchema as Mn, BaseNonAgenticProvider as Mr, ToolRouterSessionExecuteResponse as Mt, SandboxSizeSchema as N, SessionExecuteMetaModifiers as Na, ExecuteToolFn as Ni, ConnectionRequest as Nn, ComposioCustomCreateResponseSchema as Nr, ToolRouterSessionExecuteResponseSchema as Nt, RegisteredLocalToolkit as O, AgenticToolOptions as Oa, McpUpdateResponse as Oi, ToolRouterSessionFilesMountDownloadOptionsSchema as On, UpdateConnectedAccountParams as Or, ToolRouterSessionExecuteFn as Ot, Session as P, SessionMetaToolOptions as Pa, ExecuteToolFnOptions as Pi, ConnectionRequestState as Pn, ComposioGenerateURLParamsSchema as Pr, ToolRouterSessionListConfigHistoryFn as Pt, ToolRouterHookAppliesToSchema as Q, ToolExecuteResponse as Qa, Oauth1ActiveConnectionDataSchema as Qi, ConnectedAccountListResponseItem as Qn, MCPGenerateURLParams as Qr, ToolRouterTagsParamSchema as Qt, SessionProxyExecuteParamsSchema as R, afterExecuteModifier as Ra, ToolCallSession as Ri, ConnectedAccountAclConfigSchema as Rn, ComposioMcpRetrieveResponseSchema as Rr, ToolRouterSessionMetaToolSlug as Rt, LocalTool as S, Oauth2InitiatedConnectionDataSchema as Sa, McpRetrieveResponse as Si, FileListResponseSchema as Sn, CreateConnectedAccountParamsSchema as Sr, ToolRouterSessionDeleteResponse as St, RegisteredCustomTool as T, Oauth2RevokedConnectionData as Ta, McpServerGetResponse as Ti, ToolRouterSessionFilesMountDeleteOptions as Tn, DefaultCreateConnectedAccountParamsSchema as Tr, ToolRouterSessionEnsureConnectedOptions as Tt, ToolRouterConfigManageConnectionsSchema as U, CustomAuthParamsSchema as Ua, ConnectionStatusEnum as Ui, ConnectedAccountCompleteAuthResponse as Un, CustomCreateResponseValidated as Ur, ToolRouterSessionProxyExecuteFn as Ut, ToolRouterBlockReason as V, beforeFileUploadModifier as Va, ConnectionData as Vi, ConnectedAccountCompleteAuthParams as Vn, CustomCreateResponse as Vr, ToolRouterSessionProxyExecuteBlocked as Vt, ToolRouterConfigTags as W, JSONSchemaProperty as Wa, ConnectionStatuses as Wi, ConnectedAccountCompleteAuthResponseSchema as Wn, GenerateURLParams as Wr, ToolRouterSessionProxyExecuteResponse as Wt, ToolRouterHook as X, ToolExecuteParams as Xa, CustomOauth2ConnectionDataSchema as Xi, ConnectedAccountListParamsSchema as Xn, MCPAuthOptionsSchema as Xr, ToolRouterSessionWorkbenchConfig as Xt, ToolRouterCreateSessionConfigSchema as Y, ToolExecuteMetaParamsSchema as Ya, CustomOauth2ConnectionData as Yi, ConnectedAccountListParams as Yn, MCPAuthOptions as Yr, ToolRouterSessionWarning as Yt, ToolRouterHookAppliesTo as Z, ToolExecuteParamsSchema as Za, Oauth1ActiveConnectionData as Zi, ConnectedAccountListResponse as Zn, MCPCreateMethodResponse as Zr, ToolRouterTagsEnableDisableSchema as Zt, CustomToolkitWireDefinition as _, Oauth2FailedConnectionData as _a, MCPToolkitConfigsArraySchema as _i, ToolkitConnectionsDetailsSchema as _n, ToolkitVersions as _o, CreateConnectedAccountLinkResponse as _r, ToolRouterSandboxConfigSchema as _t, CreateCustomToolkitParams as a, Oauth1InactiveConnectionData as aa, MCPServer as ai, ToolRouterToolsFn as an, ToolProxyParams as ao, ConnectedAccountRevokeResponseSchema as ar, ToolRouterHookSchema as at, InferZodSchema as b, Oauth2InactiveConnectionDataSchema as ba, McpListResponse as bi, FileDeleteResponseSchema as bn, CreateConnectedAccountOptionsSchema as br, ToolRouterSessionConfigHistoryItem as bt, CustomTool as c, Oauth1InitiatedConnectionDataSchema as ca, MCPServerListResponse as ci, ToolRouterUpdateExperimentalConfig as cn, ToolSchema as co, ConnectedAccountStatus as cr, ToolRouterInstantSchema as ct, CustomToolResponse as d, Oauth2ActiveConnectionData as da, MCPServerUpdateParams as di, ToolRouterUpdateManageConnectionsSchema as dn, ToolkitLatestVersionSchema as do, ConnectedAccountStatuses as dr, ToolRouterManageConnectionsConfigSchema as dt, Oauth1ConnectionDataSchema as ea, MCPGetServerParams as ei, ToolRouterToolkitsEnabledConfigSchema as en, ToolList as eo, ConnectedAccountRefreshOptions as er, ToolRouterHookConditionCheckHandlerSchema as et, CustomToolSlugSchema as f, Oauth2ActiveConnectionDataSchema as fa, MCPServerUpdateParamsSchema as fi, ToolRouterUpdateSessionConfig as fn, ToolkitSchema as fo, ConnectedAccountType as fr, ToolRouterProxyExecute as ft, CustomToolkitResponse as g, Oauth2ExpiredConnectionDataSchema as ga, MCPToolkitConfigSchema as gi, ToolkitConnectionsDetails as gn, ToolkitVersionSchema as go, CreateConnectedAccountLinkOptionsSchema as gr, ToolRouterSandboxConfig as gt, CustomToolkitDefinition as h, Oauth2ExpiredConnectionData as ha, MCPToolkitConfig as hi, ToolkitConnectionStateSchema as hn, ToolkitVersionParamSchema as ho, CreateConnectedAccountLinkOptions as hr, ToolRouterProxyExecuteSchema as ht, CreateCustomToolkitBaseSchema as i, Oauth1FailedConnectionDataSchema as ia, MCPMultiAppServerSchema as ii, ToolRouterToolkitsParamSchema as in, ToolListResponseSchema as io, ConnectedAccountRevokeResponse as ir, ToolRouterHookResultSchema as it, MCPServerTypeSchema as j, MetaToolArguments as ja, McpUrlResponseCamelCase as ji, ToolRouterSessionFilesMountUploadOptions as jn, BaseComposioProvider as jr, ToolRouterSessionExecuteOptions as jt, SessionContext as k, BeforeFileUploadSource as ka, McpUpdateResponseSchema as ki, ToolRouterSessionFilesMountListOptions as kn, UpdateConnectedAccountParamsSchema as kr, ToolRouterSessionExecuteMetaFn as kt, CustomToolDefinition as l, Oauth1InitiatingConnectionData as la, MCPServerListResponseSchema as li, ToolRouterUpdateExperimentalSchema as ln, Toolkit as lo, ConnectedAccountStatusEnum as lr, ToolRouterMCPServerConfig as lt, CustomToolkit as m, Oauth2ConnectionDataSchema as ma, MCPSingleAppServerSchema as mi, ToolkitConnectionState as mn, ToolkitVersionParam as mo, ConnectedAccountTypes as mr, ToolRouterProxyExecuteConfigSchema as mt, CreateCustomToolBaseSchema as n, Oauth1ExpiredConnectionDataSchema as na, MCPInstanceParams as ni, ToolRouterToolkitsOptions as nn, ToolListParamsSchema as no, ConnectedAccountRetrieveResponse as nr, ToolRouterHookPromptInjectionCheckHandlerSchema as nt, CreateLocalToolParams as o, Oauth1InactiveConnectionDataSchema as oa, MCPServerCreateResponse as oi, ToolRouterToolsParam as on, ToolProxyParamsSchema as oo, ConnectedAccountRevokedToken as or, ToolRouterInputResponse as ot, CustomToolWireDefinition as p, Oauth2ConnectionData as pa, MCPSingleAppServer as pi, ToolRouterUpdateSessionConfigSchema as pn, ToolkitVersion as po, ConnectedAccountTypeSchema as pr, ToolRouterProxyExecuteConfig as pt, ToolRouterConfigToolsSchema as q, Tool as qa, CustomOauth1ConnectionData as qi, ConnectedAccountExperimentalResponseSchema as qn, GenerateURLResponseSchema as qr, ToolRouterSessionSearchResponseSchema as qt, CreateCustomToolParams as r, Oauth1FailedConnectionData as ra, MCPMultiAppServer as ri, ToolRouterToolkitsOptionsSchema as rn, ToolListResponse as ro, ConnectedAccountRetrieveResponseSchema as rr, ToolRouterHookResult as rt, CreateLocalToolkitParams as s, Oauth1InitiatedConnectionData as sa, MCPServerCreateResponseSchema as si, ToolRouterToolsParamSchema as sn, ToolRetrievalOptions as so, ConnectedAccountRevokedTokenSchema as sr, ToolRouterInstant as st, AnyZodSchema as t, Oauth1ExpiredConnectionData as ta, MCPGetServerParamsSchema as ti, ToolRouterToolkitsFn as tn, ToolListParams as to, ConnectedAccountRefreshOptionsSchema as tr, ToolRouterHookPromptInjectionCheckHandler as tt, CustomToolExecuteFn as u, Oauth1InitiatingConnectionDataSchema as ua, MCPServerSchema as ui, ToolRouterUpdateManageConnectionsConfig as un, ToolkitLatestVersion as uo, ConnectedAccountStatusSchema as ur, ToolRouterMCPServerConfigSchema as ut, CustomToolsMap as v, Oauth2FailedConnectionDataSchema as va, McpDeleteResponse as vi, RemoteFile as vn, ToolkitVersionsSchema as vo, CreateConnectedAccountLinkResponseSchema as vr, ToolRouterSessionConfig as vt, LocalToolkit as w, Oauth2InitiatingConnectionDataSchema as wa, McpServerCreateResponse as wi, RemoteFileDataSchema as wn, CreateConnectedAccountResponseSchema as wr, ToolRouterSessionEnsureConnectedFn as wt, InlineCustomToolsWirePayload as x, Oauth2InitiatedConnectionData as xa, McpListResponseSchema as xi, FileListResponse as xn, CreateConnectedAccountParams as xr, ToolRouterSessionDeleteFn as xt, CustomToolsMapEntry as y, Oauth2InactiveConnectionData as ya, McpDeleteResponseSchema as yi, FileDeleteResponse as yn, CreateConnectedAccountOptions as yr, ToolRouterSessionConfigHistoryConfig as yt, SessionWithoutMcp as z, beforeExecuteMetaModifier as za, BaseConnectionFields as zi, ConnectedAccountAuthConfig as zn, ComposioMcpUpdateResponseSchema as zr, ToolRouterSessionMetadata as zt };
34858
+ export { ToolRouterHookConditionCheckHandler as $, ToolExecuteMetaParamsSchema as $a, CustomOauth2ConnectionData as $i, ConnectedAccountListResponse as $n, MCPAuthOptions as $r, ToolRouterTagsEnableDisableSchema as $t, MCPServerType as A, Oauth2RevokedConnectionDataSchema as Aa, McpServerUrlInfo as Ai, ToolRouterSessionFilesMountDownloadOptionsSchema as An, UpdateConnectedAccountAclParams as Ar, ToolRouterSessionExecuteFn as At, ToolRouterAuthorizeFn as B, TransformToolSchemaModifier as Ba, Provider as Bi, ConnectedAccountAclConfigSchema as Bn, ComposioMcpDeleteResponseSchema as Br, ToolRouterSessionMetaToolSlug as Bt, LocalToolExecuteFn as C, Oauth2InactiveConnectionData as Ca, McpDeleteResponseSchema as Ci, FileListResponse as Cn, CreateConnectedAccountParams as Cr, ToolRouterSessionDeleteFn as Ct, RegisteredLocalTool as D, Oauth2InitiatingConnectionData as Da, McpRetrieveResponseSchema as Di, ToolRouterSessionFilesMountDeleteOptions as Dn, DefaultCreateConnectedAccountParamsSchema as Dr, ToolRouterSessionEnsureConnectedOptions as Dt, RegisteredCustomToolkit as E, Oauth2InitiatedConnectionDataSchema as Ea, McpRetrieveResponse as Ei, RemoteFileDataSchema as En, CreateConnectedAccountResponseSchema as Er, ToolRouterSessionEnsureConnectedFn as Et, SessionExperimental as F, MetaToolArguments as Fa, McpUrlResponseCamelCase as Fi, ConnectionRequest as Fn, BaseComposioProvider as Fr, ToolRouterSessionExecuteResponseSchema as Ft, ToolRouterConfigTagsSchema as G, beforeFileUploadModifier as Ga, ConnectionData as Gi, ConnectedAccountCompleteAuthResponse as Gn, CustomCreateResponse as Gr, ToolRouterSessionProxyExecuteFn as Gt, ToolRouterBlockReasonSchema as H, afterExecuteModifier as Ha, ToolCallSession as Hi, ConnectedAccountAuthConfigSchema as Hn, ComposioMcpRetrieveResponseSchema as Hr, ToolRouterSessionPreloadConfig as Ht, SessionPreset as I, ProviderOptions as Ia, McpUserConnectionStatus as Ii, ConnectionRequestState as In, BaseNonAgenticProvider as Ir, ToolRouterSessionListConfigHistoryFn as It, ToolRouterCreateSessionConfig as J, JSONSchemaProperty as Ja, ConnectionStatuses as Ji, ConnectedAccountExperimentalResponse as Jn, GenerateURLParams as Jr, ToolRouterSessionSearchResponse as Jt, ToolRouterConfigTools as K, CustomAuthParams as Ka, ConnectionDataSchema as Ki, ConnectedAccountCompleteAuthResponseSchema as Kn, CustomCreateResponseSchema as Kr, ToolRouterSessionProxyExecuteResponse as Kt, SessionProxyExecuteParams as L, SessionExecuteMetaModifiers as La, ExecuteToolFn as Li, ConnectedAccountAclConfig as Ln, ComposioCustomCreateResponseSchema as Lr, ToolRouterSessionListConfigHistoryOptions as Lt, SandboxSize as M, AgenticToolOptions as Ma, McpUpdateResponse as Mi, ToolRouterSessionFilesMountListOptionsSchema as Mn, UpdateConnectedAccountParams as Mr, ToolRouterSessionExecuteMetaOptions as Mt, SandboxSizeSchema as N, BeforeFileUploadSource as Na, McpUpdateResponseSchema as Ni, ToolRouterSessionFilesMountUploadOptions as Nn, UpdateConnectedAccountParamsSchema as Nr, ToolRouterSessionExecuteOptions as Nt, RegisteredLocalToolkit as O, Oauth2InitiatingConnectionDataSchema as Oa, McpServerCreateResponse as Oi, ToolRouterSessionFilesMountDeleteOptionsSchema as On, PatchConnectedAccountParams as Or, ToolRouterSessionEnsureConnectedOptionsSchema as Ot, Session as P, ExecuteToolModifiers as Pa, McpUrlResponse as Pi, ToolRouterSessionFilesMountUploadOptionsSchema as Pn, BaseAgenticProvider as Pr, ToolRouterSessionExecuteResponse as Pt, ToolRouterHookAppliesToSchema as Q, ToolExecuteMetaParams as Qa, CustomOauth1ConnectionDataSchema as Qi, ConnectedAccountListParamsSchema as Qn, GenerateURLResponseValidated as Qr, ToolRouterSessionWorkbenchConfig as Qt, SessionProxyExecuteParamsSchema as R, SessionMetaToolOptions as Ra, ExecuteToolFnOptions as Ri, ConnectedAccountAclConfigResponse as Rn, ComposioGenerateURLParamsSchema as Rr, ToolRouterSessionListConfigHistoryOptionsSchema as Rt, LocalTool as S, Oauth2FailedConnectionDataSchema as Sa, McpDeleteResponse as Si, FileDeleteResponseSchema as Sn, ToolkitVersionsSchema as So, CreateConnectedAccountOptionsSchema as Sr, ToolRouterSessionConfigHistoryItem as St, RegisteredCustomTool as T, Oauth2InitiatedConnectionData as Ta, McpListResponseSchema as Ti, RemoteFileData as Tn, CreateConnectedAccountResponse as Tr, ToolRouterSessionDeleteResponseSchema as Tt, ToolRouterConfigManageConnectionsSchema as U, beforeExecuteMetaModifier as Ua, BaseConnectionFields as Ui, ConnectedAccountCompleteAuthParams as Un, ComposioMcpUpdateResponseSchema as Ur, ToolRouterSessionProxyExecuteBlocked as Ut, ToolRouterBlockReason as V, afterExecuteMetaModifier as Va, ToolCallExecutionTarget as Vi, ConnectedAccountAuthConfig as Vn, ComposioMcpListResponseSchema as Vr, ToolRouterSessionMetadata as Vt, ToolRouterConfigTags as W, beforeExecuteModifier as Wa, BillcomAuthConnectionDataSchema as Wi, ConnectedAccountCompleteAuthParamsSchema as Wn, ConnectionStatus as Wr, ToolRouterSessionProxyExecuteCompleted as Wt, ToolRouterHook as X, SchemaModifierOptions as Xa, CustomConnectionDataSchema as Xi, ConnectedAccountExperimentalSchema as Xn, GenerateURLResponse as Xr, ToolRouterSessionUpdateFn as Xt, ToolRouterCreateSessionConfigSchema as Y, JSONSchemaPropertySchema as Ya, CustomConnectionData as Yi, ConnectedAccountExperimentalResponseSchema as Yn, GenerateURLParamsSchema as Yr, ToolRouterSessionSearchResponseSchema as Yt, ToolRouterHookAppliesTo as Z, Tool as Za, CustomOauth1ConnectionData as Zi, ConnectedAccountListParams as Zn, GenerateURLResponseSchema as Zr, ToolRouterSessionWarning as Zt, CustomToolkitWireDefinition as _, Oauth2ConnectionData as _a, MCPSingleAppServer as _i, ToolkitConnectionStateSchema as _n, ToolkitVersion as _o, CreateConnectedAccountLinkOptions as _r, ToolRouterProxyExecuteSchema as _t, CreateCustomToolkitParams as a, Oauth1ExpiredConnectionData as aa, MCPGetServerParamsSchema as ai, ToolRouterToolkitsOptionsSchema as an, ToolListParams as ao, ConnectedAccountRetrieveResponseSchema as ar, ToolRouterHookSchema as at, InferZodSchema as b, Oauth2ExpiredConnectionDataSchema as ba, MCPToolkitConfigSchema as bi, RemoteFile as bn, ToolkitVersionSchema as bo, CreateConnectedAccountLinkResponseSchema as br, ToolRouterSessionConfig as bt, CustomTool as c, Oauth1FailedConnectionDataSchema as ca, MCPMultiAppServerSchema as ci, ToolRouterToolsParam as cn, ToolListResponseSchema as co, ConnectedAccountRevokedToken as cr, ToolRouterInputResponse as ct, CustomToolResponse as d, Oauth1InitiatedConnectionData as da, MCPServerCreateResponseSchema as di, ToolRouterUpdateExperimentalSchema as dn, ToolRetrievalOptions as do, ConnectedAccountStatusEnum as dr, ToolRouterMCPServerConfig as dt, CustomOauth2ConnectionDataSchema as ea, MCPAuthOptionsSchema as ei, ToolRouterTagsParamSchema as en, ToolExecuteParams as eo, ConnectedAccountListResponseItem as er, ToolRouterHookConditionCheckHandlerSchema as et, CustomToolSlugSchema as f, Oauth1InitiatedConnectionDataSchema as fa, MCPServerListResponse as fi, ToolRouterUpdateManageConnectionsConfig as fn, ToolSchema as fo, ConnectedAccountStatusSchema as fr, ToolRouterMCPServerConfigSchema as ft, CustomToolkitResponse as g, Oauth2ActiveConnectionDataSchema as ga, MCPServerUpdateParamsSchema as gi, ToolkitConnectionState as gn, ToolkitSchema as go, ConnectedAccountTypes as gr, ToolRouterProxyExecuteConfigSchema as gt, CustomToolkitDefinition as h, Oauth2ActiveConnectionData as ha, MCPServerUpdateParams as hi, ToolRouterUpdateSessionConfigSchema as hn, ToolkitLatestVersionSchema as ho, ConnectedAccountTypeSchema as hr, ToolRouterProxyExecuteConfig as ht, CreateCustomToolkitBaseSchema as i, Oauth1ConnectionDataSchema as ia, MCPGetServerParams as ii, ToolRouterToolkitsOptions as in, ToolList as io, ConnectedAccountRetrieveResponse as ir, ToolRouterHookResultSchema as it, MCPServerTypeSchema as j, RedirectableAuthSchemeSchema as ja, McpToolkitConnectionStatus as ji, ToolRouterSessionFilesMountListOptions as jn, UpdateConnectedAccountAclParamsSchema as jr, ToolRouterSessionExecuteMetaFn as jt, SessionContext as k, Oauth2RevokedConnectionData as ka, McpServerGetResponse as ki, ToolRouterSessionFilesMountDownloadOptions as kn, PatchConnectedAccountParamsSchema as kr, ToolRouterSessionEnsureConnectedResult as kt, CustomToolDefinition as l, Oauth1InactiveConnectionData as la, MCPServer as li, ToolRouterToolsParamSchema as ln, ToolProxyParams as lo, ConnectedAccountRevokedTokenSchema as lr, ToolRouterInstant as lt, CustomToolkit as m, Oauth1InitiatingConnectionDataSchema as ma, MCPServerSchema as mi, ToolRouterUpdateSessionConfig as mn, ToolkitLatestVersion as mo, ConnectedAccountType as mr, ToolRouterProxyExecute as mt, CreateCustomToolBaseSchema as n, Oauth1ActiveConnectionDataSchema as na, MCPGenerateURLParams as ni, ToolRouterToolkitsEnabledConfigSchema as nn, ToolExecuteResponse as no, ConnectedAccountRefreshOptions as nr, ToolRouterHookPromptInjectionCheckHandlerSchema as nt, CreateLocalToolParams as o, Oauth1ExpiredConnectionDataSchema as oa, MCPInstanceParams as oi, ToolRouterToolkitsParamSchema as on, ToolListParamsSchema as oo, ConnectedAccountRevokeResponse as or, ToolRouterHookWebhookHandler as ot, CustomToolWireDefinition as p, Oauth1InitiatingConnectionData as pa, MCPServerListResponseSchema as pi, ToolRouterUpdateManageConnectionsSchema as pn, Toolkit as po, ConnectedAccountStatuses as pr, ToolRouterManageConnectionsConfigSchema as pt, ToolRouterConfigToolsSchema as q, CustomAuthParamsSchema as qa, ConnectionStatusEnum as qi, ConnectedAccountExperimental as qn, CustomCreateResponseValidated as qr, ToolRouterSessionSearchFn as qt, CreateCustomToolParams as r, Oauth1ConnectionData as ra, MCPGenerateURLParamsSchema as ri, ToolRouterToolkitsFn as rn, ToolExecuteResponseSchema as ro, ConnectedAccountRefreshOptionsSchema as rr, ToolRouterHookResult as rt, CreateLocalToolkitParams as s, Oauth1FailedConnectionData as sa, MCPMultiAppServer as si, ToolRouterToolsFn as sn, ToolListResponse as so, ConnectedAccountRevokeResponseSchema as sr, ToolRouterHookWebhookHandlerSchema as st, AnyZodSchema as t, Oauth1ActiveConnectionData as ta, MCPCreateMethodResponse as ti, ToolRouterToolkitsDisabledConfigSchema as tn, ToolExecuteParamsSchema as to, ConnectedAccountListResponseSchema as tr, ToolRouterHookPromptInjectionCheckHandler as tt, CustomToolExecuteFn as u, Oauth1InactiveConnectionDataSchema as ua, MCPServerCreateResponse as ui, ToolRouterUpdateExperimentalConfig as un, ToolProxyParamsSchema as uo, ConnectedAccountStatus as ur, ToolRouterInstantSchema as ut, CustomToolsMap as v, Oauth2ConnectionDataSchema as va, MCPSingleAppServerSchema as vi, ToolkitConnectionsDetails as vn, ToolkitVersionParam as vo, CreateConnectedAccountLinkOptionsSchema as vr, ToolRouterSandboxConfig as vt, LocalToolkit as w, Oauth2InactiveConnectionDataSchema as wa, McpListResponse as wi, FileListResponseSchema as wn, CreateConnectedAccountParamsSchema as wr, ToolRouterSessionDeleteResponse as wt, InlineCustomToolsWirePayload as x, Oauth2FailedConnectionData as xa, MCPToolkitConfigsArraySchema as xi, FileDeleteResponse as xn, ToolkitVersions as xo, CreateConnectedAccountOptions as xr, ToolRouterSessionConfigHistoryConfig as xt, CustomToolsMapEntry as y, Oauth2ExpiredConnectionData as ya, MCPToolkitConfig as yi, ToolkitConnectionsDetailsSchema as yn, ToolkitVersionParamSchema as yo, CreateConnectedAccountLinkResponse as yr, ToolRouterSandboxConfigSchema as yt, SessionWithoutMcp as z, ToolOptions as za, GlobalExecuteToolFn as zi, ConnectedAccountAclConfigResponseSchema as zn, ComposioGenerateURLResponseSchema as zr, ToolRouterSessionListConfigHistoryResponse as zt };