Skip to main content
Version: 11.14.0

Version

The Version module (v2 API) provides a function to retrieve the server version and its enabled feature flags.

Types​

VersionResponse​

type VersionResponse = {
serverVersion: string;
features: Record<string, boolean>[];
};
PropertyTypeRequiredDescription
serverVersionstring✓The version string of the Sinequa server
featuresRecord<string, boolean>[]✓List of feature flags and their enabled state

Functions​

fetchVersion()​

Fetches the current server version and available feature flags.

Returns Promise<VersionResponse> — server version and feature flags.

Example

fetch-version.ts
import { fetchVersion } from '@sinequa/atomic';

const { serverVersion, features } = await fetchVersion();
console.log('Server version:', serverVersion);
console.log('Features:', features);