GebSecure Docs v0.1.0

Help

API versioning and compatibility

How the HTTP API and the SDKs are versioned, what counts as a breaking change and how deprecations work.

The HTTP API#

The API is versioned in the path: every operation is under /v1. Within v1 the server only makes additive changes — new operations, new optional request fields, new response fields and new enum values. The OpenAPI documents in docs/openapi/ carry the contract version in info.version (currently 0.1.0 for both the gateway and the control plane); the SDK model generator records it in every generated file and in sdks/spec/models.json.

Write clients that tolerate unknown fields and enum values — the official SDKs do (conformance §7), so an older SDK keeps working against a newer server.

When a /v2 ships, the SDKs add it in a MINOR release (opt-in); dropping /v1 is a MAJOR SDK release that follows the deprecation policy below. This release has no deprecated endpoints; the policy (sdks/VERSIONING.md) is that server-side deprecations are announced with Deprecation and Sunset response headers and remain supported until the sunset date.

The SDKs#

Each SDK is versioned independently with SemVer 2.0 (sdks/VERSIONING.md):

Change Version
removed/renamed methods, types or options; behaviour-changing defaults (e.g. retry classification); a raised minimum runtime; dropping an API major version MAJOR
new operations, models, fields, enum values, options; support for new API features MINOR
fixes, documentation, dependency updates, regenerated models that only add optional fields PATCH

0.x releases may break in a MINOR version; every break is called out in the changelog (see SDK 0.1 → 0.2). 1.0.0 is cut per SDK once the API v1 contract is declared stable. Pre-releases use -alpha.N, -beta.N, -rc.N.

SDK line API Minimum runtime
TypeScript 0.2.x v1 Node.js 20 (or any fetch + WebCrypto runtime)
Python 0.2.x v1 Python 3.9
Go 0.2.x v1 Go 1.21
Java 0.2.x v1 Java 11
.NET 0.2.x v1 .NET 8 / .NET Standard 2.0

An SDK release declares the oldest API contract it supports. Features that need a newer server fail with the server's not_found or validation_failed error on older servers — never silently. The conformance fixtures are the executable compatibility contract: every release must pass the fixture set of the commit it is released from.

Deprecation policy#

  1. Deprecations are announced in the changelog and marked in code (@deprecated JSDoc, warnings.warn(DeprecationWarning), // Deprecated: in Go, @Deprecated in Java, [Obsolete] in .NET) with the replacement.
  2. A deprecated SDK feature remains for at least two MINOR releases and six months, whichever is longer, before it is removed in a MAJOR release.
  3. Each SDK MAJOR version receives security fixes for 12 months after the next MAJOR is released.
  4. Minimum runtimes are raised only in MAJOR releases, and only for runtimes that are end-of-life upstream.

Policies and tooling#

  • Policies are versioned per policy, not per API: every save is an immutable version, deployments are recorded, and a rollback redeploys a previous version (see Policy lifecycle).
  • CLI releases follow their own version (cli-v<version> tags; currently 0.1.1).
  • Database migrations are forward-only (expand/contract), so a deployment can be rolled back without a schema downgrade (see Deployment).