@composio/core 0.11.0 → 0.13.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 (193) hide show
  1. package/dist/BaseProvider-BBnsv9kS.d.mts +29425 -0
  2. package/dist/{BaseProvider-CVbQxTNa.d.cts → BaseProvider-Brb3o86-.d.mts} +91 -44
  3. package/dist/CustomTool-D9qwyMrv.mjs +468 -0
  4. package/dist/{CustomTool-C-IUByoU.d.cts → CustomTool-Dmi6ti3I.d.mts} +2 -4
  5. package/dist/{CustomTool-CChQSp44.d.mts → CustomTool-DrJpOhY2.d.mts} +2 -4
  6. package/dist/{FileModifierErrors-C7z16Dfi.mjs → FileModifierErrors-3fSwIWoa.mjs} +35 -36
  7. package/dist/{Telemetry-DQax33Gh.mjs → Telemetry-DhGI_J4G.mjs} +15 -15
  8. package/dist/{composio-pcA13w87.d.cts → composio-DHIKRdeG.d.mts} +641 -380
  9. package/dist/{composio-BlASKqjQ.d.mts → composio-vMwhASRc.d.mts} +1390 -1129
  10. package/dist/{customTool.types-QtkAZQma.d.cts → customTool.types-CKH2R2ia.d.mts} +487 -189
  11. package/dist/{customTool.types-DLIORcYN.d.mts → customTool.types-DXin7Cfc.d.mts} +924 -626
  12. package/dist/docs/error-consistency.md +97 -0
  13. package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +306 -0
  14. package/dist/docs/reference/sdk-reference/typescript/composio.mdx +205 -0
  15. package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +488 -0
  16. package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +94 -0
  17. package/dist/docs/reference/sdk-reference/typescript/index.mdx +67 -0
  18. package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +304 -0
  19. package/dist/docs/reference/sdk-reference/typescript/meta.json +17 -0
  20. package/dist/docs/reference/sdk-reference/typescript/remote-file.mdx +107 -0
  21. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +163 -0
  22. package/dist/docs/reference/sdk-reference/typescript/session.mdx +229 -0
  23. package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +131 -0
  24. package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +169 -0
  25. package/dist/docs/reference/sdk-reference/typescript/tools.mdx +453 -0
  26. package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +434 -0
  27. package/dist/{CustomTool-D5s-aADw.mjs → errors-DSIlYfl5.mjs} +72 -459
  28. package/dist/experimental/index.d.mts +2 -3
  29. package/dist/experimental/index.mjs +1 -3
  30. package/dist/{fileUtils.node-Dq7ebZPC.mjs → fileUtils.node-BiO1JQsJ.mjs} +26 -25
  31. package/dist/index.d.mts +1708 -2400
  32. package/dist/index.mjs +2632 -2006
  33. package/dist/jsonSchema-CFKdONpP.mjs +251 -0
  34. package/dist/models/Files.node.d.mts +1 -2
  35. package/dist/models/Files.node.mjs +3 -4
  36. package/dist/models/Files.workerd.d.mts +0 -1
  37. package/dist/platform/node.d.mts +1 -2
  38. package/dist/platform/workerd.d.mts +1 -2
  39. package/dist/{chunk-CWQeghP5.mjs → rolldown-runtime-w6R9maHv.mjs} +3 -5
  40. package/dist/{types-J2KCXP8R.d.mts → types-D4Id3wXA.d.mts} +2 -3
  41. package/dist/{types-DRG5qLxI.d.cts → types-qTbYYBJw.d.mts} +2 -3
  42. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -4
  43. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -4
  44. package/dist/utils/config-defaults/ConfigDefaults.workerd.mjs +3 -0
  45. package/dist/utils/json-schema.d.mts +2 -0
  46. package/dist/utils/json-schema.mjs +3 -0
  47. package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -1
  48. package/dist/utils/modifiers/FileToolModifier.node.mjs +44 -24
  49. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +3 -1
  50. package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
  51. package/docs/error-consistency.md +97 -0
  52. package/package.json +40 -88
  53. package/src/composio.ts +509 -0
  54. package/src/errors/AuthConfigErrors.ts +23 -0
  55. package/src/errors/ComposioError.ts +408 -0
  56. package/src/errors/ConnectedAccountsErrors.ts +158 -0
  57. package/src/errors/ConnectionRequestErrors.ts +32 -0
  58. package/src/errors/FileModifierErrors.ts +100 -0
  59. package/src/errors/PusherErrors.ts +28 -0
  60. package/src/errors/RemoteFileErrors.ts +62 -0
  61. package/src/errors/SDKErrors.ts +92 -0
  62. package/src/errors/ToolErrors.ts +244 -0
  63. package/src/errors/ToolkitErrors.ts +39 -0
  64. package/src/errors/TriggerErrors.ts +120 -0
  65. package/src/errors/ValidationErrors.ts +99 -0
  66. package/src/errors/index.ts +41 -0
  67. package/src/experimental/index.ts +28 -0
  68. package/src/index.ts +64 -0
  69. package/src/lib/toolRouterConstants.ts +1 -0
  70. package/src/lib/toolRouterParams.ts +306 -0
  71. package/src/models/AuthConfigs.ts +398 -0
  72. package/src/models/AuthScheme.ts +206 -0
  73. package/src/models/ConnectedAccounts.ts +735 -0
  74. package/src/models/ConnectionRequest.ts +150 -0
  75. package/src/models/CustomTool.ts +676 -0
  76. package/src/models/Experimental.ts +202 -0
  77. package/src/models/Files.node.ts +93 -0
  78. package/src/models/Files.workerd.ts +49 -0
  79. package/src/models/MCP.ts +478 -0
  80. package/src/models/RemoteFile.ts +172 -0
  81. package/src/models/SessionContext.ts +147 -0
  82. package/src/models/Sessions.ts +21 -0
  83. package/src/models/ToolRouter.ts +391 -0
  84. package/src/models/ToolRouterSession.ts +827 -0
  85. package/src/models/ToolRouterSessionFileMount.ts +389 -0
  86. package/src/models/Toolkits.ts +412 -0
  87. package/src/models/Tools.ts +1260 -0
  88. package/src/models/Triggers.ts +1381 -0
  89. package/src/models/customToolExecution.ts +118 -0
  90. package/src/models/inlineCustomToolsPayload.ts +17 -0
  91. package/src/models/proxyParamsTransform.ts +26 -0
  92. package/src/provider/BaseProvider.ts +138 -0
  93. package/src/provider/ComposioProvider.ts +29 -0
  94. package/src/provider/OpenAIProvider.ts +547 -0
  95. package/src/services/internal/InternalService.ts +50 -0
  96. package/src/services/internal/InternalService.types.ts +14 -0
  97. package/src/services/pusher/Pusher.ts +230 -0
  98. package/src/services/telemetry/TelemetryService.ts +48 -0
  99. package/src/services/telemetry/TelemetryService.types.ts +67 -0
  100. package/src/telemetry/BatchProcessor.ts +77 -0
  101. package/src/telemetry/README.md +123 -0
  102. package/src/telemetry/Telemetry.ts +356 -0
  103. package/src/types/ToolRouterSessionFilesMount.types.ts +96 -0
  104. package/src/types/authConfigs.types.ts +174 -0
  105. package/src/types/composio.types.ts +1 -0
  106. package/src/types/connectedAccountAuthStates.types.ts +852 -0
  107. package/src/types/connectedAccounts.types.ts +395 -0
  108. package/src/types/connectionRequest.types.ts +16 -0
  109. package/src/types/customTool.types.ts +261 -0
  110. package/{dist/files.types-lo4zZd87.d.cts → src/types/files.types.ts} +3 -5
  111. package/src/types/mcp.experimental.types.ts +163 -0
  112. package/src/types/mcp.types.ts +362 -0
  113. package/src/types/modifiers.types.ts +663 -0
  114. package/src/types/org.types.ts +0 -0
  115. package/src/types/provider.types.ts +41 -0
  116. package/src/types/pusher.types.ts +18 -0
  117. package/src/types/requestOptions.types.ts +62 -0
  118. package/src/types/telemetry.types.ts +89 -0
  119. package/src/types/tool.types.ts +408 -0
  120. package/src/types/toolRouter.types.ts +761 -0
  121. package/src/types/toolkit.types.ts +130 -0
  122. package/src/types/triggers.types.ts +401 -0
  123. package/src/types/webhookEvents.types.ts +219 -0
  124. package/src/utils/buffer.ts +30 -0
  125. package/src/utils/cancellation.ts +22 -0
  126. package/src/utils/config-defaults/ConfigDefaults.node.ts +7 -0
  127. package/src/utils/config-defaults/ConfigDefaults.workerd.ts +10 -0
  128. package/src/utils/config-defaults/index.ts +1 -0
  129. package/src/utils/config-defaults/types.ts +14 -0
  130. package/src/utils/constants.ts +22 -0
  131. package/src/utils/crypto.ts +34 -0
  132. package/src/utils/env.ts +34 -0
  133. package/src/utils/fileDirs.ts +81 -0
  134. package/src/utils/fileUtils.node.ts +458 -0
  135. package/src/utils/json-schema.ts +1 -0
  136. package/src/utils/jsonSchema.ts +355 -0
  137. package/src/utils/logger.ts +99 -0
  138. package/src/utils/mime.ts +75 -0
  139. package/src/utils/modifiers/FileToolModifier.node.ts +477 -0
  140. package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +132 -0
  141. package/src/utils/modifiers/FileToolModifier.workerd.ts +51 -0
  142. package/src/utils/pagination.ts +73 -0
  143. package/src/utils/pusher.ts +286 -0
  144. package/src/utils/schemaPropertyKeys.ts +433 -0
  145. package/src/utils/sdk.ts +110 -0
  146. package/src/utils/sensitiveFileUploadPaths.node.ts +105 -0
  147. package/src/utils/session.ts +114 -0
  148. package/src/utils/toolArguments.ts +73 -0
  149. package/src/utils/toolkitVersion.ts +26 -0
  150. package/src/utils/transform.ts +42 -0
  151. package/src/utils/transformers/authConfigs.ts +107 -0
  152. package/src/utils/transformers/connectedAccounts.ts +119 -0
  153. package/src/utils/transformers/mcp.ts +164 -0
  154. package/src/utils/transformers/toolRouterResponseTransform.ts +160 -0
  155. package/src/utils/transformers/toolkits.ts +100 -0
  156. package/src/utils/transformers/triggers.ts +118 -0
  157. package/src/utils/uploadDirAllowlist.node.ts +178 -0
  158. package/src/utils/uuid.ts +7 -0
  159. package/src/utils/version.ts +58 -0
  160. package/src/utils/zodSchema.ts +90 -0
  161. package/dist/BaseProvider-BvHvJLXc.d.mts +0 -29378
  162. package/dist/CustomTool-D3-NreIm.cjs +0 -1341
  163. package/dist/FileModifierErrors-BYJBHiay.cjs +0 -554
  164. package/dist/FileToolModifier.utils.neutral-DSBQs9-i.cjs +0 -96
  165. package/dist/Telemetry-BQ_pl5AK.cjs +0 -360
  166. package/dist/buffer-BjWptbNH.cjs +0 -63
  167. package/dist/chunk-CQwRTUmo.cjs +0 -53
  168. package/dist/experimental/index.cjs +0 -5
  169. package/dist/experimental/index.d.cts +0 -3
  170. package/dist/fileUtils.node-DtnSRMWa.cjs +0 -462
  171. package/dist/index.cjs +0 -8523
  172. package/dist/index.d.cts +0 -6065
  173. package/dist/models/Files.node.cjs +0 -55
  174. package/dist/models/Files.node.d.cts +0 -56
  175. package/dist/models/Files.workerd.cjs +0 -29
  176. package/dist/models/Files.workerd.d.cts +0 -13
  177. package/dist/platform/node.cjs +0 -55
  178. package/dist/platform/node.d.cts +0 -11
  179. package/dist/platform/workerd.cjs +0 -42
  180. package/dist/platform/workerd.d.cts +0 -12
  181. package/dist/types-pDNm1lYs.d.cts +0 -69
  182. package/dist/utils/config-defaults/ConfigDefaults.node.cjs +0 -10
  183. package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +0 -7
  184. package/dist/utils/config-defaults/ConfigDefaults.workerd.cjs +0 -10
  185. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +0 -7
  186. package/dist/utils/modifiers/FileToolModifier.node.cjs +0 -224
  187. package/dist/utils/modifiers/FileToolModifier.node.d.cts +0 -22
  188. package/dist/utils/modifiers/FileToolModifier.workerd.cjs +0 -27
  189. package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +0 -20
  190. /package/dist/{FileToolModifier.utils.neutral-BpSceNK8.mjs → FileToolModifier.utils.neutral-B5rT711M.mjs} +0 -0
  191. /package/dist/{buffer-yOtEsT4J.mjs → buffer-PcbMMsgm.mjs} +0 -0
  192. /package/dist/{files.types-BXDWA_zS.d.mts → files.types-DeMC_mAW.d.mts} +0 -0
  193. /package/dist/{types-HpJQ8K9l.d.mts → types-DdoCRzLj.d.mts} +0 -0
@@ -1,16 +1,55 @@
1
- import { $t as ExecuteToolModifiers, An as ToolRetrievalOptions, Cn as ToolList, Ln as ToolkitVersionParam, On as ToolProxyParams, X as McpServerGetResponse, _n as ToolExecuteMetaParams, at as ExecuteToolFnOptions, gn as Tool, hn as SchemaModifierOptions, n as BaseComposioProvider, nn as SessionExecuteMetaModifiers, r as BaseNonAgenticProvider, tn as ProviderOptions, tt as McpUrlResponse, wn as ToolListParams, xn as ToolExecuteResponse, yn as ToolExecuteParams } from "./BaseProvider-CVbQxTNa.cjs";
2
- import { I as ToolRouterCreateSessionConfig, Kt as ConnectedAccountListResponse, Mt as ConnectionRequest, T as Session, Wt as ConnectedAccountListParams, Yt as ConnectedAccountRefreshOptions, Zt as ConnectedAccountRetrieveResponse, _n as UpdateConnectedAccountAclParams, a as CustomTool, d as CustomToolkit, on as CreateConnectedAccountLinkOptions, un as CreateConnectedAccountOptions, yn as UpdateConnectedAccountParams } from "./customTool.types-QtkAZQma.cjs";
1
+ import { $t as ExecuteToolModifiers, An as ToolRetrievalOptions, Cn as ToolList, Ln as ToolkitVersionParam, On as ToolProxyParams, X as McpServerGetResponse, _n as ToolExecuteMetaParams, at as ExecuteToolFnOptions, gn as Tool, hn as SchemaModifierOptions, n as BaseComposioProvider, nn as SessionExecuteMetaModifiers, r as BaseNonAgenticProvider, tn as ProviderOptions, tt as McpUrlResponse, wn as ToolListParams, xn as ToolExecuteResponse, yn as ToolExecuteParams } from "./BaseProvider-BBnsv9kS.mjs";
2
+ import { Cn as UpdateConnectedAccountAclParams, D as Session, M as SessionWithoutMcp, Qt as ConnectedAccountListResponse, Rt as ConnectionRequest, Tn as UpdateConnectedAccountParams, Xt as ConnectedAccountListParams, f as CustomToolkit, fn as CreateConnectedAccountLinkOptions, gn as CreateConnectedAccountOptions, o as CustomTool, rn as ConnectedAccountRetrieveResponse, tn as ConnectedAccountRefreshOptions, z as ToolRouterCreateSessionConfig } from "./customTool.types-CKH2R2ia.mjs";
3
+ import ComposioClient, { Composio } from "@composio/client";
3
4
  import z$1, { z } from "zod/v3";
5
+ import { OpenAI } from "openai";
6
+ import { Files } from "#files";
4
7
  import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
5
- import ComposioClient, { Composio } from "@composio/client";
6
8
  import { SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
7
9
  import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
8
10
  import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
9
11
  import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
10
- import { OpenAI } from "openai";
11
12
  import { Stream } from "openai/streaming";
12
- import { Files } from "#files";
13
13
 
14
+ //#region src/types/requestOptions.types.d.ts
15
+ /**
16
+ * Per-request transport options for cancelling an SDK call.
17
+ *
18
+ * For `tools.get` and `tools.execute`, pass `signal` directly in the
19
+ * options bag (3rd argument) alongside any modifiers or provider options.
20
+ * For other methods (e.g. `toolkits.get`, `authConfigs.list`), pass as a
21
+ * trailing argument. Forwarded to the underlying `@composio/client` request.
22
+ *
23
+ * If the underlying request is aborted via this signal, the SDK throws a
24
+ * {@link ComposioRequestCancelledError} so callers can `instanceof`-detect
25
+ * cancellation without unwrapping nested causes.
26
+ *
27
+ * @example Timeout after 5 seconds
28
+ * ```typescript
29
+ * await composio.tools.execute(
30
+ * 'HACKERNEWS_GET_FRONTPAGE',
31
+ * { userId: 'default', arguments: {} },
32
+ * { signal: AbortSignal.timeout(5_000) }
33
+ * );
34
+ * ```
35
+ *
36
+ * @example Combine signal with modifiers
37
+ * ```typescript
38
+ * await composio.tools.execute('TOOL', body, {
39
+ * signal: AbortSignal.timeout(10_000),
40
+ * beforeExecute: ({ params }) => params,
41
+ * });
42
+ * ```
43
+ */
44
+ type ComposioRequestOptions = {
45
+ /**
46
+ * An `AbortSignal` used to cancel the in-flight HTTP request. When the
47
+ * signal aborts, the underlying fetch is aborted and the SDK throws a
48
+ * {@link ComposioRequestCancelledError} (subclass of {@link ComposioError}).
49
+ */
50
+ signal?: AbortSignal;
51
+ };
52
+ //#endregion
14
53
  //#region src/models/Tools.d.ts
15
54
  type ToolRouterSessionExecuteOptions = {
16
55
  experimental?: SessionExecuteParams.Experimental;
@@ -152,7 +191,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
152
191
  * });
153
192
  * ```
154
193
  */
155
- getRawComposioTools(query: ToolListParams, options?: SchemaModifierOptions): Promise<ToolList>;
194
+ getRawComposioTools(query: ToolListParams, options?: SchemaModifierOptions, requestOptions?: ComposioRequestOptions): Promise<ToolList>;
156
195
  /**
157
196
  * Fetches tools exposed by a tool router session.
158
197
  * This includes helper/meta tools plus any tools preloaded into the session.
@@ -169,7 +208,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
169
208
  * console.log(sessionTools);
170
209
  * ```
171
210
  */
172
- getRawToolRouterSessionTools(sessionId: string, options?: SchemaModifierOptions): Promise<ToolList>;
211
+ getRawToolRouterSessionTools(sessionId: string, options?: SchemaModifierOptions, requestOptions?: ComposioRequestOptions): Promise<ToolList>;
173
212
  /**
174
213
  * Retrieves a specific tool by its slug from the Composio API.
175
214
  *
@@ -220,14 +259,14 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
220
259
  * });
221
260
  * ```
222
261
  */
