@composio/client 0.1.0-alpha.7 → 0.1.0-alpha.71
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 +977 -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 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +85 -43
- package/client.d.ts.map +1 -1
- package/client.js +162 -108
- package/client.js.map +1 -1
- package/client.mjs +144 -67
- 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 +12 -11
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +12 -11
- 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 +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- 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 +6 -5
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +4 -3
- 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 +14 -11
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +511 -54
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +511 -54
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +79 -6
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +79 -6
- 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 +9882 -231
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +9882 -231
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +124 -7
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +124 -7
- 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 -12
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -12
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +14 -12
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -6
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +2273 -0
- package/resources/link.d.mts.map +1 -0
- package/resources/link.d.ts +2273 -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/{auth.mjs → logs.mjs} +2 -2
- 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 +65 -0
- package/resources/mcp/generate.d.mts.map +1 -0
- package/resources/mcp/generate.d.ts +65 -0
- package/resources/mcp/generate.d.ts.map +1 -0
- package/resources/mcp/generate.js +32 -0
- package/resources/mcp/generate.js.map +1 -0
- package/resources/mcp/generate.mjs +28 -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 +95 -42
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +94 -19
- 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 +98 -0
- package/resources/tool-router/session/files.js.map +1 -0
- package/resources/tool-router/session/files.mjs +94 -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/{auth → tool-router/session}/index.js +3 -3
- 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 +4024 -0
- package/resources/tool-router/session/session.d.mts.map +1 -0
- package/resources/tool-router/session/session.d.ts +4024 -0
- package/resources/tool-router/session/session.d.ts.map +1 -0
- package/resources/tool-router/session/session.js +224 -0
- package/resources/tool-router/session/session.js.map +1 -0
- package/resources/tool-router/session/session.mjs +219 -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 +322 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +322 -6
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +25 -4
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +25 -4
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +1407 -41
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1407 -41
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +88 -9
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +88 -9
- 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 +190 -43
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +190 -43
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +36 -37
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +35 -14
- 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 +160 -12
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +160 -12
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +19 -4
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +19 -4
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +239 -131
- 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 +13 -12
- 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/env.ts +2 -2
- package/src/internal/utils/log.ts +3 -2
- 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 +587 -73
- 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 +18489 -448
- package/src/resources/files.ts +197 -0
- package/src/resources/index.ts +30 -28
- package/src/resources/link.ts +4266 -0
- package/src/resources/logs/index.ts +10 -0
- package/src/resources/logs/logs.ts +31 -0
- package/src/resources/logs/tools.ts +239 -0
- package/src/resources/logs/triggers.ts +241 -0
- package/src/resources/{auth.ts → logs.ts} +1 -1
- package/src/resources/mcp/custom.ts +125 -0
- package/src/resources/mcp/generate.ts +77 -0
- package/src/resources/mcp/index.ts +3 -3
- package/src/resources/mcp/mcp.ts +490 -203
- 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 +33 -0
- package/src/resources/tool-router/session/files.ts +284 -0
- package/src/resources/tool-router/session/index.ts +39 -0
- package/src/resources/tool-router/session/session.ts +5034 -0
- package/src/resources/{org.ts → tool-router/session.ts} +1 -1
- package/src/resources/tool-router/tool-router.ts +168 -0
- package/src/resources/tool-router.ts +3 -0
- package/src/resources/toolkits.ts +377 -10
- package/src/resources/tools.ts +2176 -63
- 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 +206 -69
- package/src/resources/triggers-types.ts +168 -16
- 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/auth/auth.d.mts +0 -10
- package/resources/auth/auth.d.mts.map +0 -1
- package/resources/auth/auth.d.ts +0 -10
- package/resources/auth/auth.d.ts.map +0 -1
- package/resources/auth/auth.js +0 -39
- package/resources/auth/auth.js.map +0 -1
- package/resources/auth/auth.mjs +0 -12
- package/resources/auth/auth.mjs.map +0 -1
- package/resources/auth/index.d.mts +0 -3
- package/resources/auth/index.d.mts.map +0 -1
- package/resources/auth/index.d.ts +0 -3
- package/resources/auth/index.d.ts.map +0 -1
- package/resources/auth/index.js.map +0 -1
- package/resources/auth/index.mjs +0 -4
- package/resources/auth/index.mjs.map +0 -1
- package/resources/auth/session.d.mts +0 -75
- package/resources/auth/session.d.mts.map +0 -1
- package/resources/auth/session.d.ts +0 -75
- package/resources/auth/session.d.ts.map +0 -1
- package/resources/auth/session.js +0 -12
- package/resources/auth/session.js.map +0 -1
- package/resources/auth/session.mjs +0 -8
- package/resources/auth/session.mjs.map +0 -1
- package/resources/auth.d.mts +0 -2
- package/resources/auth.d.mts.map +0 -1
- package/resources/auth.d.ts +0 -2
- package/resources/auth.d.ts.map +0 -1
- package/resources/auth.js +0 -19
- package/resources/auth.js.map +0 -1
- package/resources/auth.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/action-execution.ts +0 -244
- package/src/resources/auth/auth.ts +0 -15
- package/src/resources/auth/index.ts +0 -4
- package/src/resources/auth/session.ts +0 -127
- 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,15 @@ 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
|
+
ConnectedAccountPatchParams,
|
|
43
|
+
ConnectedAccountPatchResponse,
|
|
44
|
+
ConnectedAccountRefreshParams,
|
|
58
45
|
ConnectedAccountRefreshResponse,
|
|
59
46
|
ConnectedAccountRetrieveResponse,
|
|
60
47
|
ConnectedAccountUpdateStatusParams,
|
|
@@ -62,18 +49,23 @@ import {
|
|
|
62
49
|
ConnectedAccounts,
|
|
63
50
|
} from './resources/connected-accounts';
|
|
64
51
|
import {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
52
|
+
FileCreatePresignedURLParams,
|
|
53
|
+
FileCreatePresignedURLResponse,
|
|
54
|
+
FileListParams,
|
|
55
|
+
FileListResponse,
|
|
56
|
+
Files,
|
|
57
|
+
} from './resources/files';
|
|
58
|
+
import { Link, LinkCreateParams, LinkCreateResponse } from './resources/link';
|
|
59
|
+
import {
|
|
60
|
+
Migration,
|
|
61
|
+
MigrationRetrieveNanoidParams,
|
|
62
|
+
MigrationRetrieveNanoidResponse,
|
|
63
|
+
} from './resources/migration';
|
|
73
64
|
import {
|
|
74
65
|
ToolkitListParams,
|
|
75
66
|
ToolkitListResponse,
|
|
76
67
|
ToolkitRetrieveCategoriesResponse,
|
|
68
|
+
ToolkitRetrieveParams,
|
|
77
69
|
ToolkitRetrieveResponse,
|
|
78
70
|
Toolkits,
|
|
79
71
|
} from './resources/toolkits';
|
|
@@ -87,21 +79,35 @@ import {
|
|
|
87
79
|
ToolProxyParams,
|
|
88
80
|
ToolProxyResponse,
|
|
89
81
|
ToolRetrieveEnumResponse,
|
|
82
|
+
ToolRetrieveParams,
|
|
90
83
|
ToolRetrieveResponse,
|
|
91
84
|
Tools,
|
|
92
85
|
} from './resources/tools';
|
|
93
|
-
import { Trigger, TriggerLogParams, TriggerLogResponse } from './resources/trigger';
|
|
94
86
|
import {
|
|
95
87
|
TriggersTypeListParams,
|
|
96
88
|
TriggersTypeListResponse,
|
|
97
89
|
TriggersTypeRetrieveEnumResponse,
|
|
90
|
+
TriggersTypeRetrieveParams,
|
|
98
91
|
TriggersTypeRetrieveResponse,
|
|
99
92
|
TriggersTypes,
|
|
100
93
|
} from './resources/triggers-types';
|
|
101
94
|
import { readEnv } from './internal/utils/env';
|
|
102
|
-
import {
|
|
95
|
+
import {
|
|
96
|
+
type LogLevel,
|
|
97
|
+
type Logger,
|
|
98
|
+
formatRequestDetails,
|
|
99
|
+
loggerFor,
|
|
100
|
+
parseLogLevel,
|
|
101
|
+
} from './internal/utils/log';
|
|
103
102
|
import { isEmptyObj } from './internal/utils/values';
|
|
104
|
-
import {
|
|
103
|
+
import {
|
|
104
|
+
Cli,
|
|
105
|
+
CliCreateSessionParams,
|
|
106
|
+
CliCreateSessionResponse,
|
|
107
|
+
CliGetSessionParams,
|
|
108
|
+
CliGetSessionResponse,
|
|
109
|
+
} from './resources/cli/cli';
|
|
110
|
+
import { Logs } from './resources/logs/logs';
|
|
105
111
|
import {
|
|
106
112
|
Mcp,
|
|
107
113
|
McpCreateParams,
|
|
@@ -109,20 +115,21 @@ import {
|
|
|
109
115
|
McpDeleteResponse,
|
|
110
116
|
McpListParams,
|
|
111
117
|
McpListResponse,
|
|
118
|
+
McpRetrieveAppParams,
|
|
112
119
|
McpRetrieveAppResponse,
|
|
113
120
|
McpRetrieveResponse,
|
|
114
121
|
McpUpdateParams,
|
|
115
122
|
McpUpdateResponse,
|
|
116
|
-
McpValidateParams,
|
|
117
|
-
McpValidateResponse,
|
|
118
123
|
} from './resources/mcp/mcp';
|
|
119
|
-
import {
|
|
124
|
+
import { Project } from './resources/project/project';
|
|
125
|
+
import {
|
|
126
|
+
ToolRouter,
|
|
127
|
+
ToolRouterCreateSessionParams,
|
|
128
|
+
ToolRouterCreateSessionResponse,
|
|
129
|
+
} from './resources/tool-router/tool-router';
|
|
120
130
|
import {
|
|
121
131
|
TriggerInstanceListActiveParams,
|
|
122
132
|
TriggerInstanceListActiveResponse,
|
|
123
|
-
TriggerInstanceRemoveUpsertResponse,
|
|
124
|
-
TriggerInstanceUpdateStatusParams,
|
|
125
|
-
TriggerInstanceUpdateStatusResponse,
|
|
126
133
|
TriggerInstanceUpsertParams,
|
|
127
134
|
TriggerInstanceUpsertResponse,
|
|
128
135
|
TriggerInstances,
|
|
@@ -131,15 +138,15 @@ import {
|
|
|
131
138
|
const environments = {
|
|
132
139
|
production: 'https://backend.composio.dev',
|
|
133
140
|
staging: 'https://staging-backend.composio.dev',
|
|
134
|
-
local: 'http://localhost:
|
|
141
|
+
local: 'http://localhost:9900',
|
|
135
142
|
};
|
|
136
143
|
type Environment = keyof typeof environments;
|
|
137
144
|
|
|
138
145
|
export interface ClientOptions {
|
|
139
146
|
/**
|
|
140
|
-
*
|
|
147
|
+
* API key authentication
|
|
141
148
|
*/
|
|
142
|
-
apiKey?: string | undefined;
|
|
149
|
+
apiKey?: string | null | undefined;
|
|
143
150
|
|
|
144
151
|
/**
|
|
145
152
|
* Specifies the environment to use for the API.
|
|
@@ -147,7 +154,7 @@ export interface ClientOptions {
|
|
|
147
154
|
* Each environment maps to a different base URL:
|
|
148
155
|
* - `production` corresponds to `https://backend.composio.dev`
|
|
149
156
|
* - `staging` corresponds to `https://staging-backend.composio.dev`
|
|
150
|
-
* - `local` corresponds to `http://localhost:
|
|
157
|
+
* - `local` corresponds to `http://localhost:9900`
|
|
151
158
|
*/
|
|
152
159
|
environment?: Environment | undefined;
|
|
153
160
|
|
|
@@ -164,6 +171,8 @@ export interface ClientOptions {
|
|
|
164
171
|
*
|
|
165
172
|
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
166
173
|
* much longer than this timeout before the promise succeeds or fails.
|
|
174
|
+
*
|
|
175
|
+
* @unit milliseconds
|
|
167
176
|
*/
|
|
168
177
|
timeout?: number | undefined;
|
|
169
178
|
/**
|
|
@@ -222,12 +231,12 @@ export interface ClientOptions {
|
|
|
222
231
|
* API Client for interfacing with the Composio API.
|
|
223
232
|
*/
|
|
224
233
|
export class Composio {
|
|
225
|
-
apiKey: string;
|
|
234
|
+
apiKey: string | null;
|
|
226
235
|
|
|
227
236
|
baseURL: string;
|
|
228
237
|
maxRetries: number;
|
|
229
238
|
timeout: number;
|
|
230
|
-
logger: Logger
|
|
239
|
+
logger: Logger;
|
|
231
240
|
logLevel: LogLevel | undefined;
|
|
232
241
|
fetchOptions: MergedRequestInit | undefined;
|
|
233
242
|
|
|
@@ -239,7 +248,7 @@ export class Composio {
|
|
|
239
248
|
/**
|
|
240
249
|
* API Client for interfacing with the Composio API.
|
|
241
250
|
*
|
|
242
|
-
* @param {string | undefined} [opts.apiKey=process.env['COMPOSIO_API_KEY'] ??
|
|
251
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['COMPOSIO_API_KEY'] ?? null]
|
|
243
252
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
244
253
|
* @param {string} [opts.baseURL=process.env['COMPOSIO_BASE_URL'] ?? https://backend.composio.dev] - Override the default base URL for the API.
|
|
245
254
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
@@ -251,15 +260,9 @@ export class Composio {
|
|
|
251
260
|
*/
|
|
252
261
|
constructor({
|
|
253
262
|
baseURL = readEnv('COMPOSIO_BASE_URL'),
|
|
254
|
-
apiKey = readEnv('COMPOSIO_API_KEY'),
|
|
263
|
+
apiKey = readEnv('COMPOSIO_API_KEY') ?? null,
|
|
255
264
|
...opts
|
|
256
265
|
}: ClientOptions = {}) {
|
|
257
|
-
if (apiKey === undefined) {
|
|
258
|
-
throw new Errors.ComposioError(
|
|
259
|
-
"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' }).",
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
266
|
const options: ClientOptions = {
|
|
264
267
|
apiKey,
|
|
265
268
|
...opts,
|
|
@@ -288,11 +291,50 @@ export class Composio {
|
|
|
288
291
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
289
292
|
this.#encoder = Opts.FallbackEncoder;
|
|
290
293
|
|
|
294
|
+
const customHeadersEnv = readEnv('COMPOSIO_CUSTOM_HEADERS');
|
|
295
|
+
if (customHeadersEnv) {
|
|
296
|
+
const parsed: Record<string, string> = {};
|
|
297
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
298
|
+
const colon = line.indexOf(':');
|
|
299
|
+
if (colon >= 0) {
|
|
300
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
304
|
+
}
|
|
305
|
+
|
|
291
306
|
this._options = options;
|
|
292
307
|
|
|
293
308
|
this.apiKey = apiKey;
|
|
294
309
|
}
|
|
295
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
313
|
+
*/
|
|
314
|
+
withOptions(options: Partial<ClientOptions>): this {
|
|
315
|
+
const client = new (this.constructor as any as new (props: ClientOptions) => typeof this)({
|
|
316
|
+
...this._options,
|
|
317
|
+
environment: options.environment ? options.environment : undefined,
|
|
318
|
+
baseURL: options.environment ? undefined : this.baseURL,
|
|
319
|
+
maxRetries: this.maxRetries,
|
|
320
|
+
timeout: this.timeout,
|
|
321
|
+
logger: this.logger,
|
|
322
|
+
logLevel: this.logLevel,
|
|
323
|
+
fetch: this.fetch,
|
|
324
|
+
fetchOptions: this.fetchOptions,
|
|
325
|
+
apiKey: this.apiKey,
|
|
326
|
+
...options,
|
|
327
|
+
});
|
|
328
|
+
return client;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Check whether the base URL is set to its default.
|
|
333
|
+
*/
|
|
334
|
+
#baseURLOverridden(): boolean {
|
|
335
|
+
return this.baseURL !== environments[this._options.environment || 'production'];
|
|
336
|
+
}
|
|
337
|
+
|
|
296
338
|
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
297
339
|
return this._options.defaultQuery;
|
|
298
340
|
}
|
|
@@ -301,12 +343,15 @@ export class Composio {
|
|
|
301
343
|
return;
|
|
302
344
|
}
|
|
303
345
|
|
|
304
|
-
protected authHeaders(opts: FinalRequestOptions): NullableHeaders | undefined {
|
|
346
|
+
protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
347
|
+
if (this.apiKey == null) {
|
|
348
|
+
return undefined;
|
|
349
|
+
}
|
|
305
350
|
return buildHeaders([{ 'x-api-key': this.apiKey }]);
|
|
306
351
|
}
|
|
307
352
|
|
|
308
|
-
protected stringifyQuery(query: Record<string, unknown>): string {
|
|
309
|
-
return
|
|
353
|
+
protected stringifyQuery(query: object | Record<string, unknown>): string {
|
|
354
|
+
return stringifyQuery(query);
|
|
310
355
|
}
|
|
311
356
|
|
|
312
357
|
private getUserAgent(): string {
|
|
@@ -326,19 +371,25 @@ export class Composio {
|
|
|
326
371
|
return Errors.APIError.generate(status, error, message, headers);
|
|
327
372
|
}
|
|
328
373
|
|
|
329
|
-
buildURL(
|
|
374
|
+
buildURL(
|
|
375
|
+
path: string,
|
|
376
|
+
query: Record<string, unknown> | null | undefined,
|
|
377
|
+
defaultBaseURL?: string | undefined,
|
|
378
|
+
): string {
|
|
379
|
+
const baseURL = (!this.#baseURLOverridden() && defaultBaseURL) || this.baseURL;
|
|
330
380
|
const url =
|
|
331
381
|
isAbsoluteURL(path) ?
|
|
332
382
|
new URL(path)
|
|
333
|
-
: new URL(
|
|
383
|
+
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
334
384
|
|
|
335
385
|
const defaultQuery = this.defaultQuery();
|
|
336
|
-
|
|
337
|
-
|
|
386
|
+
const pathQuery = Object.fromEntries(url.searchParams);
|
|
387
|
+
if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
|
|
388
|
+
query = { ...pathQuery, ...defaultQuery, ...query };
|
|
338
389
|
}
|
|
339
390
|
|
|
340
391
|
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
341
|
-
url.search = this.stringifyQuery(query
|
|
392
|
+
url.search = this.stringifyQuery(query);
|
|
342
393
|
}
|
|
343
394
|
|
|
344
395
|
return url.toString();
|
|
@@ -412,7 +463,9 @@ export class Composio {
|
|
|
412
463
|
|
|
413
464
|
await this.prepareOptions(options);
|
|
414
465
|
|
|
415
|
-
const { req, url, timeout } = this.buildRequest(options, {
|
|
466
|
+
const { req, url, timeout } = await this.buildRequest(options, {
|
|
467
|
+
retryCount: maxRetries - retriesRemaining,
|
|
468
|
+
});
|
|
416
469
|
|
|
417
470
|
await this.prepareRequest(req, { url, options });
|
|
418
471
|
|
|
@@ -440,7 +493,7 @@ export class Composio {
|
|
|
440
493
|
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
441
494
|
const headersTime = Date.now();
|
|
442
495
|
|
|
443
|
-
if (response instanceof Error) {
|
|
496
|
+
if (response instanceof globalThis.Error) {
|
|
444
497
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
445
498
|
if (options.signal?.aborted) {
|
|
446
499
|
throw new Errors.APIUserAbortError();
|
|
@@ -490,7 +543,7 @@ export class Composio {
|
|
|
490
543
|
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
491
544
|
|
|
492
545
|
if (!response.ok) {
|
|
493
|
-
const shouldRetry = this.shouldRetry(response);
|
|
546
|
+
const shouldRetry = await this.shouldRetry(response);
|
|
494
547
|
if (retriesRemaining && shouldRetry) {
|
|
495
548
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
496
549
|
|
|
@@ -520,7 +573,7 @@ export class Composio {
|
|
|
520
573
|
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
521
574
|
|
|
522
575
|
const errText = await response.text().catch((err: any) => castToError(err).message);
|
|
523
|
-
const errJSON = safeJSON(errText);
|
|
576
|
+
const errJSON = safeJSON(errText) as any;
|
|
524
577
|
const errMessage = errJSON ? undefined : errText;
|
|
525
578
|
|
|
526
579
|
loggerFor(this).debug(
|
|
@@ -561,9 +614,10 @@ export class Composio {
|
|
|
561
614
|
controller: AbortController,
|
|
562
615
|
): Promise<Response> {
|
|
563
616
|
const { signal, method, ...options } = init || {};
|
|
564
|
-
|
|
617
|
+
const abort = this._makeAbort(controller);
|
|
618
|
+
if (signal) signal.addEventListener('abort', abort, { once: true });
|
|
565
619
|
|
|
566
|
-
const timeout = setTimeout(
|
|
620
|
+
const timeout = setTimeout(abort, ms);
|
|
567
621
|
|
|
568
622
|
const isReadableBody =
|
|
569
623
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
@@ -581,15 +635,15 @@ export class Composio {
|
|
|
581
635
|
fetchOptions.method = method.toUpperCase();
|
|
582
636
|
}
|
|
583
637
|
|
|
584
|
-
|
|
638
|
+
try {
|
|
585
639
|
// use undefined this binding; fetch errors if bound to something else in browser/cloudflare
|
|
586
|
-
this.fetch.call(undefined, url, fetchOptions)
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
640
|
+
return await this.fetch.call(undefined, url, fetchOptions);
|
|
641
|
+
} finally {
|
|
642
|
+
clearTimeout(timeout);
|
|
643
|
+
}
|
|
590
644
|
}
|
|
591
645
|
|
|
592
|
-
private shouldRetry(response: Response): boolean {
|
|
646
|
+
private async shouldRetry(response: Response): Promise<boolean> {
|
|
593
647
|
// Note this is not a standard header.
|
|
594
648
|
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
595
649
|
|
|
@@ -640,9 +694,9 @@ export class Composio {
|
|
|
640
694
|
}
|
|
641
695
|
}
|
|
642
696
|
|
|
643
|
-
// If the API asks us to wait a certain amount of time
|
|
644
|
-
//
|
|
645
|
-
if (
|
|
697
|
+
// If the API asks us to wait a certain amount of time, just do what it
|
|
698
|
+
// says, but otherwise calculate a default
|
|
699
|
+
if (timeoutMillis === undefined) {
|
|
646
700
|
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
647
701
|
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
648
702
|
}
|
|
@@ -666,18 +720,18 @@ export class Composio {
|
|
|
666
720
|
return sleepSeconds * jitter * 1000;
|
|
667
721
|
}
|
|
668
722
|
|
|
669
|
-
buildRequest(
|
|
723
|
+
async buildRequest(
|
|
670
724
|
inputOptions: FinalRequestOptions,
|
|
671
725
|
{ retryCount = 0 }: { retryCount?: number } = {},
|
|
672
|
-
): { req: FinalizedRequestInit; url: string; timeout: number } {
|
|
726
|
+
): Promise<{ req: FinalizedRequestInit; url: string; timeout: number }> {
|
|
673
727
|
const options = { ...inputOptions };
|
|
674
|
-
const { method, path, query } = options;
|
|
728
|
+
const { method, path, query, defaultBaseURL } = options;
|
|
675
729
|
|
|
676
|
-
const url = this.buildURL(path!, query as Record<string, unknown
|
|
730
|
+
const url = this.buildURL(path!, query as Record<string, unknown>, defaultBaseURL);
|
|
677
731
|
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
|
|
678
732
|
options.timeout = options.timeout ?? this.timeout;
|
|
679
733
|
const { bodyHeaders, body } = this.buildBody({ options });
|
|
680
|
-
const reqHeaders = this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
734
|
+
const reqHeaders = await this.buildHeaders({ options: inputOptions, method, bodyHeaders, retryCount });
|
|
681
735
|
|
|
682
736
|
const req: FinalizedRequestInit = {
|
|
683
737
|
method,
|
|
@@ -693,7 +747,7 @@ export class Composio {
|
|
|
693
747
|
return { req, url, timeout: options.timeout };
|
|
694
748
|
}
|
|
695
749
|
|
|
696
|
-
private buildHeaders({
|
|
750
|
+
private async buildHeaders({
|
|
697
751
|
options,
|
|
698
752
|
method,
|
|
699
753
|
bodyHeaders,
|
|
@@ -703,7 +757,7 @@ export class Composio {
|
|
|
703
757
|
method: HTTPMethod;
|
|
704
758
|
bodyHeaders: HeadersLike;
|
|
705
759
|
retryCount: number;
|
|
706
|
-
}): Headers {
|
|
760
|
+
}): Promise<Headers> {
|
|
707
761
|
let idempotencyHeaders: HeadersLike = {};
|
|
708
762
|
if (this.idempotencyHeader && method !== 'get') {
|
|
709
763
|
if (!options.idempotencyKey) options.idempotencyKey = this.defaultIdempotencyKey();
|
|
@@ -719,7 +773,7 @@ export class Composio {
|
|
|
719
773
|
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
720
774
|
...getPlatformHeaders(),
|
|
721
775
|
},
|
|
722
|
-
this.authHeaders(options),
|
|
776
|
+
await this.authHeaders(options),
|
|
723
777
|
this._options.defaultHeaders,
|
|
724
778
|
bodyHeaders,
|
|
725
779
|
options.headers,
|
|
@@ -730,6 +784,12 @@ export class Composio {
|
|
|
730
784
|
return headers.values;
|
|
731
785
|
}
|
|
732
786
|
|
|
787
|
+
private _makeAbort(controller: AbortController) {
|
|
788
|
+
// note: we can't just inline this method inside `fetchWithTimeout()` because then the closure
|
|
789
|
+
// would capture all request options, and cause a memory leak.
|
|
790
|
+
return () => controller.abort();
|
|
791
|
+
}
|
|
792
|
+
|
|
733
793
|
private buildBody({ options: { body, headers: rawHeaders } }: { options: FinalRequestOptions }): {
|
|
734
794
|
bodyHeaders: HeadersLike;
|
|
735
795
|
body: BodyInit | undefined;
|
|
@@ -747,7 +807,7 @@ export class Composio {
|
|
|
747
807
|
// Preserve legacy string encoding behavior for now
|
|
748
808
|
headers.values.has('content-type')) ||
|
|
749
809
|
// `Blob` is superset of `File`
|
|
750
|
-
body instanceof Blob ||
|
|
810
|
+
((globalThis as any).Blob && body instanceof (globalThis as any).Blob) ||
|
|
751
811
|
// `FormData` -> `multipart/form-data`
|
|
752
812
|
body instanceof FormData ||
|
|
753
813
|
// `URLSearchParams` -> `application/x-www-form-urlencoded`
|
|
@@ -762,6 +822,14 @@ export class Composio {
|
|
|
762
822
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
|
|
763
823
|
) {
|
|
764
824
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
|
|
825
|
+
} else if (
|
|
826
|
+
typeof body === 'object' &&
|
|
827
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded'
|
|
828
|
+
) {
|
|
829
|
+
return {
|
|
830
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
831
|
+
body: this.stringifyQuery(body),
|
|
832
|
+
};
|
|
765
833
|
} else {
|
|
766
834
|
return this.#encoder({ body, headers });
|
|
767
835
|
}
|
|
@@ -786,38 +854,73 @@ export class Composio {
|
|
|
786
854
|
|
|
787
855
|
static toFile = Uploads.toFile;
|
|
788
856
|
|
|
789
|
-
|
|
857
|
+
/**
|
|
858
|
+
* Authentication configuration management
|
|
859
|
+
*/
|
|
790
860
|
authConfigs: API.AuthConfigs = new API.AuthConfigs(this);
|
|
861
|
+
/**
|
|
862
|
+
* Connected account management
|
|
863
|
+
*/
|
|
791
864
|
connectedAccounts: API.ConnectedAccounts = new API.ConnectedAccounts(this);
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
865
|
+
/**
|
|
866
|
+
* Connected account management
|
|
867
|
+
*/
|
|
868
|
+
link: API.Link = new API.Link(this);
|
|
869
|
+
/**
|
|
870
|
+
* Toolkit and tool management
|
|
871
|
+
*/
|
|
796
872
|
toolkits: API.Toolkits = new API.Toolkits(this);
|
|
873
|
+
/**
|
|
874
|
+
* Tool execution endpoints
|
|
875
|
+
*/
|
|
797
876
|
tools: API.Tools = new API.Tools(this);
|
|
877
|
+
/**
|
|
878
|
+
* Trigger management and execution
|
|
879
|
+
*/
|
|
798
880
|
triggerInstances: API.TriggerInstances = new API.TriggerInstances(this);
|
|
881
|
+
/**
|
|
882
|
+
* Trigger management and execution
|
|
883
|
+
*/
|
|
799
884
|
triggersTypes: API.TriggersTypes = new API.TriggersTypes(this);
|
|
800
|
-
|
|
885
|
+
/**
|
|
886
|
+
* MCP server management
|
|
887
|
+
*/
|
|
801
888
|
mcp: API.Mcp = new API.Mcp(this);
|
|
889
|
+
/**
|
|
890
|
+
* File management
|
|
891
|
+
*/
|
|
892
|
+
files: API.Files = new API.Files(this);
|
|
893
|
+
/**
|
|
894
|
+
* Endpoints to help with migration from v1 to v3
|
|
895
|
+
*/
|
|
896
|
+
migration: API.Migration = new API.Migration(this);
|
|
897
|
+
cli: API.Cli = new API.Cli(this);
|
|
898
|
+
project: API.Project = new API.Project(this);
|
|
899
|
+
logs: API.Logs = new API.Logs(this);
|
|
900
|
+
/**
|
|
901
|
+
* (Labs) Tool router endpoints
|
|
902
|
+
*/
|
|
903
|
+
toolRouter: API.ToolRouter = new API.ToolRouter(this);
|
|
802
904
|
}
|
|
803
|
-
|
|
905
|
+
|
|
804
906
|
Composio.AuthConfigs = AuthConfigs;
|
|
805
907
|
Composio.ConnectedAccounts = ConnectedAccounts;
|
|
806
|
-
Composio.
|
|
807
|
-
Composio.ActionExecution = ActionExecution;
|
|
808
|
-
Composio.Org = Org;
|
|
809
|
-
Composio.TeamMembers = TeamMembers;
|
|
908
|
+
Composio.Link = Link;
|
|
810
909
|
Composio.Toolkits = Toolkits;
|
|
811
910
|
Composio.Tools = Tools;
|
|
812
911
|
Composio.TriggerInstances = TriggerInstances;
|
|
813
912
|
Composio.TriggersTypes = TriggersTypes;
|
|
814
|
-
Composio.Cli = Cli;
|
|
815
913
|
Composio.Mcp = Mcp;
|
|
914
|
+
Composio.Files = Files;
|
|
915
|
+
Composio.Migration = Migration;
|
|
916
|
+
Composio.Cli = Cli;
|
|
917
|
+
Composio.Project = Project;
|
|
918
|
+
Composio.Logs = Logs;
|
|
919
|
+
Composio.ToolRouter = ToolRouter;
|
|
920
|
+
|
|
816
921
|
export declare namespace Composio {
|
|
817
922
|
export type RequestOptions = Opts.RequestOptions;
|
|
818
923
|
|
|
819
|
-
export { Auth as Auth };
|
|
820
|
-
|
|
821
924
|
export {
|
|
822
925
|
AuthConfigs as AuthConfigs,
|
|
823
926
|
type AuthConfigCreateResponse as AuthConfigCreateResponse,
|
|
@@ -838,37 +941,20 @@ export declare namespace Composio {
|
|
|
838
941
|
type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse,
|
|
839
942
|
type ConnectedAccountListResponse as ConnectedAccountListResponse,
|
|
840
943
|
type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse,
|
|
944
|
+
type ConnectedAccountPatchResponse as ConnectedAccountPatchResponse,
|
|
841
945
|
type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse,
|
|
842
946
|
type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse,
|
|
843
947
|
type ConnectedAccountCreateParams as ConnectedAccountCreateParams,
|
|
844
948
|
type ConnectedAccountListParams as ConnectedAccountListParams,
|
|
949
|
+
type ConnectedAccountPatchParams as ConnectedAccountPatchParams,
|
|
950
|
+
type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams,
|
|
845
951
|
type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams,
|
|
846
952
|
};
|
|
847
953
|
|
|
848
954
|
export {
|
|
849
|
-
|
|
850
|
-
type
|
|
851
|
-
type
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
export {
|
|
855
|
-
ActionExecution as ActionExecution,
|
|
856
|
-
type ActionExecutionLogResponse as ActionExecutionLogResponse,
|
|
857
|
-
type ActionExecutionRetrieveFieldsResponse as ActionExecutionRetrieveFieldsResponse,
|
|
858
|
-
type ActionExecutionRetrieveLogResponse as ActionExecutionRetrieveLogResponse,
|
|
859
|
-
type ActionExecutionLogParams as ActionExecutionLogParams,
|
|
860
|
-
};
|
|
861
|
-
|
|
862
|
-
export { Org as Org };
|
|
863
|
-
|
|
864
|
-
export {
|
|
865
|
-
TeamMembers as TeamMembers,
|
|
866
|
-
type TeamMemberUpdateResponse as TeamMemberUpdateResponse,
|
|
867
|
-
type TeamMemberListResponse as TeamMemberListResponse,
|
|
868
|
-
type TeamMemberInviteResponse as TeamMemberInviteResponse,
|
|
869
|
-
type TeamMemberRemoveResponse as TeamMemberRemoveResponse,
|
|
870
|
-
type TeamMemberUpdateParams as TeamMemberUpdateParams,
|
|
871
|
-
type TeamMemberInviteParams as TeamMemberInviteParams,
|
|
955
|
+
Link as Link,
|
|
956
|
+
type LinkCreateResponse as LinkCreateResponse,
|
|
957
|
+
type LinkCreateParams as LinkCreateParams,
|
|
872
958
|
};
|
|
873
959
|
|
|
874
960
|
export {
|
|
@@ -876,6 +962,7 @@ export declare namespace Composio {
|
|
|
876
962
|
type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
|
|
877
963
|
type ToolkitListResponse as ToolkitListResponse,
|
|
878
964
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
965
|
+
type ToolkitRetrieveParams as ToolkitRetrieveParams,
|
|
879
966
|
type ToolkitListParams as ToolkitListParams,
|
|
880
967
|
};
|
|
881
968
|
|
|
@@ -887,6 +974,7 @@ export declare namespace Composio {
|
|
|
887
974
|
type ToolGetInputResponse as ToolGetInputResponse,
|
|
888
975
|
type ToolProxyResponse as ToolProxyResponse,
|
|
889
976
|
type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse,
|
|
977
|
+
type ToolRetrieveParams as ToolRetrieveParams,
|
|
890
978
|
type ToolListParams as ToolListParams,
|
|
891
979
|
type ToolExecuteParams as ToolExecuteParams,
|
|
892
980
|
type ToolGetInputParams as ToolGetInputParams,
|
|
@@ -896,11 +984,8 @@ export declare namespace Composio {
|
|
|
896
984
|
export {
|
|
897
985
|
TriggerInstances as TriggerInstances,
|
|
898
986
|
type TriggerInstanceListActiveResponse as TriggerInstanceListActiveResponse,
|
|
899
|
-
type TriggerInstanceRemoveUpsertResponse as TriggerInstanceRemoveUpsertResponse,
|
|
900
|
-
type TriggerInstanceUpdateStatusResponse as TriggerInstanceUpdateStatusResponse,
|
|
901
987
|
type TriggerInstanceUpsertResponse as TriggerInstanceUpsertResponse,
|
|
902
988
|
type TriggerInstanceListActiveParams as TriggerInstanceListActiveParams,
|
|
903
|
-
type TriggerInstanceUpdateStatusParams as TriggerInstanceUpdateStatusParams,
|
|
904
989
|
type TriggerInstanceUpsertParams as TriggerInstanceUpsertParams,
|
|
905
990
|
};
|
|
906
991
|
|
|
@@ -909,18 +994,10 @@ export declare namespace Composio {
|
|
|
909
994
|
type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse,
|
|
910
995
|
type TriggersTypeListResponse as TriggersTypeListResponse,
|
|
911
996
|
type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse,
|
|
997
|
+
type TriggersTypeRetrieveParams as TriggersTypeRetrieveParams,
|
|
912
998
|
type TriggersTypeListParams as TriggersTypeListParams,
|
|
913
999
|
};
|
|
914
1000
|
|
|
915
|
-
export {
|
|
916
|
-
Cli as Cli,
|
|
917
|
-
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
918
|
-
type CliLinkSessionResponse as CliLinkSessionResponse,
|
|
919
|
-
type CliRetrieveSessionResponse as CliRetrieveSessionResponse,
|
|
920
|
-
type CliLinkSessionParams as CliLinkSessionParams,
|
|
921
|
-
type CliRetrieveSessionParams as CliRetrieveSessionParams,
|
|
922
|
-
};
|
|
923
|
-
|
|
924
1001
|
export {
|
|
925
1002
|
Mcp as Mcp,
|
|
926
1003
|
type McpCreateResponse as McpCreateResponse,
|
|
@@ -929,10 +1006,41 @@ export declare namespace Composio {
|
|
|
929
1006
|
type McpListResponse as McpListResponse,
|
|
930
1007
|
type McpDeleteResponse as McpDeleteResponse,
|
|
931
1008
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
932
|
-
type McpValidateResponse as McpValidateResponse,
|
|
933
1009
|
type McpCreateParams as McpCreateParams,
|
|
934
1010
|
type McpUpdateParams as McpUpdateParams,
|
|
935
1011
|
type McpListParams as McpListParams,
|
|
936
|
-
type
|
|
1012
|
+
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
export {
|
|
1016
|
+
Files as Files,
|
|
1017
|
+
type FileListResponse as FileListResponse,
|
|
1018
|
+
type FileCreatePresignedURLResponse as FileCreatePresignedURLResponse,
|
|
1019
|
+
type FileListParams as FileListParams,
|
|
1020
|
+
type FileCreatePresignedURLParams as FileCreatePresignedURLParams,
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
export {
|
|
1024
|
+
Migration as Migration,
|
|
1025
|
+
type MigrationRetrieveNanoidResponse as MigrationRetrieveNanoidResponse,
|
|
1026
|
+
type MigrationRetrieveNanoidParams as MigrationRetrieveNanoidParams,
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
export {
|
|
1030
|
+
Cli as Cli,
|
|
1031
|
+
type CliCreateSessionResponse as CliCreateSessionResponse,
|
|
1032
|
+
type CliGetSessionResponse as CliGetSessionResponse,
|
|
1033
|
+
type CliCreateSessionParams as CliCreateSessionParams,
|
|
1034
|
+
type CliGetSessionParams as CliGetSessionParams,
|
|
1035
|
+
};
|
|
1036
|
+
|
|
1037
|
+
export { Project as Project };
|
|
1038
|
+
|
|
1039
|
+
export { Logs as Logs };
|
|
1040
|
+
|
|
1041
|
+
export {
|
|
1042
|
+
ToolRouter as ToolRouter,
|
|
1043
|
+
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
1044
|
+
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
937
1045
|
};
|
|
938
1046
|
}
|