Where to find documentation for writing a MIDI Device Script for Logic Pro?

I'm trying to write a MIDI device script (MDS) for Logic Pro, as is (briefly) discussed here: https://support.apple.com/en-kg/guide/logicpro/ctls718dd5b2/mac

I can see other such scripts bundled with Logic and that they're written in Lua. However, I cannot find any documentation this anywhere.

Could someone kindly point me towards any documentation that might help me?

Where to find documentation for writing a MIDI Device Script for Logic Pro?
 
 
Q