@composio/client 0.1.0-alpha.1
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 +15 -0
- package/LICENSE +201 -0
- package/README.md +373 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +19 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +218 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +218 -0
- package/client.d.ts.map +1 -0
- package/client.js +506 -0
- package/client.js.map +1 -0
- package/client.mjs +479 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +47 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +47 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +84 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +80 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +47 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +47 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +19 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +75 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +75 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +21 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +21 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +77 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +72 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +13 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +13 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +36 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +33 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +33 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims/crypto.d.mts +13 -0
- package/internal/shims/crypto.d.mts.map +1 -0
- package/internal/shims/crypto.d.ts +13 -0
- package/internal/shims/crypto.d.ts.map +1 -0
- package/internal/shims/crypto.js +13 -0
- package/internal/shims/crypto.js.map +1 -0
- package/internal/shims/crypto.mjs +9 -0
- package/internal/shims/crypto.mjs.map +1 -0
- package/internal/shims/file.d.mts +23 -0
- package/internal/shims/file.d.mts.map +1 -0
- package/internal/shims/file.d.ts +23 -0
- package/internal/shims/file.d.ts.map +1 -0
- package/internal/shims/file.js +16 -0
- package/internal/shims/file.js.map +1 -0
- package/internal/shims/file.mjs +12 -0
- package/internal/shims/file.mjs.map +1 -0
- package/internal/shims/getBuiltinModule.d.mts +11 -0
- package/internal/shims/getBuiltinModule.d.mts.map +1 -0
- package/internal/shims/getBuiltinModule.d.ts +11 -0
- package/internal/shims/getBuiltinModule.d.ts.map +1 -0
- package/internal/shims/getBuiltinModule.js +68 -0
- package/internal/shims/getBuiltinModule.js.map +1 -0
- package/internal/shims/getBuiltinModule.mjs +64 -0
- package/internal/shims/getBuiltinModule.mjs.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.mts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.mts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.d.ts +2 -0
- package/internal/shims/nullGetBuiltinModule.d.ts.map +1 -0
- package/internal/shims/nullGetBuiltinModule.js +5 -0
- package/internal/shims/nullGetBuiltinModule.js.map +1 -0
- package/internal/shims/nullGetBuiltinModule.mjs +2 -0
- package/internal/shims/nullGetBuiltinModule.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +93 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +46 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +46 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +87 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/types.d.mts +68 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +68 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +44 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +44 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +131 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +122 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +33 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +28 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +38 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +38 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +20 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +16 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +24 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +146 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +19 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/action-execution.d.mts +155 -0
- package/resources/action-execution.d.mts.map +1 -0
- package/resources/action-execution.d.ts +155 -0
- package/resources/action-execution.d.ts.map +1 -0
- package/resources/action-execution.js +19 -0
- package/resources/action-execution.js.map +1 -0
- package/resources/action-execution.mjs +15 -0
- package/resources/action-execution.mjs.map +1 -0
- package/resources/auth-configs.d.mts +217 -0
- package/resources/auth-configs.d.mts.map +1 -0
- package/resources/auth-configs.d.ts +217 -0
- package/resources/auth-configs.d.ts.map +1 -0
- package/resources/auth-configs.js +29 -0
- package/resources/auth-configs.js.map +1 -0
- package/resources/auth-configs.mjs +25 -0
- package/resources/auth-configs.mjs.map +1 -0
- package/resources/connected-accounts.d.mts +449 -0
- package/resources/connected-accounts.d.mts.map +1 -0
- package/resources/connected-accounts.d.ts +449 -0
- package/resources/connected-accounts.d.ts.map +1 -0
- package/resources/connected-accounts.js +28 -0
- package/resources/connected-accounts.js.map +1 -0
- package/resources/connected-accounts.mjs +24 -0
- package/resources/connected-accounts.mjs.map +1 -0
- package/resources/index.d.mts +11 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +11 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +25 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +12 -0
- package/resources/index.mjs.map +1 -0
- package/resources/org/api-key.d.mts +17 -0
- package/resources/org/api-key.d.mts.map +1 -0
- package/resources/org/api-key.d.ts +17 -0
- package/resources/org/api-key.d.ts.map +1 -0
- package/resources/org/api-key.js +15 -0
- package/resources/org/api-key.js.map +1 -0
- package/resources/org/api-key.mjs +11 -0
- package/resources/org/api-key.mjs.map +1 -0
- package/resources/org/index.d.mts +4 -0
- package/resources/org/index.d.mts.map +1 -0
- package/resources/org/index.d.ts +4 -0
- package/resources/org/index.d.ts.map +1 -0
- package/resources/org/index.js +11 -0
- package/resources/org/index.js.map +1 -0
- package/resources/org/index.mjs +5 -0
- package/resources/org/index.mjs.map +1 -0
- package/resources/org/org.d.mts +14 -0
- package/resources/org/org.d.mts.map +1 -0
- package/resources/org/org.d.ts +14 -0
- package/resources/org/org.d.ts.map +1 -0
- package/resources/org/org.js +43 -0
- package/resources/org/org.js.map +1 -0
- package/resources/org/org.mjs +16 -0
- package/resources/org/org.mjs.map +1 -0
- package/resources/org/project/api-keys.d.mts +109 -0
- package/resources/org/project/api-keys.d.mts.map +1 -0
- package/resources/org/project/api-keys.d.ts +109 -0
- package/resources/org/project/api-keys.d.ts.map +1 -0
- package/resources/org/project/api-keys.js +23 -0
- package/resources/org/project/api-keys.js.map +1 -0
- package/resources/org/project/api-keys.mjs +19 -0
- package/resources/org/project/api-keys.mjs.map +1 -0
- package/resources/org/project/index.d.mts +5 -0
- package/resources/org/project/index.d.mts.map +1 -0
- package/resources/org/project/index.d.ts +5 -0
- package/resources/org/project/index.d.ts.map +1 -0
- package/resources/org/project/index.js +13 -0
- package/resources/org/project/index.js.map +1 -0
- package/resources/org/project/index.mjs +6 -0
- package/resources/org/project/index.mjs.map +1 -0
- package/resources/org/project/project.d.mts +90 -0
- package/resources/org/project/project.d.mts.map +1 -0
- package/resources/org/project/project.d.ts +90 -0
- package/resources/org/project/project.d.ts.map +1 -0
- package/resources/org/project/project.js +60 -0
- package/resources/org/project/project.js.map +1 -0
- package/resources/org/project/project.mjs +33 -0
- package/resources/org/project/project.mjs.map +1 -0
- package/resources/org/project/trigger.d.mts +51 -0
- package/resources/org/project/trigger.d.mts.map +1 -0
- package/resources/org/project/trigger.d.ts +51 -0
- package/resources/org/project/trigger.d.ts.map +1 -0
- package/resources/org/project/trigger.js +16 -0
- package/resources/org/project/trigger.js.map +1 -0
- package/resources/org/project/trigger.mjs +12 -0
- package/resources/org/project/trigger.mjs.map +1 -0
- package/resources/org/project/webhook.d.mts +92 -0
- package/resources/org/project/webhook.d.mts.map +1 -0
- package/resources/org/project/webhook.d.ts +92 -0
- package/resources/org/project/webhook.d.ts.map +1 -0
- package/resources/org/project/webhook.js +24 -0
- package/resources/org/project/webhook.js.map +1 -0
- package/resources/org/project/webhook.mjs +20 -0
- package/resources/org/project/webhook.mjs.map +1 -0
- package/resources/org/project.d.mts +2 -0
- package/resources/org/project.d.mts.map +1 -0
- package/resources/org/project.d.ts +2 -0
- package/resources/org/project.d.ts.map +1 -0
- package/resources/org/project.js +19 -0
- package/resources/org/project.js.map +1 -0
- package/resources/org/project.mjs +3 -0
- package/resources/org/project.mjs.map +1 -0
- package/resources/org.d.mts +2 -0
- package/resources/org.d.mts.map +1 -0
- package/resources/org.d.ts +2 -0
- package/resources/org.d.ts.map +1 -0
- package/resources/org.js +19 -0
- package/resources/org.js.map +1 -0
- package/resources/org.mjs +3 -0
- package/resources/org.mjs.map +1 -0
- package/resources/team-members.d.mts +57 -0
- package/resources/team-members.d.mts.map +1 -0
- package/resources/team-members.d.ts +57 -0
- package/resources/team-members.d.ts.map +1 -0
- package/resources/team-members.js +22 -0
- package/resources/team-members.js.map +1 -0
- package/resources/team-members.mjs +18 -0
- package/resources/team-members.mjs.map +1 -0
- package/resources/toolkits.d.mts +141 -0
- package/resources/toolkits.d.mts.map +1 -0
- package/resources/toolkits.d.ts +141 -0
- package/resources/toolkits.d.ts.map +1 -0
- package/resources/toolkits.js +19 -0
- package/resources/toolkits.js.map +1 -0
- package/resources/toolkits.mjs +15 -0
- package/resources/toolkits.mjs.map +1 -0
- package/resources/tools.d.mts +164 -0
- package/resources/tools.d.mts.map +1 -0
- package/resources/tools.d.ts +164 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +28 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +24 -0
- package/resources/tools.mjs.map +1 -0
- package/resources/trigger-instances/handle.d.mts +25 -0
- package/resources/trigger-instances/handle.d.mts.map +1 -0
- package/resources/trigger-instances/handle.d.ts +25 -0
- package/resources/trigger-instances/handle.d.ts.map +1 -0
- package/resources/trigger-instances/handle.js +18 -0
- package/resources/trigger-instances/handle.js.map +1 -0
- package/resources/trigger-instances/handle.mjs +14 -0
- package/resources/trigger-instances/handle.mjs.map +1 -0
- package/resources/trigger-instances/index.d.mts +3 -0
- package/resources/trigger-instances/index.d.mts.map +1 -0
- package/resources/trigger-instances/index.d.ts +3 -0
- package/resources/trigger-instances/index.d.ts.map +1 -0
- package/resources/trigger-instances/index.js +9 -0
- package/resources/trigger-instances/index.js.map +1 -0
- package/resources/trigger-instances/index.mjs +4 -0
- package/resources/trigger-instances/index.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +126 -0
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.ts +126 -0
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -0
- package/resources/trigger-instances/trigger-instances.js +53 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -0
- package/resources/trigger-instances/trigger-instances.mjs +26 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -0
- package/resources/trigger-instances.d.mts +2 -0
- package/resources/trigger-instances.d.mts.map +1 -0
- package/resources/trigger-instances.d.ts +2 -0
- package/resources/trigger-instances.d.ts.map +1 -0
- package/resources/trigger-instances.js +19 -0
- package/resources/trigger-instances.js.map +1 -0
- package/resources/trigger-instances.mjs +3 -0
- package/resources/trigger-instances.mjs.map +1 -0
- package/resources/trigger.d.mts +73 -0
- package/resources/trigger.d.mts.map +1 -0
- package/resources/trigger.d.ts +73 -0
- package/resources/trigger.d.ts.map +1 -0
- package/resources/trigger.js +12 -0
- package/resources/trigger.js.map +1 -0
- package/resources/trigger.mjs +8 -0
- package/resources/trigger.mjs.map +1 -0
- package/resources/triggers-types.d.mts +59 -0
- package/resources/triggers-types.d.mts.map +1 -0
- package/resources/triggers-types.d.ts +59 -0
- package/resources/triggers-types.d.ts.map +1 -0
- package/resources/triggers-types.js +19 -0
- package/resources/triggers-types.js.map +1 -0
- package/resources/triggers-types.mjs +15 -0
- package/resources/triggers-types.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +18 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +898 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +96 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims/crypto.ts +18 -0
- package/src/internal/shims/file.ts +32 -0
- package/src/internal/shims/getBuiltinModule.ts +64 -0
- package/src/internal/shims/nullGetBuiltinModule.ts +1 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +152 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +175 -0
- package/src/internal/utils/base64.ts +37 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +65 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +19 -0
- package/src/internal/utils/values.ts +102 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/action-execution.ts +244 -0
- package/src/resources/auth-configs.ts +362 -0
- package/src/resources/connected-accounts.ts +661 -0
- package/src/resources/index.ts +82 -0
- package/src/resources/org/api-key.ts +30 -0
- package/src/resources/org/index.ts +12 -0
- package/src/resources/org/org.ts +39 -0
- package/src/resources/org/project/api-keys.ts +156 -0
- package/src/resources/org/project/index.ts +35 -0
- package/src/resources/org/project/project.ts +206 -0
- package/src/resources/org/project/trigger.ts +95 -0
- package/src/resources/org/project/webhook.ts +131 -0
- package/src/resources/org/project.ts +3 -0
- package/src/resources/org.ts +3 -0
- package/src/resources/team-members.ts +111 -0
- package/src/resources/toolkits.ts +232 -0
- package/src/resources/tools.ts +265 -0
- package/src/resources/trigger-instances/handle.ts +45 -0
- package/src/resources/trigger-instances/index.ts +19 -0
- package/src/resources/trigger-instances/trigger-instances.ts +202 -0
- package/src/resources/trigger-instances.ts +3 -0
- package/src/resources/trigger.ts +108 -0
- package/src/resources/triggers-types.ts +105 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +19 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class ConnectedAccounts extends APIResource {
|
|
9
|
+
create(
|
|
10
|
+
body: ConnectedAccountCreateParams,
|
|
11
|
+
options?: RequestOptions,
|
|
12
|
+
): APIPromise<ConnectedAccountCreateResponse> {
|
|
13
|
+
return this._client.post('/api/v3/connected_accounts', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse> {
|
|
17
|
+
return this._client.get(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
list(
|
|
21
|
+
query: ConnectedAccountListParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): APIPromise<ConnectedAccountListResponse> {
|
|
24
|
+
return this._client.get('/api/v3/connected_accounts', { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
|
|
28
|
+
return this._client.delete(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
refresh(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRefreshResponse> {
|
|
32
|
+
return this._client.post(path`/api/v3/connected_accounts/${nanoid}/refresh`, options);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
updateStatus(
|
|
36
|
+
nanoID: string,
|
|
37
|
+
body: ConnectedAccountUpdateStatusParams,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<ConnectedAccountUpdateStatusResponse> {
|
|
40
|
+
return this._client.patch(path`/api/v3/connected_accounts/${nanoID}/status`, { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ConnectedAccountCreateResponse {
|
|
45
|
+
/**
|
|
46
|
+
* The id of the connected account
|
|
47
|
+
*/
|
|
48
|
+
id: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The redirect uri of the app
|
|
52
|
+
*/
|
|
53
|
+
redirect_uri: string | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The status of the connected account
|
|
57
|
+
*/
|
|
58
|
+
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ConnectedAccountRetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* The id of the connection
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
|
|
67
|
+
auth_config: ConnectedAccountRetrieveResponse.AuthConfig;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The created at of the connection
|
|
71
|
+
*/
|
|
72
|
+
created_at: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The data of the connection
|
|
76
|
+
*/
|
|
77
|
+
data: Record<string, unknown>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Whether the connected account is disabled
|
|
81
|
+
*/
|
|
82
|
+
is_disabled: boolean;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The init data of the connection
|
|
86
|
+
*/
|
|
87
|
+
params: Record<string, unknown>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The status of the connection
|
|
91
|
+
*/
|
|
92
|
+
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The reason the connected account is disabled
|
|
96
|
+
*/
|
|
97
|
+
status_reason: string | null;
|
|
98
|
+
|
|
99
|
+
toolkit: ConnectedAccountRetrieveResponse.Toolkit;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The updated at of the connection
|
|
103
|
+
*/
|
|
104
|
+
updated_at: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The user id of the connection
|
|
108
|
+
*/
|
|
109
|
+
user_id: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The uuid of the connection
|
|
113
|
+
*/
|
|
114
|
+
uuid: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The endpoint to make test request for verification
|
|
118
|
+
*/
|
|
119
|
+
test_request_endpoint?: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace ConnectedAccountRetrieveResponse {
|
|
123
|
+
export interface AuthConfig {
|
|
124
|
+
/**
|
|
125
|
+
* The id of the auth config
|
|
126
|
+
*/
|
|
127
|
+
id: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The auth scheme of the auth config
|
|
131
|
+
*/
|
|
132
|
+
auth_scheme:
|
|
133
|
+
| 'OAUTH2'
|
|
134
|
+
| 'OAUTH1'
|
|
135
|
+
| 'OAUTH1A'
|
|
136
|
+
| 'API_KEY'
|
|
137
|
+
| 'BASIC'
|
|
138
|
+
| 'BILLCOM_AUTH'
|
|
139
|
+
| 'BEARER_TOKEN'
|
|
140
|
+
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
141
|
+
| 'NO_AUTH'
|
|
142
|
+
| 'BASIC_WITH_JWT'
|
|
143
|
+
| 'COMPOSIO_LINK'
|
|
144
|
+
| 'CALCOM_AUTH'
|
|
145
|
+
| 'SNOWFLAKE';
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Whether the auth config is managed by Composio
|
|
149
|
+
*/
|
|
150
|
+
is_composio_managed: boolean;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Whether the auth config is disabled
|
|
154
|
+
*/
|
|
155
|
+
is_disabled: boolean;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface Toolkit {
|
|
159
|
+
/**
|
|
160
|
+
* The slug of the toolkit
|
|
161
|
+
*/
|
|
162
|
+
slug: string;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface ConnectedAccountListResponse {
|
|
167
|
+
items: Array<ConnectedAccountListResponse.Item>;
|
|
168
|
+
|
|
169
|
+
next_cursor: string | null;
|
|
170
|
+
|
|
171
|
+
total_pages: number;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export namespace ConnectedAccountListResponse {
|
|
175
|
+
export interface Item {
|
|
176
|
+
/**
|
|
177
|
+
* The id of the connection
|
|
178
|
+
*/
|
|
179
|
+
id: string;
|
|
180
|
+
|
|
181
|
+
auth_config: Item.AuthConfig;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The created at of the connection
|
|
185
|
+
*/
|
|
186
|
+
created_at: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The data of the connection
|
|
190
|
+
*/
|
|
191
|
+
data: Record<string, unknown>;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Whether the connection is disabled
|
|
195
|
+
*/
|
|
196
|
+
is_disabled: boolean;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The status of the connection
|
|
200
|
+
*/
|
|
201
|
+
status: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The reason the connection is disabled
|
|
205
|
+
*/
|
|
206
|
+
status_reason: string | null;
|
|
207
|
+
|
|
208
|
+
toolkit: Item.Toolkit;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The updated at of the connection
|
|
212
|
+
*/
|
|
213
|
+
updated_at: string;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The user id of the connection
|
|
217
|
+
*/
|
|
218
|
+
user_id: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The endpoint to make test request for verification
|
|
222
|
+
*/
|
|
223
|
+
test_request_endpoint?: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The uuid of the connected account
|
|
227
|
+
*/
|
|
228
|
+
uuid?: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export namespace Item {
|
|
232
|
+
export interface AuthConfig {
|
|
233
|
+
/**
|
|
234
|
+
* The id of the auth config
|
|
235
|
+
*/
|
|
236
|
+
id: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* The auth scheme of the auth config
|
|
240
|
+
*/
|
|
241
|
+
auth_scheme:
|
|
242
|
+
| 'OAUTH2'
|
|
243
|
+
| 'OAUTH1'
|
|
244
|
+
| 'OAUTH1A'
|
|
245
|
+
| 'API_KEY'
|
|
246
|
+
| 'BASIC'
|
|
247
|
+
| 'BILLCOM_AUTH'
|
|
248
|
+
| 'BEARER_TOKEN'
|
|
249
|
+
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
250
|
+
| 'NO_AUTH'
|
|
251
|
+
| 'BASIC_WITH_JWT'
|
|
252
|
+
| 'COMPOSIO_LINK'
|
|
253
|
+
| 'CALCOM_AUTH'
|
|
254
|
+
| 'SNOWFLAKE';
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Whether the auth config is managed by Composio
|
|
258
|
+
*/
|
|
259
|
+
is_composio_managed: boolean;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Whether the auth config is disabled
|
|
263
|
+
*/
|
|
264
|
+
is_disabled: boolean;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface Toolkit {
|
|
268
|
+
/**
|
|
269
|
+
* The slug of the toolkit
|
|
270
|
+
*/
|
|
271
|
+
slug: string;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface ConnectedAccountDeleteResponse {
|
|
277
|
+
/**
|
|
278
|
+
* The id of the connection
|
|
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
|
|
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
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface ConnectedAccountRefreshResponse {
|
|
377
|
+
/**
|
|
378
|
+
* The id of the connection
|
|
379
|
+
*/
|
|
380
|
+
id: string;
|
|
381
|
+
|
|
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
|
+
/**
|
|
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
|
+
}
|
|
475
|
+
|
|
476
|
+
export interface ConnectedAccountUpdateStatusResponse {
|
|
477
|
+
/**
|
|
478
|
+
* The id of the connection
|
|
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
|
|
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
|
+
}
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export interface ConnectedAccountCreateParams {
|
|
577
|
+
auth_config: ConnectedAccountCreateParams.AuthConfig;
|
|
578
|
+
|
|
579
|
+
connection: ConnectedAccountCreateParams.Connection;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
export namespace ConnectedAccountCreateParams {
|
|
583
|
+
export interface AuthConfig {
|
|
584
|
+
/**
|
|
585
|
+
* The auth config id of the app (must be a valid auth config id)
|
|
586
|
+
*/
|
|
587
|
+
id: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface Connection {
|
|
591
|
+
/**
|
|
592
|
+
* Initial data to pass to the connected account
|
|
593
|
+
*/
|
|
594
|
+
data?: Record<string, unknown>;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The URL to redirect to after connection completion
|
|
598
|
+
*/
|
|
599
|
+
redirect_uri?: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* The user id of the connected account
|
|
603
|
+
*/
|
|
604
|
+
user_id?: string;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export interface ConnectedAccountListParams {
|
|
609
|
+
/**
|
|
610
|
+
* The auth config id of the connected account
|
|
611
|
+
*/
|
|
612
|
+
auth_config_id?: string;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* The cursor to paginate through the connected accounts
|
|
616
|
+
*/
|
|
617
|
+
cursor?: number | null;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* The limit of the connected accounts to return
|
|
621
|
+
*/
|
|
622
|
+
limit?: number | null;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* The order by of the connected accounts
|
|
626
|
+
*/
|
|
627
|
+
order_by?: 'created_at' | 'updated_at';
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* The status of the connected account
|
|
631
|
+
*/
|
|
632
|
+
status?: 'ACTIVE' | 'INACTIVE' | 'DELETED' | 'INITIATED' | 'EXPIRED' | 'FAILED';
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* The toolkit slug of the connected account
|
|
636
|
+
*/
|
|
637
|
+
toolkit_slug?: string;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* The user id of the connected account
|
|
641
|
+
*/
|
|
642
|
+
user_id?: string;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
export interface ConnectedAccountUpdateStatusParams {
|
|
646
|
+
enabled: boolean;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export declare namespace ConnectedAccounts {
|
|
650
|
+
export {
|
|
651
|
+
type ConnectedAccountCreateResponse as ConnectedAccountCreateResponse,
|
|
652
|
+
type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse,
|
|
653
|
+
type ConnectedAccountListResponse as ConnectedAccountListResponse,
|
|
654
|
+
type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse,
|
|
655
|
+
type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse,
|
|
656
|
+
type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse,
|
|
657
|
+
type ConnectedAccountCreateParams as ConnectedAccountCreateParams,
|
|
658
|
+
type ConnectedAccountListParams as ConnectedAccountListParams,
|
|
659
|
+
type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams,
|
|
660
|
+
};
|
|
661
|
+
}
|