Integrable spin-boson interaction in the Tavis-Cummings model from a generic boundary twist