We would like to know if it's possible to get the storage metrics based on document type for a SharePoint Online site collection meaning how much space is occupied by each type of document.
Let me know if there are any options via pnp-powershell or any api.