Fetch a node's build-status record.
fn get_node(
env: soroban_sdk::Env,
doc_id: soroban_sdk::String,
node_id: soroban_sdk::String,
) -> Result
Fetch a document's anchored state.
fn get_document(
env: soroban_sdk::Env,
doc_id: soroban_sdk::String,
) -> Result
Record or update the build status of a mindmap node.
tool is the builder used (e.g. "n8n"); artifact_ref points to the
built artifact (workflow ID, URL, or hash). Owner-only.
fn set_node_status(
env: soroban_sdk::Env,
doc_id: soroban_sdk::String,
node_id: soroban_sdk::String,
status: NodeStatus,
tool: soroban_sdk::String,
artifact_ref: soroban_sdk::String,
) -> Result<(), soroban_sdk::Error>
Anchor a new content hash after a semantic change in the source doc. Only the document owner may call. Returns the new version number.
fn update_document(
env: soroban_sdk::Env,
doc_id: soroban_sdk::String,
new_hash: soroban_sdk::BytesN<32>,
) -> Result
Anchor a new document. Fails if doc_id is already registered.
Returns the initial version (always 1).
fn register_document(
env: soroban_sdk::Env,
owner: soroban_sdk::Address,
doc_id: soroban_sdk::String,
content_hash: soroban_sdk::BytesN<32>,
) -> Result