Extensively extend the times API. close #8833; close #8513; close #8559
* move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor