Just do it yourself. For a translational sweep, you can just construct polygons for the edges of the sweep. For rotational sweeps, you can use the Conic function to create the curved surfaces. This would be probably the most reliable method.
You could use the B-Rep functions to create a Prism or a Revolve. You would construct a Face that represents the profile to sweep, then pass it to one of the two functions. The B-Rep APIs may be a bit harder to use. I would probably recommend the first option unless the profiles are very complicated. But if they are planar with linear edges, then it should be straightforward. If the profiles they want to extrude have curved edges, and the want to revolve it, the it’s a bit harder. The B-Rep API might be a better option.