 Non-core official activities are subjected to presumptive immunity that can be overcome by showing that you're not harming the constitutional order by criminally indicting the president. And then there are unofficial acts in which the president can be indicted willy-nilly.