Skip to main content

Type Alias: BuiltinTransportSpec

type BuiltinTransportSpec =
| {
kind: "playback";
config: PlaybackTransportConfig;
}
| {
kind: "file";
config: FileTransportConfig;
}
| {
kind: "mqtt";
config: MqttTransportConfig;
}
| {
kind: "azure-event-hub";
config: AzureEventHubTransportConfig;
}
| {
kind: "opcua";
config: OpcUaTransportConfig;
};

Defined in: livelink.clients/livelink.agent/sources/data/transports/TransportRegistry.ts:39

A fully-resolved configuration for a built-in transport, its config typed per kind.

Unlike the open TransportSpec (whose { kind: string; config: unknown } member defeats per-kind narrowing so custom kinds can be registered), this closed union lets a consumer that only exposes the bundled transports narrow the config by kind. Custom kinds still go through TransportSpec.