IDAClient
Constructor
Source: packages/sdk/src/index.ts:65-82, packages/sdk/src/types.ts:412-416.
Example
The apiUrl is normalised — trailing slashes are stripped (index.ts:76). All operations are routed through one of four sub-modules:
…but the public surface is the flat method list on IDAClient itself (see following sections). You may prefer the sub-module style for tree-shaking; the SDK exposes them via type-level aliases (see §10.7 below for direct module imports).
Switching auth at runtime
The SDK does not currently support per-call header overrides; instantiate a second client if you need to switch identities mid-process:
Error handling
All failed HTTP calls throw IDAHTTPError (re-exported from http.ts):
The error wraps { status, code, message }. Wrapped error envelope unwrapping is automatic (http.ts:48-62).