@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
|
@@ -2,11 +2,81 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class ConnectedAccounts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new connected account
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const connectedAccount =
|
|
11
|
+
* await client.connectedAccounts.create({
|
|
12
|
+
* auth_config: { id: 'id' },
|
|
13
|
+
* connection: {},
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
5
17
|
create(body: ConnectedAccountCreateParams, options?: RequestOptions): APIPromise<ConnectedAccountCreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves comprehensive details of a connected account, including authentication
|
|
20
|
+
* configuration, connection status, and all parameters needed for API requests.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const connectedAccount =
|
|
25
|
+
* await client.connectedAccounts.retrieve(
|
|
26
|
+
* 'con_1a2b3c4d5e6f',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
6
30
|
retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List connected accounts with optional filters
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const connectedAccounts =
|
|
37
|
+
* await client.connectedAccounts.list();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
7
40
|
list(query?: ConnectedAccountListParams | null | undefined, options?: RequestOptions): APIPromise<ConnectedAccountListResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Soft-deletes a connected account by marking it as deleted in the database. This
|
|
43
|
+
* prevents the account from being used for API calls but preserves the record for
|
|
44
|
+
* audit purposes.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const connectedAccount =
|
|
49
|
+
* await client.connectedAccounts.delete('con_1a2b3c4d5e6f');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
8
52
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Initiates a new authentication flow for a connected account when credentials
|
|
55
|
+
* have expired or become invalid. This may generate a new authentication URL for
|
|
56
|
+
* OAuth flows or refresh tokens for other auth schemes.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.connectedAccounts.refresh(
|
|
61
|
+
* 'con_1a2b3c4d5e6f',
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
9
65
|
refresh(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* Updates the status of a connected account to either enabled (active) or disabled
|
|
68
|
+
* (inactive). Disabled accounts cannot be used for API calls but remain in the
|
|
69
|
+
* database.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const response =
|
|
74
|
+
* await client.connectedAccounts.updateStatus(
|
|
75
|
+
* 'con_1a2b3c4d5e6f',
|
|
76
|
+
* { enabled: true },
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
10
80
|
updateStatus(nanoID: string, body: ConnectedAccountUpdateStatusParams, options?: RequestOptions): APIPromise<ConnectedAccountUpdateStatusResponse>;
|
|
11
81
|
}
|
|
12
82
|
export interface ConnectedAccountCreateResponse {
|
|
@@ -14,14 +84,32 @@ export interface ConnectedAccountCreateResponse {
|
|
|
14
84
|
* The id of the connected account
|
|
15
85
|
*/
|
|
16
86
|
id: string;
|
|
87
|
+
deprecated: ConnectedAccountCreateResponse.Deprecated;
|
|
17
88
|
/**
|
|
18
|
-
*
|
|
89
|
+
* @deprecated DEPRECATED: This field will be removed in a future version. Please
|
|
90
|
+
* use redirect_url instead.
|
|
19
91
|
*/
|
|
20
92
|
redirect_uri: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* The URL to redirect to after connection completion
|
|
95
|
+
*/
|
|
96
|
+
redirect_url: string | null;
|
|
21
97
|
/**
|
|
22
98
|
* The status of the connected account
|
|
23
99
|
*/
|
|
24
|
-
status: '
|
|
100
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
101
|
+
}
|
|
102
|
+
export declare namespace ConnectedAccountCreateResponse {
|
|
103
|
+
interface Deprecated {
|
|
104
|
+
/**
|
|
105
|
+
* The uuid of the auth config
|
|
106
|
+
*/
|
|
107
|
+
authConfigUuid: string;
|
|
108
|
+
/**
|
|
109
|
+
* The uuid of the connected account
|
|
110
|
+
*/
|
|
111
|
+
uuid: string;
|
|
112
|
+
}
|
|
25
113
|
}
|
|
26
114
|
export interface ConnectedAccountRetrieveResponse {
|
|
27
115
|
/**
|
|
@@ -38,19 +126,20 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
38
126
|
*/
|
|
39
127
|
data: Record<string, unknown>;
|
|
40
128
|
/**
|
|
41
|
-
* Whether the connected account is disabled
|
|
129
|
+
* Whether the connected account is disabled. When true, the account cannot be used
|
|
130
|
+
* for API calls
|
|
42
131
|
*/
|
|
43
132
|
is_disabled: boolean;
|
|
44
133
|
/**
|
|
45
|
-
* The
|
|
134
|
+
* The initialization data of the connection, including configuration parameters
|
|
46
135
|
*/
|
|
47
136
|
params: Record<string, unknown>;
|
|
48
137
|
/**
|
|
49
138
|
* The status of the connection
|
|
50
139
|
*/
|
|
51
|
-
status: '
|
|
140
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
52
141
|
/**
|
|
53
|
-
* The reason the connected account is disabled
|
|
142
|
+
* The reason why the connected account is disabled, if applicable
|
|
54
143
|
*/
|
|
55
144
|
status_reason: string | null;
|
|
56
145
|
toolkit: ConnectedAccountRetrieveResponse.Toolkit;
|
|
@@ -62,10 +151,7 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
62
151
|
* The user id of the connection
|
|
63
152
|
*/
|
|
64
153
|
user_id: string;
|
|
65
|
-
|
|
66
|
-
* The uuid of the connection
|
|
67
|
-
*/
|
|
68
|
-
uuid: string;
|
|
154
|
+
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
69
155
|
/**
|
|
70
156
|
* The endpoint to make test request for verification
|
|
71
157
|
*/
|
|
@@ -89,6 +175,15 @@ export declare namespace ConnectedAccountRetrieveResponse {
|
|
|
89
175
|
* Whether the auth config is disabled
|
|
90
176
|
*/
|
|
91
177
|
is_disabled: boolean;
|
|
178
|
+
deprecated?: AuthConfig.Deprecated;
|
|
179
|
+
}
|
|
180
|
+
namespace AuthConfig {
|
|
181
|
+
interface Deprecated {
|
|
182
|
+
/**
|
|
183
|
+
* The uuid of the auth config
|
|
184
|
+
*/
|
|
185
|
+
uuid: string;
|
|
186
|
+
}
|
|
92
187
|
}
|
|
93
188
|
interface Toolkit {
|
|
94
189
|
/**
|
|
@@ -96,6 +191,16 @@ export declare namespace ConnectedAccountRetrieveResponse {
|
|
|
96
191
|
*/
|
|
97
192
|
slug: string;
|
|
98
193
|
}
|
|
194
|
+
interface Deprecated {
|
|
195
|
+
/**
|
|
196
|
+
* The labels of the connection
|
|
197
|
+
*/
|
|
198
|
+
labels: Array<string>;
|
|
199
|
+
/**
|
|
200
|
+
* The uuid of the connection
|
|
201
|
+
*/
|
|
202
|
+
uuid: string;
|
|
203
|
+
}
|
|
99
204
|
}
|
|
100
205
|
export interface ConnectedAccountListResponse {
|
|
101
206
|
items: Array<ConnectedAccountListResponse.Item>;
|
|
@@ -124,7 +229,7 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
124
229
|
/**
|
|
125
230
|
* The status of the connection
|
|
126
231
|
*/
|
|
127
|
-
status: '
|
|
232
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
128
233
|
/**
|
|
129
234
|
* The reason the connection is disabled
|
|
130
235
|
*/
|
|
@@ -138,14 +243,11 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
138
243
|
* The user id of the connection
|
|
139
244
|
*/
|
|
140
245
|
user_id: string;
|
|
246
|
+
deprecated?: Item.Deprecated;
|
|
141
247
|
/**
|
|
142
248
|
* The endpoint to make test request for verification
|
|
143
249
|
*/
|
|
144
250
|
test_request_endpoint?: string;
|
|
145
|
-
/**
|
|
146
|
-
* The uuid of the connected account
|
|
147
|
-
*/
|
|
148
|
-
uuid?: string;
|
|
149
251
|
}
|
|
150
252
|
namespace Item {
|
|
151
253
|
interface AuthConfig {
|
|
@@ -165,6 +267,15 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
165
267
|
* Whether the auth config is disabled
|
|
166
268
|
*/
|
|
167
269
|
is_disabled: boolean;
|
|
270
|
+
deprecated?: AuthConfig.Deprecated;
|
|
271
|
+
}
|
|
272
|
+
namespace AuthConfig {
|
|
273
|
+
interface Deprecated {
|
|
274
|
+
/**
|
|
275
|
+
* The uuid of the auth config
|
|
276
|
+
*/
|
|
277
|
+
uuid: string;
|
|
278
|
+
}
|
|
168
279
|
}
|
|
169
280
|
interface Toolkit {
|
|
170
281
|
/**
|
|
@@ -172,217 +283,50 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
172
283
|
*/
|
|
173
284
|
slug: string;
|
|
174
285
|
}
|
|
286
|
+
interface Deprecated {
|
|
287
|
+
/**
|
|
288
|
+
* The labels of the connection
|
|
289
|
+
*/
|
|
290
|
+
labels: Array<string>;
|
|
291
|
+
/**
|
|
292
|
+
* The uuid of the connection
|
|
293
|
+
*/
|
|
294
|
+
uuid: string;
|
|
295
|
+
}
|
|
175
296
|
}
|
|
176
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Response returned after successfully deleting a connected account
|
|
300
|
+
*/
|
|
177
301
|
export interface ConnectedAccountDeleteResponse {
|
|
178
302
|
/**
|
|
179
|
-
*
|
|
180
|
-
*/
|
|
181
|
-
id: string;
|
|
182
|
-
auth_config: ConnectedAccountDeleteResponse.AuthConfig;
|
|
183
|
-
/**
|
|
184
|
-
* The created at of the connection
|
|
185
|
-
*/
|
|
186
|
-
created_at: string;
|
|
187
|
-
/**
|
|
188
|
-
* The data of the connection
|
|
189
|
-
*/
|
|
190
|
-
data: Record<string, unknown>;
|
|
191
|
-
/**
|
|
192
|
-
* Whether the connection is disabled
|
|
193
|
-
*/
|
|
194
|
-
is_disabled: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* The status of the connection
|
|
197
|
-
*/
|
|
198
|
-
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
199
|
-
/**
|
|
200
|
-
* The reason the connection is disabled
|
|
201
|
-
*/
|
|
202
|
-
status_reason: string | null;
|
|
203
|
-
toolkit: ConnectedAccountDeleteResponse.Toolkit;
|
|
204
|
-
/**
|
|
205
|
-
* The updated at of the connection
|
|
206
|
-
*/
|
|
207
|
-
updated_at: string;
|
|
208
|
-
/**
|
|
209
|
-
* The user id of the connection
|
|
210
|
-
*/
|
|
211
|
-
user_id: string;
|
|
212
|
-
/**
|
|
213
|
-
* The uuid of the connection
|
|
214
|
-
*/
|
|
215
|
-
uuid: string;
|
|
216
|
-
/**
|
|
217
|
-
* The endpoint to make test request for verification
|
|
303
|
+
* Indicates whether the connected account was successfully deleted
|
|
218
304
|
*/
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
export declare namespace ConnectedAccountDeleteResponse {
|
|
222
|
-
interface AuthConfig {
|
|
223
|
-
/**
|
|
224
|
-
* The id of the auth config
|
|
225
|
-
*/
|
|
226
|
-
id: string;
|
|
227
|
-
/**
|
|
228
|
-
* The auth scheme of the auth config
|
|
229
|
-
*/
|
|
230
|
-
auth_scheme: 'OAUTH2' | 'OAUTH1' | 'OAUTH1A' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'COMPOSIO_LINK' | 'CALCOM_AUTH' | 'SNOWFLAKE';
|
|
231
|
-
/**
|
|
232
|
-
* Whether the auth config is managed by Composio
|
|
233
|
-
*/
|
|
234
|
-
is_composio_managed: boolean;
|
|
235
|
-
/**
|
|
236
|
-
* Whether the auth config is disabled
|
|
237
|
-
*/
|
|
238
|
-
is_disabled: boolean;
|
|
239
|
-
}
|
|
240
|
-
interface Toolkit {
|
|
241
|
-
/**
|
|
242
|
-
* The slug of the toolkit
|
|
243
|
-
*/
|
|
244
|
-
slug: string;
|
|
245
|
-
}
|
|
305
|
+
success: boolean;
|
|
246
306
|
}
|
|
247
307
|
export interface ConnectedAccountRefreshResponse {
|
|
248
308
|
/**
|
|
249
|
-
* The
|
|
309
|
+
* The unique identifier of the connected account
|
|
250
310
|
*/
|
|
251
311
|
id: string;
|
|
252
|
-
auth_config: ConnectedAccountRefreshResponse.AuthConfig;
|
|
253
|
-
/**
|
|
254
|
-
* The created at of the connection
|
|
255
|
-
*/
|
|
256
|
-
created_at: string;
|
|
257
|
-
/**
|
|
258
|
-
* The data of the connection
|
|
259
|
-
*/
|
|
260
|
-
data: Record<string, unknown>;
|
|
261
|
-
/**
|
|
262
|
-
* Whether the connection is disabled
|
|
263
|
-
*/
|
|
264
|
-
is_disabled: boolean;
|
|
265
|
-
/**
|
|
266
|
-
* The status of the connection
|
|
267
|
-
*/
|
|
268
|
-
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
269
|
-
/**
|
|
270
|
-
* The reason the connection is disabled
|
|
271
|
-
*/
|
|
272
|
-
status_reason: string | null;
|
|
273
|
-
toolkit: ConnectedAccountRefreshResponse.Toolkit;
|
|
274
|
-
/**
|
|
275
|
-
* The updated at of the connection
|
|
276
|
-
*/
|
|
277
|
-
updated_at: string;
|
|
278
|
-
/**
|
|
279
|
-
* The user id of the connection
|
|
280
|
-
*/
|
|
281
|
-
user_id: string;
|
|
282
312
|
/**
|
|
283
|
-
* The
|
|
313
|
+
* The URL to which the user should be redirected to complete the authentication
|
|
314
|
+
* process (null for auth schemes that do not require redirection)
|
|
284
315
|
*/
|
|
285
|
-
|
|
316
|
+
redirect_url: string | null;
|
|
286
317
|
/**
|
|
287
|
-
* The
|
|
318
|
+
* The current status of the connected account (e.g., active, pending, failed)
|
|
288
319
|
*/
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
export declare namespace ConnectedAccountRefreshResponse {
|
|
292
|
-
interface AuthConfig {
|
|
293
|
-
/**
|
|
294
|
-
* The id of the auth config
|
|
295
|
-
*/
|
|
296
|
-
id: string;
|
|
297
|
-
/**
|
|
298
|
-
* The auth scheme of the auth config
|
|
299
|
-
*/
|
|
300
|
-
auth_scheme: 'OAUTH2' | 'OAUTH1' | 'OAUTH1A' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'COMPOSIO_LINK' | 'CALCOM_AUTH' | 'SNOWFLAKE';
|
|
301
|
-
/**
|
|
302
|
-
* Whether the auth config is managed by Composio
|
|
303
|
-
*/
|
|
304
|
-
is_composio_managed: boolean;
|
|
305
|
-
/**
|
|
306
|
-
* Whether the auth config is disabled
|
|
307
|
-
*/
|
|
308
|
-
is_disabled: boolean;
|
|
309
|
-
}
|
|
310
|
-
interface Toolkit {
|
|
311
|
-
/**
|
|
312
|
-
* The slug of the toolkit
|
|
313
|
-
*/
|
|
314
|
-
slug: string;
|
|
315
|
-
}
|
|
320
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED';
|
|
316
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* Response returned after successfully updating a connected account status
|
|
324
|
+
*/
|
|
317
325
|
export interface ConnectedAccountUpdateStatusResponse {
|
|
318
326
|
/**
|
|
319
|
-
*
|
|
320
|
-
*/
|
|
321
|
-
id: string;
|
|
322
|
-
auth_config: ConnectedAccountUpdateStatusResponse.AuthConfig;
|
|
323
|
-
/**
|
|
324
|
-
* The created at of the connection
|
|
325
|
-
*/
|
|
326
|
-
created_at: string;
|
|
327
|
-
/**
|
|
328
|
-
* The data of the connection
|
|
329
|
-
*/
|
|
330
|
-
data: Record<string, unknown>;
|
|
331
|
-
/**
|
|
332
|
-
* Whether the connection is disabled
|
|
333
|
-
*/
|
|
334
|
-
is_disabled: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* The status of the connection
|
|
337
|
-
*/
|
|
338
|
-
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
339
|
-
/**
|
|
340
|
-
* The reason the connection is disabled
|
|
341
|
-
*/
|
|
342
|
-
status_reason: string | null;
|
|
343
|
-
toolkit: ConnectedAccountUpdateStatusResponse.Toolkit;
|
|
344
|
-
/**
|
|
345
|
-
* The updated at of the connection
|
|
346
|
-
*/
|
|
347
|
-
updated_at: string;
|
|
348
|
-
/**
|
|
349
|
-
* The user id of the connection
|
|
350
|
-
*/
|
|
351
|
-
user_id: string;
|
|
352
|
-
/**
|
|
353
|
-
* The uuid of the connection
|
|
327
|
+
* Indicates whether the connected account status was successfully updated
|
|
354
328
|
*/
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* The endpoint to make test request for verification
|
|
358
|
-
*/
|
|
359
|
-
test_request_endpoint?: string;
|
|
360
|
-
}
|
|
361
|
-
export declare namespace ConnectedAccountUpdateStatusResponse {
|
|
362
|
-
interface AuthConfig {
|
|
363
|
-
/**
|
|
364
|
-
* The id of the auth config
|
|
365
|
-
*/
|
|
366
|
-
id: string;
|
|
367
|
-
/**
|
|
368
|
-
* The auth scheme of the auth config
|
|
369
|
-
*/
|
|
370
|
-
auth_scheme: 'OAUTH2' | 'OAUTH1' | 'OAUTH1A' | 'API_KEY' | 'BASIC' | 'BILLCOM_AUTH' | 'BEARER_TOKEN' | 'GOOGLE_SERVICE_ACCOUNT' | 'NO_AUTH' | 'BASIC_WITH_JWT' | 'COMPOSIO_LINK' | 'CALCOM_AUTH' | 'SNOWFLAKE';
|
|
371
|
-
/**
|
|
372
|
-
* Whether the auth config is managed by Composio
|
|
373
|
-
*/
|
|
374
|
-
is_composio_managed: boolean;
|
|
375
|
-
/**
|
|
376
|
-
* Whether the auth config is disabled
|
|
377
|
-
*/
|
|
378
|
-
is_disabled: boolean;
|
|
379
|
-
}
|
|
380
|
-
interface Toolkit {
|
|
381
|
-
/**
|
|
382
|
-
* The slug of the toolkit
|
|
383
|
-
*/
|
|
384
|
-
slug: string;
|
|
385
|
-
}
|
|
329
|
+
success: boolean;
|
|
386
330
|
}
|
|
387
331
|
export interface ConnectedAccountCreateParams {
|
|
388
332
|
auth_config: ConnectedAccountCreateParams.AuthConfig;
|
|
@@ -396,12 +340,21 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
396
340
|
id: string;
|
|
397
341
|
}
|
|
398
342
|
interface Connection {
|
|
343
|
+
/**
|
|
344
|
+
* The URL to redirect to after connection completion
|
|
345
|
+
*/
|
|
346
|
+
callback_url?: string;
|
|
399
347
|
/**
|
|
400
348
|
* Initial data to pass to the connected account
|
|
401
349
|
*/
|
|
402
350
|
data?: Record<string, unknown>;
|
|
403
351
|
/**
|
|
404
|
-
*
|
|
352
|
+
* Whether the connection is rerouted
|
|
353
|
+
*/
|
|
354
|
+
deprecated_is_v1_rerouted?: boolean;
|
|
355
|
+
/**
|
|
356
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
357
|
+
* Please use callback_url instead.
|
|
405
358
|
*/
|
|
406
359
|
redirect_uri?: string;
|
|
407
360
|
/**
|
|
@@ -412,13 +365,17 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
412
365
|
}
|
|
413
366
|
export interface ConnectedAccountListParams {
|
|
414
367
|
/**
|
|
415
|
-
* The auth config
|
|
368
|
+
* The auth config ids of the connected accounts
|
|
416
369
|
*/
|
|
417
|
-
|
|
370
|
+
auth_config_ids?: Array<string> | null;
|
|
418
371
|
/**
|
|
419
372
|
* The cursor to paginate through the connected accounts
|
|
420
373
|
*/
|
|
421
374
|
cursor?: number | null;
|
|
375
|
+
/**
|
|
376
|
+
* The labels of the connected accounts
|
|
377
|
+
*/
|
|
378
|
+
labels?: Array<string> | null;
|
|
422
379
|
/**
|
|
423
380
|
* The limit of the connected accounts to return
|
|
424
381
|
*/
|
|
@@ -430,17 +387,20 @@ export interface ConnectedAccountListParams {
|
|
|
430
387
|
/**
|
|
431
388
|
* The status of the connected account
|
|
432
389
|
*/
|
|
433
|
-
|
|
390
|
+
statuses?: Array<'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED'> | null;
|
|
434
391
|
/**
|
|
435
|
-
* The toolkit
|
|
392
|
+
* The toolkit slugs of the connected accounts
|
|
436
393
|
*/
|
|
437
|
-
|
|
394
|
+
toolkit_slugs?: Array<string> | null;
|
|
438
395
|
/**
|
|
439
|
-
* The user
|
|
396
|
+
* The user ids of the connected accounts
|
|
440
397
|
*/
|
|
441
|
-
|
|
398
|
+
user_ids?: Array<string> | null;
|
|
442
399
|
}
|
|
443
400
|
export interface ConnectedAccountUpdateStatusParams {
|
|
401
|
+
/**
|
|
402
|
+
* Set to true to enable the account or false to disable it
|
|
403
|
+
*/
|
|
444
404
|
enabled: boolean;
|
|
445
405
|
}
|
|
446
406
|
export declare namespace ConnectedAccounts {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-accounts.d.mts","sourceRoot":"","sources":["../src/resources/connected-accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,MAAM,CACJ,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,cAA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