@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +157 -0
- package/LICENSE +1 -1
- package/README.md +31 -31
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +32 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +32 -29
- package/client.d.ts.map +1 -1
- package/client.js +95 -113
- package/client.js.map +1 -1
- package/client.mjs +88 -83
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -3
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -3
- 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 +2 -3
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -3
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- 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/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.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.map +1 -1
- 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 +3 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +3 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +2 -3
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -3
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +6 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +279 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +14 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +0 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.js +6 -7
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +0 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +0 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +4 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +3 -2
- 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 +0 -1
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +0 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +5 -7
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +5 -7
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +16 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -3
- 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 +14 -9
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +15 -10
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -4
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -4
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -2
- package/internal/utils/log.js.map +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 +3 -3
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- 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.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +10 -10
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/package.json +5 -9
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +232 -41
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +232 -41
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +64 -0
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +64 -0
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +176 -216
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +176 -216
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +70 -0
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +70 -0
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +159 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +159 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +39 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +35 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/command.d.mts +4 -0
- package/resources/mcp/command.d.mts.map +1 -0
- package/resources/mcp/command.d.ts +4 -0
- package/resources/mcp/command.d.ts.map +1 -0
- package/resources/mcp/command.js +9 -0
- package/resources/mcp/command.js.map +1 -0
- package/resources/mcp/command.mjs +5 -0
- package/resources/mcp/command.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -0
- package/resources/mcp/index.d.mts.map +1 -0
- package/resources/mcp/index.d.ts +3 -0
- package/resources/mcp/index.d.ts.map +1 -0
- package/resources/mcp/index.js +9 -0
- package/resources/mcp/index.js.map +1 -0
- package/resources/mcp/index.mjs +4 -0
- package/resources/mcp/index.mjs.map +1 -0
- package/resources/mcp/mcp.d.mts +411 -0
- package/resources/mcp/mcp.d.mts.map +1 -0
- package/resources/mcp/mcp.d.ts +411 -0
- package/resources/mcp/mcp.d.ts.map +1 -0
- package/resources/mcp/mcp.js +101 -0
- package/resources/mcp/mcp.js.map +1 -0
- package/resources/mcp/mcp.mjs +96 -0
- package/resources/mcp/mcp.mjs.map +1 -0
- package/resources/mcp.d.mts +2 -0
- package/resources/mcp.d.mts.map +1 -0
- package/resources/mcp.d.ts +2 -0
- package/resources/mcp.d.ts.map +1 -0
- package/resources/mcp.js +6 -0
- package/resources/mcp.js.map +1 -0
- package/resources/mcp.mjs +3 -0
- package/resources/mcp.mjs.map +1 -0
- package/resources/migration.d.mts +32 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +32 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +17 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +13 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/org/api-key.d.mts +28 -0
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +28 -0
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +20 -0
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +20 -0
- package/resources/org/api-key.mjs.map +1 -1
- package/resources/org/org.js +3 -25
- package/resources/org/org.js.map +1 -1
- package/resources/org/project/api-keys.d.mts +97 -20
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +97 -20
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +57 -0
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +57 -0
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/project.d.mts +182 -7
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +182 -7
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +56 -26
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +52 -0
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +101 -5
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +101 -5
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/trigger.js +21 -0
- package/resources/org/project/trigger.js.map +1 -1
- package/resources/org/project/trigger.mjs +21 -0
- package/resources/org/project/trigger.mjs.map +1 -1
- package/resources/org/project/webhook.d.mts +88 -14
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +88 -14
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +51 -1
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +51 -1
- package/resources/org/project/webhook.mjs.map +1 -1
- package/resources/org/project.js +2 -15
- package/resources/org/project.js.map +1 -1
- package/resources/org.js +2 -15
- package/resources/org.js.map +1 -1
- package/resources/team-members.d.mts +12 -0
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +12 -0
- package/resources/team-members.d.ts.map +1 -1
- package/resources/team-members.js +12 -0
- package/resources/team-members.js.map +1 -1
- package/resources/team-members.mjs +12 -0
- package/resources/team-members.mjs.map +1 -1
- package/resources/toolkits.d.mts +215 -4
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +215 -4
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +20 -2
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +20 -2
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +295 -21
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +295 -21
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +67 -0
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +67 -0
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/handle.d.mts +2 -2
- package/resources/trigger-instances/handle.d.mts.map +1 -1
- package/resources/trigger-instances/handle.d.ts +2 -2
- package/resources/trigger-instances/handle.d.ts.map +1 -1
- package/resources/trigger-instances/handle.js.map +1 -1
- package/resources/trigger-instances/handle.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +51 -31
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +51 -31
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +3 -32
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +1 -8
- 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 +105 -4
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +105 -4
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +29 -0
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +29 -0
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +128 -94
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/headers.ts +4 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/shims.ts +1 -1
- package/src/internal/to-file.ts +4 -2
- package/src/internal/uploads.ts +21 -9
- package/src/internal/utils/base64.ts +16 -13
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -4
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/auth-configs.ts +258 -49
- package/src/resources/connected-accounts.ts +192 -302
- package/src/resources/files.ts +209 -0
- package/src/resources/index.ts +24 -11
- package/src/resources/mcp/command.ts +5 -0
- package/src/resources/mcp/index.ts +14 -0
- package/src/resources/mcp/mcp.ts +522 -0
- package/src/resources/mcp.ts +3 -0
- package/src/resources/migration.ts +46 -0
- package/src/resources/org/api-key.ts +28 -0
- package/src/resources/org/project/api-keys.ts +97 -20
- package/src/resources/org/project/project.ts +182 -13
- package/src/resources/org/project/trigger.ts +101 -9
- package/src/resources/org/project/webhook.ts +88 -14
- package/src/resources/team-members.ts +12 -0
- package/src/resources/toolkits.ts +230 -4
- package/src/resources/tools.ts +316 -21
- package/src/resources/trigger-instances/handle.ts +10 -2
- package/src/resources/trigger-instances/index.ts +0 -3
- package/src/resources/trigger-instances/trigger-instances.ts +55 -44
- package/src/resources/triggers-types.ts +107 -6
- 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 -68
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -64
- 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/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/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -64
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/trigger.ts +0 -108
|
@@ -6,6 +6,18 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
6
6
|
import { path } from '../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class ConnectedAccounts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new connected account
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const connectedAccount =
|
|
15
|
+
* await client.connectedAccounts.create({
|
|
16
|
+
* auth_config: { id: 'id' },
|
|
17
|
+
* connection: {},
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
9
21
|
create(
|
|
10
22
|
body: ConnectedAccountCreateParams,
|
|
11
23
|
options?: RequestOptions,
|
|
@@ -13,10 +25,31 @@ export class ConnectedAccounts extends APIResource {
|
|
|
13
25
|
return this._client.post('/api/v3/connected_accounts', { body, ...options });
|
|
14
26
|
}
|
|
15
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves comprehensive details of a connected account, including authentication
|
|
30
|
+
* configuration, connection status, and all parameters needed for API requests.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const connectedAccount =
|
|
35
|
+
* await client.connectedAccounts.retrieve(
|
|
36
|
+
* 'con_1a2b3c4d5e6f',
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
16
40
|
retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse> {
|
|
17
41
|
return this._client.get(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
18
42
|
}
|
|
19
43
|
|
|
44
|
+
/**
|
|
45
|
+
* List connected accounts with optional filters
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const connectedAccounts =
|
|
50
|
+
* await client.connectedAccounts.list();
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
20
53
|
list(
|
|
21
54
|
query: ConnectedAccountListParams | null | undefined = {},
|
|
22
55
|
options?: RequestOptions,
|
|
@@ -24,14 +57,51 @@ export class ConnectedAccounts extends APIResource {
|
|
|
24
57
|
return this._client.get('/api/v3/connected_accounts', { query, ...options });
|
|
25
58
|
}
|
|
26
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Soft-deletes a connected account by marking it as deleted in the database. This
|
|
62
|
+
* prevents the account from being used for API calls but preserves the record for
|
|
63
|
+
* audit purposes.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const connectedAccount =
|
|
68
|
+
* await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
27
71
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
|
|
28
72
|
return this._client.delete(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
29
73
|
}
|
|
30
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Initiates a new authentication flow for a connected account when credentials
|
|
77
|
+
* have expired or become invalid. This may generate a new authentication URL for
|
|
78
|
+
* OAuth flows or refresh tokens for other auth schemes.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const response = await client.connectedAccounts.refresh(
|
|
83
|
+
* 'con_1a2b3c4d5e6f',
|
|
84
|
+
* );
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
31
87
|
refresh(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse> {
|
|
32
88
|
return this._client.post(path`/api/v3/connected_accounts/${nanoid}/refresh`, options);
|
|
33
89
|
}
|
|
34
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Updates the status of a connected account to either enabled (active) or disabled
|
|
93
|
+
* (inactive). Disabled accounts cannot be used for API calls but remain in the
|
|
94
|
+
* database.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* const response =
|
|
99
|
+
* await client.connectedAccounts.updateStatus(
|
|
100
|
+
* 'con_1a2b3c4d5e6f',
|
|
101
|
+
* { enabled: true },
|
|
102
|
+
* );
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
35
105
|
updateStatus(
|
|
36
106
|
nanoID: string,
|
|
37
107
|
body: ConnectedAccountUpdateStatusParams,
|
|
@@ -47,15 +117,37 @@ export interface ConnectedAccountCreateResponse {
|
|
|
47
117
|
*/
|
|
48
118
|
id: string;
|
|
49
119
|
|
|
120
|
+
deprecated: ConnectedAccountCreateResponse.Deprecated;
|
|
121
|
+
|
|
50
122
|
/**
|
|
51
|
-
*
|
|
123
|
+
* @deprecated DEPRECATED: This field will be removed in a future version. Please
|
|
124
|
+
* use redirect_url instead.
|
|
52
125
|
*/
|
|
53
126
|
redirect_uri: string | null;
|
|
54
127
|
|
|
128
|
+
/**
|
|
129
|
+
* The URL to redirect to after connection completion
|
|
130
|
+
*/
|
|
131
|
+
redirect_url: string | null;
|
|
132
|
+
|
|
55
133
|
/**
|
|
56
134
|
* The status of the connected account
|
|
57
135
|
*/
|
|
58
|
-
status: '
|
|
136
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export namespace ConnectedAccountCreateResponse {
|
|
140
|
+
export interface Deprecated {
|
|
141
|
+
/**
|
|
142
|
+
* The uuid of the auth config
|
|
143
|
+
*/
|
|
144
|
+
authConfigUuid: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The uuid of the connected account
|
|
148
|
+
*/
|
|
149
|
+
uuid: string;
|
|
150
|
+
}
|
|
59
151
|
}
|
|
60
152
|
|
|
61
153
|
export interface ConnectedAccountRetrieveResponse {
|
|
@@ -77,22 +169,23 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
77
169
|
data: Record<string, unknown>;
|
|
78
170
|
|
|
79
171
|
/**
|
|
80
|
-
* Whether the connected account is disabled
|
|
172
|
+
* Whether the connected account is disabled. When true, the account cannot be used
|
|
173
|
+
* for API calls
|
|
81
174
|
*/
|
|
82
175
|
is_disabled: boolean;
|
|
83
176
|
|
|
84
177
|
/**
|
|
85
|
-
* The
|
|
178
|
+
* The initialization data of the connection, including configuration parameters
|
|
86
179
|
*/
|
|
87
180
|
params: Record<string, unknown>;
|
|
88
181
|
|
|
89
182
|
/**
|
|
90
183
|
* The status of the connection
|
|
91
184
|
*/
|
|
92
|
-
status: '
|
|
185
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
93
186
|
|
|
94
187
|
/**
|
|
95
|
-
* The reason the connected account is disabled
|
|
188
|
+
* The reason why the connected account is disabled, if applicable
|
|
96
189
|
*/
|
|
97
190
|
status_reason: string | null;
|
|
98
191
|
|
|
@@ -108,10 +201,7 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
108
201
|
*/
|
|
109
202
|
user_id: string;
|
|
110
203
|
|
|
111
|
-
|
|
112
|
-
* The uuid of the connection
|
|
113
|
-
*/
|
|
114
|
-
uuid: string;
|
|
204
|
+
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
115
205
|
|
|
116
206
|
/**
|
|
117
207
|
* The endpoint to make test request for verification
|
|
@@ -153,6 +243,17 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
153
243
|
* Whether the auth config is disabled
|
|
154
244
|
*/
|
|
155
245
|
is_disabled: boolean;
|
|
246
|
+
|
|
247
|
+
deprecated?: AuthConfig.Deprecated;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export namespace AuthConfig {
|
|
251
|
+
export interface Deprecated {
|
|
252
|
+
/**
|
|
253
|
+
* The uuid of the auth config
|
|
254
|
+
*/
|
|
255
|
+
uuid: string;
|
|
256
|
+
}
|
|
156
257
|
}
|
|
157
258
|
|
|
158
259
|
export interface Toolkit {
|
|
@@ -161,6 +262,18 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
161
262
|
*/
|
|
162
263
|
slug: string;
|
|
163
264
|
}
|
|
265
|
+
|
|
266
|
+
export interface Deprecated {
|
|
267
|
+
/**
|
|
268
|
+
* The labels of the connection
|
|
269
|
+
*/
|
|
270
|
+
labels: Array<string>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The uuid of the connection
|
|
274
|
+
*/
|
|
275
|
+
uuid: string;
|
|
276
|
+
}
|
|
164
277
|
}
|
|
165
278
|
|
|
166
279
|
export interface ConnectedAccountListResponse {
|
|
@@ -198,7 +311,7 @@ export namespace ConnectedAccountListResponse {
|
|
|
198
311
|
/**
|
|
199
312
|
* The status of the connection
|
|
200
313
|
*/
|
|
201
|
-
status: '
|
|
314
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
202
315
|
|
|
203
316
|
/**
|
|
204
317
|
* The reason the connection is disabled
|
|
@@ -217,15 +330,12 @@ export namespace ConnectedAccountListResponse {
|
|
|
217
330
|
*/
|
|
218
331
|
user_id: string;
|
|
219
332
|
|
|
333
|
+
deprecated?: Item.Deprecated;
|
|
334
|
+
|
|
220
335
|
/**
|
|
221
336
|
* The endpoint to make test request for verification
|
|
222
337
|
*/
|
|
223
338
|
test_request_endpoint?: string;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* The uuid of the connected account
|
|
227
|
-
*/
|
|
228
|
-
uuid?: string;
|
|
229
339
|
}
|
|
230
340
|
|
|
231
341
|
export namespace Item {
|
|
@@ -262,6 +372,17 @@ export namespace ConnectedAccountListResponse {
|
|
|
262
372
|
* Whether the auth config is disabled
|
|
263
373
|
*/
|
|
264
374
|
is_disabled: boolean;
|
|
375
|
+
|
|
376
|
+
deprecated?: AuthConfig.Deprecated;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export namespace AuthConfig {
|
|
380
|
+
export interface Deprecated {
|
|
381
|
+
/**
|
|
382
|
+
* The uuid of the auth config
|
|
383
|
+
*/
|
|
384
|
+
uuid: string;
|
|
385
|
+
}
|
|
265
386
|
}
|
|
266
387
|
|
|
267
388
|
export interface Toolkit {
|
|
@@ -270,307 +391,57 @@ export namespace ConnectedAccountListResponse {
|
|
|
270
391
|
*/
|
|
271
392
|
slug: string;
|
|
272
393
|
}
|
|
394
|
+
|
|
395
|
+
export interface Deprecated {
|
|
396
|
+
/**
|
|
397
|
+
* The labels of the connection
|
|
398
|
+
*/
|
|
399
|
+
labels: Array<string>;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The uuid of the connection
|
|
403
|
+
*/
|
|
404
|
+
uuid: string;
|
|
405
|
+
}
|
|
273
406
|
}
|
|
274
407
|
}
|
|
275
408
|
|
|
409
|
+
/**
|
|
410
|
+
* Response returned after successfully deleting a connected account
|
|
411
|
+
*/
|
|
276
412
|
export interface ConnectedAccountDeleteResponse {
|
|
277
413
|
/**
|
|
278
|
-
*
|
|
279
|
-
*/
|
|
280
|
-
id: string;
|
|
281
|
-
|
|
282
|
-
auth_config: ConnectedAccountDeleteResponse.AuthConfig;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* The created at of the connection
|
|
286
|
-
*/
|
|
287
|
-
created_at: string;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* The data of the connection
|
|
291
|
-
*/
|
|
292
|
-
data: Record<string, unknown>;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Whether the connection is disabled
|
|
414
|
+
* Indicates whether the connected account was successfully deleted
|
|
296
415
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* The status of the connection
|
|
301
|
-
*/
|
|
302
|
-
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* The reason the connection is disabled
|
|
306
|
-
*/
|
|
307
|
-
status_reason: string | null;
|
|
308
|
-
|
|
309
|
-
toolkit: ConnectedAccountDeleteResponse.Toolkit;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* The updated at of the connection
|
|
313
|
-
*/
|
|
314
|
-
updated_at: string;
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* The user id of the connection
|
|
318
|
-
*/
|
|
319
|
-
user_id: string;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* The uuid of the connection
|
|
323
|
-
*/
|
|
324
|
-
uuid: string;
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* The endpoint to make test request for verification
|
|
328
|
-
*/
|
|
329
|
-
test_request_endpoint?: string;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export namespace ConnectedAccountDeleteResponse {
|
|
333
|
-
export interface AuthConfig {
|
|
334
|
-
/**
|
|
335
|
-
* The id of the auth config
|
|
336
|
-
*/
|
|
337
|
-
id: string;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* The auth scheme of the auth config
|
|
341
|
-
*/
|
|
342
|
-
auth_scheme:
|
|
343
|
-
| 'OAUTH2'
|
|
344
|
-
| 'OAUTH1'
|
|
345
|
-
| 'OAUTH1A'
|
|
346
|
-
| 'API_KEY'
|
|
347
|
-
| 'BASIC'
|
|
348
|
-
| 'BILLCOM_AUTH'
|
|
349
|
-
| 'BEARER_TOKEN'
|
|
350
|
-
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
351
|
-
| 'NO_AUTH'
|
|
352
|
-
| 'BASIC_WITH_JWT'
|
|
353
|
-
| 'COMPOSIO_LINK'
|
|
354
|
-
| 'CALCOM_AUTH'
|
|
355
|
-
| 'SNOWFLAKE';
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* Whether the auth config is managed by Composio
|
|
359
|
-
*/
|
|
360
|
-
is_composio_managed: boolean;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Whether the auth config is disabled
|
|
364
|
-
*/
|
|
365
|
-
is_disabled: boolean;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
export interface Toolkit {
|
|
369
|
-
/**
|
|
370
|
-
* The slug of the toolkit
|
|
371
|
-
*/
|
|
372
|
-
slug: string;
|
|
373
|
-
}
|
|
416
|
+
success: boolean;
|
|
374
417
|
}
|
|
375
418
|
|
|
376
419
|
export interface ConnectedAccountRefreshResponse {
|
|
377
420
|
/**
|
|
378
|
-
* The
|
|
421
|
+
* The unique identifier of the connected account
|
|
379
422
|
*/
|
|
380
423
|
id: string;
|
|
381
424
|
|
|
382
|
-
auth_config: ConnectedAccountRefreshResponse.AuthConfig;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* The created at of the connection
|
|
386
|
-
*/
|
|
387
|
-
created_at: string;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* The data of the connection
|
|
391
|
-
*/
|
|
392
|
-
data: Record<string, unknown>;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Whether the connection is disabled
|
|
396
|
-
*/
|
|
397
|
-
is_disabled: boolean;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* The status of the connection
|
|
401
|
-
*/
|
|
402
|
-
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
403
|
-
|
|
404
425
|
/**
|
|
405
|
-
* The
|
|
426
|
+
* The URL to which the user should be redirected to complete the authentication
|
|
427
|
+
* process (null for auth schemes that do not require redirection)
|
|
406
428
|
*/
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
toolkit: ConnectedAccountRefreshResponse.Toolkit;
|
|
429
|
+
redirect_url: string | null;
|
|
410
430
|
|
|
411
431
|
/**
|
|
412
|
-
* The
|
|
432
|
+
* The current status of the connected account (e.g., active, pending, failed)
|
|
413
433
|
*/
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* The user id of the connection
|
|
418
|
-
*/
|
|
419
|
-
user_id: string;
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* The uuid of the connection
|
|
423
|
-
*/
|
|
424
|
-
uuid: string;
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* The endpoint to make test request for verification
|
|
428
|
-
*/
|
|
429
|
-
test_request_endpoint?: string;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export namespace ConnectedAccountRefreshResponse {
|
|
433
|
-
export interface AuthConfig {
|
|
434
|
-
/**
|
|
435
|
-
* The id of the auth config
|
|
436
|
-
*/
|
|
437
|
-
id: string;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* The auth scheme of the auth config
|
|
441
|
-
*/
|
|
442
|
-
auth_scheme:
|
|
443
|
-
| 'OAUTH2'
|
|
444
|
-
| 'OAUTH1'
|
|
445
|
-
| 'OAUTH1A'
|
|
446
|
-
| 'API_KEY'
|
|
447
|
-
| 'BASIC'
|
|
448
|
-
| 'BILLCOM_AUTH'
|
|
449
|
-
| 'BEARER_TOKEN'
|
|
450
|
-
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
451
|
-
| 'NO_AUTH'
|
|
452
|
-
| 'BASIC_WITH_JWT'
|
|
453
|
-
| 'COMPOSIO_LINK'
|
|
454
|
-
| 'CALCOM_AUTH'
|
|
455
|
-
| 'SNOWFLAKE';
|
|
456
|
-
|
|
457
|
-
/**
|
|
458
|
-
* Whether the auth config is managed by Composio
|
|
459
|
-
*/
|
|
460
|
-
is_composio_managed: boolean;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* Whether the auth config is disabled
|
|
464
|
-
*/
|
|
465
|
-
is_disabled: boolean;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
export interface Toolkit {
|
|
469
|
-
/**
|
|
470
|
-
* The slug of the toolkit
|
|
471
|
-
*/
|
|
472
|
-
slug: string;
|
|
473
|
-
}
|
|
434
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
474
435
|
}
|
|
475
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Response returned after successfully updating a connected account status
|
|
439
|
+
*/
|
|
476
440
|
export interface ConnectedAccountUpdateStatusResponse {
|
|
477
441
|
/**
|
|
478
|
-
*
|
|
479
|
-
*/
|
|
480
|
-
id: string;
|
|
481
|
-
|
|
482
|
-
auth_config: ConnectedAccountUpdateStatusResponse.AuthConfig;
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* The created at of the connection
|
|
486
|
-
*/
|
|
487
|
-
created_at: string;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* The data of the connection
|
|
491
|
-
*/
|
|
492
|
-
data: Record<string, unknown>;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Whether the connection is disabled
|
|
442
|
+
* Indicates whether the connected account status was successfully updated
|
|
496
443
|
*/
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* The status of the connection
|
|
501
|
-
*/
|
|
502
|
-
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* The reason the connection is disabled
|
|
506
|
-
*/
|
|
507
|
-
status_reason: string | null;
|
|
508
|
-
|
|
509
|
-
toolkit: ConnectedAccountUpdateStatusResponse.Toolkit;
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* The updated at of the connection
|
|
513
|
-
*/
|
|
514
|
-
updated_at: string;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* The user id of the connection
|
|
518
|
-
*/
|
|
519
|
-
user_id: string;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* The uuid of the connection
|
|
523
|
-
*/
|
|
524
|
-
uuid: string;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* The endpoint to make test request for verification
|
|
528
|
-
*/
|
|
529
|
-
test_request_endpoint?: string;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export namespace ConnectedAccountUpdateStatusResponse {
|
|
533
|
-
export interface AuthConfig {
|
|
534
|
-
/**
|
|
535
|
-
* The id of the auth config
|
|
536
|
-
*/
|
|
537
|
-
id: string;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* The auth scheme of the auth config
|
|
541
|
-
*/
|
|
542
|
-
auth_scheme:
|
|
543
|
-
| 'OAUTH2'
|
|
544
|
-
| 'OAUTH1'
|
|
545
|
-
| 'OAUTH1A'
|
|
546
|
-
| 'API_KEY'
|
|
547
|
-
| 'BASIC'
|
|
548
|
-
| 'BILLCOM_AUTH'
|
|
549
|
-
| 'BEARER_TOKEN'
|
|
550
|
-
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
551
|
-
| 'NO_AUTH'
|
|
552
|
-
| 'BASIC_WITH_JWT'
|
|
553
|
-
| 'COMPOSIO_LINK'
|
|
554
|
-
| 'CALCOM_AUTH'
|
|
555
|
-
| 'SNOWFLAKE';
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Whether the auth config is managed by Composio
|
|
559
|
-
*/
|
|
560
|
-
is_composio_managed: boolean;
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* Whether the auth config is disabled
|
|
564
|
-
*/
|
|
565
|
-
is_disabled: boolean;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export interface Toolkit {
|
|
569
|
-
/**
|
|
570
|
-
* The slug of the toolkit
|
|
571
|
-
*/
|
|
572
|
-
slug: string;
|
|
573
|
-
}
|
|
444
|
+
success: boolean;
|
|
574
445
|
}
|
|
575
446
|
|
|
576
447
|
export interface ConnectedAccountCreateParams {
|
|
@@ -588,13 +459,24 @@ export namespace ConnectedAccountCreateParams {
|
|
|
588
459
|
}
|
|
589
460
|
|
|
590
461
|
export interface Connection {
|
|
462
|
+
/**
|
|
463
|
+
* The URL to redirect to after connection completion
|
|
464
|
+
*/
|
|
465
|
+
callback_url?: string;
|
|
466
|
+
|
|
591
467
|
/**
|
|
592
468
|
* Initial data to pass to the connected account
|
|
593
469
|
*/
|
|
594
470
|
data?: Record<string, unknown>;
|
|
595
471
|
|
|
596
472
|
/**
|
|
597
|
-
*
|
|
473
|
+
* Whether the connection is rerouted
|
|
474
|
+
*/
|
|
475
|
+
deprecated_is_v1_rerouted?: boolean;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
479
|
+
* Please use callback_url instead.
|
|
598
480
|
*/
|
|
599
481
|
redirect_uri?: string;
|
|
600
482
|
|
|
@@ -607,15 +489,20 @@ export namespace ConnectedAccountCreateParams {
|
|
|
607
489
|
|
|
608
490
|
export interface ConnectedAccountListParams {
|
|
609
491
|
/**
|
|
610
|
-
* The auth config
|
|
492
|
+
* The auth config ids of the connected accounts
|
|
611
493
|
*/
|
|
612
|
-
|
|
494
|
+
auth_config_ids?: Array<string> | null;
|
|
613
495
|
|
|
614
496
|
/**
|
|
615
497
|
* The cursor to paginate through the connected accounts
|
|
616
498
|
*/
|
|
617
499
|
cursor?: number | null;
|
|
618
500
|
|
|
501
|
+
/**
|
|
502
|
+
* The labels of the connected accounts
|
|
503
|
+
*/
|
|
504
|
+
labels?: Array<string> | null;
|
|
505
|
+
|
|
619
506
|
/**
|
|
620
507
|
* The limit of the connected accounts to return
|
|
621
508
|
*/
|
|
@@ -629,20 +516,23 @@ export interface ConnectedAccountListParams {
|
|
|
629
516
|
/**
|
|
630
517
|
* The status of the connected account
|
|
631
518
|
*/
|
|
632
|
-
|
|
519
|
+
statuses?: Array<'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED'> | null;
|
|
633
520
|
|
|
634
521
|
/**
|
|
635
|
-
* The toolkit
|
|
522
|
+
* The toolkit slugs of the connected accounts
|
|
636
523
|
*/
|
|
637
|
-
|
|
524
|
+
toolkit_slugs?: Array<string> | null;
|
|
638
525
|
|
|
639
526
|
/**
|
|
640
|
-
* The user
|
|
527
|
+
* The user ids of the connected accounts
|
|
641
528
|
*/
|
|
642
|
-
|
|
529
|
+
user_ids?: Array<string> | null;
|
|
643
530
|
}
|
|
644
531
|
|
|
645
532
|
export interface ConnectedAccountUpdateStatusParams {
|
|
533
|
+
/**
|
|
534
|
+
* Set to true to enable the account or false to disable it
|
|
535
|
+
*/
|
|
646
536
|
enabled: boolean;
|
|
647
537
|
}
|
|
648
538
|
|