sendPrivateTextMessage from external api?

Is there a way to send a (private) text message (the chat feature) using the external iframe api?

In e.g. an Electron application I could do: api.getIFrame().APP.conference._room.sendPrivateTextMessage(id, message);.

But that won’t work when embedding the iframe on a normal web page.
If it isn’t in the external api yet, would it be ok to add it?