A new book by two informal advisers to President Trump aims to buttress his claim that he is the victim of a vast conspiracy inside the federal government, and it includes an interview with Mr. Trump in which he repeats his unfounded assertion that President Barack Obama was complicit in spying against him.

The book, “Trump’s Enemies: How the Deep State is Undermining the Presidency,” by Corey Lewandowski, the president’s first campaign manager, and David Bossie, a former deputy campaign manager, is scheduled to be released this week.

The New York Times obtained a copy of the book, which is a mix of good-time recollections about the earliest days after Mr. Trump’s victory and score-settling on the part of the authors and the president.

Mr. Lewandowski and Mr. Bossie describe enemies of the president as “embedded” within the government, affirming most of Mr. Trump’s publicly stated views about his critics, and about intelligence agency officials who have been involved in inquiries into his campaign. And their interview with the president allowed him to vent some of his deepest grievances.