# This file was auto-generated by Fern from our API Definition.

# isort: skip_file

import typing
from importlib import import_module

if typing.TYPE_CHECKING:
    from .create_actions_request_filters import CreateActionsRequestFilters
    from .create_actions_request_filters_conjunction import CreateActionsRequestFiltersConjunction
    from .create_actions_request_filters_items_item import CreateActionsRequestFiltersItemsItem
    from .create_actions_request_filters_items_item_filter import CreateActionsRequestFiltersItemsItemFilter
    from .create_actions_request_filters_items_item_operator import CreateActionsRequestFiltersItemsItemOperator
    from .create_actions_request_filters_items_item_value import CreateActionsRequestFiltersItemsItemValue
    from .create_actions_request_id import CreateActionsRequestId
    from .create_actions_request_ordering_item import CreateActionsRequestOrderingItem
    from .create_actions_request_selected_items import CreateActionsRequestSelectedItems
    from .create_actions_request_selected_items_excluded import CreateActionsRequestSelectedItemsExcluded
    from .create_actions_request_selected_items_included import CreateActionsRequestSelectedItemsIncluded
    from .list_actions_response_item import ListActionsResponseItem
    from .list_actions_response_item_dialog import ListActionsResponseItemDialog
    from .list_actions_response_item_permission import ListActionsResponseItemPermission
_dynamic_imports: typing.Dict[str, str] = {
    "CreateActionsRequestFilters": ".create_actions_request_filters",
    "CreateActionsRequestFiltersConjunction": ".create_actions_request_filters_conjunction",
    "CreateActionsRequestFiltersItemsItem": ".create_actions_request_filters_items_item",
    "CreateActionsRequestFiltersItemsItemFilter": ".create_actions_request_filters_items_item_filter",
    "CreateActionsRequestFiltersItemsItemOperator": ".create_actions_request_filters_items_item_operator",
    "CreateActionsRequestFiltersItemsItemValue": ".create_actions_request_filters_items_item_value",
    "CreateActionsRequestId": ".create_actions_request_id",
    "CreateActionsRequestOrderingItem": ".create_actions_request_ordering_item",
    "CreateActionsRequestSelectedItems": ".create_actions_request_selected_items",
    "CreateActionsRequestSelectedItemsExcluded": ".create_actions_request_selected_items_excluded",
    "CreateActionsRequestSelectedItemsIncluded": ".create_actions_request_selected_items_included",
    "ListActionsResponseItem": ".list_actions_response_item",
    "ListActionsResponseItemDialog": ".list_actions_response_item_dialog",
    "ListActionsResponseItemPermission": ".list_actions_response_item_permission",
}


def __getattr__(attr_name: str) -> typing.Any:
    module_name = _dynamic_imports.get(attr_name)
    if module_name is None:
        raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
    try:
        module = import_module(module_name, __package__)
        if module_name == f".{attr_name}":
            return module
        else:
            return getattr(module, attr_name)
    except ImportError as e:
        raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
    except AttributeError as e:
        raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e


def __dir__():
    lazy_attrs = list(_dynamic_imports.keys())
    return sorted(lazy_attrs)


__all__ = [
    "CreateActionsRequestFilters",
    "CreateActionsRequestFiltersConjunction",
    "CreateActionsRequestFiltersItemsItem",
    "CreateActionsRequestFiltersItemsItemFilter",
    "CreateActionsRequestFiltersItemsItemOperator",
    "CreateActionsRequestFiltersItemsItemValue",
    "CreateActionsRequestId",
    "CreateActionsRequestOrderingItem",
    "CreateActionsRequestSelectedItems",
    "CreateActionsRequestSelectedItemsExcluded",
    "CreateActionsRequestSelectedItemsIncluded",
    "ListActionsResponseItem",
    "ListActionsResponseItemDialog",
    "ListActionsResponseItemPermission",
]