223
- getRawComposioToolBySlug(slug: string, options?: ToolRetrievalOptions): Promise<Tool>;
262
+ getRawComposioToolBySlug(slug: string, options?: ToolRetrievalOptions, requestOptions?: ComposioRequestOptions): Promise<Tool>;
224
263
  /**
225
264
  * Get a list of tools from Composio based on filters.
226
265
  * This method fetches the tools from the Composio API and wraps them using the provider.
227
266
  *
228
267
  * @param {string} userId - The user id to get the tools for
229
268
  * @param {ToolListParams} filters - The filters to apply when fetching tools
230
- * @param {ProviderOptions<TProvider>} [options] - Optional provider options including modifiers
269
+ * @param {ProviderOptions<TProvider> & ComposioRequestOptions} [options] - Provider options, modifiers, and/or AbortSignal
231
270
  * @returns {Promise<ReturnType<T['wrapTools']>>} The wrapped tools collection
232
271
  *
233
272
  * @example
@@ -238,32 +277,20 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
238
277
  * limit: 10
239
278
  * });
240
279
  *
241
- * // Get tools with search
242
- * const searchTools = await composio.tools.get('default', {
243
- * search: 'user',
244
- * limit: 10
245
- * });
246
- *
247
- * // Get a specific tool by slug
248
- * const hackerNewsUserTool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
249
- *
250
- * // Get a tool with schema modifications
251
- * const tool = await composio.tools.get('default', 'GITHUB_GET_REPOS', {
252
- * modifySchema: (toolSlug, toolkitSlug, schema) => {
253
- * // Customize the tool schema
254
- * return {...schema, description: 'Custom description'};
255
- * }
256
- * });
280
+ * // Timeout a slow search after 5s
281
+ * const emailTools = await composio.tools.get('default', {
282
+ * search: 'send email',
283
+ * }, { signal: AbortSignal.timeout(5_000) });
257
284
  * ```
258
285
  */
259
- get<T extends TProvider>(userId: string, filters: ToolListParams, options?: ProviderOptions<TProvider>): Promise<ReturnType<T['wrapTools']>>;
286
+ get<T extends TProvider>(userId: string, filters: ToolListParams, options?: ProviderOptions<TProvider> & ComposioRequestOptions): Promise<ReturnType<T['wrapTools']>>;
260
287
  /**
261
288
  * Get a specific tool by its slug.
262
289
  * This method fetches the tool from the Composio API and wraps it using the provider.
263
290
  *
264
291
  * @param {string} userId - The user id to get the tool for
265
292
  * @param {string} slug - The slug of the tool to fetch
266
- * @param {ProviderOptions<TProvider>} [options] - Optional provider options including modifiers
293
+ * @param {ProviderOptions<TProvider> & ComposioRequestOptions} [options] - Optional provider options including modifiers and signal
267
294
  * @returns {Promise<ReturnType<T['wrapTools']>>} The wrapped tool
268
295
  *
269
296
  * @example
@@ -278,9 +305,14 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
278
305
  * return {...schema, description: 'Custom description'};
279
306
  * }
280
307
  * });
308
+ *
309
+ * // Timeout after 5s
310
+ * const tools = await composio.tools.get('user_1', { search: 'email' }, {
311
+ * signal: AbortSignal.timeout(5_000)
312
+ * });
281
313
  * ```
282
314
  */
283
- get<T extends TProvider>(userId: string, slug: string, options?: ProviderOptions<TProvider>): Promise<ReturnType<T['wrapTools']>>;
315
+ get<T extends TProvider>(userId: string, slug: string, options?: ProviderOptions<TProvider> & ComposioRequestOptions): Promise<ReturnType<T['wrapTools']>>;
284
316
  /**
285
317
  * @internal
286
318
  * Creates a global execute tool function.
@@ -354,8 +386,8 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
354
386
  * @param {string} [body.userId] - The user ID to execute the tool for
355
387
  * @param {string} [body.connectedAccountId] - The connected account ID to use for authenticated tools
356
388
  * @param {Record<string, unknown>} [body.arguments] - The arguments to pass to the tool
357
- * @param {ExecuteToolModifiers} [modifiers] - Optional modifiers to transform the request or response
358
- * @returns {Promise<ToolExecuteResponse>} - The response from the tool execution
389
+ * @param {ExecuteToolModifiers & ComposioRequestOptions} [options] - Optional modifiers and request options
390
+ * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
359
391
  *
360
392
  * @throws {ComposioConnectedAccountNotFoundError} If the connected account is not found
361
393
  * @throws {ComposioToolNotFoundError} If the tool with the given slug is not found
@@ -407,8 +439,17 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
407
439
  * }
408
440
  * });
409
441
  * ```
442
+ *
443
+ * @example Execute with timeout
444
+ * ```typescript
445
+ * const result = await composio.tools.execute('HACKERNEWS_GET_FRONTPAGE', {
446
+ * userId: 'default',
447
+ * arguments: {},
448
+ * dangerouslySkipVersionCheck: true,
449
+ * }, { signal: AbortSignal.timeout(5_000) });
450
+ * ```
410
451
  */
411
- execute(slug: string, body: ToolExecuteParams, modifiers?: ExecuteToolModifiers): Promise<ToolExecuteResponse>;
452
+ execute(slug: string, body: ToolExecuteParams, options?: ExecuteToolModifiers & ComposioRequestOptions): Promise<ToolExecuteResponse>;
412
453
  /**
413
454
  * Executes a tool based on a tool router session.
414
455
  *
@@ -420,7 +461,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
420
461
  * @param {Tool} tool - Optional tool schema used to resolve toolkit metadata for modifiers
421
462
  * @returns {Promise<ToolExecuteResponse>} The response from the tool execution
422
463
  */
423
- executeSessionTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: SessionExecuteMetaModifiers, tool?: Tool, options?: ToolRouterSessionExecuteOptions): Promise<ToolExecuteResponse>;
464
+ executeSessionTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: SessionExecuteMetaModifiers, tool?: Tool, options?: ToolRouterSessionExecuteOptions, requestOptions?: ComposioRequestOptions): Promise<ToolExecuteResponse>;
424
465
  /**
425
466
  * Fetches the list of all available tools in the Composio SDK.
426
467
  *
@@ -435,7 +476,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
435
476
  * console.log(toolsEnum.items);
436
477
  * ```
437
478
  */
438
- getToolsEnum(): Promise<ToolRetrieveEnumResponse>;
479
+ getToolsEnum(requestOptions?: ComposioRequestOptions): Promise<ToolRetrieveEnumResponse>;
439
480
  /**
440
481
  * Fetches the input parameters for a given tool.
441
482
  *
@@ -454,7 +495,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
454
495
  * console.log(inputParams.schema);
455
496
  * ```
456
497
  */
457
- getInput(slug: string, body: ToolGetInputParams): Promise<ToolGetInputResponse>;
498
+ getInput(slug: string, body: ToolGetInputParams, requestOptions?: ComposioRequestOptions): Promise<ToolGetInputResponse>;
458
499
  /**
459
500
  * Proxies a custom request to a toolkit/integration.
460
501
  *
@@ -478,7 +519,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
478
519
  * console.log(response.data);
479
520
  * ```
480
521
  */
481
- proxyExecute(body: ToolProxyParams): Promise<ToolProxyResponse>;
522
+ proxyExecute(body: ToolProxyParams, requestOptions?: ComposioRequestOptions): Promise<ToolProxyResponse>;
482
523
  }
483
524
  //#endregion
484
525
  //#region src/types/toolkit.types.d.ts
