@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.10
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 +137 -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 +28 -25
- package/client.d.mts.map +1 -1
- package/client.d.ts +28 -25
- 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 +75 -23
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +75 -23
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +18 -0
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +18 -0
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +106 -209
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +106 -209
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +18 -0
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +18 -0
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +126 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +126 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +21 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +17 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- 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 +37 -0
- package/resources/mcp/command.d.mts.map +1 -0
- package/resources/mcp/command.d.ts +37 -0
- package/resources/mcp/command.d.ts.map +1 -0
- package/resources/mcp/command.js +15 -0
- package/resources/mcp/command.js.map +1 -0
- package/resources/mcp/command.mjs +11 -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 +414 -0
- package/resources/mcp/mcp.d.mts.map +1 -0
- package/resources/mcp/mcp.d.ts +414 -0
- package/resources/mcp/mcp.d.ts.map +1 -0
- package/resources/mcp/mcp.js +65 -0
- package/resources/mcp/mcp.js.map +1 -0
- package/resources/mcp/mcp.mjs +60 -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 +23 -0
- package/resources/migration.d.mts.map +1 -0
- package/resources/migration.d.ts +23 -0
- package/resources/migration.d.ts.map +1 -0
- package/resources/migration.js +15 -0
- package/resources/migration.js.map +1 -0
- package/resources/migration.mjs +11 -0
- package/resources/migration.mjs.map +1 -0
- package/resources/org/api-key.d.mts +7 -0
- package/resources/org/api-key.d.mts.map +1 -1
- package/resources/org/api-key.d.ts +7 -0
- package/resources/org/api-key.d.ts.map +1 -1
- package/resources/org/api-key.js +7 -0
- package/resources/org/api-key.js.map +1 -1
- package/resources/org/api-key.mjs +7 -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/project.d.mts +9 -6
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +9 -6
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js +13 -26
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs +9 -0
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/org/project/trigger.d.mts +0 -4
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +0 -4
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/webhook.d.mts +3 -0
- package/resources/org/project/webhook.d.mts.map +1 -1
- package/resources/org/project/webhook.d.ts +3 -0
- package/resources/org/project/webhook.d.ts.map +1 -1
- package/resources/org/project/webhook.js +3 -0
- package/resources/org/project/webhook.js.map +1 -1
- package/resources/org/project/webhook.mjs +3 -0
- 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 +25 -2
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +25 -2
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.js +10 -0
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +10 -0
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +107 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +107 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +14 -0
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +14 -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/trigger-instances.d.mts +32 -9
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +32 -9
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +2 -24
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- 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 +11 -4
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +11 -4
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +7 -0
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +7 -0
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +132 -88
- 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 +100 -31
- package/src/resources/connected-accounts.ts +122 -295
- package/src/resources/files.ts +176 -0
- package/src/resources/index.ts +26 -8
- package/src/resources/mcp/command.ts +50 -0
- package/src/resources/mcp/index.ts +17 -0
- package/src/resources/mcp/mcp.ts +562 -0
- package/src/resources/mcp.ts +3 -0
- package/src/resources/migration.ts +37 -0
- package/src/resources/org/api-key.ts +7 -0
- package/src/resources/org/project/project.ts +9 -12
- package/src/resources/org/project/trigger.ts +0 -8
- package/src/resources/org/project/webhook.ts +3 -0
- package/src/resources/team-members.ts +12 -0
- package/src/resources/toolkits.ts +35 -2
- package/src/resources/tools.ts +128 -0
- package/src/resources/trigger-instances/handle.ts +10 -2
- package/src/resources/trigger-instances/trigger-instances.ts +36 -9
- package/src/resources/triggers-types.ts +13 -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,9 @@ 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
|
+
*/
|
|
9
12
|
create(
|
|
10
13
|
body: ConnectedAccountCreateParams,
|
|
11
14
|
options?: RequestOptions,
|
|
@@ -13,10 +16,16 @@ export class ConnectedAccounts extends APIResource {
|
|
|
13
16
|
return this._client.post('/api/v3/connected_accounts', { body, ...options });
|
|
14
17
|
}
|
|
15
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Get connected account details by ID
|
|
21
|
+
*/
|
|
16
22
|
retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse> {
|
|
17
23
|
return this._client.get(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
18
24
|
}
|
|
19
25
|
|
|
26
|
+
/**
|
|
27
|
+
* List connected accounts with optional filters
|
|
28
|
+
*/
|
|
20
29
|
list(
|
|
21
30
|
query: ConnectedAccountListParams | null | undefined = {},
|
|
22
31
|
options?: RequestOptions,
|
|
@@ -24,14 +33,23 @@ export class ConnectedAccounts extends APIResource {
|
|
|
24
33
|
return this._client.get('/api/v3/connected_accounts', { query, ...options });
|
|
25
34
|
}
|
|
26
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Delete a connected account
|
|
38
|
+
*/
|
|
27
39
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
|
|
28
40
|
return this._client.delete(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
29
41
|
}
|
|
30
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Refresh authentication for a connected account
|
|
45
|
+
*/
|
|
31
46
|
refresh(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse> {
|
|
32
47
|
return this._client.post(path`/api/v3/connected_accounts/${nanoid}/refresh`, options);
|
|
33
48
|
}
|
|
34
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Enable or disable a connected account
|
|
52
|
+
*/
|
|
35
53
|
updateStatus(
|
|
36
54
|
nanoID: string,
|
|
37
55
|
body: ConnectedAccountUpdateStatusParams,
|
|
@@ -47,17 +65,39 @@ export interface ConnectedAccountCreateResponse {
|
|
|
47
65
|
*/
|
|
48
66
|
id: string;
|
|
49
67
|
|
|
68
|
+
deprecated: ConnectedAccountCreateResponse.Deprecated;
|
|
69
|
+
|
|
50
70
|
/**
|
|
51
|
-
*
|
|
71
|
+
* @deprecated DEPRECATED: This field will be removed in a future version. Please
|
|
72
|
+
* use redirect_url instead.
|
|
52
73
|
*/
|
|
53
74
|
redirect_uri: string | null;
|
|
54
75
|
|
|
76
|
+
/**
|
|
77
|
+
* The URL to redirect to after connection completion
|
|
78
|
+
*/
|
|
79
|
+
redirect_url: string | null;
|
|
80
|
+
|
|
55
81
|
/**
|
|
56
82
|
* The status of the connected account
|
|
57
83
|
*/
|
|
58
84
|
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
59
85
|
}
|
|
60
86
|
|
|
87
|
+
export namespace ConnectedAccountCreateResponse {
|
|
88
|
+
export interface Deprecated {
|
|
89
|
+
/**
|
|
90
|
+
* The uuid of the auth config
|
|
91
|
+
*/
|
|
92
|
+
authConfigUuid: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The uuid of the connected account
|
|
96
|
+
*/
|
|
97
|
+
uuid: string;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
61
101
|
export interface ConnectedAccountRetrieveResponse {
|
|
62
102
|
/**
|
|
63
103
|
* The id of the connection
|
|
@@ -108,10 +148,7 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
108
148
|
*/
|
|
109
149
|
user_id: string;
|
|
110
150
|
|
|
111
|
-
|
|
112
|
-
* The uuid of the connection
|
|
113
|
-
*/
|
|
114
|
-
uuid: string;
|
|
151
|
+
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
115
152
|
|
|
116
153
|
/**
|
|
117
154
|
* The endpoint to make test request for verification
|
|
@@ -153,6 +190,17 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
153
190
|
* Whether the auth config is disabled
|
|
154
191
|
*/
|
|
155
192
|
is_disabled: boolean;
|
|
193
|
+
|
|
194
|
+
deprecated?: AuthConfig.Deprecated;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export namespace AuthConfig {
|
|
198
|
+
export interface Deprecated {
|
|
199
|
+
/**
|
|
200
|
+
* The uuid of the auth config
|
|
201
|
+
*/
|
|
202
|
+
uuid: string;
|
|
203
|
+
}
|
|
156
204
|
}
|
|
157
205
|
|
|
158
206
|
export interface Toolkit {
|
|
@@ -161,6 +209,18 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
161
209
|
*/
|
|
162
210
|
slug: string;
|
|
163
211
|
}
|
|
212
|
+
|
|
213
|
+
export interface Deprecated {
|
|
214
|
+
/**
|
|
215
|
+
* The labels of the connection
|
|
216
|
+
*/
|
|
217
|
+
labels: Array<string>;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The uuid of the connection
|
|
221
|
+
*/
|
|
222
|
+
uuid: string;
|
|
223
|
+
}
|
|
164
224
|
}
|
|
165
225
|
|
|
166
226
|
export interface ConnectedAccountListResponse {
|
|
@@ -217,15 +277,12 @@ export namespace ConnectedAccountListResponse {
|
|
|
217
277
|
*/
|
|
218
278
|
user_id: string;
|
|
219
279
|
|
|
280
|
+
deprecated?: Item.Deprecated;
|
|
281
|
+
|
|
220
282
|
/**
|
|
221
283
|
* The endpoint to make test request for verification
|
|
222
284
|
*/
|
|
223
285
|
test_request_endpoint?: string;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* The uuid of the connected account
|
|
227
|
-
*/
|
|
228
|
-
uuid?: string;
|
|
229
286
|
}
|
|
230
287
|
|
|
231
288
|
export namespace Item {
|
|
@@ -262,6 +319,17 @@ export namespace ConnectedAccountListResponse {
|
|
|
262
319
|
* Whether the auth config is disabled
|
|
263
320
|
*/
|
|
264
321
|
is_disabled: boolean;
|
|
322
|
+
|
|
323
|
+
deprecated?: AuthConfig.Deprecated;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export namespace AuthConfig {
|
|
327
|
+
export interface Deprecated {
|
|
328
|
+
/**
|
|
329
|
+
* The uuid of the auth config
|
|
330
|
+
*/
|
|
331
|
+
uuid: string;
|
|
332
|
+
}
|
|
265
333
|
}
|
|
266
334
|
|
|
267
335
|
export interface Toolkit {
|
|
@@ -270,307 +338,50 @@ export namespace ConnectedAccountListResponse {
|
|
|
270
338
|
*/
|
|
271
339
|
slug: string;
|
|
272
340
|
}
|
|
341
|
+
|
|
342
|
+
export interface Deprecated {
|
|
343
|
+
/**
|
|
344
|
+
* The labels of the connection
|
|
345
|
+
*/
|
|
346
|
+
labels: Array<string>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The uuid of the connection
|
|
350
|
+
*/
|
|
351
|
+
uuid: string;
|
|
352
|
+
}
|
|
273
353
|
}
|
|
274
354
|
}
|
|
275
355
|
|
|
276
356
|
export interface ConnectedAccountDeleteResponse {
|
|
277
357
|
/**
|
|
278
|
-
* The
|
|
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
|
|
296
|
-
*/
|
|
297
|
-
is_disabled: boolean;
|
|
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
|
|
358
|
+
* The success of the update
|
|
313
359
|
*/
|
|
314
|
-
|
|
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
|
-
}
|
|
360
|
+
success: boolean;
|
|
374
361
|
}
|
|
375
362
|
|
|
376
363
|
export interface ConnectedAccountRefreshResponse {
|
|
377
364
|
/**
|
|
378
|
-
* The id of the
|
|
365
|
+
* The id of the connected account
|
|
379
366
|
*/
|
|
380
367
|
id: string;
|
|
381
368
|
|
|
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
369
|
/**
|
|
395
|
-
*
|
|
370
|
+
* The redirect URL of the app (previously named redirect_uri)
|
|
396
371
|
*/
|
|
397
|
-
|
|
372
|
+
redirect_url: string | null;
|
|
398
373
|
|
|
399
374
|
/**
|
|
400
|
-
* The status of the
|
|
375
|
+
* The status of the connected account
|
|
401
376
|
*/
|
|
402
377
|
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* The reason the connection is disabled
|
|
406
|
-
*/
|
|
407
|
-
status_reason: string | null;
|
|
408
|
-
|
|
409
|
-
toolkit: ConnectedAccountRefreshResponse.Toolkit;
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* The updated at of the connection
|
|
413
|
-
*/
|
|
414
|
-
updated_at: string;
|
|
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
|
-
}
|
|
474
378
|
}
|
|
475
379
|
|
|
476
380
|
export interface ConnectedAccountUpdateStatusResponse {
|
|
477
381
|
/**
|
|
478
|
-
* The
|
|
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
|
|
496
|
-
*/
|
|
497
|
-
is_disabled: boolean;
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* The status of the connection
|
|
382
|
+
* The success of the update
|
|
501
383
|
*/
|
|
502
|
-
|
|
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
|
-
}
|
|
384
|
+
success: boolean;
|
|
574
385
|
}
|
|
575
386
|
|
|
576
387
|
export interface ConnectedAccountCreateParams {
|
|
@@ -588,13 +399,24 @@ export namespace ConnectedAccountCreateParams {
|
|
|
588
399
|
}
|
|
589
400
|
|
|
590
401
|
export interface Connection {
|
|
402
|
+
/**
|
|
403
|
+
* The URL to redirect to after connection completion
|
|
404
|
+
*/
|
|
405
|
+
callback_url?: string;
|
|
406
|
+
|
|
591
407
|
/**
|
|
592
408
|
* Initial data to pass to the connected account
|
|
593
409
|
*/
|
|
594
410
|
data?: Record<string, unknown>;
|
|
595
411
|
|
|
596
412
|
/**
|
|
597
|
-
*
|
|
413
|
+
* Whether the connection is rerouted
|
|
414
|
+
*/
|
|
415
|
+
deprecated_is_v1_rerouted?: boolean;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
419
|
+
* Please use callback_url instead.
|
|
598
420
|
*/
|
|
599
421
|
redirect_uri?: string;
|
|
600
422
|
|
|
@@ -607,15 +429,20 @@ export namespace ConnectedAccountCreateParams {
|
|
|
607
429
|
|
|
608
430
|
export interface ConnectedAccountListParams {
|
|
609
431
|
/**
|
|
610
|
-
* The auth config
|
|
432
|
+
* The auth config ids of the connected accounts
|
|
611
433
|
*/
|
|
612
|
-
|
|
434
|
+
auth_config_ids?: Array<string> | null;
|
|
613
435
|
|
|
614
436
|
/**
|
|
615
437
|
* The cursor to paginate through the connected accounts
|
|
616
438
|
*/
|
|
617
439
|
cursor?: number | null;
|
|
618
440
|
|
|
441
|
+
/**
|
|
442
|
+
* The labels of the connected accounts
|
|
443
|
+
*/
|
|
444
|
+
labels?: Array<string> | null;
|
|
445
|
+
|
|
619
446
|
/**
|
|
620
447
|
* The limit of the connected accounts to return
|
|
621
448
|
*/
|
|
@@ -629,17 +456,17 @@ export interface ConnectedAccountListParams {
|
|
|
629
456
|
/**
|
|
630
457
|
* The status of the connected account
|
|
631
458
|
*/
|
|
632
|
-
|
|
459
|
+
statuses?: Array<'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED'> | null;
|
|
633
460
|
|
|
634
461
|
/**
|
|
635
|
-
* The toolkit
|
|
462
|
+
* The toolkit slugs of the connected accounts
|
|
636
463
|
*/
|
|
637
|
-
|
|
464
|
+
toolkit_slugs?: Array<string> | null;
|
|
638
465
|
|
|
639
466
|
/**
|
|
640
|
-
* The user
|
|
467
|
+
* The user ids of the connected accounts
|
|
641
468
|
*/
|
|
642
|
-
|
|
469
|
+
user_ids?: Array<string> | null;
|
|
643
470
|
}
|
|
644
471
|
|
|
645
472
|
export interface ConnectedAccountUpdateStatusParams {
|