Skip to content

Function: resolveAdapterNameById()

Makaio Framework


Makaio Framework / services-core / resolveAdapterNameById

resolveAdapterNameById(bus, adapterId, explicitAdapterName, errorPrefix): Promise<string>

Defined in: ../../../packages/services/core/src/session/selection-utils.ts:39

Resolve the canonical adapterName for a given deterministic adapterId, rejecting when the caller-supplied name does not match the subsystem lookup.

The adapter runtime owns reverse lookup for deterministic IDs, including remote-machine IDs that still identify a known adapter type.

IMakaioBus

Bus instance used to query the adapter runtime reverse lookup

string

Adapter instance identifier to look up

string | undefined

Caller-supplied name to validate against storage; undefined skips the mismatch check

string

Prefix prepended to thrown error messages (include trailing space)

Promise<string>

Canonical adapter name resolved by the adapter runtime