build
Return the SWML document as a plain object. Python-compat alias for
getDocument(); the two are functionally identical. Use
build() when porting from the Python SDK. For a JSON string, use
render() or renderDocument().
Returns
Record<string, unknown> — the SWML document with version and sections
keys.