openskynet / src /test-utils /internal-hook-event-payload.ts
Darochin's picture
Mirror OpenSkyNet workspace snapshot from Git HEAD
fc93158 verified
export function createInternalHookEventPayload(
type: string,
action: string,
sessionKey: string,
context: Record<string, unknown>,
) {
return {
type,
action,
sessionKey,
context,
timestamp: new Date(),
messages: [],
};
}