@composio/core 0.14.0 → 0.15.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 (52) hide show
  1. package/dist/{BaseProvider-lCxnjFKQ.d.mts → BaseProvider-BN2-Nktx.d.mts} +224 -180
  2. package/dist/{CustomTool-C_5NvBsX.mjs → CustomTool-l-j5HtEf.mjs} +1 -1
  3. package/dist/{CustomTool-CmokRT9q.d.mts → CustomTool-zjeDpZ91.d.mts} +1 -2
  4. package/dist/FileModifierErrors-B8V8_3VE.mjs +97 -0
  5. package/dist/{SsrfErrors-BQRozkeU.mjs → SsrfErrors-DNJt57GL.mjs} +5 -98
  6. package/dist/{Telemetry-llfvticE.mjs → Telemetry-DuGJSwUt.mjs} +3 -3
  7. package/dist/{cancellation-W65QRyj2.mjs → cancellation-BbJ-UQ__.mjs} +2 -2
  8. package/dist/{composio-6C8kHtqc.d.mts → composio-Bf8hnBBq.d.mts} +24 -21
  9. package/dist/{customTool.types-kFhNYuzh.d.mts → customTool.types-Bhom9a2R.d.mts} +73 -40
  10. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +2 -0
  11. package/dist/{errors-B165yJUQ.mjs → errors-BcEUHZbq.mjs} +2 -1
  12. package/dist/experimental/index.d.mts +2 -2
  13. package/dist/experimental/index.mjs +1 -1
  14. package/dist/{fileUtils.node-iPFi2o4i.mjs → fileUtils.node-BQ0fWge3.mjs} +9 -154
  15. package/dist/index.d.mts +1585 -752
  16. package/dist/index.mjs +39 -20
  17. package/dist/models/Files.node.d.mts +2 -11
  18. package/dist/models/Files.node.mjs +2 -2
  19. package/dist/models/Files.workerd.d.mts +0 -1
  20. package/dist/platform/node.d.mts +1 -2
  21. package/dist/platform/node.mjs +24 -0
  22. package/dist/platform/workerd.d.mts +1 -2
  23. package/dist/platform/workerd.mjs +30 -3
  24. package/dist/{sensitiveFileUploadPaths-B1OLsd8F.mjs → sensitiveFileUploadPaths-BVEt0peg.mjs} +64 -9
  25. package/dist/{types-yCrveqAj.d.mts → types-CePuCfD-.d.mts} +2 -3
  26. package/dist/{types-DY1r-kN9.d.mts → types-D5A2wzBl.d.mts} +8 -0
  27. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -2
  28. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -2
  29. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -2
  30. package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -4
  31. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -2
  32. package/dist/utils/ssrfGuard.node.d.mts +22 -0
  33. package/dist/utils/ssrfGuard.node.mjs +153 -0
  34. package/dist/utils/ssrfGuard.workerd.d.mts +9 -0
  35. package/dist/utils/ssrfGuard.workerd.mjs +17 -0
  36. package/package.json +17 -11
  37. package/src/errors/SsrfErrors.ts +4 -3
  38. package/src/models/ToolRouterSessionFileMount.ts +10 -3
  39. package/src/platform/node.ts +40 -0
  40. package/src/platform/types.ts +9 -0
  41. package/src/platform/workerd.ts +35 -3
  42. package/src/telemetry/redact.ts +6 -1
  43. package/src/types/tool.types.ts +52 -8
  44. package/src/utils/fileUtils.node.ts +5 -2
  45. package/src/utils/modifiers/FileToolModifier.node.ts +3 -3
  46. package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +6 -4
  47. package/src/utils/readResponseBody.ts +63 -0
  48. package/src/utils/sdk.ts +2 -2
  49. package/src/utils/sensitiveFileUploadPaths.ts +12 -9
  50. package/src/utils/ssrfGuard.node.ts +12 -8
  51. package/src/utils/ssrfGuard.workerd.ts +19 -0
  52. package/src/utils/version.ts +21 -20
