Import
TypeScript
1import {2 createIntegrationClient,3 createIntegrationErrorContext,4 createLocalIntegrationToolSource,5 createOutlookServiceAccountToolSource,6 createSalesforceServiceAccountToolSource,7 getConnector,8} from "veryfront/integrations";Examples
TypeScript
1import {2 createSalesforceServiceAccountToolSource,3 getConnector,4 getIcon,5 getRemoteIntegrationToolDefinitions,6 getRemoteIntegrationToolDiscovery,7 listConnectors,8} from "veryfront/integrations";9 10const connectors = listConnectors();11const slack = getConnector("slack");12const slackIcon = getIcon("slack"); // raw SVG string13const discovery = await getRemoteIntegrationToolDiscovery();14const runtimeTools = await getRemoteIntegrationToolDefinitions();Exports
Components
| Name | Description | Source |
|---|---|---|
EnvVarSchema | Zod schema for env var. | source |
IntegrationConfigSchema | Zod schema for integration config. | source |
IntegrationEndpointHistoricalSummarySchema | source | |
IntegrationNameSchema | Zod schema for integration name. | source |
IntegrationPromptSchema | Zod schema for integration prompt. | source |
IntegrationToolSchema | Zod schema for integration tool. | source |
MAX_REMOTE_INTEGRATION_TOOL_NAME_LENGTH | Runtime tool names use the same ceiling as the agent invocation contract. | source |
OAuthConfigSchema | Zod schema for oauth config. | source |
OAuthFieldSchema | Zod schema for oauth field. | source |
OUTLOOK_SERVICE_ACCOUNT_ENV_VARS | Project environment variables required by the local Outlook service-account source. | source |
SALESFORCE_SERVICE_ACCOUNT_ENV_VARS | Project environment variables required by the local Salesforce service-account source. | source |
Functions
| Name | Description | Source |
|---|---|---|
createIntegrationClient | Bind 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 |
createIntegrationErrorContext | source | |
createLocalIntegrationToolSource | Create an explicitly granted, catalog-backed local integration tool source. | source |
createOutlookServiceAccountToolSource | Create a local Outlook source that uses Microsoft Entra app-only (client-credentials) access for one configured mailbox. | source |
createSalesforceServiceAccountToolSource | Create a local Salesforce service-account tool source. | source |
executeRemoteIntegrationTool | Deprecated alias of runRemoteIntegrationTool. | source |
getConnector | Return connector. | source |
getConnectorNames | Return connector names. | source |
getIcon | Return icon. | source |
getRemoteIntegrationToolDefinitions | Fetch integration tool definitions for the current request context. | source |
getRemoteIntegrationToolDiscovery | Discover integration tools for the current request context. | source |
isIntegrationErrorContext | Recognizes only an own data discriminator; validation still occurs before serialization. | source |
isRemoteIntegrationTool | Check if a tool name looks like a remote integration tool. Integration tools use "integration__tool_id" format (double underscore separator). | source |
listConnectors | List connectors. | source |
parseIntegrationToolIdentity | Parse the canonical API tool name (integration__tool_id). Aliases and alternate separators are intentionally not accepted at this policy layer. | source |
readIntegrationErrorContext | Copy only validated safe facts. Accessors, prototypes, extensions and native payloads are excluded. | source |
readIntegrationThrowableContext | Read only an own data context from the original throwable; generic boundaries discard it. | source |
runRemoteIntegrationTool | Run 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
| Name | Description | Source |
|---|---|---|
IntegrationApiError | A bounded API failure. Call failures never authorize automatic replay. | source |
Types
| Name | Description | Source |
|---|---|---|
ConnectionDeletion | A deleted connection. providerRevoked is false when the provider did not confirm revocation. | source |
ConnectionRequestOptions | Options for getConnectionStatus and deleteConnection. | source |
ConnectionStatus | Whether an integration is connected for one owner. Not connected is a result, not an error. | source |
ConnectSession | One-time link that starts provider consent. connectUrl and sessionToken are accessible but excluded from default serialization. | source |
CreateConnectSessionOptions | Options for createConnectSession. | source |
EnvVarConfig | Configuration used by env var. | source |
IntegrationCallOptions | Selection 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 |
IntegrationCallOutcome | The native envelope is retained for both successful execution and tool failure. | source |
IntegrationCatalogEntry | Integration catalog summary; additional native metadata is retained. | source |
IntegrationClient | Project-bound primitives. Iterators use a bounded deadline and fail rather than silently truncate. | source |
IntegrationClientConnection | A visible connection row, not an assertion of provider permission or tool readiness. | source |
IntegrationClientContext | Explicit caller-owned context. Credentials are never inferred from runtime globals. | source |
IntegrationClientTool | Authored tool schema and native discovery metadata. | source |
IntegrationConfig | Configuration used by integration. | source |
IntegrationConnectionStatus | The legacy OAuth status shape, with the requested scope recorded by the client. | source |
IntegrationConnectionWaitOptions | Bounded 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 |
IntegrationConnectionWaitOutcome | connection_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 |
IntegrationConnectOptions | Connect options. Scope defaults to personal user ownership, never silently project scope. | source |
IntegrationConnector | Public API contract for integration connector. | source |
IntegrationConnectOutcome | Catalog setup facts do not establish effective project credentials or tool readiness. | source |
IntegrationDetails | Connector setup requirements and native catalog details. | source |
IntegrationEndpointHistoricalSummary | Provider-declared summary contract for old tool outputs kept actionable across turns. | source |
IntegrationFailureCondition | Safe condition metadata supplied by the integration API. | source |
IntegrationHttpProblem | Validated HTTP Problem identity without an assertion about server retryability. | source |
IntegrationJsonObject | Data-only JSON retained without renaming provider fields. Response byte limits follow the endpoint transport budget; authored arguments retain stricter generic limits. | source |
IntegrationName | Public API contract for integration name. | source |
IntegrationOAuthHandoff | One-time browser handoff. connect_url is accessible but excluded from default serialization. | source |
IntegrationPrompt | Public API contract for integration prompt. | source |
IntegrationSelectedReadiness | Metadata-only selected-tool evidence. Provider authorization is never implied. | source |
IntegrationSelectionOptions | Select a saved connection and optionally pin its observed generation. | source |
IntegrationTool | Public API contract for integration tool. | source |
IntegrationToolMeta | Public API contract for integration tool meta. | source |
IntegrationToolResult | Native tool envelope, including multimedia, resources and extension metadata. | source |
LocalIntegrationCredentialProvider | Resolve one local integration credential by its canonical environment-variable name. | source |
LocalIntegrationToolSourceOptions | Options for a catalog-backed local integration tool source. | source |
OAuthConfig | Configuration used by oauth. | source |
OAuthField | Public API contract for oauth field. | source |
OutlookAttachmentContent | Raw attachment content, ready for planFileParts or fileFromBytes. | source |
OutlookAttachmentContentArgs | Arguments for OutlookServiceAccountToolSource.readAttachment. | source |
OutlookServiceAccountToolSource | The local Outlook service-account source, plus a raw attachment reader. | source |
OutlookServiceAccountToolSourceOptions | Options for the local Outlook service-account source. | source |
RemoteIntegrationToolDiscoveryResult | Result of listing the integration tools available to the current run. | source |
SalesforceServiceAccountToolSourceOptions | Options 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
1import {2 createIntegrationErrorContext,3 isIntegrationErrorContext,4 readIntegrationErrorContext,5} from "veryfront/integrations/diagnostics";Functions
| Name | Description | Source |
|---|---|---|
createIntegrationErrorContext | source | |
isIntegrationErrorContext | Recognizes only an own data discriminator; validation still occurs before serialization. | source |
readIntegrationErrorContext | Copy only validated safe facts. Accessors, prototypes, extensions and native payloads are excluded. | source |
readIntegrationThrowableContext | Read only an own data context from the original throwable; generic boundaries discard it. | source |