A generalization of the one-dimensional δ-function Bose gas