The only *possible* consent is between author and reader. Works of fiction, and characters in them, cannot do so, because *they cannot think*.
A half-gnoll pirate has the exact capacity to enter contracts as the meat pie I wrote them eating for breakfast, or the tiller I wrote them holding: none.