UNPKG

@atomist/automation-client

Version:

Atomist API for software low-level client

22 lines 1.08 kB
import { EventFired } from "../../../HandleEvent"; import { CommandInvocation } from "../../invoker/Payload"; import { AutomationContext } from "../../util/cls"; import { RegistrationConfirmation } from "../websocket/WebSocketRequestProcessor"; export interface MasterMessage { type: "atomist:registration" | "atomist:event" | "atomist:command"; registration: RegistrationConfirmation; context: AutomationContext; data?: any; } export interface MasterManagementMessage { type: "atomist:gc" | "atomist:heapdump" | "atomist:mtrace"; } export interface WorkerMessage { type: "atomist:online" | "atomist:status" | "atomist:message" | "atomist:command_success" | "atomist:command_failure" | "atomist:event_success" | "atomist:event_failure" | "atomist:shutdown"; event?: EventFired<any> | CommandInvocation; context: AutomationContext; data?: any; } export declare function broadcast(message: MasterMessage | MasterManagementMessage): void; export declare function workerSend(message: WorkerMessage): Promise<any>; //# sourceMappingURL=messages.d.ts.map