@tikoci/centrs
    Preparing search index...

    Interface ProtocolAdapter

    Runtime transport seam. The orchestrator drives validation and data fetch through these operations so REST and native-api share the same pipeline and envelope shape.

    interface ProtocolAdapter {
        capabilities: ProtocolAdapterCapabilities;
        protocol:
            | "rest-api"
            | "native-api"
            | "mac-telnet"
            | "ssh"
            | "snmp"
            | "mndp"
            | "romon"
            | "winbox-terminal"
            | "btest";
        apiRequest(
            request: ProtocolApiRequest,
            options?: ProtocolSendOptions,
        ): Promise<ProtocolApiResult>;
        close(): Promise<void>;
        execute(
            request: ProtocolExecuteRequest,
            options?: ProtocolSendOptions,
        ): Promise<ProtocolExecuteResult>;
        getSingleton(path: string, options?: RetrieveReadOptions): Promise<unknown>;
        inspect(
            request: "syntax" | "child" | "completion" | "highlight",
            path: string,
            input?: string,
        ): Promise<unknown[]>;
        list(path: string, options: RetrieveListOptions): Promise<unknown[]>;
        stream(
            request: ProtocolApiRequest,
            options: ProtocolListenOptions,
        ): AsyncIterable<ProtocolStreamReply>;
    }
    Index

    Capability flags describing what this adapter supports.

    protocol:
        | "rest-api"
        | "native-api"
        | "mac-telnet"
        | "ssh"
        | "snmp"
        | "mndp"
        | "romon"
        | "winbox-terminal"
        | "btest"

    Transport this adapter speaks.

    • Release any underlying connection. Safe to call when never connected.

      Returns Promise<void>

    • input is CLI text for completion or highlight.

      Parameters

      • request: "syntax" | "child" | "completion" | "highlight"
      • path: string
      • Optionalinput: string

      Returns Promise<unknown[]>