The format a convert of format produces — pdf → epub, epub → pdf,
and null for mp3/mp4/webm, which have no conversion target at all.
One source of truth for the pair, deliberately shaped like kindForFormat:
the API turns the null into a 400 and the client uses it to decide whether to
offer the button and what to call it, and those two must never disagree about
what a given format converts to.
The format a convert of
formatproduces —pdf → epub,epub → pdf, and null for mp3/mp4/webm, which have no conversion target at all.One source of truth for the pair, deliberately shaped like
kindForFormat: the API turns the null into a 400 and the client uses it to decide whether to offer the button and what to call it, and those two must never disagree about what a given format converts to.