@@ -494,14 +535,14 @@ declare const ToolkitsListParamsSchema: z.ZodObject<{
494
535
  cursor: z.ZodOptional<z.ZodString>;
495
536
  limit: z.ZodOptional<z.ZodNumber>;
496
537
  }, "strip", z.ZodTypeAny, {
497
- limit?: number | undefined;
498
538
  cursor?: string | undefined;
539
+ limit?: number | undefined;
499
540
  category?: string | undefined;
500
541
  managedBy?: "all" | "composio" | "project" | undefined;
501
542
  sortBy?: "usage" | "alphabetically" | undefined;
502
543
  }, {
503
- limit?: number | undefined;
504
544
  cursor?: string | undefined;
545
+ limit?: number | undefined;
505
546
  category?: string | undefined;
506
547
  managedBy?: "all" | "composio" | "project" | undefined;
507
548
  sortBy?: "usage" | "alphabetically" | undefined;
@@ -532,10 +573,11 @@ declare const ToolKitMetaSchema: z.ZodObject<{
532
573
  updatedAt: z.ZodOptional<z.ZodString>;
533
574
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
534
575
  }, "strip", z.ZodTypeAny, {
535
- description?: string | undefined;
576
+ createdAt?: string | undefined;
577
+ updatedAt?: string | undefined;
536
578
  logo?: string | undefined;
579
+ description?: string | undefined;
537
580
  availableVersions?: string[] | undefined;
538
- createdAt?: string | undefined;
539
581
  categories?: {
540
582
  name: string;
541
583
  slug: string;
@@ -543,12 +585,12 @@ declare const ToolKitMetaSchema: z.ZodObject<{
543
585
  appUrl?: string | undefined;
544
586
  toolsCount?: number | undefined;
545
587
  triggersCount?: number | undefined;
546
- updatedAt?: string | undefined;
547
588
  }, {
548
- description?: string | undefined;
589
+ createdAt?: string | undefined;
590
+ updatedAt?: string | undefined;
549
591
  logo?: string | undefined;
592
+ description?: string | undefined;
550
593
  availableVersions?: string[] | undefined;
551
- createdAt?: string | undefined;
552
594
  categories?: {
553
595
  name: string;
554
596
  slug: string;
@@ -556,7 +598,6 @@ declare const ToolKitMetaSchema: z.ZodObject<{
556
598
  appUrl?: string | undefined;
557
599
  toolsCount?: number | undefined;
558
600
  triggersCount?: number | undefined;
559
- updatedAt?: string | undefined;
560
601
  }>;
561
602
  declare const ToolKitItemSchema: z.ZodObject<{
562
603
  name: z.ZodString;
@@ -581,10 +622,11 @@ declare const ToolKitItemSchema: z.ZodObject<{
581
622
  updatedAt: z.ZodOptional<z.ZodString>;
582
623
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
583
624
  }, "strip", z.ZodTypeAny, {
584
- description?: string | undefined;
625
+ createdAt?: string | undefined;
626
+ updatedAt?: string | undefined;
585
627
  logo?: string | undefined;
628
+ description?: string | undefined;
586
629
  availableVersions?: string[] | undefined;
587
- createdAt?: string | undefined;
588
630
  categories?: {
589
631
  name: string;
590
632
  slug: string;
@@ -592,12 +634,12 @@ declare const ToolKitItemSchema: z.ZodObject<{
592
634
  appUrl?: string | undefined;
593
635
  toolsCount?: number | undefined;
594
636
  triggersCount?: number | undefined;
595
- updatedAt?: string | undefined;
596
637
  }, {
597
- description?: string | undefined;
638
+ createdAt?: string | undefined;
639
+ updatedAt?: string | undefined;
598
640
  logo?: string | undefined;
641
+ description?: string | undefined;
599
642
  availableVersions?: string[] | undefined;
600
- createdAt?: string | undefined;
601
643
  categories?: {
602
644
  name: string;
603
645
  slug: string;
@@ -605,7 +647,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
605
647
  appUrl?: string | undefined;
606
648
  toolsCount?: number | undefined;
607
649
  triggersCount?: number | undefined;
608
- updatedAt?: string | undefined;
609
650
  }>;
610
651
  isLocalToolkit: z.ZodBoolean;
611
652
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -615,10 +656,11 @@ declare const ToolKitItemSchema: z.ZodObject<{
615
656
  name: string;
616
657
  slug: string;
617
658
  meta: {
618
- description?: string | undefined;
659
+ createdAt?: string | undefined;
660
+ updatedAt?: string | undefined;
619
661
  logo?: string | undefined;
662
+ description?: string | undefined;
620
663
  availableVersions?: string[] | undefined;
621
- createdAt?: string | undefined;
622
664
  categories?: {
623
665
  name: string;
624
666
  slug: string;
@@ -626,7 +668,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
626
668
  appUrl?: string | undefined;
627
669
  toolsCount?: number | undefined;
628
670
  triggersCount?: number | undefined;
629
- updatedAt?: string | undefined;
630
671
  };
631
672
  isLocalToolkit: boolean;
632
673
  authSchemes?: string[] | undefined;
@@ -636,10 +677,11 @@ declare const ToolKitItemSchema: z.ZodObject<{
636
677
  name: string;
637
678
  slug: string;
638
679
  meta: {
639
- description?: string | undefined;
680
+ createdAt?: string | undefined;
681
+ updatedAt?: string | undefined;
640
682
  logo?: string | undefined;
683
+ description?: string | undefined;
641
684
  availableVersions?: string[] | undefined;
642
- createdAt?: string | undefined;
643
685
  categories?: {
644
686
  name: string;
645
687
  slug: string;
@@ -647,7 +689,6 @@ declare const ToolKitItemSchema: z.ZodObject<{
647
689
  appUrl?: string | undefined;
648
690
  toolsCount?: number | undefined;
649
691
  triggersCount?: number | undefined;
650
- updatedAt?: string | undefined;
651
692
  };
652
693
  isLocalToolkit: boolean;
653
694
  authSchemes?: string[] | undefined;
@@ -677,10 +718,11 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
677
718
  updatedAt: z.ZodOptional<z.ZodString>;
678
719
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
679
720
  }, "strip", z.ZodTypeAny, {
680
- description?: string | undefined;
721
+ createdAt?: string | undefined;
722
+ updatedAt?: string | undefined;
681
723
  logo?: string | undefined;
724
+ description?: string | undefined;
682
725
  availableVersions?: string[] | undefined;
683
- createdAt?: string | undefined;
684
726
  categories?: {
685
727
  name: string;
686
728
  slug: string;
@@ -688,12 +730,12 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
688
730
  appUrl?: string | undefined;
689
731
  toolsCount?: number | undefined;
690
732
  triggersCount?: number | undefined;
691
- updatedAt?: string | undefined;
692
733
  }, {
693
- description?: string | undefined;
734
+ createdAt?: string | undefined;
735
+ updatedAt?: string | undefined;
694
736
  logo?: string | undefined;
737
+ description?: string | undefined;
695
738
  availableVersions?: string[] | undefined;
696
- createdAt?: string | undefined;
697
739
  categories?: {
698
740
  name: string;
699
741
  slug: string;
@@ -701,7 +743,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
701
743
  appUrl?: string | undefined;
702
744
  toolsCount?: number | undefined;
703
745
  triggersCount?: number | undefined;
704
- updatedAt?: string | undefined;
705
746
  }>;
706
747
  isLocalToolkit: z.ZodBoolean;
707
748
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -711,10 +752,11 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
711
752
  name: string;
712
753
  slug: string;
713
754
  meta: {
714
- description?: string | undefined;
755
+ createdAt?: string | undefined;
756
+ updatedAt?: string | undefined;
715
757
  logo?: string | undefined;
758
+ description?: string | undefined;
716
759
  availableVersions?: string[] | undefined;
717
- createdAt?: string | undefined;
718
760
  categories?: {
719
761
  name: string;
720
762
  slug: string;
@@ -722,7 +764,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
722
764
  appUrl?: string | undefined;
723
765
  toolsCount?: number | undefined;
724
766
  triggersCount?: number | undefined;
725
- updatedAt?: string | undefined;
726
767
  };
727
768
  isLocalToolkit: boolean;
728
769
  authSchemes?: string[] | undefined;
@@ -732,10 +773,11 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
732
773
  name: string;
733
774
  slug: string;
734
775
  meta: {
735
- description?: string | undefined;
776
+ createdAt?: string | undefined;
777
+ updatedAt?: string | undefined;
736
778
  logo?: string | undefined;
779
+ description?: string | undefined;
737
780
  availableVersions?: string[] | undefined;
738
- createdAt?: string | undefined;
739
781
  categories?: {
740
782
  name: string;
741
783
  slug: string;
@@ -743,7 +785,6 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
743
785
  appUrl?: string | undefined;
744
786
  toolsCount?: number | undefined;
745
787
  triggersCount?: number | undefined;
746
- updatedAt?: string | undefined;
747
788
  };
748
789
  isLocalToolkit: boolean;
749
790
  authSchemes?: string[] | undefined;
@@ -764,16 +805,16 @@ declare const ToolkitAuthFieldSchema: z.ZodObject<{
764
805
  type: z.ZodString;
765
806
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
766
807
  }, "strip", z.ZodTypeAny, {
808
+ type: string;
767
809
  name: string;
768
810
  description: string;
769
- type: string;
770
811
  required: boolean;
771
812
  displayName: string;
772
813
  default?: string | null | undefined;
773
814
  }, {
815
+ type: string;
774
816
  name: string;
775
817
  description: string;
776
- type: string;
777
818
  required: boolean;
778
819
  displayName: string;
779
820
  default?: string | null | undefined;
@@ -791,16 +832,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
791
832
  type: z.ZodString;
792
833
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
834
  }, "strip", z.ZodTypeAny, {
835
+ type: string;
794
836
  name: string;
795
837
  description: string;
796
- type: string;
797
838
  required: boolean;
798
839
  displayName: string;
799
840
  default?: string | null | undefined;
800
841
  }, {
842
+ type: string;
801
843
  name: string;
802
844
  description: string;
803
- type: string;
804
845
  required: boolean;
805
846
  displayName: string;
806
847
  default?: string | null | undefined;
@@ -813,50 +854,50 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
813
854
  type: z.ZodString;
814
855
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
815
856
  }, "strip", z.ZodTypeAny, {
857
+ type: string;
816
858
  name: string;
817
859
  description: string;
818
- type: string;
819
860
  required: boolean;
820
861
  displayName: string;
821
862
  default?: string | null | undefined;
822
863
  }, {
864
+ type: string;
823
865
  name: string;
824
866
  description: string;
825
- type: string;
826
867
  required: boolean;
827
868
  displayName: string;
828
869
  default?: string | null | undefined;
829
870
  }>, "many">;
830
871
  }, "strip", z.ZodTypeAny, {
831
872
  required: {
873
+ type: string;
832
874
  name: string;
833
875
  description: string;
834
- type: string;
835
876
  required: boolean;
836
877
  displayName: string;
837
878
  default?: string | null | undefined;
838
879
  }[];
839
880
  optional: {
881
+ type: string;
840
882
  name: string;
841
883
  description: string;
842
- type: string;
843
884
  required: boolean;
844
885
  displayName: string;
845
886
  default?: string | null | undefined;
846
887
  }[];
847
888
  }, {
848
889
  required: {
890
+ type: string;
849
891
  name: string;
850
892
  description: string;
851
- type: string;
852
893
  required: boolean;
853
894
  displayName: string;
854
895
  default?: string | null | undefined;
855
896
  }[];
856
897
  optional: {
898
+ type: string;
857
899
  name: string;
858
900
  description: string;
859
- type: string;
860
901
  required: boolean;
861
902
  displayName: string;
862
903
  default?: string | null | undefined;
@@ -871,16 +912,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
871
912
  type: z.ZodString;
872
913
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
914
  }, "strip", z.ZodTypeAny, {
915
+ type: string;
874
916
  name: string;
875
917
  description: string;
876
- type: string;
877
918
  required: boolean;
878
919
  displayName: string;
879
920
  default?: string | null | undefined;
880
921
  }, {
922
+ type: string;
881
923
  name: string;
882
924
  description: string;
883
- type: string;
884
925
  required: boolean;
885
926
  displayName: string;
886
927
  default?: string | null | undefined;
@@ -893,50 +934,50 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
893
934
  type: z.ZodString;
894
935
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
936
  }, "strip", z.ZodTypeAny, {
937
+ type: string;
896
938
  name: string;
897
939
  description: string;
898
- type: string;
899
940
  required: boolean;
900
941
  displayName: string;
901
942
  default?: string | null | undefined;
902
943
  }, {
944
+ type: string;
903
945
  name: string;
904
946
  description: string;
905
- type: string;
906
947
  required: boolean;
907
948
  displayName: string;
908
949
  default?: string | null | undefined;
909
950
  }>, "many">;
910
951
  }, "strip", z.ZodTypeAny, {
911
952
  required: {
953
+ type: string;
912
954
  name: string;
913
955
  description: string;
914
- type: string;
915
956
  required: boolean;
916
957
  displayName: string;
917
958
  default?: string | null | undefined;
918
959
  }[];
919
960
  optional: {
961
+ type: string;
920
962
  name: string;
921
963
  description: string;
922
- type: string;
923
964
  required: boolean;
924
965
  displayName: string;
925
966
  default?: string | null | undefined;
926
967
  }[];
927
968
  }, {
928
969
  required: {
970
+ type: string;
929
971
  name: string;
930
972
  description: string;
931
- type: string;
932
973
  required: boolean;
933
974
  displayName: string;
934
975
  default?: string | null | undefined;
935
976
  }[];
936
977
  optional: {
978
+ type: string;
937
979
  name: string;
938
980
  description: string;
939
- type: string;
940
981
  required: boolean;
941
982
  displayName: string;
942
983
  default?: string | null | undefined;
@@ -945,17 +986,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
945
986
  }, "strip", z.ZodTypeAny, {
946
987
  authConfigCreation: {
947
988
  required: {
989
+ type: string;
948
990
  name: string;
949
991
  description: string;
950
- type: string;
951
992
  required: boolean;
952
993
  displayName: string;
953
994
  default?: string | null | undefined;
954
995
  }[];
955
996
  optional: {
997
+ type: string;
956
998
  name: string;
957
999
  description: string;
958
- type: string;
959
1000
  required: boolean;
960
1001
  displayName: string;
961
1002
  default?: string | null | undefined;
@@ -963,17 +1004,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
963
1004
  };
964
1005
  connectedAccountInitiation: {
965
1006
  required: {
1007
+ type: string;
966
1008
  name: string;
967
1009
  description: string;
968
- type: string;
969
1010
  required: boolean;
970
1011
  displayName: string;
971
1012
  default?: string | null | undefined;
972
1013
  }[];
973
1014
  optional: {
1015
+ type: string;
974
1016
  name: string;
975
1017
  description: string;
976
- type: string;
977
1018
  required: boolean;
978
1019
  displayName: string;
979
1020
  default?: string | null | undefined;
@@ -982,17 +1023,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
982
1023
  }, {
983
1024
  authConfigCreation: {
984
1025
  required: {
1026
+ type: string;
985
1027
  name: string;
986
1028
  description: string;
987
- type: string;
988
1029
  required: boolean;
989
1030
  displayName: string;
990
1031
  default?: string | null | undefined;
991
1032
  }[];
992
1033
  optional: {
1034
+ type: string;
993
1035
  name: string;
994
1036
  description: string;
995
- type: string;
996
1037
  required: boolean;
997
1038
  displayName: string;
998
1039
  default?: string | null | undefined;
@@ -1000,17 +1041,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1000
1041
  };
1001
1042
  connectedAccountInitiation: {
1002
1043
  required: {
1044
+ type: string;
1003
1045
  name: string;
1004
1046
  description: string;
1005
- type: string;
1006
1047
  required: boolean;
1007
1048
  displayName: string;
1008
1049
  default?: string | null | undefined;
1009
1050
  }[];
1010
1051
  optional: {
1052
+ type: string;
1011
1053
  name: string;
1012
1054
  description: string;
1013
- type: string;
1014
1055
  required: boolean;
1015
1056
  displayName: string;
1016
1057
  default?: string | null | undefined;
@@ -1030,17 +1071,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1030
1071
  fields: {
1031
1072
  authConfigCreation: {
1032
1073
  required: {
1074
+ type: string;
1033
1075
  name: string;
1034
1076
  description: string;
1035
- type: string;
1036
1077
  required: boolean;
1037
1078
  displayName: string;
1038
1079
  default?: string | null | undefined;
1039
1080
  }[];
1040
1081
  optional: {
1082
+ type: string;
1041
1083
  name: string;
1042
1084
  description: string;
1043
- type: string;
1044
1085
  required: boolean;
1045
1086
  displayName: string;
1046
1087
  default?: string | null | undefined;
@@ -1048,17 +1089,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1048
1089
  };
1049
1090
  connectedAccountInitiation: {
1050
1091
  required: {
1092
+ type: string;
1051
1093
  name: string;
1052
1094
  description: string;
1053
- type: string;
1054
1095
  required: boolean;
1055
1096
  displayName: string;
1056
1097
  default?: string | null | undefined;
1057
1098
  }[];
1058
1099
  optional: {
1100
+ type: string;
1059
1101
  name: string;
1060
1102
  description: string;
1061
- type: string;
1062
1103
  required: boolean;
1063
1104
  displayName: string;
1064
1105
  default?: string | null | undefined;
@@ -1074,17 +1115,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1074
1115
  fields: {
1075
1116
  authConfigCreation: {
1076
1117
  required: {
1118
+ type: string;
1077
1119
  name: string;
1078
1120
  description: string;
1079
- type: string;
1080
1121
  required: boolean;
1081
1122
  displayName: string;
1082
1123
  default?: string | null | undefined;
1083
1124
  }[];
1084
1125
  optional: {
1126
+ type: string;
1085
1127
  name: string;
1086
1128
  description: string;
1087
- type: string;
1088
1129
  required: boolean;
1089
1130
  displayName: string;
1090
1131
  default?: string | null | undefined;
@@ -1092,17 +1133,17 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
1092
1133
  };
1093
1134
  connectedAccountInitiation: {
1094
1135
  required: {
1136
+ type: string;
1095
1137
  name: string;
1096
1138
  description: string;
1097
- type: string;
1098
1139
  required: boolean;
1099
1140
  displayName: string;
1100
1141
  default?: string | null | undefined;
1101
1142
  }[];
1102
1143
  optional: {
1144
+ type: string;
1103
1145
  name: string;
1104
1146
  description: string;
1105
- type: string;
1106
1147
  required: boolean;
1107
1148
  displayName: string;
1108
1149
  default?: string | null | undefined;
@@ -1136,10 +1177,11 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1136
1177
  updatedAt: z.ZodOptional<z.ZodString>;
1137
1178
  availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1138
1179
  }, "strip", z.ZodTypeAny, {
1139
- description?: string | undefined;
1180
+ createdAt?: string | undefined;
1181
+ updatedAt?: string | undefined;
1140
1182
  logo?: string | undefined;
1183
+ description?: string | undefined;
1141
1184
  availableVersions?: string[] | undefined;
1142
- createdAt?: string | undefined;
1143
1185
  categories?: {
1144
1186
  name: string;
1145
1187
  slug: string;
@@ -1147,12 +1189,12 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1147
1189
  appUrl?: string | undefined;
1148
1190
  toolsCount?: number | undefined;
1149
1191
  triggersCount?: number | undefined;
1150
- updatedAt?: string | undefined;
1151
1192
  }, {
1152
- description?: string | undefined;
1193
+ createdAt?: string | undefined;
1194
+ updatedAt?: string | undefined;
1153
1195
  logo?: string | undefined;
1196
+ description?: string | undefined;
1154
1197
  availableVersions?: string[] | undefined;
1155
- createdAt?: string | undefined;
1156
1198
  categories?: {
1157
1199
  name: string;
1158
1200
  slug: string;
@@ -1160,7 +1202,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1160
1202
  appUrl?: string | undefined;
1161
1203
  toolsCount?: number | undefined;
1162
1204
  triggersCount?: number | undefined;
1163
- updatedAt?: string | undefined;
1164
1205
  }>;
1165
1206
  isLocalToolkit: z.ZodBoolean;
1166
1207
  composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1177,16 +1218,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1177
1218
  type: z.ZodString;
1178
1219
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1179
1220
  }, "strip", z.ZodTypeAny, {
1221
+ type: string;
1180
1222
  name: string;
1181
1223
  description: string;
1182
- type: string;
1183
1224
  required: boolean;
1184
1225
  displayName: string;
1185
1226
  default?: string | null | undefined;
1186
1227
  }, {
1228
+ type: string;
1187
1229
  name: string;
1188
1230
  description: string;
1189
- type: string;
1190
1231
  required: boolean;
1191
1232
  displayName: string;
1192
1233
  default?: string | null | undefined;
@@ -1199,50 +1240,50 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1199
1240
  type: z.ZodString;
1200
1241
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1201
1242
  }, "strip", z.ZodTypeAny, {
1243
+ type: string;
1202
1244
  name: string;
1203
1245
  description: string;
1204
- type: string;
1205
1246
  required: boolean;
1206
1247
  displayName: string;
1207
1248
  default?: string | null | undefined;
1208
1249
  }, {
1250
+ type: string;
1209
1251
  name: string;
1210
1252
  description: string;
1211
- type: string;
1212
1253
  required: boolean;
1213
1254
  displayName: string;
1214
1255
  default?: string | null | undefined;
1215
1256
  }>, "many">;
1216
1257
  }, "strip", z.ZodTypeAny, {
1217
1258
  required: {
1259
+ type: string;
1218
1260
  name: string;
1219
1261
  description: string;
1220
- type: string;
1221
1262
  required: boolean;
1222
1263
  displayName: string;
1223
1264
  default?: string | null | undefined;
1224
1265
  }[];
1225
1266
  optional: {
1267
+ type: string;
1226
1268
  name: string;
1227
1269
  description: string;
1228
- type: string;
1229
1270
  required: boolean;
1230
1271
  displayName: string;
1231
1272
  default?: string | null | undefined;
1232
1273
  }[];
1233
1274
  }, {
1234
1275
  required: {
1276
+ type: string;
1235
1277
  name: string;
1236
1278
  description: string;
1237
- type: string;
1238
1279
  required: boolean;
1239
1280
  displayName: string;
1240
1281
  default?: string | null | undefined;
1241
1282
  }[];
1242
1283
  optional: {
1284
+ type: string;
1243
1285
  name: string;
1244
1286
  description: string;
1245
- type: string;
1246
1287
  required: boolean;
1247
1288
  displayName: string;
1248
1289
  default?: string | null | undefined;
@@ -1257,16 +1298,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1257
1298
  type: z.ZodString;
1258
1299
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1259
1300
  }, "strip", z.ZodTypeAny, {
1301
+ type: string;
1260
1302
  name: string;
1261
1303
  description: string;
1262
- type: string;
1263
1304
  required: boolean;
1264
1305
  displayName: string;
1265
1306
  default?: string | null | undefined;
1266
1307
  }, {
1308
+ type: string;
1267
1309
  name: string;
1268
1310
  description: string;
1269
- type: string;
1270
1311
  required: boolean;
1271
1312
  displayName: string;
1272
1313
  default?: string | null | undefined;
@@ -1279,50 +1320,50 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1279
1320
  type: z.ZodString;
1280
1321
  default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
1322
  }, "strip", z.ZodTypeAny, {
1323
+ type: string;
1282
1324
  name: string;
1283
1325
  description: string;
1284
- type: string;
1285
1326
  required: boolean;
1286
1327
  displayName: string;
1287
1328
  default?: string | null | undefined;
1288
1329
  }, {
1330
+ type: string;
1289
1331
  name: string;
1290
1332
  description: string;
1291
- type: string;
1292
1333
  required: boolean;
1293
1334
  displayName: string;
1294
1335
  default?: string | null | undefined;
1295
1336
  }>, "many">;
1296
1337
  }, "strip", z.ZodTypeAny, {
1297
1338
  required: {
1339
+ type: string;
1298
1340
  name: string;
1299
1341
  description: string;
1300
- type: string;
1301
1342
  required: boolean;
1302
1343
  displayName: string;
1303
1344
  default?: string | null | undefined;
1304
1345
  }[];
1305
1346
  optional: {
1347
+ type: string;
1306
1348
  name: string;
1307
1349
  description: string;
1308
- type: string;
1309
1350
  required: boolean;
1310
1351
  displayName: string;
1311
1352
  default?: string | null | undefined;
1312
1353
  }[];
1313
1354
  }, {
1314
1355
  required: {
1356
+ type: string;
1315
1357
  name: string;
1316
1358
  description: string;
1317
- type: string;
1318
1359
  required: boolean;
1319
1360
  displayName: string;
1320
1361
  default?: string | null | undefined;
1321
1362
  }[];
1322
1363
  optional: {
1364
+ type: string;
1323
1365
  name: string;
1324
1366
  description: string;
1325
- type: string;
1326
1367
  required: boolean;
1327
1368
  displayName: string;
1328
1369
  default?: string | null | undefined;
@@ -1331,17 +1372,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1331
1372
  }, "strip", z.ZodTypeAny, {
1332
1373
  authConfigCreation: {
1333
1374
  required: {
1375
+ type: string;
1334
1376
  name: string;
1335
1377
  description: string;
1336
- type: string;
1337
1378
  required: boolean;
1338
1379
  displayName: string;
1339
1380
  default?: string | null | undefined;
1340
1381
  }[];
1341
1382
  optional: {
1383
+ type: string;
1342
1384
  name: string;
1343
1385
  description: string;
1344
- type: string;
1345
1386
  required: boolean;
1346
1387
  displayName: string;
1347
1388
  default?: string | null | undefined;
@@ -1349,17 +1390,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1349
1390
  };
1350
1391
  connectedAccountInitiation: {
1351
1392
  required: {
1393
+ type: string;
1352
1394
  name: string;
1353
1395
  description: string;
1354
- type: string;
1355
1396
  required: boolean;
1356
1397
  displayName: string;
1357
1398
  default?: string | null | undefined;
1358
1399
  }[];
1359
1400
  optional: {
1401
+ type: string;
1360
1402
  name: string;
1361
1403
  description: string;
1362
- type: string;
1363
1404
  required: boolean;
1364
1405
  displayName: string;
1365
1406
  default?: string | null | undefined;
@@ -1368,17 +1409,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1368
1409
  }, {
1369
1410
  authConfigCreation: {
1370
1411
  required: {
1412
+ type: string;
1371
1413
  name: string;
1372
1414
  description: string;
1373
- type: string;
1374
1415
  required: boolean;
1375
1416
  displayName: string;
1376
1417
  default?: string | null | undefined;
1377
1418
  }[];
1378
1419
  optional: {
1420
+ type: string;
1379
1421
  name: string;
1380
1422
  description: string;
1381
- type: string;
1382
1423
  required: boolean;
1383
1424
  displayName: string;
1384
1425
  default?: string | null | undefined;
@@ -1386,17 +1427,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1386
1427
  };
1387
1428
  connectedAccountInitiation: {
1388
1429
  required: {
1430
+ type: string;
1389
1431
  name: string;
1390
1432
  description: string;
1391
- type: string;
1392
1433
  required: boolean;
1393
1434
  displayName: string;
1394
1435
  default?: string | null | undefined;
1395
1436
  }[];
1396
1437
  optional: {
1438
+ type: string;
1397
1439
  name: string;
1398
1440
  description: string;
1399
- type: string;
1400
1441
  required: boolean;
1401
1442
  displayName: string;
1402
1443
  default?: string | null | undefined;
@@ -1416,17 +1457,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1416
1457
  fields: {
1417
1458
  authConfigCreation: {
1418
1459
  required: {
1460
+ type: string;
1419
1461
  name: string;
1420
1462
  description: string;
1421
- type: string;
1422
1463
  required: boolean;
1423
1464
  displayName: string;
1424
1465
  default?: string | null | undefined;
1425
1466
  }[];
1426
1467
  optional: {
1468
+ type: string;
1427
1469
  name: string;
1428
1470
  description: string;
1429
- type: string;
1430
1471
  required: boolean;
1431
1472
  displayName: string;
1432
1473
  default?: string | null | undefined;
@@ -1434,17 +1475,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1434
1475
  };
1435
1476
  connectedAccountInitiation: {
1436
1477
  required: {
1478
+ type: string;
1437
1479
  name: string;
1438
1480
  description: string;
1439
- type: string;
1440
1481
  required: boolean;
1441
1482
  displayName: string;
1442
1483
  default?: string | null | undefined;
1443
1484
  }[];
1444
1485
  optional: {
1486
+ type: string;
1445
1487
  name: string;
1446
1488
  description: string;
1447
- type: string;
1448
1489
  required: boolean;
1449
1490
  displayName: string;
1450
1491
  default?: string | null | undefined;
@@ -1460,17 +1501,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1460
1501
  fields: {
1461
1502
  authConfigCreation: {
1462
1503
  required: {
1504
+ type: string;
1463
1505
  name: string;
1464
1506
  description: string;
1465
- type: string;
1466
1507
  required: boolean;
1467
1508
  displayName: string;
1468
1509
  default?: string | null | undefined;
1469
1510
  }[];
1470
1511
  optional: {
1512
+ type: string;
1471
1513
  name: string;
1472
1514
  description: string;
1473
- type: string;
1474
1515
  required: boolean;
1475
1516
  displayName: string;
1476
1517
  default?: string | null | undefined;
@@ -1478,17 +1519,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1478
1519
  };
1479
1520
  connectedAccountInitiation: {
1480
1521
  required: {
1522
+ type: string;
1481
1523
  name: string;
1482
1524
  description: string;
1483
- type: string;
1484
1525
  required: boolean;
1485
1526
  displayName: string;
1486
1527
  default?: string | null | undefined;
1487
1528
  }[];
1488
1529
  optional: {
1530
+ type: string;
1489
1531
  name: string;
1490
1532
  description: string;
1491
- type: string;
1492
1533
  required: boolean;
1493
1534
  displayName: string;
1494
1535
  default?: string | null | undefined;
@@ -1506,10 +1547,11 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1506
1547
  name: string;
1507
1548
  slug: string;
1508
1549
  meta: {
1509
- description?: string | undefined;
1550
+ createdAt?: string | undefined;
1551
+ updatedAt?: string | undefined;
1510
1552
  logo?: string | undefined;
1553
+ description?: string | undefined;
1511
1554
  availableVersions?: string[] | undefined;
1512
- createdAt?: string | undefined;
1513
1555
  categories?: {
1514
1556
  name: string;
1515
1557
  slug: string;
@@ -1517,7 +1559,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1517
1559
  appUrl?: string | undefined;
1518
1560
  toolsCount?: number | undefined;
1519
1561
  triggersCount?: number | undefined;
1520
- updatedAt?: string | undefined;
1521
1562
  };
1522
1563
  isLocalToolkit: boolean;
1523
1564
  composioManagedAuthSchemes?: string[] | undefined;
@@ -1528,17 +1569,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1528
1569
  fields: {
1529
1570
  authConfigCreation: {
1530
1571
  required: {
1572
+ type: string;
1531
1573
  name: string;
1532
1574
  description: string;
1533
- type: string;
1534
1575
  required: boolean;
1535
1576
  displayName: string;
1536
1577
  default?: string | null | undefined;
1537
1578
  }[];
1538
1579
  optional: {
1580
+ type: string;
1539
1581
  name: string;
1540
1582
  description: string;
1541
- type: string;
1542
1583
  required: boolean;
1543
1584
  displayName: string;
1544
1585
  default?: string | null | undefined;
@@ -1546,17 +1587,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1546
1587
  };
1547
1588
  connectedAccountInitiation: {
1548
1589
  required: {
1590
+ type: string;
1549
1591
  name: string;
1550
1592
  description: string;
1551
- type: string;
1552
1593
  required: boolean;
1553
1594
  displayName: string;
1554
1595
  default?: string | null | undefined;
1555
1596
  }[];
1556
1597
  optional: {
1598
+ type: string;
1557
1599
  name: string;
1558
1600
  description: string;
1559
- type: string;
1560
1601
  required: boolean;
1561
1602
  displayName: string;
1562
1603
  default?: string | null | undefined;
@@ -1573,10 +1614,11 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1573
1614
  name: string;
1574
1615
  slug: string;
1575
1616
  meta: {
1576
- description?: string | undefined;
1617
+ createdAt?: string | undefined;
1618
+ updatedAt?: string | undefined;
1577
1619
  logo?: string | undefined;
1620
+ description?: string | undefined;
1578
1621
  availableVersions?: string[] | undefined;
1579
- createdAt?: string | undefined;
1580
1622
  categories?: {
1581
1623
  name: string;
1582
1624
  slug: string;
@@ -1584,7 +1626,6 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1584
1626
  appUrl?: string | undefined;
1585
1627
  toolsCount?: number | undefined;
1586
1628
  triggersCount?: number | undefined;
1587
- updatedAt?: string | undefined;
1588
1629
  };
1589
1630
  isLocalToolkit: boolean;
1590
1631
  composioManagedAuthSchemes?: string[] | undefined;
@@ -1595,17 +1636,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1595
1636
  fields: {
1596
1637
  authConfigCreation: {
1597
1638
  required: {
1639
+ type: string;
1598
1640
  name: string;
1599
1641
  description: string;
1600
- type: string;
1601
1642
  required: boolean;
1602
1643
  displayName: string;
1603
1644
  default?: string | null | undefined;
1604
1645
  }[];
1605
1646
  optional: {
1647
+ type: string;
1606
1648
  name: string;
1607
1649
  description: string;
1608
- type: string;
1609
1650
  required: boolean;
1610
1651
  displayName: string;
1611
1652
  default?: string | null | undefined;
@@ -1613,17 +1654,17 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1613
1654
  };
1614
1655
  connectedAccountInitiation: {
1615
1656
  required: {
1657
+ type: string;
1616
1658
  name: string;
1617
1659
  description: string;
1618
- type: string;
1619
1660
  required: boolean;
1620
1661
  displayName: string;
1621
1662
  default?: string | null | undefined;
1622
1663
  }[];
1623
1664
  optional: {
1665
+ type: string;
1624
1666
  name: string;
1625
1667
  description: string;
1626
- type: string;
1627
1668
  required: boolean;
1628
1669
  displayName: string;
1629
1670
  default?: string | null | undefined;
@@ -1692,16 +1733,16 @@ declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
1692
1733
  } & {
1693
1734
  required: z.ZodOptional<z.ZodBoolean>;
1694
1735
  }, "strip", z.ZodTypeAny, {
1736
+ type: string;
1695
1737
  name: string;
1696
1738
  description: string;
1697
- type: string;
1698
1739
  displayName: string;
1699
1740
  required?: boolean | undefined;
1700
1741
  default?: string | null | undefined;
1701
1742
  }, {
1743
+ type: string;
1702
1744
  name: string;
1703
1745
  description: string;
1704
- type: string;
1705
1746
  displayName: string;
1706
1747
  required?: boolean | undefined;
1707
1748
  default?: string | null | undefined;
@@ -1947,13 +1988,13 @@ declare const CreateAuthConfigResponseSchema: z.ZodObject<{
1947
1988
  toolkit: z.ZodString;
1948
1989
  }, "strip", z.ZodTypeAny, {
1949
1990
  toolkit: string;
1950
- authScheme: string;
1951
1991
  id: string;
1992
+ authScheme: string;
1952
1993
  isComposioManaged: boolean;
1953
1994
  }, {
1954
1995
  toolkit: string;
1955
- authScheme: string;
1956
1996
  id: string;
1997
+ authScheme: string;
1957
1998
  isComposioManaged: boolean;
1958
1999
  }>;
1959
2000
  type CreateAuthConfigResponse = z.infer<typeof CreateAuthConfigResponseSchema>;
@@ -1972,7 +2013,6 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
1972
2013
  }>;
1973
2014
  noOfConnections: z.ZodNumber;
1974
2015
  status: z.ZodEnum<["ENABLED", "DISABLED"]>;
1975
- uuid: z.ZodString;
1976
2016
  authScheme: z.ZodOptional<z.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"]>>;
1977
2017
  credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1978
2018
  expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -1996,50 +2036,48 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
1996
2036
  toolsAvailableForExecution?: string[] | undefined;
1997
2037
  }>>;
1998
2038
  }, "strip", z.ZodTypeAny, {
1999
- name: string;
2000
- status: "ENABLED" | "DISABLED";
2001
2039
  toolkit: {
2002
2040
  slug: string;
2003
2041
  logo: string;
2004
2042
  };
2043
+ status: "ENABLED" | "DISABLED";
2044
+ name: string;
2005
2045
  id: string;
2006
2046
  noOfConnections: number;
2007
- uuid: string;
2047
+ createdAt?: string | undefined;
2008
2048
  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;
2009
- isComposioManaged?: boolean | undefined;
2010
2049
  credentials?: Record<string, unknown> | undefined;
2011
2050
  toolAccessConfig?: {
2012
2051
  toolsForConnectedAccountCreation?: string[] | undefined;
2013
2052
  toolsAvailableForExecution?: string[] | undefined;
2014
2053
  } | undefined;
2015
2054
  isEnabledForToolRouter?: boolean | undefined;
2055
+ isComposioManaged?: boolean | undefined;
2016
2056
  expectedInputFields?: unknown[] | undefined;
2017
2057
  restrictToFollowingTools?: string[] | undefined;
2018
2058
  createdBy?: string | undefined;
2019
- createdAt?: string | undefined;
2020
2059
  lastUpdatedAt?: string | undefined;
2021
2060
  }, {
2022
- name: string;
2023
- status: "ENABLED" | "DISABLED";
2024
2061
  toolkit: {
2025
2062
  slug: string;
2026
2063
  logo: string;
2027
2064
  };
2065
+ status: "ENABLED" | "DISABLED";
2066
+ name: string;
2028
2067
  id: string;
2029
2068
  noOfConnections: number;
2030
- uuid: string;
2069
+ createdAt?: string | undefined;
2031
2070
  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;
2032
- isComposioManaged?: boolean | undefined;
2033
2071
  credentials?: Record<string, unknown> | undefined;
2034
2072
  toolAccessConfig?: {
2035
2073
  toolsForConnectedAccountCreation?: string[] | undefined;
2036
2074
  toolsAvailableForExecution?: string[] | undefined;
2037
2075
  } | undefined;
2038
2076
  isEnabledForToolRouter?: boolean | undefined;
2077
+ isComposioManaged?: boolean | undefined;
2039
2078
  expectedInputFields?: unknown[] | undefined;
2040
2079
  restrictToFollowingTools?: string[] | undefined;
2041
2080
  createdBy?: string | undefined;
2042
- createdAt?: string | undefined;
2043
2081
  lastUpdatedAt?: string | undefined;
2044
2082
  }>;
2045
2083
  type AuthConfigRetrieveResponse = z.infer<typeof AuthConfigRetrieveResponseSchema>;
@@ -2047,17 +2085,23 @@ declare const AuthConfigListParamsSchema: z.ZodObject<{
2047
2085
  cursor: z.ZodOptional<z.ZodString>;
2048
2086
  isComposioManaged: z.ZodOptional<z.ZodBoolean>;
2049
2087
  limit: z.ZodOptional<z.ZodNumber>;
2088
+ search: z.ZodOptional<z.ZodString>;
2089
+ showDisabled: z.ZodOptional<z.ZodBoolean>;
2050
2090
  toolkit: z.ZodOptional<z.ZodString>;
2051
2091
  }, "strip", z.ZodTypeAny, {
2052
2092
  toolkit?: string | undefined;
2093
+ cursor?: string | undefined;
2053
2094
  limit?: number | undefined;
2095
+ search?: string | undefined;
2054
2096
  isComposioManaged?: boolean | undefined;
2055
- cursor?: string | undefined;
2097
+ showDisabled?: boolean | undefined;
2056
2098
  }, {
2057
2099
  toolkit?: string | undefined;
2100
+ cursor?: string | undefined;
2058
2101
  limit?: number | undefined;
2102
+ search?: string | undefined;
2059
2103
  isComposioManaged?: boolean | undefined;
2060
- cursor?: string | undefined;
2104
+ showDisabled?: boolean | undefined;
2061
2105
  }>;
2062
2106
  type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
2063
2107
  declare const AuthConfigListResponseSchema: z.ZodObject<{
@@ -2076,7 +2120,6 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2076
2120
  }>;
2077
2121
  noOfConnections: z.ZodNumber;
2078
2122
  status: z.ZodEnum<["ENABLED", "DISABLED"]>;
2079
- uuid: z.ZodString;
2080
2123
  authScheme: z.ZodOptional<z.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"]>>;
2081
2124
  credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2082
2125
  expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -2100,104 +2143,100 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2100
2143
  toolsAvailableForExecution?: string[] | undefined;
2101
2144
  }>>;
2102
2145
  }, "strip", z.ZodTypeAny, {
2103
- name: string;
2104
- status: "ENABLED" | "DISABLED";
2105
2146
  toolkit: {
2106
2147
  slug: string;
2107
2148
  logo: string;
2108
2149
  };
2150
+ status: "ENABLED" | "DISABLED";
2151
+ name: string;
2109
2152
  id: string;
2110
2153
  noOfConnections: number;
2111
- uuid: string;
2154
+ createdAt?: string | undefined;
2112
2155
  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;
2113
- isComposioManaged?: boolean | undefined;
2114
2156
  credentials?: Record<string, unknown> | undefined;
2115
2157
  toolAccessConfig?: {
2116
2158
  toolsForConnectedAccountCreation?: string[] | undefined;
2117
2159
  toolsAvailableForExecution?: string[] | undefined;
2118
2160
  } | undefined;
2119
2161
  isEnabledForToolRouter?: boolean | undefined;
2162
+ isComposioManaged?: boolean | undefined;
2120
2163
  expectedInputFields?: unknown[] | undefined;
2121
2164
  restrictToFollowingTools?: string[] | undefined;
2122
2165
  createdBy?: string | undefined;
2123
- createdAt?: string | undefined;
2124
2166
  lastUpdatedAt?: string | undefined;
2125
2167
  }, {
2126
- name: string;
2127
- status: "ENABLED" | "DISABLED";
2128
2168
  toolkit: {
2129
2169
  slug: string;
2130
2170
  logo: string;
2131
2171
  };
2172
+ status: "ENABLED" | "DISABLED";
2173
+ name: string;
2132
2174
  id: string;
2133
2175
  noOfConnections: number;
2134
- uuid: string;
2176
+ createdAt?: string | undefined;
2135
2177
  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;
2136
- isComposioManaged?: boolean | undefined;
2137
2178
  credentials?: Record<string, unknown> | undefined;
2138
2179
  toolAccessConfig?: {
2139
2180
  toolsForConnectedAccountCreation?: string[] | undefined;
2140
2181
  toolsAvailableForExecution?: string[] | undefined;
2141
2182
  } | undefined;
2142
2183
  isEnabledForToolRouter?: boolean | undefined;
2184
+ isComposioManaged?: boolean | undefined;
2143
2185
  expectedInputFields?: unknown[] | undefined;
2144
2186
  restrictToFollowingTools?: string[] | undefined;
2145
2187
  createdBy?: string | undefined;
2146
- createdAt?: string | undefined;
2147
2188
  lastUpdatedAt?: string | undefined;
2148
2189
  }>, "many">;
2149
2190
  nextCursor: z.ZodNullable<z.ZodString>;
2150
2191
  totalPages: z.ZodNumber;
2151
2192
  }, "strip", z.ZodTypeAny, {
2152
2193
  items: {
2153
- name: string;
2154
- status: "ENABLED" | "DISABLED";
2155
2194
  toolkit: {
2156
2195
  slug: string;
2157
2196
  logo: string;
2158
2197
  };
2198
+ status: "ENABLED" | "DISABLED";
2199
+ name: string;
2159
2200
  id: string;
2160
2201
  noOfConnections: number;
2161
- uuid: string;
2202
+ createdAt?: string | undefined;
2162
2203
  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;
2163
- isComposioManaged?: boolean | undefined;
2164
2204
  credentials?: Record<string, unknown> | undefined;
2165
2205
  toolAccessConfig?: {
2166
2206
  toolsForConnectedAccountCreation?: string[] | undefined;
2167
2207
  toolsAvailableForExecution?: string[] | undefined;
2168
2208
  } | undefined;
2169
2209
  isEnabledForToolRouter?: boolean | undefined;
2210
+ isComposioManaged?: boolean | undefined;
2170
2211
  expectedInputFields?: unknown[] | undefined;
2171
2212
  restrictToFollowingTools?: string[] | undefined;
2172
2213
  createdBy?: string | undefined;
2173
- createdAt?: string | undefined;
2174
2214
  lastUpdatedAt?: string | undefined;
2175
2215
  }[];
2176
2216
  nextCursor: string | null;
2177
2217
  totalPages: number;
2178
2218
  }, {
2179
2219
  items: {
2180
- name: string;
2181
- status: "ENABLED" | "DISABLED";
2182
2220
  toolkit: {
2183
2221
  slug: string;
2184
2222
  logo: string;
2185
2223
  };
2224
+ status: "ENABLED" | "DISABLED";
2225
+ name: string;
2186
2226
  id: string;
2187
2227
  noOfConnections: number;
2188
- uuid: string;
2228
+ createdAt?: string | undefined;
2189
2229
  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;
2190
- isComposioManaged?: boolean | undefined;
2191
2230
  credentials?: Record<string, unknown> | undefined;
2192
2231
  toolAccessConfig?: {
2193
2232
  toolsForConnectedAccountCreation?: string[] | undefined;
2194
2233
  toolsAvailableForExecution?: string[] | undefined;
2195
2234
  } | undefined;
2196
2235
  isEnabledForToolRouter?: boolean | undefined;
2236
+ isComposioManaged?: boolean | undefined;
2197
2237
  expectedInputFields?: unknown[] | undefined;
2198
2238
  restrictToFollowingTools?: string[] | undefined;
2199
2239
  createdBy?: string | undefined;
2200
- createdAt?: string | undefined;
2201
2240
  lastUpdatedAt?: string | undefined;
2202
2241
  }[];
2203
2242
  nextCursor: string | null;
@@ -2418,7 +2457,7 @@ declare class Toolkits {
2418
2457
  *
2419
2458
  * @private
2420
2459
  */
2421
- protected getToolkitBySlug(slug: string): Promise<ToolkitRetrieveResponse>;
2460
+ protected getToolkitBySlug(slug: string, requestOptions?: ComposioRequestOptions): Promise<ToolkitRetrieveResponse>;
2422
2461
  /**
2423
2462
  * Retrieves a specific toolkit by its slug identifier.
2424
2463
  *
@@ -2434,7 +2473,7 @@ declare class Toolkits {
2434
2473
  * console.log(githubToolkit.authConfigDetails); // Authentication configuration details
2435
2474
  * ```
2436
2475
  */
2437
- get(slug: string): Promise<ToolkitRetrieveResponse>;
2476
+ get(slug: string, requestOptions?: ComposioRequestOptions): Promise<ToolkitRetrieveResponse>;
2438
2477
  /**
2439
2478
  * Retrieves a list of toolkits based on the provided query parameters.
2440
2479
  *
@@ -2457,7 +2496,7 @@ declare class Toolkits {
2457
2496
  * });
2458
2497
  * ```
2459
2498
  */
2460
- get(query?: ToolkitListParams): Promise<ToolKitListResponse>;
2499
+ get(query?: ToolkitListParams, requestOptions?: ComposioRequestOptions): Promise<ToolKitListResponse>;
2461
2500
  private getAuthConfigFields;
2462
2501
  /**
2463
2502
  * Retrieves the fields required for creating an auth config for a toolkit.
@@ -2498,7 +2537,7 @@ declare class Toolkits {
2498
2537
  * console.log(categories.items); // Array of category objects
2499
2538
  * ```
2500
2539
  */
2501
- listCategories(): Promise<ToolkitRetrieveCategoriesResponse>;
2540
+ listCategories(requestOptions?: ComposioRequestOptions): Promise<ToolkitRetrieveCategoriesResponse>;
2502
2541
  /**
2503
2542
  * Authorizes a user to use a toolkit.
2504
2543
  * This method will create an auth config if one doesn't exist and initiate a connection request.
@@ -2512,7 +2551,7 @@ declare class Toolkits {
2512
2551
  * ```
2513
2552
  *
2514
2553
  */
2515
- authorize(userId: string, toolkitSlug: string, authConfigId?: string): Promise<ConnectionRequest>;
2554
+ authorize(userId: string, toolkitSlug: string, authConfigId?: string, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>;
2516
2555
  }
2517
2556
  //#endregion
2518
2557
  //#region src/types/triggers.types.d.ts
@@ -2531,19 +2570,19 @@ declare const TriggerSubscribeParamSchema: z.ZodObject<{
2531
2570
  triggerData: z.ZodOptional<z.ZodString>;
2532
2571
  userId: z.ZodOptional<z.ZodString>;
2533
2572
  }, "strip", z.ZodTypeAny, {
2573
+ authConfigId?: string | undefined;
2574
+ userId?: string | undefined;
2534
2575
  toolkits?: string[] | undefined;
2535
2576
  connectedAccountId?: string | undefined;
2536
- userId?: string | undefined;
2537
2577
  triggerId?: string | undefined;
2538
- authConfigId?: string | undefined;
2539
2578
  triggerSlug?: string[] | undefined;
2540
2579
  triggerData?: string | undefined;
2541
2580
  }, {
2581
+ authConfigId?: string | undefined;
2582
+ userId?: string | undefined;
2542
2583
  toolkits?: string[] | undefined;
2543
2584
  connectedAccountId?: string | undefined;
2544
- userId?: string | undefined;
2545
2585
  triggerId?: string | undefined;
2546
- authConfigId?: string | undefined;
2547
2586
  triggerSlug?: string[] | undefined;
2548
2587
  triggerData?: string | undefined;
2549
2588
  }>;
@@ -2557,18 +2596,18 @@ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
2557
2596
  triggerIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2558
2597
  triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2559
2598
  }, "strip", z.ZodTypeAny, {
2560
- limit?: number | undefined;
2599
+ connectedAccountIds?: string[] | null | undefined;
2561
2600
  authConfigIds?: string[] | null | undefined;
2562
2601
  cursor?: string | undefined;
2563
- connectedAccountIds?: string[] | null | undefined;
2602
+ limit?: number | undefined;
2564
2603
  showDisabled?: boolean | null | undefined;
2565
2604
  triggerIds?: string[] | null | undefined;
2566
2605
  triggerNames?: string[] | null | undefined;
2567
2606
  }, {
2568
- limit?: number | undefined;
2607
+ connectedAccountIds?: string[] | null | undefined;
2569
2608
  authConfigIds?: string[] | null | undefined;
2570
2609
  cursor?: string | undefined;
2571
- connectedAccountIds?: string[] | null | undefined;
2610
+ limit?: number | undefined;
2572
2611
  showDisabled?: boolean | null | undefined;
2573
2612
  triggerIds?: string[] | null | undefined;
2574
2613
  triggerNames?: string[] | null | undefined;
@@ -2585,9 +2624,9 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
2585
2624
  triggerData: z.ZodOptional<z.ZodString>;
2586
2625
  uuid: z.ZodOptional<z.ZodString>;
2587
2626
  }, "strip", z.ZodTypeAny, {
2588
- connectedAccountId: string;
2589
2627
  id: string;
2590
2628
  updatedAt: string;
2629
+ connectedAccountId: string;
2591
2630
  disabledAt: string | null;
2592
2631
  state: Record<string, unknown>;
2593
2632
  triggerConfig: Record<string, unknown>;
@@ -2595,9 +2634,9 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
2595
2634
  uuid?: string | undefined;
2596
2635
  triggerData?: string | undefined;
2597
2636
  }, {
2598
- connectedAccountId: string;
2599
2637
  id: string;
2600
2638
  updatedAt: string;
2639
+ connectedAccountId: string;
2601
2640
  disabledAt: string | null;
2602
2641
  state: Record<string, unknown>;
2603
2642
  triggerConfig: Record<string, unknown>;
@@ -2617,9 +2656,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2617
2656
  triggerData: z.ZodOptional<z.ZodString>;
2618
2657
  uuid: z.ZodOptional<z.ZodString>;
2619
2658
  }, "strip", z.ZodTypeAny, {
2620
- connectedAccountId: string;
2621
2659
  id: string;
2622
2660
  updatedAt: string;
2661
+ connectedAccountId: string;
2623
2662
  disabledAt: string | null;
2624
2663
  state: Record<string, unknown>;
2625
2664
  triggerConfig: Record<string, unknown>;
@@ -2627,9 +2666,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2627
2666
  uuid?: string | undefined;
2628
2667
  triggerData?: string | undefined;
2629
2668
  }, {
2630
- connectedAccountId: string;
2631
2669
  id: string;
2632
2670
  updatedAt: string;
2671
+ connectedAccountId: string;
2633
2672
  disabledAt: string | null;
2634
2673
  state: Record<string, unknown>;
2635
2674
  triggerConfig: Record<string, unknown>;
@@ -2641,9 +2680,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2641
2680
  totalPages: z.ZodNumber;
2642
2681
  }, "strip", z.ZodTypeAny, {
2643
2682
  items: {
2644
- connectedAccountId: string;
2645
2683
  id: string;
2646
2684
  updatedAt: string;
2685
+ connectedAccountId: string;
2647
2686
  disabledAt: string | null;
2648
2687
  state: Record<string, unknown>;
2649
2688
  triggerConfig: Record<string, unknown>;
@@ -2655,9 +2694,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2655
2694
  totalPages: number;
2656
2695
  }, {
2657
2696
  items: {
2658
- connectedAccountId: string;
2659
2697
  id: string;
2660
2698
  updatedAt: string;
2699
+ connectedAccountId: string;
2661
2700
  disabledAt: string | null;
2662
2701
  state: Record<string, unknown>;
2663
2702
  triggerConfig: Record<string, unknown>;
@@ -2692,9 +2731,9 @@ type TriggerInstanceUpsertResponse = z.infer<typeof TriggerInstanceUpsertRespons
2692
2731
  declare const TriggerInstanceManageUpdateParamsSchema: z.ZodObject<{
2693
2732
  status: z.ZodEnum<["enable", "disable"]>;
2694
2733
  }, "strip", z.ZodTypeAny, {
2695
- status: "enable" | "disable";
2734
+ status: "disable" | "enable";
2696
2735
  }, {
2697
- status: "enable" | "disable";
2736
+ status: "disable" | "enable";
2698
2737
  }>;
2699
2738
  type TriggerInstanceManageUpdateParams = z.infer<typeof TriggerInstanceManageUpdateParamsSchema>;
2700
2739
  declare const TriggerInstanceManageUpdateResponseSchema: z.ZodObject<{
@@ -2736,69 +2775,69 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2736
2775
  userId: z.ZodString;
2737
2776
  status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
2738
2777
  }, "strip", z.ZodTypeAny, {
2778
+ authConfigId: string;
2739
2779
  status: "ACTIVE" | "INACTIVE";
2740
2780
  userId: string;
2741
- id: string;
2742
2781
  uuid: string;
2743
- authConfigId: string;
2782
+ id: string;
2744
2783
  authConfigUUID: string;
2745
2784
  }, {
2785
+ authConfigId: string;
2746
2786
  status: "ACTIVE" | "INACTIVE";
2747
2787
  userId: string;
2748
- id: string;
2749
2788
  uuid: string;
2750
- authConfigId: string;
2789
+ id: string;
2751
2790
  authConfigUUID: string;
2752
2791
  }>;
2753
2792
  }, "strip", z.ZodTypeAny, {
2754
- toolkitSlug: string;
2793
+ uuid: string;
2755
2794
  id: string;
2795
+ toolkitSlug: string;
2756
2796
  connectedAccount: {
2797
+ authConfigId: string;
2757
2798
  status: "ACTIVE" | "INACTIVE";
2758
2799
  userId: string;
2759
- id: string;
2760
2800
  uuid: string;
2761
- authConfigId: string;
2801
+ id: string;
2762
2802
  authConfigUUID: string;
2763
2803
  };
2764
- uuid: string;
2765
2804
  triggerSlug: string;
2766
2805
  triggerConfig: Record<string, unknown>;
2767
2806
  triggerData?: string | undefined;
2768
2807
  }, {
2769
- toolkitSlug: string;
2808
+ uuid: string;
2770
2809
  id: string;
2810
+ toolkitSlug: string;
2771
2811
  connectedAccount: {
2812
+ authConfigId: string;
2772
2813
  status: "ACTIVE" | "INACTIVE";
2773
2814
  userId: string;
2774
- id: string;
2775
2815
  uuid: string;
2776
- authConfigId: string;
2816
+ id: string;
2777
2817
  authConfigUUID: string;
2778
2818
  };
2779
- uuid: string;
2780
2819
  triggerSlug: string;
2781
2820
  triggerConfig: Record<string, unknown>;
2782
2821
  triggerData?: string | undefined;
2783
2822
  }>;
2784
2823
  }, "strip", z.ZodTypeAny, {
2785
- toolkitSlug: string;
2786
2824
  userId: string;
2787
- id: string;
2788
2825
  uuid: string;
2826
+ id: string;
2827
+ toolkitSlug: string;
2789
2828
  triggerSlug: string;
2790
2829
  metadata: {
2791
- toolkitSlug: string;
2830
+ uuid: string;
2792
2831
  id: string;
2832
+ toolkitSlug: string;
2793
2833
  connectedAccount: {
2834
+ authConfigId: string;
2794
2835
  status: "ACTIVE" | "INACTIVE";
2795
2836
  userId: string;
2796
- id: string;
2797
2837
  uuid: string;
2798
- authConfigId: string;
2838
+ id: string;
2799
2839
  authConfigUUID: string;
2800
2840
  };
2801
- uuid: string;
2802
2841
  triggerSlug: string;
2803
2842
  triggerConfig: Record<string, unknown>;
2804
2843
  triggerData?: string | undefined;
@@ -2806,23 +2845,23 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2806
2845
  payload?: Record<string, unknown> | undefined;
2807
2846
  originalPayload?: Record<string, unknown> | undefined;
2808
2847
  }, {
2809
- toolkitSlug: string;
2810
2848
  userId: string;
2811
- id: string;
2812
2849
  uuid: string;
2850
+ id: string;
2851
+ toolkitSlug: string;
2813
2852
  triggerSlug: string;
2814
2853
  metadata: {
2815
- toolkitSlug: string;
2854
+ uuid: string;
2816
2855
  id: string;
2856
+ toolkitSlug: string;
2817
2857
  connectedAccount: {
2858
+ authConfigId: string;
2818
2859
  status: "ACTIVE" | "INACTIVE";
2819
2860
  userId: string;
2820
- id: string;
2821
2861
  uuid: string;
2822
- authConfigId: string;
2862
+ id: string;
2823
2863
  authConfigUUID: string;
2824
2864
  };
2825
- uuid: string;
2826
2865
  triggerSlug: string;
2827
2866
  triggerConfig: Record<string, unknown>;
2828
2867
  triggerData?: string | undefined;
@@ -2858,12 +2897,12 @@ declare const TriggersTypeListParamsSchema: z.ZodObject<{
2858
2897
  toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2859
2898
  }, "strip", z.ZodTypeAny, {
2860
2899
  toolkits?: string[] | null | undefined;
2861
- limit?: number | null | undefined;
2862
2900
  cursor?: string | undefined;
2901
+ limit?: number | null | undefined;
2863
2902
  }, {
2864
2903
  toolkits?: string[] | null | undefined;
2865
- limit?: number | null | undefined;
2866
2904
  cursor?: string | undefined;
2905
+ limit?: number | null | undefined;
2867
2906
  }>;
2868
2907
  type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
2869
2908
  declare const TriggerTypeSchema: z.ZodObject<{
@@ -2888,29 +2927,29 @@ declare const TriggerTypeSchema: z.ZodObject<{
2888
2927
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2889
2928
  version: z.ZodOptional<z.ZodString>;
2890
2929
  }, "strip", z.ZodTypeAny, {
2891
- name: string;
2892
- description: string;
2893
- slug: string;
2894
2930
  toolkit: {
2895
2931
  name: string;
2896
2932
  slug: string;
2897
2933
  logo: string;
2898
2934
  };
2899
- payload: Record<string, unknown>;
2935
+ name: string;
2900
2936
  config: Record<string, unknown>;
2937
+ slug: string;
2938
+ description: string;
2939
+ payload: Record<string, unknown>;
2901
2940
  version?: string | undefined;
2902
2941
  instructions?: string | undefined;
2903
2942
  }, {
2904
- name: string;
2905
- description: string;
2906
- slug: string;
2907
2943
  toolkit: {
2908
2944
  name: string;
2909
2945
  slug: string;
2910
2946
  logo: string;
2911
2947
  };
2912
- payload: Record<string, unknown>;
2948
+ name: string;
2913
2949
  config: Record<string, unknown>;
2950
+ slug: string;
2951
+ description: string;
2952
+ payload: Record<string, unknown>;
2914
2953
  version?: string | undefined;
2915
2954
  instructions?: string | undefined;
2916
2955
  }>;
@@ -2938,29 +2977,29 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
2938
2977
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2939
2978
  version: z.ZodOptional<z.ZodString>;
2940
2979
  }, "strip", z.ZodTypeAny, {
2941
- name: string;
2942
- description: string;
2943
- slug: string;
2944
2980
  toolkit: {
2945
2981
  name: string;
2946
2982
  slug: string;
2947
2983
  logo: string;
2948
2984
  };
2949
- payload: Record<string, unknown>;
2985
+ name: string;
2950
2986
  config: Record<string, unknown>;
2987
+ slug: string;
2988
+ description: string;
2989
+ payload: Record<string, unknown>;
2951
2990
  version?: string | undefined;
2952
2991
  instructions?: string | undefined;
2953
2992
  }, {
2954
- name: string;
2955
- description: string;
2956
- slug: string;
2957
2993
  toolkit: {
2958
2994
  name: string;
2959
2995
  slug: string;
2960
2996
  logo: string;
2961
2997
  };
2962
- payload: Record<string, unknown>;
2998
+ name: string;
2963
2999
  config: Record<string, unknown>;
3000
+ slug: string;
3001
+ description: string;
3002
+ payload: Record<string, unknown>;
2964
3003
  version?: string | undefined;
2965
3004
  instructions?: string | undefined;
2966
3005
  }>, "many">;
@@ -2968,16 +3007,16 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
2968
3007
  totalPages: z.ZodNumber;
2969
3008
  }, "strip", z.ZodTypeAny, {
2970
3009
  items: {
2971
- name: string;
2972
- description: string;
2973
- slug: string;
2974
3010
  toolkit: {
2975
3011
  name: string;
2976
3012
  slug: string;
2977
3013
  logo: string;
2978
3014
  };
2979
- payload: Record<string, unknown>;
3015
+ name: string;
2980
3016
  config: Record<string, unknown>;
3017
+ slug: string;
3018
+ description: string;
3019
+ payload: Record<string, unknown>;
2981
3020
  version?: string | undefined;
2982
3021
  instructions?: string | undefined;
2983
3022
  }[];
@@ -2985,16 +3024,16 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
2985
3024
  nextCursor?: string | null | undefined;
2986
3025
  }, {
2987
3026
  items: {
2988
- name: string;
2989
- description: string;
2990
- slug: string;
2991
3027
  toolkit: {
2992
3028
  name: string;
2993
3029
  slug: string;
2994
3030
  logo: string;
2995
3031
  };
2996
- payload: Record<string, unknown>;
3032
+ name: string;
2997
3033
  config: Record<string, unknown>;
3034
+ slug: string;
3035
+ description: string;
3036
+ payload: Record<string, unknown>;
2998
3037
  version?: string | undefined;
2999
3038
  instructions?: string | undefined;
3000
3039
  }[];
@@ -3107,14 +3146,14 @@ declare const WebhookPayloadV3Schema: z.ZodObject<{
3107
3146
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3108
3147
  }, "strip", z.ZodTypeAny, {
3109
3148
  type: string;
3110
- data: Record<string, unknown>;
3111
3149
  id: string;
3150
+ data: Record<string, unknown>;
3112
3151
  metadata: Record<string, unknown>;
3113
3152
  timestamp: string;
3114
3153
  }, {
3115
3154
  type: string;
3116
- data: Record<string, unknown>;
3117
3155
  id: string;
3156
+ data: Record<string, unknown>;
3118
3157
  metadata: Record<string, unknown>;
3119
3158
  timestamp: string;
3120
3159
  }>;
@@ -3149,8 +3188,8 @@ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
3149
3188
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3150
3189
  }, "strip", z.ZodTypeAny, {
3151
3190
  type: string;
3152
- data: Record<string, unknown>;
3153
3191
  id: string;
3192
+ data: Record<string, unknown>;
3154
3193
  metadata: {
3155
3194
  trigger_id: string;
3156
3195
  log_id: string;
@@ -3164,8 +3203,8 @@ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
3164
3203
  timestamp: string;
3165
3204
  }, {
3166
3205
  type: string;
3167
- data: Record<string, unknown>;
3168
3206
  id: string;
3207
+ data: Record<string, unknown>;
3169
3208
  metadata: {
3170
3209
  trigger_id: string;
3171
3210
  log_id: string;
@@ -3188,14 +3227,14 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
3188
3227
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3189
3228
  }, "strip", z.ZodTypeAny, {
3190
3229
  type: string;
3191
- data: Record<string, unknown>;
3192
3230
  id: string;
3231
+ data: Record<string, unknown>;
3193
3232
  metadata: Record<string, unknown>;
3194
3233
  timestamp: string;
3195
3234
  }, {
3196
3235
  type: string;
3197
- data: Record<string, unknown>;
3198
3236
  id: string;
3237
+ data: Record<string, unknown>;
3199
3238
  metadata: Record<string, unknown>;
3200
3239
  timestamp: string;
3201
3240
  }>, z.ZodObject<{
@@ -3274,6 +3313,30 @@ declare const WebhookVersions: {
3274
3313
  readonly V3: "V3";
3275
3314
  };
3276
3315
  type WebhookVersion = (typeof WebhookVersions)[keyof typeof WebhookVersions];
3316
+ declare const DefaultWebhookSubscriptionEvents: readonly ["composio.trigger.message"];
3317
+ declare const SetWebhookSubscriptionParamsSchema: z.ZodObject<{
3318
+ /** HTTPS URL to receive webhook events. */webhookUrl: z.ZodString; /** Event types to subscribe to. Defaults to trigger messages. */
3319
+ enabledEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; /** Webhook payload version. Defaults to V3. */
3320
+ version: z.ZodOptional<z.ZodEnum<["V1", "V2", "V3"]>>;
3321
+ }, "strip", z.ZodTypeAny, {
3322
+ webhookUrl: string;
3323
+ version?: "V1" | "V2" | "V3" | undefined;
3324
+ enabledEvents?: string[] | undefined;
3325
+ }, {
3326
+ webhookUrl: string;
3327
+ version?: "V1" | "V2" | "V3" | undefined;
3328
+ enabledEvents?: string[] | undefined;
3329
+ }>;
3330
+ type SetWebhookSubscriptionParams = z.infer<typeof SetWebhookSubscriptionParamsSchema>;
3331
+ type WebhookSubscription = {
3332
+ id: string;
3333
+ webhookUrl: string;
3334
+ version: WebhookVersion;
3335
+ enabledEvents: string[];
3336
+ secret?: string;
3337
+ createdAt?: string;
3338
+ updatedAt?: string;
3339
+ };
3277
3340
  /**
3278
3341
  * Parameters for verifying a webhook signature
3279
3342
  */
@@ -3282,10 +3345,8 @@ declare const VerifyWebhookParamsSchema: z.ZodObject<{
3282
3345
  * The webhook message ID from the 'webhook-id' header.
3283
3346
  * Format: 'msg_xxx'
3284
3347
  */
3285
- id: z.ZodString;
3286
- /** The raw webhook payload as a string (request body) */
3287
- payload: z.ZodString;
3288
- /** The webhook secret used to sign the payload (from Composio dashboard) */
3348
+ id: z.ZodString; /** The raw webhook payload as a string (request body) */
3349
+ payload: z.ZodString; /** The webhook secret used to sign the payload (from Composio dashboard) */
3289
3350
  secret: z.ZodString;
3290
3351
  /**
3291
3352
  * The signature from the 'webhook-signature' header.
@@ -3320,16 +3381,44 @@ declare const VerifyWebhookParamsSchema: z.ZodObject<{
3320
3381
  tolerance?: number | undefined;
3321
3382
  }>;
3322
3383
  type VerifyWebhookParams = z.input<typeof VerifyWebhookParamsSchema>;
3384
+ /**
3385
+ * An incoming HTTP request that carries a Composio webhook.
3386
+ *
3387
+ * Accepts either:
3388
+ * - A Fetch API `Request` (Next.js App Router, Hono, Remix, Cloudflare Workers).
3389
+ * - A plain object `{ body, headers }` (Express with `express.raw`, Next.js
3390
+ * Pages Router `req`). `body` may be a string, a Buffer/Uint8Array, or an
3391
+ * already-parsed object; `headers` may be a `Headers` instance or a plain
3392
+ * record of `string | string[] | undefined`.
3393
+ */
3394
+ type WebhookRequestLike = Request | {
3395
+ body: unknown;
3396
+ headers: unknown;
3397
+ };
3398
+ /**
3399
+ * Options for {@link Triggers.parse}.
3400
+ */
3401
+ type ParseWebhookOptions = {
3402
+ /**
3403
+ * The webhook secret used to sign the payload (from the Composio dashboard).
3404
+ * When provided, the request signature is verified before the payload is
3405
+ * returned. When omitted, the payload is parsed without verification.
3406
+ */
3407
+ verifySecret?: string;
3408
+ /**
3409
+ * Maximum allowed age of the webhook in seconds (default: 300 = 5 minutes).
3410
+ * Only used when `verifySecret` is provided. Set to 0 to disable timestamp
3411
+ * validation.
3412
+ */
3413
+ tolerance?: number;
3414
+ };
3323
3415
  /**
3324
3416
  * Result of a successful webhook verification.
3325
3417
  * Contains the parsed payload along with version information.
3326
3418
  */
3327
3419
  type VerifyWebhookResult = {
3328
- /** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */
3329
- version: WebhookVersion;
3330
- /** The parsed and normalized webhook payload */
3331
- payload: IncomingTriggerPayload;
3332
- /** The raw parsed payload before normalization */
3420
+ /** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */version: WebhookVersion; /** The parsed and normalized webhook payload */
3421
+ payload: IncomingTriggerPayload; /** The raw parsed payload before normalization */
3333
3422
  rawPayload: WebhookPayload;
3334
3423
  };
3335
3424
  //#endregion
@@ -3344,6 +3433,20 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3344
3433
  private pusherService;
3345
3434
  private toolkitVersions;
3346
3435
  constructor(client: ComposioClient, config?: ComposioConfig<TProvider>);
3436
+ /**
3437
+ * Create or update the project webhook subscription used for webhook delivery.
3438
+ *
3439
+ * If a subscription already exists, the first subscription is updated. Otherwise a new
3440
+ * subscription is created. By default this subscribes to V3 trigger message events.
3441
+ *
3442
+ * @example
3443
+ * ```ts
3444
+ * await composio.triggers.setWebhookSubscription({
3445
+ * webhookUrl: `${APP_URL}/webhooks/composio`,
3446
+ * });
3447
+ * ```
3448
+ */
3449
+ setWebhookSubscription(params: SetWebhookSubscriptionParams): Promise<WebhookSubscription>;
3347
3450
  /**
3348
3451
  * Fetch list of all the active triggers
3349
3452
  *
@@ -3361,7 +3464,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3361
3464
  * });
3362
3465
  * ```
3363
3466
  */
3364
- listActive(query?: TriggerInstanceListActiveParams): Promise<TriggerInstanceListActiveResponse>;
3467
+ listActive(query?: TriggerInstanceListActiveParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceListActiveResponse>;
3365
3468
  /**
3366
3469
  * Create a new trigger instance for a user
3367
3470
  * If the connected account id is not provided, the first connected account for the user and toolkit will be used
@@ -3371,7 +3474,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3371
3474
  * @param {TriggerInstanceUpsertParams} body - The parameters to create the trigger instance
3372
3475
  * @returns {Promise<TriggerInstanceUpsertResponse>} The created trigger instance
3373
3476
  */
3374
- create(userId: string, slug: string, body?: TriggerInstanceUpsertParams): Promise<TriggerInstanceUpsertResponse>;
3477
+ create(userId: string, slug: string, body?: TriggerInstanceUpsertParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceUpsertResponse>;
3375
3478
  /**
3376
3479
  * Update an existing trigger instance
3377
3480
  *
@@ -3379,28 +3482,28 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3379
3482
  * @param {TriggerInstanceManageUpdateParams} body - The parameters to update the trigger instance
3380
3483
  * @returns {Promise<TriggerInstanceManageUpdateResponse>} The updated trigger instance response
3381
3484
  */
3382
- update(triggerId: string, body: TriggerInstanceManageUpdateParams): Promise<TriggerInstanceManageUpdateResponse>;
3485
+ update(triggerId: string, body: TriggerInstanceManageUpdateParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceManageUpdateResponse>;
3383
3486
  /**
3384
3487
  * Delete a trigger instance
3385
3488
  *
3386
3489
  * @param {string} triggerId - The slug of the trigger instance
3387
3490
  * @returns
3388
3491
  */
3389
- delete(triggerId: string): Promise<TriggerInstanceManageDeleteResponse>;
3492
+ delete(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceManageDeleteResponse>;
3390
3493
  /**
3391
3494
  * Disable a trigger instance
3392
3495
  *
3393
3496
  * @param {string} triggerId - The id of the trigger instance
3394
3497
  * @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
3395
3498
  */
3396
- disable(triggerId: string): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
3499
+ disable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
3397
3500
  /**
3398
3501
  * Enable a trigger instance
3399
3502
  *
3400
3503
  * @param {string} triggerId - The id of the trigger instance
3401
3504
  * @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
3402
3505
  */
3403
- enable(triggerId: string): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
3506
+ enable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
3404
3507
  /**
3405
3508
  * @TODO Learn about trigger types
3406
3509
  */
@@ -3411,7 +3514,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3411
3514
  * @param {RequestOptions} options - Request options
3412
3515
  * @returns {Promise<TriggersTypeListResponse>} The list of trigger types
3413
3516
  */
3414
- listTypes(query?: TriggersTypeListParams): Promise<TriggersTypeListResponse>;
3517
+ listTypes(query?: TriggersTypeListParams, requestOptions?: ComposioRequestOptions): Promise<TriggersTypeListResponse>;
3415
3518
  /**
3416
3519
  * Retrieve a trigger type by its slug for the provided version of the app
3417
3520
  * Use the global toolkit versions param when initializing composio to pass a toolkitversion
@@ -3419,14 +3522,14 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3419
3522
  * @param {string} slug - The slug of the trigger type
3420
3523
  * @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
3421
3524
  */
3422
- getType(slug: string): Promise<TriggersTypeRetrieveResponse>;
3525
+ getType(slug: string, requestOptions?: ComposioRequestOptions): Promise<TriggersTypeRetrieveResponse>;
3423
3526
  /**
3424
3527
  * Fetches the list of all the available trigger enums
3425
3528
  *
3426
3529
  * This method is used by the CLI where filters are not required.
3427
3530
  * @returns
3428
3531
  */
3429
- listEnum(): Promise<TriggersTypeRetrieveEnumResponse>;
3532
+ listEnum(requestOptions?: ComposioRequestOptions): Promise<TriggersTypeRetrieveEnumResponse>;
3430
3533
  /**
3431
3534
  * Applies compound filters to the trigger data
3432
3535
  * @param data data to apply filters to
@@ -3475,6 +3578,78 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
3475
3578
  * ```
3476
3579
  */
3477
3580
  unsubscribe(): Promise<void>;
3581
+ /**
3582
+ * Parse an incoming webhook HTTP request into a typed, normalized trigger payload.
3583
+ *
3584
+ * Dump the incoming request in and get back the parsed Composio trigger event.
3585
+ * When `verifySecret` is provided, the request signature is verified before the
3586
+ * payload is returned (delegating to {@link verifyWebhook}); without it, the body
3587
+ * is parsed without verification.
3588
+ *
3589
+ * The `request` may be either a Fetch API `Request` (Next.js App Router, Hono,
3590
+ * Remix) or a plain `{ body, headers }` object (Express with `express.raw`,
3591
+ * Next.js Pages Router `req`). The signature headers (`webhook-id`,
3592
+ * `webhook-timestamp`, `webhook-signature`) are read case-insensitively.
3593
+ *
3594
+ * @param {WebhookRequestLike} request - The incoming webhook HTTP request
3595
+ * @param {ParseWebhookOptions} [options] - Parse options
3596
+ * @param {string} [options.verifySecret] - Webhook secret; when set, the signature is verified
3597
+ * @param {number} [options.tolerance=300] - Max webhook age in seconds (only used when verifying)
3598
+ * @returns {Promise<VerifyWebhookResult>} The parsed (and optionally verified) webhook payload
3599
+ *
3600
+ * @throws {ValidationError} If `verifySecret` is set but the signature headers are missing
3601
+ * @throws {ComposioWebhookSignatureVerificationError} If signature verification fails
3602
+ * @throws {ComposioWebhookPayloadError} If the payload cannot be parsed
3603
+ *
3604
+ * @example
3605
+ * ```ts
3606
+ * // Express with express.raw (verify the signature)
3607
+ * app.post('/webhooks/composio', express.raw({ type: 'application/json' }), async (req, res) => {
3608
+ * try {
3609
+ * const result = await composio.triggers.parse(req, {
3610
+ * verifySecret: process.env.COMPOSIO_WEBHOOK_SECRET,
3611
+ * });
3612
+ * console.log('Trigger:', result.payload.triggerSlug);
3613
+ * console.log('Event data:', result.payload.payload);
3614
+ * res.sendStatus(200);
3615
+ * } catch (error) {
3616
+ * res.sendStatus(401);
3617
+ * }
3618
+ * });
3619
+ *
3620
+ * // Express without verifying (parse only)
3621
+ * app.post('/webhooks/composio', express.raw({ type: 'application/json' }), async (req, res) => {
3622
+ * const result = await composio.triggers.parse(req);
3623
+ * console.log('Trigger:', result.payload.triggerSlug);
3624
+ * res.sendStatus(200);
3625
+ * });
3626
+ * ```
3627
+ *
3628
+ * @example
3629
+ * ```ts
3630
+ * // Next.js App Router (Request) — verify the signature
3631
+ * export async function POST(request: Request) {
3632
+ * try {
3633
+ * const result = await composio.triggers.parse(request, {
3634
+ * verifySecret: process.env.COMPOSIO_WEBHOOK_SECRET,
3635
+ * });
3636
+ * console.log('Trigger:', result.payload.triggerSlug);
3637
+ * console.log('Event data:', result.payload.payload);
3638
+ * return new Response('OK', { status: 200 });
3639
+ * } catch (error) {
3640
+ * return new Response('Unauthorized', { status: 401 });
3641
+ * }
3642
+ * }
3643
+ *
3644
+ * // Next.js App Router — parse only (no verification)
3645
+ * export async function POST(request: Request) {
3646
+ * const result = await composio.triggers.parse(request);
3647
+ * console.log('Trigger:', result.payload.triggerSlug);
3648
+ * return new Response('OK', { status: 200 });
3649
+ * }
3650
+ * ```
3651
+ */
3652
+ parse(request: WebhookRequestLike, options?: ParseWebhookOptions): Promise<VerifyWebhookResult>;
3478
3653
  /**
3479
3654
  * Verify an incoming webhook payload and signature.
3480
3655
  *
@@ -3593,13 +3768,19 @@ declare class AuthConfigs {
3593
3768
  * toolkit: 'github'
3594
3769
  * });
3595
3770
  *
3771
+ * // Search auth configs by name or id
3772
+ * const searchedConfigs = await composio.authConfigs.list({
3773
+ * search: 'github',
3774
+ * showDisabled: true
3775
+ * });
3776
+ *
3596
3777
  * // List Composio-managed auth configs
3597
3778
  * const managedConfigs = await composio.authConfigs.list({
3598
3779
  * isComposioManaged: true
3599
3780
  * });
3600
3781
  * ```
3601
3782
  */
3602
- list(query?: AuthConfigListParams): Promise<AuthConfigListResponse>;
3783
+ list(query?: AuthConfigListParams, requestOptions?: ComposioRequestOptions): Promise<AuthConfigListResponse>;
3603
3784
  /**
3604
3785
  * Create a new auth config
3605
3786
  * @param {string} toolkit - Unique identifier of the toolkit
@@ -3618,7 +3799,7 @@ declare class AuthConfigs {
3618
3799
  *
3619
3800
  * @link https://docs.composio.dev/reference/auth-configs/create-auth-config
3620
3801
  */
3621
- create(toolkit: string, options?: CreateAuthConfigParams): Promise<CreateAuthConfigResponse>;
3802
+ create(toolkit: string, options?: CreateAuthConfigParams, requestOptions?: ComposioRequestOptions): Promise<CreateAuthConfigResponse>;
3622
3803
  /**
3623
3804
  * Retrieves a specific authentication configuration by its ID.
3624
3805
  *
@@ -3638,7 +3819,7 @@ declare class AuthConfigs {
3638
3819
  * console.log(authConfig.toolkit.slug); // e.g., 'github'
3639
3820
  * ```
3640
3821
  */
3641
- get(nanoid: string): Promise<AuthConfigRetrieveResponse>;
3822
+ get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigRetrieveResponse>;
3642
3823
  /**
3643
3824
  * Updates an existing authentication configuration.
3644
3825
  *
@@ -3669,7 +3850,7 @@ declare class AuthConfigs {
3669
3850
  * });
3670
3851
  * ```
3671
3852
  */
3672
- update(nanoid: string, data: AuthConfigUpdateParams): Promise<AuthConfigUpdateResponse>;
3853
+ update(nanoid: string, data: AuthConfigUpdateParams, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateResponse>;
3673
3854
  /**
3674
3855
  * Deletes an authentication configuration.
3675
3856
  *
@@ -3687,7 +3868,7 @@ declare class AuthConfigs {
3687
3868
  * await composio.authConfigs.delete('auth_abc123');
3688
3869
  * ```
3689
3870
  */
3690
- delete(nanoid: string): Promise<AuthConfigDeleteResponse>;
3871
+ delete(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigDeleteResponse>;
3691
3872
  /**
3692
3873
  * Updates the status of an authentication configuration.
3693
3874
  *
@@ -3709,7 +3890,7 @@ declare class AuthConfigs {
3709
3890
  * await composio.authConfigs.updateStatus('ENABLED', 'auth_abc123');
3710
3891
  * ```
3711
3892
  */
3712
- updateStatus(status: 'ENABLED' | 'DISABLED', nanoid: string): Promise<AuthConfigUpdateStatusResponse>;
3893
+ updateStatus(status: 'ENABLED' | 'DISABLED', nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateStatusResponse>;
3713
3894
  /**
3714
3895
  * Enables an authentication configuration.
3715
3896
  *
@@ -3727,7 +3908,7 @@ declare class AuthConfigs {
3727
3908
  * await composio.authConfigs.enable('auth_abc123');
3728
3909
  * ```
3729
3910
  */
3730
- enable(nanoid: string): Promise<AuthConfigUpdateStatusResponse>;
3911
+ enable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateStatusResponse>;
3731
3912
  /**
3732
3913
  * Disables an authentication configuration.
3733
3914
  *
@@ -3745,7 +3926,7 @@ declare class AuthConfigs {
3745
3926
  * await composio.authConfigs.disable('auth_abc123');
3746
3927
  * ```
3747
3928
  */
3748
- disable(nanoid: string): Promise<AuthConfigUpdateStatusResponse>;
3929
+ disable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateStatusResponse>;
3749
3930
  }
3750
3931
  //#endregion
3751
3932
  //#region src/models/ConnectedAccounts.d.ts
@@ -3782,7 +3963,7 @@ declare class ConnectedAccounts {
3782
3963
  * });
3783
3964
  * ```
3784
3965
  */
3785
- list(query?: ConnectedAccountListParams): Promise<ConnectedAccountListResponse>;
3966
+ list(query?: ConnectedAccountListParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountListResponse>;
3786
3967
  /**
3787
3968
  * Compound function to create a new connected account.
3788
3969
  * This function creates a new connected account and returns a connection request.
@@ -3850,7 +4031,7 @@ declare class ConnectedAccounts {
3850
4031
  *
3851
4032
  * @link https://docs.composio.dev/reference/connected-accounts/create-connected-account
3852
4033
  */
3853
- initiate(userId: string, authConfigId: string, options?: CreateConnectedAccountOptions): Promise<ConnectionRequest>;
4034
+ initiate(userId: string, authConfigId: string, options?: CreateConnectedAccountOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>;
3854
4035
  /**
3855
4036
  * @description Create a Composio Connect Link for a user to connect their account to a given auth config. This method will return an external link which you can use the user to connect their account.
3856
4037
  *
@@ -3858,7 +4039,7 @@ declare class ConnectedAccounts {
3858
4039
  *
3859
4040
  * @param userId {string} - The external user ID to create the connected account for.
3860
4041
  * @param authConfigId {string} - The auth config ID to create the connected account for.
3861
- * @param options {CreateConnectedAccountOptions} - Options for creating a new connected account.
4042
+ * @param options {CreateConnectedAccountLinkOptions} - Options for creating a new connected account link.
3862
4043
  * @param options.callbackUrl {string} - The url to redirect the user to post connecting their account.
3863
4044
  * @returns {ConnectionRequest} Connection request object
3864
4045
  *
@@ -3886,7 +4067,7 @@ declare class ConnectedAccounts {
3886
4067
  * const connectedAccount = await composio.connectedAccounts.waitForConnection(connectionRequest.id);
3887
4068
  * ```
3888
4069
  */
3889
- link(userId: string, authConfigId: string, options?: CreateConnectedAccountLinkOptions): Promise<ConnectionRequest>;
4070
+ link(userId: string, authConfigId: string, options?: CreateConnectedAccountLinkOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>;
3890
4071
  /**
3891
4072
  * Waits for a connection request to complete and become active.
3892
4073
  *
@@ -3928,7 +4109,7 @@ declare class ConnectedAccounts {
3928
4109
  * console.log(account.toolkit.slug); // e.g., 'github'
3929
4110
  * ```
3930
4111
  */
3931
- get(nanoid: string): Promise<ConnectedAccountRetrieveResponse>;
4112
+ get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRetrieveResponse>;
3932
4113
  /**
3933
4114
  * Deletes a connected account.
3934
4115
  *
@@ -3945,7 +4126,7 @@ declare class ConnectedAccounts {
3945
4126
  * await composio.connectedAccounts.delete('conn_abc123');
3946
4127
  * ```
3947
4128
  */
3948
- delete(nanoid: string): Promise<ConnectedAccountDeleteResponse>;
4129
+ delete(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountDeleteResponse>;
3949
4130
  /**
3950
4131
  * Refreshes a connected account's authentication credentials.
3951
4132
  *
@@ -3962,7 +4143,7 @@ declare class ConnectedAccounts {
3962
4143
  * const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
3963
4144
  * ```
3964
4145
  */
3965
- refresh(nanoid: string, options?: ConnectedAccountRefreshOptions): Promise<ConnectedAccountRefreshResponse>;
4146
+ refresh(nanoid: string, options?: ConnectedAccountRefreshOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRefreshResponse>;
3966
4147
  /**
3967
4148
  * Update the status of a connected account
3968
4149
  * @param {string} nanoid - Unique identifier of the connected account
@@ -3983,7 +4164,7 @@ declare class ConnectedAccounts {
3983
4164
  * });
3984
4165
  * ```
3985
4166
  */
3986
- updateStatus(nanoid: string, params: ConnectedAccountUpdateStatusParams): Promise<ConnectedAccountUpdateStatusResponse>;
4167
+ updateStatus(nanoid: string, params: ConnectedAccountUpdateStatusParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
3987
4168
  /**
3988
4169
  * Enable a connected account
3989
4170
  * @param {string} nanoid - Unique identifier of the connected account
@@ -3996,7 +4177,7 @@ declare class ConnectedAccounts {
3996
4177
  * console.log(enabledAccount.isDisabled); // false
3997
4178
  * ```
3998
4179
  */
3999
- enable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
4180
+ enable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
4000
4181
  /**
4001
4182
  * Disable a connected account
4002
4183
  * @param {string} nanoid - Unique identifier of the connected account
@@ -4015,12 +4196,42 @@ declare class ConnectedAccounts {
4015
4196
  * // });
4016
4197
  * ```
4017
4198
  */
4018
- disable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
4199
+ disable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
4200
+ /**
4201
+ * Update the per-user ACL on a SHARED connected account.
4202
+ * **Experimental — shape may change in future releases.**
4203
+ *
4204
+ * Only meaningful for SHARED connections — calling this on a PRIVATE
4205
+ * connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
4206
+ * require the connection's creator or an API key.
4207
+ *
4208
+ * PATCH semantics: omit a field to leave it unchanged; pass an empty
4209
+ * array to clear an allow/deny list. At least one field must be
4210
+ * provided.
4211
+ *
4212
+ * @param {string} nanoid - The unique identifier of the connected account
4213
+ * @param {UpdateConnectedAccountAclParams} params - The ACL fields to patch
4214
+ * @returns {Promise<ConnectedAccountPatchResponse>} The PATCH response
4215
+ *
4216
+ * @example
4217
+ * ```typescript
4218
+ * // Allow every userId to use this SHARED connection
4219
+ * await composio.connectedAccounts.updateAcl('ca_abc123', { allowAllUsers: true });
4220
+ *
4221
+ * // Targeted allow list
4222
+ * await composio.connectedAccounts.updateAcl('ca_abc123', {
4223
+ * allowedUserIds: ['user_alice', 'user_bob'],
4224
+ * });
4225
+ *
4226
+ * // Clear the allow list (back to deny-by-default unless allowAllUsers is true)
4227
+ * await composio.connectedAccounts.updateAcl('ca_abc123', { allowedUserIds: [] });
4228
+ * ```
4229
+ */
4230
+ updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>;
4019
4231
  /**
4020
4232
  * Enable or disable a connected account. Accepts `{ enabled: boolean }`.
4021
4233
  *
4022
- * For ACL writes on SHARED connections, see
4023
- * `composio.experimental.updateAcl()`.
4234
+ * Use `updateAcl()` for ACL writes on SHARED connections.
4024
4235
  *
4025
4236
  * @param {string} nanoid - The unique identifier of the connected account
4026
4237
  * @param {UpdateConnectedAccountParams} params - The update parameters
@@ -4032,19 +4243,15 @@ declare class ConnectedAccounts {
4032
4243
  * await composio.connectedAccounts.update('ca_abc123', { enabled: false });
4033
4244
  * ```
4034
4245
  */
4035
- update(nanoid: string, params: UpdateConnectedAccountParams): Promise<ConnectedAccountUpdateStatusResponse>;
4246
+ update(nanoid: string, params: UpdateConnectedAccountParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
4036
4247
  }
4037
4248
  //#endregion
4038
4249
  //#region src/models/Experimental.d.ts
4039
- /**
4040
- * `composio.experimental` namespace. Mirrors the Python SDK's
4041
- * `composio.experimental` mount, with one method per experimental
4042
- * surface. **Shape may change in future releases.**
4043
- */
4044
4250
  declare class Experimental {
4045
4251
  private client;
4046
4252
  constructor(client: ComposioClient);
4047
4253
  /**
4254
+ * Compatibility alias for `composio.connectedAccounts.updateAcl(...)`.
4048
4255
  * Update the per-user ACL on a SHARED connected account.
4049
4256
  * **Experimental — shape may change in future releases.**
4050
4257
  *
@@ -4069,21 +4276,21 @@ declare class Experimental {
4069
4276
  * const composio = new Composio({ apiKey: '...' });
4070
4277
  *
4071
4278
  * // Allow every userId to use this connection
4072
- * await composio.experimental.updateAcl('ca_abc', { allowAllUsers: true });
4279
+ * await composio.connectedAccounts.updateAcl('ca_abc', { allowAllUsers: true });
4073
4280
  *
4074
4281
  * // Everyone except a specific user
4075
- * await composio.experimental.updateAcl('ca_abc', {
4282
+ * await composio.connectedAccounts.updateAcl('ca_abc', {
4076
4283
  * allowAllUsers: true,
4077
4284
  * notAllowedUserIds: ['user_bob'],
4078
4285
  * });
4079
4286
  *
4080
4287
  * // Targeted allow
4081
- * await composio.experimental.updateAcl('ca_abc', {
4288
+ * await composio.connectedAccounts.updateAcl('ca_abc', {
4082
4289
  * allowedUserIds: ['user_alice', 'user_bob'],
4083
4290
  * });
4084
4291
  *
4085
4292
  * // Revoke a previously-granted allow list (back to deny-by-default)
4086
- * await composio.experimental.updateAcl('ca_abc', { allowedUserIds: [] });
4293
+ * await composio.connectedAccounts.updateAcl('ca_abc', { allowedUserIds: [] });
4087
4294
  * ```
4088
4295
  *
4089
4296
  * **Empty-array semantics — read carefully.** Passing `[]` for either
@@ -4099,6 +4306,8 @@ declare class Experimental {
4099
4306
  * the updated ACL block, call
4100
4307
  * `composio.connectedAccounts.get(nanoid)` after the promise
4101
4308
  * resolves and inspect `account.experimental?.aclConfigForShared`.
4309
+ *
4310
+ * @deprecated Use `composio.connectedAccounts.updateAcl(...)` instead — ACL updates graduated onto the `connectedAccounts` mount. This experimental alias is kept only for backwards compatibility and will be removed once the API graduates. Prefer the `connectedAccounts` mount; do not generate new code against this alias.
4102
4311
  */
4103
4312
  updateAcl(nanoid: string, params: UpdateConnectedAccountAclParams): Promise<ConnectedAccountPatchResponse>;
4104
4313
  }
@@ -4113,20 +4322,20 @@ declare const MCPServerInstanceSchema: z$1.ZodObject<{
4113
4322
  allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
4114
4323
  authConfigs: z$1.ZodArray<z$1.ZodString, "many">;
4115
4324
  }, "strip", z$1.ZodTypeAny, {
4116
- name: string;
4117
4325
  type: "streamable_http";
4118
- userId: string;
4119
- id: string;
4120
4326
  allowedTools: string[];
4327
+ userId: string;
4121
4328
  url: string;
4329
+ name: string;
4330
+ id: string;
4122
4331
  authConfigs: string[];
4123
4332
  }, {
4124
- name: string;
4125
4333
  type: "streamable_http";
4126
- userId: string;
4127
- id: string;
4128
4334
  allowedTools: string[];
4335
+ userId: string;
4129
4336
  url: string;
4337
+ name: string;
4338
+ id: string;
4130
4339
  authConfigs: string[];
4131
4340
  }>;
4132
4341
  type MCPServerInstance = z$1.infer<typeof MCPServerInstanceSchema>;
@@ -4193,12 +4402,12 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
4193
4402
  */
4194
4403
  windsurf: z$1.ZodString;
4195
4404
  }, "strip", z$1.ZodTypeAny, {
4196
- cursor: string;
4197
4405
  claude: string;
4406
+ cursor: string;
4198
4407
  windsurf: string;
4199
4408
  }, {
4200
- cursor: string;
4201
4409
  claude: string;
4410
+ cursor: string;
4202
4411
  windsurf: string;
4203
4412
  }>;
4204
4413
  /**
@@ -4206,24 +4415,24 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
4206
4415
  */
4207
4416
  MCPUrl: z$1.ZodString;
4208
4417
  }, "strip", z$1.ZodTypeAny, {
4418
+ allowedTools: string[];
4209
4419
  name: string;
4210
- authConfigIds: string[];
4211
4420
  id: string;
4212
- allowedTools: string[];
4421
+ authConfigIds: string[];
4213
4422
  commands: {
4214
- cursor: string;
4215
4423
  claude: string;
4424
+ cursor: string;
4216
4425
  windsurf: string;
4217
4426
  };
4218
4427
  MCPUrl: string;
4219
4428
  }, {
4429
+ allowedTools: string[];
4220
4430
  name: string;
4221
- authConfigIds: string[];
4222
4431
  id: string;
4223
- allowedTools: string[];
4432
+ authConfigIds: string[];
4224
4433
  commands: {
4225
- cursor: string;
4226
4434
  claude: string;
4435
+ cursor: string;
4227
4436
  windsurf: string;
4228
4437
  };
4229
4438
  MCPUrl: string;
@@ -4253,15 +4462,15 @@ declare const MCPListParamsSchema: z$1.ZodObject<{
4253
4462
  name: z$1.ZodOptional<z$1.ZodString>;
4254
4463
  }, "strip", z$1.ZodTypeAny, {
4255
4464
  toolkits: string[];
4256
- limit: number;
4257
4465
  page: number;
4466
+ limit: number;
4258
4467
  authConfigs: string[];
4259
4468
  name?: string | undefined;
4260
4469
  }, {
4261
4470
  name?: string | undefined;
4262
4471
  toolkits?: string[] | undefined;
4263
- limit?: number | undefined;
4264
4472
  page?: number | undefined;
4473
+ limit?: number | undefined;
4265
4474
  authConfigs?: string[] | undefined;
4266
4475
  }>;
4267
4476
  type MCPListParams = z$1.infer<typeof MCPListParamsSchema>;
@@ -4299,12 +4508,12 @@ declare const MCPItemSchema: z$1.ZodObject<{
4299
4508
  */
4300
4509
  windsurf: z$1.ZodString;
4301
4510
  }, "strip", z$1.ZodTypeAny, {
4302
- cursor: string;
4303
4511
  claude: string;
4512
+ cursor: string;
4304
4513
  windsurf: string;
4305
4514
  }, {
4306
- cursor: string;
4307
4515
  claude: string;
4516
+ cursor: string;
4308
4517
  windsurf: string;
4309
4518
  }>;
4310
4519
  /**
@@ -4316,28 +4525,28 @@ declare const MCPItemSchema: z$1.ZodObject<{
4316
4525
  serverInstanceCount: z$1.ZodNumber;
4317
4526
  toolkits: z$1.ZodArray<z$1.ZodString, "many">;
4318
4527
  }, "strip", z$1.ZodTypeAny, {
4528
+ allowedTools: string[];
4319
4529
  name: string;
4320
4530
  toolkits: string[];
4321
- authConfigIds: string[];
4322
4531
  id: string;
4323
- allowedTools: string[];
4532
+ authConfigIds: string[];
4324
4533
  commands: {
4325
- cursor: string;
4326
4534
  claude: string;
4535
+ cursor: string;
4327
4536
  windsurf: string;
4328
4537
  };
4329
4538
  MCPUrl: string;
4330
4539
  toolkitIcons: Record<string, string>;
4331
4540
  serverInstanceCount: number;
4332
4541
  }, {
4542
+ allowedTools: string[];
4333
4543
  name: string;
4334
4544
  toolkits: string[];
4335
- authConfigIds: string[];
4336
4545
  id: string;
4337
- allowedTools: string[];
4546
+ authConfigIds: string[];
4338
4547
  commands: {
4339
- cursor: string;
4340
4548
  claude: string;
4549
+ cursor: string;
4341
4550
  windsurf: string;
4342
4551
  };
4343
4552
  MCPUrl: string;
@@ -4380,12 +4589,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4380
4589
  */
4381
4590
  windsurf: z$1.ZodString;
4382
4591
  }, "strip", z$1.ZodTypeAny, {
4383
- cursor: string;
4384
4592
  claude: string;
4593
+ cursor: string;
4385
4594
  windsurf: string;
4386
4595
  }, {
4387
- cursor: string;
4388
4596
  claude: string;
4597
+ cursor: string;
4389
4598
  windsurf: string;
4390
4599
  }>;
4391
4600
  /**
@@ -4397,28 +4606,28 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4397
4606
  serverInstanceCount: z$1.ZodNumber;
4398
4607
  toolkits: z$1.ZodArray<z$1.ZodString, "many">;
4399
4608
  }, "strip", z$1.ZodTypeAny, {
4609
+ allowedTools: string[];
4400
4610
  name: string;
4401
4611
  toolkits: string[];
4402
- authConfigIds: string[];
4403
4612
  id: string;
4404
- allowedTools: string[];
4613
+ authConfigIds: string[];
4405
4614
  commands: {
4406
- cursor: string;
4407
4615
  claude: string;
4616
+ cursor: string;
4408
4617
  windsurf: string;
4409
4618
  };
4410
4619
  MCPUrl: string;
4411
4620
  toolkitIcons: Record<string, string>;
4412
4621
  serverInstanceCount: number;
4413
4622
  }, {
4623
+ allowedTools: string[];
4414
4624
  name: string;
4415
4625
  toolkits: string[];
4416
- authConfigIds: string[];
4417
4626
  id: string;
4418
- allowedTools: string[];
4627
+ authConfigIds: string[];
4419
4628
  commands: {
4420
- cursor: string;
4421
4629
  claude: string;
4630
+ cursor: string;
4422
4631
  windsurf: string;
4423
4632
  };
4424
4633
  MCPUrl: string;
@@ -4429,14 +4638,14 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4429
4638
  totalPages: z$1.ZodNumber;
4430
4639
  }, "strip", z$1.ZodTypeAny, {
4431
4640
  items: {
4641
+ allowedTools: string[];
4432
4642
  name: string;
4433
4643
  toolkits: string[];
4434
- authConfigIds: string[];
4435
4644
  id: string;
4436
- allowedTools: string[];
4645
+ authConfigIds: string[];
4437
4646
  commands: {
4438
- cursor: string;
4439
4647
  claude: string;
4648
+ cursor: string;
4440
4649
  windsurf: string;
4441
4650
  };
4442
4651
  MCPUrl: string;
@@ -4447,14 +4656,14 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
4447
4656
  currentPage: number;
4448
4657
  }, {
4449
4658
  items: {
4659
+ allowedTools: string[];
4450
4660
  name: string;
4451
4661
  toolkits: string[];
4452
- authConfigIds: string[];
4453
4662
  id: string;
4454
- allowedTools: string[];
4663
+ authConfigIds: string[];
4455
4664
  commands: {
4456
- cursor: string;
4457
4665
  claude: string;
4666
+ cursor: string;
4458
4667
  windsurf: string;
4459
4668
  };
4460
4669
  MCPUrl: string;
@@ -4480,20 +4689,20 @@ declare const MCPUpdateParamsSchema: z$1.ZodObject<{
4480
4689
  allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
4481
4690
  manuallyManageConnections: z$1.ZodOptional<z$1.ZodBoolean>;
4482
4691
  }, "strip", z$1.ZodTypeAny, {
4692
+ allowedTools?: string[] | undefined;
4483
4693
  name?: string | undefined;
4484
4694
  toolkits?: (string | {
4485
4695
  toolkit?: string | undefined;
4486
4696
  authConfigId?: string | undefined;
4487
4697
  })[] | undefined;
4488
- allowedTools?: string[] | undefined;
4489
4698
  manuallyManageConnections?: boolean | undefined;
4490
4699
  }, {
4700
+ allowedTools?: string[] | undefined;
4491
4701
  name?: string | undefined;
4492
4702
  toolkits?: (string | {
4493
4703
  toolkit?: string | undefined;
4494
4704
  authConfigId?: string | undefined;
4495
4705
  })[] | undefined;
4496
- allowedTools?: string[] | undefined;
4497
4706
  manuallyManageConnections?: boolean | undefined;
4498
4707
  }>;
4499
4708
  type MCPUpdateParams = z$1.infer<typeof MCPUpdateParamsSchema>;
@@ -4503,6 +4712,12 @@ type MCPUpdateParams = z$1.infer<typeof MCPUpdateParamsSchema>;
4503
4712
  * MCP (Model Control Protocol) class
4504
4713
  * Handles MCP server operations.
4505
4714
  * When `config.experimental.mcp` is enabled, this class augments the features of `composio.mcp`.
4715
+ *
4716
+ * @deprecated Use a session's MCP endpoint instead: `composio.create(userId, { mcp: true })`
4717
+ * returns a session that exposes `session.mcp.url` / `session.mcp.headers`. MCP is now
4718
+ * opt-in per session; the standalone `composio.mcp` server-management API is kept only for
4719
+ * backwards compatibility. Prefer the session MCP endpoint; do not generate new code against
4720
+ * `composio.mcp`. See https://docs.composio.dev/docs/sessions-via-mcp
4506
4721
  */
4507
4722
  declare class MCP {
4508
4723
  client: Composio;
@@ -4533,7 +4748,7 @@ declare class MCP {
4533
4748
  * });
4534
4749
  * ```
4535
4750
  */
4536
- create(name: string, mcpConfig: MCPConfigCreationParams): Promise<MCPConfigCreateResponse>;
4751
+ create(name: string, mcpConfig: MCPConfigCreationParams, requestOptions?: ComposioRequestOptions): Promise<MCPConfigCreateResponse>;
4537
4752
  /**
4538
4753
  * List the MCP servers with optional filtering and pagination
4539
4754
  * @param {Object} options - Filtering and pagination options
@@ -4566,7 +4781,7 @@ declare class MCP {
4566
4781
  * });
4567
4782
  * ```
4568
4783
  */
4569
- list(options: MCPListParams): Promise<MCPListResponse>;
4784
+ list(options: MCPListParams, requestOptions?: ComposioRequestOptions): Promise<MCPListResponse>;
4570
4785
  /**
4571
4786
  * Retrieve detailed information about a specific MCP server by its ID
4572
4787
  * @param {string} serverId - The unique identifier of the MCP server to retrieve
@@ -4593,7 +4808,7 @@ declare class MCP {
4593
4808
  *
4594
4809
  * @throws {ValidationError} When the server ID is invalid or server not found
4595
4810
  */
4596
- get(serverId: string): Promise<MCPItem>;
4811
+ get(serverId: string, requestOptions?: ComposioRequestOptions): Promise<MCPItem>;
4597
4812
  /**
4598
4813
  * Delete an MCP server configuration permanently
4599
4814
  * @param {string} serverId - The unique identifier of the MCP server to delete
@@ -4630,7 +4845,7 @@ declare class MCP {
4630
4845
  *
4631
4846
  * @warning This operation is irreversible. Once deleted, the MCP server configuration and all its associated data will be permanently removed.
4632
4847
  */
4633
- delete(serverId: string): Promise<{
4848
+ delete(serverId: string, requestOptions?: ComposioRequestOptions): Promise<{
4634
4849
  id: string;
4635
4850
  deleted: boolean;
4636
4851
  }>;
@@ -4698,7 +4913,7 @@ declare class MCP {
4698
4913
  * @note Only provided fields will be updated. Omitted fields will retain their current values.
4699
4914
  * @note When updating toolkits, the entire toolkit configuration is replaced, not merged.
4700
4915
  */
4701
- update(serverId: string, config: MCPUpdateParams): Promise<MCPItem>;
4916
+ update(serverId: string, config: MCPUpdateParams, requestOptions?: ComposioRequestOptions): Promise<MCPItem>;
4702
4917
  /**
4703
4918
  * Get server URLs for an existing MCP server.
4704
4919
  * The response is wrapped according to the provider's specifications.
@@ -4716,7 +4931,7 @@ declare class MCP {
4716
4931
  * @param options {object} additional options
4717
4932
  * @param options.isChatAuth {boolean} Authenticate the users via chat when they use the MCP Server
4718
4933
  */
4719
- generate(userId: string, mcpConfigId: string, options?: MCPGetInstanceParams): Promise<MCPServerInstance>;
4934
+ generate(userId: string, mcpConfigId: string, options?: MCPGetInstanceParams, requestOptions?: ComposioRequestOptions): Promise<MCPServerInstance>;
4720
4935
  }
4721
4936
  //#endregion
4722
4937
  //#region src/provider/OpenAIProvider.d.ts
@@ -5065,7 +5280,7 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
5065
5280
  *
5066
5281
  * const composio = new Composio();
5067
5282
  *
5068
- * const session = await composio.create('user_123', {
5283
+ * const session = await composio.sessions.create('user_123', {
5069
5284
  * toolkits: ['gmail'],
5070
5285
  * manageConnections: true,
5071
5286
  * experimental: {
@@ -5075,7 +5290,10 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
5075
5290
  * });
5076
5291
  * ```
5077
5292
  */
5078
- create(userId: string, config?: ToolRouterCreateSessionConfig): Promise<Session<TToolCollection, TTool, TProvider>>;
5293
+ create(userId: string, config: ToolRouterCreateSessionConfig & {
5294
+ mcp: true;
5295
+ }, requestOptions?: ComposioRequestOptions): Promise<Session<TToolCollection, TTool, TProvider>>;
5296
+ create(userId: string, config?: ToolRouterCreateSessionConfig, requestOptions?: ComposioRequestOptions): Promise<SessionWithoutMcp<TToolCollection, TTool, TProvider>>;
5079
5297
  /**
5080
5298
  * Use an existing session
5081
5299
  * @param id {string} The id of the session to use
@@ -5087,16 +5305,34 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
5087
5305
  *
5088
5306
  * const composio = new Composio();
5089
5307
  * const id = 'session_123';
5090
- * const session = await composio.toolRouter.use(id);
5308
+ * const session = await composio.sessions.use(id);
5091
5309
  *
5092
5310
  * console.log(session.mcp.url);
5093
5311
  * console.log(session.mcp.headers);
5094
5312
  * ```
5095
5313
  */
5314
+ use(id: string, options: {
5315
+ customTools?: CustomTool[];
5316
+ customToolkits?: CustomToolkit[];
5317
+ mcp: true;
5318
+ }, requestOptions?: ComposioRequestOptions): Promise<Session<TToolCollection, TTool, TProvider>>;
5096
5319
  use(id: string, options?: {
5097
5320
  customTools?: CustomTool[];
5098
5321
  customToolkits?: CustomToolkit[];
5099
- }): Promise<Session<TToolCollection, TTool, TProvider>>;
5322
+ mcp?: boolean;
5323
+ }, requestOptions?: ComposioRequestOptions): Promise<SessionWithoutMcp<TToolCollection, TTool, TProvider>>;
5324
+ }
5325
+ //#endregion
5326
+ //#region src/models/Sessions.d.ts
5327
+ /**
5328
+ * First-class API for creating and reusing Composio sessions.
5329
+ *
5330
+ * `composio.sessions.create(...)` is the canonical session creation entrypoint.
5331
+ * The top-level `composio.create(...)` method remains as a backwards-compatible
5332
+ * alias for `composio.sessions.create(...)`.
5333
+ */
5334
+ declare class Sessions<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> extends ToolRouter<TToolCollection, TTool, TProvider> {
5335
+ constructor(client: Composio, config?: ComposioConfig<TProvider>);
5100
5336
  }
5101
5337
  //#endregion
5102
5338
  //#region src/composio.d.ts
@@ -5266,17 +5502,33 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5266
5502
  connectedAccounts: ConnectedAccounts;
5267
5503
  /**
5268
5504
  * Experimental SDK methods whose shape may change in future releases.
5269
- * Houses stateful operations like {@link Experimental.updateAcl} that
5270
- * take a client and perform I/O. Stateless experimental factories
5271
- * (e.g. `experimental_createTool`) stay at the top level.
5505
+ * Prefer domain-specific mounts (for example
5506
+ * `composio.connectedAccounts.updateAcl(...)`) when available; this
5507
+ * namespace keeps compatibility aliases while APIs are experimental.
5508
+ * Stateless experimental factories (e.g. `experimental_createTool`) stay
5509
+ * at the top level.
5272
5510
  * @experimental
5273
5511
  */
5274
5512
  experimental: Experimental;
5275
- /** Model Context Protocol server management */
5513
+ /**
5514
+ * Model Context Protocol server management.
5515
+ * @deprecated Use a session's MCP endpoint instead: `composio.create(userId, { mcp: true })`
5516
+ * returns a session that exposes `session.mcp.url` / `session.mcp.headers`. MCP is now opt-in
5517
+ * per session; this standalone server-management API is kept only for backwards compatibility.
5518
+ * Prefer the session MCP endpoint; do not generate new code against `composio.mcp`.
5519
+ * See https://docs.composio.dev/docs/sessions-via-mcp
5520
+ */
5276
5521
  mcp: MCP;
5277
5522
  /**
5278
- * Experimental feature, use with caution
5279
- * @experimental
5523
+ * Create and reuse Composio sessions.
5524
+ *
5525
+ * Prefer `composio.sessions.create(...)` for new code. The top-level
5526
+ * `composio.create(...)` method is kept as an alias.
5527
+ */
5528
+ sessions: Sessions<unknown, unknown, TProvider>;
5529
+ /**
5530
+ * Legacy alias for `composio.sessions`.
5531
+ * @deprecated Use `composio.sessions` instead — `toolRouter` was renamed to `sessions` and is kept only for backwards compatibility. Prefer `composio.sessions`; do not generate new code against `composio.toolRouter`.
5280
5532
  */
5281
5533
  toolRouter: ToolRouter<unknown, unknown, TProvider>;
5282
5534
  /**
@@ -5295,7 +5547,12 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5295
5547
  * const composio = new Composio();
5296
5548
  * const userId = 'user_123';
5297
5549
  *
5298
- * const session = await composio.create(userId, {
5550
+ * const session = await composio.sessions.create(userId, {
5551
+ * manageConnections: true,
5552
+ * });
5553
+ *
5554
+ * // Backwards-compatible alias:
5555
+ * const same = await composio.create(userId, {
5299
5556
  * manageConnections: true,
5300
5557
  * });
5301
5558
  *
@@ -5304,17 +5561,19 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5304
5561
  * console.log(session.tools());
5305
5562
  * ```
5306
5563
  */
5307
- create: (userId: string, routerConfig?: ToolRouterCreateSessionConfig) => Promise<Session<unknown, unknown, TProvider>>;
5564
+ create: Sessions<unknown, unknown, TProvider>['create'];
5308
5565
  /**
5309
5566
  * Use an existing tool router session
5310
5567
  *
5311
5568
  * @param id {string} The id of the session to use
5569
+ * @param options {object} Custom tools / toolkits to attach to the session
5570
+ * @param requestOptions {ComposioRequestOptions} Per-request cancellation
5571
+ * options. The supplied AbortSignal aborts the underlying session
5572
+ * retrieve/attach call only. Subsequent session method calls accept
5573
+ * their own per-call requestOptions.
5312
5574
  * @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
5313
5575
  */
5314
- use: (id: string, options?: {
5315
- customTools?: CustomTool[];
5316
- customToolkits?: CustomToolkit[];
5317
- }) => Promise<Session<unknown, unknown, TProvider>>;
5576
+ use: Sessions<unknown, unknown, TProvider>['use'];
5318
5577
  /**
5319
5578
  * Creates a new instance of the Composio SDK.
5320
5579
  *
@@ -5375,7 +5634,9 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5375
5634
  * The new instance inherits all configuration from the parent instance (apiKey, baseURL, provider, etc.)
5376
5635
  * but allows you to specify custom request options that will be used for all API calls made through this session.
5377
5636
  *
5378
- * @deprecated DEPRECATED: This method will be removed in a future version of the SDK.
5637
+ * @deprecated Will be removed in a future version of the SDK. Instead, construct a new
5638
+ * instance directly with the headers you need: `new Composio({ ...existingConfig, defaultHeaders })`.
5639
+ * For one-off overrides, pass per-call `requestOptions` where supported.
5379
5640
  *
5380
5641
  * @param {MergedRequestInit} fetchOptions - Custom request options to be used for all API calls in this session.
5381
5642
  * This follows the Fetch API RequestInit interface with additional options.
@@ -5434,4 +5695,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
5434
5695
  flush(): Promise<void>;
5435
5696
  }
5436
5697
  //#endregion
5437
- export { WebhookVersions as $, TriggerSubscribeParamSchema as A, ToolkitAuthConfigDetailsSchema as At, VerifyWebhookParamsSchema as B, ToolkitRetrieveCategoriesResponse as Bt, TriggerInstanceUpsertParams as C, ToolKitItem as Ct, TriggerStatusEnum as D, ToolKitMeta as Dt, TriggerInstanceUpsertResponseSchema as E, ToolKitListResponseSchema as Et, TriggersTypeListParamsSchema as F, ToolkitCategory as Ft, WebhookPayloadV1Schema as G, ToolkitSortByEnumSchema as Gt, WebhookPayload as H, ToolkitRetrieveResponse as Ht, TriggersTypeListResponse as I, ToolkitCategorySchema as It, WebhookPayloadV3 as J, WebhookPayloadV2 as K, ToolkitsListParamsSchema as Kt, TriggersTypeListResponseSchema as L, ToolkitListParams as Lt, TriggerType as M, ToolkitAuthFieldSchema as Mt, TriggerTypeSchema as N, ToolkitAuthFieldsResponse as Nt, TriggerStatusType as O, ToolKitMetaSchema as Ot, TriggersTypeListParams as P, ToolkitAuthFieldsResponseSchema as Pt, WebhookVersion as Q, TriggersTypeRetrieveResponse as R, ToolkitMangedByEnum as Rt, TriggerInstanceManageUpdateResponseSchema as S, CreateCustomAuthConfigParamsSchema as St, TriggerInstanceUpsertResponse as T, ToolKitListResponse as Tt, WebhookPayloadSchema as U, ToolkitRetrieveResponseSchema as Ut, VerifyWebhookResult as V, ToolkitRetrieveCategoriesResponseSchema as Vt, WebhookPayloadV1 as W, ToolkitSortByEnum as Wt, WebhookTriggerPayloadV3 as X, WebhookPayloadV3Schema as Y, WebhookTriggerPayloadV3Schema as Z, TriggerInstanceManageDeleteResponse as _, CreateAuthConfigParams as _t, Experimental as a, AuthConfigRetrieveResponse as at, TriggerInstanceManageUpdateParamsSchema as b, CreateAuthConfigResponseSchema as bt, TriggerData as c, AuthConfigType as ct, TriggerInstanceListActiveParams as d, AuthConfigUpdateParamsSchema as dt, AuthConfigCreationToolAccessConfigSchema as et, TriggerInstanceListActiveParamsSchema as f, AuthCustomConfigUpdateParamsSchema as ft, TriggerInstanceListActiveResponseSchema as g, AuthSchemeTypes as gt, TriggerInstanceListActiveResponseItemSchema as h, AuthSchemeType as ht, MCP as i, AuthConfigListResponseSchema as it, TriggerSubscribeParams as j, ToolkitAuthField as jt, TriggerStatuses as k, ToolkitAuthConfigDetails as kt, TriggerEvent as l, AuthConfigTypes as lt, TriggerInstanceListActiveResponseItem as m, AuthSchemeEnum as mt, ComposioConfig as n, AuthConfigListParamsSchema as nt, IncomingTriggerPayload as o, AuthConfigRetrieveResponseSchema as ot, TriggerInstanceListActiveResponse as p, AuthDefaultConfigUpdateParamsSchema as pt, WebhookPayloadV2Schema as q, OpenAIProvider as r, AuthConfigListResponse as rt, IncomingTriggerPayloadSchema as s, AuthConfigToolAccessConfigSchema as st, Composio$1 as t, AuthConfigListParams as tt, TriggerEventData as u, AuthConfigUpdateParams as ut, TriggerInstanceManageDeleteResponseSchema as v, CreateAuthConfigParamsSchema as vt, TriggerInstanceUpsertParamsSchema as w, ToolKitItemSchema as wt, TriggerInstanceManageUpdateResponse as x, CreateComposioManagedAuthConfigParamsSchema as xt, TriggerInstanceManageUpdateParams as y, CreateAuthConfigResponse as yt, VerifyWebhookParams as z, ToolkitMangedByEnumSchema as zt };
5698
+ export { WebhookPayloadV3 as $, ToolkitsListParamsSchema as $t, TriggerInstanceUpsertResponse as A, ToolKitItem as At, TriggersTypeListParamsSchema as B, ToolkitAuthFieldsResponse as Bt, TriggerInstanceManageDeleteResponseSchema as C, AuthSchemeTypes as Ct, TriggerInstanceManageUpdateResponseSchema as D, CreateAuthConfigResponseSchema as Dt, TriggerInstanceManageUpdateResponse as E, CreateAuthConfigResponse as Et, TriggerSubscribeParamSchema as F, ToolKitMetaSchema as Ft, VerifyWebhookParamsSchema as G, ToolkitMangedByEnum as Gt, TriggersTypeListResponseSchema as H, ToolkitCategory as Ht, TriggerSubscribeParams as I, ToolkitAuthConfigDetails as It, WebhookPayloadSchema as J, ToolkitRetrieveCategoriesResponseSchema as Jt, VerifyWebhookResult as K, ToolkitMangedByEnumSchema as Kt, TriggerType as L, ToolkitAuthConfigDetailsSchema as Lt, TriggerStatusEnum as M, ToolKitListResponse as Mt, TriggerStatusType as N, ToolKitListResponseSchema as Nt, TriggerInstanceUpsertParams as O, CreateComposioManagedAuthConfigParamsSchema as Ot, TriggerStatuses as P, ToolKitMeta as Pt, WebhookPayloadV2Schema as Q, ToolkitSortByEnumSchema as Qt, TriggerTypeSchema as R, ToolkitAuthField as Rt, TriggerInstanceManageDeleteResponse as S, AuthSchemeType as St, TriggerInstanceManageUpdateParamsSchema as T, CreateAuthConfigParamsSchema as Tt, TriggersTypeRetrieveResponse as U, ToolkitCategorySchema as Ut, TriggersTypeListResponse as V, ToolkitAuthFieldsResponseSchema as Vt, VerifyWebhookParams as W, ToolkitListParams as Wt, WebhookPayloadV1Schema as X, ToolkitRetrieveResponseSchema as Xt, WebhookPayloadV1 as Y, ToolkitRetrieveResponse as Yt, WebhookPayloadV2 as Z, ToolkitSortByEnum as Zt, TriggerInstanceListActiveParamsSchema as _, AuthConfigUpdateParams as _t, MCP as a, WebhookVersion as at, TriggerInstanceListActiveResponseItemSchema as b, AuthDefaultConfigUpdateParamsSchema as bt, IncomingTriggerPayload as c, AuthConfigListParams as ct, SetWebhookSubscriptionParams as d, AuthConfigListResponseSchema as dt, ComposioRequestOptions as en, WebhookPayloadV3Schema as et, SetWebhookSubscriptionParamsSchema as f, AuthConfigRetrieveResponse as ft, TriggerInstanceListActiveParams as g, AuthConfigTypes as gt, TriggerEventData as h, AuthConfigType as ht, OpenAIProvider as i, WebhookTriggerPayloadV3Schema as it, TriggerInstanceUpsertResponseSchema as j, ToolKitItemSchema as jt, TriggerInstanceUpsertParamsSchema as k, CreateCustomAuthConfigParamsSchema as kt, IncomingTriggerPayloadSchema as l, AuthConfigListParamsSchema as lt, TriggerEvent as m, AuthConfigToolAccessConfigSchema as mt, ComposioConfig as n, WebhookSubscription as nt, Experimental as o, WebhookVersions as ot, TriggerData as p, AuthConfigRetrieveResponseSchema as pt, WebhookPayload as q, ToolkitRetrieveCategoriesResponse as qt, Sessions as r, WebhookTriggerPayloadV3 as rt, DefaultWebhookSubscriptionEvents as s, AuthConfigCreationToolAccessConfigSchema as st, Composio$1 as t, WebhookRequestLike as tt, ParseWebhookOptions as u, AuthConfigListResponse as ut, TriggerInstanceListActiveResponse as v, AuthConfigUpdateParamsSchema as vt, TriggerInstanceManageUpdateParams as w, CreateAuthConfigParams as wt, TriggerInstanceListActiveResponseSchema as x, AuthSchemeEnum as xt, TriggerInstanceListActiveResponseItem as y, AuthCustomConfigUpdateParamsSchema as yt, TriggersTypeListParams as z, ToolkitAuthFieldSchema as zt };