@@ -0,0 +1,97 @@
1
+ import { r as ComposioError } from "./SsrfErrors-DNJt57GL.mjs";
2
+
3
+ //#region src/errors/FileModifierErrors.ts
4
+ const FileModifierErrorCodes = {
5
+ FILE_UPLOAD_FAILED: "FILE_UPLOAD_FAILED",
6
+ SENSITIVE_FILE_PATH_BLOCKED: "SENSITIVE_FILE_PATH_BLOCKED",
7
+ FILE_UPLOAD_ABORTED: "FILE_UPLOAD_ABORTED",
8
+ FILE_UPLOAD_PATH_NOT_ALLOWED: "FILE_UPLOAD_PATH_NOT_ALLOWED",
9
+ FILE_NOT_FOUND: "FILE_NOT_FOUND"
10
+ };
11
+ var ComposioFileUploadError = class extends ComposioError {
12
+ constructor(message = "Failed to upload file", options = {}) {
13
+ super(message, {
14
+ ...options,
15
+ code: options.code ?? FileModifierErrorCodes.FILE_UPLOAD_FAILED,
16
+ possibleFixes: options.possibleFixes || ["Check if the file exists in the location provided"]
17
+ });
18
+ this.name = "ComposioFileUploadError";
19
+ }
20
+ };
21
+ /**
22
+ * Thrown when a local file path is refused before upload (sensitive directory or
23
+ * credential-like file name). Subclass of {@link ComposioFileUploadError} so existing
24
+ * `instanceof ComposioFileUploadError` handlers still apply.
25
+ */
26
+ var ComposioSensitiveFilePathBlockedError = class extends ComposioFileUploadError {
27
+ constructor(message, options = {}) {
28
+ super(message, {
29
+ ...options,
30
+ code: FileModifierErrorCodes.SENSITIVE_FILE_PATH_BLOCKED,
31
+ possibleFixes: options.possibleFixes ?? [
32
+ "Use a file outside ~/.ssh, ~/.aws, and other credential locations",
33
+ "Set sensitiveFileUploadProtection: false only if you understand the risk",
34
+ "Add path segments to block with fileUploadPathDenySegments"
35
+ ]
36
+ });
37
+ this.name = "ComposioSensitiveFilePathBlockedError";
38
+ }
39
+ };
40
+ /**
41
+ * Thrown when a `beforeFileUpload` hook returns `false`.
42
+ */
43
+ var ComposioFileUploadAbortedError = class extends ComposioFileUploadError {
44
+ constructor(message, options = {}) {
45
+ super(message, {
46
+ ...options,
47
+ code: FileModifierErrorCodes.FILE_UPLOAD_ABORTED,
48
+ possibleFixes: options.possibleFixes ?? ["Change beforeFileUpload to return a file path to upload, or allow the upload to proceed"]
49
+ });
50
+ this.name = "ComposioFileUploadAbortedError";
51
+ }
52
+ };
53
+ /**
54
+ * Thrown when automatic file upload during tool execution is attempted from a path
55
+ * that is outside the configured {@link ComposioConfig.fileUploadDirs} allowlist.
56
+ *
57
+ * This only fires for auto-upload (enabled via
58
+ * `dangerouslyAllowAutoUploadDownloadFiles: true`). Manual `composio.files.upload()`
59
+ * calls are never subject to this check.
60
+ */
61
+ var ComposioFileUploadPathNotAllowedError = class extends ComposioFileUploadError {
62
+ constructor(message, options = {}) {
63
+ super(message, {
64
+ ...options,
65
+ code: FileModifierErrorCodes.FILE_UPLOAD_PATH_NOT_ALLOWED,
66
+ possibleFixes: options.possibleFixes ?? [
67
+ "Move the file under one of the directories in `fileUploadDirs`",
68
+ "Stage the file under the default upload dir (`~/.composio/temp`)",
69
+ "Add the containing directory to `fileUploadDirs` when constructing Composio",
70
+ "Pass the file by URL or as a File/Blob object instead of a filesystem path"
71
+ ]
72
+ });
73
+ this.name = "ComposioFileUploadPathNotAllowedError";
74
+ }
75
+ };
76
+ /**
77
+ * Thrown when a local file path passed for upload does not exist on disk.
78
+ * Provides extra debugging context (resolved absolute path, cwd, allowlist state)
79
+ * to help the caller distinguish between "typo" and "not-allowlisted" failures.
80
+ */
81
+ var ComposioFileNotFoundError = class extends ComposioFileUploadError {
82
+ constructor(message, options = {}) {
83
+ super(message, {
84
+ ...options,
85
+ code: FileModifierErrorCodes.FILE_NOT_FOUND,
86
+ possibleFixes: options.possibleFixes ?? [
87
+ "Double-check the path for typos",
88
+ "Remember relative paths are resolved against process.cwd() at upload time",
89
+ "Verify the file exists and the process has read permission"
90
+ ]
91
+ });
92
+ this.name = "ComposioFileNotFoundError";
93
+ }
94
+ };
95
+
96
+ //#endregion
97
+ export { ComposioSensitiveFilePathBlockedError as a, ComposioFileUploadPathNotAllowedError as i, ComposioFileUploadAbortedError as n, FileModifierErrorCodes as o, ComposioFileUploadError as r, ComposioFileNotFoundError as t };
@@ -347,109 +347,16 @@ var ComposioError$1 = class ComposioError$1 extends Error {
347
347
  }
