TypeScript SDK

Status: preview. Builds, typechecks, and is exercised against a running instance by npm run test:acceptance (12 tests). Kiota's TypeScript generator is itself at preview maturity, so expect more movement here than in the .NET client.

Two consequences of that maturity are worth knowing before you start. Request configuration must be passed as an object, not a callback — the callback form compiles, runs, and silently discards what it sets. And generated imports carry // @ts-ignore, so a typecheck alone does not prove the package loads; that is why the acceptance test imports from dist rather than src.

Two clients, matching the two planes:

Factory Plane Base path
createManagementClient Management /management
createProductClient Product /v1.0

Server-side only

DiligenceID API keys are long-lived server-side credentials. Do not ship one to a browser. Anything in a browser is readable by whoever is using it, and a key that reaches a page has been disclosed.

Call DiligenceID from your server, and have the browser call your own backend.

What is generated

Everything under src/generated/, from the committed specifications. Do not edit it. Hand-written: DiligenceApiKeyCredential and the two factory functions.

Pages

Edit this page on GitHub