openclaw/src/test-utils/internal-hook-event-payload.ts

16 lines
258 B
TypeScript

export function createInternalHookEventPayload(
type: string,
action: string,
sessionKey: string,
context: Record<string, unknown>,
) {
return {
type,
action,
sessionKey,
context,
timestamp: new Date(),
messages: [],
};
}