Is there a way to pull a list of all possible role privileges that can be assigned to custom roles? I know there are tables in the documentation, and I can pull lists of privileges from custom roles, but I'd like to be able to programmatically pull a list from the API given that new ones are occasionally added. And while I could scrape the web page tables, I'd rather not be at the mercy of an unexpected format change to that page.
My goal is to build a list of default privileges programmatically for the default admin, publisher, and user roles, which can't be read in a role object the same way that custom roles or the Viewer and Data Editor roles can. I see that all privileges are tagged with admin, publisher, or user so if I can pull a full list then I can assign them via those tags.
This would also be handy if you are trying to create custom roles and want to pull all user level privileges, for example, and then add a couple other privileges specifically by name.