UNPKG

node-firewalla

Version:

Package to talk your firewalla box & API

42 lines 1.22 kB
/// <reference types="node" /> export interface FWMessageResult { } export declare class FWMessage { type: string; data: object; target: string; uuid: string; /** * @param {string} type - message type (cmd, init, set, get) * @param {object} data - the payload of the message * @param {string} target - the host that needs to receive the message */ constructor(type: string, data: object, target?: string); toJSON(eid: string): { mtype: string; message: { mtype: string; type: string; msg: string; from: string; obj: { type: string; id: string; mtype: string; target: string; data: object; }; appInfo: { deviceName: string; appID: string; platform: NodeJS.Platform; timezone: string; language: string; version: string; eid: string; }; compressMode: number; }; }; } //# sourceMappingURL=FWMessage.d.ts.map