# Code generated by op-codegen - DO NO EDIT MANUALLY

from .client import Client, DesktopAuth
from .defaults import DEFAULT_INTEGRATION_NAME, DEFAULT_INTEGRATION_VERSION
from .types import *  # noqa F403
from .errors import *  # noqa F403
from .secrets import Secrets
from .items import Items
from .vaults import Vaults
from .groups import Groups


import sys
import inspect
import typing

__all__ = [
    "Client",
    "Secrets",
    "Items",
    "Vaults",
    "Groups",
    "DesktopAuth",
    "DEFAULT_INTEGRATION_NAME",
    "DEFAULT_INTEGRATION_VERSION",
]

for name, obj in inspect.getmembers(sys.modules["onepassword.types"]):
    # Add all classes and instances of typing.Literal defined in types.py.
    if (
        (
            inspect.isclass(obj)
            and inspect.getmodule(obj) == sys.modules["onepassword.types"]
        )
        or isinstance(obj, int)
        or type(obj) == typing._LiteralGenericAlias
    ):
        __all__.append(name)

for name, obj in inspect.getmembers(sys.modules["onepassword.errors"]):
    # Add all classes defined in errors.py.
    if (
        inspect.isclass(obj)
        and inspect.getmodule(obj) == sys.modules["onepassword.errors"]
    ):
        __all__.append(name)
