In this paper, for the first time, we study the inverse Sturm–Liouville problem with polynomials of the spectral parameter in the first boundary condition and with entire analytic functions in the second one. For the investigation of this new inverse problem, we develop an approach based on the construction of a special vector functional sequence in a suitable Hilbert space. The uniqueness of recovering the potential and the polynomials of the boundary condition from a part of the spectrum is proved. Furthermore, our main results are applied to the Hochstadt–Lieberman-type problems with polynomial dependence on the spectral parameter not only in the boundary conditions but also in discontinuity (transmission) conditions inside the interval. We prove novel uniqueness theorems, which generalize and improve the previous results in this direction. Note that all the spectral problems in this paper are investigated in the general non-self-adjoint form, and our method does not require the simplicity of the spectrum. Moreover, our method is constructive and can be developed in the future for numerical solution and for the study of solvability and stability of inverse spectral problems.