openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
37 lines (36 loc) • 1.57 kB
TypeScript
import type { ChannelId, ChannelThreadingAdapter, ChannelThreadingToolContext } from "../../channels/plugins/types.js";
import type { OpenClawConfig } from "../../config/config.js";
import type { OutboundSessionRoute, ResolveOutboundSessionRouteParams } from "./outbound-session.js";
import type { ResolvedMessagingTarget } from "./target-resolver.js";
type ResolveAutoThreadId = NonNullable<ChannelThreadingAdapter["resolveAutoThreadId"]>;
export declare function resolveAndApplyOutboundThreadId(actionParams: Record<string, unknown>, context: {
cfg: OpenClawConfig;
to: string;
accountId?: string | null;
toolContext?: ChannelThreadingToolContext;
resolveAutoThreadId?: ResolveAutoThreadId;
}): string | undefined;
export declare function prepareOutboundMirrorRoute(params: {
cfg: OpenClawConfig;
channel: ChannelId;
to: string;
actionParams: Record<string, unknown>;
accountId?: string | null;
toolContext?: ChannelThreadingToolContext;
agentId?: string;
dryRun?: boolean;
resolvedTarget?: ResolvedMessagingTarget;
resolveAutoThreadId?: ResolveAutoThreadId;
resolveOutboundSessionRoute: (params: ResolveOutboundSessionRouteParams) => Promise<OutboundSessionRoute | null>;
ensureOutboundSessionEntry: (params: {
cfg: OpenClawConfig;
agentId: string;
channel: ChannelId;
accountId?: string | null;
route: OutboundSessionRoute;
}) => Promise<void>;
}): Promise<{
resolvedThreadId?: string;
outboundRoute: OutboundSessionRoute | null;
}>;
export {};