mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 09:49:49 +00:00
34 lines
795 B
TypeScript
34 lines
795 B
TypeScript
import type { ChannelRouteRef, ChannelRouteTargetInput } from "../plugin-sdk/channel-route.js";
|
|
|
|
export type DeliveryIntentRef = {
|
|
id: string;
|
|
kind: "outbound_queue";
|
|
queuePolicy?: "required" | "best_effort";
|
|
};
|
|
|
|
export type DeliveryContext = Pick<
|
|
ChannelRouteTargetInput,
|
|
"accountId" | "channel" | "threadId" | "to"
|
|
> & {
|
|
channel?: string;
|
|
to?: string;
|
|
accountId?: string;
|
|
threadId?: string | number;
|
|
deliveryIntent?: DeliveryIntentRef;
|
|
};
|
|
|
|
export type DeliveryContextSessionSource = {
|
|
route?: ChannelRouteRef;
|
|
channel?: string;
|
|
lastChannel?: string;
|
|
lastTo?: string;
|
|
lastAccountId?: string;
|
|
lastThreadId?: string | number;
|
|
origin?: {
|
|
provider?: string;
|
|
accountId?: string;
|
|
threadId?: string | number;
|
|
};
|
|
deliveryContext?: DeliveryContext;
|
|
};
|