async def get_all_for_white_label(
        self, db: AsyncSession, white_label_id: UUID, current_user: schemas.User
    ) -> list[schemas.Sync]:
        """Get sync by white label ID.

        Args:
            db (AsyncSession): The database session
            white_label_id (UUID): The ID of the white label
            current_user (schemas.User): The current user

        Returns:
            list[schemas.Sync]: The enriched syncs
        """
        stmt = select(Sync).where(Sync.white_label_id == white_label_id)
        result = await db.execute(stmt)
        syncs = result.scalars().unique().all()

        # Validate permissions for each sync
        for sync in syncs:
            self._validate_if_user_has_permission(sync, current_user)

        # Enrich all syncs in a single efficient query
        return await self.enricher_for_all(db, syncs)
Get sync by white label ID.

        Args:
            db (AsyncSession): The database session
            white_label_id (UUID): The ID of the white label
            current_user (schemas.User): The current user

        Returns:
            list[schemas.Sync]: The enriched syncs
        
backend/airweave/crud/crud_sync.py