"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeEvent = makeEvent;
const crypto_1 = require("crypto");
function makeEvent(patternId, type, opts) {
    return {
        id: (0, crypto_1.randomUUID)(),
        patternId,
        type,
        timestamp: opts?.timestamp ?? Date.now(),
        language: opts?.language,
        category: opts?.category,
        context: opts?.context,
        duration: opts?.duration,
        result: opts?.result,
        failureType: opts?.failureType,
        failureReason: opts?.failureReason,
    };
}
//# sourceMappingURL=outcome-types.js.map