So, there are actions for creating a sharing link for a file in OneDrive or SharePoint which allows you to set it as a view or edit link, but seems pretty limited otherwise. What I really need to do is programmatically generate an edit link that opens the file in review mode (as it would using this toggle in the Share dialog):

I was hoping that using that switch just threw a parameter on the end of the URL created, but it does not. Does anyone know of a way to do this?