xpack.license.getTrialStatus

edit
client.xpack.license.getTrialStatus()

Reference