# DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.

from __future__ import annotations
import typing

from ..context import get_connection_context, get_session_context

import cdp.schema
from cdp.schema import (
    Domain
)


async def get_domains() -> typing.List[Domain]:
    '''
    Returns supported domains.

    :returns: List of supported domains.
    '''
    session = get_session_context('schema.get_domains')
    return await session.execute(cdp.schema.get_domains())
