MngGetComponentUpdates¶
Returns the platform components known to the server — separately versioned
Node.js services such as sct-sms, sct-click2call, sct-mailer and
sct-ai — together with their installed and running versions, the published
component releases newer than the installed version and a cumulative changelog
suitable for display in BackOffice.
Component information is platform-wide and is not scoped by brand. Viewing it does not grant permission to install an update. See Platform components for the server-side concepts.
Access¶
Allowed session types:
SESSION_MANAGERSESSION_ADMINSESSION_DEALERSESSION_CRM_MANAGERSESSION_CRM_ADMIN
No manager permission is required. The session must resolve to an enabled
staff manager. The response field can_update is true only when the
resolved manager has super_admin = 1.
Request¶
No data parameters are required.
{
"command": "MngGetComponentUpdates",
"data": {},
"extID": "MngGetComponentUpdates_1",
"__token": "<manager-jwt>"
}
Response¶
Handler status: 200.
{
"platform_version": "1.26.11",
"can_update": true,
"pin_required": true,
"registry_available": true,
"registry_error": "",
"components": [
{
"component": "sct-sms",
"managed": true,
"installed": true,
"installed_version": "1.0.0",
"running": true,
"running_version": "1.0.0",
"node_id": "sct-sms-1",
"latest_version": "1.1.0",
"update_available": true,
"compatible": true,
"requires_platform": ">=1.26.10",
"update_state": {
"operation_id": "0f4c2a9be1d84f6a9c3b5e7d2a1f8c60",
"state": "completed",
"target_version": "1.0.0",
"previous_version": "0.0.0",
"message": "Update completed successfully",
"updated_at": 1790142024
},
"releases": [
{
"version": "1.1.0",
"built_at": "2026-11-25T10:00:00Z",
"released_at": "2026-11-26T09:00:00Z",
"requires_platform": ">=1.26.10",
"compatible": true,
"release_notes": "# 1.1.0\n\n- Delivery report retries."
}
],
"combined_changelog": "# 1.1.0\n\n- Delivery report retries."
},
{
"component": "sct-ai",
"managed": false,
"installed": false,
"installed_version": "",
"running": true,
"running_version": "1.0.2",
"node_id": "sct-ai-1",
"latest_version": "1.0.2",
"update_available": false,
"compatible": true,
"requires_platform": ">=1.26.10",
"update_state": null,
"releases": [
{
"version": "1.0.2",
"built_at": "2026-11-20T08:00:00Z",
"released_at": "2026-11-21T09:00:00Z",
"requires_platform": ">=1.26.10",
"compatible": true,
"release_notes": "# 1.0.2\n\n- Knowledge index fixes."
}
],
"combined_changelog": "# 1.0.2\n\n- Knowledge index fixes."
}
]
}
In this example sct-sms is a managed component installed on this host, and
sct-ai runs on another machine: it is registered as external
(managed: false) or not registered at all, and its node is visible on the
platform bus.
Top-level fields¶
| Field | Type | Description |
|---|---|---|
platform_version |
string | Version of the running platform (sttrader) used for compatibility checks |
can_update |
bool | Whether the current manager is a SuperAdmin and may invoke MngInstallComponentUpdate |
pin_required |
bool | Whether update mutations require the configured [updater].pin; the value itself is never returned |
registry_available |
bool | false when the component registry could not be read; the command still succeeds and reports local state |
registry_error |
string | Registry diagnostic when registry_available is false; empty string otherwise |
components |
array | Known components, one row each |
Component fields¶
| Field | Type | Description |
|---|---|---|
component |
string | Component name, for example sct-sms |
managed |
bool | true when the host registry /etc/sttrader/components.d/<component>.json marks the component as managed by the platform updater on this host. false for an entry with managed: false (external component on another machine) and for a node announced on the bus without a host entry; such components are displayed only and cannot be updated from BackOffice |
installed |
bool | true when a managed component has an installed package on this host (installed_version is not empty). Always false for unmanaged components |
installed_version |
string | Version from <root>/current/component.json; empty string when nothing is installed on this host or the component is not managed |
running |
bool | Whether a node announcing this component in its Moleculer metadata is currently present on the platform bus |
running_version |
string | Version announced by the running node; empty string when not running. When several nodes announce the same component, the node running installed_version is preferred |
node_id |
string | Moleculer node identifier of the reported node, normally <component>-1; empty string when not running |
latest_version |
string | Highest released version in the registry, regardless of compatibility; empty string when the registry has no released version of this component or is unavailable |
update_available |
bool | true only for a managed, installed component when at least one released version newer than installed_version is compatible with the running platform. Always false for unmanaged or not installed components: installing a new component is an operator task |
compatible |
bool | Whether latest_version is compatible with platform_version; false when latest_version is empty |
requires_platform |
string | Platform version range declared by latest_version; empty string when latest_version is empty or the release accepts any platform version |
update_state |
object | null | Last updater operation recorded for this component on this host (reservation file /etc/sttrader/.component-update-<component>.json); null when none exists |
update_state.operation_id |
string | 32-hex reservation identifier of the operation. It is not the update_id of the status channel; it names the snapshot directory backups/<operation_id>/ and is the argument of updater --recover-operation |
update_state.state |
string | Reservation state: launching, in_progress, completed, failed, rolled_back or skipped. The last four are terminal; a non-terminal state blocks further updates on the host |
update_state.target_version |
string | Version the operation installs, or the target of an operator rollback |
update_state.previous_version |
string | Version installed before the operation; 0.0.0 for an initial installation |
update_state.message |
string | Human-readable result or failure information |
update_state.updated_at |
int64 | Time of the latest state change as a Unix timestamp |
releases |
array | Released versions ordered from oldest to newest: those newer than installed_version for an installed component, every released version when nothing is installed on this host |
releases[].version |
string | Release version; for a managed component it is accepted by MngInstallComponentUpdate when compatible is true |
releases[].built_at |
string | UTC build timestamp from the component registry |
releases[].released_at |
string | UTC publication timestamp |
releases[].requires_platform |
string | Platform version range declared by this release; empty string means any |
releases[].compatible |
bool | Whether this release can be installed on platform_version |
releases[].release_notes |
string | Markdown release notes for this version. If the notes cannot be loaded the release stays in the list and this field contains a Release notes unavailable: ... diagnostic |
combined_changelog |
string | Release notes of every returned release joined in ascending version order |
How the list is built¶
- The list is the union of the host component registry
/etc/sttrader/components.d/(one<component>.jsonfile per component) and the running platform nodes that announcemetadata.component. A running component without a host entry is reported withmanaged: falseandinstalled: false. Rows are ordered by component name. - Installed and running versions are independent. BackOffice should
warn when
installed_versionandrunning_versiondiffer, or when a managed installed component is not running (running: false). - Only registry entries with
release: trueare returned. Draft component packages are never exposed. - A registry failure does not fail the command:
registry_availableisfalse,registry_errorcontains the diagnostic, everyreleasesarray is empty,latest_versionandrequires_platformare empty strings,compatibleandupdate_availablearefalse, and the installed/running state is still returned. - An invalid entry in
/etc/sttrader/components.d/fails the whole command with500 COMPONENTS_CONFIG_INVALIDinstead of guessing.
Version ranges¶
requires_platform consists of space-separated tokens. Each token is an
X.Y.Z version, optionally prefixed by one of the comparators >=, >,
<=, < or =; a version without a comparator means =. All tokens must
hold. An empty range accepts any version. Example: >=1.26.10 <1.28.0.
No component installed¶
{
"platform_version": "1.26.11",
"can_update": false,
"pin_required": false,
"registry_available": true,
"registry_error": "",
"components": []
}
Registry unavailable¶
{
"platform_version": "1.26.11",
"can_update": true,
"pin_required": true,
"registry_available": false,
"registry_error": "registry request failed: timeout",
"components": [
{
"component": "sct-sms",
"managed": true,
"installed": true,
"installed_version": "1.0.0",
"running": true,
"running_version": "1.0.0",
"node_id": "sct-sms-1",
"latest_version": "",
"update_available": false,
"compatible": false,
"requires_platform": "",
"update_state": null,
"releases": [],
"combined_changelog": ""
}
]
}
The registry_error text is an administrative diagnostic; clients must not
parse it.
Errors¶
| Handler status | Error | Meaning |
|---|---|---|
| 401/403 | Standard manager access error | Session cannot be resolved or is not allowed by the router |
| 500 | COMPONENTS_CONFIG_INVALID |
An entry in /etc/sttrader/components.d/ is invalid (unparsable JSON, wrong schema_version, component not matching the file name, invalid root, service or user); message names the problem |
{
"error": "COMPONENTS_CONFIG_INVALID",
"message": "Component entry name does not match its file: /etc/sttrader/components.d/sms.json"
}
Registry failures are reported inside a 200 response as described above.