GoodMemGoodMem

System

Server info and initialization.

Methods on this page are called through client.system.

client.system.info

client.system.info(requestOptions?: RequestOptions): Promise<SystemInfoResponseShape>

Returns the server's advertised semantic version, git metadata, build timestamp, and optional capability flags. The endpoint is intentionally unauthenticated so bootstrap tooling can call it before API keys exist.

HTTP: GET /v1/system/info

Parameters

ParameterTypeDescription
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;SystemInfoResponseShape&gt;

Example

const info = await client.system.info();
console.log(info.version);

client.system.init

client.system.init(requestOptions?: RequestOptions): Promise<SystemInitResponseShape>

Initializes the system by creating a root user and API key. This endpoint should only be called once during first-time setup. If the system is already initialized, the endpoint will return a success response without creating new credentials.

HTTP: POST /v1/system/init

Parameters

ParameterTypeDescription
requestOptionsRequestOptions optionalPer-call signal, timeout, or headers.

Returns: Promise&lt;SystemInitResponseShape&gt;

Example

const init = await client.system.init();
console.log(init.rootApiKey);

Data Models

Interfaces

SystemInfoResponse

FieldTypeRequiredDescription
versionstringyesSemantic version string advertised by the running server.
majornumberyesMajor version component parsed from the advertised semantic version.
minornumberyesMinor version component parsed from the advertised semantic version.
patchnumberyesPatch version component parsed from the advertised semantic version.
dirtybooleanyesWhether the running build reports uncommitted workspace changes.
gitCommitstringnoGit commit SHA baked into the build, when available.
gitDescribestringnoGit describe output baked into the build, when available.
buildTimestringnoBuild timestamp recorded for this server binary, when available.
capabilitiesRecord&lt;string, string&gt;noOptional capability flags or metadata advertised by the running server.

SystemInitResponse

Response from the system initialization endpoint.

FieldTypeRequiredDescription
alreadyInitializedbooleanyesIndicates whether the system was already initialized before this request.
messagestringyesA human-readable message about the initialization status.
rootApiKeystring | nullnoThe API key for the root user. Only present if system was just initialized (not previously initialized).
userIdstring | nullnoThe user ID of the root user. Only present if system was just initialized (not previously initialized).

Response Shapes

Response shape types model values returned by the SDK after forward-compatible unknown enum strings are coerced to null.

SystemInfoResponseShape

FieldTypeRequiredDescription
versionstringyesSemantic version string advertised by the running server.
majornumberyesMajor version component parsed from the advertised semantic version.
minornumberyesMinor version component parsed from the advertised semantic version.
patchnumberyesPatch version component parsed from the advertised semantic version.
dirtybooleanyesWhether the running build reports uncommitted workspace changes.
gitCommitstringnoGit commit SHA baked into the build, when available.
gitDescribestringnoGit describe output baked into the build, when available.
buildTimestringnoBuild timestamp recorded for this server binary, when available.
capabilitiesRecord&lt;string, string&gt;noOptional capability flags or metadata advertised by the running server.

SystemInitResponseShape

FieldTypeRequiredDescription
alreadyInitializedbooleanyesIndicates whether the system was already initialized before this request.
messagestringyesA human-readable message about the initialization status.
rootApiKeystring | nullnoThe API key for the root user. Only present if system was just initialized (not previously initialized).
userIdstring | nullnoThe user ID of the root user. Only present if system was just initialized (not previously initialized).