Actually declare the API of the sdiapi object.
Tidy up interfaces, and point to the packages that use them.