n8n/packages/@n8n/engine/src/index.ts

115 lines
2.5 KiB
TypeScript

export { createEngineRuntime } from './runtime';
export type { EngineRuntime, EngineRuntimeOptions } from './runtime';
export type { EngineLogger } from './logging';
export {
ACTION_TOKEN,
IDENTITY_TOKEN,
InvalidActionTokenError,
InvalidIdentityTokenError,
mintActionToken,
mintIdentityToken,
SharedSecretIdentityVerifier,
verifyActionToken,
} from './auth';
export type { AuthenticatedCaller, ActionScope, IdentityVerifier } from './auth';
export type { EngineErrorResponse, ExecutionSnapshot, StepDetail } from './server';
export type {
SearchExecutionsRequest,
SearchExecutionsResponse,
ExecutionListItem,
} from './server';
// The publisher stays internal: no host constructs or swaps one.
export {
MAX_LIFECYCLE_EVENTS_PER_BATCH,
lifecycleEventBatchSchema,
lifecycleEventSchema,
} from './lifecycle-events';
export type {
LifecycleEventCallback,
LifecycleEvent,
LifecycleEventBatch,
} from './lifecycle-events';
export {
ExecutionResponseChannel,
executionResponseSchema,
InMemoryResponseTransport,
noopResponseTransport,
} from './response-channel';
export type {
EndedMessage,
ExecutionResponse,
ResponseTransport,
Unsubscribe,
} from './response-channel';
export { UnimplementedError } from './common';
export type { JsonObject, JsonValue } from './common';
export { deriveLoops, isBatchStepConfig } from './graph';
export type {
BatchStepConfig,
GraphEdge,
GraphNode,
StepConfig,
StepType,
WorkflowGraph,
WorkflowLoop,
} from './graph';
export type {
ExternalDependencies,
IStepExecutor,
StepExecutionContext,
StepExecutionRequest,
StepExecutionResult,
} from './dependencies';
export { AllowAllAdmittance, AdmittanceRejectedError } from './admittance';
export type {
AdmittanceDecision,
AdmittanceRequest,
AdmittanceService,
} from './admittance';
export type {
ExecutionEnqueuedEvent,
OrchestrationMessage,
StepSettledEvent,
StepMessage,
StepReadyEvent,
WorkQueue,
} from './queue';
export { ExecutionNotFoundError, StepNotFoundError } from './execution';
export type {
CallerContext,
ExecutionMode,
ExecutionViewStore,
ExecutionRecord,
ExecutionStatus,
ExecutionStore,
ExecutionView,
NewExecutionRecord,
NewStepRecord,
StartExecutionRequest,
StartExecutionResult,
StepError,
StepKey,
StepKeyId,
StepRecord,
StepSlots,
StepStatus,
StepStore,
StepView,
TriggerOutputs,
WorkflowDocument,
} from './execution';
export { createDataSource, WorkflowExecution, WorkflowStepExecution } from './database';
export type { EngineStores } from './database';