Is there a way to automate the creation and editing of Shader Graphs?

Was just wondering if there was a way to automate the scripting of the Shader Graph? Like creating and adding nodes and whatnot. I have a program that can create custom graph nodes from shaders ripped from a video game and I want to automate the process of importing said shaders/textures into unity. Unfortunately I’ve been unable to do so completely because I can’t find any documentation anywhere online regarding the scripting of the shader graph.

And before anyone says “just write the shader yourself lol.” I have the HLSL that does the texture transformations, but nothing else, and I have no clue how to work around Unity’s HDRP lit shader anyways.

I am going to say ‘just write it to hlsl’
You can still write shaders in hdrp and urp, but there are some different steps and callbacks.
I don’t think there is a way to inject nodes without some sort of macros and connecting the nodes would be a nightmare.

All shader graph does is copy and paste sections of hlsl code together, so you probably just need to do the same