348
348
  };
349
349
 
350
- //#endregion
351
- //#region src/errors/FileModifierErrors.ts
352
- const FileModifierErrorCodes = {
353
- FILE_UPLOAD_FAILED: "FILE_UPLOAD_FAILED",
354
- SENSITIVE_FILE_PATH_BLOCKED: "SENSITIVE_FILE_PATH_BLOCKED",
355
- FILE_UPLOAD_ABORTED: "FILE_UPLOAD_ABORTED",
356
- FILE_UPLOAD_PATH_NOT_ALLOWED: "FILE_UPLOAD_PATH_NOT_ALLOWED",
357
- FILE_NOT_FOUND: "FILE_NOT_FOUND"
358
- };
359
- var ComposioFileUploadError = class extends ComposioError$1 {
360
- constructor(message = "Failed to upload file", options = {}) {
361
- super(message, {
362
- ...options,
363
- code: options.code ?? FileModifierErrorCodes.FILE_UPLOAD_FAILED,
364
- possibleFixes: options.possibleFixes || ["Check if the file exists in the location provided"]
365
- });
366
- this.name = "ComposioFileUploadError";
367
- }
368
- };
369
- /**
370
- * Thrown when a local file path is refused before upload (sensitive directory or
371
- * credential-like file name). Subclass of {@link ComposioFileUploadError} so existing
372
- * `instanceof ComposioFileUploadError` handlers still apply.
373
- */
374
- var ComposioSensitiveFilePathBlockedError = class extends ComposioFileUploadError {
375
- constructor(message, options = {}) {
376
- super(message, {
377
- ...options,
378
- code: FileModifierErrorCodes.SENSITIVE_FILE_PATH_BLOCKED,
379
- possibleFixes: options.possibleFixes ?? [
380
- "Use a file outside ~/.ssh, ~/.aws, and other credential locations",
381
- "Set sensitiveFileUploadProtection: false only if you understand the risk",
382
- "Add path segments to block with fileUploadPathDenySegments"
383
- ]
384
- });
385
- this.name = "ComposioSensitiveFilePathBlockedError";
386
- }
387
- };
388
- /**
389
- * Thrown when a `beforeFileUpload` hook returns `false`.
390
- */
391
- var ComposioFileUploadAbortedError = class extends ComposioFileUploadError {
392
- constructor(message, options = {}) {
393
- super(message, {
394
- ...options,
395
- code: FileModifierErrorCodes.FILE_UPLOAD_ABORTED,
396
- possibleFixes: options.possibleFixes ?? ["Change beforeFileUpload to return a file path to upload, or allow the upload to proceed"]
397
- });
398
- this.name = "ComposioFileUploadAbortedError";
399
- }
400
- };
401
- /**
402
- * Thrown when automatic file upload during tool execution is attempted from a path
403
- * that is outside the configured {@link ComposioConfig.fileUploadDirs} allowlist.
404
- *
405
- * This only fires for auto-upload (enabled via
406
- * `dangerouslyAllowAutoUploadDownloadFiles: true`). Manual `composio.files.upload()`
407
- * calls are never subject to this check.
408
- */
409
- var ComposioFileUploadPathNotAllowedError = class extends ComposioFileUploadError {
410
- constructor(message, options = {}) {
411
- super(message, {
412
- ...options,
413
- code: FileModifierErrorCodes.FILE_UPLOAD_PATH_NOT_ALLOWED,
414
- possibleFixes: options.possibleFixes ?? [
415
- "Move the file under one of the directories in `fileUploadDirs`",
416
- "Stage the file under the default upload dir (`~/.composio/temp`)",
417
- "Add the containing directory to `fileUploadDirs` when constructing Composio",
418
- "Pass the file by URL or as a File/Blob object instead of a filesystem path"
419
- ]
420
- });
421
- this.name = "ComposioFileUploadPathNotAllowedError";
422
- }
423
- };
424
- /**
425
- * Thrown when a local file path passed for upload does not exist on disk.
426
- * Provides extra debugging context (resolved absolute path, cwd, allowlist state)
427
- * to help the caller distinguish between "typo" and "not-allowlisted" failures.
428
- */
429
- var ComposioFileNotFoundError = class extends ComposioFileUploadError {
430
- constructor(message, options = {}) {
431
- super(message, {
432
- ...options,
433
- code: FileModifierErrorCodes.FILE_NOT_FOUND,
434
- possibleFixes: options.possibleFixes ?? [
435
- "Double-check the path for typos",
436
- "Remember relative paths are resolved against process.cwd() at upload time",
437
- "Verify the file exists and the process has read permission"
438
- ]
439
- });
440
- this.name = "ComposioFileNotFoundError";
441
- }
442
- };
443
-
444
350
  //#endregion
