@mastra/core
Version:
20 lines • 1.43 kB
TypeScript
import type { WorkflowRegistryIndex, WorkflowValidationInput, WorkflowValidationIssue } from './types.js';
export type { ValidatableStepFlowEntry, WorkflowRegistryIndex, WorkflowRegistrySchemas, WorkflowValidationInput, WorkflowValidationIssue, WorkflowValidationIssueCode, WorkflowValidationRepairAction, WorkflowValidationRepairSource, } from './types.js';
export { validateWorkflowStructure } from './structure.js';
export { validateWorkflowRefs } from './refs.js';
export { validateWorkflowSchemas } from './schemas.js';
export { inferGraphSchemas } from './schema-flow.js';
export type { GraphSchemaInference } from './schema-flow.js';
export { schemaCompatibility, toJsonSchemaOrUndefined } from './schema-utils.js';
export type { SchemaCompatibility } from './schema-utils.js';
/**
* Runs every check and returns the collected issues (empty = valid).
*
* The registry index gates context-dependent checks: reference checks only
* run for kinds present in the index, and schema-flow compatibility only
* proves mismatches where schemas are known.
*/
export declare function validateStoredWorkflow(def: WorkflowValidationInput, index?: WorkflowRegistryIndex): WorkflowValidationIssue[];
/** Throwing presentation of {@link validateStoredWorkflow} for the save path. */
export declare function assertValidStoredWorkflow(def: WorkflowValidationInput, index?: WorkflowRegistryIndex): void;
//# sourceMappingURL=index.d.ts.map