@composio/client 0.1.0-alpha.7 → 0.1.0-alpha.70
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 +963 -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 +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 +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 +9729 -223
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +9729 -223
- 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 +2226 -0
- package/resources/link.d.mts.map +1 -0
- package/resources/link.d.ts +2226 -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 +3978 -0
- package/resources/tool-router/session/session.d.mts.map +1 -0
- package/resources/tool-router/session/session.d.ts +3978 -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 +314 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +314 -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 +1401 -41
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1401 -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 +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 +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 +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 +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 +18343 -460
- package/src/resources/files.ts +197 -0
- package/src/resources/index.ts +30 -28
- package/src/resources/link.ts +4215 -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 +4983 -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 +361 -10
- package/src/resources/tools.ts +2172 -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 +154 -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
|
@@ -5,41 +5,110 @@ import { APIPromise } from '../core/api-promise';
|
|
|
5
5
|
import { RequestOptions } from '../internal/request-options';
|
|
6
6
|
import { path } from '../internal/utils/path';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Authentication configuration management
|
|
10
|
+
*/
|
|
8
11
|
export class AuthConfigs extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new auth config for a toolkit, allowing you to use your own OAuth
|
|
14
|
+
* credentials or API keys instead of Composio-managed authentication. This is
|
|
15
|
+
* required when you want to use custom OAuth apps (bring your own client
|
|
16
|
+
* ID/secret) or configure specific authentication parameters for a toolkit.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const authConfig = await client.authConfigs.create({
|
|
21
|
+
* toolkit: { slug: 'slug' },
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
9
25
|
create(body: AuthConfigCreateParams, options?: RequestOptions): APIPromise<AuthConfigCreateResponse> {
|
|
10
|
-
return this._client.post('/api/v3/auth_configs', { body, ...options });
|
|
26
|
+
return this._client.post('/api/v3.1/auth_configs', { body, ...options });
|
|
11
27
|
}
|
|
12
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves detailed information about a specific authentication configuration
|
|
31
|
+
* using its unique identifier.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const authConfig = await client.authConfigs.retrieve(
|
|
36
|
+
* 'nanoid',
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
13
40
|
retrieve(nanoid: string, options?: RequestOptions): APIPromise<AuthConfigRetrieveResponse> {
|
|
14
|
-
return this._client.get(path`/api/v3/auth_configs/${nanoid}`, options);
|
|
41
|
+
return this._client.get(path`/api/v3.1/auth_configs/${nanoid}`, options);
|
|
15
42
|
}
|
|
16
43
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Modifies an existing authentication configuration with new credentials or other
|
|
46
|
+
* settings. Only specified fields will be updated.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const authConfig = await client.authConfigs.update(
|
|
51
|
+
* 'nanoid',
|
|
52
|
+
* { type: 'custom' },
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
update(nanoid: string, body: AuthConfigUpdateParams, options?: RequestOptions): APIPromise<unknown> {
|
|
57
|
+
return this._client.patch(path`/api/v3.1/auth_configs/${nanoid}`, { body, ...options });
|
|
23
58
|
}
|
|
24
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves all auth configs for your project. Auth configs define how users
|
|
62
|
+
* authenticate with external services (OAuth, API keys, etc.). Use filters to find
|
|
63
|
+
* configs for specific toolkits or to distinguish between Composio-managed and
|
|
64
|
+
* custom configurations.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const authConfigs = await client.authConfigs.list();
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
25
71
|
list(
|
|
26
72
|
query: AuthConfigListParams | null | undefined = {},
|
|
27
73
|
options?: RequestOptions,
|
|
28
74
|
): APIPromise<AuthConfigListResponse> {
|
|
29
|
-
return this._client.get('/api/v3/auth_configs', { query, ...options });
|
|
75
|
+
return this._client.get('/api/v3.1/auth_configs', { query, ...options });
|
|
30
76
|
}
|
|
31
77
|
|
|
32
|
-
|
|
33
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Soft-deletes an authentication configuration by marking it as deleted in the
|
|
80
|
+
* database. This operation cannot be undone.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const authConfig = await client.authConfigs.delete(
|
|
85
|
+
* 'nanoid',
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
delete(nanoid: string, options?: RequestOptions): APIPromise<unknown> {
|
|
90
|
+
return this._client.delete(path`/api/v3.1/auth_configs/${nanoid}`, options);
|
|
34
91
|
}
|
|
35
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Updates the status of an authentication configuration to either enabled or
|
|
95
|
+
* disabled. Disabled configurations cannot be used for new connections.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const response = await client.authConfigs.updateStatus(
|
|
100
|
+
* 'ENABLED',
|
|
101
|
+
* { nanoid: 'nanoid' },
|
|
102
|
+
* );
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
36
105
|
updateStatus(
|
|
37
106
|
status: 'ENABLED' | 'DISABLED',
|
|
38
107
|
params: AuthConfigUpdateStatusParams,
|
|
39
108
|
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
109
|
+
): APIPromise<unknown> {
|
|
41
110
|
const { nanoid } = params;
|
|
42
|
-
return this._client.patch(path`/api/v3/auth_configs/${nanoid}/${status}`, options);
|
|
111
|
+
return this._client.patch(path`/api/v3.1/auth_configs/${nanoid}/${status}`, options);
|
|
43
112
|
}
|
|
44
113
|
}
|
|
45
114
|
|
|
@@ -52,12 +121,12 @@ export interface AuthConfigCreateResponse {
|
|
|
52
121
|
export namespace AuthConfigCreateResponse {
|
|
53
122
|
export interface AuthConfig {
|
|
54
123
|
/**
|
|
55
|
-
* The auth config id of the
|
|
124
|
+
* The auth config id of the toolkit (must be a valid auth config id)
|
|
56
125
|
*/
|
|
57
126
|
id: string;
|
|
58
127
|
|
|
59
128
|
/**
|
|
60
|
-
* The authentication mode of the
|
|
129
|
+
* The authentication mode of the toolkit
|
|
61
130
|
*/
|
|
62
131
|
auth_scheme: string;
|
|
63
132
|
|
|
@@ -65,6 +134,11 @@ export namespace AuthConfigCreateResponse {
|
|
|
65
134
|
* Whether the auth config is managed by Composio
|
|
66
135
|
*/
|
|
67
136
|
is_composio_managed: boolean;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The tools that the user can use with the auth config
|
|
140
|
+
*/
|
|
141
|
+
restrict_to_following_tools?: Array<string>;
|
|
68
142
|
}
|
|
69
143
|
|
|
70
144
|
export interface Toolkit {
|
|
@@ -77,33 +151,48 @@ export namespace AuthConfigCreateResponse {
|
|
|
77
151
|
|
|
78
152
|
export interface AuthConfigRetrieveResponse {
|
|
79
153
|
/**
|
|
80
|
-
* The unique
|
|
154
|
+
* The unique ID of the authentication configuration
|
|
81
155
|
*/
|
|
82
156
|
id: string;
|
|
83
157
|
|
|
84
158
|
/**
|
|
85
|
-
* The name of the
|
|
159
|
+
* The display name of the authentication configuration
|
|
86
160
|
*/
|
|
87
161
|
name: string;
|
|
88
162
|
|
|
89
163
|
/**
|
|
90
|
-
* The number of connections
|
|
164
|
+
* The number of active connections using this auth config
|
|
91
165
|
*/
|
|
92
166
|
no_of_connections: number;
|
|
93
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Current status of the authentication configuration
|
|
170
|
+
*/
|
|
94
171
|
status: 'ENABLED' | 'DISABLED';
|
|
95
172
|
|
|
173
|
+
tool_access_config: AuthConfigRetrieveResponse.ToolAccessConfig;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Information about the associated integration
|
|
177
|
+
*/
|
|
96
178
|
toolkit: AuthConfigRetrieveResponse.Toolkit;
|
|
97
179
|
|
|
98
180
|
/**
|
|
99
|
-
* The
|
|
181
|
+
* The type of the authentication configuration (custom or default)
|
|
182
|
+
*/
|
|
183
|
+
type: 'default' | 'custom';
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The UUID of the authentication configuration (for backward compatibility)
|
|
100
187
|
*/
|
|
101
188
|
uuid: string;
|
|
102
189
|
|
|
190
|
+
/**
|
|
191
|
+
* The authentication scheme used (e.g., OAuth2, API Key, etc.)
|
|
192
|
+
*/
|
|
103
193
|
auth_scheme?:
|
|
104
194
|
| 'OAUTH2'
|
|
105
195
|
| 'OAUTH1'
|
|
106
|
-
| 'OAUTH1A'
|
|
107
196
|
| 'API_KEY'
|
|
108
197
|
| 'BASIC'
|
|
109
198
|
| 'BILLCOM_AUTH'
|
|
@@ -111,90 +200,205 @@ export interface AuthConfigRetrieveResponse {
|
|
|
111
200
|
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
112
201
|
| 'NO_AUTH'
|
|
113
202
|
| 'BASIC_WITH_JWT'
|
|
114
|
-
| 'COMPOSIO_LINK'
|
|
115
203
|
| 'CALCOM_AUTH'
|
|
116
|
-
| '
|
|
204
|
+
| 'SERVICE_ACCOUNT'
|
|
205
|
+
| 'SAML'
|
|
206
|
+
| 'DCR_OAUTH'
|
|
207
|
+
| 'S2S_OAUTH2';
|
|
117
208
|
|
|
118
209
|
/**
|
|
119
|
-
*
|
|
210
|
+
* ISO 8601 date-time when the auth config was created
|
|
120
211
|
*/
|
|
121
212
|
created_at?: string;
|
|
122
213
|
|
|
123
214
|
/**
|
|
124
|
-
* The user who created the auth config
|
|
215
|
+
* The identifier of the user who created the auth config
|
|
125
216
|
*/
|
|
126
217
|
created_by?: string;
|
|
127
218
|
|
|
128
|
-
|
|
219
|
+
/**
|
|
220
|
+
* The authentication credentials (tokens, keys, etc.) - may be partially hidden
|
|
221
|
+
* for security
|
|
222
|
+
*/
|
|
223
|
+
credentials?: { [key: string]: unknown };
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
227
|
+
*/
|
|
228
|
+
deprecated_params?: AuthConfigRetrieveResponse.DeprecatedParams;
|
|
129
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Fields expected during connection initialization
|
|
232
|
+
*/
|
|
130
233
|
expected_input_fields?: Array<unknown>;
|
|
131
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Whether this authentication configuration is managed by Composio or the user
|
|
237
|
+
*/
|
|
132
238
|
is_composio_managed?: boolean;
|
|
133
239
|
|
|
134
240
|
/**
|
|
135
|
-
*
|
|
241
|
+
* Whether this auth config is enabled for tool router
|
|
242
|
+
*/
|
|
243
|
+
is_enabled_for_tool_router?: boolean;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* ISO 8601 date-time when the auth config was last updated
|
|
136
247
|
*/
|
|
137
248
|
last_updated_at?: string;
|
|
249
|
+
|
|
250
|
+
proxy_config?: AuthConfigRetrieveResponse.ProxyConfig | null;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
254
|
+
* future.
|
|
255
|
+
*/
|
|
256
|
+
restrict_to_following_tools?: Array<string>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* [EXPERIMENTAL] Shared credentials that will be inherited by all connected
|
|
260
|
+
* accounts using this auth config
|
|
261
|
+
*/
|
|
262
|
+
shared_credentials?: { [key: string]: unknown };
|
|
138
263
|
}
|
|
139
264
|
|
|
140
265
|
export namespace AuthConfigRetrieveResponse {
|
|
266
|
+
export interface ToolAccessConfig {
|
|
267
|
+
/**
|
|
268
|
+
* The actions that the user can perform on the auth config. If passed, this will
|
|
269
|
+
* update the actions that the user can perform on the auth config.
|
|
270
|
+
*/
|
|
271
|
+
tools_available_for_execution?: Array<string>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Tools used to generate the minimum required scopes for the auth config (only
|
|
275
|
+
* valid for OAuth). If passed, this will update the scopes.
|
|
276
|
+
*/
|
|
277
|
+
tools_for_connected_account_creation?: Array<string>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Information about the associated integration
|
|
282
|
+
*/
|
|
141
283
|
export interface Toolkit {
|
|
142
284
|
/**
|
|
143
|
-
* The
|
|
285
|
+
* The URL to the integration app's logo image
|
|
144
286
|
*/
|
|
145
287
|
logo: string;
|
|
146
288
|
|
|
147
289
|
/**
|
|
148
|
-
* The unique
|
|
290
|
+
* The unique identifier of the integration app
|
|
149
291
|
*/
|
|
150
292
|
slug: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* URL to a guide page with authentication setup instructions
|
|
296
|
+
*/
|
|
297
|
+
auth_guide_url?: string | null;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* URL to a page where users can obtain or configure credentials
|
|
301
|
+
*/
|
|
302
|
+
auth_hint_url?: string | null;
|
|
151
303
|
}
|
|
152
|
-
}
|
|
153
304
|
|
|
154
|
-
|
|
155
|
-
|
|
305
|
+
/**
|
|
306
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
307
|
+
*/
|
|
308
|
+
export interface DeprecatedParams {
|
|
309
|
+
/**
|
|
310
|
+
* Deprecated: Default connector ID
|
|
311
|
+
*/
|
|
312
|
+
default_connector_id: string | null;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Deprecated: Fields expected during connection initialization
|
|
316
|
+
*/
|
|
317
|
+
expected_input_fields?: Array<{ [key: string]: unknown }>;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Deprecated: Member UUID
|
|
321
|
+
*/
|
|
322
|
+
member_uuid?: string;
|
|
156
323
|
|
|
157
|
-
|
|
324
|
+
/**
|
|
325
|
+
* Deprecated: Toolkit ID
|
|
326
|
+
*/
|
|
327
|
+
toolkit_id?: string;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface ProxyConfig {
|
|
331
|
+
/**
|
|
332
|
+
* The url of the auth proxy
|
|
333
|
+
*/
|
|
334
|
+
proxy_url: string;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The auth key for the auth proxy
|
|
338
|
+
*/
|
|
339
|
+
proxy_auth_key?: string;
|
|
340
|
+
}
|
|
158
341
|
}
|
|
159
342
|
|
|
343
|
+
export type AuthConfigUpdateResponse = unknown;
|
|
344
|
+
|
|
160
345
|
export interface AuthConfigListResponse {
|
|
346
|
+
current_page: number;
|
|
347
|
+
|
|
161
348
|
items: Array<AuthConfigListResponse.Item>;
|
|
162
349
|
|
|
163
|
-
|
|
350
|
+
total_items: number;
|
|
164
351
|
|
|
165
352
|
total_pages: number;
|
|
353
|
+
|
|
354
|
+
next_cursor?: string | null;
|
|
166
355
|
}
|
|
167
356
|
|
|
168
357
|
export namespace AuthConfigListResponse {
|
|
169
358
|
export interface Item {
|
|
170
359
|
/**
|
|
171
|
-
* The unique
|
|
360
|
+
* The unique ID of the authentication configuration
|
|
172
361
|
*/
|
|
173
362
|
id: string;
|
|
174
363
|
|
|
175
364
|
/**
|
|
176
|
-
* The name of the
|
|
365
|
+
* The display name of the authentication configuration
|
|
177
366
|
*/
|
|
178
367
|
name: string;
|
|
179
368
|
|
|
180
369
|
/**
|
|
181
|
-
* The number of connections
|
|
370
|
+
* The number of active connections using this auth config
|
|
182
371
|
*/
|
|
183
372
|
no_of_connections: number;
|
|
184
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Current status of the authentication configuration
|
|
376
|
+
*/
|
|
185
377
|
status: 'ENABLED' | 'DISABLED';
|
|
186
378
|
|
|
379
|
+
tool_access_config: Item.ToolAccessConfig;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Information about the associated integration
|
|
383
|
+
*/
|
|
187
384
|
toolkit: Item.Toolkit;
|
|
188
385
|
|
|
189
386
|
/**
|
|
190
|
-
* The
|
|
387
|
+
* The type of the authentication configuration (custom or default)
|
|
388
|
+
*/
|
|
389
|
+
type: 'default' | 'custom';
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The UUID of the authentication configuration (for backward compatibility)
|
|
191
393
|
*/
|
|
192
394
|
uuid: string;
|
|
193
395
|
|
|
396
|
+
/**
|
|
397
|
+
* The authentication scheme used (e.g., OAuth2, API Key, etc.)
|
|
398
|
+
*/
|
|
194
399
|
auth_scheme?:
|
|
195
400
|
| 'OAUTH2'
|
|
196
401
|
| 'OAUTH1'
|
|
197
|
-
| 'OAUTH1A'
|
|
198
402
|
| 'API_KEY'
|
|
199
403
|
| 'BASIC'
|
|
200
404
|
| 'BILLCOM_AUTH'
|
|
@@ -202,59 +406,151 @@ export namespace AuthConfigListResponse {
|
|
|
202
406
|
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
203
407
|
| 'NO_AUTH'
|
|
204
408
|
| 'BASIC_WITH_JWT'
|
|
205
|
-
| 'COMPOSIO_LINK'
|
|
206
409
|
| 'CALCOM_AUTH'
|
|
207
|
-
| '
|
|
410
|
+
| 'SERVICE_ACCOUNT'
|
|
411
|
+
| 'SAML'
|
|
412
|
+
| 'DCR_OAUTH'
|
|
413
|
+
| 'S2S_OAUTH2';
|
|
208
414
|
|
|
209
415
|
/**
|
|
210
|
-
*
|
|
416
|
+
* ISO 8601 date-time when the auth config was created
|
|
211
417
|
*/
|
|
212
418
|
created_at?: string;
|
|
213
419
|
|
|
214
420
|
/**
|
|
215
|
-
* The user who created the auth config
|
|
421
|
+
* The identifier of the user who created the auth config
|
|
216
422
|
*/
|
|
217
423
|
created_by?: string;
|
|
218
424
|
|
|
219
|
-
|
|
425
|
+
/**
|
|
426
|
+
* The authentication credentials (tokens, keys, etc.) - may be partially hidden
|
|
427
|
+
* for security
|
|
428
|
+
*/
|
|
429
|
+
credentials?: { [key: string]: unknown };
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
433
|
+
*/
|
|
434
|
+
deprecated_params?: Item.DeprecatedParams;
|
|
220
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Fields expected during connection initialization
|
|
438
|
+
*/
|
|
221
439
|
expected_input_fields?: Array<unknown>;
|
|
222
440
|
|
|
441
|
+
/**
|
|
442
|
+
* Whether this authentication configuration is managed by Composio or the user
|
|
443
|
+
*/
|
|
223
444
|
is_composio_managed?: boolean;
|
|
224
445
|
|
|
225
446
|
/**
|
|
226
|
-
*
|
|
447
|
+
* Whether this auth config is enabled for tool router
|
|
448
|
+
*/
|
|
449
|
+
is_enabled_for_tool_router?: boolean;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* ISO 8601 date-time when the auth config was last updated
|
|
227
453
|
*/
|
|
228
454
|
last_updated_at?: string;
|
|
455
|
+
|
|
456
|
+
proxy_config?: Item.ProxyConfig | null;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
460
|
+
* future.
|
|
461
|
+
*/
|
|
462
|
+
restrict_to_following_tools?: Array<string>;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* [EXPERIMENTAL] Shared credentials that will be inherited by all connected
|
|
466
|
+
* accounts using this auth config
|
|
467
|
+
*/
|
|
468
|
+
shared_credentials?: { [key: string]: unknown };
|
|
229
469
|
}
|
|
230
470
|
|
|
231
471
|
export namespace Item {
|
|
472
|
+
export interface ToolAccessConfig {
|
|
473
|
+
/**
|
|
474
|
+
* The actions that the user can perform on the auth config. If passed, this will
|
|
475
|
+
* update the actions that the user can perform on the auth config.
|
|
476
|
+
*/
|
|
477
|
+
tools_available_for_execution?: Array<string>;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Tools used to generate the minimum required scopes for the auth config (only
|
|
481
|
+
* valid for OAuth). If passed, this will update the scopes.
|
|
482
|
+
*/
|
|
483
|
+
tools_for_connected_account_creation?: Array<string>;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Information about the associated integration
|
|
488
|
+
*/
|
|
232
489
|
export interface Toolkit {
|
|
233
490
|
/**
|
|
234
|
-
* The
|
|
491
|
+
* The URL to the integration app's logo image
|
|
235
492
|
*/
|
|
236
493
|
logo: string;
|
|
237
494
|
|
|
238
495
|
/**
|
|
239
|
-
* The unique
|
|
496
|
+
* The unique identifier of the integration app
|
|
240
497
|
*/
|
|
241
498
|
slug: string;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* URL to a guide page with authentication setup instructions
|
|
502
|
+
*/
|
|
503
|
+
auth_guide_url?: string | null;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* URL to a page where users can obtain or configure credentials
|
|
507
|
+
*/
|
|
508
|
+
auth_hint_url?: string | null;
|
|
242
509
|
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
510
|
|
|
246
|
-
|
|
247
|
-
|
|
511
|
+
/**
|
|
512
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
513
|
+
*/
|
|
514
|
+
export interface DeprecatedParams {
|
|
515
|
+
/**
|
|
516
|
+
* Deprecated: Default connector ID
|
|
517
|
+
*/
|
|
518
|
+
default_connector_id: string | null;
|
|
248
519
|
|
|
249
|
-
|
|
250
|
-
|
|
520
|
+
/**
|
|
521
|
+
* Deprecated: Fields expected during connection initialization
|
|
522
|
+
*/
|
|
523
|
+
expected_input_fields?: Array<{ [key: string]: unknown }>;
|
|
251
524
|
|
|
252
|
-
|
|
253
|
-
|
|
525
|
+
/**
|
|
526
|
+
* Deprecated: Member UUID
|
|
527
|
+
*/
|
|
528
|
+
member_uuid?: string;
|
|
254
529
|
|
|
255
|
-
|
|
530
|
+
/**
|
|
531
|
+
* Deprecated: Toolkit ID
|
|
532
|
+
*/
|
|
533
|
+
toolkit_id?: string;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
export interface ProxyConfig {
|
|
537
|
+
/**
|
|
538
|
+
* The url of the auth proxy
|
|
539
|
+
*/
|
|
540
|
+
proxy_url: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The auth key for the auth proxy
|
|
544
|
+
*/
|
|
545
|
+
proxy_auth_key?: string;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
256
548
|
}
|
|
257
549
|
|
|
550
|
+
export type AuthConfigDeleteResponse = unknown;
|
|
551
|
+
|
|
552
|
+
export type AuthConfigUpdateStatusResponse = unknown;
|
|
553
|
+
|
|
258
554
|
export interface AuthConfigCreateParams {
|
|
259
555
|
toolkit: AuthConfigCreateParams.Toolkit;
|
|
260
556
|
|
|
@@ -264,7 +560,7 @@ export interface AuthConfigCreateParams {
|
|
|
264
560
|
export namespace AuthConfigCreateParams {
|
|
265
561
|
export interface Toolkit {
|
|
266
562
|
/**
|
|
267
|
-
*
|
|
563
|
+
* Toolkit slug to create auth config for
|
|
268
564
|
*/
|
|
269
565
|
slug: string;
|
|
270
566
|
}
|
|
@@ -272,19 +568,53 @@ export namespace AuthConfigCreateParams {
|
|
|
272
568
|
export interface UnionMember0 {
|
|
273
569
|
type: 'use_composio_managed_auth';
|
|
274
570
|
|
|
275
|
-
credentials?:
|
|
571
|
+
credentials?: UnionMember0.Credentials;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Whether this auth config is enabled for tool router
|
|
575
|
+
*/
|
|
576
|
+
is_enabled_for_tool_router?: boolean;
|
|
276
577
|
|
|
277
578
|
/**
|
|
278
579
|
* The name of the integration
|
|
279
580
|
*/
|
|
280
581
|
name?: string;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
585
|
+
* future.
|
|
586
|
+
*/
|
|
587
|
+
restrict_to_following_tools?: Array<string>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* [EXPERIMENTAL] Shared credentials that will be inherited by all connected
|
|
591
|
+
* accounts using this auth config
|
|
592
|
+
*/
|
|
593
|
+
shared_credentials?: { [key: string]: unknown };
|
|
594
|
+
|
|
595
|
+
tool_access_config?: UnionMember0.ToolAccessConfig;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export namespace UnionMember0 {
|
|
599
|
+
export interface Credentials {
|
|
600
|
+
scopes?: string | Array<string>;
|
|
601
|
+
|
|
602
|
+
user_scopes?: string | Array<string>;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface ToolAccessConfig {
|
|
606
|
+
/**
|
|
607
|
+
* Tools used to generate the minimum required scopes for the auth config (only
|
|
608
|
+
* valid for OAuth). If passed, this will update the scopes.
|
|
609
|
+
*/
|
|
610
|
+
tools_for_connected_account_creation?: Array<string>;
|
|
611
|
+
}
|
|
281
612
|
}
|
|
282
613
|
|
|
283
614
|
export interface UnionMember1 {
|
|
284
615
|
authScheme:
|
|
285
616
|
| 'OAUTH2'
|
|
286
617
|
| 'OAUTH1'
|
|
287
|
-
| 'OAUTH1A'
|
|
288
618
|
| 'API_KEY'
|
|
289
619
|
| 'BASIC'
|
|
290
620
|
| 'BILLCOM_AUTH'
|
|
@@ -292,57 +622,241 @@ export namespace AuthConfigCreateParams {
|
|
|
292
622
|
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
293
623
|
| 'NO_AUTH'
|
|
294
624
|
| 'BASIC_WITH_JWT'
|
|
295
|
-
| 'COMPOSIO_LINK'
|
|
296
625
|
| 'CALCOM_AUTH'
|
|
297
|
-
| '
|
|
298
|
-
|
|
299
|
-
|
|
626
|
+
| 'SERVICE_ACCOUNT'
|
|
627
|
+
| 'SAML'
|
|
628
|
+
| 'DCR_OAUTH'
|
|
629
|
+
| 'S2S_OAUTH2';
|
|
300
630
|
|
|
301
631
|
type: 'use_custom_auth';
|
|
302
632
|
|
|
633
|
+
credentials?: UnionMember1.Credentials;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Whether this auth config is enabled for tool router
|
|
637
|
+
*/
|
|
638
|
+
is_enabled_for_tool_router?: boolean;
|
|
639
|
+
|
|
303
640
|
/**
|
|
304
641
|
* The name of the integration
|
|
305
642
|
*/
|
|
306
643
|
name?: string;
|
|
644
|
+
|
|
645
|
+
proxy_config?: UnionMember1.ProxyConfig | null;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
649
|
+
* future.
|
|
650
|
+
*/
|
|
651
|
+
restrict_to_following_tools?: Array<string>;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* [EXPERIMENTAL] Shared credentials that will be inherited by all connected
|
|
655
|
+
* accounts using this auth config
|
|
656
|
+
*/
|
|
657
|
+
shared_credentials?: { [key: string]: unknown };
|
|
658
|
+
|
|
659
|
+
tool_access_config?: UnionMember1.ToolAccessConfig;
|
|
307
660
|
}
|
|
308
|
-
}
|
|
309
661
|
|
|
310
|
-
export
|
|
311
|
-
|
|
662
|
+
export namespace UnionMember1 {
|
|
663
|
+
export interface Credentials {
|
|
664
|
+
scopes?: string | Array<string>;
|
|
665
|
+
|
|
666
|
+
user_scopes?: string | Array<string>;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
export interface ProxyConfig {
|
|
670
|
+
/**
|
|
671
|
+
* The url of the auth proxy
|
|
672
|
+
*/
|
|
673
|
+
proxy_url: string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* The auth key for the auth proxy
|
|
677
|
+
*/
|
|
678
|
+
proxy_auth_key?: string;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export interface ToolAccessConfig {
|
|
682
|
+
/**
|
|
683
|
+
* Tools used to generate the minimum required scopes for the auth config (only
|
|
684
|
+
* valid for OAuth). If passed, this will update the scopes.
|
|
685
|
+
*/
|
|
686
|
+
tools_for_connected_account_creation?: Array<string>;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
312
689
|
}
|
|
313
690
|
|
|
314
|
-
export
|
|
315
|
-
|
|
691
|
+
export type AuthConfigUpdateParams = AuthConfigUpdateParams.Variant0 | AuthConfigUpdateParams.Variant1;
|
|
692
|
+
|
|
693
|
+
export declare namespace AuthConfigUpdateParams {
|
|
694
|
+
export interface Variant0 {
|
|
695
|
+
type: 'custom';
|
|
696
|
+
|
|
697
|
+
credentials?: Variant0.Credentials;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Whether this auth config is enabled for tool router
|
|
701
|
+
*/
|
|
702
|
+
is_enabled_for_tool_router?: boolean;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* The display name of the authentication configuration
|
|
706
|
+
*/
|
|
707
|
+
name?: string;
|
|
708
|
+
|
|
709
|
+
proxy_config?: Variant0.ProxyConfig | null;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
713
|
+
* future.
|
|
714
|
+
*/
|
|
715
|
+
restrict_to_following_tools?: Array<string>;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Shared credentials that will be inherited by connected accounts. For eg: this
|
|
719
|
+
* can be used to share the API key for a tool with all connected accounts using
|
|
720
|
+
* this auth config.
|
|
721
|
+
*/
|
|
722
|
+
shared_credentials?: { [key: string]: unknown };
|
|
723
|
+
|
|
724
|
+
tool_access_config?: Variant0.ToolAccessConfig;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export namespace Variant0 {
|
|
728
|
+
export interface Credentials {
|
|
729
|
+
scopes?: string | Array<string>;
|
|
730
|
+
|
|
731
|
+
user_scopes?: string | Array<string>;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export interface ProxyConfig {
|
|
735
|
+
/**
|
|
736
|
+
* The url of the auth proxy
|
|
737
|
+
*/
|
|
738
|
+
proxy_url: string;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* The auth key for the auth proxy
|
|
742
|
+
*/
|
|
743
|
+
proxy_auth_key?: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export interface ToolAccessConfig {
|
|
747
|
+
/**
|
|
748
|
+
* The actions that the user can perform on the auth config. If passed, this will
|
|
749
|
+
* update the actions that the user can perform on the auth config.
|
|
750
|
+
*/
|
|
751
|
+
tools_available_for_execution?: Array<string>;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Tools used to generate the minimum required scopes for the auth config (only
|
|
755
|
+
* valid for OAuth). If passed, this will update the scopes.
|
|
756
|
+
*/
|
|
757
|
+
tools_for_connected_account_creation?: Array<string>;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export interface Variant1 {
|
|
762
|
+
type: 'default';
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* Whether this auth config is enabled for tool router
|
|
766
|
+
*/
|
|
767
|
+
is_enabled_for_tool_router?: boolean;
|
|
768
|
+
|
|
316
769
|
/**
|
|
317
|
-
*
|
|
770
|
+
* The display name of the authentication configuration
|
|
318
771
|
*/
|
|
319
|
-
|
|
772
|
+
name?: string;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
776
|
+
* future.
|
|
777
|
+
*/
|
|
778
|
+
restrict_to_following_tools?: Array<string>;
|
|
779
|
+
|
|
780
|
+
scopes?: string | Array<string>;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Shared credentials that will be inherited by connected accounts. For eg: this
|
|
784
|
+
* can be used to share the API key for a tool with all connected accounts using
|
|
785
|
+
* this auth config.
|
|
786
|
+
*/
|
|
787
|
+
shared_credentials?: { [key: string]: unknown };
|
|
788
|
+
|
|
789
|
+
tool_access_config?: Variant1.ToolAccessConfig;
|
|
790
|
+
|
|
791
|
+
user_scopes?: string | Array<string>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export namespace Variant1 {
|
|
795
|
+
export interface ToolAccessConfig {
|
|
796
|
+
/**
|
|
797
|
+
* The actions that the user can perform on the auth config. If passed, this will
|
|
798
|
+
* update the actions that the user can perform on the auth config.
|
|
799
|
+
*/
|
|
800
|
+
tools_available_for_execution?: Array<string>;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Tools used to generate the minimum required scopes for the auth config (only
|
|
804
|
+
* valid for OAuth). If passed, this will update the scopes.
|
|
805
|
+
*/
|
|
806
|
+
tools_for_connected_account_creation?: Array<string>;
|
|
807
|
+
}
|
|
320
808
|
}
|
|
321
809
|
}
|
|
322
810
|
|
|
323
811
|
export interface AuthConfigListParams {
|
|
324
812
|
/**
|
|
325
|
-
* The cursor
|
|
813
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
814
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
815
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
816
|
+
* required for the first page.
|
|
326
817
|
*/
|
|
327
818
|
cursor?: string;
|
|
328
819
|
|
|
820
|
+
/**
|
|
821
|
+
* @deprecated The app id to filter by
|
|
822
|
+
*/
|
|
823
|
+
deprecated_app_id?: string;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
827
|
+
*/
|
|
828
|
+
deprecated_status?: string;
|
|
829
|
+
|
|
329
830
|
/**
|
|
330
831
|
* Whether to filter by composio managed auth configs
|
|
331
832
|
*/
|
|
332
833
|
is_composio_managed?: string | boolean;
|
|
333
834
|
|
|
334
835
|
/**
|
|
335
|
-
*
|
|
836
|
+
* Number of items per page, max allowed is 1000
|
|
336
837
|
*/
|
|
337
|
-
limit?:
|
|
838
|
+
limit?: number | null;
|
|
338
839
|
|
|
339
840
|
/**
|
|
340
|
-
*
|
|
841
|
+
* Search auth configs by name or id
|
|
842
|
+
*/
|
|
843
|
+
search?: string;
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* Show disabled auth configs
|
|
847
|
+
*/
|
|
848
|
+
show_disabled?: boolean | null;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Comma-separated list of toolkit slugs to filter auth configs by
|
|
341
852
|
*/
|
|
342
853
|
toolkit_slug?: string;
|
|
343
854
|
}
|
|
344
855
|
|
|
345
856
|
export interface AuthConfigUpdateStatusParams {
|
|
857
|
+
/**
|
|
858
|
+
* The unique identifier of the authentication configuration to update
|
|
859
|
+
*/
|
|
346
860
|
nanoid: string;
|
|
347
861
|
}
|
|
348
862
|
|