@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
package/resources/tools.d.mts
CHANGED
|
@@ -2,163 +2,1331 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Tools extends APIResource {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve detailed information about a specific tool using its slug identifier.
|
|
7
|
+
* This endpoint returns full metadata about a tool including input/output
|
|
8
|
+
* parameters, versions, and toolkit information.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const tool = await client.tools.retrieve('tool_slug');
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
retrieve(toolSlug: string, query?: ToolRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ToolRetrieveResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve a paginated list of available tools with comprehensive filtering,
|
|
18
|
+
* sorting and search capabilities. Use query parameters to narrow down results by
|
|
19
|
+
* toolkit, tags, or search terms.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const tools = await client.tools.list();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
6
26
|
list(query?: ToolListParams | null | undefined, options?: RequestOptions): APIPromise<ToolListResponse>;
|
|
7
|
-
|
|
8
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Execute a specific tool operation with provided arguments and authentication.
|
|
29
|
+
* This is the primary endpoint for integrating with third-party services and
|
|
30
|
+
* executing tools. You can provide structured arguments or use natural language
|
|
31
|
+
* processing by providing a text description of what you want to accomplish.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.tools.execute('tool_slug');
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
execute(toolSlug: string, body?: ToolExecuteParams | null | undefined, options?: RequestOptions): APIPromise<ToolExecuteResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Uses AI to translate a natural language description into structured arguments
|
|
41
|
+
* for a specific tool. This endpoint is useful when you want to let users describe
|
|
42
|
+
* what they want to do in plain language instead of providing structured
|
|
43
|
+
* parameters.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response = await client.tools.getInput('tool_slug', {
|
|
48
|
+
* text: 'I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
getInput(toolSlug: string, body: ToolGetInputParams, options?: RequestOptions): APIPromise<ToolGetInputResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Proxy an HTTP request to a third-party API using connected account credentials.
|
|
55
|
+
* This endpoint allows making authenticated API calls to external services while
|
|
56
|
+
* abstracting away authentication details.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.tools.proxy({
|
|
61
|
+
* endpoint: '/api/v1/resources',
|
|
62
|
+
* method: 'GET',
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
9
66
|
proxy(body: ToolProxyParams, options?: RequestOptions): APIPromise<ToolProxyResponse>;
|
|
10
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Retrieve a list of all available tool enumeration values (tool slugs) from
|
|
69
|
+
* latest version of each toolkit. This endpoint returns a comma-separated string
|
|
70
|
+
* of tool slugs that can be used in other API calls.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const response = await client.tools.retrieveEnum();
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
retrieveEnum(options?: RequestOptions): APIPromise<ToolRetrieveEnumResponse>;
|
|
11
78
|
}
|
|
12
79
|
export interface ToolRetrieveResponse {
|
|
80
|
+
/**
|
|
81
|
+
* List of all available versions for this tool
|
|
82
|
+
*/
|
|
13
83
|
available_versions: Array<string>;
|
|
84
|
+
deprecated: ToolRetrieveResponse.Deprecated;
|
|
85
|
+
/**
|
|
86
|
+
* Detailed explanation of the tool's functionality and purpose
|
|
87
|
+
*/
|
|
14
88
|
description: string;
|
|
15
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Schema definition of required input parameters for the tool
|
|
91
|
+
*/
|
|
92
|
+
input_parameters: {
|
|
93
|
+
[key: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
97
|
+
*/
|
|
98
|
+
is_deprecated: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Human-readable display name of the tool
|
|
101
|
+
*/
|
|
16
102
|
name: string;
|
|
17
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Indicates if the tool can be used without authentication
|
|
105
|
+
*/
|
|
106
|
+
no_auth: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Schema definition of return values from the tool
|
|
109
|
+
*/
|
|
110
|
+
output_parameters: {
|
|
111
|
+
[key: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* List of scopes associated with the tool
|
|
115
|
+
*/
|
|
116
|
+
scopes: Array<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Unique identifier for the tool
|
|
119
|
+
*/
|
|
18
120
|
slug: string;
|
|
121
|
+
/**
|
|
122
|
+
* List of tags associated with the tool for categorization and filtering
|
|
123
|
+
*/
|
|
19
124
|
tags: Array<string>;
|
|
20
125
|
toolkit: ToolRetrieveResponse.Toolkit;
|
|
126
|
+
/**
|
|
127
|
+
* Current version of the tool
|
|
128
|
+
*/
|
|
21
129
|
version: string;
|
|
22
130
|
}
|
|
23
131
|
export declare namespace ToolRetrieveResponse {
|
|
132
|
+
interface Deprecated {
|
|
133
|
+
/**
|
|
134
|
+
* List of all available versions for this tool
|
|
135
|
+
*/
|
|
136
|
+
available_versions: Array<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The display name of the tool
|
|
139
|
+
*/
|
|
140
|
+
displayName: string;
|
|
141
|
+
/**
|
|
142
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
143
|
+
*/
|
|
144
|
+
is_deprecated: boolean;
|
|
145
|
+
toolkit: Deprecated.Toolkit;
|
|
146
|
+
/**
|
|
147
|
+
* Current version identifier of the tool
|
|
148
|
+
*/
|
|
149
|
+
version: string;
|
|
150
|
+
}
|
|
151
|
+
namespace Deprecated {
|
|
152
|
+
interface Toolkit {
|
|
153
|
+
/**
|
|
154
|
+
* URL to the toolkit logo image
|
|
155
|
+
*/
|
|
156
|
+
logo: string;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
24
159
|
interface Toolkit {
|
|
160
|
+
/**
|
|
161
|
+
* URL to the toolkit logo image
|
|
162
|
+
*/
|
|
25
163
|
logo: string;
|
|
164
|
+
/**
|
|
165
|
+
* Human-readable name of the parent toolkit
|
|
166
|
+
*/
|
|
26
167
|
name: string;
|
|
168
|
+
/**
|
|
169
|
+
* Unique identifier of the parent toolkit
|
|
170
|
+
*/
|
|
27
171
|
slug: string;
|
|
28
172
|
}
|
|
29
173
|
}
|
|
30
174
|
export interface ToolListResponse {
|
|
175
|
+
current_page: number;
|
|
31
176
|
items: Array<ToolListResponse.Item>;
|
|
32
|
-
|
|
177
|
+
total_items: number;
|
|
33
178
|
total_pages: number;
|
|
179
|
+
next_cursor?: string | null;
|
|
34
180
|
}
|
|
35
181
|
export declare namespace ToolListResponse {
|
|
36
182
|
interface Item {
|
|
37
183
|
/**
|
|
38
|
-
*
|
|
184
|
+
* List of all available versions for this tool
|
|
185
|
+
*/
|
|
186
|
+
available_versions: Array<string>;
|
|
187
|
+
deprecated: Item.Deprecated;
|
|
188
|
+
/**
|
|
189
|
+
* Detailed explanation of the tool's functionality and purpose
|
|
39
190
|
*/
|
|
40
191
|
description: string;
|
|
41
192
|
/**
|
|
42
|
-
*
|
|
193
|
+
* Schema definition of required input parameters for the tool
|
|
194
|
+
*/
|
|
195
|
+
input_parameters: {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
43
200
|
*/
|
|
44
|
-
|
|
201
|
+
is_deprecated: boolean;
|
|
45
202
|
/**
|
|
46
|
-
*
|
|
203
|
+
* Human-readable display name of the tool
|
|
47
204
|
*/
|
|
48
205
|
name: string;
|
|
49
206
|
/**
|
|
50
|
-
*
|
|
207
|
+
* Indicates if the tool can be used without authentication
|
|
208
|
+
*/
|
|
209
|
+
no_auth: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Schema definition of return values from the tool
|
|
212
|
+
*/
|
|
213
|
+
output_parameters: {
|
|
214
|
+
[key: string]: unknown;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* List of scopes associated with the tool
|
|
51
218
|
*/
|
|
52
|
-
|
|
219
|
+
scopes: Array<string>;
|
|
53
220
|
/**
|
|
54
|
-
*
|
|
221
|
+
* Unique identifier for the tool
|
|
55
222
|
*/
|
|
56
223
|
slug: string;
|
|
57
224
|
/**
|
|
58
|
-
*
|
|
225
|
+
* List of tags associated with the tool for categorization and filtering
|
|
59
226
|
*/
|
|
60
227
|
tags: Array<string>;
|
|
61
228
|
toolkit: Item.Toolkit;
|
|
229
|
+
/**
|
|
230
|
+
* Current version of the tool
|
|
231
|
+
*/
|
|
232
|
+
version: string;
|
|
62
233
|
}
|
|
63
234
|
namespace Item {
|
|
235
|
+
interface Deprecated {
|
|
236
|
+
/**
|
|
237
|
+
* List of all available versions for this tool
|
|
238
|
+
*/
|
|
239
|
+
available_versions: Array<string>;
|
|
240
|
+
/**
|
|
241
|
+
* The display name of the tool
|
|
242
|
+
*/
|
|
243
|
+
displayName: string;
|
|
244
|
+
/**
|
|
245
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
246
|
+
*/
|
|
247
|
+
is_deprecated: boolean;
|
|
248
|
+
toolkit: Deprecated.Toolkit;
|
|
249
|
+
/**
|
|
250
|
+
* Current version identifier of the tool
|
|
251
|
+
*/
|
|
252
|
+
version: string;
|
|
253
|
+
}
|
|
254
|
+
namespace Deprecated {
|
|
255
|
+
interface Toolkit {
|
|
256
|
+
/**
|
|
257
|
+
* URL to the toolkit logo image
|
|
258
|
+
*/
|
|
259
|
+
logo: string;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
64
262
|
interface Toolkit {
|
|
65
263
|
/**
|
|
66
|
-
*
|
|
264
|
+
* URL to the toolkit logo image
|
|
265
|
+
*/
|
|
266
|
+
logo: string;
|
|
267
|
+
/**
|
|
268
|
+
* Human-readable name of the parent toolkit
|
|
67
269
|
*/
|
|
68
270
|
name: string;
|
|
69
271
|
/**
|
|
70
|
-
*
|
|
272
|
+
* Unique identifier of the parent toolkit
|
|
71
273
|
*/
|
|
72
274
|
slug: string;
|
|
73
275
|
}
|
|
74
276
|
}
|
|
75
277
|
}
|
|
76
278
|
export interface ToolExecuteResponse {
|
|
77
|
-
|
|
279
|
+
/**
|
|
280
|
+
* Tool execution output data that varies based on the specific tool
|
|
281
|
+
*/
|
|
282
|
+
data: {
|
|
283
|
+
[key: string]: unknown;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Error message if the tool execution was not successful (null if successful)
|
|
287
|
+
*/
|
|
78
288
|
error: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* Indicates if the tool execution was successful
|
|
291
|
+
*/
|
|
79
292
|
successful: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Unique identifier for the execution log (useful for debugging and support)
|
|
295
|
+
*/
|
|
80
296
|
log_id?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Optional session information for tools that return session context
|
|
299
|
+
*/
|
|
81
300
|
session_info?: unknown;
|
|
82
301
|
}
|
|
83
302
|
export interface ToolGetInputResponse {
|
|
84
303
|
/**
|
|
85
|
-
*
|
|
304
|
+
* Key-value pairs of arguments required by the tool to accomplish the described
|
|
305
|
+
* task
|
|
86
306
|
*/
|
|
87
|
-
arguments?:
|
|
307
|
+
arguments?: {
|
|
308
|
+
[key: string]: unknown;
|
|
309
|
+
};
|
|
88
310
|
/**
|
|
89
|
-
*
|
|
311
|
+
* Error message if the arguments could not be generated (null if successful)
|
|
90
312
|
*/
|
|
91
313
|
error?: string;
|
|
92
314
|
}
|
|
93
315
|
export interface ToolProxyResponse {
|
|
316
|
+
/**
|
|
317
|
+
* The HTTP status code returned from the proxied API
|
|
318
|
+
*/
|
|
94
319
|
status: number;
|
|
320
|
+
/**
|
|
321
|
+
* The response data returned from the proxied API
|
|
322
|
+
*/
|
|
95
323
|
data?: unknown;
|
|
96
|
-
|
|
324
|
+
/**
|
|
325
|
+
* The HTTP headers returned from the proxied API
|
|
326
|
+
*/
|
|
327
|
+
headers?: {
|
|
328
|
+
[key: string]: string;
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* JSON string containing all tool enum values from latest version of each toolkit
|
|
333
|
+
*/
|
|
334
|
+
export type ToolRetrieveEnumResponse = Array<string>;
|
|
335
|
+
export interface ToolRetrieveParams {
|
|
336
|
+
/**
|
|
337
|
+
* Toolkit version specification. Use "latest" for latest versions or bracket
|
|
338
|
+
* notation for specific versions per toolkit.
|
|
339
|
+
*/
|
|
340
|
+
toolkit_versions?: string | {
|
|
341
|
+
[key: string]: string;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Optional version of the tool to retrieve
|
|
345
|
+
*/
|
|
346
|
+
version?: string;
|
|
97
347
|
}
|
|
98
|
-
export type ToolRetrieveEnumResponse = string;
|
|
99
348
|
export interface ToolListParams {
|
|
100
349
|
/**
|
|
101
|
-
*
|
|
350
|
+
* Comma-separated list of auth config IDs to filter tools by
|
|
351
|
+
*/
|
|
352
|
+
auth_config_ids?: string | Array<string>;
|
|
353
|
+
/**
|
|
354
|
+
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
355
|
+
* limit. The page is the page number and the limit is the number of items per
|
|
356
|
+
* page. The cursor is used to paginate through the items. The cursor is not
|
|
357
|
+
* required for the first page.
|
|
102
358
|
*/
|
|
103
359
|
cursor?: string;
|
|
104
360
|
/**
|
|
105
|
-
*
|
|
361
|
+
* Filter to only show important/featured tools (set to "true" to enable)
|
|
362
|
+
*/
|
|
363
|
+
important?: 'true' | 'false';
|
|
364
|
+
/**
|
|
365
|
+
* Include deprecated tools in the response
|
|
106
366
|
*/
|
|
107
|
-
|
|
367
|
+
include_deprecated?: boolean;
|
|
108
368
|
/**
|
|
109
|
-
*
|
|
369
|
+
* Number of items per page, max allowed is 1000
|
|
110
370
|
*/
|
|
111
|
-
limit?:
|
|
371
|
+
limit?: number | null;
|
|
112
372
|
/**
|
|
113
|
-
*
|
|
373
|
+
* Array of scopes to filter tools by)
|
|
374
|
+
*/
|
|
375
|
+
scopes?: Array<string> | null;
|
|
376
|
+
/**
|
|
377
|
+
* Free-text search query to find tools by name, description, or functionality
|
|
114
378
|
*/
|
|
115
379
|
search?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Filter tools by one or more tags (can be specified multiple times)
|
|
382
|
+
*/
|
|
383
|
+
tags?: Array<string>;
|
|
384
|
+
/**
|
|
385
|
+
* Comma-separated list of specific tool slugs to retrieve (overrides other
|
|
386
|
+
* filters)
|
|
387
|
+
*/
|
|
388
|
+
tool_slugs?: string;
|
|
116
389
|
/**
|
|
117
390
|
* The slug of the toolkit to filter by
|
|
118
391
|
*/
|
|
119
392
|
toolkit_slug?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Toolkit version specification. Use "latest" for latest versions or bracket
|
|
395
|
+
* notation for specific versions per toolkit.
|
|
396
|
+
*/
|
|
397
|
+
toolkit_versions?: string | {
|
|
398
|
+
[key: string]: string;
|
|
399
|
+
};
|
|
120
400
|
}
|
|
121
401
|
export interface ToolExecuteParams {
|
|
122
|
-
|
|
123
|
-
|
|
402
|
+
/**
|
|
403
|
+
* Enable debug tracing for tool execution (useful for debugging)
|
|
404
|
+
*/
|
|
405
|
+
allow_tracing?: boolean | null;
|
|
406
|
+
/**
|
|
407
|
+
* Key-value pairs of arguments required by the tool (mutually exclusive with text)
|
|
408
|
+
*/
|
|
409
|
+
arguments?: {
|
|
410
|
+
[key: string]: unknown;
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* Unique identifier for the connected account to use for authentication
|
|
414
|
+
*/
|
|
124
415
|
connected_account_id?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Custom authentication parameters for tools that support parameterized
|
|
418
|
+
* authentication
|
|
419
|
+
*/
|
|
420
|
+
custom_auth_params?: ToolExecuteParams.CustomAuthParams;
|
|
421
|
+
/**
|
|
422
|
+
* Custom connection data for tools that support custom connection data
|
|
423
|
+
*/
|
|
424
|
+
custom_connection_data?: ToolExecuteParams.UnionMember0 | ToolExecuteParams.UnionMember1 | ToolExecuteParams.UnionMember2 | ToolExecuteParams.UnionMember3 | ToolExecuteParams.UnionMember4 | ToolExecuteParams.UnionMember5 | ToolExecuteParams.UnionMember6 | ToolExecuteParams.UnionMember7 | ToolExecuteParams.UnionMember8 | ToolExecuteParams.UnionMember9;
|
|
425
|
+
/**
|
|
426
|
+
* @deprecated Deprecated: please use user_id instead. Entity identifier for
|
|
427
|
+
* multi-entity connected accounts (e.g. multiple repositories, organizations)
|
|
428
|
+
*/
|
|
125
429
|
entity_id?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Natural language description of the task to perform (mutually exclusive with
|
|
432
|
+
* arguments)
|
|
433
|
+
*/
|
|
126
434
|
text?: string;
|
|
435
|
+
/**
|
|
436
|
+
* User id for multi-user connected accounts (e.g. multiple users, organizations)
|
|
437
|
+
*/
|
|
438
|
+
user_id?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Tool version to execute (defaults to "00000000_00" if not specified)
|
|
441
|
+
*/
|
|
127
442
|
version?: string;
|
|
128
443
|
}
|
|
444
|
+
export declare namespace ToolExecuteParams {
|
|
445
|
+
/**
|
|
446
|
+
* Custom authentication parameters for tools that support parameterized
|
|
447
|
+
* authentication
|
|
448
|
+
*/
|
|
449
|
+
interface CustomAuthParams {
|
|
450
|
+
/**
|
|
451
|
+
* The base URL (root address) what you should use while making http requests to
|
|
452
|
+
* the connected account. For example, for gmail, it would be
|
|
453
|
+
* 'https://gmail.googleapis.com'
|
|
454
|
+
*/
|
|
455
|
+
base_url?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The body to be sent to the endpoint for authentication. This is a JSON object.
|
|
458
|
+
* Note: This is very rarely needed and is only required by very few apps.
|
|
459
|
+
*/
|
|
460
|
+
body?: {
|
|
461
|
+
[key: string]: unknown;
|
|
462
|
+
};
|
|
463
|
+
parameters?: Array<CustomAuthParams.Parameter>;
|
|
464
|
+
}
|
|
465
|
+
namespace CustomAuthParams {
|
|
466
|
+
interface Parameter {
|
|
467
|
+
/**
|
|
468
|
+
* The location of the parameter. Can be 'query' or 'header'.
|
|
469
|
+
*/
|
|
470
|
+
in: 'query' | 'header';
|
|
471
|
+
/**
|
|
472
|
+
* The name of the parameter. For example, 'x-api-key', 'Content-Type', etc.
|
|
473
|
+
*/
|
|
474
|
+
name: string;
|
|
475
|
+
/**
|
|
476
|
+
* The value of the parameter. For example, '1234567890', 'application/json', etc.
|
|
477
|
+
*/
|
|
478
|
+
value: string | number;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
interface UnionMember0 {
|
|
482
|
+
authScheme: 'OAUTH2';
|
|
483
|
+
toolkitSlug: string;
|
|
484
|
+
val: UnionMember0.Val;
|
|
485
|
+
}
|
|
486
|
+
namespace UnionMember0 {
|
|
487
|
+
interface Val {
|
|
488
|
+
access_token: string;
|
|
489
|
+
account_id?: string;
|
|
490
|
+
account_url?: string;
|
|
491
|
+
api_url?: string;
|
|
492
|
+
/**
|
|
493
|
+
* for slack user scopes
|
|
494
|
+
*/
|
|
495
|
+
authed_user?: Val.AuthedUser;
|
|
496
|
+
base_url?: string;
|
|
497
|
+
borneo_dashboard_url?: string;
|
|
498
|
+
COMPANYDOMAIN?: string;
|
|
499
|
+
dc?: string;
|
|
500
|
+
domain?: string;
|
|
501
|
+
expires_in?: number | string | null;
|
|
502
|
+
extension?: string;
|
|
503
|
+
form_api_base_url?: string;
|
|
504
|
+
id_token?: string;
|
|
505
|
+
instanceEndpoint?: string;
|
|
506
|
+
instanceName?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Whether to return the redirect url without shortening
|
|
509
|
+
*/
|
|
510
|
+
long_redirect_url?: boolean;
|
|
511
|
+
proxy_password?: string;
|
|
512
|
+
proxy_username?: string;
|
|
513
|
+
refresh_token?: string | null;
|
|
514
|
+
region?: string;
|
|
515
|
+
scope?: string | Array<string> | null;
|
|
516
|
+
server_location?: string;
|
|
517
|
+
shop?: string;
|
|
518
|
+
site_name?: string;
|
|
519
|
+
/**
|
|
520
|
+
* The oauth2 state prefix for the connection
|
|
521
|
+
*/
|
|
522
|
+
state_prefix?: string;
|
|
523
|
+
subdomain?: string;
|
|
524
|
+
token_type?: string;
|
|
525
|
+
version?: string;
|
|
526
|
+
webhook_signature?: string;
|
|
527
|
+
your_server?: string;
|
|
528
|
+
'your-domain'?: string;
|
|
529
|
+
[k: string]: unknown;
|
|
530
|
+
}
|
|
531
|
+
namespace Val {
|
|
532
|
+
/**
|
|
533
|
+
* for slack user scopes
|
|
534
|
+
*/
|
|
535
|
+
interface AuthedUser {
|
|
536
|
+
access_token?: string;
|
|
537
|
+
scope?: string;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
interface UnionMember1 {
|
|
542
|
+
authScheme: 'DCR_OAUTH';
|
|
543
|
+
toolkitSlug: string;
|
|
544
|
+
val: UnionMember1.Val;
|
|
545
|
+
}
|
|
546
|
+
namespace UnionMember1 {
|
|
547
|
+
interface Val {
|
|
548
|
+
access_token: string;
|
|
549
|
+
/**
|
|
550
|
+
* Dynamically registered client ID
|
|
551
|
+
*/
|
|
552
|
+
client_id: string;
|
|
553
|
+
account_id?: string;
|
|
554
|
+
account_url?: string;
|
|
555
|
+
api_url?: string;
|
|
556
|
+
base_url?: string;
|
|
557
|
+
borneo_dashboard_url?: string;
|
|
558
|
+
client_id_issued_at?: number;
|
|
559
|
+
/**
|
|
560
|
+
* Dynamically registered client secret
|
|
561
|
+
*/
|
|
562
|
+
client_secret?: string;
|
|
563
|
+
client_secret_expires_at?: number;
|
|
564
|
+
COMPANYDOMAIN?: string;
|
|
565
|
+
dc?: string;
|
|
566
|
+
domain?: string;
|
|
567
|
+
expires_in?: number | string | null;
|
|
568
|
+
extension?: string;
|
|
569
|
+
form_api_base_url?: string;
|
|
570
|
+
id_token?: string;
|
|
571
|
+
instanceEndpoint?: string;
|
|
572
|
+
instanceName?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Whether to return the redirect url without shortening
|
|
575
|
+
*/
|
|
576
|
+
long_redirect_url?: boolean;
|
|
577
|
+
proxy_password?: string;
|
|
578
|
+
proxy_username?: string;
|
|
579
|
+
refresh_token?: string | null;
|
|
580
|
+
region?: string;
|
|
581
|
+
scope?: string | Array<string> | null;
|
|
582
|
+
server_location?: string;
|
|
583
|
+
shop?: string;
|
|
584
|
+
site_name?: string;
|
|
585
|
+
/**
|
|
586
|
+
* The oauth2 state prefix for the connection
|
|
587
|
+
*/
|
|
588
|
+
state_prefix?: string;
|
|
589
|
+
subdomain?: string;
|
|
590
|
+
token_type?: string;
|
|
591
|
+
version?: string;
|
|
592
|
+
your_server?: string;
|
|
593
|
+
'your-domain'?: string;
|
|
594
|
+
[k: string]: unknown;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
interface UnionMember2 {
|
|
598
|
+
authScheme: 'API_KEY';
|
|
599
|
+
toolkitSlug: string;
|
|
600
|
+
val: UnionMember2.Val;
|
|
601
|
+
}
|
|
602
|
+
namespace UnionMember2 {
|
|
603
|
+
interface Val {
|
|
604
|
+
account_id?: string;
|
|
605
|
+
account_url?: string;
|
|
606
|
+
api_key?: string;
|
|
607
|
+
api_url?: string;
|
|
608
|
+
base_url?: string;
|
|
609
|
+
basic_encoded?: string;
|
|
610
|
+
bearer_token?: string;
|
|
611
|
+
borneo_dashboard_url?: string;
|
|
612
|
+
COMPANYDOMAIN?: string;
|
|
613
|
+
dc?: string;
|
|
614
|
+
domain?: string;
|
|
615
|
+
extension?: string;
|
|
616
|
+
form_api_base_url?: string;
|
|
617
|
+
generic_api_key?: string;
|
|
618
|
+
instanceEndpoint?: string;
|
|
619
|
+
instanceName?: string;
|
|
620
|
+
proxy_password?: string;
|
|
621
|
+
proxy_username?: string;
|
|
622
|
+
region?: string;
|
|
623
|
+
server_location?: string;
|
|
624
|
+
shop?: string;
|
|
625
|
+
site_name?: string;
|
|
626
|
+
subdomain?: string;
|
|
627
|
+
version?: string;
|
|
628
|
+
your_server?: string;
|
|
629
|
+
'your-domain'?: string;
|
|
630
|
+
[k: string]: unknown;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
interface UnionMember3 {
|
|
634
|
+
authScheme: 'BASIC_WITH_JWT';
|
|
635
|
+
toolkitSlug: string;
|
|
636
|
+
val: UnionMember3.Val;
|
|
637
|
+
}
|
|
638
|
+
namespace UnionMember3 {
|
|
639
|
+
interface Val {
|
|
640
|
+
password: string;
|
|
641
|
+
username: string;
|
|
642
|
+
account_id?: string;
|
|
643
|
+
account_url?: string;
|
|
644
|
+
api_url?: string;
|
|
645
|
+
base_url?: string;
|
|
646
|
+
borneo_dashboard_url?: string;
|
|
647
|
+
COMPANYDOMAIN?: string;
|
|
648
|
+
dc?: string;
|
|
649
|
+
domain?: string;
|
|
650
|
+
extension?: string;
|
|
651
|
+
form_api_base_url?: string;
|
|
652
|
+
instanceEndpoint?: string;
|
|
653
|
+
instanceName?: string;
|
|
654
|
+
proxy_password?: string;
|
|
655
|
+
proxy_username?: string;
|
|
656
|
+
region?: string;
|
|
657
|
+
server_location?: string;
|
|
658
|
+
shop?: string;
|
|
659
|
+
site_name?: string;
|
|
660
|
+
subdomain?: string;
|
|
661
|
+
version?: string;
|
|
662
|
+
your_server?: string;
|
|
663
|
+
'your-domain'?: string;
|
|
664
|
+
[k: string]: unknown;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
interface UnionMember4 {
|
|
668
|
+
authScheme: 'BASIC';
|
|
669
|
+
toolkitSlug: string;
|
|
670
|
+
val: UnionMember4.Val;
|
|
671
|
+
}
|
|
672
|
+
namespace UnionMember4 {
|
|
673
|
+
interface Val {
|
|
674
|
+
username: string;
|
|
675
|
+
account_id?: string;
|
|
676
|
+
account_url?: string;
|
|
677
|
+
api_url?: string;
|
|
678
|
+
base_url?: string;
|
|
679
|
+
borneo_dashboard_url?: string;
|
|
680
|
+
COMPANYDOMAIN?: string;
|
|
681
|
+
dc?: string;
|
|
682
|
+
domain?: string;
|
|
683
|
+
extension?: string;
|
|
684
|
+
form_api_base_url?: string;
|
|
685
|
+
instanceEndpoint?: string;
|
|
686
|
+
instanceName?: string;
|
|
687
|
+
password?: string;
|
|
688
|
+
proxy_password?: string;
|
|
689
|
+
proxy_username?: string;
|
|
690
|
+
region?: string;
|
|
691
|
+
server_location?: string;
|
|
692
|
+
shop?: string;
|
|
693
|
+
site_name?: string;
|
|
694
|
+
subdomain?: string;
|
|
695
|
+
version?: string;
|
|
696
|
+
your_server?: string;
|
|
697
|
+
'your-domain'?: string;
|
|
698
|
+
[k: string]: unknown;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
interface UnionMember5 {
|
|
702
|
+
authScheme: 'BEARER_TOKEN';
|
|
703
|
+
toolkitSlug: string;
|
|
704
|
+
val: UnionMember5.Val;
|
|
705
|
+
}
|
|
706
|
+
namespace UnionMember5 {
|
|
707
|
+
interface Val {
|
|
708
|
+
token: string;
|
|
709
|
+
account_id?: string;
|
|
710
|
+
account_url?: string;
|
|
711
|
+
api_url?: string;
|
|
712
|
+
base_url?: string;
|
|
713
|
+
borneo_dashboard_url?: string;
|
|
714
|
+
COMPANYDOMAIN?: string;
|
|
715
|
+
dc?: string;
|
|
716
|
+
domain?: string;
|
|
717
|
+
extension?: string;
|
|
718
|
+
form_api_base_url?: string;
|
|
719
|
+
instanceEndpoint?: string;
|
|
720
|
+
instanceName?: string;
|
|
721
|
+
proxy_password?: string;
|
|
722
|
+
proxy_username?: string;
|
|
723
|
+
region?: string;
|
|
724
|
+
server_location?: string;
|
|
725
|
+
shop?: string;
|
|
726
|
+
site_name?: string;
|
|
727
|
+
subdomain?: string;
|
|
728
|
+
version?: string;
|
|
729
|
+
your_server?: string;
|
|
730
|
+
'your-domain'?: string;
|
|
731
|
+
[k: string]: unknown;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
interface UnionMember6 {
|
|
735
|
+
authScheme: 'OAUTH1';
|
|
736
|
+
toolkitSlug: string;
|
|
737
|
+
val: UnionMember6.Val;
|
|
738
|
+
}
|
|
739
|
+
namespace UnionMember6 {
|
|
740
|
+
interface Val {
|
|
741
|
+
oauth_token: string;
|
|
742
|
+
oauth_token_secret: string;
|
|
743
|
+
account_id?: string;
|
|
744
|
+
account_url?: string;
|
|
745
|
+
api_url?: string;
|
|
746
|
+
base_url?: string;
|
|
747
|
+
borneo_dashboard_url?: string;
|
|
748
|
+
callback_url?: string;
|
|
749
|
+
COMPANYDOMAIN?: string;
|
|
750
|
+
consumer_key?: string;
|
|
751
|
+
dc?: string;
|
|
752
|
+
domain?: string;
|
|
753
|
+
extension?: string;
|
|
754
|
+
form_api_base_url?: string;
|
|
755
|
+
instanceEndpoint?: string;
|
|
756
|
+
instanceName?: string;
|
|
757
|
+
oauth_verifier?: string;
|
|
758
|
+
proxy_password?: string;
|
|
759
|
+
proxy_username?: string;
|
|
760
|
+
redirectUrl?: string;
|
|
761
|
+
region?: string;
|
|
762
|
+
server_location?: string;
|
|
763
|
+
shop?: string;
|
|
764
|
+
site_name?: string;
|
|
765
|
+
subdomain?: string;
|
|
766
|
+
version?: string;
|
|
767
|
+
your_server?: string;
|
|
768
|
+
'your-domain'?: string;
|
|
769
|
+
[k: string]: unknown;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
interface UnionMember7 {
|
|
773
|
+
authScheme: 'NO_AUTH';
|
|
774
|
+
toolkitSlug: string;
|
|
775
|
+
val: UnionMember7.Val;
|
|
776
|
+
}
|
|
777
|
+
namespace UnionMember7 {
|
|
778
|
+
interface Val {
|
|
779
|
+
account_id?: string;
|
|
780
|
+
account_url?: string;
|
|
781
|
+
api_url?: string;
|
|
782
|
+
base_url?: string;
|
|
783
|
+
borneo_dashboard_url?: string;
|
|
784
|
+
COMPANYDOMAIN?: string;
|
|
785
|
+
dc?: string;
|
|
786
|
+
domain?: string;
|
|
787
|
+
extension?: string;
|
|
788
|
+
form_api_base_url?: string;
|
|
789
|
+
instanceEndpoint?: string;
|
|
790
|
+
instanceName?: string;
|
|
791
|
+
proxy_password?: string;
|
|
792
|
+
proxy_username?: string;
|
|
793
|
+
region?: string;
|
|
794
|
+
server_location?: string;
|
|
795
|
+
shop?: string;
|
|
796
|
+
site_name?: string;
|
|
797
|
+
subdomain?: string;
|
|
798
|
+
version?: string;
|
|
799
|
+
your_server?: string;
|
|
800
|
+
'your-domain'?: string;
|
|
801
|
+
[k: string]: unknown;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
interface UnionMember8 {
|
|
805
|
+
authScheme: 'SERVICE_ACCOUNT';
|
|
806
|
+
toolkitSlug: string;
|
|
807
|
+
val: UnionMember8.Val;
|
|
808
|
+
}
|
|
809
|
+
namespace UnionMember8 {
|
|
810
|
+
interface Val {
|
|
811
|
+
application_id: string;
|
|
812
|
+
installation_id: string;
|
|
813
|
+
private_key: string;
|
|
814
|
+
account_id?: string;
|
|
815
|
+
account_url?: string;
|
|
816
|
+
api_url?: string;
|
|
817
|
+
base_url?: string;
|
|
818
|
+
borneo_dashboard_url?: string;
|
|
819
|
+
COMPANYDOMAIN?: string;
|
|
820
|
+
dc?: string;
|
|
821
|
+
domain?: string;
|
|
822
|
+
extension?: string;
|
|
823
|
+
form_api_base_url?: string;
|
|
824
|
+
instanceEndpoint?: string;
|
|
825
|
+
instanceName?: string;
|
|
826
|
+
proxy_password?: string;
|
|
827
|
+
proxy_username?: string;
|
|
828
|
+
region?: string;
|
|
829
|
+
server_location?: string;
|
|
830
|
+
shop?: string;
|
|
831
|
+
site_name?: string;
|
|
832
|
+
subdomain?: string;
|
|
833
|
+
version?: string;
|
|
834
|
+
your_server?: string;
|
|
835
|
+
'your-domain'?: string;
|
|
836
|
+
[k: string]: unknown;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
interface UnionMember9 {
|
|
840
|
+
authScheme: 'GOOGLE_SERVICE_ACCOUNT';
|
|
841
|
+
toolkitSlug: string;
|
|
842
|
+
val: UnionMember9.Val;
|
|
843
|
+
}
|
|
844
|
+
namespace UnionMember9 {
|
|
845
|
+
interface Val {
|
|
846
|
+
credentials_json: string;
|
|
847
|
+
account_id?: string;
|
|
848
|
+
account_url?: string;
|
|
849
|
+
api_url?: string;
|
|
850
|
+
base_url?: string;
|
|
851
|
+
borneo_dashboard_url?: string;
|
|
852
|
+
COMPANYDOMAIN?: string;
|
|
853
|
+
dc?: string;
|
|
854
|
+
domain?: string;
|
|
855
|
+
extension?: string;
|
|
856
|
+
form_api_base_url?: string;
|
|
857
|
+
instanceEndpoint?: string;
|
|
858
|
+
instanceName?: string;
|
|
859
|
+
proxy_password?: string;
|
|
860
|
+
proxy_username?: string;
|
|
861
|
+
region?: string;
|
|
862
|
+
server_location?: string;
|
|
863
|
+
shop?: string;
|
|
864
|
+
site_name?: string;
|
|
865
|
+
subdomain?: string;
|
|
866
|
+
version?: string;
|
|
867
|
+
your_server?: string;
|
|
868
|
+
'your-domain'?: string;
|
|
869
|
+
[k: string]: unknown;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
129
873
|
export interface ToolGetInputParams {
|
|
130
874
|
/**
|
|
131
|
-
*
|
|
132
|
-
* generate the correct inputs for the action.
|
|
875
|
+
* Natural language description of what you want to accomplish with this tool
|
|
133
876
|
*/
|
|
134
877
|
text: string;
|
|
135
878
|
/**
|
|
136
|
-
*
|
|
137
|
-
*
|
|
879
|
+
* Custom description of the tool to help guide the LLM in generating more accurate
|
|
880
|
+
* inputs
|
|
881
|
+
*/
|
|
882
|
+
custom_description?: string;
|
|
883
|
+
/**
|
|
884
|
+
* System prompt to control and guide the behavior of the LLM when generating
|
|
885
|
+
* inputs
|
|
138
886
|
*/
|
|
139
|
-
|
|
887
|
+
system_prompt?: string;
|
|
140
888
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
889
|
+
* Tool version to use when generating inputs (defaults to "latest" if not
|
|
890
|
+
* specified)
|
|
143
891
|
*/
|
|
144
|
-
systemPrompt?: string;
|
|
145
892
|
version?: string;
|
|
146
893
|
}
|
|
147
894
|
export interface ToolProxyParams {
|
|
895
|
+
/**
|
|
896
|
+
* The API endpoint to call (absolute URL or path relative to base URL of the
|
|
897
|
+
* connected account)
|
|
898
|
+
*/
|
|
148
899
|
endpoint: string;
|
|
149
|
-
|
|
900
|
+
/**
|
|
901
|
+
* The HTTP method to use for the request
|
|
902
|
+
*/
|
|
903
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
|
|
904
|
+
/**
|
|
905
|
+
* The request body (for POST, PUT, and PATCH requests)
|
|
906
|
+
*/
|
|
150
907
|
body?: unknown;
|
|
908
|
+
/**
|
|
909
|
+
* The ID of the connected account to use for authentication (if not provided, will
|
|
910
|
+
* use the default account for the project)
|
|
911
|
+
*/
|
|
151
912
|
connected_account_id?: string;
|
|
913
|
+
/**
|
|
914
|
+
* @deprecated
|
|
915
|
+
*/
|
|
916
|
+
custom_connection_data?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1 | ToolProxyParams.UnionMember2 | ToolProxyParams.UnionMember3 | ToolProxyParams.UnionMember4 | ToolProxyParams.UnionMember5 | ToolProxyParams.UnionMember6 | ToolProxyParams.UnionMember7 | ToolProxyParams.UnionMember8 | ToolProxyParams.UnionMember9;
|
|
917
|
+
/**
|
|
918
|
+
* Additional HTTP headers or query parameters to include in the request
|
|
919
|
+
*/
|
|
152
920
|
parameters?: Array<ToolProxyParams.Parameter>;
|
|
153
921
|
}
|
|
154
922
|
export declare namespace ToolProxyParams {
|
|
923
|
+
interface UnionMember0 {
|
|
924
|
+
authScheme: 'OAUTH2';
|
|
925
|
+
toolkitSlug: string;
|
|
926
|
+
val: UnionMember0.Val;
|
|
927
|
+
}
|
|
928
|
+
namespace UnionMember0 {
|
|
929
|
+
interface Val {
|
|
930
|
+
access_token: string;
|
|
931
|
+
account_id?: string;
|
|
932
|
+
account_url?: string;
|
|
933
|
+
api_url?: string;
|
|
934
|
+
/**
|
|
935
|
+
* for slack user scopes
|
|
936
|
+
*/
|
|
937
|
+
authed_user?: Val.AuthedUser;
|
|
938
|
+
base_url?: string;
|
|
939
|
+
borneo_dashboard_url?: string;
|
|
940
|
+
COMPANYDOMAIN?: string;
|
|
941
|
+
dc?: string;
|
|
942
|
+
domain?: string;
|
|
943
|
+
expires_in?: number | string | null;
|
|
944
|
+
extension?: string;
|
|
945
|
+
form_api_base_url?: string;
|
|
946
|
+
id_token?: string;
|
|
947
|
+
instanceEndpoint?: string;
|
|
948
|
+
instanceName?: string;
|
|
949
|
+
/**
|
|
950
|
+
* Whether to return the redirect url without shortening
|
|
951
|
+
*/
|
|
952
|
+
long_redirect_url?: boolean;
|
|
953
|
+
proxy_password?: string;
|
|
954
|
+
proxy_username?: string;
|
|
955
|
+
refresh_token?: string | null;
|
|
956
|
+
region?: string;
|
|
957
|
+
scope?: string | Array<string> | null;
|
|
958
|
+
server_location?: string;
|
|
959
|
+
shop?: string;
|
|
960
|
+
site_name?: string;
|
|
961
|
+
/**
|
|
962
|
+
* The oauth2 state prefix for the connection
|
|
963
|
+
*/
|
|
964
|
+
state_prefix?: string;
|
|
965
|
+
subdomain?: string;
|
|
966
|
+
token_type?: string;
|
|
967
|
+
version?: string;
|
|
968
|
+
webhook_signature?: string;
|
|
969
|
+
your_server?: string;
|
|
970
|
+
'your-domain'?: string;
|
|
971
|
+
[k: string]: unknown;
|
|
972
|
+
}
|
|
973
|
+
namespace Val {
|
|
974
|
+
/**
|
|
975
|
+
* for slack user scopes
|
|
976
|
+
*/
|
|
977
|
+
interface AuthedUser {
|
|
978
|
+
access_token?: string;
|
|
979
|
+
scope?: string;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
interface UnionMember1 {
|
|
984
|
+
authScheme: 'DCR_OAUTH';
|
|
985
|
+
toolkitSlug: string;
|
|
986
|
+
val: UnionMember1.Val;
|
|
987
|
+
}
|
|
988
|
+
namespace UnionMember1 {
|
|
989
|
+
interface Val {
|
|
990
|
+
access_token: string;
|
|
991
|
+
/**
|
|
992
|
+
* Dynamically registered client ID
|
|
993
|
+
*/
|
|
994
|
+
client_id: string;
|
|
995
|
+
account_id?: string;
|
|
996
|
+
account_url?: string;
|
|
997
|
+
api_url?: string;
|
|
998
|
+
base_url?: string;
|
|
999
|
+
borneo_dashboard_url?: string;
|
|
1000
|
+
client_id_issued_at?: number;
|
|
1001
|
+
/**
|
|
1002
|
+
* Dynamically registered client secret
|
|
1003
|
+
*/
|
|
1004
|
+
client_secret?: string;
|
|
1005
|
+
client_secret_expires_at?: number;
|
|
1006
|
+
COMPANYDOMAIN?: string;
|
|
1007
|
+
dc?: string;
|
|
1008
|
+
domain?: string;
|
|
1009
|
+
expires_in?: number | string | null;
|
|
1010
|
+
extension?: string;
|
|
1011
|
+
form_api_base_url?: string;
|
|
1012
|
+
id_token?: string;
|
|
1013
|
+
instanceEndpoint?: string;
|
|
1014
|
+
instanceName?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* Whether to return the redirect url without shortening
|
|
1017
|
+
*/
|
|
1018
|
+
long_redirect_url?: boolean;
|
|
1019
|
+
proxy_password?: string;
|
|
1020
|
+
proxy_username?: string;
|
|
1021
|
+
refresh_token?: string | null;
|
|
1022
|
+
region?: string;
|
|
1023
|
+
scope?: string | Array<string> | null;
|
|
1024
|
+
server_location?: string;
|
|
1025
|
+
shop?: string;
|
|
1026
|
+
site_name?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* The oauth2 state prefix for the connection
|
|
1029
|
+
*/
|
|
1030
|
+
state_prefix?: string;
|
|
1031
|
+
subdomain?: string;
|
|
1032
|
+
token_type?: string;
|
|
1033
|
+
version?: string;
|
|
1034
|
+
your_server?: string;
|
|
1035
|
+
'your-domain'?: string;
|
|
1036
|
+
[k: string]: unknown;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
interface UnionMember2 {
|
|
1040
|
+
authScheme: 'API_KEY';
|
|
1041
|
+
toolkitSlug: string;
|
|
1042
|
+
val: UnionMember2.Val;
|
|
1043
|
+
}
|
|
1044
|
+
namespace UnionMember2 {
|
|
1045
|
+
interface Val {
|
|
1046
|
+
account_id?: string;
|
|
1047
|
+
account_url?: string;
|
|
1048
|
+
api_key?: string;
|
|
1049
|
+
api_url?: string;
|
|
1050
|
+
base_url?: string;
|
|
1051
|
+
basic_encoded?: string;
|
|
1052
|
+
bearer_token?: string;
|
|
1053
|
+
borneo_dashboard_url?: string;
|
|
1054
|
+
COMPANYDOMAIN?: string;
|
|
1055
|
+
dc?: string;
|
|
1056
|
+
domain?: string;
|
|
1057
|
+
extension?: string;
|
|
1058
|
+
form_api_base_url?: string;
|
|
1059
|
+
generic_api_key?: string;
|
|
1060
|
+
instanceEndpoint?: string;
|
|
1061
|
+
instanceName?: string;
|
|
1062
|
+
proxy_password?: string;
|
|
1063
|
+
proxy_username?: string;
|
|
1064
|
+
region?: string;
|
|
1065
|
+
server_location?: string;
|
|
1066
|
+
shop?: string;
|
|
1067
|
+
site_name?: string;
|
|
1068
|
+
subdomain?: string;
|
|
1069
|
+
version?: string;
|
|
1070
|
+
your_server?: string;
|
|
1071
|
+
'your-domain'?: string;
|
|
1072
|
+
[k: string]: unknown;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
interface UnionMember3 {
|
|
1076
|
+
authScheme: 'BASIC_WITH_JWT';
|
|
1077
|
+
toolkitSlug: string;
|
|
1078
|
+
val: UnionMember3.Val;
|
|
1079
|
+
}
|
|
1080
|
+
namespace UnionMember3 {
|
|
1081
|
+
interface Val {
|
|
1082
|
+
password: string;
|
|
1083
|
+
username: string;
|
|
1084
|
+
account_id?: string;
|
|
1085
|
+
account_url?: string;
|
|
1086
|
+
api_url?: string;
|
|
1087
|
+
base_url?: string;
|
|
1088
|
+
borneo_dashboard_url?: string;
|
|
1089
|
+
COMPANYDOMAIN?: string;
|
|
1090
|
+
dc?: string;
|
|
1091
|
+
domain?: string;
|
|
1092
|
+
extension?: string;
|
|
1093
|
+
form_api_base_url?: string;
|
|
1094
|
+
instanceEndpoint?: string;
|
|
1095
|
+
instanceName?: string;
|
|
1096
|
+
proxy_password?: string;
|
|
1097
|
+
proxy_username?: string;
|
|
1098
|
+
region?: string;
|
|
1099
|
+
server_location?: string;
|
|
1100
|
+
shop?: string;
|
|
1101
|
+
site_name?: string;
|
|
1102
|
+
subdomain?: string;
|
|
1103
|
+
version?: string;
|
|
1104
|
+
your_server?: string;
|
|
1105
|
+
'your-domain'?: string;
|
|
1106
|
+
[k: string]: unknown;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
interface UnionMember4 {
|
|
1110
|
+
authScheme: 'BASIC';
|
|
1111
|
+
toolkitSlug: string;
|
|
1112
|
+
val: UnionMember4.Val;
|
|
1113
|
+
}
|
|
1114
|
+
namespace UnionMember4 {
|
|
1115
|
+
interface Val {
|
|
1116
|
+
username: string;
|
|
1117
|
+
account_id?: string;
|
|
1118
|
+
account_url?: string;
|
|
1119
|
+
api_url?: string;
|
|
1120
|
+
base_url?: string;
|
|
1121
|
+
borneo_dashboard_url?: string;
|
|
1122
|
+
COMPANYDOMAIN?: string;
|
|
1123
|
+
dc?: string;
|
|
1124
|
+
domain?: string;
|
|
1125
|
+
extension?: string;
|
|
1126
|
+
form_api_base_url?: string;
|
|
1127
|
+
instanceEndpoint?: string;
|
|
1128
|
+
instanceName?: string;
|
|
1129
|
+
password?: string;
|
|
1130
|
+
proxy_password?: string;
|
|
1131
|
+
proxy_username?: string;
|
|
1132
|
+
region?: string;
|
|
1133
|
+
server_location?: string;
|
|
1134
|
+
shop?: string;
|
|
1135
|
+
site_name?: string;
|
|
1136
|
+
subdomain?: string;
|
|
1137
|
+
version?: string;
|
|
1138
|
+
your_server?: string;
|
|
1139
|
+
'your-domain'?: string;
|
|
1140
|
+
[k: string]: unknown;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
interface UnionMember5 {
|
|
1144
|
+
authScheme: 'BEARER_TOKEN';
|
|
1145
|
+
toolkitSlug: string;
|
|
1146
|
+
val: UnionMember5.Val;
|
|
1147
|
+
}
|
|
1148
|
+
namespace UnionMember5 {
|
|
1149
|
+
interface Val {
|
|
1150
|
+
token: string;
|
|
1151
|
+
account_id?: string;
|
|
1152
|
+
account_url?: string;
|
|
1153
|
+
api_url?: string;
|
|
1154
|
+
base_url?: string;
|
|
1155
|
+
borneo_dashboard_url?: string;
|
|
1156
|
+
COMPANYDOMAIN?: string;
|
|
1157
|
+
dc?: string;
|
|
1158
|
+
domain?: string;
|
|
1159
|
+
extension?: string;
|
|
1160
|
+
form_api_base_url?: string;
|
|
1161
|
+
instanceEndpoint?: string;
|
|
1162
|
+
instanceName?: string;
|
|
1163
|
+
proxy_password?: string;
|
|
1164
|
+
proxy_username?: string;
|
|
1165
|
+
region?: string;
|
|
1166
|
+
server_location?: string;
|
|
1167
|
+
shop?: string;
|
|
1168
|
+
site_name?: string;
|
|
1169
|
+
subdomain?: string;
|
|
1170
|
+
version?: string;
|
|
1171
|
+
your_server?: string;
|
|
1172
|
+
'your-domain'?: string;
|
|
1173
|
+
[k: string]: unknown;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
interface UnionMember6 {
|
|
1177
|
+
authScheme: 'OAUTH1';
|
|
1178
|
+
toolkitSlug: string;
|
|
1179
|
+
val: UnionMember6.Val;
|
|
1180
|
+
}
|
|
1181
|
+
namespace UnionMember6 {
|
|
1182
|
+
interface Val {
|
|
1183
|
+
oauth_token: string;
|
|
1184
|
+
oauth_token_secret: string;
|
|
1185
|
+
account_id?: string;
|
|
1186
|
+
account_url?: string;
|
|
1187
|
+
api_url?: string;
|
|
1188
|
+
base_url?: string;
|
|
1189
|
+
borneo_dashboard_url?: string;
|
|
1190
|
+
callback_url?: string;
|
|
1191
|
+
COMPANYDOMAIN?: string;
|
|
1192
|
+
consumer_key?: string;
|
|
1193
|
+
dc?: string;
|
|
1194
|
+
domain?: string;
|
|
1195
|
+
extension?: string;
|
|
1196
|
+
form_api_base_url?: string;
|
|
1197
|
+
instanceEndpoint?: string;
|
|
1198
|
+
instanceName?: string;
|
|
1199
|
+
oauth_verifier?: string;
|
|
1200
|
+
proxy_password?: string;
|
|
1201
|
+
proxy_username?: string;
|
|
1202
|
+
redirectUrl?: string;
|
|
1203
|
+
region?: string;
|
|
1204
|
+
server_location?: string;
|
|
1205
|
+
shop?: string;
|
|
1206
|
+
site_name?: string;
|
|
1207
|
+
subdomain?: string;
|
|
1208
|
+
version?: string;
|
|
1209
|
+
your_server?: string;
|
|
1210
|
+
'your-domain'?: string;
|
|
1211
|
+
[k: string]: unknown;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
interface UnionMember7 {
|
|
1215
|
+
authScheme: 'NO_AUTH';
|
|
1216
|
+
toolkitSlug: string;
|
|
1217
|
+
val: UnionMember7.Val;
|
|
1218
|
+
}
|
|
1219
|
+
namespace UnionMember7 {
|
|
1220
|
+
interface Val {
|
|
1221
|
+
account_id?: string;
|
|
1222
|
+
account_url?: string;
|
|
1223
|
+
api_url?: string;
|
|
1224
|
+
base_url?: string;
|
|
1225
|
+
borneo_dashboard_url?: string;
|
|
1226
|
+
COMPANYDOMAIN?: string;
|
|
1227
|
+
dc?: string;
|
|
1228
|
+
domain?: string;
|
|
1229
|
+
extension?: string;
|
|
1230
|
+
form_api_base_url?: string;
|
|
1231
|
+
instanceEndpoint?: string;
|
|
1232
|
+
instanceName?: string;
|
|
1233
|
+
proxy_password?: string;
|
|
1234
|
+
proxy_username?: string;
|
|
1235
|
+
region?: string;
|
|
1236
|
+
server_location?: string;
|
|
1237
|
+
shop?: string;
|
|
1238
|
+
site_name?: string;
|
|
1239
|
+
subdomain?: string;
|
|
1240
|
+
version?: string;
|
|
1241
|
+
your_server?: string;
|
|
1242
|
+
'your-domain'?: string;
|
|
1243
|
+
[k: string]: unknown;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
interface UnionMember8 {
|
|
1247
|
+
authScheme: 'SERVICE_ACCOUNT';
|
|
1248
|
+
toolkitSlug: string;
|
|
1249
|
+
val: UnionMember8.Val;
|
|
1250
|
+
}
|
|
1251
|
+
namespace UnionMember8 {
|
|
1252
|
+
interface Val {
|
|
1253
|
+
application_id: string;
|
|
1254
|
+
installation_id: string;
|
|
1255
|
+
private_key: string;
|
|
1256
|
+
account_id?: string;
|
|
1257
|
+
account_url?: string;
|
|
1258
|
+
api_url?: string;
|
|
1259
|
+
base_url?: string;
|
|
1260
|
+
borneo_dashboard_url?: string;
|
|
1261
|
+
COMPANYDOMAIN?: string;
|
|
1262
|
+
dc?: string;
|
|
1263
|
+
domain?: string;
|
|
1264
|
+
extension?: string;
|
|
1265
|
+
form_api_base_url?: string;
|
|
1266
|
+
instanceEndpoint?: string;
|
|
1267
|
+
instanceName?: string;
|
|
1268
|
+
proxy_password?: string;
|
|
1269
|
+
proxy_username?: string;
|
|
1270
|
+
region?: string;
|
|
1271
|
+
server_location?: string;
|
|
1272
|
+
shop?: string;
|
|
1273
|
+
site_name?: string;
|
|
1274
|
+
subdomain?: string;
|
|
1275
|
+
version?: string;
|
|
1276
|
+
your_server?: string;
|
|
1277
|
+
'your-domain'?: string;
|
|
1278
|
+
[k: string]: unknown;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
interface UnionMember9 {
|
|
1282
|
+
authScheme: 'GOOGLE_SERVICE_ACCOUNT';
|
|
1283
|
+
toolkitSlug: string;
|
|
1284
|
+
val: UnionMember9.Val;
|
|
1285
|
+
}
|
|
1286
|
+
namespace UnionMember9 {
|
|
1287
|
+
interface Val {
|
|
1288
|
+
credentials_json: string;
|
|
1289
|
+
account_id?: string;
|
|
1290
|
+
account_url?: string;
|
|
1291
|
+
api_url?: string;
|
|
1292
|
+
base_url?: string;
|
|
1293
|
+
borneo_dashboard_url?: string;
|
|
1294
|
+
COMPANYDOMAIN?: string;
|
|
1295
|
+
dc?: string;
|
|
1296
|
+
domain?: string;
|
|
1297
|
+
extension?: string;
|
|
1298
|
+
form_api_base_url?: string;
|
|
1299
|
+
instanceEndpoint?: string;
|
|
1300
|
+
instanceName?: string;
|
|
1301
|
+
proxy_password?: string;
|
|
1302
|
+
proxy_username?: string;
|
|
1303
|
+
region?: string;
|
|
1304
|
+
server_location?: string;
|
|
1305
|
+
shop?: string;
|
|
1306
|
+
site_name?: string;
|
|
1307
|
+
subdomain?: string;
|
|
1308
|
+
version?: string;
|
|
1309
|
+
your_server?: string;
|
|
1310
|
+
'your-domain'?: string;
|
|
1311
|
+
[k: string]: unknown;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
155
1314
|
interface Parameter {
|
|
1315
|
+
/**
|
|
1316
|
+
* Parameter name
|
|
1317
|
+
*/
|
|
156
1318
|
name: string;
|
|
1319
|
+
/**
|
|
1320
|
+
* Parameter type (header or query)
|
|
1321
|
+
*/
|
|
157
1322
|
type: 'header' | 'query';
|
|
1323
|
+
/**
|
|
1324
|
+
* Parameter value
|
|
1325
|
+
*/
|
|
158
1326
|
value: string;
|
|
159
1327
|
}
|
|
160
1328
|
}
|
|
161
1329
|
export declare namespace Tools {
|
|
162
|
-
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolExecuteResponse as ToolExecuteResponse, type ToolGetInputResponse as ToolGetInputResponse, type ToolProxyResponse as ToolProxyResponse, type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse, type ToolListParams as ToolListParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetInputParams as ToolGetInputParams, type ToolProxyParams as ToolProxyParams, };
|
|
1330
|
+
export { type ToolRetrieveResponse as ToolRetrieveResponse, type ToolListResponse as ToolListResponse, type ToolExecuteResponse as ToolExecuteResponse, type ToolGetInputResponse as ToolGetInputResponse, type ToolProxyResponse as ToolProxyResponse, type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse, type ToolRetrieveParams as ToolRetrieveParams, type ToolListParams as ToolListParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetInputParams as ToolGetInputParams, type ToolProxyParams as ToolProxyParams, };
|
|
163
1331
|
}
|
|
164
1332
|
//# sourceMappingURL=tools.d.mts.map
|