How to properly reload a kwin script

I see you are using org.kde.kwin.Scripting.unloadScript and org.kde.kwin.Scripting.start which are not present at KWin scripting API | Developer. Are they documented somewhere?
Btw, I asked basically the same question at How to apply KDE Plasma KWin script change without restarting KWin?