Can we get the list of all steps of a given process definition through the REST API?

Hello
Is there a way to get, using the REST API, all the steps of the process definition, no matter if they have been reached yet in a given process?
I know that you can request the XML file itself, however I am specifically asking if steps information is already available parsed in some way?

Thanks in advance

This feature is not yet ready. You need to parse the entire bpmn to fetch the activity names from process definition.

What if I want to extract the names of the tasks (and their x coordinate), inside a script Task during the execution of the process instance, is there some library/methods, which I can use?
(I mean if I am doing this in a Groovy/JS script as part of the task definition).

Thank you