@composio/client 0.1.0-alpha.5 → 0.1.0-alpha.50
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 +685 -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 +646 -0
- package/resources/tool-router/session.d.mts.map +1 -0
- package/resources/tool-router/session.d.ts +646 -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 +288 -6
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +288 -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 +163 -40
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +163 -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 +792 -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 +328 -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 +176 -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, management type, and
|
|
27
|
+
* local availability, as well as different sorting options.
|
|
28
|
+
*/
|
|
13
29
|
list(
|
|
14
30
|
query: ToolkitListParams | null | undefined = {},
|
|
15
31
|
options?: RequestOptions,
|
|
@@ -17,70 +33,203 @@ 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
|
+
* Indicates if this toolkit is specific to the current project or globally
|
|
60
|
+
* available
|
|
61
|
+
*/
|
|
28
62
|
is_local_toolkit: boolean;
|
|
29
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Comprehensive metadata for the toolkit including dates, descriptions, and
|
|
66
|
+
* statistics
|
|
67
|
+
*/
|
|
30
68
|
meta: ToolkitRetrieveResponse.Meta;
|
|
31
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Human-readable name of the toolkit
|
|
72
|
+
*/
|
|
32
73
|
name: string;
|
|
33
74
|
|
|
75
|
+
/**
|
|
76
|
+
* URL-friendly unique identifier for the toolkit
|
|
77
|
+
*/
|
|
34
78
|
slug: string;
|
|
35
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Complete authentication configuration details for each supported auth method
|
|
82
|
+
*/
|
|
36
83
|
auth_config_details?: Array<ToolkitRetrieveResponse.AuthConfigDetail>;
|
|
37
84
|
|
|
85
|
+
/**
|
|
86
|
+
* If evaluation of base URL needs some connection info (like shopify), please
|
|
87
|
+
* create the connection and get the base URL from there
|
|
88
|
+
*/
|
|
89
|
+
base_url?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* List of authentication methods that Composio manages for this toolkit
|
|
93
|
+
*/
|
|
38
94
|
composio_managed_auth_schemes?: Array<string>;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Endpoint to get the current user
|
|
98
|
+
*/
|
|
99
|
+
get_current_user_endpoint?: string;
|
|
39
100
|
}
|
|
40
101
|
|
|
41
102
|
export namespace ToolkitRetrieveResponse {
|
|
103
|
+
export interface Deprecated {
|
|
104
|
+
rawProxyInfoByAuthSchemes: Array<{ [key: string]: unknown }>;
|
|
105
|
+
|
|
106
|
+
toolkitId: string;
|
|
107
|
+
|
|
108
|
+
getCurrentUserEndpoint?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Comprehensive metadata for the toolkit including dates, descriptions, and
|
|
113
|
+
* statistics
|
|
114
|
+
*/
|
|
42
115
|
export interface Meta {
|
|
116
|
+
/**
|
|
117
|
+
* Available versions of the toolkit
|
|
118
|
+
*/
|
|
119
|
+
available_versions: Array<string>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* List of categories associated with this toolkit
|
|
123
|
+
*/
|
|
43
124
|
categories: Array<Meta.Category>;
|
|
44
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Creation date and time of the toolkit
|
|
128
|
+
*/
|
|
45
129
|
created_at: string;
|
|
46
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Human-readable description explaining the toolkit's purpose and functionality
|
|
133
|
+
*/
|
|
47
134
|
description: string;
|
|
48
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Image URL for the toolkit's branding
|
|
138
|
+
*/
|
|
49
139
|
logo: string;
|
|
50
140
|
|
|
141
|
+
/**
|
|
142
|
+
* Count of available tools in this toolkit
|
|
143
|
+
*/
|
|
51
144
|
tools_count: number;
|
|
52
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Count of available triggers in this toolkit
|
|
148
|
+
*/
|
|
53
149
|
triggers_count: number;
|
|
54
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Last modification date and time of the toolkit
|
|
153
|
+
*/
|
|
55
154
|
updated_at: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Version of the toolkit
|
|
158
|
+
*/
|
|
159
|
+
version: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Link to the toolkit's main application or service website
|
|
163
|
+
*/
|
|
164
|
+
app_url?: string | null;
|
|
56
165
|
}
|
|
57
166
|
|
|
58
167
|
export namespace Meta {
|
|
59
168
|
export interface Category {
|
|
169
|
+
/**
|
|
170
|
+
* Human-readable category name
|
|
171
|
+
*/
|
|
60
172
|
name: string;
|
|
61
173
|
|
|
174
|
+
/**
|
|
175
|
+
* URL-friendly identifier for the category
|
|
176
|
+
*/
|
|
62
177
|
slug: string;
|
|
63
178
|
}
|
|
64
179
|
}
|
|
65
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Detailed configuration for an authentication method
|
|
183
|
+
*/
|
|
66
184
|
export interface AuthConfigDetail {
|
|
185
|
+
/**
|
|
186
|
+
* Field groups required for different authentication stages
|
|
187
|
+
*/
|
|
67
188
|
fields: AuthConfigDetail.Fields;
|
|
68
189
|
|
|
190
|
+
/**
|
|
191
|
+
* The type of authentication mode (e.g., oauth2, basic_auth, api_key)
|
|
192
|
+
*/
|
|
69
193
|
mode: string;
|
|
70
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Display name for this authentication method
|
|
197
|
+
*/
|
|
71
198
|
name: string;
|
|
72
199
|
|
|
200
|
+
/**
|
|
201
|
+
* @deprecated Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't
|
|
202
|
+
* recommend using this field for authentication and might break post Aug 31 2025.
|
|
203
|
+
*/
|
|
204
|
+
deprecated_auth_provider_details?: AuthConfigDetail.DeprecatedAuthProviderDetails;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Configuration for proxying authentication requests to external services
|
|
208
|
+
*/
|
|
73
209
|
proxy?: AuthConfigDetail.Proxy;
|
|
74
210
|
}
|
|
75
211
|
|
|
76
212
|
export namespace AuthConfigDetail {
|
|
213
|
+
/**
|
|
214
|
+
* Field groups required for different authentication stages
|
|
215
|
+
*/
|
|
77
216
|
export interface Fields {
|
|
217
|
+
/**
|
|
218
|
+
* Form fields needed when creating an authentication configuration
|
|
219
|
+
*/
|
|
78
220
|
auth_config_creation: Fields.AuthConfigCreation;
|
|
79
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Form fields needed when connecting a user account with this authentication
|
|
224
|
+
* method
|
|
225
|
+
*/
|
|
80
226
|
connected_account_initiation: Fields.ConnectedAccountInitiation;
|
|
81
227
|
}
|
|
82
228
|
|
|
83
229
|
export namespace Fields {
|
|
230
|
+
/**
|
|
231
|
+
* Form fields needed when creating an authentication configuration
|
|
232
|
+
*/
|
|
84
233
|
export interface AuthConfigCreation {
|
|
85
234
|
optional: Array<AuthConfigCreation.Optional>;
|
|
86
235
|
|
|
@@ -89,26 +238,42 @@ export namespace ToolkitRetrieveResponse {
|
|
|
89
238
|
|
|
90
239
|
export namespace AuthConfigCreation {
|
|
91
240
|
export interface Optional {
|
|
241
|
+
description: string;
|
|
242
|
+
|
|
92
243
|
displayName: string;
|
|
93
244
|
|
|
94
245
|
name: string;
|
|
95
246
|
|
|
247
|
+
required: boolean;
|
|
248
|
+
|
|
96
249
|
type: string;
|
|
97
250
|
|
|
98
251
|
default?: string | null;
|
|
252
|
+
|
|
253
|
+
legacy_template_name?: string;
|
|
99
254
|
}
|
|
100
255
|
|
|
101
256
|
export interface Required {
|
|
257
|
+
description: string;
|
|
258
|
+
|
|
102
259
|
displayName: string;
|
|
103
260
|
|
|
104
261
|
name: string;
|
|
105
262
|
|
|
263
|
+
required: boolean;
|
|
264
|
+
|
|
106
265
|
type: string;
|
|
107
266
|
|
|
108
267
|
default?: string | null;
|
|
268
|
+
|
|
269
|
+
legacy_template_name?: string;
|
|
109
270
|
}
|
|
110
271
|
}
|
|
111
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Form fields needed when connecting a user account with this authentication
|
|
275
|
+
* method
|
|
276
|
+
*/
|
|
112
277
|
export interface ConnectedAccountInitiation {
|
|
113
278
|
optional: Array<ConnectedAccountInitiation.Optional>;
|
|
114
279
|
|
|
@@ -117,79 +282,188 @@ export namespace ToolkitRetrieveResponse {
|
|
|
117
282
|
|
|
118
283
|
export namespace ConnectedAccountInitiation {
|
|
119
284
|
export interface Optional {
|
|
285
|
+
description: string;
|
|
286
|
+
|
|
120
287
|
displayName: string;
|
|
121
288
|
|
|
122
289
|
name: string;
|
|
123
290
|
|
|
291
|
+
required: boolean;
|
|
292
|
+
|
|
124
293
|
type: string;
|
|
125
294
|
|
|
126
295
|
default?: string | null;
|
|
296
|
+
|
|
297
|
+
legacy_template_name?: string;
|
|
127
298
|
}
|
|
128
299
|
|
|
129
300
|
export interface Required {
|
|
301
|
+
description: string;
|
|
302
|
+
|
|
130
303
|
displayName: string;
|
|
131
304
|
|
|
132
305
|
name: string;
|
|
133
306
|
|
|
307
|
+
required: boolean;
|
|
308
|
+
|
|
134
309
|
type: string;
|
|
135
310
|
|
|
136
311
|
default?: string | null;
|
|
312
|
+
|
|
313
|
+
legacy_template_name?: string;
|
|
137
314
|
}
|
|
138
315
|
}
|
|
139
316
|
}
|
|
140
317
|
|
|
318
|
+
/**
|
|
319
|
+
* @deprecated Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't
|
|
320
|
+
* recommend using this field for authentication and might break post Aug 31 2025.
|
|
321
|
+
*/
|
|
322
|
+
export interface DeprecatedAuthProviderDetails {
|
|
323
|
+
authorization_url?: string;
|
|
324
|
+
|
|
325
|
+
token_url?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Configuration for proxying authentication requests to external services
|
|
330
|
+
*/
|
|
141
331
|
export interface Proxy {
|
|
332
|
+
/**
|
|
333
|
+
* URL to which authentication requests will be proxied
|
|
334
|
+
*/
|
|
142
335
|
base_url: string;
|
|
143
336
|
}
|
|
144
337
|
}
|
|
145
338
|
}
|
|
146
339
|
|
|
147
340
|
export interface ToolkitListResponse {
|
|
341
|
+
current_page: number;
|
|
342
|
+
|
|
148
343
|
items: Array<ToolkitListResponse.Item>;
|
|
149
344
|
|
|
150
|
-
|
|
345
|
+
total_items: number;
|
|
151
346
|
|
|
152
347
|
total_pages: number;
|
|
348
|
+
|
|
349
|
+
next_cursor?: string | null;
|
|
153
350
|
}
|
|
154
351
|
|
|
155
352
|
export namespace ToolkitListResponse {
|
|
353
|
+
/**
|
|
354
|
+
* Detailed information about a toolkit
|
|
355
|
+
*/
|
|
156
356
|
export interface Item {
|
|
357
|
+
/**
|
|
358
|
+
* @deprecated Deprecated toolkit ID
|
|
359
|
+
*/
|
|
360
|
+
deprecated: Item.Deprecated;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Indicates if this toolkit is specific to the current project or globally
|
|
364
|
+
* available
|
|
365
|
+
*/
|
|
157
366
|
is_local_toolkit: boolean;
|
|
158
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Additional metadata about the toolkit
|
|
370
|
+
*/
|
|
159
371
|
meta: Item.Meta;
|
|
160
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Human-readable name of the toolkit
|
|
375
|
+
*/
|
|
161
376
|
name: string;
|
|
162
377
|
|
|
378
|
+
/**
|
|
379
|
+
* URL-friendly unique identifier for the toolkit
|
|
380
|
+
*/
|
|
163
381
|
slug: string;
|
|
164
382
|
|
|
383
|
+
/**
|
|
384
|
+
* List of authentication methods supported by this toolkit
|
|
385
|
+
*/
|
|
165
386
|
auth_schemes?: Array<string>;
|
|
166
387
|
|
|
388
|
+
/**
|
|
389
|
+
* List of authentication methods that Composio manages for this toolkit
|
|
390
|
+
*/
|
|
167
391
|
composio_managed_auth_schemes?: Array<string>;
|
|
168
392
|
|
|
393
|
+
/**
|
|
394
|
+
* When true, this toolkit can be used without authentication
|
|
395
|
+
*/
|
|
169
396
|
no_auth?: boolean;
|
|
170
397
|
}
|
|
171
398
|
|
|
172
399
|
export namespace Item {
|
|
400
|
+
/**
|
|
401
|
+
* @deprecated Deprecated toolkit ID
|
|
402
|
+
*/
|
|
403
|
+
export interface Deprecated {
|
|
404
|
+
toolkitId: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Additional metadata about the toolkit
|
|
409
|
+
*/
|
|
173
410
|
export interface Meta {
|
|
411
|
+
/**
|
|
412
|
+
* List of categories associated with this toolkit
|
|
413
|
+
*/
|
|
174
414
|
categories: Array<Meta.Category>;
|
|
175
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Creation date and time of the toolkit
|
|
418
|
+
*/
|
|
176
419
|
created_at: string;
|
|
177
420
|
|
|
421
|
+
/**
|
|
422
|
+
* Human-readable description explaining the toolkit's purpose and functionality
|
|
423
|
+
*/
|
|
178
424
|
description: string;
|
|
179
425
|
|
|
426
|
+
/**
|
|
427
|
+
* Image URL for the toolkit's branding
|
|
428
|
+
*/
|
|
180
429
|
logo: string;
|
|
181
430
|
|
|
431
|
+
/**
|
|
432
|
+
* Count of available tools in this toolkit
|
|
433
|
+
*/
|
|
182
434
|
tools_count: number;
|
|
183
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Count of available triggers in this toolkit
|
|
438
|
+
*/
|
|
184
439
|
triggers_count: number;
|
|
185
440
|
|
|
441
|
+
/**
|
|
442
|
+
* Last modification date and time of the toolkit
|
|
443
|
+
*/
|
|
186
444
|
updated_at: string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Version of the toolkit
|
|
448
|
+
*/
|
|
449
|
+
version: string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Link to the toolkit's main application or service website
|
|
453
|
+
*/
|
|
454
|
+
app_url?: string | null;
|
|
187
455
|
}
|
|
188
456
|
|
|
189
457
|
export namespace Meta {
|
|
190
458
|
export interface Category {
|
|
459
|
+
/**
|
|
460
|
+
* Category identifier
|
|
461
|
+
*/
|
|
191
462
|
id: string;
|
|
192
463
|
|
|
464
|
+
/**
|
|
465
|
+
* Human-readable category name
|
|
466
|
+
*/
|
|
193
467
|
name: string;
|
|
194
468
|
}
|
|
195
469
|
}
|
|
@@ -197,28 +471,73 @@ export namespace ToolkitListResponse {
|
|
|
197
471
|
}
|
|
198
472
|
|
|
199
473
|
export interface ToolkitRetrieveCategoriesResponse {
|
|
474
|
+
current_page: number;
|
|
475
|
+
|
|
200
476
|
items: Array<ToolkitRetrieveCategoriesResponse.Item>;
|
|
201
477
|
|
|
202
|
-
|
|
478
|
+
total_items: number;
|
|
203
479
|
|
|
204
480
|
total_pages: number;
|
|
481
|
+
|
|
482
|
+
next_cursor?: string | null;
|
|
205
483
|
}
|
|
206
484
|
|
|
207
485
|
export namespace ToolkitRetrieveCategoriesResponse {
|
|
486
|
+
/**
|
|
487
|
+
* Information about a single toolkit category
|
|
488
|
+
*/
|
|
208
489
|
export interface Item {
|
|
490
|
+
/**
|
|
491
|
+
* URL-friendly unique identifier for the category, used for filtering toolkits
|
|
492
|
+
*/
|
|
209
493
|
id: string;
|
|
210
494
|
|
|
495
|
+
/**
|
|
496
|
+
* Display name of the toolkit category
|
|
497
|
+
*/
|
|
211
498
|
name: string;
|
|
212
499
|
}
|
|
213
500
|
}
|
|
214
501
|
|
|
502
|
+
export interface ToolkitRetrieveParams {
|
|
503
|
+
/**
|
|
504
|
+
* Version of the toolkit
|
|
505
|
+
*/
|
|
506
|
+
version?: string;
|
|
507
|
+
}
|
|
508
|
+
|
|
215
509
|
export interface ToolkitListParams {
|
|
510
|
+
/**
|
|
511
|
+
* Filter toolkits by category
|
|
512
|
+
*/
|
|
216
513
|
category?: string;
|
|
217
514
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
515
|
+
/**
|
|
516
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
517
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
518
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
519
|
+
* required for the first page.
|
|
520
|
+
*/
|
|
521
|
+
cursor?: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Whether to include local toolkits in the results
|
|
525
|
+
*/
|
|
526
|
+
is_local?: boolean | null;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Number of items per page, max allowed is 1000
|
|
530
|
+
*/
|
|
531
|
+
limit?: number | null;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Filter toolkits by who manages them
|
|
535
|
+
*/
|
|
536
|
+
managed_by?: 'composio' | 'all' | 'project';
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Sort order for returned toolkits
|
|
540
|
+
*/
|
|
222
541
|
sort_by?: 'usage' | 'alphabetically';
|
|
223
542
|
}
|
|
224
543
|
|
|
@@ -227,6 +546,7 @@ export declare namespace Toolkits {
|
|
|
227
546
|
type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
|
|
228
547
|
type ToolkitListResponse as ToolkitListResponse,
|
|
229
548
|
type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
|
|
549
|
+
type ToolkitRetrieveParams as ToolkitRetrieveParams,
|
|
230
550
|
type ToolkitListParams as ToolkitListParams,
|
|
231
551
|
};
|
|
232
552
|
}
|