The SDKs are published at
0.x during the public preview: typed, versioned, and functional. Pin a
version and expect the surface to evolve until GA.Install
Configure a client
Point the client at the hiloop edge and authenticate with your API key. In TypeScript, pass it as the client’sauth option; in
Python, as the AuthenticatedClient token. Either way the SDK sends it as an Authorization: Bearer
header on every request.
createClient builds an isolated instance you pass to each call as { client }.
If you’d rather configure once and skip threading it through, set the package-level default client
instead — then every operation uses it automatically:
TypeScript
createConfig for building a config object you reuse across instances.
A first call
Echo your identity — the same checkhiloop whoami runs:
Handle errors
Every API error uses the same typed envelope, and both SDKs surface it asErrorBody. Branch on
its stable snake_case code (for example not_found, quota_exceeded, rate_limited,
internal) — never on the message text, whose wording can change. In TypeScript the envelope is
the error half of each call’s result; in Python an error response is returned as an ErrorBody
value you narrow with isinstance.
details.quotaonquota_exceeded/rate_limitedrejections names the limit that rejected the request (metric,limit,current,retry_after_seconds); rate limits also send aRetry-Afterheader.request_idon server faults (5xx) — quote it when contacting support to locate the failing request.
Patterns to know
- Endpoint functions. Every operation is an importable function (for example,
projectServiceListProjects) called with{ client, body }in TypeScript, or a service module withsync/asynciovariants in Python. - Idempotency keys on create-style mutations. Supply a key explicitly when a retry must remain safe across processes.
- Typed request and response models. Bodies and rows are typed (e.g.
DataView,QueryRequest,QueryResponse), so your editor guides the call. Full type listings are in the TypeScript and Python SDK reference.
Where to go next
- Query telemetry includes TypeScript and Python examples.
- The generated TypeScript and Python reference lists every function and type.