The first type you're talking about is called demand-pull inflation. The second type is cost-push inflation.Perhaps a more interesting/productive conversation would be to fully define inflation and deflation. And shrinkflation and stagflation.
I tend to think of inflation as specifically "currency inflation". Meaning, if you have the same quantity of goods/services/houses/salaries/wages/etc, but you have money printing, then prices should rise somewhere, or in multiple places.
Currency deflation would then be the opposite; if we had a stable population and zero printing, then eventually some amount of dollars leave circulation, so prices may actually decrease; people will simply want or need each dollar more.
But, when we consider global supply chain shortages, computer chips, cars, lumber, other raw materials, then that suggests it is a non-currency style of deflation. I don't know what the term would be for that.
Also, if we have people leaving the labor force, simultaneously with job automation, growing populations, aging populations... I don't know what that is really called, or how all these factors interact.
The simplest expression that I did hear was a comment on a youtube vid arguing for deflation; "Money-printing during a deflationary cycle. Nuts." That simply makes me wonder how to play my cards, what will become worth more, what will become worth less.