DoTs SDK Development: Automating TypeScript Client Generation
Blog post from DigitalOcean
DigitalOcean has introduced DoTs, a new TypeScript SDK designed to enhance developer interaction with its resources by utilizing TypeScript's type safety and modern features. The development of DoTs leverages automated code generation using OpenAPI, GitHub Actions, and Kiota, significantly reducing manual effort and errors in SDK creation. This automation ensures that the SDK remains up-to-date with API changes and supports robust testing and documentation processes. Kiota, an open-source API client code generator, aids in producing strongly typed SDKs across various languages, emphasizing consistency and ease of maintenance while offering flexible authentication options. The integration of CI/CD workflows and comprehensive testing, including mocked and integration tests using Jest, ensures the reliability of the SDK, while automated documentation is maintained through TypeDoc and Read the Docs. This initiative aims to streamline development workflows, promoting reliability, scalability, and user-friendly experiences for developers managing DigitalOcean resources.