Methods should only be used if you want people to be able to make these calls directly from the client. I think it should be up to the app developer whether they want to use this API from the server only or from the client as well, so I would ship it as a plain object and let the app developer make methods as needed if things need to be called from the client.