@composio/client 0.1.0-alpha.5 → 0.1.0-alpha.51
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 +693 -0
- package/README.md +22 -35
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +44 -39
- package/client.d.mts.map +1 -1
- package/client.d.ts +44 -39
- package/client.d.ts.map +1 -1
- package/client.js +89 -96
- package/client.js.map +1 -1
- package/client.mjs +71 -55
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +0 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +0 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +4 -14
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +1 -11
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +0 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +0 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/error.js +2 -15
- package/error.js.map +1 -1
- package/internal/builtin-types.d.mts +0 -2
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +0 -2
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.js +3 -3
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +3 -3
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +2 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts +1 -2
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -2
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +7 -5
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +7 -5
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +0 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +0 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +1 -0
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts +1 -0
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +43 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +43 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts +11 -22
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +11 -22
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/{src/resources/org.ts → internal/shim-types.mjs} +2 -2
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +2 -2
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +2 -2
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +5 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +1 -2
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +1 -2
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +5 -5
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +4 -3
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +8 -7
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +8 -7
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +1 -3
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +1 -3
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +17 -7
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +13 -4
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +12 -7
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +12 -7
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +0 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +0 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -3
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +28 -7
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +27 -6
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/uuid.d.mts +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +1 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +1 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts +2 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +2 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -8
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +5 -3
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/package.json +6 -14
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/auth-configs.d.mts +453 -54
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +453 -54
- 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/cli.d.mts +37 -65
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts +37 -65
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.js +13 -4
- package/resources/cli.js.map +1 -1
- package/resources/cli.mjs +13 -4
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +8726 -233
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +8726 -233
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +77 -2
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +77 -2
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +218 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +218 -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 +11 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -9
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -4
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +2017 -0
- package/resources/link.d.mts.map +1 -0
- package/resources/link.d.ts +2017 -0
- package/resources/link.d.ts.map +1 -0
- package/resources/link.js +16 -0
- package/resources/link.js.map +1 -0
- package/resources/link.mjs +12 -0
- package/resources/link.mjs.map +1 -0
- package/resources/mcp/custom.d.mts +102 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +102 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +26 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +22 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/generate.d.mts +59 -0
- package/resources/mcp/generate.d.mts.map +1 -0
- package/resources/mcp/generate.d.ts +59 -0
- package/resources/mcp/generate.d.ts.map +1 -0
- package/resources/mcp/generate.js +26 -0
- package/resources/mcp/generate.js.map +1 -0
- package/resources/mcp/generate.mjs +22 -0
- package/resources/mcp/generate.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +3 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +5 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +2 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +447 -175
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +447 -175
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +89 -39
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +88 -16
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.js +2 -15
- package/resources/mcp.js.map +1 -1
- package/resources/migration.d.mts +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/tool-router/index.d.mts +3 -0
- package/resources/tool-router/index.d.mts.map +1 -0
- package/resources/tool-router/index.d.ts +3 -0
- package/resources/tool-router/index.d.ts.map +1 -0
- package/resources/tool-router/index.js +9 -0
- package/resources/tool-router/index.js.map +1 -0
- package/resources/tool-router/index.mjs +4 -0
- package/resources/tool-router/index.mjs.map +1 -0
- package/resources/tool-router/session.d.mts +649 -0
- package/resources/tool-router/session.d.mts.map +1 -0
- package/resources/tool-router/session.d.ts +649 -0
- package/resources/tool-router/session.d.ts.map +1 -0
- package/resources/tool-router/session.js +107 -0
- package/resources/tool-router/session.js.map +1 -0
- package/resources/tool-router/session.mjs +103 -0
- package/resources/tool-router/session.mjs.map +1 -0
- package/resources/tool-router/tool-router.d.mts +91 -0
- package/resources/tool-router/tool-router.d.mts.map +1 -0
- package/resources/tool-router/tool-router.d.ts +91 -0
- package/resources/tool-router/tool-router.d.ts.map +1 -0
- package/resources/tool-router/tool-router.js +46 -0
- package/resources/tool-router/tool-router.js.map +1 -0
- package/resources/tool-router/tool-router.mjs +41 -0
- package/resources/tool-router/tool-router.mjs.map +1 -0
- package/resources/tool-router.d.mts +2 -0
- package/resources/tool-router.d.mts.map +1 -0
- package/resources/tool-router.d.ts +2 -0
- package/resources/tool-router.d.ts.map +1 -0
- package/resources/tool-router.js +6 -0
- package/resources/tool-router.js.map +1 -0
- package/resources/{org.mjs → tool-router.mjs} +2 -2
- package/resources/tool-router.mjs.map +1 -0
- package/resources/toolkits.d.mts +286 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +286 -6
- 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 +1209 -41
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +1209 -41
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +73 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +73 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +2 -2
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +2 -2
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js +3 -3
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts +43 -0
- package/resources/trigger-instances/manage.d.mts.map +1 -0
- package/resources/trigger-instances/manage.d.ts +43 -0
- package/resources/trigger-instances/manage.d.ts.map +1 -0
- package/resources/trigger-instances/manage.js +33 -0
- package/resources/trigger-instances/manage.js.map +1 -0
- package/resources/trigger-instances/manage.mjs +29 -0
- package/resources/trigger-instances/manage.mjs.map +1 -0
- package/resources/trigger-instances/trigger-instances.d.mts +166 -40
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +166 -40
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +20 -35
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +19 -12
- 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 +145 -12
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +145 -12
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +14 -2
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +14 -2
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +145 -114
- package/src/core/resource.ts +1 -1
- package/src/internal/detect-platform.ts +3 -3
- package/src/internal/headers.ts +9 -8
- package/src/internal/qs/formats.ts +2 -1
- package/src/internal/qs/stringify.ts +17 -20
- package/src/internal/qs/utils.ts +14 -14
- package/src/internal/request-options.ts +54 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +2 -2
- package/src/internal/to-file.ts +5 -3
- package/src/internal/types.ts +9 -6
- package/src/internal/uploads.ts +17 -5
- package/src/internal/utils/base64.ts +13 -10
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +33 -8
- package/src/internal/utils/uuid.ts +1 -3
- package/src/internal/utils/values.ts +6 -3
- package/src/resources/auth-configs.ts +507 -67
- package/src/resources/cli.ts +39 -83
- package/src/resources/connected-accounts.ts +16471 -459
- package/src/resources/files.ts +281 -0
- package/src/resources/index.ts +24 -26
- package/src/resources/link.ts +3817 -0
- package/src/resources/mcp/custom.ts +122 -0
- package/src/resources/mcp/generate.ts +71 -0
- package/src/resources/mcp/index.ts +3 -3
- package/src/resources/mcp/mcp.ts +484 -200
- package/src/resources/migration.ts +46 -0
- package/src/resources/tool-router/index.ts +21 -0
- package/src/resources/tool-router/session.ts +795 -0
- package/src/resources/tool-router/tool-router.ts +141 -0
- package/src/resources/{org/project.ts → tool-router.ts} +1 -1
- package/src/resources/toolkits.ts +325 -8
- package/src/resources/tools.ts +1880 -60
- package/src/resources/trigger-instances/index.ts +5 -9
- package/src/resources/trigger-instances/manage.ts +63 -0
- package/src/resources/trigger-instances/trigger-instances.ts +179 -64
- package/src/resources/triggers-types.ts +149 -14
- package/src/version.ts +1 -1
- package/uploads.js +2 -15
- package/uploads.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/internal/shims/crypto.d.mts +0 -13
- package/internal/shims/crypto.d.mts.map +0 -1
- package/internal/shims/crypto.d.ts +0 -13
- package/internal/shims/crypto.d.ts.map +0 -1
- package/internal/shims/crypto.js +0 -13
- package/internal/shims/crypto.js.map +0 -1
- package/internal/shims/crypto.mjs +0 -9
- package/internal/shims/crypto.mjs.map +0 -1
- package/internal/shims/file.d.mts +0 -23
- package/internal/shims/file.d.mts.map +0 -1
- package/internal/shims/file.d.ts +0 -23
- package/internal/shims/file.d.ts.map +0 -1
- package/internal/shims/file.js +0 -16
- package/internal/shims/file.js.map +0 -1
- package/internal/shims/file.mjs +0 -12
- package/internal/shims/file.mjs.map +0 -1
- package/internal/shims/getBuiltinModule.d.mts +0 -11
- package/internal/shims/getBuiltinModule.d.mts.map +0 -1
- package/internal/shims/getBuiltinModule.d.ts +0 -11
- package/internal/shims/getBuiltinModule.d.ts.map +0 -1
- package/internal/shims/getBuiltinModule.js +0 -71
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -67
- package/internal/shims/getBuiltinModule.mjs.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.js +0 -5
- package/internal/shims/nullGetBuiltinModule.js.map +0 -1
- package/internal/shims/nullGetBuiltinModule.mjs +0 -2
- package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
- package/resources/action-execution.d.mts +0 -155
- package/resources/action-execution.d.mts.map +0 -1
- package/resources/action-execution.d.ts +0 -155
- package/resources/action-execution.d.ts.map +0 -1
- package/resources/action-execution.js +0 -19
- package/resources/action-execution.js.map +0 -1
- package/resources/action-execution.mjs +0 -15
- package/resources/action-execution.mjs.map +0 -1
- package/resources/mcp/command.d.mts +0 -34
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -34
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -12
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -8
- package/resources/mcp/command.mjs.map +0 -1
- package/resources/org/api-key.d.mts +0 -17
- package/resources/org/api-key.d.mts.map +0 -1
- package/resources/org/api-key.d.ts +0 -17
- package/resources/org/api-key.d.ts.map +0 -1
- package/resources/org/api-key.js +0 -15
- package/resources/org/api-key.js.map +0 -1
- package/resources/org/api-key.mjs +0 -11
- package/resources/org/api-key.mjs.map +0 -1
- package/resources/org/index.d.mts +0 -4
- package/resources/org/index.d.mts.map +0 -1
- package/resources/org/index.d.ts +0 -4
- package/resources/org/index.d.ts.map +0 -1
- package/resources/org/index.js +0 -11
- package/resources/org/index.js.map +0 -1
- package/resources/org/index.mjs +0 -5
- package/resources/org/index.mjs.map +0 -1
- package/resources/org/org.d.mts +0 -14
- package/resources/org/org.d.mts.map +0 -1
- package/resources/org/org.d.ts +0 -14
- package/resources/org/org.d.ts.map +0 -1
- package/resources/org/org.js +0 -43
- package/resources/org/org.js.map +0 -1
- package/resources/org/org.mjs +0 -16
- package/resources/org/org.mjs.map +0 -1
- package/resources/org/project/api-keys.d.mts +0 -109
- package/resources/org/project/api-keys.d.mts.map +0 -1
- package/resources/org/project/api-keys.d.ts +0 -109
- package/resources/org/project/api-keys.d.ts.map +0 -1
- package/resources/org/project/api-keys.js +0 -23
- package/resources/org/project/api-keys.js.map +0 -1
- package/resources/org/project/api-keys.mjs +0 -19
- package/resources/org/project/api-keys.mjs.map +0 -1
- package/resources/org/project/index.d.mts +0 -5
- package/resources/org/project/index.d.mts.map +0 -1
- package/resources/org/project/index.d.ts +0 -5
- package/resources/org/project/index.d.ts.map +0 -1
- package/resources/org/project/index.js +0 -13
- package/resources/org/project/index.js.map +0 -1
- package/resources/org/project/index.mjs +0 -6
- package/resources/org/project/index.mjs.map +0 -1
- package/resources/org/project/project.d.mts +0 -90
- package/resources/org/project/project.d.mts.map +0 -1
- package/resources/org/project/project.d.ts +0 -90
- package/resources/org/project/project.d.ts.map +0 -1
- package/resources/org/project/project.js +0 -60
- package/resources/org/project/project.js.map +0 -1
- package/resources/org/project/project.mjs +0 -33
- package/resources/org/project/project.mjs.map +0 -1
- package/resources/org/project/trigger.d.mts +0 -51
- package/resources/org/project/trigger.d.mts.map +0 -1
- package/resources/org/project/trigger.d.ts +0 -51
- package/resources/org/project/trigger.d.ts.map +0 -1
- package/resources/org/project/trigger.js +0 -16
- package/resources/org/project/trigger.js.map +0 -1
- package/resources/org/project/trigger.mjs +0 -12
- package/resources/org/project/trigger.mjs.map +0 -1
- package/resources/org/project/webhook.d.mts +0 -92
- package/resources/org/project/webhook.d.mts.map +0 -1
- package/resources/org/project/webhook.d.ts +0 -92
- package/resources/org/project/webhook.d.ts.map +0 -1
- package/resources/org/project/webhook.js +0 -24
- package/resources/org/project/webhook.js.map +0 -1
- package/resources/org/project/webhook.mjs +0 -20
- package/resources/org/project/webhook.mjs.map +0 -1
- package/resources/org/project.d.mts +0 -2
- package/resources/org/project.d.mts.map +0 -1
- package/resources/org/project.d.ts +0 -2
- package/resources/org/project.d.ts.map +0 -1
- package/resources/org/project.js +0 -19
- package/resources/org/project.js.map +0 -1
- package/resources/org/project.mjs +0 -3
- package/resources/org/project.mjs.map +0 -1
- package/resources/org.d.mts +0 -2
- package/resources/org.d.mts.map +0 -1
- package/resources/org.d.ts +0 -2
- package/resources/org.d.ts.map +0 -1
- package/resources/org.js +0 -19
- package/resources/org.js.map +0 -1
- package/resources/org.mjs.map +0 -1
- package/resources/team-members.d.mts +0 -57
- package/resources/team-members.d.mts.map +0 -1
- package/resources/team-members.d.ts +0 -57
- package/resources/team-members.d.ts.map +0 -1
- package/resources/team-members.js +0 -22
- package/resources/team-members.js.map +0 -1
- package/resources/team-members.mjs +0 -18
- package/resources/team-members.mjs.map +0 -1
- package/resources/trigger-instances/handle.d.mts +0 -25
- package/resources/trigger-instances/handle.d.mts.map +0 -1
- package/resources/trigger-instances/handle.d.ts +0 -25
- package/resources/trigger-instances/handle.d.ts.map +0 -1
- package/resources/trigger-instances/handle.js +0 -18
- package/resources/trigger-instances/handle.js.map +0 -1
- package/resources/trigger-instances/handle.mjs +0 -14
- package/resources/trigger-instances/handle.mjs.map +0 -1
- package/resources/trigger.d.mts +0 -73
- package/resources/trigger.d.mts.map +0 -1
- package/resources/trigger.d.ts +0 -73
- package/resources/trigger.d.ts.map +0 -1
- package/resources/trigger.js +0 -12
- package/resources/trigger.js.map +0 -1
- package/resources/trigger.mjs +0 -8
- package/resources/trigger.mjs.map +0 -1
- package/src/internal/shim-types.d.ts +0 -28
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -66
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
- package/src/resources/action-execution.ts +0 -244
- package/src/resources/mcp/command.ts +0 -47
- package/src/resources/org/api-key.ts +0 -30
- package/src/resources/org/index.ts +0 -12
- package/src/resources/org/org.ts +0 -39
- package/src/resources/org/project/api-keys.ts +0 -156
- package/src/resources/org/project/index.ts +0 -35
- package/src/resources/org/project/project.ts +0 -206
- package/src/resources/org/project/trigger.ts +0 -95
- package/src/resources/org/project/webhook.ts +0 -131
- package/src/resources/team-members.ts +0 -111
- package/src/resources/trigger-instances/handle.ts +0 -45
- package/src/resources/trigger.ts +0 -108
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as SessionAPI from './session';
|
|
5
|
+
import {
|
|
6
|
+
Session,
|
|
7
|
+
SessionCreateParams,
|
|
8
|
+
SessionCreateResponse,
|
|
9
|
+
SessionExecuteMetaParams,
|
|
10
|
+
SessionExecuteMetaResponse,
|
|
11
|
+
SessionExecuteParams,
|
|
12
|
+
SessionExecuteResponse,
|
|
13
|
+
SessionLinkParams,
|
|
14
|
+
SessionLinkResponse,
|
|
15
|
+
SessionRetrieveResponse,
|
|
16
|
+
SessionToolkitsParams,
|
|
17
|
+
SessionToolkitsResponse,
|
|
18
|
+
} from './session';
|
|
19
|
+
import { APIPromise } from '../../core/api-promise';
|
|
20
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
21
|
+
|
|
22
|
+
export class ToolRouter extends APIResource {
|
|
23
|
+
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
27
|
+
* initializes a new session with specified toolkits and their authentication
|
|
28
|
+
* configurations. The session provides an isolated environment for testing and
|
|
29
|
+
* managing tool routing logic with scoped MCP server access.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response = await client.toolRouter.createSession({
|
|
34
|
+
* user_id: 'user_123456789',
|
|
35
|
+
* config: {
|
|
36
|
+
* toolkits: [
|
|
37
|
+
* {
|
|
38
|
+
* toolkit: 'gmail',
|
|
39
|
+
* auth_config_id: 'auth_config_123',
|
|
40
|
+
* },
|
|
41
|
+
* {
|
|
42
|
+
* toolkit: 'slack',
|
|
43
|
+
* auth_config_id: 'auth_config_456',
|
|
44
|
+
* },
|
|
45
|
+
* { toolkit: 'github' },
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
createSession(
|
|
52
|
+
body: ToolRouterCreateSessionParams,
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<ToolRouterCreateSessionResponse> {
|
|
55
|
+
return this._client.post('/api/v3/labs/tool_router/session', { body, ...options });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ToolRouterCreateSessionResponse {
|
|
60
|
+
/**
|
|
61
|
+
* MCP server endpoint URL for this specific chat session
|
|
62
|
+
*/
|
|
63
|
+
chat_session_mcp_url: string;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Generated session identifier
|
|
67
|
+
*/
|
|
68
|
+
session_id: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* MCP server endpoint URL for this specific tool router instance
|
|
72
|
+
*/
|
|
73
|
+
tool_router_instance_mcp_url: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface ToolRouterCreateSessionParams {
|
|
77
|
+
/**
|
|
78
|
+
* Unique user identifier for the session owner
|
|
79
|
+
*/
|
|
80
|
+
user_id: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Session configuration including enabled toolkits and their auth configs
|
|
84
|
+
*/
|
|
85
|
+
config?: ToolRouterCreateSessionParams.Config;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export namespace ToolRouterCreateSessionParams {
|
|
89
|
+
/**
|
|
90
|
+
* Session configuration including enabled toolkits and their auth configs
|
|
91
|
+
*/
|
|
92
|
+
export interface Config {
|
|
93
|
+
/**
|
|
94
|
+
* Whether to manually manage connections
|
|
95
|
+
*/
|
|
96
|
+
manually_manage_connections?: boolean | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Array of toolkit configurations with optional auth configs
|
|
100
|
+
*/
|
|
101
|
+
toolkits?: Array<Config.Toolkit>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace Config {
|
|
105
|
+
export interface Toolkit {
|
|
106
|
+
/**
|
|
107
|
+
* Toolkit identifier (e.g., gmail, slack, github)
|
|
108
|
+
*/
|
|
109
|
+
toolkit: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Specific auth configuration ID for this toolkit
|
|
113
|
+
*/
|
|
114
|
+
auth_config_id?: string;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
ToolRouter.Session = Session;
|
|
120
|
+
|
|
121
|
+
export declare namespace ToolRouter {
|
|
122
|
+
export {
|
|
123
|
+
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
124
|
+
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export {
|
|
128
|
+
Session as Session,
|
|
129
|
+
type SessionCreateResponse as SessionCreateResponse,
|
|
130
|
+
type SessionRetrieveResponse as SessionRetrieveResponse,
|
|
131
|
+
type SessionExecuteResponse as SessionExecuteResponse,
|
|
132
|
+
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
133
|
+
type SessionLinkResponse as SessionLinkResponse,
|
|
134
|
+
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
135
|
+
type SessionCreateParams as SessionCreateParams,
|
|
136
|
+
type SessionExecuteParams as SessionExecuteParams,
|
|
137
|
+
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
138
|
+
type SessionLinkParams as SessionLinkParams,
|
|
139
|
+
type SessionToolkitsParams as SessionToolkitsParams,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
@@ -6,10 +6,26 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
6
6
|
import { path } from '../internal/utils/path';
|
|
7
7
|
|
|
8
8
|
export class Toolkits extends APIResource {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves comprehensive information about a specific toolkit using its unique
|
|
11
|
+
* slug identifier. This endpoint provides detailed metadata, authentication
|
|
12
|
+
* configuration options, and feature counts for the requested toolkit.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(
|
|
15
|
+
slug: string,
|
|
16
|
+
query: ToolkitRetrieveParams | null | undefined = {},
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<ToolkitRetrieveResponse> {
|
|
19
|
+
return this._client.get(path`/api/v3/toolkits/${slug}`, { query, ...options });
|
|
11
20
|
}
|
|
12
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a comprehensive list of toolkits of their latest versions that are
|
|
24
|
+
* available to the authenticated project. Toolkits represent integration points
|
|
25
|
+
* with external services and applications, each containing a collection of tools
|
|
26
|
+
* and triggers. This endpoint supports filtering by category and management type,
|
|
27
|
+
* as well as different sorting options.
|
|
28
|
+
*/
|
|
13
29
|
list(
|
|
14
30
|
query: ToolkitListParams | null | undefined = {},
|
|
15
31
|
options?: RequestOptions,
|
|
@@ -17,70 +33,204 @@ export class Toolkits extends APIResource {
|
|
|
17
33
|
return this._client.get('/api/v3/toolkits', { query, ...options });
|
|
18
34
|
}
|
|
19
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a comprehensive list of all available toolkit categories from their
|
|
38
|
+
* latest versions. These categories can be used to filter toolkits by type or
|
|
39
|
+
* purpose when using the toolkit listing endpoint. Categories help organize
|
|
40
|
+
* toolkits into logical groups based on their functionality or industry focus.
|
|
41
|
+
*/
|
|
20
42
|
retrieveCategories(options?: RequestOptions): APIPromise<ToolkitRetrieveCategoriesResponse> {
|
|
21
43
|
return this._client.get('/api/v3/toolkits/categories', options);
|
|
22
44
|
}
|
|
23
45
|
}
|
|
24
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Detailed information about a single toolkit
|
|
49
|
+
*/
|
|
25
50
|
export interface ToolkitRetrieveResponse {
|
|
51
|
+
deprecated: ToolkitRetrieveResponse.Deprecated;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Indicates if this toolkit is currently enabled and available for use
|
|
55
|
+
*/
|
|
26
56
|
enabled: boolean;
|
|
27
57
|
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated DEPRECATED: This field is no longer meaningful and will always
|
|
60
|
+
* return false. It was previously used to indicate if a toolkit is specific to the
|
|
61
|
+
* current project.
|
|
62
|
+
*/
|
|
28
63
|
is_local_toolkit: boolean;
|
|
29
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Comprehensive metadata for the toolkit including dates, descriptions, and
|
|
67
|
+
* statistics
|
|
68
|
+
*/
|
|
30
69
|
meta: ToolkitRetrieveResponse.Meta;
|
|
31
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Human-readable name of the toolkit
|
|
73
|
+
*/
|
|
32
74
|
name: string;
|
|
33
75
|
|
|
76
|
+
/**
|
|
77
|
+
* URL-friendly unique identifier for the toolkit
|
|
78
|
+
*/
|
|
34
79
|
slug: string;
|
|
35
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Complete authentication configuration details for each supported auth method
|
|
83
|
+
*/
|
|
36
84
|
auth_config_details?: Array<ToolkitRetrieveResponse.AuthConfigDetail>;
|
|
37
85
|
|
|
86
|
+
/**
|
|
87
|
+
* If evaluation of base URL needs some connection info (like shopify), please
|
|
88
|
+
* create the connection and get the base URL from there
|
|
89
|
+
*/
|
|
90
|
+
base_url?: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* List of authentication methods that Composio manages for this toolkit
|
|
94
|
+
*/
|
|
38
95
|
composio_managed_auth_schemes?: Array<string>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Endpoint to get the current user
|
|
99
|
+
*/
|
|
100
|
+
get_current_user_endpoint?: string;
|
|
39
101
|
}
|
|
40
102
|
|
|
41
103
|
export namespace ToolkitRetrieveResponse {
|
|
104
|
+
export interface Deprecated {
|
|
105
|
+
rawProxyInfoByAuthSchemes: Array<{ [key: string]: unknown }>;
|
|
106
|
+
|
|
107
|
+
toolkitId: string;
|
|
108
|
+
|
|
109
|
+
getCurrentUserEndpoint?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Comprehensive metadata for the toolkit including dates, descriptions, and
|
|
114
|
+
* statistics
|
|
115
|
+
*/
|
|
42
116
|
export interface Meta {
|
|
117
|
+
/**
|
|
118
|
+
* Available versions of the toolkit
|
|
119
|
+
*/
|
|
120
|
+
available_versions: Array<string>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* List of categories associated with this toolkit
|
|
124
|
+
*/
|
|
43
125
|
categories: Array<Meta.Category>;
|
|
44
126
|
|
|
127
|
+
/**
|
|
128
|
+
* Creation date and time of the toolkit
|
|
129
|
+
*/
|
|
45
130
|
created_at: string;
|
|
46
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Human-readable description explaining the toolkit's purpose and functionality
|
|
134
|
+
*/
|
|
47
135
|
description: string;
|
|
48
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Image URL for the toolkit's branding
|
|
139
|
+
*/
|
|
49
140
|
logo: string;
|
|
50
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Count of available tools in this toolkit
|
|
144
|
+
*/
|
|
51
145
|
tools_count: number;
|
|
52
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Count of available triggers in this toolkit
|
|
149
|
+
*/
|
|
53
150
|
triggers_count: number;
|
|
54
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Last modification date and time of the toolkit
|
|
154
|
+
*/
|
|
55
155
|
updated_at: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Version of the toolkit
|
|
159
|
+
*/
|
|
160
|
+
version: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Link to the toolkit's main application or service website
|
|
164
|
+
*/
|
|
165
|
+
app_url?: string | null;
|
|
56
166
|
}
|
|
57
167
|
|
|
58
168
|
export namespace Meta {
|
|
59
169
|
export interface Category {
|
|
170
|
+
/**
|
|
171
|
+
* Human-readable category name
|
|
172
|
+
*/
|
|
60
173
|
name: string;
|
|
61
174
|
|
|
175
|
+
/**
|
|
176
|
+
* URL-friendly identifier for the category
|
|
177
|
+
*/
|
|
62
178
|
slug: string;
|
|
63
179
|
}
|
|
64
180
|
}
|
|
65
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Detailed configuration for an authentication method
|
|
184
|
+
*/
|
|
66
185
|
export interface AuthConfigDetail {
|
|
186
|
+
/**
|
|
187
|
+
* Field groups required for different authentication stages
|
|
188
|
+
*/
|
|
67
189
|
fields: AuthConfigDetail.Fields;
|
|
68
190
|
|
|
191
|
+
/**
|
|
192
|
+
* The type of authentication mode (e.g., oauth2, basic_auth, api_key)
|
|
193
|
+
*/
|
|
69
194
|
mode: string;
|
|
70
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Display name for this authentication method
|
|
198
|
+
*/
|
|
71
199
|
name: string;
|
|
72
200
|
|
|
201
|
+
/**
|
|
202
|
+
* @deprecated Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't
|
|
203
|
+
* recommend using this field for authentication and might break post Aug 31 2025.
|
|
204
|
+
*/
|
|
205
|
+
deprecated_auth_provider_details?: AuthConfigDetail.DeprecatedAuthProviderDetails;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Configuration for proxying authentication requests to external services
|
|
209
|
+
*/
|
|
73
210
|
proxy?: AuthConfigDetail.Proxy;
|
|
74
211
|
}
|
|
75
212
|
|
|
76
213
|
export namespace AuthConfigDetail {
|
|
214
|
+
/**
|
|
215
|
+
* Field groups required for different authentication stages
|
|
216
|
+
*/
|
|
77
217
|
export interface Fields {
|
|
218
|
+
/**
|
|
219
|
+
* Form fields needed when creating an authentication configuration
|
|
220
|
+
*/
|
|
78
221
|
auth_config_creation: Fields.AuthConfigCreation;
|
|
79
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Form fields needed when connecting a user account with this authentication
|
|
225
|
+
* method
|
|
226
|
+
*/
|
|
80
227
|
connected_account_initiation: Fields.ConnectedAccountInitiation;
|
|
81
228
|
}
|
|
82
229
|
|
|
83
230
|
export namespace Fields {
|
|
231
|
+
/**
|
|
232
|
+
* Form fields needed when creating an authentication configuration
|
|
233
|
+
*/
|
|
84
234
|
export interface AuthConfigCreation {
|
|
85
235
|
optional: Array<AuthConfigCreation.Optional>;
|
|
86
236
|
|
|
@@ -89,26 +239,42 @@ export namespace ToolkitRetrieveResponse {
|
|
|
89
239
|
|
|
90
240
|
export namespace AuthConfigCreation {
|
|
91
241
|
export interface Optional {
|
|
242
|
+
description: string;
|
|
243
|
+
|
|
92
244
|
displayName: string;
|
|
93
245
|
|
|
94
246
|
name: string;
|
|
95
247
|
|
|
248
|
+
required: boolean;
|
|
249
|
+
|
|
96
250
|
type: string;
|
|
97
251
|
|
|
98
252
|
default?: string | null;
|
|
253
|
+
|
|
254
|
+
legacy_template_name?: string;
|
|
99
255
|
}
|
|
100
256
|
|
|
101
257
|
export interface Required {
|
|
258
|
+
description: string;
|
|
259
|
+
|
|
102
260
|
displayName: string;
|
|
103
261
|
|
|
104
262
|
name: string;
|
|
105
263
|
|
|
264
|
+
required: boolean;
|
|
265
|
+
|
|
106
266
|
type: string;
|
|
107
267
|
|
|
108
268
|
default?: string | null;
|
|
269
|
+
|
|
270
|
+
legacy_template_name?: string;
|
|
109
271
|
}
|
|
110
272
|
}
|
|
111
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Form fields needed when connecting a user account with this authentication
|
|
276
|
+
* method
|
|
277
|
+
*/
|
|
112
278
|
export interface ConnectedAccountInitiation {
|
|
113
279
|
optional: Array<ConnectedAccountInitiation.Optional>;
|
|
114
280
|
|
|
@@ -117,79 +283,189 @@ export namespace ToolkitRetrieveResponse {
|
|
|
117
283
|
|
|
118
284
|
export namespace ConnectedAccountInitiation {
|
|
119
285
|
export interface Optional {
|
|
286
|
+
description: string;
|
|
287
|
+
|
|
120
288
|
displayName: string;
|
|
121
289
|
|
|
122
290
|
name: string;
|
|
123
291
|
|
|
292
|
+
required: boolean;
|
|
293
|
+
|
|
124
294
|
type: string;
|
|
125
295
|
|
|
126
296
|
default?: string | null;
|
|
297
|
+
|
|
298
|
+
legacy_template_name?: string;
|
|
127
299
|
}
|
|
128
300
|
|
|
129
301
|
export interface Required {
|
|
302
|
+
description: string;
|
|
303
|
+
|
|
130
304
|
displayName: string;
|
|
131
305
|
|
|
132
306
|
name: string;
|
|
133
307
|
|
|
308
|
+
required: boolean;
|
|
309
|
+
|
|
134
310
|
type: string;
|
|
135
311
|
|
|
136
312
|
default?: string | null;
|
|
313
|
+
|
|
314
|
+
legacy_template_name?: string;
|
|
137
315
|
}
|
|
138
316
|
}
|
|
139
317
|
}
|
|
140
318
|
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't
|
|
321
|
+
* recommend using this field for authentication and might break post Aug 31 2025.
|
|
322
|
+
*/
|
|
323
|
+
export interface DeprecatedAuthProviderDetails {
|
|
324
|
+
authorization_url?: string;
|
|
325
|
+
|
|
326
|
+
token_url?: string;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Configuration for proxying authentication requests to external services
|
|
331
|
+
*/
|
|
141
332
|
export interface Proxy {
|
|
333
|
+
/**
|
|
334
|
+
* URL to which authentication requests will be proxied
|
|
335
|
+
*/
|
|
142
336
|
base_url: string;
|
|
143
337
|
}
|
|
144
338
|
}
|
|
145
339
|
}
|
|
146
340
|
|
|
147
341
|
export interface ToolkitListResponse {
|
|
342
|
+
current_page: number;
|
|
343
|
+
|
|
148
344
|
items: Array<ToolkitListResponse.Item>;
|
|
149
345
|
|
|
150
|
-
|
|
346
|
+
total_items: number;
|
|
151
347
|
|
|
152
348
|
total_pages: number;
|
|
349
|
+
|
|
350
|
+
next_cursor?: string | null;
|
|
153
351
|
}
|
|
154
352
|
|
|
155
353
|
export namespace ToolkitListResponse {
|
|
354
|
+
/**
|
|
355
|
+
* Detailed information about a toolkit
|
|
356
|
+
*/
|
|
156
357
|
export interface Item {
|
|
358
|
+
/**
|
|
359
|
+
* @deprecated Deprecated toolkit ID
|
|
360
|
+
*/
|
|
361
|
+
deprecated: Item.Deprecated;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @deprecated DEPRECATED: This field is no longer meaningful and will always
|
|
365
|
+
* return false. It was previously used to indicate if a toolkit is specific to the
|
|
366
|
+
* current project.
|
|
367
|
+
*/
|
|
157
368
|
is_local_toolkit: boolean;
|
|
158
369
|
|
|
370
|
+
/**
|
|
371
|
+
* Additional metadata about the toolkit
|
|
372
|
+
*/
|
|
159
373
|
meta: Item.Meta;
|
|
160
374
|
|
|
375
|
+
/**
|
|
376
|
+
* Human-readable name of the toolkit
|
|
377
|
+
*/
|
|
161
378
|
name: string;
|
|
162
379
|
|
|
380
|
+
/**
|
|
381
|
+
* URL-friendly unique identifier for the toolkit
|
|
382
|
+
*/
|
|
163
383
|
slug: string;
|
|
164
384
|
|
|
385
|
+
/**
|
|
386
|
+
* List of authentication methods supported by this toolkit
|
|
387
|
+
*/
|
|
165
388
|
auth_schemes?: Array<string>;
|
|
166
389
|
|
|
390
|
+
/**
|
|
391
|
+
* List of authentication methods that Composio manages for this toolkit
|
|
392
|
+
*/
|
|
167
393
|
composio_managed_auth_schemes?: Array<string>;
|
|
168
394
|
|
|
395
|
+
/**
|
|
396
|
+
* When true, this toolkit can be used without authentication
|
|
397
|
+
*/
|
|
169
398
|
no_auth?: boolean;
|
|
170
399
|
}
|
|
171
400
|
|
|
172
401
|
export namespace Item {
|
|
402
|
+
/**
|
|
403
|
+
* @deprecated Deprecated toolkit ID
|
|
404
|
+
*/
|
|
405
|
+
export interface Deprecated {
|
|
406
|
+
toolkitId: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Additional metadata about the toolkit
|
|
411
|
+
*/
|
|
173
412
|
export interface Meta {
|
|
413
|
+
/**
|
|
414
|
+
* List of categories associated with this toolkit
|
|
415
|
+
*/
|
|
174
416
|
categories: Array<Meta.Category>;
|
|
175
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Creation date and time of the toolkit
|
|
420
|
+
*/
|
|
176
421
|
created_at: string;
|
|
177
422
|
|
|
423
|
+
/**
|
|
424
|
+
* Human-readable description explaining the toolkit's purpose and functionality
|
|
425
|
+
*/
|
|
178
426
|
description: string;
|
|
179
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Image URL for the toolkit's branding
|
|
430
|
+
*/
|
|
180
431
|
logo: string;
|
|
181
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Count of available tools in this toolkit
|
|
435
|
+
*/
|
|
182
436
|
tools_count: number;
|
|
183
437
|
|
|
438
|
+
/**
|
|
439
|
+
* Count of available triggers in this toolkit
|
|
440
|
+
*/
|
|
184
441
|
triggers_count: number;
|
|
185
442
|
|
|
443
|
+
/**
|
|
444
|
+
* Last modification date and time of the toolkit
|
|
445
|
+
*/
|
|
186
446
|
updated_at: string;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Version of the toolkit
|
|
450
|
+
*/
|
|
451
|
+
version: string;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Link to the toolkit's main application or service website
|
|
455
|
+
*/
|
|
456
|
+
app_url?: string | null;
|
|
187
457
|
}
|
|
188
458
|
|
|
189
459
|
export namespace Meta {
|
|
190
460
|
export interface Category {
|
|
461
|
+
/**
|
|
462
|
+
* Category identifier
|
|
463
|
+
*/
|
|
191
464
|
id: string;
|
|
192
465
|
|
|
466
|
+
/**
|
|
467
|
+
* Human-readable category name
|
|
468
|
+
*/
|
|
193
469
|
name: string;
|
|
194
470
|
}
|
|
195
471
|
}
|
|
@@ -197,28 +473,68 @@ export namespace ToolkitListResponse {
|
|
|
197
473
|
}
|
|
198
474
|
|
|
199
475
|
export interface ToolkitRetrieveCategoriesResponse {
|
|
476
|
+
current_page: number;
|
|
477
|
+
|
|
200
478
|
items: Array<ToolkitRetrieveCategoriesResponse.Item>;
|
|
201
479
|
|
|
202
|
-
|
|
480
|
+
total_items: number;
|
|
203
481
|
|
|
204
482
|
total_pages: number;
|
|
483
|
+
|
|
484
|
+
next_cursor?: string | null;
|
|
205
485
|
}
|
|
206
486
|
|
|
207
487
|
export namespace ToolkitRetrieveCategoriesResponse {
|
|
488
|
+
/**
|
|
489
|
+
* Information about a single toolkit category
|
|
490
|
+
*/
|
|
208
491
|
export interface Item {
|
|
492
|
+
/**
|
|
493
|
+
* URL-friendly unique identifier for the category, used for filtering toolkits
|
|
494
|
+
*/
|
|
209
495
|
id: string;
|
|
210
496
|
|
|
497
|
+
/**
|
|
498
|
+
* Display name of the toolkit category
|
|
499
|
+
*/
|
|
211
500
|
name: string;
|
|
212
501
|
}
|
|
213
502
|
}
|
|
214
503
|
|
|
504
|
+
export interface ToolkitRetrieveParams {
|
|
505
|
+
/**
|
|
506
|
+
* Version of the toolkit
|
|
507
|
+
*/
|
|
508
|
+
version?: string;
|
|
509
|
+
}
|
|
510
|
+
|
|
215
511
|
export interface ToolkitListParams {
|
|
512
|
+
/**
|
|
513
|
+
* Filter toolkits by category
|
|
514
|
+
*/
|
|
216
515
|
category?: string;
|
|
217
516
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
517
|
+
/**
|
|
518
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
519
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
520
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
521
|
+
* required for the first page.
|
|
522
|
+
*/
|
|
523
|
+
cursor?: string;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Number of items per page, max allowed is 1000
|
|
527
|
+
*/
|
|
528
|
+
limit?: number | null;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Filter toolkits by who manages them
|
|
532
|
+
*/
|
|
533
|
+
managed_by?: 'composio' | 'all' | 'project';
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Sort order for returned toolkits
|
|
537
|
+
*/
|
|
222
538
|
sort_by?: 'usage' | 'alphabetically';
|
|
223
539
|
}
|
|
224
540
|
|
|
@@ -227,6 +543,7 @@ export declare namespace Toolkits {
|
|
|
227
543
|
type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
|
|
228
544
|
type ToolkitListResponse as ToolkitListResponse,
|
|
229
545
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
546
|
+
type ToolkitRetrieveParams as ToolkitRetrieveParams,
|
|
230
547
|
type ToolkitListParams as ToolkitListParams,
|
|
231
548
|
};
|
|
232
549
|
}
|