Add API (auto generated)

Fixes #9