Bayesian nonparametric inference beyond the Gibbs-type framework