How to use the javascript client to add a user role?

I am trying to use the javascript opensearch client “@opensearch-project/opensearch”: “^1.1.0” and I see I can search/index, but I do not see a way to add a role. Is this something that is supported or how do I do this?

thanks!