UNPKG

@composio/core

Version:

![Composio Banner](https://github.com/user-attachments/assets/9ba0e9c1-85a4-4b51-ae60-f9fe7992e819)

27 lines (25 loc) 931 B
import { i as transformProperties } from "../../FileToolModifier.utils.neutral-BcIR-cVE.mjs"; //#region src/utils/modifiers/FileToolModifier.workerd.ts const UNSUPPORTED_MESSAGE = "File upload/download modifiers are not available on edge runtimes yet. Please set `autoUploadDownloadFiles: false` or run Composio in another JS runtime (Node.js / Bun)."; var FileToolModifier = class { constructor(_client) {} async modifyToolSchema(toolSlug, toolkitSlug, schema) { if (!schema.inputParameters?.properties) return schema; const properties = transformProperties(schema.inputParameters.properties); return { ...schema, inputParameters: { ...schema.inputParameters, properties } }; } async fileUploadModifier(_tool, _options) { throw new Error(UNSUPPORTED_MESSAGE); } async fileDownloadModifier(_tool, _options) { throw new Error(UNSUPPORTED_MESSAGE); } }; //#endregion export { FileToolModifier };