getAliases

suspend fun SearchClient.getAliases(target: String? = null): Map<String, AliasResponse>

Returns the aliases for a target.

The Elasticresponse for this is somewhat hard to model because it is a bit open ended. If all you need is the set of alias names for a string, use the more user friendly getAliasNamesForIndex or getIndexesForAlias to find out with indices an alias points to. Or pick apart the response manually.