Operations for fetching workspace users (agents) in Plain.
Summary
Functions
Fetches a workspace user by their email address.
Returns {:ok, nil} if not found.
Fetches a workspace user by their Plain user ID.
Returns {:ok, nil} if not found.
Functions
@spec get_by_email(ExPlain.Client.t(), String.t()) :: {:ok, ExPlain.Users.User.t() | nil} | {:error, ExPlain.Error.t()}
Fetches a workspace user by their email address.
Returns {:ok, nil} if not found.
@spec get_by_id(ExPlain.Client.t(), String.t()) :: {:ok, ExPlain.Users.User.t() | nil} | {:error, ExPlain.Error.t()}
Fetches a workspace user by their Plain user ID.
Returns {:ok, nil} if not found.