Updated apidoc and TypeScript