445
351
  //#region src/errors/SsrfErrors.ts
446
352
  const SsrfErrorCodes = { BLOCKED_INTERNAL_URL: "BLOCKED_INTERNAL_URL" };
447
353
  /**
448
354
  * Thrown when a URL file input resolves to a private, loopback, link-local, or
449
355
  * otherwise internal address, or points at a non-http(s) scheme. Guards against
450
- * turning `composio.files.upload(url)` (and automatic upload during tool
451
- * execution) into a server-side request forgery (SSRF) probe of internal
452
- * infrastructure such as cloud metadata endpoints (`169.254.169.254`).
356
+ * turning URL-based file uploads (including Tool Router session files and
357
+ * automatic upload during tool execution) into a server-side request forgery
358
+ * (SSRF) probe of internal infrastructure such as cloud metadata endpoints
359
+ * (`169.254.169.254`).
453
360
  */
454
361
  var ComposioBlockedInternalUrlError = class extends ComposioError$1 {
455
362
  constructor(message = "Refusing to fetch an internal or non-public URL", options = {}) {
@@ -474,4 +381,4 @@ var ComposioBlockedInternalUrlError = class extends ComposioError$1 {
474
381
  };
475
382
 
476
383
  //#endregion
477
- export { USER_DATA_FILE_NAME as _, ComposioFileUploadError as a, getEnvsWithPrefix as b, FileModifierErrorCodes as c, COMPOSIO_DIR as d, COMPOSIO_LOG_LEVEL as f, TEMP_FILES_DIRECTORY_NAME as g, IS_DEVELOPMENT_OR_CI as h, ComposioFileUploadAbortedError as i, ComposioError$1 as l, DEFAULT_TOOL_ROUTER_SESSION_FILES_MOUNT_ID as m, SsrfErrorCodes as n, ComposioFileUploadPathNotAllowedError as o, DEFAULT_BASE_URL as p, ComposioFileNotFoundError as r, ComposioSensitiveFilePathBlockedError as s, ComposioBlockedInternalUrlError as t, logger as u, constants_exports as v, getEnvVariable as y };
384
+ export { COMPOSIO_DIR as a, DEFAULT_TOOL_ROUTER_SESSION_FILES_MOUNT_ID as c, USER_DATA_FILE_NAME as d, constants_exports as f, logger as i, IS_DEVELOPMENT_OR_CI as l, getEnvsWithPrefix as m, SsrfErrorCodes as n, COMPOSIO_LOG_LEVEL as o, getEnvVariable as p, ComposioError$1 as r, DEFAULT_BASE_URL as s, ComposioBlockedInternalUrlError as t, TEMP_FILES_DIRECTORY_NAME as u };
@@ -1,5 +1,5 @@
1
- import { l as ComposioError$1, u as logger, y as getEnvVariable } from "./SsrfErrors-BQRozkeU.mjs";
2
- import { c as getRandomUUID } from "./sensitiveFileUploadPaths-B1OLsd8F.mjs";
1
+ import { i as logger, p as getEnvVariable, r as ComposioError$1 } from "./SsrfErrors-DNJt57GL.mjs";
2
+ import { l as getRandomUUID } from "./sensitiveFileUploadPaths-BVEt0peg.mjs";
3
3
  import { ComposioError } from "@composio/client";
4
4
 
5
5
  //#region src/types/telemetry.types.ts
@@ -118,7 +118,7 @@ const REDACTED = "[REDACTED]";
118
118
  const REDACTION_RULES = [
119
119
  [/(\bhttps?:\/\/[^\s?#'"]+)\?[^\s'"]*/gi, `$1?${REDACTED}`],
120
120
  [/\b(bearer|basic)\s+[A-Za-z0-9._~+/=-]+/gi, `$1 ${REDACTED}`],
121
- [/\b(authorization|api[-_]?key|apikey|x-api-key|access[-_]?token|refresh[-_]?token|client[-_]?secret|secret|password|passwd|pwd)\b(\s*[:=]+\s*)(["']?)([^\s"',}&]+)\3/gi, `$1$2$3${REDACTED}$3`]
121
+ [/(?<![A-Za-z0-9])(authorization|api[-_]?key|apikey|x-api-key|access[-_]?token|refresh[-_]?token|client[-_]?secret|secret|password|passwd|pwd)\b(["']?\s*[:=]+\s*)(["']?)([^\s"',}&]+)\3/gi, `$1$2$3${REDACTED}$3`]
122
122
  ];
123
123
  /**
124
124
  * Redact common secret shapes from a free-form string. Returns the input
@@ -1,5 +1,5 @@
1
- import { u as logger } from "./SsrfErrors-BQRozkeU.mjs";
2
- import { f as ComposioRequestCancelledError, g as JsonSchemaToZodError, h as JsonSchemaRefResolutionError, m as isRequestAbortError } from "./errors-B165yJUQ.mjs";
1
+ import { i as logger } from "./SsrfErrors-DNJt57GL.mjs";
2
+ import { f as ComposioRequestCancelledError, g as JsonSchemaToZodError, h as JsonSchemaRefResolutionError, m as isRequestAbortError } from "./errors-BcEUHZbq.mjs";
3
3
  import { t as isPlainObject } from "./FileToolModifier.utils.neutral-B5rT711M.mjs";
4
4
  import { jsonSchemaToZod } from "@composio/json-schema-to-zod";
5
5
 
@@ -1,5 +1,5 @@
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-lCxnjFKQ.mjs";
2
- import { D as Session, Dn as UpdateConnectedAccountAclParams, Ht as ConnectionRequest, M as SessionWithoutMcp, Vt as ComposioRequestOptions, an as ConnectedAccountRefreshOptions, bn as CreateConnectedAccountOptions, en as ConnectedAccountListParams, f as CustomToolkit, gn as CreateConnectedAccountLinkOptions, kn as UpdateConnectedAccountParams, nn as ConnectedAccountListResponse, o as CustomTool, q as ToolRouterSessionDeleteResponse, sn as ConnectedAccountRetrieveResponse, z as ToolRouterCreateSessionConfig } from "./customTool.types-kFhNYuzh.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-BN2-Nktx.mjs";
2
+ import { D as Session, Dn as UpdateConnectedAccountAclParams, Ht as ConnectionRequest, M as SessionWithoutMcp, Vt as ComposioRequestOptions, an as ConnectedAccountRefreshOptions, bn as CreateConnectedAccountOptions, en as ConnectedAccountListParams, f as CustomToolkit, gn as CreateConnectedAccountLinkOptions, kn as UpdateConnectedAccountParams, nn as ConnectedAccountListResponse, o as CustomTool, q as ToolRouterSessionDeleteResponse, sn as ConnectedAccountRetrieveResponse, z as ToolRouterCreateSessionConfig } from "./customTool.types-Bhom9a2R.mjs";
3
3
  import ComposioClient, { Composio } from "@composio/client";
4
4
  import z, { z as z$1 } from "zod/v3";
5
5
  import { OpenAI } from "openai";
@@ -10,7 +10,6 @@ import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrie
10
10
  import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
11
11
  import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
12
12
  import { Stream } from "openai/streaming";
13
-
14
13
  //#region src/models/Tools.d.ts
15
14
  type ToolRouterSessionExecuteOptions = {
16
15
  experimental?: SessionExecuteParams.Experimental;
@@ -2026,13 +2025,13 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2026
2025
  noOfConnections: number;
2027
2026
  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;
2028
2027
  createdAt?: string | undefined;
2028
+ isComposioManaged?: boolean | undefined;
2029
2029
  credentials?: Record<string, unknown> | undefined;
2030
2030
  toolAccessConfig?: {
2031
2031
  toolsForConnectedAccountCreation?: string[] | undefined;
2032
2032
  toolsAvailableForExecution?: string[] | undefined;
2033
2033
  } | undefined;
2034
2034
  isEnabledForToolRouter?: boolean | undefined;
2035
- isComposioManaged?: boolean | undefined;
2036
2035
  expectedInputFields?: unknown[] | undefined;
2037
2036
  restrictToFollowingTools?: string[] | undefined;
2038
2037
  createdBy?: string | undefined;
@@ -2048,13 +2047,13 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
2048
2047
  noOfConnections: number;
2049
2048
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2050
2049
  createdAt?: string | undefined;
2050
+ isComposioManaged?: boolean | undefined;
2051
2051
  credentials?: Record<string, unknown> | undefined;
2052
2052
  toolAccessConfig?: {
2053
2053
  toolsForConnectedAccountCreation?: string[] | undefined;
2054
2054
  toolsAvailableForExecution?: string[] | undefined;
2055
2055
  } | undefined;
2056
2056
  isEnabledForToolRouter?: boolean | undefined;
2057
- isComposioManaged?: boolean | undefined;
2058
2057
  expectedInputFields?: unknown[] | undefined;
2059
2058
  restrictToFollowingTools?: string[] | undefined;
2060
2059
  createdBy?: string | undefined;
@@ -2133,13 +2132,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2133
2132
  noOfConnections: number;
2134
2133
  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;
2135
2134
  createdAt?: string | undefined;
2135
+ isComposioManaged?: boolean | undefined;
2136
2136
  credentials?: Record<string, unknown> | undefined;
2137
2137
  toolAccessConfig?: {
2138
2138
  toolsForConnectedAccountCreation?: string[] | undefined;
2139
2139
  toolsAvailableForExecution?: string[] | undefined;
2140
2140
  } | undefined;
2141
2141
  isEnabledForToolRouter?: boolean | undefined;
2142
- isComposioManaged?: boolean | undefined;
2143
2142
  expectedInputFields?: unknown[] | undefined;
2144
2143
  restrictToFollowingTools?: string[] | undefined;
2145
2144
  createdBy?: string | undefined;
@@ -2155,13 +2154,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2155
2154
  noOfConnections: number;
2156
2155
  authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
2157
2156
  createdAt?: string | undefined;
2157
+ isComposioManaged?: boolean | undefined;
2158
2158
  credentials?: Record<string, unknown> | undefined;
2159
2159
  toolAccessConfig?: {
2160
2160
  toolsForConnectedAccountCreation?: string[] | undefined;
2161
2161
  toolsAvailableForExecution?: string[] | undefined;
2162
2162
  } | undefined;
2163
2163
  isEnabledForToolRouter?: boolean | undefined;
2164
- isComposioManaged?: boolean | undefined;
2165
2164
  expectedInputFields?: unknown[] | undefined;
2166
2165
  restrictToFollowingTools?: string[] | undefined;
2167
2166
  createdBy?: string | undefined;
@@ -2181,13 +2180,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2181
2180
  noOfConnections: number;
2182
2181
  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;
2183
2182
  createdAt?: string | undefined;
2183
+ isComposioManaged?: boolean | undefined;
2184
2184
  credentials?: Record<string, unknown> | undefined;
2185
2185
  toolAccessConfig?: {
2186
2186
  toolsForConnectedAccountCreation?: string[] | undefined;
2187
2187
  toolsAvailableForExecution?: string[] | undefined;
2188
2188
  } | undefined;
2189
2189
  isEnabledForToolRouter?: boolean | undefined;
2190
- isComposioManaged?: boolean | undefined;
2191
2190
  expectedInputFields?: unknown[] | undefined;
2192
2191
  restrictToFollowingTools?: string[] | undefined;
2193
2192
  createdBy?: string | undefined;
@@ -2207,13 +2206,13 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
2207
2206
  noOfConnections: number;
2208
2207
  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;
2209
2208
  createdAt?: string | undefined;
2209
+ isComposioManaged?: boolean | undefined;
2210
2210
  credentials?: Record<string, unknown> | undefined;
2211
2211
  toolAccessConfig?: {
2212
2212
  toolsForConnectedAccountCreation?: string[] | undefined;
2213
2213
  toolsAvailableForExecution?: string[] | undefined;
2214
2214
  } | undefined;
2215
2215
  isEnabledForToolRouter?: boolean | undefined;
2216
- isComposioManaged?: boolean | undefined;
2217
2216
  expectedInputFields?: unknown[] | undefined;
2218
2217
  restrictToFollowingTools?: string[] | undefined;
2219
2218
  createdBy?: string | undefined;
@@ -2485,9 +2484,7 @@ declare class Toolkits {
2485
2484
  * @param options.requiredOnly - Whether to only return the required fields
2486
2485
  * @returns {Promise<ToolkitAuthFieldsResponse>} The fields required for creating an auth config
2487
2486
  */
2488
- getAuthConfigCreationFields(toolkitSlug: string, authScheme: AuthSchemeType, {
2489
- requiredOnly
2490
- }?: {
2487
+ getAuthConfigCreationFields(toolkitSlug: string, authScheme: AuthSchemeType, { requiredOnly }?: {
2491
2488
  requiredOnly?: boolean;
2492
2489
  }): Promise<ToolkitAuthFieldsResponse>;
2493
2490
  /**
@@ -2497,9 +2494,7 @@ declare class Toolkits {
2497
2494
  * @param options.requiredOnly - Whether to only return the required fields
2498
2495
  * @returns {Promise<ToolkitAuthFieldsResponse>} The fields required for initiating a connected account
2499
2496
  */
2500
- getConnectedAccountInitiationFields(toolkitSlug: string, authScheme: AuthSchemeType, {
2501
- requiredOnly
2502
- }?: {
2497
+ getConnectedAccountInitiationFields(toolkitSlug: string, authScheme: AuthSchemeType, { requiredOnly }?: {
2503
2498
  requiredOnly?: boolean;
2504
2499
  }): Promise<ToolkitAuthFieldsResponse>;
2505
2500
  /**
@@ -3295,8 +3290,11 @@ declare const WebhookVersions: {
3295
3290
  type WebhookVersion = (typeof WebhookVersions)[keyof typeof WebhookVersions];
3296
3291
  declare const DefaultWebhookSubscriptionEvents: readonly ["composio.trigger.message"];
3297
3292
  declare const SetWebhookSubscriptionParamsSchema: z$1.ZodObject<{
3298
- /** HTTPS URL to receive webhook events. */webhookUrl: z$1.ZodString; /** Event types to subscribe to. Defaults to trigger messages. */
3299
- enabledEvents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>; /** Webhook payload version. Defaults to V3. */
3293
+ /** HTTPS URL to receive webhook events. */
3294
+ webhookUrl: z$1.ZodString;
3295
+ /** Event types to subscribe to. Defaults to trigger messages. */
3296
+ enabledEvents: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
3297
+ /** Webhook payload version. Defaults to V3. */
3300
3298
  version: z$1.ZodOptional<z$1.ZodEnum<["V1", "V2", "V3"]>>;
3301
3299
  }, "strip", z$1.ZodTypeAny, {
3302
3300
  webhookUrl: string;
@@ -3325,8 +3323,10 @@ declare const VerifyWebhookParamsSchema: z$1.ZodObject<{
3325
3323
  * The webhook message ID from the 'webhook-id' header.
3326
3324
  * Format: 'msg_xxx'
3327
3325
  */
3328
- id: z$1.ZodString; /** The raw webhook payload as a string (request body) */
3329
- payload: z$1.ZodString; /** The webhook secret used to sign the payload (from Composio dashboard) */
3326
+ id: z$1.ZodString;
3327
+ /** The raw webhook payload as a string (request body) */
3328
+ payload: z$1.ZodString;
3329
+ /** The webhook secret used to sign the payload (from Composio dashboard) */
3330
3330
  secret: z$1.ZodString;
3331
3331
  /**
3332
3332
  * The signature from the 'webhook-signature' header.
@@ -3397,8 +3397,11 @@ type ParseWebhookOptions = {
3397
3397
  * Contains the parsed payload along with version information.
3398
3398
  */
3399
3399
  type VerifyWebhookResult = {
3400
- /** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */version: WebhookVersion; /** The parsed and normalized webhook payload */
3401
- payload: IncomingTriggerPayload; /** The raw parsed payload before normalization */
3400
+ /** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */
3401
+ version: WebhookVersion;
3402
+ /** The parsed and normalized webhook payload */
3403
+ payload: IncomingTriggerPayload;
3404
+ /** The raw parsed payload before normalization */
3402
3405
  rawPayload: WebhookPayload;
3403
3406
  };
3404
3407
  //#endregion