How do the plugin APIs call functions in the app?

Hi, I’m trying to get a plugin to call the publish function in the app. Any suggestions would be appreciated. Thanks

So far I’ve found the function(s) calling publish:
(js/window.apis.exportPublishAssets.. in src/main/frontend/handler/export.cljs … and the function defn- handle-export-publish-assets in [src/electron/electron/core.cljs]

One is a window API. I didnt find either of these functions in the rest of the codebase, however. So dont grasp how they are being called. The name seems pretty specific to be called from a library, but could be.