16 lines
258 B
TypeScript
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: [],
|
|
};
|
|
}
|