A noun or pronoun for whom or to whom the action is directed is known as?

A noun or pronoun for whom or to whom the action is directed is known as?

Explanation

An indirect object tells to whom or for whom the action is done.

Example: She gave him a gift. ('him' is the indirect object).