typed api