addOutline

declare function addOutline(outlineSchema: IOutlineSchema): string;

Adds an outline schema to the swarm system by registering it with the outline validation and schema services. Ensures the operation runs in a clean context using beginContext to avoid interference from existing method or execution contexts. Logs the operation if logging is enabled in the global configuration.

Parameter Description
outlineSchema The outline schema to register, containing the outline name and configuration.