Marking this out of date as I'm not sure if it was always possible, but it is now.
We could open a follow-up issue to make it an easier looking API, if someone comes with a concrete proposal.