<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def actions(self):
 """Gets the list of allowed actions :rtype: list[str] """

        r = self.session.query(models.Action).all()
        return [x.type_name for x in r]