The sdk contains provides easy access to ethers.Contract objects for the protocol contracts (with address as per the network connected) along with typescript typings. It also contains some util functions. The sdk is used in frontend app and bot scripts.
You can view the SDK on GitHub.
For quick debugging, ragetradesdk is available as a cli, which starts a Node.js REPL with the sdk available under the sdk namespace.