So, this library is using DefiniteEither type to shape the output types for the HTTP client, but unfortunately one has to import this type from dist files instead of neatly accessing it via common @lokalise/node-core export:
import { DefiniteEither } from "@lokalise/node-core/dist/src/errors/either";