veryfront/integrations

Import

TypeScript
import {  createIntegrationClient,  createIntegrationErrorContext,  createLocalIntegrationToolSource,  createOutlookServiceAccountToolSource,  createSalesforceServiceAccountToolSource,  getConnector,} from "veryfront/integrations";

Examples

TypeScript
import {  createSalesforceServiceAccountToolSource,  getConnector,  getIcon,  getRemoteIntegrationToolDefinitions,  getRemoteIntegrationToolDiscovery,  listConnectors,} from "veryfront/integrations"; const connectors = listConnectors();const slack = getConnector("slack");const slackIcon = getIcon("slack"); // raw SVG stringconst discovery = await getRemoteIntegrationToolDiscovery();const runtimeTools = await getRemoteIntegrationToolDefinitions();

Exports

Components

NameDescriptionSource
EnvVarSchemaZod schema for env var.source
IntegrationConfigSchemaZod schema for integration config.source
IntegrationEndpointHistoricalSummarySchemasource
IntegrationNameSchemaZod schema for integration name.source
IntegrationPromptSchemaZod schema for integration prompt.source
IntegrationToolSchemaZod schema for integration tool.source
MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTHRuntime tool names use the same ceiling as the agent invocation contract.source
OAuthConfigSchemaZod schema for oauth config.source
OAuthFieldSchemaZod schema for oauth field.source
OUTLOOK_SERVICE_ACCOUNT_ENV_VARSProject environment variables required by the local Outlook service-account source.source
SALESFORCE_SERVICE_ACCOUNT_ENV_VARSProject environment variables required by the local Salesforce service-account source.source

Functions

NameDescriptionSource
createIntegrationClientBind explicit API credentials and an authorized project for catalog, status and tool calls. Requires the API expected-project precondition and effective-project response header contract. This client does not infer consent completion or executable readiness from connected status.source
createIntegrationErrorContextsource
createLocalIntegrationToolSourceCreate an explicitly granted, catalog-backed local integration tool source.source
createOutlookServiceAccountToolSourceCreate a local Outlook source that uses Microsoft Entra app-only (client-credentials) access for one configured mailbox.source
createSalesforceServiceAccountToolSourceCreate a local Salesforce service-account tool source.source
executeRemoteIntegrationToolDeprecated alias of runRemoteIntegrationTool.source
getConnectorReturn connector.source
getConnectorNamesReturn connector names.source
getIconReturn icon.source
getRemoteIntegrationToolDefinitionsFetch integration tool definitions for the current request context.source
getRemoteIntegrationToolDiscoveryDiscover integration tools for the current request context.source
isIntegrationErrorContextRecognizes only an own data discriminator; validation still occurs before serialization.source
isRemoteIntegrationToolCheck if a tool name looks like a remote integration tool. Integration tools use "integration__tool_id" format (double underscore separator).source
listConnectorsList connectors.source
parseIntegrationToolIdentityParse the canonical API tool name (integration__tool_id). Aliases and alternate separators are intentionally not accepted at this policy layer.source
readIntegrationErrorContextCopy only validated safe facts. Accessors, prototypes, extensions and native payloads are excluded.source
readIntegrationThrowableContextRead only an own data context from the original throwable; generic boundaries discard it.source
runRemoteIntegrationToolRun a remote integration tool via the API. Called by the agent runtime when a tool isn't found in the local registry. The request, response, and caller-supplied cancellation signal remain bounded for the complete network and response-body lifecycle.source

Classes

NameDescriptionSource
IntegrationApiErrorA bounded API failure. Call failures never authorize automatic replay.source

Types

