FIX: UserAction did not have a types enum (PR #10553)

This is important for Data Explorer to provide proper help text. It’s just a copy of the constants higher up in the file.

GitHub

The purpose of this PR is to support https://github.com/discourse/discourse-data-explorer/pull/62 .