flip_api.trusts_services.services.trust ======================================= .. py:module:: flip_api.trusts_services.services.trust Functions --------- .. autoapisummary:: flip_api.trusts_services.services.trust.get_trusts Module Contents --------------- .. py:function:: get_trusts(session: sqlmodel.Session, ids: list[uuid.UUID] | None = None) -> list[flip_api.domain.interfaces.trust.ITrust] Retrieve a list of Trusts from the database. If IDs are provided, only those Trusts will be returned. If no IDs are provided, all Trusts will be returned. :param session: The SQLModel session to use for the query. :type session: Session :param ids: A list of Trust IDs to filter by. If None, all Trusts are returned. :type ids: list[UUID] | None :returns: A list of Trust objects. :rtype: list[ITrust] :raises ValueError: If no Trusts are found or if the database response is empty.