schema: add copyright
Add flowtype support

WIP