HbA1c, or just diabetes as a binary variable, has been one of the main inputs into predicting heart attack risk for a long time.
The main marker of kidney function, eGFR, was added with the AHA/ACC's PREVENT equations in 2023.
I wrote a bit about the science behind heart risk calculators, and their various inputs like cholesterol, blood pressure, A1c, eGFR, and so on here: https://www.empirical.health/blog/heart-attack-risk-calculat...