openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
39 lines • 1.3 kB
TypeScript
import "./agent-harness-runtime-CZIVRpx-.js";
import { x as OperatorScope } from "./types.openclaw-BdCLfP4c.js";
import { L as GatewayClientMode, R as GatewayClientName } from "./types.core-BppAaUkF.js";
import { Command } from "commander";
//#region src/infra/device-identity-store.d.ts
type DeviceIdentity = {
deviceId: string;
publicKeyPem: string;
privateKeyPem: string;
};
//#endregion
//#region src/cli/gateway-rpc.types.d.ts
/** Common gateway RPC flags accepted by direct gateway command helpers. */
type GatewayRpcOpts = {
url?: string;
port?: string;
token?: string;
password?: string;
timeout?: string;
expectFinal?: boolean;
json?: boolean;
};
//#endregion
//#region src/cli/gateway-rpc.d.ts
declare function addGatewayClientOptions(cmd: Command, defaults?: {
timeoutMs?: number;
}): Command;
declare function callGatewayFromCli(method: string, opts: GatewayRpcOpts, params?: unknown, extra?: {
clientName?: GatewayClientName;
mode?: GatewayClientMode;
deviceIdentity?: DeviceIdentity | null;
signal?: AbortSignal;
expectFinal?: boolean;
progress?: boolean;
scopes?: OperatorScope[];
sharedStateMode?: "read-only";
}): Promise<Record<string, unknown>>;
//#endregion
export { callGatewayFromCli as n, GatewayRpcOpts as r, addGatewayClientOptions as t };