Skip to content

Upgrading and Breaking Changes

HVAKR ships breaking API and integration changes in planned waves. A wave can rename a stored field, change a response shape, or retire an older behavior. To ride a wave safely, build on the supported client SDKs and keep them current. This page is the playbook for any external developer, not one customer.

The supported, versioned surface is the v0 REST API and the official SDKs that wrap it:

  • TypeScript / JavaScript: @hvakr/client (npm install @hvakr/client)
  • Python: hvakr (pip install hvakr)

The TypeScript SDK’s request and response types come from the same *_v0 Zod schemas the server validates against. An older release keeps the schemas it shipped with, so stay current. The Python SDK mirrors the same operations. This is why the SDK is the safe target:

  • It tracks the v0 contract, not brittle app behavior.
  • A field rename lands in a new SDK version at the same name the API uses.
  • Each released version pins one known-good view of the contract.

Do not scrape the app, read undocumented endpoints, or hard-code response shapes you reverse-engineered. Those are not part of the contract and change without notice.

Current official SDKs stamp an X-HVAKR-Client: <name>/<version> header on each request. When HVAKR cannot confirm the caller is on a current SDK, the response carries an advisory header:

X-HVAKR-Client-Warning: hvakr-client-ts 0.20.0 is outdated; upgrade to >=0.22.0

A caller that sends no recognized client header (raw HTTP, curl, a custom client, or an SDK too old to send the header) gets a generic advisory instead. The warning is advisory only: it never blocks or fails a request. Treat it as the signal to upgrade before the next breaking wave lands.

HVAKR adds the advisory only after the request passes authentication, the plan check, and the rate limit. A request rejected at that point (401 for a bad token, 403 for a plan without API access, 429 for the rate limit) carries no advisory even from a stale client, so a missing warning there proves nothing. Read it on a successful call. GET /v0/me (or client.me()) is a good probe: it confirms the token, reads the plan and rate-limit budget, and surfaces the warning when the client is behind.

Pin the SDK as a normal dependency and update it like any other package:

Terminal window
# TypeScript / JavaScript
npm install @hvakr/client@latest
# Python
pip install --upgrade hvakr

After upgrading, run your integration’s own tests against a test project before you point it at live data.

If a coding agent maintains the integration, give it a task like this:

Upgrade our HVAKR integration to the newest @hvakr/client (TypeScript) or
hvakr (Python) release.
1. Bump the package to the latest version and install it.
2. Read the SDK's changes since our version (CHANGELOG.md in
flowcircuits/hvakr-client, or the commit history of
flowcircuits/hvakr-python) and the v0 OpenAPI reference
(https://api.hvakr.com/v0/docs/) for renamed fields, changed response
shapes, and removed methods.
3. Update our call sites to the new names and shapes. Do not keep shims for
the old shape.
4. Run our tests. Fix every type error and failing assertion.
5. Confirm a successful GET /v0/me carries no X-HVAKR-Client-Warning header
after the upgrade.

The point is to move to the newest supported interface, not to patch around the old one.

  • Advance notice. HVAKR notifies known integrators before a breaking wave ships, with the changes and a date.
  • Minimum supported versions. The API tracks a minimum current version per SDK. Below it, responses carry the X-HVAKR-Client-Warning advisory. Stay at or above the minimum.
  • Overlap window. When a wave is announced, upgrade within the stated window. The advisory header tells you, per request, whether you are still behind after you upgrade.
  • What counts as breaking. A renamed or removed field, a changed response shape, a removed method, or a new required input. Additive changes (a new optional field, a new endpoint) are not breaking; write clients that ignore unknown fields.
  1. Read the error envelope. Every error returns { error: { code, message }, requestId }. Branch on the stable error.code, not the message text. For validation_failed, error.details lists the issues.
  2. Capture the requestId. Every response carries an X-Request-Id header, echoed as requestId in error bodies. It is the fastest way for support to trace one call.
  3. Confirm the version. Make sure the SDK is at or above the current minimum and that a successful GET /v0/me returns no X-HVAKR-Client-Warning header.
  4. Reach support. Email support@hvakr.com with the requestId, the SDK name and version, and what you expected. For high-volume or batch workloads, contact support before you scale up.
  • API Overview — tokens, rate limits, webhooks, and error handling
  • Client SDKs — methods and usage for both SDKs
  • MCP Server — connect an AI assistant to your projects