Skip to main content

Import

import {
  clearConnectorCache,
  createIntegrationTools,
  executeEndpoint,
  fetchConnector,
  getConnector,
  getConnectorNames,
} from "veryfront/integrations";

Examples

import { listConnectors, getIcon } from "veryfront/integrations";

const connectors = listConnectors();
const slackIcon = getIcon("slack"); // raw SVG string

Exports

Components

NameDescription
EnvVarSchemaValidates environment variable configuration metadata
IntegrationConfigSchemaValidates complete integration connector configuration spec
IntegrationNameSchemaValidates integration name against allowed enum values
IntegrationPromptSchemaValidates predefined prompt configuration for integrations
IntegrationToolSchemaValidates tool definition from connector specification
OAuthConfigSchemaValidates OAuth/API key authentication configuration
OAuthFieldSchemaValidates OAuth form field configuration and mapping

Functions

NameDescription
clearConnectorCacheClear the connector cache (for testing).
createIntegrationToolsGenerate Tool instances from connector specifications
executeEndpointExecute REST or GraphQL endpoints with authentication
fetchConnectorFetch connector spec from API with LRU caching
getConnectorLook up connector config by name from registry
getConnectorNamesReturn readonly array of all connector names
getIconReturn SVG icon string for integration by name
listConnectorsReturn readonly array of all connectors
registerIntegrationMCPRegister integration tools into the MCP tool registry.

Types

NameDescription
EnvVarConfigEnvironment variable requirement with metadata
IntegrationConfigComplete connector spec: name, auth, tools, prompts
IntegrationConnectorRuntime connector with tools and endpoint definitions
IntegrationMCPConfigConfiguration for registering integrations into MCP
IntegrationNameUnion type of valid integration name literals
IntegrationPromptPredefined prompt template for integration use
IntegrationRuntimeConfigPer-user settings and tool allowlist for integration
IntegrationToolIntegration tool with endpoint execution spec
IntegrationToolMetaTool metadata: name, description, write requirements
OAuthConfigOAuth/API key authentication type and parameters
OAuthFieldForm field for OAuth configuration with mapping