Represents who performed an action in Plain.
The :type field discriminates the variant:
:user— a workspace user (agent).:user_idis set.:customer— a customer.:customer_idis set.:machine_user— an API key / machine user.:machine_user_idis set.:system— the Plain system itself.:deleted_customer— a customer that has since been deleted.:customer_idis set.
Summary
Types
@type actor_type() :: :user | :customer | :machine_user | :system | :deleted_customer
@type t() :: %ExPlain.Actor{ customer_id: String.t() | nil, machine_user_id: String.t() | nil, type: actor_type(), user_id: String.t() | nil }