Something like this should work
Just found this amazing item on AliExpress. Check it out!
€6.17 | Type-C QC AFC PD2.0 PD3.0 to DC Spoof Scam Fast Charge Trigger Polling Detector USB-PD Notebook Power Supply Change Board Module
https://a.aliexpress.com/_EulkEM7
There are cheaper ones as well with a single output voltage. Use the highest output voltage that can still be accepted by your dc dc converter.