refactor: Expose generating RawRequest objects as an API