Messages
List Message Threads
The supplier's conversations with the buyer's team, one per purchase order that has at least one message, latest message first, plus `unread_count` (conversations with something this user hasn't read).
Get Message Thread
One purchase order as a conversation, with the same fields as a List Message Threads row. Works for an order nobody has written about yet (`message_count` 0, `last_message` null), so a new conversation can start from any order the supplier can see.
Get Unread Message Count
How many of the supplier's conversations have a message the signed-in user hasn't read.
Mark Message Thread Read
Marks every message on the purchase order's thread read for the signed-in user (and the matching new-message notifications), and returns the new unread conversation count.