Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | // Core exports |
| 2 | export { Composio } from './composio'; |
| 3 | export { OpenAIProvider } from './provider/OpenAIProvider'; |
| 4 | export { ComposioProvider } from './provider/ComposioProvider'; |
| 5 | export { BaseNonAgenticProvider, BaseAgenticProvider } from './provider/BaseProvider'; |
| 6 | export type { BaseComposioProvider } from './provider/BaseProvider'; |
| 7 | export { |
| 8 | dereferenceJsonSchema, |
| 9 | deduplicateJsonSchemaRequiredArrays, |
| 10 | ensureObjectTypeOnProperties, |
| 11 | jsonSchemaToZodSchema, |
| 12 | omitNullToolArguments, |
| 13 | removeNonRequiredProperties, |
| 14 | toStrictJsonSchema, |
| 15 | } from './utils/jsonSchema'; |
| 16 | export type { |
| 17 | DereferenceJsonSchemaOptions, |
| 18 | UnresolvedRefReason, |
| 19 | UnresolvedRefStrategy, |
| 20 | StrictSchemaChange, |
| 21 | StrictSchemaChangeReason, |
| 22 | StrictSchemaIncompatibility, |
| 23 | StrictJsonSchemaResult, |
| 24 | } from './utils/jsonSchema'; |
| 25 | export { getExtensionFromMimeType } from './utils/mime'; |
| 26 | export { normalizeToolArguments } from './utils/toolArguments'; |
| 27 | // Sensitive-file-upload denylist guard. This is the single canonical |
| 28 | // implementation; downstream packages (e.g. `@composio/cli`) import it here so |
| 29 | // every local-file upload path enforces the same denylist. Safe in the edge |
| 30 | // bundle: the module routes filesystem access through `#platform`. |
| 31 | export { |
| 32 | assertSafeFileUploadPath, |
| 33 | isBlockedSensitiveFileUploadPath, |
| 34 | BUILTIN_FILE_UPLOAD_PATH_DENY_SEGMENTS, |
| 35 | } from './utils/sensitiveFileUploadPaths'; |
| 36 | // Bounded response reader for files fetched from user-supplied URLs. Exported |
| 37 | // for the same reason as the denylist guard above: downstream packages read |
| 38 | // remote files too, and every such read must enforce the same size cap. |
| 39 | export { readResponseBodyWithLimit, MAX_URL_UPLOAD_SIZE_BYTES } from './utils/readResponseBody'; |
| 40 | export { |
| 41 | sanitizeSchemaPropertyKeys, |
| 42 | restoreOriginalKeys, |
| 43 | mappingHasRenames, |
| 44 | } from './utils/schemaPropertyKeys'; |
| 45 | export type { KeyMapping, KeySanitizationPolicy } from './utils/schemaPropertyKeys'; |
| 46 | export { AuthScheme } from './models/AuthScheme'; |
| 47 | export { MCP } from './models/MCP'; |
| 48 | export { Webhooks, WebhookSubscriptions, WebhookEndpoints } from './models/Webhooks'; |
| 49 | export { Logs } from './models/Logs'; |
| 50 | export { Usage } from './models/Usage'; |
| 51 | export { Keyring } from './models/Keyring'; |
| 52 | export { CustomToolkits } from './models/CustomToolkits'; |
| 53 | export { RemoteFile } from './models/RemoteFile'; |
| 54 | export { createConnectionRequest } from './models/ConnectionRequest'; |
| 55 | export { ToolRouterSession } from './models/ToolRouterSession'; |
| 56 | export { Sessions } from './models/Sessions'; |
| 57 | export { SessionConfigs } from './models/SessionConfigs'; |
| 58 | export * from './types/provider.types'; |
| 59 | export * from './types/customTool.types'; |
| 60 | export * from './types/tool.types'; |
| 61 | export * from './types/authConfigs.types'; |
| 62 | export * from './types/modifiers.types'; |
| 63 | export * from './types/connectedAccountAuthStates.types'; |
| 64 | export * from './types/connectedAccounts.types'; |
| 65 | export * from './types/toolkit.types'; |
| 66 | export * from './types/triggers.types'; |
| 67 | export * from './types/webhookEvents.types'; |
| 68 | export * from './types/webhooks.types'; |
| 69 | export * from './types/logs.types'; |
| 70 | export * from './types/usage.types'; |
| 71 | export * from './types/keyring.types'; |
| 72 | export * from './types/customToolkits.types'; |
| 73 | export * from './types/mcp.types'; |
| 74 | export * from './types/files.types'; |
| 75 | export * from './types/connectionRequest.types'; |
| 76 | export * from './types/toolRouter.types'; |
| 77 | export * from './types/sessionConfigs.types'; |
| 78 | export * from './types/ToolRouterSessionFilesMount.types'; |
| 79 | export * from './types/requestOptions.types'; |
| 80 | export * as constants from './utils/constants'; |
| 81 | |
| 82 | export { default as logger } from './utils/logger'; |
| 83 | export type { ComposioLogger, LogLevel } from './utils/logger'; |
| 84 | export { telemetry } from './telemetry/Telemetry'; |
| 85 | |
| 86 | // Experimental custom tools — exported with experimental_ prefix for top-level import |
| 87 | export { createCustomTool as experimental_createTool } from './models/CustomTool'; |
| 88 | export { createCustomToolkit as experimental_createToolkit } from './models/CustomTool'; |
| 89 | |
| 90 | // Experimental shared connected accounts — shape may change in future releases. |
| 91 | // Prefer `composio.connectedAccounts.updateAcl(...)`; the experimental |
| 92 | // namespace keeps `composio.experimental.updateAcl(...)` as an alias while |
| 93 | // the API is experimental. The `Experimental` class itself is re-exported |
| 94 | // so callers can type their own composio handles (e.g. in test helpers). |
| 95 | export { Experimental } from './models/Experimental'; |
| 96 | |
| 97 | // Error handling exports |
| 98 | export * from './errors'; |