pub fn thread_update( ctx: Context<'_, '_, '_, '_, ThreadUpdate<'_>>, new_trigger: Option<Trigger>, ) -> Result<()>