import dynamix_sdk.base as _base
import dynamix_sdk.api._nested as _nested


class CloudbrokerUserListResultModel(_base.BaseAPIResultModel):
    data: list[_nested.UserAPIResultNM]
    entry_count: int


class CloudbrokerUserListProtocol(_base.BasePostAPIFunctionProtocol):
    def list(
        self,
        *,
        active: bool | None = None,
        email: str | None = None,
        name: str | None = None,
        page_number: int = 1,
        page_size: int = 100,
        service_account: bool | None = None,
        sort_by: str | None = None,
    ) -> CloudbrokerUserListResultModel:
        ...
