[server] Use a defined type: ActionIdType instead of a raw type: int.