pub async fn doc_id(state: AppState, ref_id: Uuid) -> Result<String, AppError>
Gets an Automerge document ID for the document ref.