Resolves #31131. It uses the the go-swagger `enum` property to document the activity action types. (cherry picked from commit cb27c438a82fec9f2476f6058bc5dcda2617aab5)
Close #5666 Add APIs for getting activity feeds.