@mxraven/admin - v2.1.0
    Preparing search index...

    Class DomainsClient

    Tenant domain collection.

    Every read and creation returns a hydrated Domain entity whose operations (replace, delete, listenerGrants) act on that domain.

    const paged = await ws.domains().list({ status: domainStatus.verified });
    for await (const domain of paged) {
    console.log(domain.domainName);
    }
    Index
    • Onboards a domain for outbound sending.

      Parameters

      • domainName: string

        The domain name to onboard.

      • OptionaldmarcReportAddress: string

        Optional DMARC aggregate report mailbox.

      • Optionaloptions: RequestOptions

        Optional cancellation signal.

      Returns Promise<Domain>

      The created domain.

      ConflictException When the domain already exists.

    • Gets a domain by its identifier.

      Parameters

      • domainId: string

        The domain identifier.

      • Optionaloptions: RequestOptions

        Optional cancellation signal.

      Returns Promise<Domain>

      The hydrated domain.

      NotFoundException When the domain is not visible.

    • Lists domains with optional typed filters.

      The first page is fetched eagerly; remaining pages are fetched lazily as the collection is iterated.

      Parameters

      Returns Promise<Paged<Domain>>

      A lazily paginating collection of domains.

      Error When a filter is invalid, such as a search term shorter than 3 characters.

      ApiException When the control plane returns a non-success status.