You can’t add libraries of any kind to smartthings itself. Many integrations for different projects are based on using a “ Man in the middle“ server to handle all that kind of stuff.
There was some effort about three years ago on the SNMP front That used a “man in the middle” approach, but I don’t think much ever came of it. There are a lot of security concerns these days with anything that’s allowed to harvest that much information from the network itself rather than through explicit requests.