@composio/client 0.1.0-alpha.6 → 0.1.0-alpha.61
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.
- package/CHANGELOG.md +837 -0
- package/LICENSE +1 -1
- package/README.md +22 -35
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +85 -40
- package/client.d.mts.map +1 -1
- package/client.d.ts +85 -40
- package/client.d.ts.map +1 -1
- package/client.js +151 -105
- package/client.js.map +1 -1
- package/client.mjs +133 -64
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +0 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +0 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +4 -14
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +1 -11
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +0 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +0 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/error.js +2 -15
- package/error.js.map +1 -1
- package/internal/builtin-types.d.mts +0 -2
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +0 -2
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +2 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts +1 -2
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -2
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +7 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +7 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +0 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +0 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +6 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +1 -0
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts +1 -0
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +43 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +43 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/{resources/org.mjs → internal/shim-types.mjs} +2 -2
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +5 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -2
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +1 -2
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +5 -5
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +4 -3
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +8 -7
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -7
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +1 -3
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +1 -3
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +17 -7
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +13 -4
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +12 -7
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +12 -7
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +0 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +0 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -3
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +28 -7
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +27 -6
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/uuid.d.mts +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +1 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +1 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts +2 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +2 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -8
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +5 -3
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +8 -20
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +6 -14
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +494 -54
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +494 -54
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +73 -0
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +73 -0
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/cli/cli.d.mts +120 -0
- package/resources/cli/cli.d.mts.map +1 -0
- package/resources/cli/cli.d.ts +120 -0
- package/resources/cli/cli.d.ts.map +1 -0
- package/resources/cli/cli.js +36 -0
- package/resources/cli/cli.js.map +1 -0
- package/resources/cli/cli.mjs +31 -0
- package/resources/cli/cli.mjs.map +1 -0
- package/resources/cli/index.d.mts +3 -0
- package/resources/cli/index.d.mts.map +1 -0
- package/resources/cli/index.d.ts +3 -0
- package/resources/cli/index.d.ts.map +1 -0
- package/resources/cli/index.js +9 -0
- package/resources/cli/index.js.map +1 -0
- package/resources/cli/index.mjs +4 -0
- package/resources/cli/index.mjs.map +1 -0
- package/resources/cli/realtime.d.mts +56 -0
- package/resources/cli/realtime.d.mts.map +1 -0
- package/resources/cli/realtime.d.ts +56 -0
- package/resources/cli/realtime.d.ts.map +1 -0
- package/resources/cli/realtime.js +25 -0
- package/resources/cli/realtime.js.map +1 -0
- package/resources/cli/realtime.mjs +21 -0
- package/resources/cli/realtime.mjs.map +1 -0
- package/resources/cli.d.mts +1 -123
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts +1 -123
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.js +2 -14
- package/resources/cli.js.map +1 -1
- package/resources/cli.mjs +1 -12
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +8744 -235
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +8744 -235
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +87 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +87 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +152 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +152 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +42 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +38 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +13 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +14 -10
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -5
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +2020 -0
- package/resources/link.d.mts.map +1 -0
- package/resources/link.d.ts +2020 -0
- package/resources/link.d.ts.map +1 -0
- package/resources/link.js +19 -0
- package/resources/link.js.map +1 -0
- package/resources/link.mjs +15 -0
- package/resources/link.mjs.map +1 -0
- package/resources/logs/index.d.mts +4 -0
- package/resources/logs/index.d.mts.map +1 -0
- package/resources/logs/index.d.ts +4 -0
- package/resources/logs/index.d.ts.map +1 -0
- package/resources/logs/index.js +11 -0
- package/resources/logs/index.js.map +1 -0
- package/resources/logs/index.mjs +5 -0
- package/resources/logs/index.mjs.map +1 -0
- package/resources/logs/logs.d.mts +14 -0
- package/resources/logs/logs.d.mts.map +1 -0
- package/resources/logs/logs.d.ts +14 -0
- package/resources/logs/logs.d.ts.map +1 -0
- package/resources/logs/logs.js +21 -0
- package/resources/logs/logs.js.map +1 -0
- package/resources/logs/logs.mjs +16 -0
- package/resources/logs/logs.mjs.map +1 -0
- package/resources/logs/tools.d.mts +173 -0
- package/resources/logs/tools.d.mts.map +1 -0
- package/resources/logs/tools.d.ts +173 -0
- package/resources/logs/tools.d.ts.map +1 -0
- package/resources/logs/tools.js +35 -0
- package/resources/logs/tools.js.map +1 -0
- package/resources/logs/tools.mjs +31 -0
- package/resources/logs/tools.mjs.map +1 -0
- package/resources/logs/triggers.d.mts +161 -0
- package/resources/logs/triggers.d.mts.map +1 -0
- package/resources/logs/triggers.d.ts +161 -0
- package/resources/logs/triggers.d.ts.map +1 -0
- package/resources/logs/triggers.js +36 -0
- package/resources/logs/triggers.js.map +1 -0
- package/resources/logs/triggers.mjs +32 -0
- package/resources/logs/triggers.mjs.map +1 -0
- package/resources/logs.d.mts +2 -0
- package/resources/logs.d.mts.map +1 -0
- package/resources/logs.d.ts +2 -0
- package/resources/logs.d.ts.map +1 -0
- package/resources/logs.js +6 -0
- package/resources/logs.js.map +1 -0
- package/resources/logs.mjs +3 -0
- package/resources/logs.mjs.map +1 -0
- package/resources/mcp/custom.d.mts +105 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +105 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +29 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +25 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/generate.d.mts +62 -0
- package/resources/mcp/generate.d.mts.map +1 -0
- package/resources/mcp/generate.d.ts +62 -0
- package/resources/mcp/generate.d.ts.map +1 -0
- package/resources/mcp/generate.js +29 -0
- package/resources/mcp/generate.js.map +1 -0
- package/resources/mcp/generate.mjs +25 -0
- package/resources/mcp/generate.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +3 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +5 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +2 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +450 -175
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +450 -175
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +92 -39
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +91 -16
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.js +2 -15
- package/resources/mcp.js.map +1 -1
- package/resources/migration.d.mts +35 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +35 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +20 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +16 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/project/config.d.mts +71 -0
- package/resources/project/config.d.mts.map +1 -0
- package/resources/project/config.d.ts +71 -0
- package/resources/project/config.d.ts.map +1 -0
- package/resources/project/config.js +33 -0
- package/resources/project/config.js.map +1 -0
- package/resources/project/config.mjs +29 -0
- package/resources/project/config.mjs.map +1 -0
- package/resources/project/index.d.mts +3 -0
- package/resources/project/index.d.mts.map +1 -0
- package/resources/project/index.d.ts +3 -0
- package/resources/project/index.d.ts.map +1 -0
- package/resources/project/index.js +9 -0
- package/resources/project/index.js.map +1 -0
- package/resources/project/index.mjs +4 -0
- package/resources/project/index.mjs.map +1 -0
- package/resources/project/project.d.mts +10 -0
- package/resources/project/project.d.mts.map +1 -0
- package/resources/project/project.d.ts +10 -0
- package/resources/project/project.d.ts.map +1 -0
- package/resources/project/project.js +17 -0
- package/resources/project/project.js.map +1 -0
- package/resources/project/project.mjs +12 -0
- package/resources/project/project.mjs.map +1 -0
- package/resources/{org/project.d.mts.map → project.d.mts.map} +1 -1
- package/resources/{org/project.d.ts.map → project.d.ts.map} +1 -1
- package/resources/project.js +6 -0
- package/resources/project.js.map +1 -0
- package/resources/project.mjs.map +1 -0
- package/resources/tool-router/index.d.mts +3 -0
- package/resources/tool-router/index.d.mts.map +1 -0
- package/resources/tool-router/index.d.ts +3 -0
- package/resources/tool-router/index.d.ts.map +1 -0
- package/resources/tool-router/index.js +9 -0
- package/resources/tool-router/index.js.map +1 -0
- package/resources/tool-router/index.mjs +4 -0
- package/resources/tool-router/index.mjs.map +1 -0
- package/resources/tool-router/session/files.d.mts +205 -0
- package/resources/tool-router/session/files.d.mts.map +1 -0
- package/resources/tool-router/session/files.d.ts +205 -0
- package/resources/tool-router/session/files.d.ts.map +1 -0
- package/resources/tool-router/session/files.js +101 -0
- package/resources/tool-router/session/files.js.map +1 -0
- package/resources/tool-router/session/files.mjs +97 -0
- package/resources/tool-router/session/files.mjs.map +1 -0
- package/resources/tool-router/session/index.d.mts +3 -0
- package/resources/tool-router/session/index.d.mts.map +1 -0
- package/resources/tool-router/session/index.d.ts +3 -0
- package/resources/tool-router/session/index.d.ts.map +1 -0
- package/resources/tool-router/session/index.js +9 -0
- package/resources/tool-router/session/index.js.map +1 -0
- package/resources/tool-router/session/index.mjs +4 -0
- package/resources/tool-router/session/index.mjs.map +1 -0
- package/resources/tool-router/session/session.d.mts +1201 -0
- package/resources/tool-router/session/session.d.mts.map +1 -0
- package/resources/tool-router/session/session.d.ts +1201 -0
- package/resources/tool-router/session/session.d.ts.map +1 -0
- package/resources/tool-router/session/session.js +153 -0
- package/resources/tool-router/session/session.js.map +1 -0
- package/resources/tool-router/session/session.mjs +148 -0
- package/resources/tool-router/session/session.mjs.map +1 -0
- package/resources/tool-router/session.d.mts +2 -0
- package/resources/tool-router/session.d.mts.map +1 -0
- package/resources/tool-router/session.d.ts +2 -0
- package/resources/tool-router/session.d.ts.map +1 -0
- package/resources/tool-router/session.js +6 -0
- package/resources/tool-router/session.js.map +1 -0
- package/resources/tool-router/session.mjs +3 -0
- package/resources/tool-router/session.mjs.map +1 -0
- package/resources/tool-router/tool-router.d.mts +94 -0
- package/resources/tool-router/tool-router.d.mts.map +1 -0
- package/resources/tool-router/tool-router.d.ts +94 -0
- package/resources/tool-router/tool-router.d.ts.map +1 -0
- package/resources/tool-router/tool-router.js +49 -0
- package/resources/tool-router/tool-router.js.map +1 -0
- package/resources/tool-router/tool-router.mjs +44 -0
- package/resources/tool-router/tool-router.mjs.map +1 -0
- package/resources/tool-router.d.mts +2 -0
- package/resources/tool-router.d.mts.map +1 -0
- package/resources/tool-router.d.ts +2 -0
- package/resources/tool-router.d.ts.map +1 -0
- package/resources/tool-router.js +6 -0
- package/resources/tool-router.js.map +1 -0
- package/resources/tool-router.mjs +3 -0
- package/resources/tool-router.mjs.map +1 -0
- package/resources/toolkits.d.mts +301 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +301 -6
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +23 -2
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +23 -2
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +1289 -41
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1289 -41
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +85 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +85 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +2 -2
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +2 -2
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js +3 -3
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts +55 -0
- package/resources/trigger-instances/manage.d.mts.map +1 -0
- package/resources/trigger-instances/manage.d.ts +55 -0
- package/resources/trigger-instances/manage.d.ts.map +1 -0
- package/resources/trigger-instances/manage.js +45 -0
- package/resources/trigger-instances/manage.js.map +1 -0
- package/resources/trigger-instances/manage.mjs +41 -0
- package/resources/trigger-instances/manage.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +184 -42
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +184 -42
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +34 -35
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +33 -12
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/trigger-instances.js +2 -15
- package/resources/trigger-instances.js.map +1 -1
- package/resources/triggers-types.d.mts +148 -12
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +148 -12
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +17 -2
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +17 -2
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +223 -126
- package/src/core/resource.ts +1 -1
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/headers.ts +9 -8
- package/src/internal/parse.ts +6 -0
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- package/src/internal/request-options.ts +54 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/to-file.ts +5 -3
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +17 -5
- package/src/internal/utils/base64.ts +13 -10
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +33 -8
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -3
- package/src/internal/utils.ts +1 -0
- package/src/resources/auth-configs.ts +559 -67
- package/src/resources/cli/cli.ts +163 -0
- package/src/resources/cli/index.ts +15 -0
- package/src/resources/cli/realtime.ts +75 -0
- package/src/resources/cli.ts +1 -164
- package/src/resources/connected-accounts.ts +16489 -459
- package/src/resources/files.ts +197 -0
- package/src/resources/index.ts +28 -27
- package/src/resources/link.ts +3820 -0
- package/src/resources/logs/index.ts +10 -0
- package/src/resources/logs/logs.ts +31 -0
- package/src/resources/{action-execution.ts → logs/tools.ts} +98 -103
- package/src/resources/logs/triggers.ts +241 -0
- package/src/resources/{org.ts → logs.ts} +1 -1
- package/src/resources/mcp/custom.ts +125 -0
- package/src/resources/mcp/generate.ts +74 -0
- package/src/resources/mcp/index.ts +3 -3
- package/src/resources/mcp/mcp.ts +487 -200
- package/src/resources/migration.ts +49 -0
- package/src/resources/project/config.ts +110 -0
- package/src/resources/project/index.ts +9 -0
- package/src/resources/project/project.ts +20 -0
- package/src/resources/tool-router/index.ts +25 -0
- package/src/resources/tool-router/session/files.ts +284 -0
- package/src/resources/tool-router/session/index.ts +31 -0
- package/src/resources/tool-router/session/session.ts +1465 -0
- package/src/resources/tool-router/session.ts +3 -0
- package/src/resources/tool-router/tool-router.ts +152 -0
- package/src/resources/tool-router.ts +3 -0
- package/src/resources/toolkits.ts +343 -8
- package/src/resources/tools.ts +1983 -60
- package/src/resources/trigger-instances/index.ts +5 -9
- package/src/resources/trigger-instances/manage.ts +75 -0
- package/src/resources/trigger-instances/trigger-instances.ts +197 -66
- package/src/resources/triggers-types.ts +152 -14
- package/src/version.ts +1 -1
- package/uploads.js +2 -15
- package/uploads.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/internal/shims/crypto.d.mts +0 -13
- package/internal/shims/crypto.d.mts.map +0 -1
- package/internal/shims/crypto.d.ts +0 -13
- package/internal/shims/crypto.d.ts.map +0 -1
- package/internal/shims/crypto.js +0 -13
- package/internal/shims/crypto.js.map +0 -1
- package/internal/shims/crypto.mjs +0 -9
- package/internal/shims/crypto.mjs.map +0 -1
- package/internal/shims/file.d.mts +0 -23
- package/internal/shims/file.d.mts.map +0 -1
- package/internal/shims/file.d.ts +0 -23
- package/internal/shims/file.d.ts.map +0 -1
- package/internal/shims/file.js +0 -16
- package/internal/shims/file.js.map +0 -1
- package/internal/shims/file.mjs +0 -12
- package/internal/shims/file.mjs.map +0 -1
- package/internal/shims/getBuiltinModule.d.mts +0 -11
- package/internal/shims/getBuiltinModule.d.mts.map +0 -1
- package/internal/shims/getBuiltinModule.d.ts +0 -11
- package/internal/shims/getBuiltinModule.d.ts.map +0 -1
- package/internal/shims/getBuiltinModule.js +0 -71
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -67
- package/internal/shims/getBuiltinModule.mjs.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.js +0 -5
- package/internal/shims/nullGetBuiltinModule.js.map +0 -1
- package/internal/shims/nullGetBuiltinModule.mjs +0 -2
- package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
- package/resources/action-execution.d.mts +0 -155
- package/resources/action-execution.d.mts.map +0 -1
- package/resources/action-execution.d.ts +0 -155
- package/resources/action-execution.d.ts.map +0 -1
- package/resources/action-execution.js +0 -19
- package/resources/action-execution.js.map +0 -1
- package/resources/action-execution.mjs +0 -15
- package/resources/action-execution.mjs.map +0 -1
- package/resources/mcp/command.d.mts +0 -34
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -34
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -12
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -8
- package/resources/mcp/command.mjs.map +0 -1
- package/resources/org/api-key.d.mts +0 -17
- package/resources/org/api-key.d.mts.map +0 -1
- package/resources/org/api-key.d.ts +0 -17
- package/resources/org/api-key.d.ts.map +0 -1
- package/resources/org/api-key.js +0 -15
- package/resources/org/api-key.js.map +0 -1
- package/resources/org/api-key.mjs +0 -11
- package/resources/org/api-key.mjs.map +0 -1
- package/resources/org/index.d.mts +0 -4
- package/resources/org/index.d.mts.map +0 -1
- package/resources/org/index.d.ts +0 -4
- package/resources/org/index.d.ts.map +0 -1
- package/resources/org/index.js +0 -11
- package/resources/org/index.js.map +0 -1
- package/resources/org/index.mjs +0 -5
- package/resources/org/index.mjs.map +0 -1
- package/resources/org/org.d.mts +0 -14
- package/resources/org/org.d.mts.map +0 -1
- package/resources/org/org.d.ts +0 -14
- package/resources/org/org.d.ts.map +0 -1
- package/resources/org/org.js +0 -43
- package/resources/org/org.js.map +0 -1
- package/resources/org/org.mjs +0 -16
- package/resources/org/org.mjs.map +0 -1
- package/resources/org/project/api-keys.d.mts +0 -109
- package/resources/org/project/api-keys.d.mts.map +0 -1
- package/resources/org/project/api-keys.d.ts +0 -109
- package/resources/org/project/api-keys.d.ts.map +0 -1
- package/resources/org/project/api-keys.js +0 -23
- package/resources/org/project/api-keys.js.map +0 -1
- package/resources/org/project/api-keys.mjs +0 -19
- package/resources/org/project/api-keys.mjs.map +0 -1
- package/resources/org/project/index.d.mts +0 -5
- package/resources/org/project/index.d.mts.map +0 -1
- package/resources/org/project/index.d.ts +0 -5
- package/resources/org/project/index.d.ts.map +0 -1
- package/resources/org/project/index.js +0 -13
- package/resources/org/project/index.js.map +0 -1
- package/resources/org/project/index.mjs +0 -6
- package/resources/org/project/index.mjs.map +0 -1
- package/resources/org/project/project.d.mts +0 -90
- package/resources/org/project/project.d.mts.map +0 -1
- package/resources/org/project/project.d.ts +0 -90
- package/resources/org/project/project.d.ts.map +0 -1
- package/resources/org/project/project.js +0 -60
- package/resources/org/project/project.js.map +0 -1
- package/resources/org/project/project.mjs +0 -33
- package/resources/org/project/project.mjs.map +0 -1
- package/resources/org/project/trigger.d.mts +0 -51
- package/resources/org/project/trigger.d.mts.map +0 -1
- package/resources/org/project/trigger.d.ts +0 -51
- package/resources/org/project/trigger.d.ts.map +0 -1
- package/resources/org/project/trigger.js +0 -16
- package/resources/org/project/trigger.js.map +0 -1
- package/resources/org/project/trigger.mjs +0 -12
- package/resources/org/project/trigger.mjs.map +0 -1
- package/resources/org/project/webhook.d.mts +0 -92
- package/resources/org/project/webhook.d.mts.map +0 -1
- package/resources/org/project/webhook.d.ts +0 -92
- package/resources/org/project/webhook.d.ts.map +0 -1
- package/resources/org/project/webhook.js +0 -24
- package/resources/org/project/webhook.js.map +0 -1
- package/resources/org/project/webhook.mjs +0 -20
- package/resources/org/project/webhook.mjs.map +0 -1
- package/resources/org/project.js +0 -19
- package/resources/org/project.js.map +0 -1
- package/resources/org/project.mjs.map +0 -1
- package/resources/org.d.mts +0 -2
- package/resources/org.d.mts.map +0 -1
- package/resources/org.d.ts +0 -2
- package/resources/org.d.ts.map +0 -1
- package/resources/org.js +0 -19
- package/resources/org.js.map +0 -1
- package/resources/org.mjs.map +0 -1
- package/resources/team-members.d.mts +0 -57
- package/resources/team-members.d.mts.map +0 -1
- package/resources/team-members.d.ts +0 -57
- package/resources/team-members.d.ts.map +0 -1
- package/resources/team-members.js +0 -22
- package/resources/team-members.js.map +0 -1
- package/resources/team-members.mjs +0 -18
- package/resources/team-members.mjs.map +0 -1
- package/resources/trigger-instances/handle.d.mts +0 -25
- package/resources/trigger-instances/handle.d.mts.map +0 -1
- package/resources/trigger-instances/handle.d.ts +0 -25
- package/resources/trigger-instances/handle.d.ts.map +0 -1
- package/resources/trigger-instances/handle.js +0 -18
- package/resources/trigger-instances/handle.js.map +0 -1
- package/resources/trigger-instances/handle.mjs +0 -14
- package/resources/trigger-instances/handle.mjs.map +0 -1
- package/resources/trigger.d.mts +0 -73
- package/resources/trigger.d.mts.map +0 -1
- package/resources/trigger.d.ts +0 -73
- package/resources/trigger.d.ts.map +0 -1
- package/resources/trigger.js +0 -12
- package/resources/trigger.js.map +0 -1
- package/resources/trigger.mjs +0 -8
- package/resources/trigger.mjs.map +0 -1
- package/src/internal/shim-types.d.ts +0 -28
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -66
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/mcp/command.ts +0 -47
- package/src/resources/org/api-key.ts +0 -30
- package/src/resources/org/index.ts +0 -12
- package/src/resources/org/org.ts +0 -39
- package/src/resources/org/project/api-keys.ts +0 -156
- package/src/resources/org/project/index.ts +0 -35
- package/src/resources/org/project/project.ts +0 -206
- package/src/resources/org/project/trigger.ts +0 -95
- package/src/resources/org/project/webhook.ts +0 -131
- package/src/resources/team-members.ts +0 -111
- package/src/resources/trigger-instances/handle.ts +0 -45
- package/src/resources/trigger.ts +0 -108
- /package/resources/{org/project.d.mts → project.d.mts} +0 -0
- /package/resources/{org/project.d.ts → project.d.ts} +0 -0
- /package/resources/{org/project.mjs → project.mjs} +0 -0
- /package/src/resources/{org/project.ts → project.ts} +0 -0
package/src/client.ts
CHANGED
|
@@ -5,14 +5,13 @@ import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestIni
|
|
|
5
5
|
import { uuid4 } from './internal/utils/uuid';
|
|
6
6
|
import { validatePositiveInteger, isAbsoluteURL, safeJSON } from './internal/utils/values';
|
|
7
7
|
import { sleep } from './internal/utils/sleep';
|
|
8
|
-
import { type Logger, type LogLevel, parseLogLevel } from './internal/utils/log';
|
|
9
8
|
export type { Logger, LogLevel } from './internal/utils/log';
|
|
10
9
|
import { castToError, isAbortError } from './internal/errors';
|
|
11
10
|
import type { APIResponseProps } from './internal/parse';
|
|
12
11
|
import { getPlatformHeaders } from './internal/detect-platform';
|
|
13
12
|
import * as Shims from './internal/shims';
|
|
14
13
|
import * as Opts from './internal/request-options';
|
|
15
|
-
import
|
|
14
|
+
import { stringifyQuery } from './internal/utils/query';
|
|
16
15
|
import { VERSION } from './version';
|
|
17
16
|
import * as Errors from './core/error';
|
|
18
17
|
import * as Uploads from './core/uploads';
|
|
@@ -21,13 +20,6 @@ import { APIPromise } from './core/api-promise';
|
|
|
21
20
|
import { type Fetch } from './internal/builtin-types';
|
|
22
21
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
23
22
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
24
|
-
import {
|
|
25
|
-
ActionExecution,
|
|
26
|
-
ActionExecutionLogParams,
|
|
27
|
-
ActionExecutionLogResponse,
|
|
28
|
-
ActionExecutionRetrieveFieldsResponse,
|
|
29
|
-
ActionExecutionRetrieveLogResponse,
|
|
30
|
-
} from './resources/action-execution';
|
|
31
23
|
import {
|
|
32
24
|
AuthConfigCreateParams,
|
|
33
25
|
AuthConfigCreateResponse,
|
|
@@ -41,20 +33,13 @@ import {
|
|
|
41
33
|
AuthConfigUpdateStatusResponse,
|
|
42
34
|
AuthConfigs,
|
|
43
35
|
} from './resources/auth-configs';
|
|
44
|
-
import {
|
|
45
|
-
Cli,
|
|
46
|
-
CliCreateSessionResponse,
|
|
47
|
-
CliLinkSessionParams,
|
|
48
|
-
CliLinkSessionResponse,
|
|
49
|
-
CliRetrieveSessionParams,
|
|
50
|
-
CliRetrieveSessionResponse,
|
|
51
|
-
} from './resources/cli';
|
|
52
36
|
import {
|
|
53
37
|
ConnectedAccountCreateParams,
|
|
54
38
|
ConnectedAccountCreateResponse,
|
|
55
39
|
ConnectedAccountDeleteResponse,
|
|
56
40
|
ConnectedAccountListParams,
|
|
57
41
|
ConnectedAccountListResponse,
|
|
42
|
+
ConnectedAccountRefreshParams,
|
|
58
43
|
ConnectedAccountRefreshResponse,
|
|
59
44
|
ConnectedAccountRetrieveResponse,
|
|
60
45
|
ConnectedAccountUpdateStatusParams,
|
|
@@ -62,18 +47,23 @@ import {
|
|
|
62
47
|
ConnectedAccounts,
|
|
63
48
|
} from './resources/connected-accounts';
|
|
64
49
|
import {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
50
|
+
FileCreatePresignedURLParams,
|
|
51
|
+
FileCreatePresignedURLResponse,
|
|
52
|
+
FileListParams,
|
|
53
|
+
FileListResponse,
|
|
54
|
+
Files,
|
|
55
|
+
} from './resources/files';
|
|
56
|
+
import { Link, LinkCreateParams, LinkCreateResponse } from './resources/link';
|
|
57
|
+
import {
|
|
58
|
+
Migration,
|
|
59
|
+
MigrationRetrieveNanoidParams,
|
|
60
|
+
MigrationRetrieveNanoidResponse,
|
|
61
|
+
} from './resources/migration';
|
|
73
62
|
import {
|
|
74
63
|
ToolkitListParams,
|
|
75
64
|
ToolkitListResponse,
|
|
76
65
|
ToolkitRetrieveCategoriesResponse,
|
|
66
|
+
ToolkitRetrieveParams,
|
|
77
67
|
ToolkitRetrieveResponse,
|
|
78
68
|
Toolkits,
|
|
79
69
|
} from './resources/toolkits';
|
|
@@ -87,20 +77,35 @@ import {
|
|
|
87
77
|
ToolProxyParams,
|
|
88
78
|
ToolProxyResponse,
|
|
89
79
|
ToolRetrieveEnumResponse,
|
|
80
|
+
ToolRetrieveParams,
|
|
90
81
|
ToolRetrieveResponse,
|
|
91
82
|
Tools,
|
|
92
83
|
} from './resources/tools';
|
|
93
|
-
import { Trigger, TriggerLogParams, TriggerLogResponse } from './resources/trigger';
|
|
94
84
|
import {
|
|
95
85
|
TriggersTypeListParams,
|
|
96
86
|
TriggersTypeListResponse,
|
|
97
87
|
TriggersTypeRetrieveEnumResponse,
|
|
88
|
+
TriggersTypeRetrieveParams,
|
|
98
89
|
TriggersTypeRetrieveResponse,
|
|
99
90
|
TriggersTypes,
|
|
100
91
|
} from './resources/triggers-types';
|
|
101
92
|
import { readEnv } from './internal/utils/env';
|
|
102
|
-
import {
|
|
93
|
+
import {
|
|
94
|
+
type LogLevel,
|
|
95
|
+
type Logger,
|
|
96
|
+
formatRequestDetails,
|
|
97
|
+
loggerFor,
|
|
98
|
+
parseLogLevel,
|
|
99
|
+
} from './internal/utils/log';
|
|
103
100
|
import { isEmptyObj } from './internal/utils/values';
|
|
101
|
+
import {
|
|
102
|
+
Cli,
|
|
103
|
+
CliCreateSessionParams,
|
|
104
|
+
CliCreateSessionResponse,
|
|
105
|
+
CliGetSessionParams,
|
|
106
|
+
CliGetSessionResponse,
|
|
107
|
+
} from './resources/cli/cli';
|
|
108
|
+
import { Logs } from './resources/logs/logs';
|
|
104
109
|
import {
|
|
105
110
|
Mcp,
|
|
106
111
|
McpCreateParams,
|
|
@@ -108,20 +113,21 @@ import {
|
|
|
108
113
|
McpDeleteResponse,
|
|
109
114
|
McpListParams,
|
|
110
115
|
McpListResponse,
|
|
116
|
+
McpRetrieveAppParams,
|
|
111
117
|
McpRetrieveAppResponse,
|
|
112
118
|
McpRetrieveResponse,
|
|
113
119
|
McpUpdateParams,
|
|
114
120
|
McpUpdateResponse,
|
|
115
|
-
McpValidateParams,
|
|
116
|
-
McpValidateResponse,
|
|
117
121
|
} from './resources/mcp/mcp';
|
|
118
|
-
import {
|
|
122
|
+
import { Project } from './resources/project/project';
|
|
123
|
+
import {
|
|
124
|
+
ToolRouter,
|
|
125
|
+
ToolRouterCreateSessionParams,
|
|
126
|
+
ToolRouterCreateSessionResponse,
|
|
127
|
+
} from './resources/tool-router/tool-router';
|
|
119
128
|
import {
|
|
120
129
|
TriggerInstanceListActiveParams,
|
|
121
130
|
TriggerInstanceListActiveResponse,
|
|
122
|
-
TriggerInstanceRemoveUpsertResponse,
|
|
123
|
-
TriggerInstanceUpdateStatusParams,
|
|
124
|
-
TriggerInstanceUpdateStatusResponse,
|
|
125
131
|
TriggerInstanceUpsertParams,
|
|
126
132
|
TriggerInstanceUpsertResponse,
|
|
127
133
|
TriggerInstances,
|
|
@@ -130,15 +136,15 @@ import {
|
|
|
130
136
|
const environments = {
|
|
131
137
|
production: 'https://backend.composio.dev',
|
|
132
138
|
staging: 'https://staging-backend.composio.dev',
|
|
133
|
-
local: 'http://localhost:
|
|
139
|
+
local: 'http://localhost:9900',
|
|
134
140
|
};
|
|
135
141
|
type Environment = keyof typeof environments;
|
|
136
142
|
|
|
137
143
|
export interface ClientOptions {
|
|
138
144
|
/**
|
|
139
|
-
*
|
|
145
|
+
* API key authentication
|
|
140
146
|
*/
|
|
141
|
-
apiKey?: string | undefined;
|
|
147
|
+
apiKey?: string | null | undefined;
|
|
142
148
|
|
|
143
149
|
/**
|
|
144
150
|
* Specifies the environment to use for the API.
|
|
@@ -146,7 +152,7 @@ export interface ClientOptions {
|
|
|
146
152
|
* Each environment maps to a different base URL:
|
|
147
153
|
* - `production` corresponds to `https://backend.composio.dev`
|
|
148
154
|
* - `staging` corresponds to `https://staging-backend.composio.dev`
|
|
149
|
-
* - `local` corresponds to `http://localhost:
|
|
155
|
+
* - `local` corresponds to `http://localhost:9900`
|
|
150
156
|
*/
|
|
151
157
|
environment?: Environment | undefined;
|
|
152
158
|
|
|
@@ -163,6 +169,8 @@ export interface ClientOptions {
|
|
|
163
169
|
*
|
|
164
170
|
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
165
171
|
* much longer than this timeout before the promise succeeds or fails.
|
|
172
|
+
*
|
|
173
|
+
* @unit milliseconds
|
|
166
174
|
*/
|
|
167
175
|
timeout?: number | undefined;
|
|
168
176
|
/**
|
|
@@ -221,12 +229,12 @@ export interface ClientOptions {
|
|
|
221
229
|
* API Client for interfacing with the Composio API.
|
|
222
230
|
*/
|
|
223
231
|
export class Composio {
|
|
224
|
-
apiKey: string;
|
|
232
|
+
apiKey: string | null;
|
|
225
233
|
|
|
226
234
|
baseURL: string;
|
|
227
235
|
maxRetries: number;
|
|
228
236
|
timeout: number;
|
|
229
|
-
logger: Logger
|
|
237
|
+
logger: Logger;
|
|
230
238
|
logLevel: LogLevel | undefined;
|
|
231
239
|
fetchOptions: MergedRequestInit | undefined;
|
|
232
240
|
|
|
@@ -238,7 +246,7 @@ export class Composio {
|
|
|
238
246
|
/**
|
|
239
247
|
* API Client for interfacing with the Composio API.
|
|
240
248
|
*
|
|
241
|
-
* @param {string | undefined} [opts.apiKey=process.env['COMPOSIO_API_KEY'] ??
|
|
249
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['COMPOSIO_API_KEY'] ?? null]
|
|
242
250
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
243
251
|
* @param {string} [opts.baseURL=process.env['COMPOSIO_BASE_URL'] ?? https://backend.composio.dev] - Override the default base URL for the API.
|
|
244
252
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
@@ -250,15 +258,9 @@ export class Composio {
|
|
|
250
258
|
*/
|
|
251
259
|
constructor({
|
|
252
260
|
baseURL = readEnv('COMPOSIO_BASE_URL'),
|
|
253
|
-
apiKey = readEnv('COMPOSIO_API_KEY'),
|
|
261
|
+
apiKey = readEnv('COMPOSIO_API_KEY') ?? null,
|
|
254
262
|
...opts
|
|
255
263
|
}: ClientOptions = {}) {
|
|
256
|
-
if (apiKey === undefined) {
|
|
257
|
-
throw new Errors.ComposioError(
|
|
258
|
-
"The COMPOSIO_API_KEY environment variable is missing or empty; either provide it, or instantiate the Composio client with an apiKey option, like new Composio({ apiKey: 'My API Key' }).",
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
264
|
const options: ClientOptions = {
|
|
263
265
|
apiKey,
|
|
264
266
|
...opts,
|
|
@@ -292,6 +294,33 @@ export class Composio {
|
|
|
292
294
|
this.apiKey = apiKey;
|
|
293
295
|
}
|
|
294
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
299
|
+
*/
|
|
300
|
+
withOptions(options: Partial<ClientOptions>): this {
|
|
301
|
+
const client = new (this.constructor as any as new (props: ClientOptions) => typeof this)({
|
|
302
|
+
...this._options,
|
|
303
|
+
environment: options.environment ? options.environment : undefined,
|
|
304
|
+
baseURL: options.environment ? undefined : this.baseURL,
|
|
305
|
+
maxRetries: this.maxRetries,
|
|
306
|
+
timeout: this.timeout,
|
|
307
|
+
logger: this.logger,
|
|
308
|
+
logLevel: this.logLevel,
|
|
309
|
+
fetch: this.fetch,
|
|
310
|
+
fetchOptions: this.fetchOptions,
|
|
311
|
+
apiKey: this.apiKey,
|
|
312
|
+
...options,
|
|
313
|
+
});
|
|
314
|
+
return client;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Check whether the base URL is set to its default.
|
|
319
|
+
*/
|
|
320
|
+
#baseURLOverridden(): boolean {
|
|
321
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
322
|
+
}
|
|
323
|
+
|
|
295
324
|
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
296
325
|
return this._options.defaultQuery;
|
|
297
326
|
}
|
|
@@ -300,12 +329,15 @@ export class Composio {
|
|
|
300
329
|
return;
|
|
301
330
|
}
|
|
302
331
|
|
|
303
|
-
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
|
|
332
|
+
protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
333
|
+
if (this.apiKey == null) {
|
|
334
|
+
return undefined;
|
|
335
|
+
}
|
|
304
336
|
return buildHeaders([{ 'x-api-key': this.apiKey }]);
|
|
305
337
|
}
|
|
306
338
|
|
|
307
|
-
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
308
|
-
return
|
|
339
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string {
|
|
340
|
+
return stringifyQuery(query);
|
|
309
341
|
}
|
|
310
342
|
|
|
311
343
|
private getUserAgent(): string {
|
|
@@ -325,19 +357,25 @@ export class Composio {
|
|
|
325
357
|
return Errors.APIError.generate(status, error, message, headers);
|
|
326
358
|
}
|
|
327
359
|
|
|
328
|
-
buildURL(
|
|
360
|
+
buildURL(
|
|
361
|
+
path: string,
|
|
362
|
+
query: Record<string, unknown> | null | undefined,
|
|
363
|
+
defaultBaseURL?: string | undefined,
|
|
364
|
+
): string {
|
|
365
|
+
const baseURL = (!this.#baseURLOverridden() && defaultBaseURL) || this.baseURL;
|
|
329
366
|
const url =
|
|
330
367
|
isAbsoluteURL(path) ?
|
|
331
368
|
new URL(path)
|
|
332
|
-
: new URL(
|
|
369
|
+
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
333
370
|
|
|
334
371
|
const defaultQuery = this.defaultQuery();
|
|
335
|
-
|
|
336
|
-
|
|
372
|
+
const pathQuery = Object.fromEntries(url.searchParams);
|
|
373
|
+
if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
|
|
374
|
+
query = { ...pathQuery, ...defaultQuery, ...query };
|
|
337
375
|
}
|
|
338
376
|
|
|
339
377
|
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
340
|
-
url.search = this.stringifyQuery(query
|
|
378
|
+
url.search = this.stringifyQuery(query);
|
|
341
379
|
}
|
|
342
380
|
|
|
343
381
|
return url.toString();
|
|
@@ -411,7 +449,9 @@ export class Composio {
|
|
|
411
449
|
|
|
412
450
|
await this.prepareOptions(options);
|
|
413
451
|
|
|
414
|
-
const { req, url, timeout } = this.buildRequest(options, {
|
|
452
|
+
const { req, url, timeout } = await this.buildRequest(options, {
|
|
453
|
+
retryCount: maxRetries - retriesRemaining,
|
|
454
|
+
});
|
|
415
455
|
|
|
416
456
|
await this.prepareRequest(req, { url, options });
|
|
417
457
|
|
|
@@ -439,7 +479,7 @@ export class Composio {
|
|
|
439
479
|
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
440
480
|
const headersTime = Date.now();
|
|
441
481
|
|
|
442
|
-
if (response instanceof Error) {
|
|
482
|
+
if (response instanceof globalThis.Error) {
|
|
443
483
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
444
484
|
if (options.signal?.aborted) {
|
|
445
485
|
throw new Errors.APIUserAbortError();
|
|
@@ -489,7 +529,7 @@ export class Composio {
|
|
|
489
529
|
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
490
530
|
|
|
491
531
|
if (!response.ok) {
|
|
492
|
-
const shouldRetry = this.shouldRetry(response);
|
|
532
|
+
const shouldRetry = await this.shouldRetry(response);
|
|
493
533
|
if (retriesRemaining && shouldRetry) {
|
|
494
534
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
495
535
|
|
|
@@ -519,7 +559,7 @@ export class Composio {
|
|
|
519
559
|
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
520
560
|
|
|
521
561
|
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
522
|
-
const errJSON = safeJSON(errText);
|
|
562
|
+
const errJSON = safeJSON(errText) as any;
|
|
523
563
|
const errMessage = errJSON ? undefined : errText;
|
|
524
564
|
|
|
525
565
|
loggerFor(this).debug(
|
|
@@ -560,9 +600,10 @@ export class Composio {
|
|
|
560
600
|
controller: AbortController,
|
|
561
601
|
): Promise<Response> {
|
|
562
602
|
const { signal, method, ...options } = init || {};
|
|
563
|
-
|
|
603
|
+
const abort = this._makeAbort(controller);
|
|
604
|
+
if (signal) signal.addEventListener('abort', abort, { once: true });
|
|
564
605
|
|
|
565
|
-
const timeout = setTimeout(
|
|
606
|
+
const timeout = setTimeout(abort, ms);
|
|
566
607
|
|
|
567
608
|
const isReadableBody =
|
|
568
609
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
@@ -580,15 +621,15 @@ export class Composio {
|
|
|
580
621
|
fetchOptions.method = method.toUpperCase();
|
|
581
622
|
}
|
|
582
623
|
|
|
583
|
-
|
|
624
|
+
try {
|
|
584
625
|
// use undefined this binding; fetch errors if bound to something else in browser/cloudflare
|
|
585
|
-
this.fetch.call(undefined, url, fetchOptions)
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
626
|
+
return await this.fetch.call(undefined, url, fetchOptions);
|
|
627
|
+
} finally {
|
|
628
|
+
clearTimeout(timeout);
|
|
629
|
+
}
|
|
589
630
|
}
|
|
590
631
|
|
|
591
|
-
private shouldRetry(response: Response): boolean {
|
|
632
|
+
private async shouldRetry(response: Response): Promise<boolean> {
|
|
592
633
|
// Note this is not a standard header.
|
|
593
634
|
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
594
635
|
|
|
@@ -639,9 +680,9 @@ export class Composio {
|
|
|
639
680
|
}
|
|
640
681
|
}
|
|
641
682
|
|
|
642
|
-
// If the API asks us to wait a certain amount of time
|
|
643
|
-
//
|
|
644
|
-
if (
|
|
683
|
+
// If the API asks us to wait a certain amount of time, just do what it
|
|
684
|
+
// says, but otherwise calculate a default
|
|
685
|
+
if (timeoutMillis === undefined) {
|
|
645
686
|
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
646
687
|
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
647
688
|
}
|
|
@@ -665,18 +706,18 @@ export class Composio {
|
|
|
665
706
|
return sleepSeconds * jitter * 1000;
|
|
666
707
|
}
|
|
667
708
|
|
|
668
|
-
buildRequest(
|
|
709
|
+
async buildRequest(
|
|
669
710
|
inputOptions: FinalRequestOptions,
|
|
670
711
|
{ retryCount = 0 }: { retryCount?: number } = {},
|
|
671
|
-
): { req: FinalizedRequestInit; url: string; timeout: number } {
|
|
712
|
+
): Promise<{ req: FinalizedRequestInit; url: string; timeout: number }> {
|
|
672
713
|
const options = { ...inputOptions };
|
|
673
|
-
const { method, path, query } = options;
|
|
714
|
+
const { method, path, query, defaultBaseURL } = options;
|
|
674
715
|
|
|
675
|
-
const url = this.buildURL(path!, query as Record<string, unknown
|
|
716
|
+
const url = this.buildURL(path!, query as Record<string, unknown>, defaultBaseURL);
|
|
676
717
|
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
|
|
677
718
|
options.timeout = options.timeout ?? this.timeout;
|
|
678
719
|
const { bodyHeaders, body } = this.buildBody({ options });
|
|
679
|
-
const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
720
|
+
const reqHeaders = await this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
680
721
|
|
|
681
722
|
const req: FinalizedRequestInit = {
|
|
682
723
|
method,
|
|
@@ -692,7 +733,7 @@ export class Composio {
|
|
|
692
733
|
return { req, url, timeout: options.timeout };
|
|
693
734
|
}
|
|
694
735
|
|
|
695
|
-
private buildHeaders({
|
|
736
|
+
private async buildHeaders({
|
|
696
737
|
options,
|
|
697
738
|
method,
|
|
698
739
|
bodyHeaders,
|
|
@@ -702,7 +743,7 @@ export class Composio {
|
|
|
702
743
|
method: HTTPMethod;
|
|
703
744
|
bodyHeaders: HeadersLike;
|
|
704
745
|
retryCount: number;
|
|
705
|
-
}): Headers {
|
|
746
|
+
}): Promise<Headers> {
|
|
706
747
|
let idempotencyHeaders: HeadersLike = {};
|
|
707
748
|
if (this.idempotencyHeader && method !== 'get') {
|
|
708
749
|
if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey();
|
|
@@ -718,7 +759,7 @@ export class Composio {
|
|
|
718
759
|
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
719
760
|
...getPlatformHeaders(),
|
|
720
761
|
},
|
|
721
|
-
this.authHeaders(options),
|
|
762
|
+
await this.authHeaders(options),
|
|
722
763
|
this._options.defaultHeaders,
|
|
723
764
|
bodyHeaders,
|
|
724
765
|
options.headers,
|
|
@@ -729,6 +770,12 @@ export class Composio {
|
|
|
729
770
|
return headers.values;
|
|
730
771
|
}
|
|
731
772
|
|
|
773
|
+
private _makeAbort(controller: AbortController) {
|
|
774
|
+
// note: we can't just inline this method inside `fetchWithTimeout()` because then the closure
|
|
775
|
+
// would capture all request options, and cause a memory leak.
|
|
776
|
+
return () => controller.abort();
|
|
777
|
+
}
|
|
778
|
+
|
|
732
779
|
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
733
780
|
bodyHeaders: HeadersLike;
|
|
734
781
|
body: BodyInit | undefined;
|
|
@@ -746,7 +793,7 @@ export class Composio {
|
|
|
746
793
|
// Preserve legacy string encoding behavior for now
|
|
747
794
|
headers.values.has('content-type')) ||
|
|
748
795
|
// `Blob` is superset of `File`
|
|
749
|
-
body instanceof Blob ||
|
|
796
|
+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
|
|
750
797
|
// `FormData` -> `multipart/form-data`
|
|
751
798
|
body instanceof FormData ||
|
|
752
799
|
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
@@ -761,6 +808,14 @@ export class Composio {
|
|
|
761
808
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
762
809
|
) {
|
|
763
810
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
811
|
+
} else if (
|
|
812
|
+
typeof body === 'object' &&
|
|
813
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
|
|
814
|
+
) {
|
|
815
|
+
return {
|
|
816
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
817
|
+
body: this.stringifyQuery(body),
|
|
818
|
+
};
|
|
764
819
|
} else {
|
|
765
820
|
return this.#encoder({ body, headers });
|
|
766
821
|
}
|
|
@@ -785,31 +840,70 @@ export class Composio {
|
|
|
785
840
|
|
|
786
841
|
static toFile = Uploads.toFile;
|
|
787
842
|
|
|
843
|
+
/**
|
|
844
|
+
* Authentication configuration management
|
|
845
|
+
*/
|
|
788
846
|
authConfigs: API.AuthConfigs = new API.AuthConfigs(this);
|
|
847
|
+
/**
|
|
848
|
+
* Connected account management
|
|
849
|
+
*/
|
|
789
850
|
connectedAccounts: API.ConnectedAccounts = new API.ConnectedAccounts(this);
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
851
|
+
/**
|
|
852
|
+
* Connected account management
|
|
853
|
+
*/
|
|
854
|
+
link: API.Link = new API.Link(this);
|
|
855
|
+
/**
|
|
856
|
+
* Toolkit and tool management
|
|
857
|
+
*/
|
|
794
858
|
toolkits: API.Toolkits = new API.Toolkits(this);
|
|
859
|
+
/**
|
|
860
|
+
* Tool execution endpoints
|
|
861
|
+
*/
|
|
795
862
|
tools: API.Tools = new API.Tools(this);
|
|
863
|
+
/**
|
|
864
|
+
* Trigger management and execution
|
|
865
|
+
*/
|
|
796
866
|
triggerInstances: API.TriggerInstances = new API.TriggerInstances(this);
|
|
867
|
+
/**
|
|
868
|
+
* Trigger management and execution
|
|
869
|
+
*/
|
|
797
870
|
triggersTypes: API.TriggersTypes = new API.TriggersTypes(this);
|
|
798
|
-
|
|
871
|
+
/**
|
|
872
|
+
* MCP server management
|
|
873
|
+
*/
|
|
799
874
|
mcp: API.Mcp = new API.Mcp(this);
|
|
875
|
+
/**
|
|
876
|
+
* File management
|
|
877
|
+
*/
|
|
878
|
+
files: API.Files = new API.Files(this);
|
|
879
|
+
/**
|
|
880
|
+
* Endpoints to help with migration from v1 to v3
|
|
881
|
+
*/
|
|
882
|
+
migration: API.Migration = new API.Migration(this);
|
|
883
|
+
cli: API.Cli = new API.Cli(this);
|
|
884
|
+
project: API.Project = new API.Project(this);
|
|
885
|
+
logs: API.Logs = new API.Logs(this);
|
|
886
|
+
/**
|
|
887
|
+
* (Labs) Tool router endpoints
|
|
888
|
+
*/
|
|
889
|
+
toolRouter: API.ToolRouter = new API.ToolRouter(this);
|
|
800
890
|
}
|
|
891
|
+
|
|
801
892
|
Composio.AuthConfigs = AuthConfigs;
|
|
802
893
|
Composio.ConnectedAccounts = ConnectedAccounts;
|
|
803
|
-
Composio.
|
|
804
|
-
Composio.ActionExecution = ActionExecution;
|
|
805
|
-
Composio.Org = Org;
|
|
806
|
-
Composio.TeamMembers = TeamMembers;
|
|
894
|
+
Composio.Link = Link;
|
|
807
895
|
Composio.Toolkits = Toolkits;
|
|
808
896
|
Composio.Tools = Tools;
|
|
809
897
|
Composio.TriggerInstances = TriggerInstances;
|
|
810
898
|
Composio.TriggersTypes = TriggersTypes;
|
|
811
|
-
Composio.Cli = Cli;
|
|
812
899
|
Composio.Mcp = Mcp;
|
|
900
|
+
Composio.Files = Files;
|
|
901
|
+
Composio.Migration = Migration;
|
|
902
|
+
Composio.Cli = Cli;
|
|
903
|
+
Composio.Project = Project;
|
|
904
|
+
Composio.Logs = Logs;
|
|
905
|
+
Composio.ToolRouter = ToolRouter;
|
|
906
|
+
|
|
813
907
|
export declare namespace Composio {
|
|
814
908
|
export type RequestOptions = Opts.RequestOptions;
|
|
815
909
|
|
|
@@ -837,33 +931,14 @@ export declare namespace Composio {
|
|
|
837
931
|
type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse,
|
|
838
932
|
type ConnectedAccountCreateParams as ConnectedAccountCreateParams,
|
|
839
933
|
type ConnectedAccountListParams as ConnectedAccountListParams,
|
|
934
|
+
type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams,
|
|
840
935
|
type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams,
|
|
841
936
|
};
|
|
842
937
|
|
|
843
938
|
export {
|
|
844
|
-
|
|
845
|
-
type
|
|
846
|
-
type
|
|
847
|
-
};
|
|
848
|
-
|
|
849
|
-
export {
|
|
850
|
-
ActionExecution as ActionExecution,
|
|
851
|
-
type ActionExecutionLogResponse as ActionExecutionLogResponse,
|
|
852
|
-
type ActionExecutionRetrieveFieldsResponse as ActionExecutionRetrieveFieldsResponse,
|
|
853
|
-
type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse,
|
|
854
|
-
type ActionExecutionLogParams as ActionExecutionLogParams,
|
|
855
|
-
};
|
|
856
|
-
|
|
857
|
-
export { Org as Org };
|
|
858
|
-
|
|
859
|
-
export {
|
|
860
|
-
TeamMembers as TeamMembers,
|
|
861
|
-
type TeamMemberUpdateResponse as TeamMemberUpdateResponse,
|
|
862
|
-
type TeamMemberListResponse as TeamMemberListResponse,
|
|
863
|
-
type TeamMemberInviteResponse as TeamMemberInviteResponse,
|
|
864
|
-
type TeamMemberRemoveResponse as TeamMemberRemoveResponse,
|
|
865
|
-
type TeamMemberUpdateParams as TeamMemberUpdateParams,
|
|
866
|
-
type TeamMemberInviteParams as TeamMemberInviteParams,
|
|
939
|
+
Link as Link,
|
|
940
|
+
type LinkCreateResponse as LinkCreateResponse,
|
|
941
|
+
type LinkCreateParams as LinkCreateParams,
|
|
867
942
|
};
|
|
868
943
|
|
|
869
944
|
export {
|
|
@@ -871,6 +946,7 @@ export declare namespace Composio {
|
|
|
871
946
|
type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
|
|
872
947
|
type ToolkitListResponse as ToolkitListResponse,
|
|
873
948
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
949
|
+
type ToolkitRetrieveParams as ToolkitRetrieveParams,
|
|
874
950
|
type ToolkitListParams as ToolkitListParams,
|
|
875
951
|
};
|
|
876
952
|
|
|
@@ -882,6 +958,7 @@ export declare namespace Composio {
|
|
|
882
958
|
type ToolGetInputResponse as ToolGetInputResponse,
|
|
883
959
|
type ToolProxyResponse as ToolProxyResponse,
|
|
884
960
|
type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse,
|
|
961
|
+
type ToolRetrieveParams as ToolRetrieveParams,
|
|
885
962
|
type ToolListParams as ToolListParams,
|
|
886
963
|
type ToolExecuteParams as ToolExecuteParams,
|
|
887
964
|
type ToolGetInputParams as ToolGetInputParams,
|
|
@@ -891,11 +968,8 @@ export declare namespace Composio {
|
|
|
891
968
|
export {
|
|
892
969
|
TriggerInstances as TriggerInstances,
|
|
893
970
|
type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
|
|
894
|
-
type TriggerInstanceRemoveUpsertResponse as TriggerInstanceRemoveUpsertResponse,
|
|
895
|
-
type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
|
|
896
971
|
type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
|
|
897
972
|
type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
|
|
898
|
-
type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams,
|
|
899
973
|
type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams,
|
|
900
974
|
};
|
|
901
975
|
|
|
@@ -904,18 +978,10 @@ export declare namespace Composio {
|
|
|
904
978
|
type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse,
|
|
905
979
|
type TriggersTypeListResponse as TriggersTypeListResponse,
|
|
906
980
|
type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse,
|
|
981
|
+
type TriggersTypeRetrieveParams as TriggersTypeRetrieveParams,
|
|
907
982
|
type TriggersTypeListParams as TriggersTypeListParams,
|
|
908
983
|
};
|
|
909
984
|
|
|
910
|
-
export {
|
|
911
|
-
Cli as Cli,
|
|
912
|
-
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
913
|
-
type CliLinkSessionResponse as CliLinkSessionResponse,
|
|
914
|
-
type CliRetrieveSessionResponse as CliRetrieveSessionResponse,
|
|
915
|
-
type CliLinkSessionParams as CliLinkSessionParams,
|
|
916
|
-
type CliRetrieveSessionParams as CliRetrieveSessionParams,
|
|
917
|
-
};
|
|
918
|
-
|
|
919
985
|
export {
|
|
920
986
|
Mcp as Mcp,
|
|
921
987
|
type McpCreateResponse as McpCreateResponse,
|
|
@@ -924,10 +990,41 @@ export declare namespace Composio {
|
|
|
924
990
|
type McpListResponse as McpListResponse,
|
|
925
991
|
type McpDeleteResponse as McpDeleteResponse,
|
|
926
992
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
927
|
-
type McpValidateResponse as McpValidateResponse,
|
|
928
993
|
type McpCreateParams as McpCreateParams,
|
|
929
994
|
type McpUpdateParams as McpUpdateParams,
|
|
930
995
|
type McpListParams as McpListParams,
|
|
931
|
-
type
|
|
996
|
+
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
export {
|
|
1000
|
+
Files as Files,
|
|
1001
|
+
type FileListResponse as FileListResponse,
|
|
1002
|
+
type FileCreatePresignedURLResponse as FileCreatePresignedURLResponse,
|
|
1003
|
+
type FileListParams as FileListParams,
|
|
1004
|
+
type FileCreatePresignedURLParams as FileCreatePresignedURLParams,
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
export {
|
|
1008
|
+
Migration as Migration,
|
|
1009
|
+
type MigrationRetrieveNanoidResponse as MigrationRetrieveNanoidResponse,
|
|
1010
|
+
type MigrationRetrieveNanoidParams as MigrationRetrieveNanoidParams,
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
export {
|
|
1014
|
+
Cli as Cli,
|
|
1015
|
+
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
1016
|
+
type CliGetSessionResponse as CliGetSessionResponse,
|
|
1017
|
+
type CliCreateSessionParams as CliCreateSessionParams,
|
|
1018
|
+
type CliGetSessionParams as CliGetSessionParams,
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
export { Project as Project };
|
|
1022
|
+
|
|
1023
|
+
export { Logs as Logs };
|
|
1024
|
+
|
|
1025
|
+
export {
|
|
1026
|
+
ToolRouter as ToolRouter,
|
|
1027
|
+
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
1028
|
+
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
932
1029
|
};
|
|
933
1030
|
}
|