NameDescriptionSource
ConnectionDeletionA deleted connection. providerRevoked is false when the provider did not confirm revocation.source
ConnectionRequestOptionsOptions for getConnectionStatus and deleteConnection.source
ConnectionStatusWhether an integration is connected for one owner. Not connected is a result, not an error.source
ConnectSessionOne-time link that starts provider consent. connectUrl and sessionToken are accessible but excluded from default serialization.source
CreateConnectSessionOptionsOptions for createConnectSession.source
EnvVarConfigConfiguration used by env var.source
IntegrationCallOptionsSelection metadata for a tool call, separate from native provider arguments. The API must advertise generation-precondition support. Unsupported deployments throw IntegrationApiError with kind unsupported_precondition and outcomeUnknown: false before dispatch. Missing confirmation after a successful call response reports the same kind with outcomeUnknown: true. Calls never authorize automatic replay. Omitting the generation retains existing call behavior.source
IntegrationCallOutcomeThe native envelope is retained for both successful execution and tool failure.source
IntegrationCatalogEntryIntegration catalog summary; additional native metadata is retained.source
IntegrationClientProject-bound primitives. Iterators use a bounded deadline and fail rather than silently truncate.source
IntegrationClientConnectionA visible connection row, not an assertion of provider permission or tool readiness.source
IntegrationClientContextExplicit caller-owned context. Credentials are never inferred from runtime globals.source
IntegrationClientToolAuthored tool schema and native discovery metadata.source
IntegrationConfigConfiguration used by integration.source
IntegrationConnectionStatusThe legacy OAuth status shape, with the requested scope recorded by the client.source
IntegrationConnectionWaitOptionsBounded wait for consent completion. Read status() before starting consent and pass it as before, so the unchanged prior connection is never mistaken for the new one. The baseline must include the same scope, as recorded by status().source
IntegrationConnectionWaitOutcomeconnection_observed requires a connected status whose connection id and generation differ from before and match a connected row of the requested scope. It confirms the stored connection, not provider permission or tool readiness.source
IntegrationConnectOptionsConnect options. Scope defaults to personal user ownership, never silently project scope.source
IntegrationConnectorPublic API contract for integration connector.source
IntegrationConnectOutcomeCatalog setup facts do not establish effective project credentials or tool readiness.source
IntegrationDetailsConnector setup requirements and native catalog details.source
IntegrationEndpointHistoricalSummaryProvider-declared summary contract for old tool outputs kept actionable across turns.source
IntegrationFailureConditionSafe condition metadata supplied by the integration API.source
IntegrationHttpProblemValidated HTTP Problem identity without an assertion about server retryability.source
IntegrationJsonObjectData-only JSON retained without renaming provider fields. Response byte limits follow the endpoint transport budget; authored arguments retain stricter generic limits.source
IntegrationNamePublic API contract for integration name.source
IntegrationOAuthHandoffOne-time browser handoff. connect_url is accessible but excluded from default serialization.source
IntegrationPromptPublic API contract for integration prompt.source
IntegrationSelectedReadinessMetadata-only selected-tool evidence. Provider authorization is never implied.source
IntegrationSelectionOptionsSelect a saved connection and optionally pin its observed generation.source
IntegrationToolPublic API contract for integration tool.source
IntegrationToolMetaPublic API contract for integration tool meta.source
IntegrationToolResultNative tool envelope, including multimedia, resources and extension metadata.source
LocalIntegrationCredentialProviderResolve one local integration credential by its canonical environment-variable name.source
LocalIntegrationToolSourceOptionsOptions for a catalog-backed local integration tool source.source
OAuthConfigConfiguration used by oauth.source
OAuthFieldPublic API contract for oauth field.source
OutlookAttachmentContentRaw attachment content, ready for planFileParts or fileFromBytes.source
OutlookAttachmentContentArgsArguments for OutlookServiceAccountToolSource.readAttachment.source
OutlookServiceAccountToolSourceThe local Outlook service-account source, plus a raw attachment reader.source
OutlookServiceAccountToolSourceOptionsOptions for the local Outlook service-account source.source
RemoteIntegrationToolDiscoveryResultResult of listing the integration tools available to the current run.source
SalesforceServiceAccountToolSourceOptionsOptions for the local Salesforce service-account source.source

Deep imports

These import paths group focused functionality under this module. Each is a separate barrel; import only what you need.

veryfront/integrations/diagnostics

Synchronous safe-fact projection for integration operation failures. Readers exclude accessors, native payloads and unrecognized fields. Diagnostic metadata never authorizes automatic replay of an integration operation.

TypeScript
import {  createIntegrationErrorContext,  isIntegrationErrorContext,  readIntegrationErrorContext,} from "veryfront/integrations/diagnostics";

Functions

NameDescriptionSource
createIntegrationErrorContextsource
isIntegrationErrorContextRecognizes only an own data discriminator; validation still occurs before serialization.source
readIntegrationErrorContextCopy only validated safe facts. Accessors, prototypes, extensions and native payloads are excluded.source
readIntegrationThrowableContextRead only an own data context from the original throwable; generic boundaries discard it.source