/**
 * Automation emitters — typed wrappers for AutomationEvent domain.
 */
import { createEventEnvelope } from '../events/envelope.js';
function automationEvent(type, data, ctx) {
    return createEventEnvelope(type, { type, ...data }, ctx);
}
export function emitAutomationJobCreated(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_JOB_CREATED', data, ctx));
}
export function emitAutomationJobUpdated(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_JOB_UPDATED', data, ctx));
}
export function emitAutomationJobEnabled(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_JOB_ENABLED', data, ctx));
}
export function emitAutomationJobDisabled(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_JOB_DISABLED', data, ctx));
}
export function emitAutomationRunQueued(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_RUN_QUEUED', data, ctx));
}
export function emitAutomationRunStarted(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_RUN_STARTED', data, ctx));
}
export function emitAutomationRunCompleted(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_RUN_COMPLETED', data, ctx));
}
export function emitAutomationRunFailed(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_RUN_FAILED', data, ctx));
}
export function emitAutomationRunCancelled(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_RUN_CANCELLED', data, ctx));
}
export function emitAutomationScheduleError(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_SCHEDULE_ERROR', data, ctx));
}
export function emitAutomationJobAutoDisabled(bus, ctx, data) {
    bus.emit('automation', automationEvent('AUTOMATION_JOB_AUTO_DISABLED', data, ctx));
}
