Top-level epic task.
StructuredDiscussions folks: note that since you don't use the RESTBase API and talk to Parsoid directly right now, you will need to update your code and config to use the new Parsoid-PHP endpoints. I'll create a phab task for you. But this is FYI. You might also be interested in following T221738: Parsoid REST API routes in MediaWiki more specifically.