MailglassAdmin.Operator.Tenants (MailglassAdmin v1.9.0)

Copy Markdown View Source

Shell-facing tenant selector seam.

Admin code consumes this module instead of reading tenant-bearing tables directly. Core owns outbound tenant discovery; the optional inbound package is reached only through its runtime gateway.

Summary

Functions

Returns distinct selector rows from outbound activity plus optional inbound ids.

Types

tenant_row()

@type tenant_row() :: %{id: String.t(), label: String.t()}

Functions

list_tenants(context, opts \\ [])

@spec list_tenants(
  term(),
  keyword()
) :: [tenant_row()]

Returns distinct selector rows from outbound activity plus optional inbound ids.