pub async fn MountainAddDocumentForSync(
app_handle: AppHandle,
document_data: Value,
) -> Result<Value, String>Expand description
Add document for sync.
Registers a document for synchronization with remote collaborators.
§Arguments
app_handle- Tauri application handledocument_data- JSON object with document_id and file_path fields
§Returns
Returns success JSON or an error string.
§Errors
Returns an error if:
- Required fields missing
- Document registration fails