@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,7 +1,7 @@
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-BvHvJLXc.mjs";
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-DLIORcYN.mjs";
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-Brb3o86-.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-DXin7Cfc.mjs";
3
3
  import ComposioClient, { Composio } from "@composio/client";
4
- import z, { z as z$1 } from "zod/v3";
4
+ import z$1, { z } from "zod/v3";
5
5
  import { OpenAI } from "openai";
6
6
  import { Files } from "#files";
7
7
  import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
@@ -11,6 +11,45 @@ import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/ind
11
11
  import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
12
12
  import { Stream } from "openai/streaming";
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,22 +519,22 @@ 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
485
526
  /**
486
527
  * Toolkit list params
487
528
  */
488
- declare const ToolkitMangedByEnumSchema: z$1.ZodEnum<["all", "composio", "project"]>;
489
- declare const ToolkitSortByEnumSchema: z$1.ZodEnum<["usage", "alphabetically"]>;
490
- declare const ToolkitsListParamsSchema: z$1.ZodObject<{
491
- category: z$1.ZodOptional<z$1.ZodString>;
492
- managedBy: z$1.ZodOptional<z$1.ZodEnum<["all", "composio", "project"]>>;
493
- sortBy: z$1.ZodOptional<z$1.ZodEnum<["usage", "alphabetically"]>>;
494
- cursor: z$1.ZodOptional<z$1.ZodString>;
495
- limit: z$1.ZodOptional<z$1.ZodNumber>;
496
- }, "strip", z$1.ZodTypeAny, {
529
+ declare const ToolkitMangedByEnumSchema: z.ZodEnum<["all", "composio", "project"]>;
530
+ declare const ToolkitSortByEnumSchema: z.ZodEnum<["usage", "alphabetically"]>;
531
+ declare const ToolkitsListParamsSchema: z.ZodObject<{
532
+ category: z.ZodOptional<z.ZodString>;
533
+ managedBy: z.ZodOptional<z.ZodEnum<["all", "composio", "project"]>>;
534
+ sortBy: z.ZodOptional<z.ZodEnum<["usage", "alphabetically"]>>;
535
+ cursor: z.ZodOptional<z.ZodString>;
536
+ limit: z.ZodOptional<z.ZodNumber>;
537
+ }, "strip", z.ZodTypeAny, {
497
538
  limit?: number | undefined;
498
539
  cursor?: string | undefined;
499
540
  category?: string | undefined;
@@ -506,340 +547,340 @@ declare const ToolkitsListParamsSchema: z$1.ZodObject<{
506
547
  managedBy?: "all" | "composio" | "project" | undefined;
507
548
  sortBy?: "usage" | "alphabetically" | undefined;
508
549
  }>;
509
- type ToolkitMangedByEnum = z$1.infer<typeof ToolkitMangedByEnumSchema>;
510
- type ToolkitSortByEnum = z$1.infer<typeof ToolkitSortByEnumSchema>;
511
- type ToolkitListParams = z$1.infer<typeof ToolkitsListParamsSchema>;
550
+ type ToolkitMangedByEnum = z.infer<typeof ToolkitMangedByEnumSchema>;
551
+ type ToolkitSortByEnum = z.infer<typeof ToolkitSortByEnumSchema>;
552
+ type ToolkitListParams = z.infer<typeof ToolkitsListParamsSchema>;
512
553
  /**
513
554
  * Toolkits response
514
555
  */
515
- declare const ToolKitMetaSchema: z$1.ZodObject<{
516
- categories: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
517
- slug: z$1.ZodString;
518
- name: z$1.ZodString;
519
- }, "strip", z$1.ZodTypeAny, {
520
- name: string;
556
+ declare const ToolKitMetaSchema: z.ZodObject<{
557
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
558
+ slug: z.ZodString;
559
+ name: z.ZodString;
560
+ }, "strip", z.ZodTypeAny, {
521
561
  slug: string;
522
- }, {
523
562
  name: string;
563
+ }, {
524
564
  slug: string;
565
+ name: string;
525
566
  }>, "many">>;
526
- appUrl: z$1.ZodOptional<z$1.ZodString>;
527
- createdAt: z$1.ZodOptional<z$1.ZodString>;
528
- description: z$1.ZodOptional<z$1.ZodString>;
529
- logo: z$1.ZodOptional<z$1.ZodString>;
530
- toolsCount: z$1.ZodOptional<z$1.ZodNumber>;
531
- triggersCount: z$1.ZodOptional<z$1.ZodNumber>;
532
- updatedAt: z$1.ZodOptional<z$1.ZodString>;
533
- availableVersions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
534
- }, "strip", z$1.ZodTypeAny, {
535
- description?: string | undefined;
567
+ appUrl: z.ZodOptional<z.ZodString>;
568
+ createdAt: z.ZodOptional<z.ZodString>;
569
+ description: z.ZodOptional<z.ZodString>;
570
+ logo: z.ZodOptional<z.ZodString>;
571
+ toolsCount: z.ZodOptional<z.ZodNumber>;
572
+ triggersCount: z.ZodOptional<z.ZodNumber>;
573
+ updatedAt: z.ZodOptional<z.ZodString>;
574
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
575
+ }, "strip", z.ZodTypeAny, {
536
576
  logo?: string | undefined;
577
+ description?: string | undefined;
537
578
  availableVersions?: string[] | undefined;
538
579
  createdAt?: string | undefined;
580
+ updatedAt?: string | undefined;
539
581
  categories?: {
540
- name: string;
541
582
  slug: string;
583
+ name: string;
542
584
  }[] | undefined;
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;
549
589
  logo?: string | undefined;
590
+ description?: string | undefined;
550
591
  availableVersions?: string[] | undefined;
551
592
  createdAt?: string | undefined;
593
+ updatedAt?: string | undefined;
552
594
  categories?: {
553
- name: string;
554
595
  slug: string;
596
+ name: string;
555
597
  }[] | undefined;
556
598
  appUrl?: string | undefined;
557
599
  toolsCount?: number | undefined;
558
600
  triggersCount?: number | undefined;
559
- updatedAt?: string | undefined;
560
601
  }>;
561
- declare const ToolKitItemSchema: z$1.ZodObject<{
562
- name: z$1.ZodString;
563
- slug: z$1.ZodString;
564
- meta: z$1.ZodObject<{
565
- categories: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
566
- slug: z$1.ZodString;
567
- name: z$1.ZodString;
568
- }, "strip", z$1.ZodTypeAny, {
569
- name: string;
602
+ declare const ToolKitItemSchema: z.ZodObject<{
603
+ name: z.ZodString;
604
+ slug: z.ZodString;
605
+ meta: z.ZodObject<{
606
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
607
+ slug: z.ZodString;
608
+ name: z.ZodString;
609
+ }, "strip", z.ZodTypeAny, {
570
610
  slug: string;
571
- }, {
572
611
  name: string;
612
+ }, {
573
613
  slug: string;
614
+ name: string;
574
615
  }>, "many">>;
575
- appUrl: z$1.ZodOptional<z$1.ZodString>;
576
- createdAt: z$1.ZodOptional<z$1.ZodString>;
577
- description: z$1.ZodOptional<z$1.ZodString>;
578
- logo: z$1.ZodOptional<z$1.ZodString>;
579
- toolsCount: z$1.ZodOptional<z$1.ZodNumber>;
580
- triggersCount: z$1.ZodOptional<z$1.ZodNumber>;
581
- updatedAt: z$1.ZodOptional<z$1.ZodString>;
582
- availableVersions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
583
- }, "strip", z$1.ZodTypeAny, {
584
- description?: string | undefined;
616
+ appUrl: z.ZodOptional<z.ZodString>;
617
+ createdAt: z.ZodOptional<z.ZodString>;
618
+ description: z.ZodOptional<z.ZodString>;
619
+ logo: z.ZodOptional<z.ZodString>;
620
+ toolsCount: z.ZodOptional<z.ZodNumber>;
621
+ triggersCount: z.ZodOptional<z.ZodNumber>;
622
+ updatedAt: z.ZodOptional<z.ZodString>;
623
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
624
+ }, "strip", z.ZodTypeAny, {
585
625
  logo?: string | undefined;
626
+ description?: string | undefined;
586
627
  availableVersions?: string[] | undefined;
587
628
  createdAt?: string | undefined;
629
+ updatedAt?: string | undefined;
588
630
  categories?: {
589
- name: string;
590
631
  slug: string;
632
+ name: string;
591
633
  }[] | undefined;
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;
598
638
  logo?: string | undefined;
639
+ description?: string | undefined;
599
640
  availableVersions?: string[] | undefined;
600
641
  createdAt?: string | undefined;
642
+ updatedAt?: string | undefined;
601
643
  categories?: {
602
- name: string;
603
644
  slug: string;
645
+ name: string;
604
646
  }[] | undefined;
605
647
  appUrl?: string | undefined;
606
648
  toolsCount?: number | undefined;
607
649
  triggersCount?: number | undefined;
608
- updatedAt?: string | undefined;
609
650
  }>;
610
- isLocalToolkit: z$1.ZodBoolean;
611
- authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
612
- composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
613
- noAuth: z$1.ZodOptional<z$1.ZodBoolean>;
614
- }, "strip", z$1.ZodTypeAny, {
615
- name: string;
651
+ isLocalToolkit: z.ZodBoolean;
652
+ authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
653
+ composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
654
+ noAuth: z.ZodOptional<z.ZodBoolean>;
655
+ }, "strip", z.ZodTypeAny, {
616
656
  slug: string;
657
+ name: string;
617
658
  meta: {
618
- description?: string | undefined;
619
659
  logo?: string | undefined;
660
+ description?: string | undefined;
620
661
  availableVersions?: string[] | undefined;
621
662
  createdAt?: string | undefined;
663
+ updatedAt?: string | undefined;
622
664
  categories?: {
623
- name: string;
624
665
  slug: string;
666
+ name: string;
625
667
  }[] | undefined;
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;
633
674
  composioManagedAuthSchemes?: string[] | undefined;
634
675
  noAuth?: boolean | undefined;
635
676
  }, {
636
- name: string;
637
677
  slug: string;
678
+ name: string;
638
679
  meta: {
639
- description?: string | undefined;
640
680
  logo?: string | undefined;
681
+ description?: string | undefined;
641
682
  availableVersions?: string[] | undefined;
642
683
  createdAt?: string | undefined;
684
+ updatedAt?: string | undefined;
643
685
  categories?: {
644
- name: string;
645
686
  slug: string;
687
+ name: string;
646
688
  }[] | undefined;
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;
654
695
  composioManagedAuthSchemes?: string[] | undefined;
655
696
  noAuth?: boolean | undefined;
656
697
  }>;
657
- declare const ToolKitListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
658
- name: z$1.ZodString;
659
- slug: z$1.ZodString;
660
- meta: z$1.ZodObject<{
661
- categories: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
662
- slug: z$1.ZodString;
663
- name: z$1.ZodString;
664
- }, "strip", z$1.ZodTypeAny, {
665
- name: string;
698
+ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
699
+ name: z.ZodString;
700
+ slug: z.ZodString;
701
+ meta: z.ZodObject<{
702
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
703
+ slug: z.ZodString;
704
+ name: z.ZodString;
705
+ }, "strip", z.ZodTypeAny, {
666
706
  slug: string;
667
- }, {
668
707
  name: string;
708
+ }, {
669
709
  slug: string;
710
+ name: string;
670
711
  }>, "many">>;
671
- appUrl: z$1.ZodOptional<z$1.ZodString>;
672
- createdAt: z$1.ZodOptional<z$1.ZodString>;
673
- description: z$1.ZodOptional<z$1.ZodString>;
674
- logo: z$1.ZodOptional<z$1.ZodString>;
675
- toolsCount: z$1.ZodOptional<z$1.ZodNumber>;
676
- triggersCount: z$1.ZodOptional<z$1.ZodNumber>;
677
- updatedAt: z$1.ZodOptional<z$1.ZodString>;
678
- availableVersions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
679
- }, "strip", z$1.ZodTypeAny, {
680
- description?: string | undefined;
712
+ appUrl: z.ZodOptional<z.ZodString>;
713
+ createdAt: z.ZodOptional<z.ZodString>;
714
+ description: z.ZodOptional<z.ZodString>;
715
+ logo: z.ZodOptional<z.ZodString>;
716
+ toolsCount: z.ZodOptional<z.ZodNumber>;
717
+ triggersCount: z.ZodOptional<z.ZodNumber>;
718
+ updatedAt: z.ZodOptional<z.ZodString>;
719
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
720
+ }, "strip", z.ZodTypeAny, {
681
721
  logo?: string | undefined;
722
+ description?: string | undefined;
682
723
  availableVersions?: string[] | undefined;
683
724
  createdAt?: string | undefined;
725
+ updatedAt?: string | undefined;
684
726
  categories?: {
685
- name: string;
686
727
  slug: string;
728
+ name: string;
687
729
  }[] | undefined;
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;
694
734
  logo?: string | undefined;
735
+ description?: string | undefined;
695
736
  availableVersions?: string[] | undefined;
696
737
  createdAt?: string | undefined;
738
+ updatedAt?: string | undefined;
697
739
  categories?: {
698
- name: string;
699
740
  slug: string;
741
+ name: string;
700
742
  }[] | undefined;
701
743
  appUrl?: string | undefined;
702
744
  toolsCount?: number | undefined;
703
745
  triggersCount?: number | undefined;
704
- updatedAt?: string | undefined;
705
746
  }>;
706
- isLocalToolkit: z$1.ZodBoolean;
707
- authSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
708
- composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
709
- noAuth: z$1.ZodOptional<z$1.ZodBoolean>;
710
- }, "strip", z$1.ZodTypeAny, {
711
- name: string;
747
+ isLocalToolkit: z.ZodBoolean;
748
+ authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
749
+ composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
750
+ noAuth: z.ZodOptional<z.ZodBoolean>;
751
+ }, "strip", z.ZodTypeAny, {
712
752
  slug: string;
753
+ name: string;
713
754
  meta: {
714
- description?: string | undefined;
715
755
  logo?: string | undefined;
756
+ description?: string | undefined;
716
757
  availableVersions?: string[] | undefined;
717
758
  createdAt?: string | undefined;
759
+ updatedAt?: string | undefined;
718
760
  categories?: {
719
- name: string;
720
761
  slug: string;
762
+ name: string;
721
763
  }[] | undefined;
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;
729
770
  composioManagedAuthSchemes?: string[] | undefined;
730
771
  noAuth?: boolean | undefined;
731
772
  }, {
732
- name: string;
733
773
  slug: string;
774
+ name: string;
734
775
  meta: {
735
- description?: string | undefined;
736
776
  logo?: string | undefined;
777
+ description?: string | undefined;
737
778
  availableVersions?: string[] | undefined;
738
779
  createdAt?: string | undefined;
780
+ updatedAt?: string | undefined;
739
781
  categories?: {
740
- name: string;
741
782
  slug: string;
783
+ name: string;
742
784
  }[] | undefined;
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;
750
791
  composioManagedAuthSchemes?: string[] | undefined;
751
792
  noAuth?: boolean | undefined;
752
793
  }>, "many">;
753
- type ToolKitMeta = z$1.infer<typeof ToolKitMetaSchema>;
754
- type ToolKitItem = z$1.infer<typeof ToolKitItemSchema>;
755
- type ToolKitListResponse = z$1.infer<typeof ToolKitListResponseSchema>;
794
+ type ToolKitMeta = z.infer<typeof ToolKitMetaSchema>;
795
+ type ToolKitItem = z.infer<typeof ToolKitItemSchema>;
796
+ type ToolKitListResponse = z.infer<typeof ToolKitListResponseSchema>;
756
797
  /**
757
798
  * Toolkit retrieve response
758
799
  */
759
- declare const ToolkitAuthFieldSchema: z$1.ZodObject<{
760
- description: z$1.ZodString;
761
- displayName: z$1.ZodString;
762
- required: z$1.ZodBoolean;
763
- name: z$1.ZodString;
764
- type: z$1.ZodString;
765
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
766
- }, "strip", z$1.ZodTypeAny, {
800
+ declare const ToolkitAuthFieldSchema: z.ZodObject<{
801
+ description: z.ZodString;
802
+ displayName: z.ZodString;
803
+ required: z.ZodBoolean;
804
+ name: z.ZodString;
805
+ type: z.ZodString;
806
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
+ }, "strip", z.ZodTypeAny, {
767
808
  name: string;
768
- description: string;
769
809
  type: string;
810
+ description: string;
770
811
  required: boolean;
771
812
  displayName: string;
772
813
  default?: string | null | undefined;
773
814
  }, {
774
815
  name: string;
775
- description: string;
776
816
  type: string;
817
+ description: string;
777
818
  required: boolean;
778
819
  displayName: string;
779
820
  default?: string | null | undefined;
780
821
  }>;
781
- declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
782
- name: z$1.ZodString;
783
- mode: z$1.ZodString;
784
- fields: z$1.ZodObject<{
785
- authConfigCreation: z$1.ZodObject<{
786
- optional: z$1.ZodArray<z$1.ZodObject<{
787
- description: z$1.ZodString;
788
- displayName: z$1.ZodString;
789
- required: z$1.ZodBoolean;
790
- name: z$1.ZodString;
791
- type: z$1.ZodString;
792
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
793
- }, "strip", z$1.ZodTypeAny, {
822
+ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
823
+ name: z.ZodString;
824
+ mode: z.ZodString;
825
+ fields: z.ZodObject<{
826
+ authConfigCreation: z.ZodObject<{
827
+ optional: z.ZodArray<z.ZodObject<{
828
+ description: z.ZodString;
829
+ displayName: z.ZodString;
830
+ required: z.ZodBoolean;
831
+ name: z.ZodString;
832
+ type: z.ZodString;
833
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
834
+ }, "strip", z.ZodTypeAny, {
794
835
  name: string;
795
- description: string;
796
836
  type: string;
837
+ description: string;
797
838
  required: boolean;
798
839
  displayName: string;
799
840
  default?: string | null | undefined;
800
841
  }, {
801
842
  name: string;
802
- description: string;
803
843
  type: string;
844
+ description: string;
804
845
  required: boolean;
805
846
  displayName: string;
806
847
  default?: string | null | undefined;
807
848
  }>, "many">;
808
- required: z$1.ZodArray<z$1.ZodObject<{
809
- description: z$1.ZodString;
810
- displayName: z$1.ZodString;
811
- required: z$1.ZodBoolean;
812
- name: z$1.ZodString;
813
- type: z$1.ZodString;
814
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
815
- }, "strip", z$1.ZodTypeAny, {
849
+ required: z.ZodArray<z.ZodObject<{
850
+ description: z.ZodString;
851
+ displayName: z.ZodString;
852
+ required: z.ZodBoolean;
853
+ name: z.ZodString;
854
+ type: z.ZodString;
855
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
856
+ }, "strip", z.ZodTypeAny, {
816
857
  name: string;
817
- description: string;
818
858
  type: string;
859
+ description: string;
819
860
  required: boolean;
820
861
  displayName: string;
821
862
  default?: string | null | undefined;
822
863
  }, {
823
864
  name: string;
824
- description: string;
825
865
  type: string;
866
+ description: string;
826
867
  required: boolean;
827
868
  displayName: string;
828
869
  default?: string | null | undefined;
829
870
  }>, "many">;
830
- }, "strip", z$1.ZodTypeAny, {
871
+ }, "strip", z.ZodTypeAny, {
831
872
  required: {
832
873
  name: string;
833
- description: string;
834
874
  type: string;
875
+ description: string;
835
876
  required: boolean;
836
877
  displayName: string;
837
878
  default?: string | null | undefined;
838
879
  }[];
839
880
  optional: {
840
881
  name: string;
841
- description: string;
842
882
  type: string;
883
+ description: string;
843
884
  required: boolean;
844
885
  displayName: string;
845
886
  default?: string | null | undefined;
@@ -847,79 +888,79 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
847
888
  }, {
848
889
  required: {
849
890
  name: string;
850
- description: string;
851
891
  type: string;
892
+ description: string;
852
893
  required: boolean;
853
894
  displayName: string;
854
895
  default?: string | null | undefined;
855
896
  }[];
856
897
  optional: {
857
898
  name: string;
858
- description: string;
859
899
  type: string;
900
+ description: string;
860
901
  required: boolean;
861
902
  displayName: string;
862
903
  default?: string | null | undefined;
863
904
  }[];
864
905
  }>;
865
- connectedAccountInitiation: z$1.ZodObject<{
866
- optional: z$1.ZodArray<z$1.ZodObject<{
867
- description: z$1.ZodString;
868
- displayName: z$1.ZodString;
869
- required: z$1.ZodBoolean;
870
- name: z$1.ZodString;
871
- type: z$1.ZodString;
872
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
873
- }, "strip", z$1.ZodTypeAny, {
906
+ connectedAccountInitiation: z.ZodObject<{
907
+ optional: z.ZodArray<z.ZodObject<{
908
+ description: z.ZodString;
909
+ displayName: z.ZodString;
910
+ required: z.ZodBoolean;
911
+ name: z.ZodString;
912
+ type: z.ZodString;
913
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
914
+ }, "strip", z.ZodTypeAny, {
874
915
  name: string;
875
- description: string;
876
916
  type: string;
917
+ description: string;
877
918
  required: boolean;
878
919
  displayName: string;
879
920
  default?: string | null | undefined;
880
921
  }, {
881
922
  name: string;
882
- description: string;
883
923
  type: string;
924
+ description: string;
884
925
  required: boolean;
885
926
  displayName: string;
886
927
  default?: string | null | undefined;
887
928
  }>, "many">;
888
- required: z$1.ZodArray<z$1.ZodObject<{
889
- description: z$1.ZodString;
890
- displayName: z$1.ZodString;
891
- required: z$1.ZodBoolean;
892
- name: z$1.ZodString;
893
- type: z$1.ZodString;
894
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
895
- }, "strip", z$1.ZodTypeAny, {
929
+ required: z.ZodArray<z.ZodObject<{
930
+ description: z.ZodString;
931
+ displayName: z.ZodString;
932
+ required: z.ZodBoolean;
933
+ name: z.ZodString;
934
+ type: z.ZodString;
935
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
936
+ }, "strip", z.ZodTypeAny, {
896
937
  name: string;
897
- description: string;
898
938
  type: string;
939
+ description: string;
899
940
  required: boolean;
900
941
  displayName: string;
901
942
  default?: string | null | undefined;
902
943
  }, {
903
944
  name: string;
904
- description: string;
905
945
  type: string;
946
+ description: string;
906
947
  required: boolean;
907
948
  displayName: string;
908
949
  default?: string | null | undefined;
909
950
  }>, "many">;
910
- }, "strip", z$1.ZodTypeAny, {
951
+ }, "strip", z.ZodTypeAny, {
911
952
  required: {
912
953
  name: string;
913
- description: string;
914
954
  type: string;
955
+ description: string;
915
956
  required: boolean;
916
957
  displayName: string;
917
958
  default?: string | null | undefined;
918
959
  }[];
919
960
  optional: {
920
961
  name: string;
921
- description: string;
922
962
  type: string;
963
+ description: string;
923
964
  required: boolean;
924
965
  displayName: string;
925
966
  default?: string | null | undefined;
@@ -927,35 +968,35 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
927
968
  }, {
928
969
  required: {
929
970
  name: string;
930
- description: string;
931
971
  type: string;
972
+ description: string;
932
973
  required: boolean;
933
974
  displayName: string;
934
975
  default?: string | null | undefined;
935
976
  }[];
936
977
  optional: {
937
978
  name: string;
938
- description: string;
939
979
  type: string;
980
+ description: string;
940
981
  required: boolean;
941
982
  displayName: string;
942
983
  default?: string | null | undefined;
943
984
  }[];
944
985
  }>;
945
- }, "strip", z$1.ZodTypeAny, {
986
+ }, "strip", z.ZodTypeAny, {
946
987
  authConfigCreation: {
947
988
  required: {
948
989
  name: string;
949
- description: string;
950
990
  type: string;
991
+ description: string;
951
992
  required: boolean;
952
993
  displayName: string;
953
994
  default?: string | null | undefined;
954
995
  }[];
955
996
  optional: {
956
997
  name: string;
957
- description: string;
958
998
  type: string;
999
+ description: string;
959
1000
  required: boolean;
960
1001
  displayName: string;
961
1002
  default?: string | null | undefined;
@@ -964,16 +1005,16 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
964
1005
  connectedAccountInitiation: {
965
1006
  required: {
966
1007
  name: string;
967
- description: string;
968
1008
  type: string;
1009
+ description: string;
969
1010
  required: boolean;
970
1011
  displayName: string;
971
1012
  default?: string | null | undefined;
972
1013
  }[];
973
1014
  optional: {
974
1015
  name: string;
975
- description: string;
976
1016
  type: string;
1017
+ description: string;
977
1018
  required: boolean;
978
1019
  displayName: string;
979
1020
  default?: string | null | undefined;
@@ -983,16 +1024,16 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
983
1024
  authConfigCreation: {
984
1025
  required: {
985
1026
  name: string;
986
- description: string;
987
1027
  type: string;
1028
+ description: string;
988
1029
  required: boolean;
989
1030
  displayName: string;
990
1031
  default?: string | null | undefined;
991
1032
  }[];
992
1033
  optional: {
993
1034
  name: string;
994
- description: string;
995
1035
  type: string;
1036
+ description: string;
996
1037
  required: boolean;
997
1038
  displayName: string;
998
1039
  default?: string | null | undefined;
@@ -1001,46 +1042,46 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1001
1042
  connectedAccountInitiation: {
1002
1043
  required: {
1003
1044
  name: string;
1004
- description: string;
1005
1045
  type: string;
1046
+ description: string;
1006
1047
  required: boolean;
1007
1048
  displayName: string;
1008
1049
  default?: string | null | undefined;
1009
1050
  }[];
1010
1051
  optional: {
1011
1052
  name: string;
1012
- description: string;
1013
1053
  type: string;
1054
+ description: string;
1014
1055
  required: boolean;
1015
1056
  displayName: string;
1016
1057
  default?: string | null | undefined;
1017
1058
  }[];
1018
1059
  };
1019
1060
  }>;
1020
- proxy: z$1.ZodOptional<z$1.ZodObject<{
1021
- baseUrl: z$1.ZodOptional<z$1.ZodString>;
1022
- }, "strip", z$1.ZodTypeAny, {
1061
+ proxy: z.ZodOptional<z.ZodObject<{
1062
+ baseUrl: z.ZodOptional<z.ZodString>;
1063
+ }, "strip", z.ZodTypeAny, {
1023
1064
  baseUrl?: string | undefined;
1024
1065
  }, {
1025
1066
  baseUrl?: string | undefined;
1026
1067
  }>>;
1027
- }, "strip", z$1.ZodTypeAny, {
1068
+ }, "strip", z.ZodTypeAny, {
1028
1069
  name: string;
1029
1070
  mode: string;
1030
1071
  fields: {
1031
1072
  authConfigCreation: {
1032
1073
  required: {
1033
1074
  name: string;
1034
- description: string;
1035
1075
  type: string;
1076
+ description: string;
1036
1077
  required: boolean;
1037
1078
  displayName: string;
1038
1079
  default?: string | null | undefined;
1039
1080
  }[];
1040
1081
  optional: {
1041
1082
  name: string;
1042
- description: string;
1043
1083
  type: string;
1084
+ description: string;
1044
1085
  required: boolean;
1045
1086
  displayName: string;
1046
1087
  default?: string | null | undefined;
@@ -1049,16 +1090,16 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1049
1090
  connectedAccountInitiation: {
1050
1091
  required: {
1051
1092
  name: string;
1052
- description: string;
1053
1093
  type: string;
1094
+ description: string;
1054
1095
  required: boolean;
1055
1096
  displayName: string;
1056
1097
  default?: string | null | undefined;
1057
1098
  }[];
1058
1099
  optional: {
1059
1100
  name: string;
1060
- description: string;
1061
1101
  type: string;
1102
+ description: string;
1062
1103
  required: boolean;
1063
1104
  displayName: string;
1064
1105
  default?: string | null | undefined;
@@ -1075,16 +1116,16 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1075
1116
  authConfigCreation: {
1076
1117
  required: {
1077
1118
  name: string;
1078
- description: string;
1079
1119
  type: string;
1120
+ description: string;
1080
1121
  required: boolean;
1081
1122
  displayName: string;
1082
1123
  default?: string | null | undefined;
1083
1124
  }[];
1084
1125
  optional: {
1085
1126
  name: string;
1086
- description: string;
1087
1127
  type: string;
1128
+ description: string;
1088
1129
  required: boolean;
1089
1130
  displayName: string;
1090
1131
  default?: string | null | undefined;
@@ -1093,16 +1134,16 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1093
1134
  connectedAccountInitiation: {
1094
1135
  required: {
1095
1136
  name: string;
1096
- description: string;
1097
1137
  type: string;
1138
+ description: string;
1098
1139
  required: boolean;
1099
1140
  displayName: string;
1100
1141
  default?: string | null | undefined;
1101
1142
  }[];
1102
1143
  optional: {
1103
1144
  name: string;
1104
- description: string;
1105
1145
  type: string;
1146
+ description: string;
1106
1147
  required: boolean;
1107
1148
  displayName: string;
1108
1149
  default?: string | null | undefined;
@@ -1113,119 +1154,119 @@ declare const ToolkitAuthConfigDetailsSchema: z$1.ZodObject<{
1113
1154
  baseUrl?: string | undefined;
1114
1155
  } | undefined;
1115
1156
  }>;
1116
- declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1117
- name: z$1.ZodString;
1118
- slug: z$1.ZodString;
1119
- meta: z$1.ZodObject<{
1120
- categories: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1121
- slug: z$1.ZodString;
1122
- name: z$1.ZodString;
1123
- }, "strip", z$1.ZodTypeAny, {
1124
- name: string;
1157
+ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1158
+ name: z.ZodString;
1159
+ slug: z.ZodString;
1160
+ meta: z.ZodObject<{
1161
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1162
+ slug: z.ZodString;
1163
+ name: z.ZodString;
1164
+ }, "strip", z.ZodTypeAny, {
1125
1165
  slug: string;
1126
- }, {
1127
1166
  name: string;
1167
+ }, {
1128
1168
  slug: string;
1169
+ name: string;
1129
1170
  }>, "many">>;
1130
- appUrl: z$1.ZodOptional<z$1.ZodString>;
1131
- createdAt: z$1.ZodOptional<z$1.ZodString>;
1132
- description: z$1.ZodOptional<z$1.ZodString>;
1133
- logo: z$1.ZodOptional<z$1.ZodString>;
1134
- toolsCount: z$1.ZodOptional<z$1.ZodNumber>;
1135
- triggersCount: z$1.ZodOptional<z$1.ZodNumber>;
1136
- updatedAt: z$1.ZodOptional<z$1.ZodString>;
1137
- availableVersions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1138
- }, "strip", z$1.ZodTypeAny, {
1139
- description?: string | undefined;
1171
+ appUrl: z.ZodOptional<z.ZodString>;
1172
+ createdAt: z.ZodOptional<z.ZodString>;
1173
+ description: z.ZodOptional<z.ZodString>;
1174
+ logo: z.ZodOptional<z.ZodString>;
1175
+ toolsCount: z.ZodOptional<z.ZodNumber>;
1176
+ triggersCount: z.ZodOptional<z.ZodNumber>;
1177
+ updatedAt: z.ZodOptional<z.ZodString>;
1178
+ availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1179
+ }, "strip", z.ZodTypeAny, {
1140
1180
  logo?: string | undefined;
1181
+ description?: string | undefined;
1141
1182
  availableVersions?: string[] | undefined;
1142
1183
  createdAt?: string | undefined;
1184
+ updatedAt?: string | undefined;
1143
1185
  categories?: {
1144
- name: string;
1145
1186
  slug: string;
1187
+ name: string;
1146
1188
  }[] | undefined;
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;
1153
1193
  logo?: string | undefined;
1194
+ description?: string | undefined;
1154
1195
  availableVersions?: string[] | undefined;
1155
1196
  createdAt?: string | undefined;
1197
+ updatedAt?: string | undefined;
1156
1198
  categories?: {
1157
- name: string;
1158
1199
  slug: string;
1200
+ name: string;
1159
1201
  }[] | undefined;
1160
1202
  appUrl?: string | undefined;
1161
1203
  toolsCount?: number | undefined;
1162
1204
  triggersCount?: number | undefined;
1163
- updatedAt?: string | undefined;
1164
1205
  }>;
1165
- isLocalToolkit: z$1.ZodBoolean;
1166
- composioManagedAuthSchemes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1167
- authConfigDetails: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1168
- name: z$1.ZodString;
1169
- mode: z$1.ZodString;
1170
- fields: z$1.ZodObject<{
1171
- authConfigCreation: z$1.ZodObject<{
1172
- optional: z$1.ZodArray<z$1.ZodObject<{
1173
- description: z$1.ZodString;
1174
- displayName: z$1.ZodString;
1175
- required: z$1.ZodBoolean;
1176
- name: z$1.ZodString;
1177
- type: z$1.ZodString;
1178
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1179
- }, "strip", z$1.ZodTypeAny, {
1206
+ isLocalToolkit: z.ZodBoolean;
1207
+ composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1208
+ authConfigDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
1209
+ name: z.ZodString;
1210
+ mode: z.ZodString;
1211
+ fields: z.ZodObject<{
1212
+ authConfigCreation: z.ZodObject<{
1213
+ optional: z.ZodArray<z.ZodObject<{
1214
+ description: z.ZodString;
1215
+ displayName: z.ZodString;
1216
+ required: z.ZodBoolean;
1217
+ name: z.ZodString;
1218
+ type: z.ZodString;
1219
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ }, "strip", z.ZodTypeAny, {
1180
1221
  name: string;
1181
- description: string;
1182
1222
  type: string;
1223
+ description: string;
1183
1224
  required: boolean;
1184
1225
  displayName: string;
1185
1226
  default?: string | null | undefined;
1186
1227
  }, {
1187
1228
  name: string;
1188
- description: string;
1189
1229
  type: string;
1230
+ description: string;
1190
1231
  required: boolean;
1191
1232
  displayName: string;
1192
1233
  default?: string | null | undefined;
1193
1234
  }>, "many">;
1194
- required: z$1.ZodArray<z$1.ZodObject<{
1195
- description: z$1.ZodString;
1196
- displayName: z$1.ZodString;
1197
- required: z$1.ZodBoolean;
1198
- name: z$1.ZodString;
1199
- type: z$1.ZodString;
1200
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1201
- }, "strip", z$1.ZodTypeAny, {
1235
+ required: z.ZodArray<z.ZodObject<{
1236
+ description: z.ZodString;
1237
+ displayName: z.ZodString;
1238
+ required: z.ZodBoolean;
1239
+ name: z.ZodString;
1240
+ type: z.ZodString;
1241
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1242
+ }, "strip", z.ZodTypeAny, {
1202
1243
  name: string;
1203
- description: string;
1204
1244
  type: string;
1245
+ description: string;
1205
1246
  required: boolean;
1206
1247
  displayName: string;
1207
1248
  default?: string | null | undefined;
1208
1249
  }, {
1209
1250
  name: string;
1210
- description: string;
1211
1251
  type: string;
1252
+ description: string;
1212
1253
  required: boolean;
1213
1254
  displayName: string;
1214
1255
  default?: string | null | undefined;
1215
1256
  }>, "many">;
1216
- }, "strip", z$1.ZodTypeAny, {
1257
+ }, "strip", z.ZodTypeAny, {
1217
1258
  required: {
1218
1259
  name: string;
1219
- description: string;
1220
1260
  type: string;
1261
+ description: string;
1221
1262
  required: boolean;
1222
1263
  displayName: string;
1223
1264
  default?: string | null | undefined;
1224
1265
  }[];
1225
1266
  optional: {
1226
1267
  name: string;
1227
- description: string;
1228
1268
  type: string;
1269
+ description: string;
1229
1270
  required: boolean;
1230
1271
  displayName: string;
1231
1272
  default?: string | null | undefined;
@@ -1233,79 +1274,79 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1233
1274
  }, {
1234
1275
  required: {
1235
1276
  name: string;
1236
- description: string;
1237
1277
  type: string;
1278
+ description: string;
1238
1279
  required: boolean;
1239
1280
  displayName: string;
1240
1281
  default?: string | null | undefined;
1241
1282
  }[];
1242
1283
  optional: {
1243
1284
  name: string;
1244
- description: string;
1245
1285
  type: string;
1286
+ description: string;
1246
1287
  required: boolean;
1247
1288
  displayName: string;
1248
1289
  default?: string | null | undefined;
1249
1290
  }[];
1250
1291
  }>;
1251
- connectedAccountInitiation: z$1.ZodObject<{
1252
- optional: z$1.ZodArray<z$1.ZodObject<{
1253
- description: z$1.ZodString;
1254
- displayName: z$1.ZodString;
1255
- required: z$1.ZodBoolean;
1256
- name: z$1.ZodString;
1257
- type: z$1.ZodString;
1258
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1259
- }, "strip", z$1.ZodTypeAny, {
1292
+ connectedAccountInitiation: z.ZodObject<{
1293
+ optional: z.ZodArray<z.ZodObject<{
1294
+ description: z.ZodString;
1295
+ displayName: z.ZodString;
1296
+ required: z.ZodBoolean;
1297
+ name: z.ZodString;
1298
+ type: z.ZodString;
1299
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1300
+ }, "strip", z.ZodTypeAny, {
1260
1301
  name: string;
1261
- description: string;
1262
1302
  type: string;
1303
+ description: string;
1263
1304
  required: boolean;
1264
1305
  displayName: string;
1265
1306
  default?: string | null | undefined;
1266
1307
  }, {
1267
1308
  name: string;
1268
- description: string;
1269
1309
  type: string;
1310
+ description: string;
1270
1311
  required: boolean;
1271
1312
  displayName: string;
1272
1313
  default?: string | null | undefined;
1273
1314
  }>, "many">;
1274
- required: z$1.ZodArray<z$1.ZodObject<{
1275
- description: z$1.ZodString;
1276
- displayName: z$1.ZodString;
1277
- required: z$1.ZodBoolean;
1278
- name: z$1.ZodString;
1279
- type: z$1.ZodString;
1280
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1281
- }, "strip", z$1.ZodTypeAny, {
1315
+ required: z.ZodArray<z.ZodObject<{
1316
+ description: z.ZodString;
1317
+ displayName: z.ZodString;
1318
+ required: z.ZodBoolean;
1319
+ name: z.ZodString;
1320
+ type: z.ZodString;
1321
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1322
+ }, "strip", z.ZodTypeAny, {
1282
1323
  name: string;
1283
- description: string;
1284
1324
  type: string;
1325
+ description: string;
1285
1326
  required: boolean;
1286
1327
  displayName: string;
1287
1328
  default?: string | null | undefined;
1288
1329
  }, {
1289
1330
  name: string;
1290
- description: string;
1291
1331
  type: string;
1332
+ description: string;
1292
1333
  required: boolean;
1293
1334
  displayName: string;
1294
1335
  default?: string | null | undefined;
1295
1336
  }>, "many">;
1296
- }, "strip", z$1.ZodTypeAny, {
1337
+ }, "strip", z.ZodTypeAny, {
1297
1338
  required: {
1298
1339
  name: string;
1299
- description: string;
1300
1340
  type: string;
1341
+ description: string;
1301
1342
  required: boolean;
1302
1343
  displayName: string;
1303
1344
  default?: string | null | undefined;
1304
1345
  }[];
1305
1346
  optional: {
1306
1347
  name: string;
1307
- description: string;
1308
1348
  type: string;
1349
+ description: string;
1309
1350
  required: boolean;
1310
1351
  displayName: string;
1311
1352
  default?: string | null | undefined;
@@ -1313,35 +1354,35 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1313
1354
  }, {
1314
1355
  required: {
1315
1356
  name: string;
1316
- description: string;
1317
1357
  type: string;
1358
+ description: string;
1318
1359
  required: boolean;
1319
1360
  displayName: string;
1320
1361
  default?: string | null | undefined;
1321
1362
  }[];
1322
1363
  optional: {
1323
1364
  name: string;
1324
- description: string;
1325
1365
  type: string;
1366
+ description: string;
1326
1367
  required: boolean;
1327
1368
  displayName: string;
1328
1369
  default?: string | null | undefined;
1329
1370
  }[];
1330
1371
  }>;
1331
- }, "strip", z$1.ZodTypeAny, {
1372
+ }, "strip", z.ZodTypeAny, {
1332
1373
  authConfigCreation: {
1333
1374
  required: {
1334
1375
  name: string;
1335
- description: string;
1336
1376
  type: string;
1377
+ description: string;
1337
1378
  required: boolean;
1338
1379
  displayName: string;
1339
1380
  default?: string | null | undefined;
1340
1381
  }[];
1341
1382
  optional: {
1342
1383
  name: string;
1343
- description: string;
1344
1384
  type: string;
1385
+ description: string;
1345
1386
  required: boolean;
1346
1387
  displayName: string;
1347
1388
  default?: string | null | undefined;
@@ -1350,16 +1391,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1350
1391
  connectedAccountInitiation: {
1351
1392
  required: {
1352
1393
  name: string;
1353
- description: string;
1354
1394
  type: string;
1395
+ description: string;
1355
1396
  required: boolean;
1356
1397
  displayName: string;
1357
1398
  default?: string | null | undefined;
1358
1399
  }[];
1359
1400
  optional: {
1360
1401
  name: string;
1361
- description: string;
1362
1402
  type: string;
1403
+ description: string;
1363
1404
  required: boolean;
1364
1405
  displayName: string;
1365
1406
  default?: string | null | undefined;
@@ -1369,16 +1410,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1369
1410
  authConfigCreation: {
1370
1411
  required: {
1371
1412
  name: string;
1372
- description: string;
1373
1413
  type: string;
1414
+ description: string;
1374
1415
  required: boolean;
1375
1416
  displayName: string;
1376
1417
  default?: string | null | undefined;
1377
1418
  }[];
1378
1419
  optional: {
1379
1420
  name: string;
1380
- description: string;
1381
1421
  type: string;
1422
+ description: string;
1382
1423
  required: boolean;
1383
1424
  displayName: string;
1384
1425
  default?: string | null | undefined;
@@ -1387,46 +1428,46 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1387
1428
  connectedAccountInitiation: {
1388
1429
  required: {
1389
1430
  name: string;
1390
- description: string;
1391
1431
  type: string;
1432
+ description: string;
1392
1433
  required: boolean;
1393
1434
  displayName: string;
1394
1435
  default?: string | null | undefined;
1395
1436
  }[];
1396
1437
  optional: {
1397
1438
  name: string;
1398
- description: string;
1399
1439
  type: string;
1440
+ description: string;
1400
1441
  required: boolean;
1401
1442
  displayName: string;
1402
1443
  default?: string | null | undefined;
1403
1444
  }[];
1404
1445
  };
1405
1446
  }>;
1406
- proxy: z$1.ZodOptional<z$1.ZodObject<{
1407
- baseUrl: z$1.ZodOptional<z$1.ZodString>;
1408
- }, "strip", z$1.ZodTypeAny, {
1447
+ proxy: z.ZodOptional<z.ZodObject<{
1448
+ baseUrl: z.ZodOptional<z.ZodString>;
1449
+ }, "strip", z.ZodTypeAny, {
1409
1450
  baseUrl?: string | undefined;
1410
1451
  }, {
1411
1452
  baseUrl?: string | undefined;
1412
1453
  }>>;
1413
- }, "strip", z$1.ZodTypeAny, {
1454
+ }, "strip", z.ZodTypeAny, {
1414
1455
  name: string;
1415
1456
  mode: string;
1416
1457
  fields: {
1417
1458
  authConfigCreation: {
1418
1459
  required: {
1419
1460
  name: string;
1420
- description: string;
1421
1461
  type: string;
1462
+ description: string;
1422
1463
  required: boolean;
1423
1464
  displayName: string;
1424
1465
  default?: string | null | undefined;
1425
1466
  }[];
1426
1467
  optional: {
1427
1468
  name: string;
1428
- description: string;
1429
1469
  type: string;
1470
+ description: string;
1430
1471
  required: boolean;
1431
1472
  displayName: string;
1432
1473
  default?: string | null | undefined;
@@ -1435,16 +1476,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1435
1476
  connectedAccountInitiation: {
1436
1477
  required: {
1437
1478
  name: string;
1438
- description: string;
1439
1479
  type: string;
1480
+ description: string;
1440
1481
  required: boolean;
1441
1482
  displayName: string;
1442
1483
  default?: string | null | undefined;
1443
1484
  }[];
1444
1485
  optional: {
1445
1486
  name: string;
1446
- description: string;
1447
1487
  type: string;
1488
+ description: string;
1448
1489
  required: boolean;
1449
1490
  displayName: string;
1450
1491
  default?: string | null | undefined;
@@ -1461,16 +1502,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1461
1502
  authConfigCreation: {
1462
1503
  required: {
1463
1504
  name: string;
1464
- description: string;
1465
1505
  type: string;
1506
+ description: string;
1466
1507
  required: boolean;
1467
1508
  displayName: string;
1468
1509
  default?: string | null | undefined;
1469
1510
  }[];
1470
1511
  optional: {
1471
1512
  name: string;
1472
- description: string;
1473
1513
  type: string;
1514
+ description: string;
1474
1515
  required: boolean;
1475
1516
  displayName: string;
1476
1517
  default?: string | null | undefined;
@@ -1479,16 +1520,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1479
1520
  connectedAccountInitiation: {
1480
1521
  required: {
1481
1522
  name: string;
1482
- description: string;
1483
1523
  type: string;
1524
+ description: string;
1484
1525
  required: boolean;
1485
1526
  displayName: string;
1486
1527
  default?: string | null | undefined;
1487
1528
  }[];
1488
1529
  optional: {
1489
1530
  name: string;
1490
- description: string;
1491
1531
  type: string;
1532
+ description: string;
1492
1533
  required: boolean;
1493
1534
  displayName: string;
1494
1535
  default?: string | null | undefined;
@@ -1499,25 +1540,25 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1499
1540
  baseUrl?: string | undefined;
1500
1541
  } | undefined;
1501
1542
  }>, "many">>;
1502
- baseUrl: z$1.ZodOptional<z$1.ZodString>;
1503
- getCurrentUserEndpoint: z$1.ZodOptional<z$1.ZodString>;
1504
- getCurrentUserEndpointMethod: z$1.ZodOptional<z$1.ZodString>;
1505
- }, "strip", z$1.ZodTypeAny, {
1506
- name: string;
1543
+ baseUrl: z.ZodOptional<z.ZodString>;
1544
+ getCurrentUserEndpoint: z.ZodOptional<z.ZodString>;
1545
+ getCurrentUserEndpointMethod: z.ZodOptional<z.ZodString>;
1546
+ }, "strip", z.ZodTypeAny, {
1507
1547
  slug: string;
1548
+ name: string;
1508
1549
  meta: {
1509
- description?: string | undefined;
1510
1550
  logo?: string | undefined;
1551
+ description?: string | undefined;
1511
1552
  availableVersions?: string[] | undefined;
1512
1553
  createdAt?: string | undefined;
1554
+ updatedAt?: string | undefined;
1513
1555
  categories?: {
1514
- name: string;
1515
1556
  slug: string;
1557
+ name: string;
1516
1558
  }[] | undefined;
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;
@@ -1529,16 +1570,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1529
1570
  authConfigCreation: {
1530
1571
  required: {
1531
1572
  name: string;
1532
- description: string;
1533
1573
  type: string;
1574
+ description: string;
1534
1575
  required: boolean;
1535
1576
  displayName: string;
1536
1577
  default?: string | null | undefined;
1537
1578
  }[];
1538
1579
  optional: {
1539
1580
  name: string;
1540
- description: string;
1541
1581
  type: string;
1582
+ description: string;
1542
1583
  required: boolean;
1543
1584
  displayName: string;
1544
1585
  default?: string | null | undefined;
@@ -1547,16 +1588,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1547
1588
  connectedAccountInitiation: {
1548
1589
  required: {
1549
1590
  name: string;
1550
- description: string;
1551
1591
  type: string;
1592
+ description: string;
1552
1593
  required: boolean;
1553
1594
  displayName: string;
1554
1595
  default?: string | null | undefined;
1555
1596
  }[];
1556
1597
  optional: {
1557
1598
  name: string;
1558
- description: string;
1559
1599
  type: string;
1600
+ description: string;
1560
1601
  required: boolean;
1561
1602
  displayName: string;
1562
1603
  default?: string | null | undefined;
@@ -1570,21 +1611,21 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1570
1611
  getCurrentUserEndpoint?: string | undefined;
1571
1612
  getCurrentUserEndpointMethod?: string | undefined;
1572
1613
  }, {
1573
- name: string;
1574
1614
  slug: string;
1615
+ name: string;
1575
1616
  meta: {
1576
- description?: string | undefined;
1577
1617
  logo?: string | undefined;
1618
+ description?: string | undefined;
1578
1619
  availableVersions?: string[] | undefined;
1579
1620
  createdAt?: string | undefined;
1621
+ updatedAt?: string | undefined;
1580
1622
  categories?: {
1581
- name: string;
1582
1623
  slug: string;
1624
+ name: string;
1583
1625
  }[] | undefined;
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;
@@ -1596,16 +1637,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1596
1637
  authConfigCreation: {
1597
1638
  required: {
1598
1639
  name: string;
1599
- description: string;
1600
1640
  type: string;
1641
+ description: string;
1601
1642
  required: boolean;
1602
1643
  displayName: string;
1603
1644
  default?: string | null | undefined;
1604
1645
  }[];
1605
1646
  optional: {
1606
1647
  name: string;
1607
- description: string;
1608
1648
  type: string;
1649
+ description: string;
1609
1650
  required: boolean;
1610
1651
  displayName: string;
1611
1652
  default?: string | null | undefined;
@@ -1614,16 +1655,16 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1614
1655
  connectedAccountInitiation: {
1615
1656
  required: {
1616
1657
  name: string;
1617
- description: string;
1618
1658
  type: string;
1659
+ description: string;
1619
1660
  required: boolean;
1620
1661
  displayName: string;
1621
1662
  default?: string | null | undefined;
1622
1663
  }[];
1623
1664
  optional: {
1624
1665
  name: string;
1625
- description: string;
1626
1666
  type: string;
1667
+ description: string;
1627
1668
  required: boolean;
1628
1669
  displayName: string;
1629
1670
  default?: string | null | undefined;
@@ -1637,36 +1678,36 @@ declare const ToolkitRetrieveResponseSchema: z$1.ZodObject<{
1637
1678
  getCurrentUserEndpoint?: string | undefined;
1638
1679
  getCurrentUserEndpointMethod?: string | undefined;
1639
1680
  }>;
1640
- type ToolkitAuthField = z$1.infer<typeof ToolkitAuthFieldSchema>;
1641
- type ToolkitAuthConfigDetails = z$1.infer<typeof ToolkitAuthConfigDetailsSchema>;
1642
- type ToolkitRetrieveResponse = z$1.infer<typeof ToolkitRetrieveResponseSchema>;
1681
+ type ToolkitAuthField = z.infer<typeof ToolkitAuthFieldSchema>;
1682
+ type ToolkitAuthConfigDetails = z.infer<typeof ToolkitAuthConfigDetailsSchema>;
1683
+ type ToolkitRetrieveResponse = z.infer<typeof ToolkitRetrieveResponseSchema>;
1643
1684
  /**
1644
1685
  * Toolkit categories response
1645
1686
  */
1646
- declare const ToolkitCategorySchema: z$1.ZodObject<{
1647
- id: z$1.ZodString;
1648
- name: z$1.ZodString;
1649
- }, "strip", z$1.ZodTypeAny, {
1687
+ declare const ToolkitCategorySchema: z.ZodObject<{
1688
+ id: z.ZodString;
1689
+ name: z.ZodString;
1690
+ }, "strip", z.ZodTypeAny, {
1650
1691
  name: string;
1651
1692
  id: string;
1652
1693
  }, {
1653
1694
  name: string;
1654
1695
  id: string;
1655
1696
  }>;
1656
- declare const ToolkitRetrieveCategoriesResponseSchema: z$1.ZodObject<{
1657
- items: z$1.ZodArray<z$1.ZodObject<{
1658
- id: z$1.ZodString;
1659
- name: z$1.ZodString;
1660
- }, "strip", z$1.ZodTypeAny, {
1697
+ declare const ToolkitRetrieveCategoriesResponseSchema: z.ZodObject<{
1698
+ items: z.ZodArray<z.ZodObject<{
1699
+ id: z.ZodString;
1700
+ name: z.ZodString;
1701
+ }, "strip", z.ZodTypeAny, {
1661
1702
  name: string;
1662
1703
  id: string;
1663
1704
  }, {
1664
1705
  name: string;
1665
1706
  id: string;
1666
1707
  }>, "many">;
1667
- nextCursor: z$1.ZodNullable<z$1.ZodString>;
1668
- totalPages: z$1.ZodNumber;
1669
- }, "strip", z$1.ZodTypeAny, {
1708
+ nextCursor: z.ZodNullable<z.ZodString>;
1709
+ totalPages: z.ZodNumber;
1710
+ }, "strip", z.ZodTypeAny, {
1670
1711
  items: {
1671
1712
  name: string;
1672
1713
  id: string;
@@ -1681,32 +1722,32 @@ declare const ToolkitRetrieveCategoriesResponseSchema: z$1.ZodObject<{
1681
1722
  nextCursor: string | null;
1682
1723
  totalPages: number;
1683
1724
  }>;
1684
- type ToolkitCategory = z$1.infer<typeof ToolkitCategorySchema>;
1685
- type ToolkitRetrieveCategoriesResponse = z$1.infer<typeof ToolkitRetrieveCategoriesResponseSchema>;
1686
- declare const ToolkitAuthFieldsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
1687
- description: z$1.ZodString;
1688
- displayName: z$1.ZodString;
1689
- name: z$1.ZodString;
1690
- type: z$1.ZodString;
1691
- default: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
1725
+ type ToolkitCategory = z.infer<typeof ToolkitCategorySchema>;
1726
+ type ToolkitRetrieveCategoriesResponse = z.infer<typeof ToolkitRetrieveCategoriesResponseSchema>;
1727
+ declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
1728
+ description: z.ZodString;
1729
+ displayName: z.ZodString;
1730
+ name: z.ZodString;
1731
+ type: z.ZodString;
1732
+ default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1692
1733
  } & {
1693
- required: z$1.ZodOptional<z$1.ZodBoolean>;
1694
- }, "strip", z$1.ZodTypeAny, {
1734
+ required: z.ZodOptional<z.ZodBoolean>;
1735
+ }, "strip", z.ZodTypeAny, {
1695
1736
  name: string;
1696
- description: string;
1697
1737
  type: string;
1738
+ description: string;
1698
1739
  displayName: string;
1699
1740
  required?: boolean | undefined;
1700
1741
  default?: string | null | undefined;
1701
1742
  }, {
1702
1743
  name: string;
1703
- description: string;
1704
1744
  type: string;
1745
+ description: string;
1705
1746
  displayName: string;
1706
1747
  required?: boolean | undefined;
1707
1748
  default?: string | null | undefined;
1708
1749
  }>, "many">;
1709
- type ToolkitAuthFieldsResponse = z$1.infer<typeof ToolkitAuthFieldsResponseSchema>;
1750
+ type ToolkitAuthFieldsResponse = z.infer<typeof ToolkitAuthFieldsResponseSchema>;
1710
1751
  //#endregion
1711
1752
  //#region src/types/authConfigs.types.d.ts
1712
1753
  declare const AuthConfigTypes: {
@@ -1731,48 +1772,48 @@ declare const AuthSchemeTypes: {
1731
1772
  readonly S2S_OAUTH2: "S2S_OAUTH2";
1732
1773
  };
1733
1774
  type AuthSchemeType = (typeof AuthSchemeTypes)[keyof typeof AuthSchemeTypes];
1734
- declare const AuthConfigCreationToolAccessConfigSchema: z$1.ZodObject<{
1735
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1736
- }, "strip", z$1.ZodTypeAny, {
1775
+ declare const AuthConfigCreationToolAccessConfigSchema: z.ZodObject<{
1776
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1777
+ }, "strip", z.ZodTypeAny, {
1737
1778
  toolsForConnectedAccountCreation?: string[] | undefined;
1738
1779
  }, {
1739
1780
  toolsForConnectedAccountCreation?: string[] | undefined;
1740
1781
  }>;
1741
- declare const AuthConfigToolAccessConfigSchema: z$1.ZodObject<{
1742
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1743
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1744
- }, "strip", z$1.ZodTypeAny, {
1782
+ declare const AuthConfigToolAccessConfigSchema: z.ZodObject<{
1783
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1784
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1785
+ }, "strip", z.ZodTypeAny, {
1745
1786
  toolsForConnectedAccountCreation?: string[] | undefined;
1746
1787
  toolsAvailableForExecution?: string[] | undefined;
1747
1788
  }, {
1748
1789
  toolsForConnectedAccountCreation?: string[] | undefined;
1749
1790
  toolsAvailableForExecution?: string[] | undefined;
1750
1791
  }>;
1751
- declare const AuthSchemeEnum: z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>;
1752
- declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
1753
- type: z$1.ZodLiteral<"use_custom_auth">;
1754
- name: z$1.ZodOptional<z$1.ZodString>;
1755
- credentials: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber, z$1.ZodBoolean]>>;
1756
- authScheme: z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>;
1757
- proxyConfig: z$1.ZodOptional<z$1.ZodObject<{
1758
- proxyUrl: z$1.ZodString;
1759
- proxyAuthKey: z$1.ZodOptional<z$1.ZodString>;
1760
- }, "strip", z$1.ZodTypeAny, {
1792
+ declare const AuthSchemeEnum: 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"]>;
1793
+ declare const CreateCustomAuthConfigParamsSchema: z.ZodObject<{
1794
+ type: z.ZodLiteral<"use_custom_auth">;
1795
+ name: z.ZodOptional<z.ZodString>;
1796
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1797
+ authScheme: 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"]>;
1798
+ proxyConfig: z.ZodOptional<z.ZodObject<{
1799
+ proxyUrl: z.ZodString;
1800
+ proxyAuthKey: z.ZodOptional<z.ZodString>;
1801
+ }, "strip", z.ZodTypeAny, {
1761
1802
  proxyUrl: string;
1762
1803
  proxyAuthKey?: string | undefined;
1763
1804
  }, {
1764
1805
  proxyUrl: string;
1765
1806
  proxyAuthKey?: string | undefined;
1766
1807
  }>>;
1767
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
1768
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1769
- }, "strip", z$1.ZodTypeAny, {
1808
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
1809
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1810
+ }, "strip", z.ZodTypeAny, {
1770
1811
  toolsForConnectedAccountCreation?: string[] | undefined;
1771
1812
  }, {
1772
1813
  toolsForConnectedAccountCreation?: string[] | undefined;
1773
1814
  }>>;
1774
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
1775
- }, "strip", z$1.ZodTypeAny, {
1815
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
1816
+ }, "strip", z.ZodTypeAny, {
1776
1817
  type: "use_custom_auth";
1777
1818
  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";
1778
1819
  credentials: Record<string, string | number | boolean>;
@@ -1799,34 +1840,34 @@ declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
1799
1840
  } | undefined;
1800
1841
  isEnabledForToolRouter?: boolean | undefined;
1801
1842
  }>;
1802
- declare const CreateComposioManagedAuthConfigParamsSchema: z$1.ZodObject<{
1803
- type: z$1.ZodLiteral<"use_composio_managed_auth">;
1804
- name: z$1.ZodOptional<z$1.ZodString>;
1805
- credentials: z$1.ZodOptional<z$1.ZodObject<{
1806
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1807
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1808
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
1809
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1810
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1811
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
1812
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1813
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1814
- }, z$1.ZodTypeAny, "passthrough">>>;
1815
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
1816
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1817
- }, "strip", z$1.ZodTypeAny, {
1843
+ declare const CreateComposioManagedAuthConfigParamsSchema: z.ZodObject<{
1844
+ type: z.ZodLiteral<"use_composio_managed_auth">;
1845
+ name: z.ZodOptional<z.ZodString>;
1846
+ credentials: z.ZodOptional<z.ZodObject<{
1847
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1848
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1849
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1850
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1851
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1852
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1853
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1854
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1855
+ }, z.ZodTypeAny, "passthrough">>>;
1856
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
1857
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1858
+ }, "strip", z.ZodTypeAny, {
1818
1859
  toolsForConnectedAccountCreation?: string[] | undefined;
1819
1860
  }, {
1820
1861
  toolsForConnectedAccountCreation?: string[] | undefined;
1821
1862
  }>>;
1822
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
1823
- }, "strip", z$1.ZodTypeAny, {
1863
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
1864
+ }, "strip", z.ZodTypeAny, {
1824
1865
  type: "use_composio_managed_auth";
1825
1866
  name?: string | undefined;
1826
- credentials?: z$1.objectOutputType<{
1827
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1828
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1829
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
1867
+ credentials?: z.objectOutputType<{
1868
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1869
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1870
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1830
1871
  toolAccessConfig?: {
1831
1872
  toolsForConnectedAccountCreation?: string[] | undefined;
1832
1873
  } | undefined;
@@ -1834,10 +1875,10 @@ declare const CreateComposioManagedAuthConfigParamsSchema: z$1.ZodObject<{
1834
1875
  }, {
1835
1876
  type: "use_composio_managed_auth";
1836
1877
  name?: string | undefined;
1837
- credentials?: z$1.objectInputType<{
1838
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1839
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1840
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
1878
+ credentials?: z.objectInputType<{
1879
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1880
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1881
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1841
1882
  toolAccessConfig?: {
1842
1883
  toolsForConnectedAccountCreation?: string[] | undefined;
1843
1884
  } | undefined;
@@ -1846,30 +1887,30 @@ declare const CreateComposioManagedAuthConfigParamsSchema: z$1.ZodObject<{
1846
1887
  /**
1847
1888
  * Discriminated union of all possible auth config types.
1848
1889
  */
1849
- declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
1850
- type: z$1.ZodLiteral<"use_custom_auth">;
1851
- name: z$1.ZodOptional<z$1.ZodString>;
1852
- credentials: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber, z$1.ZodBoolean]>>;
1853
- authScheme: z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>;
1854
- proxyConfig: z$1.ZodOptional<z$1.ZodObject<{
1855
- proxyUrl: z$1.ZodString;
1856
- proxyAuthKey: z$1.ZodOptional<z$1.ZodString>;
1857
- }, "strip", z$1.ZodTypeAny, {
1890
+ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1891
+ type: z.ZodLiteral<"use_custom_auth">;
1892
+ name: z.ZodOptional<z.ZodString>;
1893
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1894
+ authScheme: 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"]>;
1895
+ proxyConfig: z.ZodOptional<z.ZodObject<{
1896
+ proxyUrl: z.ZodString;
1897
+ proxyAuthKey: z.ZodOptional<z.ZodString>;
1898
+ }, "strip", z.ZodTypeAny, {
1858
1899
  proxyUrl: string;
1859
1900
  proxyAuthKey?: string | undefined;
1860
1901
  }, {
1861
1902
  proxyUrl: string;
1862
1903
  proxyAuthKey?: string | undefined;
1863
1904
  }>>;
1864
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
1865
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1866
- }, "strip", z$1.ZodTypeAny, {
1905
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
1906
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1907
+ }, "strip", z.ZodTypeAny, {
1867
1908
  toolsForConnectedAccountCreation?: string[] | undefined;
1868
1909
  }, {
1869
1910
  toolsForConnectedAccountCreation?: string[] | undefined;
1870
1911
  }>>;
1871
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
1872
- }, "strip", z$1.ZodTypeAny, {
1912
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
1913
+ }, "strip", z.ZodTypeAny, {
1873
1914
  type: "use_custom_auth";
1874
1915
  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";
1875
1916
  credentials: Record<string, string | number | boolean>;
@@ -1895,34 +1936,34 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
1895
1936
  toolsForConnectedAccountCreation?: string[] | undefined;
1896
1937
  } | undefined;
1897
1938
  isEnabledForToolRouter?: boolean | undefined;
1898
- }>, z$1.ZodObject<{
1899
- type: z$1.ZodLiteral<"use_composio_managed_auth">;
1900
- name: z$1.ZodOptional<z$1.ZodString>;
1901
- credentials: z$1.ZodOptional<z$1.ZodObject<{
1902
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1903
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1904
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
1905
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1906
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1907
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
1908
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1909
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1910
- }, z$1.ZodTypeAny, "passthrough">>>;
1911
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
1912
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1913
- }, "strip", z$1.ZodTypeAny, {
1939
+ }>, z.ZodObject<{
1940
+ type: z.ZodLiteral<"use_composio_managed_auth">;
1941
+ name: z.ZodOptional<z.ZodString>;
1942
+ credentials: z.ZodOptional<z.ZodObject<{
1943
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1944
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1945
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1946
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1947
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1948
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1949
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1950
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1951
+ }, z.ZodTypeAny, "passthrough">>>;
1952
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
1953
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1954
+ }, "strip", z.ZodTypeAny, {
1914
1955
  toolsForConnectedAccountCreation?: string[] | undefined;
1915
1956
  }, {
1916
1957
  toolsForConnectedAccountCreation?: string[] | undefined;
1917
1958
  }>>;
1918
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
1919
- }, "strip", z$1.ZodTypeAny, {
1959
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
1960
+ }, "strip", z.ZodTypeAny, {
1920
1961
  type: "use_composio_managed_auth";
1921
1962
  name?: string | undefined;
1922
- credentials?: z$1.objectOutputType<{
1923
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1924
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1925
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
1963
+ credentials?: z.objectOutputType<{
1964
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1965
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1966
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1926
1967
  toolAccessConfig?: {
1927
1968
  toolsForConnectedAccountCreation?: string[] | undefined;
1928
1969
  } | undefined;
@@ -1930,22 +1971,22 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
1930
1971
  }, {
1931
1972
  type: "use_composio_managed_auth";
1932
1973
  name?: string | undefined;
1933
- credentials?: z$1.objectInputType<{
1934
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1935
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
1936
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
1974
+ credentials?: z.objectInputType<{
1975
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1976
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
1977
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1937
1978
  toolAccessConfig?: {
1938
1979
  toolsForConnectedAccountCreation?: string[] | undefined;
1939
1980
  } | undefined;
1940
1981
  isEnabledForToolRouter?: boolean | undefined;
1941
1982
  }>]>;
1942
- type CreateAuthConfigParams = z$1.infer<typeof CreateAuthConfigParamsSchema>;
1943
- declare const CreateAuthConfigResponseSchema: z$1.ZodObject<{
1944
- id: z$1.ZodString;
1945
- authScheme: z$1.ZodString;
1946
- isComposioManaged: z$1.ZodBoolean;
1947
- toolkit: z$1.ZodString;
1948
- }, "strip", z$1.ZodTypeAny, {
1983
+ type CreateAuthConfigParams = z.infer<typeof CreateAuthConfigParamsSchema>;
1984
+ declare const CreateAuthConfigResponseSchema: z.ZodObject<{
1985
+ id: z.ZodString;
1986
+ authScheme: z.ZodString;
1987
+ isComposioManaged: z.ZodBoolean;
1988
+ toolkit: z.ZodString;
1989
+ }, "strip", z.ZodTypeAny, {
1949
1990
  toolkit: string;
1950
1991
  authScheme: string;
1951
1992
  id: string;
@@ -1956,46 +1997,45 @@ declare const CreateAuthConfigResponseSchema: z$1.ZodObject<{
1956
1997
  id: string;
1957
1998
  isComposioManaged: boolean;
1958
1999
  }>;
1959
- type CreateAuthConfigResponse = z$1.infer<typeof CreateAuthConfigResponseSchema>;
1960
- declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
1961
- id: z$1.ZodString;
1962
- name: z$1.ZodString;
1963
- toolkit: z$1.ZodObject<{
1964
- logo: z$1.ZodString;
1965
- slug: z$1.ZodString;
1966
- }, "strip", z$1.ZodTypeAny, {
2000
+ type CreateAuthConfigResponse = z.infer<typeof CreateAuthConfigResponseSchema>;
2001
+ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2002
+ id: z.ZodString;
2003
+ name: z.ZodString;
2004
+ toolkit: z.ZodObject<{
2005
+ logo: z.ZodString;
2006
+ slug: z.ZodString;
2007
+ }, "strip", z.ZodTypeAny, {
1967
2008
  slug: string;
1968
2009
  logo: string;
1969
2010
  }, {
1970
2011
  slug: string;
1971
2012
  logo: string;
1972
2013
  }>;
1973
- noOfConnections: z$1.ZodNumber;
1974
- status: z$1.ZodEnum<["ENABLED", "DISABLED"]>;
1975
- uuid: z$1.ZodString;
1976
- authScheme: z$1.ZodOptional<z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
1977
- credentials: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
1978
- expectedInputFields: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown, "many">>;
1979
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2014
+ noOfConnections: z.ZodNumber;
2015
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
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"]>>;
2017
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2018
+ expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2019
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
1980
2020
  /**
1981
2021
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
1982
2022
  */
1983
- restrictToFollowingTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1984
- isComposioManaged: z$1.ZodOptional<z$1.ZodBoolean>;
1985
- createdBy: z$1.ZodOptional<z$1.ZodString>;
1986
- createdAt: z$1.ZodOptional<z$1.ZodString>;
1987
- lastUpdatedAt: z$1.ZodOptional<z$1.ZodString>;
1988
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
1989
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1990
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
1991
- }, "strip", z$1.ZodTypeAny, {
2023
+ restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2024
+ isComposioManaged: z.ZodOptional<z.ZodBoolean>;
2025
+ createdBy: z.ZodOptional<z.ZodString>;
2026
+ createdAt: z.ZodOptional<z.ZodString>;
2027
+ lastUpdatedAt: z.ZodOptional<z.ZodString>;
2028
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
2029
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2030
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2031
+ }, "strip", z.ZodTypeAny, {
1992
2032
  toolsForConnectedAccountCreation?: string[] | undefined;
1993
2033
  toolsAvailableForExecution?: string[] | undefined;
1994
2034
  }, {
1995
2035
  toolsForConnectedAccountCreation?: string[] | undefined;
1996
2036
  toolsAvailableForExecution?: string[] | undefined;
1997
2037
  }>>;
1998
- }, "strip", z$1.ZodTypeAny, {
2038
+ }, "strip", z.ZodTypeAny, {
1999
2039
  name: string;
2000
2040
  status: "ENABLED" | "DISABLED";
2001
2041
  toolkit: {
@@ -2004,19 +2044,18 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2004
2044
  };
2005
2045
  id: string;
2006
2046
  noOfConnections: number;
2007
- uuid: string;
2008
2047
  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;
2048
+ createdAt?: string | 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
2061
  name: string;
@@ -2027,79 +2066,83 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2027
2066
  };
2028
2067
  id: string;
2029
2068
  noOfConnections: number;
2030
- uuid: string;
2031
2069
  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;
2070
+ createdAt?: string | 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
- type AuthConfigRetrieveResponse = z$1.infer<typeof AuthConfigRetrieveResponseSchema>;
2046
- declare const AuthConfigListParamsSchema: z$1.ZodObject<{
2047
- cursor: z$1.ZodOptional<z$1.ZodString>;
2048
- isComposioManaged: z$1.ZodOptional<z$1.ZodBoolean>;
2049
- limit: z$1.ZodOptional<z$1.ZodNumber>;
2050
- toolkit: z$1.ZodOptional<z$1.ZodString>;
2051
- }, "strip", z$1.ZodTypeAny, {
2083
+ type AuthConfigRetrieveResponse = z.infer<typeof AuthConfigRetrieveResponseSchema>;
2084
+ declare const AuthConfigListParamsSchema: z.ZodObject<{
2085
+ cursor: z.ZodOptional<z.ZodString>;
2086
+ isComposioManaged: z.ZodOptional<z.ZodBoolean>;
2087
+ limit: z.ZodOptional<z.ZodNumber>;
2088
+ search: z.ZodOptional<z.ZodString>;
2089
+ showDisabled: z.ZodOptional<z.ZodBoolean>;
2090
+ toolkit: z.ZodOptional<z.ZodString>;
2091
+ }, "strip", z.ZodTypeAny, {
2052
2092
  toolkit?: string | undefined;
2053
2093
  limit?: number | undefined;
2054
- isComposioManaged?: boolean | undefined;
2094
+ search?: string | undefined;
2055
2095
  cursor?: string | undefined;
2096
+ isComposioManaged?: boolean | undefined;
2097
+ showDisabled?: boolean | undefined;
2056
2098
  }, {
2057
2099
  toolkit?: string | undefined;
2058
2100
  limit?: number | undefined;
2059
- isComposioManaged?: boolean | undefined;
2101
+ search?: string | undefined;
2060
2102
  cursor?: string | undefined;
2103
+ isComposioManaged?: boolean | undefined;
2104
+ showDisabled?: boolean | undefined;
2061
2105
  }>;
2062
- type AuthConfigListParams = z$1.infer<typeof AuthConfigListParamsSchema>;
2063
- declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2064
- items: z$1.ZodArray<z$1.ZodObject<{
2065
- id: z$1.ZodString;
2066
- name: z$1.ZodString;
2067
- toolkit: z$1.ZodObject<{
2068
- logo: z$1.ZodString;
2069
- slug: z$1.ZodString;
2070
- }, "strip", z$1.ZodTypeAny, {
2106
+ type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
2107
+ declare const AuthConfigListResponseSchema: z.ZodObject<{
2108
+ items: z.ZodArray<z.ZodObject<{
2109
+ id: z.ZodString;
2110
+ name: z.ZodString;
2111
+ toolkit: z.ZodObject<{
2112
+ logo: z.ZodString;
2113
+ slug: z.ZodString;
2114
+ }, "strip", z.ZodTypeAny, {
2071
2115
  slug: string;
2072
2116
  logo: string;
2073
2117
  }, {
2074
2118
  slug: string;
2075
2119
  logo: string;
2076
2120
  }>;
2077
- noOfConnections: z$1.ZodNumber;
2078
- status: z$1.ZodEnum<["ENABLED", "DISABLED"]>;
2079
- uuid: z$1.ZodString;
2080
- authScheme: z$1.ZodOptional<z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
2081
- credentials: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2082
- expectedInputFields: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnknown, "many">>;
2083
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2121
+ noOfConnections: z.ZodNumber;
2122
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
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"]>>;
2124
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2125
+ expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2126
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
2084
2127
  /**
2085
2128
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
2086
2129
  */
2087
- restrictToFollowingTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2088
- isComposioManaged: z$1.ZodOptional<z$1.ZodBoolean>;
2089
- createdBy: z$1.ZodOptional<z$1.ZodString>;
2090
- createdAt: z$1.ZodOptional<z$1.ZodString>;
2091
- lastUpdatedAt: z$1.ZodOptional<z$1.ZodString>;
2092
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
2093
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2094
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2095
- }, "strip", z$1.ZodTypeAny, {
2130
+ restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2131
+ isComposioManaged: z.ZodOptional<z.ZodBoolean>;
2132
+ createdBy: z.ZodOptional<z.ZodString>;
2133
+ createdAt: z.ZodOptional<z.ZodString>;
2134
+ lastUpdatedAt: z.ZodOptional<z.ZodString>;
2135
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
2136
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2137
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2138
+ }, "strip", z.ZodTypeAny, {
2096
2139
  toolsForConnectedAccountCreation?: string[] | undefined;
2097
2140
  toolsAvailableForExecution?: string[] | undefined;
2098
2141
  }, {
2099
2142
  toolsForConnectedAccountCreation?: string[] | undefined;
2100
2143
  toolsAvailableForExecution?: string[] | undefined;
2101
2144
  }>>;
2102
- }, "strip", z$1.ZodTypeAny, {
2145
+ }, "strip", z.ZodTypeAny, {
2103
2146
  name: string;
2104
2147
  status: "ENABLED" | "DISABLED";
2105
2148
  toolkit: {
@@ -2108,19 +2151,18 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2108
2151
  };
2109
2152
  id: string;
2110
2153
  noOfConnections: number;
2111
- uuid: string;
2112
2154
  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;
2155
+ createdAt?: string | 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
2168
  name: string;
@@ -2131,24 +2173,23 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2131
2173
  };
2132
2174
  id: string;
2133
2175
  noOfConnections: number;
2134
- uuid: string;
2135
2176
  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;
2177
+ createdAt?: string | 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
- nextCursor: z$1.ZodNullable<z$1.ZodString>;
2150
- totalPages: z$1.ZodNumber;
2151
- }, "strip", z$1.ZodTypeAny, {
2190
+ nextCursor: z.ZodNullable<z.ZodString>;
2191
+ totalPages: z.ZodNumber;
2192
+ }, "strip", z.ZodTypeAny, {
2152
2193
  items: {
2153
2194
  name: string;
2154
2195
  status: "ENABLED" | "DISABLED";
@@ -2158,19 +2199,18 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2158
2199
  };
2159
2200
  id: string;
2160
2201
  noOfConnections: number;
2161
- uuid: string;
2162
2202
  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;
2203
+ createdAt?: string | 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;
@@ -2185,58 +2225,57 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2185
2225
  };
2186
2226
  id: string;
2187
2227
  noOfConnections: number;
2188
- uuid: string;
2189
2228
  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;
2229
+ createdAt?: string | 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;
2204
2243
  totalPages: number;
2205
2244
  }>;
2206
- type AuthConfigListResponse = z$1.infer<typeof AuthConfigListResponseSchema>;
2207
- declare const AuthCustomConfigUpdateParamsSchema: z$1.ZodObject<{
2208
- type: z$1.ZodLiteral<"custom">;
2209
- credentials: z$1.ZodOptional<z$1.ZodObject<{
2210
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2211
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2212
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
2213
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2214
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2215
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
2216
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2217
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2218
- }, z$1.ZodTypeAny, "passthrough">>>;
2219
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2245
+ type AuthConfigListResponse = z.infer<typeof AuthConfigListResponseSchema>;
2246
+ declare const AuthCustomConfigUpdateParamsSchema: z.ZodObject<{
2247
+ type: z.ZodLiteral<"custom">;
2248
+ credentials: z.ZodOptional<z.ZodObject<{
2249
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2250
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2251
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2252
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2253
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2254
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2255
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2256
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2257
+ }, z.ZodTypeAny, "passthrough">>>;
2258
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
2220
2259
  /**
2221
2260
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
2222
2261
  */
2223
- restrictToFollowingTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2224
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
2225
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2226
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2227
- }, "strip", z$1.ZodTypeAny, {
2262
+ restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2263
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
2264
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2265
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2266
+ }, "strip", z.ZodTypeAny, {
2228
2267
  toolsForConnectedAccountCreation?: string[] | undefined;
2229
2268
  toolsAvailableForExecution?: string[] | undefined;
2230
2269
  }, {
2231
2270
  toolsForConnectedAccountCreation?: string[] | undefined;
2232
2271
  toolsAvailableForExecution?: string[] | undefined;
2233
2272
  }>>;
2234
- }, "strip", z$1.ZodTypeAny, {
2273
+ }, "strip", z.ZodTypeAny, {
2235
2274
  type: "custom";
2236
- credentials?: z$1.objectOutputType<{
2237
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2238
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2239
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
2275
+ credentials?: z.objectOutputType<{
2276
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2277
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2278
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2240
2279
  toolAccessConfig?: {
2241
2280
  toolsForConnectedAccountCreation?: string[] | undefined;
2242
2281
  toolsAvailableForExecution?: string[] | undefined;
@@ -2245,10 +2284,10 @@ declare const AuthCustomConfigUpdateParamsSchema: z$1.ZodObject<{
2245
2284
  restrictToFollowingTools?: string[] | undefined;
2246
2285
  }, {
2247
2286
  type: "custom";
2248
- credentials?: z$1.objectInputType<{
2249
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2250
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2251
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
2287
+ credentials?: z.objectInputType<{
2288
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2289
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2290
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2252
2291
  toolAccessConfig?: {
2253
2292
  toolsForConnectedAccountCreation?: string[] | undefined;
2254
2293
  toolsAvailableForExecution?: string[] | undefined;
@@ -2256,25 +2295,25 @@ declare const AuthCustomConfigUpdateParamsSchema: z$1.ZodObject<{
2256
2295
  isEnabledForToolRouter?: boolean | undefined;
2257
2296
  restrictToFollowingTools?: string[] | undefined;
2258
2297
  }>;
2259
- declare const AuthDefaultConfigUpdateParamsSchema: z$1.ZodObject<{
2260
- type: z$1.ZodLiteral<"default">;
2261
- scopes: z$1.ZodOptional<z$1.ZodString>;
2262
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2298
+ declare const AuthDefaultConfigUpdateParamsSchema: z.ZodObject<{
2299
+ type: z.ZodLiteral<"default">;
2300
+ scopes: z.ZodOptional<z.ZodString>;
2301
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
2263
2302
  /**
2264
2303
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
2265
2304
  */
2266
- restrictToFollowingTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2267
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
2268
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2269
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2270
- }, "strip", z$1.ZodTypeAny, {
2305
+ restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2306
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
2307
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2308
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2309
+ }, "strip", z.ZodTypeAny, {
2271
2310
  toolsForConnectedAccountCreation?: string[] | undefined;
2272
2311
  toolsAvailableForExecution?: string[] | undefined;
2273
2312
  }, {
2274
2313
  toolsForConnectedAccountCreation?: string[] | undefined;
2275
2314
  toolsAvailableForExecution?: string[] | undefined;
2276
2315
  }>>;
2277
- }, "strip", z$1.ZodTypeAny, {
2316
+ }, "strip", z.ZodTypeAny, {
2278
2317
  type: "default";
2279
2318
  scopes?: string | undefined;
2280
2319
  toolAccessConfig?: {
@@ -2293,39 +2332,39 @@ declare const AuthDefaultConfigUpdateParamsSchema: z$1.ZodObject<{
2293
2332
  isEnabledForToolRouter?: boolean | undefined;
2294
2333
  restrictToFollowingTools?: string[] | undefined;
2295
2334
  }>;
2296
- declare const AuthConfigUpdateParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
2297
- type: z$1.ZodLiteral<"custom">;
2298
- credentials: z$1.ZodOptional<z$1.ZodObject<{
2299
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2300
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2301
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
2302
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2303
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2304
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
2305
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2306
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2307
- }, z$1.ZodTypeAny, "passthrough">>>;
2308
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2335
+ declare const AuthConfigUpdateParamsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2336
+ type: z.ZodLiteral<"custom">;
2337
+ credentials: z.ZodOptional<z.ZodObject<{
2338
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2339
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2340
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2341
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2342
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2343
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2344
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2345
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2346
+ }, z.ZodTypeAny, "passthrough">>>;
2347
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
2309
2348
  /**
2310
2349
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
2311
2350
  */
2312
- restrictToFollowingTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2313
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
2314
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2315
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2316
- }, "strip", z$1.ZodTypeAny, {
2351
+ restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2352
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
2353
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2354
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2355
+ }, "strip", z.ZodTypeAny, {
2317
2356
  toolsForConnectedAccountCreation?: string[] | undefined;
2318
2357
  toolsAvailableForExecution?: string[] | undefined;
2319
2358
  }, {
2320
2359
  toolsForConnectedAccountCreation?: string[] | undefined;
2321
2360
  toolsAvailableForExecution?: string[] | undefined;
2322
2361
  }>>;
2323
- }, "strip", z$1.ZodTypeAny, {
2362
+ }, "strip", z.ZodTypeAny, {
2324
2363
  type: "custom";
2325
- credentials?: z$1.objectOutputType<{
2326
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2327
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2328
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
2364
+ credentials?: z.objectOutputType<{
2365
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2366
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2367
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2329
2368
  toolAccessConfig?: {
2330
2369
  toolsForConnectedAccountCreation?: string[] | undefined;
2331
2370
  toolsAvailableForExecution?: string[] | undefined;
@@ -2334,35 +2373,35 @@ declare const AuthConfigUpdateParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2334
2373
  restrictToFollowingTools?: string[] | undefined;
2335
2374
  }, {
2336
2375
  type: "custom";
2337
- credentials?: z$1.objectInputType<{
2338
- scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2339
- user_scopes: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">]>>;
2340
- }, z$1.ZodTypeAny, "passthrough"> | undefined;
2376
+ credentials?: z.objectInputType<{
2377
+ scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2378
+ user_scopes: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
2379
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2341
2380
  toolAccessConfig?: {
2342
2381
  toolsForConnectedAccountCreation?: string[] | undefined;
2343
2382
  toolsAvailableForExecution?: string[] | undefined;
2344
2383
  } | undefined;
2345
2384
  isEnabledForToolRouter?: boolean | undefined;
2346
2385
  restrictToFollowingTools?: string[] | undefined;
2347
- }>, z$1.ZodObject<{
2348
- type: z$1.ZodLiteral<"default">;
2349
- scopes: z$1.ZodOptional<z$1.ZodString>;
2350
- isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
2386
+ }>, z.ZodObject<{
2387
+ type: z.ZodLiteral<"default">;
2388
+ scopes: z.ZodOptional<z.ZodString>;
2389
+ isEnabledForToolRouter: z.ZodOptional<z.ZodBoolean>;
2351
2390
  /**
2352
2391
  * @deprecated - use tool access config to determine the tools that the user can perform on the auth config.
2353
2392
  */
2354
- restrictToFollowingTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2355
- toolAccessConfig: z$1.ZodOptional<z$1.ZodObject<{
2356
- toolsAvailableForExecution: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2357
- toolsForConnectedAccountCreation: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2358
- }, "strip", z$1.ZodTypeAny, {
2393
+ restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2394
+ toolAccessConfig: z.ZodOptional<z.ZodObject<{
2395
+ toolsAvailableForExecution: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2396
+ toolsForConnectedAccountCreation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2397
+ }, "strip", z.ZodTypeAny, {
2359
2398
  toolsForConnectedAccountCreation?: string[] | undefined;
2360
2399
  toolsAvailableForExecution?: string[] | undefined;
2361
2400
  }, {
2362
2401
  toolsForConnectedAccountCreation?: string[] | undefined;
2363
2402
  toolsAvailableForExecution?: string[] | undefined;
2364
2403
  }>>;
2365
- }, "strip", z$1.ZodTypeAny, {
2404
+ }, "strip", z.ZodTypeAny, {
2366
2405
  type: "default";
2367
2406
  scopes?: string | undefined;
2368
2407
  toolAccessConfig?: {
@@ -2381,7 +2420,7 @@ declare const AuthConfigUpdateParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
2381
2420
  isEnabledForToolRouter?: boolean | undefined;
2382
2421
  restrictToFollowingTools?: string[] | undefined;
2383
2422
  }>]>;
2384
- type AuthConfigUpdateParams = z$1.infer<typeof AuthConfigUpdateParamsSchema>;
2423
+ type AuthConfigUpdateParams = z.infer<typeof AuthConfigUpdateParamsSchema>;
2385
2424
  //#endregion
2386
2425
  //#region src/models/Toolkits.d.ts
2387
2426
  /**
@@ -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
@@ -2521,70 +2560,70 @@ declare const TriggerStatuses: {
2521
2560
  readonly DISABLE: "disable";
2522
2561
  };
2523
2562
  type TriggerStatusType = (typeof TriggerStatuses)[keyof typeof TriggerStatuses];
2524
- declare const TriggerStatusEnum: z$1.ZodEnum<["enable", "disable"]>;
2525
- declare const TriggerSubscribeParamSchema: z$1.ZodObject<{
2526
- toolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2527
- triggerId: z$1.ZodOptional<z$1.ZodString>;
2528
- connectedAccountId: z$1.ZodOptional<z$1.ZodString>;
2529
- authConfigId: z$1.ZodOptional<z$1.ZodString>;
2530
- triggerSlug: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
2531
- triggerData: z$1.ZodOptional<z$1.ZodString>;
2532
- userId: z$1.ZodOptional<z$1.ZodString>;
2533
- }, "strip", z$1.ZodTypeAny, {
2563
+ declare const TriggerStatusEnum: z.ZodEnum<["enable", "disable"]>;
2564
+ declare const TriggerSubscribeParamSchema: z.ZodObject<{
2565
+ toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2566
+ triggerId: z.ZodOptional<z.ZodString>;
2567
+ connectedAccountId: z.ZodOptional<z.ZodString>;
2568
+ authConfigId: z.ZodOptional<z.ZodString>;
2569
+ triggerSlug: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2570
+ triggerData: z.ZodOptional<z.ZodString>;
2571
+ userId: z.ZodOptional<z.ZodString>;
2572
+ }, "strip", z.ZodTypeAny, {
2534
2573
  toolkits?: string[] | undefined;
2535
2574
  connectedAccountId?: string | undefined;
2536
2575
  userId?: string | undefined;
2537
- triggerId?: string | undefined;
2538
2576
  authConfigId?: string | undefined;
2577
+ triggerId?: string | undefined;
2539
2578
  triggerSlug?: string[] | undefined;
2540
2579
  triggerData?: string | undefined;
2541
2580
  }, {
2542
2581
  toolkits?: string[] | undefined;
2543
2582
  connectedAccountId?: string | undefined;
2544
2583
  userId?: string | undefined;
2545
- triggerId?: string | undefined;
2546
2584
  authConfigId?: string | undefined;
2585
+ triggerId?: string | undefined;
2547
2586
  triggerSlug?: string[] | undefined;
2548
2587
  triggerData?: string | undefined;
2549
2588
  }>;
2550
- type TriggerSubscribeParams = z$1.infer<typeof TriggerSubscribeParamSchema>;
2551
- declare const TriggerInstanceListActiveParamsSchema: z$1.ZodObject<{
2552
- authConfigIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
2553
- connectedAccountIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
2554
- limit: z$1.ZodOptional<z$1.ZodNumber>;
2555
- cursor: z$1.ZodOptional<z$1.ZodString>;
2556
- showDisabled: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodBoolean>>;
2557
- triggerIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
2558
- triggerNames: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
2559
- }, "strip", z$1.ZodTypeAny, {
2589
+ type TriggerSubscribeParams = z.infer<typeof TriggerSubscribeParamSchema>;
2590
+ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
2591
+ authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2592
+ connectedAccountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2593
+ limit: z.ZodOptional<z.ZodNumber>;
2594
+ cursor: z.ZodOptional<z.ZodString>;
2595
+ showDisabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2596
+ triggerIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2597
+ triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2598
+ }, "strip", z.ZodTypeAny, {
2560
2599
  limit?: number | undefined;
2561
2600
  authConfigIds?: string[] | null | undefined;
2562
- cursor?: string | undefined;
2563
2601
  connectedAccountIds?: string[] | null | undefined;
2602
+ cursor?: string | undefined;
2564
2603
  showDisabled?: boolean | null | undefined;
2565
2604
  triggerIds?: string[] | null | undefined;
2566
2605
  triggerNames?: string[] | null | undefined;
2567
2606
  }, {
2568
2607
  limit?: number | undefined;
2569
2608
  authConfigIds?: string[] | null | undefined;
2570
- cursor?: string | undefined;
2571
2609
  connectedAccountIds?: string[] | null | undefined;
2610
+ cursor?: string | undefined;
2572
2611
  showDisabled?: boolean | null | undefined;
2573
2612
  triggerIds?: string[] | null | undefined;
2574
2613
  triggerNames?: string[] | null | undefined;
2575
2614
  }>;
2576
- type TriggerInstanceListActiveParams = z$1.infer<typeof TriggerInstanceListActiveParamsSchema>;
2577
- declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
2578
- id: z$1.ZodString;
2579
- connectedAccountId: z$1.ZodString;
2580
- disabledAt: z$1.ZodNullable<z$1.ZodString>;
2581
- state: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2582
- triggerConfig: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2583
- triggerName: z$1.ZodString;
2584
- updatedAt: z$1.ZodString;
2585
- triggerData: z$1.ZodOptional<z$1.ZodString>;
2586
- uuid: z$1.ZodOptional<z$1.ZodString>;
2587
- }, "strip", z$1.ZodTypeAny, {
2615
+ type TriggerInstanceListActiveParams = z.infer<typeof TriggerInstanceListActiveParamsSchema>;
2616
+ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
2617
+ id: z.ZodString;
2618
+ connectedAccountId: z.ZodString;
2619
+ disabledAt: z.ZodNullable<z.ZodString>;
2620
+ state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2621
+ triggerConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2622
+ triggerName: z.ZodString;
2623
+ updatedAt: z.ZodString;
2624
+ triggerData: z.ZodOptional<z.ZodString>;
2625
+ uuid: z.ZodOptional<z.ZodString>;
2626
+ }, "strip", z.ZodTypeAny, {
2588
2627
  connectedAccountId: string;
2589
2628
  id: string;
2590
2629
  updatedAt: string;
@@ -2605,18 +2644,18 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
2605
2644
  uuid?: string | undefined;
2606
2645
  triggerData?: string | undefined;
2607
2646
  }>;
2608
- declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
2609
- items: z$1.ZodArray<z$1.ZodObject<{
2610
- id: z$1.ZodString;
2611
- connectedAccountId: z$1.ZodString;
2612
- disabledAt: z$1.ZodNullable<z$1.ZodString>;
2613
- state: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2614
- triggerConfig: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2615
- triggerName: z$1.ZodString;
2616
- updatedAt: z$1.ZodString;
2617
- triggerData: z$1.ZodOptional<z$1.ZodString>;
2618
- uuid: z$1.ZodOptional<z$1.ZodString>;
2619
- }, "strip", z$1.ZodTypeAny, {
2647
+ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2648
+ items: z.ZodArray<z.ZodObject<{
2649
+ id: z.ZodString;
2650
+ connectedAccountId: z.ZodString;
2651
+ disabledAt: z.ZodNullable<z.ZodString>;
2652
+ state: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2653
+ triggerConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2654
+ triggerName: z.ZodString;
2655
+ updatedAt: z.ZodString;
2656
+ triggerData: z.ZodOptional<z.ZodString>;
2657
+ uuid: z.ZodOptional<z.ZodString>;
2658
+ }, "strip", z.ZodTypeAny, {
2620
2659
  connectedAccountId: string;
2621
2660
  id: string;
2622
2661
  updatedAt: string;
@@ -2637,9 +2676,9 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
2637
2676
  uuid?: string | undefined;
2638
2677
  triggerData?: string | undefined;
2639
2678
  }>, "many">;
2640
- nextCursor: z$1.ZodNullable<z$1.ZodString>;
2641
- totalPages: z$1.ZodNumber;
2642
- }, "strip", z$1.ZodTypeAny, {
2679
+ nextCursor: z.ZodNullable<z.ZodString>;
2680
+ totalPages: z.ZodNumber;
2681
+ }, "strip", z.ZodTypeAny, {
2643
2682
  items: {
2644
2683
  connectedAccountId: string;
2645
2684
  id: string;
@@ -2668,137 +2707,137 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
2668
2707
  nextCursor: string | null;
2669
2708
  totalPages: number;
2670
2709
  }>;
2671
- type TriggerInstanceListActiveResponse = z$1.infer<typeof TriggerInstanceListActiveResponseSchema>;
2672
- type TriggerInstanceListActiveResponseItem = z$1.infer<typeof TriggerInstanceListActiveResponseItemSchema>;
2673
- declare const TriggerInstanceUpsertParamsSchema: z$1.ZodObject<{
2674
- connectedAccountId: z$1.ZodOptional<z$1.ZodString>;
2675
- triggerConfig: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2676
- }, "strip", z$1.ZodTypeAny, {
2710
+ type TriggerInstanceListActiveResponse = z.infer<typeof TriggerInstanceListActiveResponseSchema>;
2711
+ type TriggerInstanceListActiveResponseItem = z.infer<typeof TriggerInstanceListActiveResponseItemSchema>;
2712
+ declare const TriggerInstanceUpsertParamsSchema: z.ZodObject<{
2713
+ connectedAccountId: z.ZodOptional<z.ZodString>;
2714
+ triggerConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2715
+ }, "strip", z.ZodTypeAny, {
2677
2716
  connectedAccountId?: string | undefined;
2678
2717
  triggerConfig?: Record<string, unknown> | undefined;
2679
2718
  }, {
2680
2719
  connectedAccountId?: string | undefined;
2681
2720
  triggerConfig?: Record<string, unknown> | undefined;
2682
2721
  }>;
2683
- type TriggerInstanceUpsertParams = z$1.infer<typeof TriggerInstanceUpsertParamsSchema>;
2684
- declare const TriggerInstanceUpsertResponseSchema: z$1.ZodObject<{
2685
- triggerId: z$1.ZodString;
2686
- }, "strip", z$1.ZodTypeAny, {
2722
+ type TriggerInstanceUpsertParams = z.infer<typeof TriggerInstanceUpsertParamsSchema>;
2723
+ declare const TriggerInstanceUpsertResponseSchema: z.ZodObject<{
2724
+ triggerId: z.ZodString;
2725
+ }, "strip", z.ZodTypeAny, {
2687
2726
  triggerId: string;
2688
2727
  }, {
2689
2728
  triggerId: string;
2690
2729
  }>;
2691
- type TriggerInstanceUpsertResponse = z$1.infer<typeof TriggerInstanceUpsertResponseSchema>;
2692
- declare const TriggerInstanceManageUpdateParamsSchema: z$1.ZodObject<{
2693
- status: z$1.ZodEnum<["enable", "disable"]>;
2694
- }, "strip", z$1.ZodTypeAny, {
2695
- status: "enable" | "disable";
2730
+ type TriggerInstanceUpsertResponse = z.infer<typeof TriggerInstanceUpsertResponseSchema>;
2731
+ declare const TriggerInstanceManageUpdateParamsSchema: z.ZodObject<{
2732
+ status: z.ZodEnum<["enable", "disable"]>;
2733
+ }, "strip", z.ZodTypeAny, {
2734
+ status: "disable" | "enable";
2696
2735
  }, {
2697
- status: "enable" | "disable";
2736
+ status: "disable" | "enable";
2698
2737
  }>;
2699
- type TriggerInstanceManageUpdateParams = z$1.infer<typeof TriggerInstanceManageUpdateParamsSchema>;
2700
- declare const TriggerInstanceManageUpdateResponseSchema: z$1.ZodObject<{
2701
- status: z$1.ZodEnum<["success"]>;
2702
- }, "strip", z$1.ZodTypeAny, {
2738
+ type TriggerInstanceManageUpdateParams = z.infer<typeof TriggerInstanceManageUpdateParamsSchema>;
2739
+ declare const TriggerInstanceManageUpdateResponseSchema: z.ZodObject<{
2740
+ status: z.ZodEnum<["success"]>;
2741
+ }, "strip", z.ZodTypeAny, {
2703
2742
  status: "success";
2704
2743
  }, {
2705
2744
  status: "success";
2706
2745
  }>;
2707
- type TriggerInstanceManageUpdateResponse = z$1.infer<typeof TriggerInstanceManageUpdateResponseSchema>;
2708
- declare const TriggerInstanceManageDeleteResponseSchema: z$1.ZodObject<{
2709
- triggerId: z$1.ZodString;
2710
- }, "strip", z$1.ZodTypeAny, {
2746
+ type TriggerInstanceManageUpdateResponse = z.infer<typeof TriggerInstanceManageUpdateResponseSchema>;
2747
+ declare const TriggerInstanceManageDeleteResponseSchema: z.ZodObject<{
2748
+ triggerId: z.ZodString;
2749
+ }, "strip", z.ZodTypeAny, {
2711
2750
  triggerId: string;
2712
2751
  }, {
2713
2752
  triggerId: string;
2714
2753
  }>;
2715
- type TriggerInstanceManageDeleteResponse = z$1.infer<typeof TriggerInstanceManageDeleteResponseSchema>;
2716
- declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
2717
- id: z$1.ZodString;
2718
- uuid: z$1.ZodString;
2719
- triggerSlug: z$1.ZodString;
2720
- toolkitSlug: z$1.ZodString;
2721
- userId: z$1.ZodString;
2722
- payload: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2723
- originalPayload: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
2724
- metadata: z$1.ZodObject<{
2725
- id: z$1.ZodString;
2726
- uuid: z$1.ZodString;
2727
- toolkitSlug: z$1.ZodString;
2728
- triggerSlug: z$1.ZodString;
2729
- triggerData: z$1.ZodOptional<z$1.ZodString>;
2730
- triggerConfig: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2731
- connectedAccount: z$1.ZodObject<{
2732
- id: z$1.ZodString;
2733
- uuid: z$1.ZodString;
2734
- authConfigId: z$1.ZodString;
2735
- authConfigUUID: z$1.ZodString;
2736
- userId: z$1.ZodString;
2737
- status: z$1.ZodEnum<["ACTIVE", "INACTIVE"]>;
2738
- }, "strip", z$1.ZodTypeAny, {
2754
+ type TriggerInstanceManageDeleteResponse = z.infer<typeof TriggerInstanceManageDeleteResponseSchema>;
2755
+ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2756
+ id: z.ZodString;
2757
+ uuid: z.ZodString;
2758
+ triggerSlug: z.ZodString;
2759
+ toolkitSlug: z.ZodString;
2760
+ userId: z.ZodString;
2761
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2762
+ originalPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2763
+ metadata: z.ZodObject<{
2764
+ id: z.ZodString;
2765
+ uuid: z.ZodString;
2766
+ toolkitSlug: z.ZodString;
2767
+ triggerSlug: z.ZodString;
2768
+ triggerData: z.ZodOptional<z.ZodString>;
2769
+ triggerConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2770
+ connectedAccount: z.ZodObject<{
2771
+ id: z.ZodString;
2772
+ uuid: z.ZodString;
2773
+ authConfigId: z.ZodString;
2774
+ authConfigUUID: z.ZodString;
2775
+ userId: z.ZodString;
2776
+ status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
2777
+ }, "strip", z.ZodTypeAny, {
2739
2778
  status: "ACTIVE" | "INACTIVE";
2740
2779
  userId: string;
2741
- id: string;
2742
- uuid: string;
2743
2780
  authConfigId: string;
2781
+ uuid: string;
2782
+ id: string;
2744
2783
  authConfigUUID: string;
2745
2784
  }, {
2746
2785
  status: "ACTIVE" | "INACTIVE";
2747
2786
  userId: string;
2748
- id: string;
2749
- uuid: string;
2750
2787
  authConfigId: string;
2788
+ uuid: string;
2789
+ id: string;
2751
2790
  authConfigUUID: string;
2752
2791
  }>;
2753
- }, "strip", z$1.ZodTypeAny, {
2792
+ }, "strip", z.ZodTypeAny, {
2754
2793
  toolkitSlug: string;
2794
+ uuid: string;
2755
2795
  id: string;
2756
2796
  connectedAccount: {
2757
2797
  status: "ACTIVE" | "INACTIVE";
2758
2798
  userId: string;
2759
- id: string;
2760
- uuid: string;
2761
2799
  authConfigId: string;
2800
+ uuid: 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
2808
  toolkitSlug: string;
2809
+ uuid: string;
2770
2810
  id: string;
2771
2811
  connectedAccount: {
2772
2812
  status: "ACTIVE" | "INACTIVE";
2773
2813
  userId: string;
2774
- id: string;
2775
- uuid: string;
2776
2814
  authConfigId: string;
2815
+ uuid: 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
- }, "strip", z$1.ZodTypeAny, {
2823
+ }, "strip", z.ZodTypeAny, {
2785
2824
  toolkitSlug: string;
2786
2825
  userId: string;
2787
- id: string;
2788
2826
  uuid: string;
2827
+ id: string;
2789
2828
  triggerSlug: string;
2790
2829
  metadata: {
2791
2830
  toolkitSlug: string;
2831
+ uuid: string;
2792
2832
  id: string;
2793
2833
  connectedAccount: {
2794
2834
  status: "ACTIVE" | "INACTIVE";
2795
2835
  userId: string;
2796
- id: string;
2797
- uuid: string;
2798
2836
  authConfigId: string;
2837
+ uuid: 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;
@@ -2808,21 +2847,21 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
2808
2847
  }, {
2809
2848
  toolkitSlug: string;
2810
2849
  userId: string;
2811
- id: string;
2812
2850
  uuid: string;
2851
+ id: string;
2813
2852
  triggerSlug: string;
2814
2853
  metadata: {
2815
2854
  toolkitSlug: string;
2855
+ uuid: string;
2816
2856
  id: string;
2817
2857
  connectedAccount: {
2818
2858
  status: "ACTIVE" | "INACTIVE";
2819
2859
  userId: string;
2820
- id: string;
2821
- uuid: string;
2822
2860
  authConfigId: string;
2861
+ uuid: 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;
@@ -2830,7 +2869,7 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
2830
2869
  payload?: Record<string, unknown> | undefined;
2831
2870
  originalPayload?: Record<string, unknown> | undefined;
2832
2871
  }>;
2833
- type IncomingTriggerPayload = z$1.infer<typeof IncomingTriggerPayloadSchema>;
2872
+ type IncomingTriggerPayload = z.infer<typeof IncomingTriggerPayloadSchema>;
2834
2873
  type TriggerData = {
2835
2874
  appName: string;
2836
2875
  clientId: number;
@@ -2852,11 +2891,11 @@ type TriggerData = {
2852
2891
  };
2853
2892
  };
2854
2893
  };
2855
- declare const TriggersTypeListParamsSchema: z$1.ZodObject<{
2856
- cursor: z$1.ZodOptional<z$1.ZodString>;
2857
- limit: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
2858
- toolkits: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
2859
- }, "strip", z$1.ZodTypeAny, {
2894
+ declare const TriggersTypeListParamsSchema: z.ZodObject<{
2895
+ cursor: z.ZodOptional<z.ZodString>;
2896
+ limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2897
+ toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2898
+ }, "strip", z.ZodTypeAny, {
2860
2899
  toolkits?: string[] | null | undefined;
2861
2900
  limit?: number | null | undefined;
2862
2901
  cursor?: string | undefined;
@@ -2865,119 +2904,119 @@ declare const TriggersTypeListParamsSchema: z$1.ZodObject<{
2865
2904
  limit?: number | null | undefined;
2866
2905
  cursor?: string | undefined;
2867
2906
  }>;
2868
- type TriggersTypeListParams = z$1.infer<typeof TriggersTypeListParamsSchema>;
2869
- declare const TriggerTypeSchema: z$1.ZodObject<{
2870
- slug: z$1.ZodString;
2871
- name: z$1.ZodString;
2872
- description: z$1.ZodString;
2873
- instructions: z$1.ZodOptional<z$1.ZodString>;
2874
- toolkit: z$1.ZodObject<{
2875
- logo: z$1.ZodString;
2876
- slug: z$1.ZodString;
2877
- name: z$1.ZodString;
2878
- }, "strip", z$1.ZodTypeAny, {
2879
- name: string;
2907
+ type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
2908
+ declare const TriggerTypeSchema: z.ZodObject<{
2909
+ slug: z.ZodString;
2910
+ name: z.ZodString;
2911
+ description: z.ZodString;
2912
+ instructions: z.ZodOptional<z.ZodString>;
2913
+ toolkit: z.ZodObject<{
2914
+ logo: z.ZodString;
2915
+ slug: z.ZodString;
2916
+ name: z.ZodString;
2917
+ }, "strip", z.ZodTypeAny, {
2880
2918
  slug: string;
2919
+ name: string;
2881
2920
  logo: string;
2882
2921
  }, {
2883
- name: string;
2884
2922
  slug: string;
2923
+ name: string;
2885
2924
  logo: string;
2886
2925
  }>;
2887
- payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2888
- config: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2889
- version: z$1.ZodOptional<z$1.ZodString>;
2890
- }, "strip", z$1.ZodTypeAny, {
2926
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2927
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2928
+ version: z.ZodOptional<z.ZodString>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ slug: string;
2891
2931
  name: string;
2892
2932
  description: string;
2893
- slug: string;
2894
2933
  toolkit: {
2895
- name: string;
2896
2934
  slug: string;
2935
+ name: string;
2897
2936
  logo: string;
2898
2937
  };
2899
- payload: Record<string, unknown>;
2900
2938
  config: Record<string, unknown>;
2939
+ payload: Record<string, unknown>;
2901
2940
  version?: string | undefined;
2902
2941
  instructions?: string | undefined;
2903
2942
  }, {
2943
+ slug: string;
2904
2944
  name: string;
2905
2945
  description: string;
2906
- slug: string;
2907
2946
  toolkit: {
2908
- name: string;
2909
2947
  slug: string;
2948
+ name: string;
2910
2949
  logo: string;
2911
2950
  };
2912
- payload: Record<string, unknown>;
2913
2951
  config: Record<string, unknown>;
2952
+ payload: Record<string, unknown>;
2914
2953
  version?: string | undefined;
2915
2954
  instructions?: string | undefined;
2916
2955
  }>;
2917
- type TriggerType = z$1.infer<typeof TriggerTypeSchema>;
2918
- declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
2919
- items: z$1.ZodArray<z$1.ZodObject<{
2920
- slug: z$1.ZodString;
2921
- name: z$1.ZodString;
2922
- description: z$1.ZodString;
2923
- instructions: z$1.ZodOptional<z$1.ZodString>;
2924
- toolkit: z$1.ZodObject<{
2925
- logo: z$1.ZodString;
2926
- slug: z$1.ZodString;
2927
- name: z$1.ZodString;
2928
- }, "strip", z$1.ZodTypeAny, {
2929
- name: string;
2956
+ type TriggerType = z.infer<typeof TriggerTypeSchema>;
2957
+ declare const TriggersTypeListResponseSchema: z.ZodObject<{
2958
+ items: z.ZodArray<z.ZodObject<{
2959
+ slug: z.ZodString;
2960
+ name: z.ZodString;
2961
+ description: z.ZodString;
2962
+ instructions: z.ZodOptional<z.ZodString>;
2963
+ toolkit: z.ZodObject<{
2964
+ logo: z.ZodString;
2965
+ slug: z.ZodString;
2966
+ name: z.ZodString;
2967
+ }, "strip", z.ZodTypeAny, {
2930
2968
  slug: string;
2969
+ name: string;
2931
2970
  logo: string;
2932
2971
  }, {
2933
- name: string;
2934
2972
  slug: string;
2973
+ name: string;
2935
2974
  logo: string;
2936
2975
  }>;
2937
- payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2938
- config: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
2939
- version: z$1.ZodOptional<z$1.ZodString>;
2940
- }, "strip", z$1.ZodTypeAny, {
2976
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2977
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2978
+ version: z.ZodOptional<z.ZodString>;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ slug: string;
2941
2981
  name: string;
2942
2982
  description: string;
2943
- slug: string;
2944
2983
  toolkit: {
2945
- name: string;
2946
2984
  slug: string;
2985
+ name: string;
2947
2986
  logo: string;
2948
2987
  };
2949
- payload: Record<string, unknown>;
2950
2988
  config: Record<string, unknown>;
2989
+ payload: Record<string, unknown>;
2951
2990
  version?: string | undefined;
2952
2991
  instructions?: string | undefined;
2953
2992
  }, {
2993
+ slug: string;
2954
2994
  name: string;
2955
2995
  description: string;
2956
- slug: string;
2957
2996
  toolkit: {
2958
- name: string;
2959
2997
  slug: string;
2998
+ name: string;
2960
2999
  logo: string;
2961
3000
  };
2962
- payload: Record<string, unknown>;
2963
3001
  config: Record<string, unknown>;
3002
+ payload: Record<string, unknown>;
2964
3003
  version?: string | undefined;
2965
3004
  instructions?: string | undefined;
2966
3005
  }>, "many">;
2967
- nextCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2968
- totalPages: z$1.ZodNumber;
2969
- }, "strip", z$1.ZodTypeAny, {
3006
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3007
+ totalPages: z.ZodNumber;
3008
+ }, "strip", z.ZodTypeAny, {
2970
3009
  items: {
3010
+ slug: string;
2971
3011
  name: string;
2972
3012
  description: string;
2973
- slug: string;
2974
3013
  toolkit: {
2975
- name: string;
2976
3014
  slug: string;
3015
+ name: string;
2977
3016
  logo: string;
2978
3017
  };
2979
- payload: Record<string, unknown>;
2980
3018
  config: Record<string, unknown>;
3019
+ payload: Record<string, unknown>;
2981
3020
  version?: string | undefined;
2982
3021
  instructions?: string | undefined;
2983
3022
  }[];
@@ -2985,24 +3024,24 @@ declare const TriggersTypeListResponseSchema: z$1.ZodObject<{
2985
3024
  nextCursor?: string | null | undefined;
2986
3025
  }, {
2987
3026
  items: {
3027
+ slug: string;
2988
3028
  name: string;
2989
3029
  description: string;
2990
- slug: string;
2991
3030
  toolkit: {
2992
- name: string;
2993
3031
  slug: string;
3032
+ name: string;
2994
3033
  logo: string;
2995
3034
  };
2996
- payload: Record<string, unknown>;
2997
3035
  config: Record<string, unknown>;
3036
+ payload: Record<string, unknown>;
2998
3037
  version?: string | undefined;
2999
3038
  instructions?: string | undefined;
3000
3039
  }[];
3001
3040
  totalPages: number;
3002
3041
  nextCursor?: string | null | undefined;
3003
3042
  }>;
3004
- type TriggersTypeListResponse = z$1.infer<typeof TriggersTypeListResponseSchema>;
3005
- type TriggersTypeRetrieveResponse = z$1.infer<typeof TriggerTypeSchema>;
3043
+ type TriggersTypeListResponse = z.infer<typeof TriggersTypeListResponseSchema>;
3044
+ type TriggersTypeRetrieveResponse = z.infer<typeof TriggerTypeSchema>;
3006
3045
  /**
3007
3046
  * Generic trigger event type that can be used with generated trigger payload types
3008
3047
  * @template TPayload - The specific trigger payload type (e.g., GITHUB_COMMIT_EVENT_PAYLOAD)
@@ -3026,13 +3065,13 @@ type TriggerEventData<TPayload = unknown> = TPayload & {
3026
3065
  * These schemas represent the raw payload structure sent by Composio's webhook system
3027
3066
  */
3028
3067
  /** V1 webhook payload - legacy format */
3029
- declare const WebhookPayloadV1Schema: z$1.ZodObject<{
3030
- trigger_name: z$1.ZodString;
3031
- connection_id: z$1.ZodString;
3032
- trigger_id: z$1.ZodString;
3033
- payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3034
- log_id: z$1.ZodString;
3035
- }, "strip", z$1.ZodTypeAny, {
3068
+ declare const WebhookPayloadV1Schema: z.ZodObject<{
3069
+ trigger_name: z.ZodString;
3070
+ connection_id: z.ZodString;
3071
+ trigger_id: z.ZodString;
3072
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3073
+ log_id: z.ZodString;
3074
+ }, "strip", z.ZodTypeAny, {
3036
3075
  payload: Record<string, unknown>;
3037
3076
  trigger_name: string;
3038
3077
  connection_id: string;
@@ -3045,32 +3084,32 @@ declare const WebhookPayloadV1Schema: z$1.ZodObject<{
3045
3084
  trigger_id: string;
3046
3085
  log_id: string;
3047
3086
  }>;
3048
- type WebhookPayloadV1 = z$1.infer<typeof WebhookPayloadV1Schema>;
3087
+ type WebhookPayloadV1 = z.infer<typeof WebhookPayloadV1Schema>;
3049
3088
  /** V2 webhook payload - includes timestamp and nested data */
3050
- declare const WebhookPayloadV2Schema: z$1.ZodObject<{
3051
- type: z$1.ZodString;
3052
- timestamp: z$1.ZodString;
3053
- log_id: z$1.ZodString;
3054
- data: z$1.ZodObject<{
3055
- connection_id: z$1.ZodString;
3056
- connection_nano_id: z$1.ZodString;
3057
- trigger_nano_id: z$1.ZodString;
3058
- trigger_id: z$1.ZodString;
3059
- user_id: z$1.ZodString;
3060
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
3061
- connection_id: z$1.ZodString;
3062
- connection_nano_id: z$1.ZodString;
3063
- trigger_nano_id: z$1.ZodString;
3064
- trigger_id: z$1.ZodString;
3065
- user_id: z$1.ZodString;
3066
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
3067
- connection_id: z$1.ZodString;
3068
- connection_nano_id: z$1.ZodString;
3069
- trigger_nano_id: z$1.ZodString;
3070
- trigger_id: z$1.ZodString;
3071
- user_id: z$1.ZodString;
3072
- }, z$1.ZodTypeAny, "passthrough">>;
3073
- }, "strip", z$1.ZodTypeAny, {
3089
+ declare const WebhookPayloadV2Schema: z.ZodObject<{
3090
+ type: z.ZodString;
3091
+ timestamp: z.ZodString;
3092
+ log_id: z.ZodString;
3093
+ data: z.ZodObject<{
3094
+ connection_id: z.ZodString;
3095
+ connection_nano_id: z.ZodString;
3096
+ trigger_nano_id: z.ZodString;
3097
+ trigger_id: z.ZodString;
3098
+ user_id: z.ZodString;
3099
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3100
+ connection_id: z.ZodString;
3101
+ connection_nano_id: z.ZodString;
3102
+ trigger_nano_id: z.ZodString;
3103
+ trigger_id: z.ZodString;
3104
+ user_id: z.ZodString;
3105
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3106
+ connection_id: z.ZodString;
3107
+ connection_nano_id: z.ZodString;
3108
+ trigger_nano_id: z.ZodString;
3109
+ trigger_id: z.ZodString;
3110
+ user_id: z.ZodString;
3111
+ }, z.ZodTypeAny, "passthrough">>;
3112
+ }, "strip", z.ZodTypeAny, {
3074
3113
  type: string;
3075
3114
  data: {
3076
3115
  connection_id: string;
@@ -3097,15 +3136,15 @@ declare const WebhookPayloadV2Schema: z$1.ZodObject<{
3097
3136
  log_id: string;
3098
3137
  timestamp: string;
3099
3138
  }>;
3100
- type WebhookPayloadV2 = z$1.infer<typeof WebhookPayloadV2Schema>;
3139
+ type WebhookPayloadV2 = z.infer<typeof WebhookPayloadV2Schema>;
3101
3140
  /** V3 webhook payload - generic envelope for all composio.* events */
3102
- declare const WebhookPayloadV3Schema: z$1.ZodObject<{
3103
- id: z$1.ZodString;
3104
- timestamp: z$1.ZodString;
3105
- type: z$1.ZodEffects<z$1.ZodString, string, string>;
3106
- metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3107
- data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3108
- }, "strip", z$1.ZodTypeAny, {
3141
+ declare const WebhookPayloadV3Schema: z.ZodObject<{
3142
+ id: z.ZodString;
3143
+ timestamp: z.ZodString;
3144
+ type: z.ZodEffects<z.ZodString, string, string>;
3145
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3146
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3147
+ }, "strip", z.ZodTypeAny, {
3109
3148
  type: string;
3110
3149
  data: Record<string, unknown>;
3111
3150
  id: string;
@@ -3118,36 +3157,36 @@ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
3118
3157
  metadata: Record<string, unknown>;
3119
3158
  timestamp: string;
3120
3159
  }>;
3121
- type WebhookPayloadV3 = z$1.infer<typeof WebhookPayloadV3Schema>;
3160
+ type WebhookPayloadV3 = z.infer<typeof WebhookPayloadV3Schema>;
3122
3161
  /** V3 trigger-specific payload - has trigger metadata fields */
3123
- declare const WebhookTriggerPayloadV3Schema: z$1.ZodObject<{
3124
- id: z$1.ZodString;
3125
- timestamp: z$1.ZodString;
3126
- type: z$1.ZodString;
3127
- metadata: z$1.ZodObject<{
3128
- log_id: z$1.ZodString;
3129
- trigger_slug: z$1.ZodString;
3130
- trigger_id: z$1.ZodString;
3131
- connected_account_id: z$1.ZodString;
3132
- auth_config_id: z$1.ZodString;
3133
- user_id: z$1.ZodString;
3134
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
3135
- log_id: z$1.ZodString;
3136
- trigger_slug: z$1.ZodString;
3137
- trigger_id: z$1.ZodString;
3138
- connected_account_id: z$1.ZodString;
3139
- auth_config_id: z$1.ZodString;
3140
- user_id: z$1.ZodString;
3141
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
3142
- log_id: z$1.ZodString;
3143
- trigger_slug: z$1.ZodString;
3144
- trigger_id: z$1.ZodString;
3145
- connected_account_id: z$1.ZodString;
3146
- auth_config_id: z$1.ZodString;
3147
- user_id: z$1.ZodString;
3148
- }, z$1.ZodTypeAny, "passthrough">>;
3149
- data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3150
- }, "strip", z$1.ZodTypeAny, {
3162
+ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
3163
+ id: z.ZodString;
3164
+ timestamp: z.ZodString;
3165
+ type: z.ZodString;
3166
+ metadata: z.ZodObject<{
3167
+ log_id: z.ZodString;
3168
+ trigger_slug: z.ZodString;
3169
+ trigger_id: z.ZodString;
3170
+ connected_account_id: z.ZodString;
3171
+ auth_config_id: z.ZodString;
3172
+ user_id: z.ZodString;
3173
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3174
+ log_id: z.ZodString;
3175
+ trigger_slug: z.ZodString;
3176
+ trigger_id: z.ZodString;
3177
+ connected_account_id: z.ZodString;
3178
+ auth_config_id: z.ZodString;
3179
+ user_id: z.ZodString;
3180
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3181
+ log_id: z.ZodString;
3182
+ trigger_slug: z.ZodString;
3183
+ trigger_id: z.ZodString;
3184
+ connected_account_id: z.ZodString;
3185
+ auth_config_id: z.ZodString;
3186
+ user_id: z.ZodString;
3187
+ }, z.ZodTypeAny, "passthrough">>;
3188
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3189
+ }, "strip", z.ZodTypeAny, {
3151
3190
  type: string;
3152
3191
  data: Record<string, unknown>;
3153
3192
  id: string;
@@ -3178,15 +3217,15 @@ declare const WebhookTriggerPayloadV3Schema: z$1.ZodObject<{
3178
3217
  };
3179
3218
  timestamp: string;
3180
3219
  }>;
3181
- type WebhookTriggerPayloadV3 = z$1.infer<typeof WebhookTriggerPayloadV3Schema>;
3220
+ type WebhookTriggerPayloadV3 = z.infer<typeof WebhookTriggerPayloadV3Schema>;
3182
3221
  /** Union of all webhook payload versions */
3183
- declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
3184
- id: z$1.ZodString;
3185
- timestamp: z$1.ZodString;
3186
- type: z$1.ZodEffects<z$1.ZodString, string, string>;
3187
- metadata: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3188
- data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3189
- }, "strip", z$1.ZodTypeAny, {
3222
+ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
3223
+ id: z.ZodString;
3224
+ timestamp: z.ZodString;
3225
+ type: z.ZodEffects<z.ZodString, string, string>;
3226
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3227
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3228
+ }, "strip", z.ZodTypeAny, {
3190
3229
  type: string;
3191
3230
  data: Record<string, unknown>;
3192
3231
  id: string;
@@ -3198,30 +3237,30 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
3198
3237
  id: string;
3199
3238
  metadata: Record<string, unknown>;
3200
3239
  timestamp: string;
3201
- }>, z$1.ZodObject<{
3202
- type: z$1.ZodString;
3203
- timestamp: z$1.ZodString;
3204
- log_id: z$1.ZodString;
3205
- data: z$1.ZodObject<{
3206
- connection_id: z$1.ZodString;
3207
- connection_nano_id: z$1.ZodString;
3208
- trigger_nano_id: z$1.ZodString;
3209
- trigger_id: z$1.ZodString;
3210
- user_id: z$1.ZodString;
3211
- }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
3212
- connection_id: z$1.ZodString;
3213
- connection_nano_id: z$1.ZodString;
3214
- trigger_nano_id: z$1.ZodString;
3215
- trigger_id: z$1.ZodString;
3216
- user_id: z$1.ZodString;
3217
- }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
3218
- connection_id: z$1.ZodString;
3219
- connection_nano_id: z$1.ZodString;
3220
- trigger_nano_id: z$1.ZodString;
3221
- trigger_id: z$1.ZodString;
3222
- user_id: z$1.ZodString;
3223
- }, z$1.ZodTypeAny, "passthrough">>;
3224
- }, "strip", z$1.ZodTypeAny, {
3240
+ }>, z.ZodObject<{
3241
+ type: z.ZodString;
3242
+ timestamp: z.ZodString;
3243
+ log_id: z.ZodString;
3244
+ data: z.ZodObject<{
3245
+ connection_id: z.ZodString;
3246
+ connection_nano_id: z.ZodString;
3247
+ trigger_nano_id: z.ZodString;
3248
+ trigger_id: z.ZodString;
3249
+ user_id: z.ZodString;
3250
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3251
+ connection_id: z.ZodString;
3252
+ connection_nano_id: z.ZodString;
3253
+ trigger_nano_id: z.ZodString;
3254
+ trigger_id: z.ZodString;
3255
+ user_id: z.ZodString;
3256
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3257
+ connection_id: z.ZodString;
3258
+ connection_nano_id: z.ZodString;
3259
+ trigger_nano_id: z.ZodString;
3260
+ trigger_id: z.ZodString;
3261
+ user_id: z.ZodString;
3262
+ }, z.ZodTypeAny, "passthrough">>;
3263
+ }, "strip", z.ZodTypeAny, {
3225
3264
  type: string;
3226
3265
  data: {
3227
3266
  connection_id: string;
@@ -3247,13 +3286,13 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
3247
3286
  };
3248
3287
  log_id: string;
3249
3288
  timestamp: string;
3250
- }>, z$1.ZodObject<{
3251
- trigger_name: z$1.ZodString;
3252
- connection_id: z$1.ZodString;
3253
- trigger_id: z$1.ZodString;
3254
- payload: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
3255
- log_id: z$1.ZodString;
3256
- }, "strip", z$1.ZodTypeAny, {
3289
+ }>, z.ZodObject<{
3290
+ trigger_name: z.ZodString;
3291
+ connection_id: z.ZodString;
3292
+ trigger_id: z.ZodString;
3293
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3294
+ log_id: z.ZodString;
3295
+ }, "strip", z.ZodTypeAny, {
3257
3296
  payload: Record<string, unknown>;
3258
3297
  trigger_name: string;
3259
3298
  connection_id: string;
@@ -3266,7 +3305,7 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
3266
3305
  trigger_id: string;
3267
3306
  log_id: string;
3268
3307
  }>]>;
3269
- type WebhookPayload = z$1.infer<typeof WebhookPayloadSchema>;
3308
+ type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
3270
3309
  /** Webhook version enum */
3271
3310
  declare const WebhookVersions: {
3272
3311
  readonly V1: "V1";
@@ -3274,37 +3313,59 @@ 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
  */
3280
- declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
3343
+ declare const VerifyWebhookParamsSchema: z.ZodObject<{
3281
3344
  /**
3282
3345
  * The webhook message ID from the 'webhook-id' header.
3283
3346
  * Format: 'msg_xxx'
3284
3347
  */
3285
- id: z$1.ZodString;
3286
- /** The raw webhook payload as a string (request body) */
3287
- payload: z$1.ZodString;
3288
- /** The webhook secret used to sign the payload (from Composio dashboard) */
3289
- secret: z$1.ZodString;
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) */
3350
+ secret: z.ZodString;
3290
3351
  /**
3291
3352
  * The signature from the 'webhook-signature' header.
3292
3353
  * Format: 'v1,base64EncodedSignature'
3293
3354
  */
3294
- signature: z$1.ZodString;
3355
+ signature: z.ZodString;
3295
3356
  /**
3296
3357
  * The webhook timestamp from the 'webhook-timestamp' header.
3297
3358
  * This is the Unix timestamp in seconds when the webhook was sent.
3298
3359
  */
3299
- timestamp: z$1.ZodString;
3360
+ timestamp: z.ZodString;
3300
3361
  /**
3301
3362
  * Maximum allowed age of the webhook in seconds.
3302
3363
  * If the webhook timestamp is older than this, verification will fail.
3303
3364
  * Set to 0 to disable timestamp validation.
3304
3365
  * @default 300 (5 minutes)
3305
3366
  */
3306
- tolerance: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
3307
- }, "strip", z$1.ZodTypeAny, {
3367
+ tolerance: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3368
+ }, "strip", z.ZodTypeAny, {
3308
3369
  id: string;
3309
3370
  payload: string;
3310
3371
  timestamp: string;
@@ -3319,17 +3380,45 @@ declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
3319
3380
  signature: string;
3320
3381
  tolerance?: number | undefined;
3321
3382
  }>;
3322
- type VerifyWebhookParams = z$1.input<typeof VerifyWebhookParamsSchema>;
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,51 +4306,53 @@ 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
  }
4105
4314
  //#endregion
4106
4315
  //#region src/types/mcp.experimental.types.d.ts
4107
- declare const MCPServerInstanceSchema: z.ZodObject<{
4108
- id: z.ZodString;
4109
- name: z.ZodString;
4110
- type: z.ZodLiteral<"streamable_http">;
4111
- url: z.ZodString;
4112
- userId: z.ZodString;
4113
- allowedTools: z.ZodArray<z.ZodString, "many">;
4114
- authConfigs: z.ZodArray<z.ZodString, "many">;
4115
- }, "strip", z.ZodTypeAny, {
4316
+ declare const MCPServerInstanceSchema: z$1.ZodObject<{
4317
+ id: z$1.ZodString;
4318
+ name: z$1.ZodString;
4319
+ type: z$1.ZodLiteral<"streamable_http">;
4320
+ url: z$1.ZodString;
4321
+ userId: z$1.ZodString;
4322
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
4323
+ authConfigs: z$1.ZodArray<z$1.ZodString, "many">;
4324
+ }, "strip", z$1.ZodTypeAny, {
4116
4325
  name: string;
4117
4326
  type: "streamable_http";
4118
4327
  userId: string;
4119
- id: string;
4120
4328
  allowedTools: string[];
4121
4329
  url: string;
4330
+ id: string;
4122
4331
  authConfigs: string[];
4123
4332
  }, {
4124
4333
  name: string;
4125
4334
  type: "streamable_http";
4126
4335
  userId: string;
4127
- id: string;
4128
4336
  allowedTools: string[];
4129
4337
  url: string;
4338
+ id: string;
4130
4339
  authConfigs: string[];
4131
4340
  }>;
4132
- type MCPServerInstance = z.infer<typeof MCPServerInstanceSchema>;
4133
- declare const MCPConfigCreationParamsSchema: z.ZodObject<{
4134
- toolkits: z.ZodArray<z.ZodUnion<[z.ZodObject<{
4135
- toolkit: z.ZodOptional<z.ZodString>;
4136
- authConfigId: z.ZodOptional<z.ZodString>;
4137
- }, "strip", z.ZodTypeAny, {
4341
+ type MCPServerInstance = z$1.infer<typeof MCPServerInstanceSchema>;
4342
+ declare const MCPConfigCreationParamsSchema: z$1.ZodObject<{
4343
+ toolkits: z$1.ZodArray<z$1.ZodUnion<[z$1.ZodObject<{
4344
+ toolkit: z$1.ZodOptional<z$1.ZodString>;
4345
+ authConfigId: z$1.ZodOptional<z$1.ZodString>;
4346
+ }, "strip", z$1.ZodTypeAny, {
4138
4347
  toolkit?: string | undefined;
4139
4348
  authConfigId?: string | undefined;
4140
4349
  }, {
4141
4350
  toolkit?: string | undefined;
4142
4351
  authConfigId?: string | undefined;
4143
- }>, z.ZodString]>, "many">;
4144
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4145
- manuallyManageConnections: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4146
- }, "strip", z.ZodTypeAny, {
4352
+ }>, z$1.ZodString]>, "many">;
4353
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
4354
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
4355
+ }, "strip", z$1.ZodTypeAny, {
4147
4356
  toolkits: (string | {
4148
4357
  toolkit?: string | undefined;
4149
4358
  authConfigId?: string | undefined;
@@ -4158,77 +4367,77 @@ declare const MCPConfigCreationParamsSchema: z.ZodObject<{
4158
4367
  allowedTools?: string[] | undefined;
4159
4368
  manuallyManageConnections?: boolean | undefined;
4160
4369
  }>;
4161
- type MCPConfigCreationParams = z.infer<typeof MCPConfigCreationParamsSchema>;
4162
- declare const MCPConfigResponseSchema: z.ZodObject<{
4370
+ type MCPConfigCreationParams = z$1.infer<typeof MCPConfigCreationParamsSchema>;
4371
+ declare const MCPConfigResponseSchema: z$1.ZodObject<{
4163
4372
  /**
4164
4373
  * Unique identifier for the newly created custom MCP server
4165
4374
  */
4166
- id: z.ZodString;
4375
+ id: z$1.ZodString;
4167
4376
  /**
4168
4377
  * Human-readable name of the custom MCP server
4169
4378
  */
4170
- name: z.ZodString;
4379
+ name: z$1.ZodString;
4171
4380
  /**
4172
4381
  * List of tool identifiers that are enabled for this server
4173
4382
  */
4174
- allowedTools: z.ZodArray<z.ZodString, "many">;
4383
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
4175
4384
  /**
4176
4385
  * ID references to the auth configurations used by this server
4177
4386
  */
4178
- authConfigIds: z.ZodArray<z.ZodString, "many">;
4387
+ authConfigIds: z$1.ZodArray<z$1.ZodString, "many">;
4179
4388
  /**
4180
4389
  * Set of command line instructions for connecting various clients to this MCP server
4181
4390
  */
4182
- commands: z.ZodObject<{
4391
+ commands: z$1.ZodObject<{
4183
4392
  /**
4184
4393
  * Command line instruction for Claude client setup
4185
4394
  */
4186
- claude: z.ZodString;
4395
+ claude: z$1.ZodString;
4187
4396
  /**
4188
4397
  * Command line instruction for Cursor client setup
4189
4398
  */
4190
- cursor: z.ZodString;
4399
+ cursor: z$1.ZodString;
4191
4400
  /**
4192
4401
  * Command line instruction for Windsurf client setup
4193
4402
  */
4194
- windsurf: z.ZodString;
4195
- }, "strip", z.ZodTypeAny, {
4196
- cursor: string;
4403
+ windsurf: z$1.ZodString;
4404
+ }, "strip", z$1.ZodTypeAny, {
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
  /**
4205
4414
  * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP server
4206
4415
  */
4207
- MCPUrl: z.ZodString;
4208
- }, "strip", z.ZodTypeAny, {
4416
+ MCPUrl: z$1.ZodString;
4417
+ }, "strip", z$1.ZodTypeAny, {
4209
4418
  name: string;
4210
4419
  authConfigIds: string[];
4211
- id: string;
4212
4420
  allowedTools: string[];
4421
+ id: 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
  }, {
4220
4429
  name: string;
4221
4430
  authConfigIds: string[];
4222
- id: string;
4223
4431
  allowedTools: string[];
4432
+ id: string;
4224
4433
  commands: {
4225
- cursor: string;
4226
4434
  claude: string;
4435
+ cursor: string;
4227
4436
  windsurf: string;
4228
4437
  };
4229
4438
  MCPUrl: string;
4230
4439
  }>;
4231
- type MCPConfigResponse = z.infer<typeof MCPConfigResponseSchema>;
4440
+ type MCPConfigResponse = z$1.infer<typeof MCPConfigResponseSchema>;
4232
4441
  interface MCPConfigCreateResponse extends MCPConfigResponse {
4233
4442
  /**
4234
4443
  * Creates an instance for a user of the specific MCP Server/COnfig
@@ -4237,21 +4446,21 @@ interface MCPConfigCreateResponse extends MCPConfigResponse {
4237
4446
  */
4238
4447
  generate: (userId: string) => Promise<MCPServerInstance>;
4239
4448
  }
4240
- declare const MCPGetInstanceParamsSchema: z.ZodObject<{
4241
- manuallyManageConnections: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4242
- }, "strip", z.ZodTypeAny, {
4449
+ declare const MCPGetInstanceParamsSchema: z$1.ZodObject<{
4450
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
4451
+ }, "strip", z$1.ZodTypeAny, {
4243
4452
  manuallyManageConnections?: boolean | undefined;
4244
4453
  }, {
4245
4454
  manuallyManageConnections?: boolean | undefined;
4246
4455
  }>;
4247
- type MCPGetInstanceParams = z.infer<typeof MCPGetInstanceParamsSchema>;
4248
- declare const MCPListParamsSchema: z.ZodObject<{
4249
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4250
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4251
- toolkits: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
4252
- authConfigs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
4253
- name: z.ZodOptional<z.ZodString>;
4254
- }, "strip", z.ZodTypeAny, {
4456
+ type MCPGetInstanceParams = z$1.infer<typeof MCPGetInstanceParamsSchema>;
4457
+ declare const MCPListParamsSchema: z$1.ZodObject<{
4458
+ page: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
4459
+ limit: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodNumber>>;
4460
+ toolkits: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>>;
4461
+ authConfigs: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>>;
4462
+ name: z$1.ZodOptional<z$1.ZodString>;
4463
+ }, "strip", z$1.ZodTypeAny, {
4255
4464
  toolkits: string[];
4256
4465
  limit: number;
4257
4466
  page: number;
@@ -4264,66 +4473,66 @@ declare const MCPListParamsSchema: z.ZodObject<{
4264
4473
  page?: number | undefined;
4265
4474
  authConfigs?: string[] | undefined;
4266
4475
  }>;
4267
- type MCPListParams = z.infer<typeof MCPListParamsSchema>;
4268
- declare const MCPItemSchema: z.ZodObject<{
4476
+ type MCPListParams = z$1.infer<typeof MCPListParamsSchema>;
4477
+ declare const MCPItemSchema: z$1.ZodObject<{
4269
4478
  /**
4270
4479
  * Unique identifier for the newly created custom MCP server
4271
4480
  */
4272
- id: z.ZodString;
4481
+ id: z$1.ZodString;
4273
4482
  /**
4274
4483
  * Human-readable name of the custom MCP server
4275
4484
  */
4276
- name: z.ZodString;
4485
+ name: z$1.ZodString;
4277
4486
  /**
4278
4487
  * List of tool identifiers that are enabled for this server
4279
4488
  */
4280
- allowedTools: z.ZodArray<z.ZodString, "many">;
4489
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
4281
4490
  /**
4282
4491
  * ID references to the auth configurations used by this server
4283
4492
  */
4284
- authConfigIds: z.ZodArray<z.ZodString, "many">;
4493
+ authConfigIds: z$1.ZodArray<z$1.ZodString, "many">;
4285
4494
  /**
4286
4495
  * Set of command line instructions for connecting various clients to this MCP server
4287
4496
  */
4288
- commands: z.ZodObject<{
4497
+ commands: z$1.ZodObject<{
4289
4498
  /**
4290
4499
  * Command line instruction for Claude client setup
4291
4500
  */
4292
- claude: z.ZodString;
4501
+ claude: z$1.ZodString;
4293
4502
  /**
4294
4503
  * Command line instruction for Cursor client setup
4295
4504
  */
4296
- cursor: z.ZodString;
4505
+ cursor: z$1.ZodString;
4297
4506
  /**
4298
4507
  * Command line instruction for Windsurf client setup
4299
4508
  */
4300
- windsurf: z.ZodString;
4301
- }, "strip", z.ZodTypeAny, {
4302
- cursor: string;
4509
+ windsurf: z$1.ZodString;
4510
+ }, "strip", z$1.ZodTypeAny, {
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
  /**
4311
4520
  * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP server
4312
4521
  */
4313
- MCPUrl: z.ZodString;
4522
+ MCPUrl: z$1.ZodString;
4314
4523
  } & {
4315
- toolkitIcons: z.ZodRecord<z.ZodString, z.ZodString>;
4316
- serverInstanceCount: z.ZodNumber;
4317
- toolkits: z.ZodArray<z.ZodString, "many">;
4318
- }, "strip", z.ZodTypeAny, {
4524
+ toolkitIcons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
4525
+ serverInstanceCount: z$1.ZodNumber;
4526
+ toolkits: z$1.ZodArray<z$1.ZodString, "many">;
4527
+ }, "strip", z$1.ZodTypeAny, {
4319
4528
  name: string;
4320
4529
  toolkits: string[];
4321
4530
  authConfigIds: string[];
4322
- id: string;
4323
4531
  allowedTools: string[];
4532
+ id: string;
4324
4533
  commands: {
4325
- cursor: string;
4326
4534
  claude: string;
4535
+ cursor: string;
4327
4536
  windsurf: string;
4328
4537
  };
4329
4538
  MCPUrl: string;
@@ -4333,78 +4542,78 @@ declare const MCPItemSchema: z.ZodObject<{
4333
4542
  name: string;
4334
4543
  toolkits: string[];
4335
4544
  authConfigIds: string[];
4336
- id: string;
4337
4545
  allowedTools: string[];
4546
+ id: string;
4338
4547
  commands: {
4339
- cursor: string;
4340
4548
  claude: string;
4549
+ cursor: string;
4341
4550
  windsurf: string;
4342
4551
  };
4343
4552
  MCPUrl: string;
4344
4553
  toolkitIcons: Record<string, string>;
4345
4554
  serverInstanceCount: number;
4346
4555
  }>;
4347
- type MCPItem = z.infer<typeof MCPItemSchema>;
4348
- declare const MCPListResponseSchema: z.ZodObject<{
4349
- items: z.ZodArray<z.ZodObject<{
4556
+ type MCPItem = z$1.infer<typeof MCPItemSchema>;
4557
+ declare const MCPListResponseSchema: z$1.ZodObject<{
4558
+ items: z$1.ZodArray<z$1.ZodObject<{
4350
4559
  /**
4351
4560
  * Unique identifier for the newly created custom MCP server
4352
4561
  */
4353
- id: z.ZodString;
4562
+ id: z$1.ZodString;
4354
4563
  /**
4355
4564
  * Human-readable name of the custom MCP server
4356
4565
  */
4357
- name: z.ZodString;
4566
+ name: z$1.ZodString;
4358
4567
  /**
4359
4568
  * List of tool identifiers that are enabled for this server
4360
4569
  */
4361
- allowedTools: z.ZodArray<z.ZodString, "many">;
4570
+ allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
4362
4571
  /**
4363
4572
  * ID references to the auth configurations used by this server
4364
4573
  */
4365
- authConfigIds: z.ZodArray<z.ZodString, "many">;
4574
+ authConfigIds: z$1.ZodArray<z$1.ZodString, "many">;
4366
4575
  /**
4367
4576
  * Set of command line instructions for connecting various clients to this MCP server
4368
4577
  */
4369
- commands: z.ZodObject<{
4578
+ commands: z$1.ZodObject<{
4370
4579
  /**
4371
4580
  * Command line instruction for Claude client setup
4372
4581
  */
4373
- claude: z.ZodString;
4582
+ claude: z$1.ZodString;
4374
4583
  /**
4375
4584
  * Command line instruction for Cursor client setup
4376
4585
  */
4377
- cursor: z.ZodString;
4586
+ cursor: z$1.ZodString;
4378
4587
  /**
4379
4588
  * Command line instruction for Windsurf client setup
4380
4589
  */
4381
- windsurf: z.ZodString;
4382
- }, "strip", z.ZodTypeAny, {
4383
- cursor: string;
4590
+ windsurf: z$1.ZodString;
4591
+ }, "strip", z$1.ZodTypeAny, {
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
  /**
4392
4601
  * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP server
4393
4602
  */
4394
- MCPUrl: z.ZodString;
4603
+ MCPUrl: z$1.ZodString;
4395
4604
  } & {
4396
- toolkitIcons: z.ZodRecord<z.ZodString, z.ZodString>;
4397
- serverInstanceCount: z.ZodNumber;
4398
- toolkits: z.ZodArray<z.ZodString, "many">;
4399
- }, "strip", z.ZodTypeAny, {
4605
+ toolkitIcons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
4606
+ serverInstanceCount: z$1.ZodNumber;
4607
+ toolkits: z$1.ZodArray<z$1.ZodString, "many">;
4608
+ }, "strip", z$1.ZodTypeAny, {
4400
4609
  name: string;
4401
4610
  toolkits: string[];
4402
4611
  authConfigIds: string[];
4403
- id: string;
4404
4612
  allowedTools: string[];
4613
+ id: string;
4405
4614
  commands: {
4406
- cursor: string;
4407
4615
  claude: string;
4616
+ cursor: string;
4408
4617
  windsurf: string;
4409
4618
  };
4410
4619
  MCPUrl: string;
@@ -4414,29 +4623,29 @@ declare const MCPListResponseSchema: z.ZodObject<{
4414
4623
  name: string;
4415
4624
  toolkits: string[];
4416
4625
  authConfigIds: string[];
4417
- id: string;
4418
4626
  allowedTools: string[];
4627
+ id: string;
4419
4628
  commands: {
4420
- cursor: string;
4421
4629
  claude: string;
4630
+ cursor: string;
4422
4631
  windsurf: string;
4423
4632
  };
4424
4633
  MCPUrl: string;
4425
4634
  toolkitIcons: Record<string, string>;
4426
4635
  serverInstanceCount: number;
4427
4636
  }>, "many">;
4428
- currentPage: z.ZodNumber;
4429
- totalPages: z.ZodNumber;
4430
- }, "strip", z.ZodTypeAny, {
4637
+ currentPage: z$1.ZodNumber;
4638
+ totalPages: z$1.ZodNumber;
4639
+ }, "strip", z$1.ZodTypeAny, {
4431
4640
  items: {
4432
4641
  name: string;
4433
4642
  toolkits: string[];
4434
4643
  authConfigIds: string[];
4435
- id: string;
4436
4644
  allowedTools: string[];
4645
+ id: string;
4437
4646
  commands: {
4438
- cursor: string;
4439
4647
  claude: string;
4648
+ cursor: string;
4440
4649
  windsurf: string;
4441
4650
  };
4442
4651
  MCPUrl: string;
@@ -4450,11 +4659,11 @@ declare const MCPListResponseSchema: z.ZodObject<{
4450
4659
  name: string;
4451
4660
  toolkits: string[];
4452
4661
  authConfigIds: string[];
4453
- id: string;
4454
4662
  allowedTools: string[];
4663
+ id: string;
4455
4664
  commands: {
4456
- cursor: string;
4457
4665
  claude: string;
4666
+ cursor: string;
4458
4667
  windsurf: string;
4459
4668
  };
4460
4669
  MCPUrl: string;
@@ -4464,22 +4673,22 @@ declare const MCPListResponseSchema: z.ZodObject<{
4464
4673
  totalPages: number;
4465
4674
  currentPage: number;
4466
4675
  }>;
4467
- type MCPListResponse = z.infer<typeof MCPListResponseSchema>;
4468
- declare const MCPUpdateParamsSchema: z.ZodObject<{
4469
- name: z.ZodOptional<z.ZodString>;
4470
- toolkits: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
4471
- toolkit: z.ZodOptional<z.ZodString>;
4472
- authConfigId: z.ZodOptional<z.ZodString>;
4473
- }, "strip", z.ZodTypeAny, {
4676
+ type MCPListResponse = z$1.infer<typeof MCPListResponseSchema>;
4677
+ declare const MCPUpdateParamsSchema: z$1.ZodObject<{
4678
+ name: z$1.ZodOptional<z$1.ZodString>;
4679
+ toolkits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUnion<[z$1.ZodObject<{
4680
+ toolkit: z$1.ZodOptional<z$1.ZodString>;
4681
+ authConfigId: z$1.ZodOptional<z$1.ZodString>;
4682
+ }, "strip", z$1.ZodTypeAny, {
4474
4683
  toolkit?: string | undefined;
4475
4684
  authConfigId?: string | undefined;
4476
4685
  }, {
4477
4686
  toolkit?: string | undefined;
4478
4687
  authConfigId?: string | undefined;
4479
- }>, z.ZodString]>, "many">>;
4480
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4481
- manuallyManageConnections: z.ZodOptional<z.ZodBoolean>;
4482
- }, "strip", z.ZodTypeAny, {
4688
+ }>, z$1.ZodString]>, "many">>;
4689
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
4690
+ manuallyManageConnections: z$1.ZodOptional<z$1.ZodBoolean>;
4691
+ }, "strip", z$1.ZodTypeAny, {
4483
4692
  name?: string | undefined;
4484
4693
  toolkits?: (string | {
4485
4694
  toolkit?: string | undefined;
@@ -4496,13 +4705,19 @@ declare const MCPUpdateParamsSchema: z.ZodObject<{
4496
4705
  allowedTools?: string[] | undefined;
4497
4706
  manuallyManageConnections?: boolean | undefined;
4498
4707
  }>;
4499
- type MCPUpdateParams = z.infer<typeof MCPUpdateParamsSchema>;
4708
+ type MCPUpdateParams = z$1.infer<typeof MCPUpdateParamsSchema>;
4500
4709
  //#endregion
4501
4710
  //#region src/models/MCP.d.ts
4502
4711
  /**
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 };