The Text Serialization Library is an implementation to handle text/plain payloads.
A Kiota generated project will need a reference to a Text serialization package to handle text/plain payloads from an API endpoint.
Read more about Kiota here.
npm i @microsoft/kiota-serialization-text
.