scripting/sdk/automation

Does anyone have any documentation/suggestions on how to create any automation in SBPRO?

I know v5 has the scripting and script editor. I was also curious about the sdk and scripting for v4.x

Any advice would be warmly welcomed. Thank you!