UNPKG

matterbridge-dyson-robot

Version:

A Matterbridge plugin that connects Dyson robot vacuums and air treatment devices to the Matter smart home ecosystem via their local or cloud MQTT APIs.

151 lines 4.81 kB
/** * This module was automatically generated by `ts-interface-builder` */ import * as t from "ts-interface-checker"; // tslint:disable:object-literal-key-quotes export const Dyson360MsgDeviceCredentials = t.iface(["DysonMsg"], { "msg": t.lit('DEVICE-CREDENTIALS'), "serialNumber": "string", "apPasswordHash": "string", }); export const Dyson360MsgConnectionStatus = t.iface(["DysonMsg"], { "msg": t.lit('CONNECTION-STATUS'), "status": "string", "phase": "string", "network": "string", "requestId": "string", "ip": "string", }); export const Dyson360MsgHello = t.iface(["DysonMsg"], { "msg": t.lit('HELLO'), "protocol": "string", "serial": "string", "version": "string", }); export const Dyson360MsgGoodbye = t.iface(["DysonMsg"], { "msg": t.lit('GOODBYE'), "reason": t.lit('UNKNOWN'), }); export const Dyson360MsgGoneAway = t.iface(["DysonMsg"], { "msg": t.lit('GONE-AWAY'), }); export const Dyson360MsgImBack = t.iface(["DysonMsg"], { "msg": t.lit('IM-BACK'), "state": t.opt("Dyson360State"), }); export const Dyson360MsgCurrentState = t.iface(["DysonMsg"], { "msg": t.lit('CURRENT-STATE'), "batteryChargeLevel": "number", "cleanDuration": t.opt("number"), "cleanId": "string", "currentVacuumPowerMode": "Dyson360PowerMode", "defaultVacuumPowerMode": "Dyson360PowerMode", "currentCleaningMode": t.opt("Dyson360CleaningMode"), "defaultCleaningMode": t.opt("Dyson360CleaningMode"), "faults": t.opt("Dyson360Faults"), "fullCleanType": "Dyson360CleaningType", "globalPosition": "Dyson360Position", "state": "Dyson360State", }); export const Dyson360MsgStateChange = t.iface(["DysonMsg"], { "msg": t.lit('STATE-CHANGE'), "batteryChargeLevel": "number", "cleanDuration": t.opt("number"), "cleanId": "string", "currentVacuumPowerMode": "Dyson360PowerMode", "defaultVacuumPowerMode": "Dyson360PowerMode", "currentCleaningMode": t.opt("Dyson360CleaningMode"), "defaultCleaningMode": t.opt("Dyson360CleaningMode"), "faults": t.opt("Dyson360Faults"), "fullCleanType": "Dyson360CleaningType", "globalPosition": "Dyson360Position", "newstate": "Dyson360State", "oldstate": "Dyson360State", "endOfClean": t.opt("boolean"), }); export const Dyson360MsgMapData = t.iface(["DysonMsg"], { "msg": t.lit('MAP-DATA'), "gridID": "string", "cleanId": "string", "data": t.iface([], { "content": "string", "contentType": "string", "contentEncoding": "string", }), }); export const Dyson360MsgMapGlobal = t.iface(["DysonMsg"], { "msg": t.lit('MAP-GLOBAL'), "angle": "number", "cleanId": "string", "gridID": "string", "x": "number", "y": "number", }); export const Dyson360MsgMapGrid = t.iface(["DysonMsg"], { "msg": t.lit('MAP-GRID'), "anchor": "Dyson360Position", "cleanId": "string", "gridID": "string", "height": "number", "resolution": "number", "width": "number", }); export const Dyson360MsgTelemetryData = t.iface(["DysonMsg"], { "msg": t.lit('TELEMETRY-DATA'), "field1": "string", "field2": "string", "field3": "string", "field4": "string", "id": "string", }); export const Dyson360MsgRequestCurrentState = t.iface(["DysonMsg"], { "msg": t.lit('REQUEST-CURRENT-STATE'), "mode-reason": t.opt("DysonModeReason"), }); export const Dyson360MsgStateSet = t.iface(["DysonMsg"], { "msg": t.lit('STATE-SET'), "mode-reason": "DysonModeReason", "data": t.iface([], { "defaultVacuumPowerMode": "Dyson360PowerMode", }), }); export const Dyson360MsgStart = t.iface(["DysonMsg"], { "msg": t.lit('START'), "mode-reason": "DysonModeReason", "fullCleanType": "Dyson360CleaningType", "cleaningMode": t.opt("Dyson360CleaningMode"), }); export const Dyson360MsgPause = t.iface(["DysonMsg"], { "msg": t.lit('PAUSE'), "mode-reason": "DysonModeReason", }); export const Dyson360MsgResume = t.iface(["DysonMsg"], { "msg": t.lit('RESUME'), "mode-reason": "DysonModeReason", }); export const Dyson360MsgAbort = t.iface(["DysonMsg"], { "msg": t.lit('ABORT'), "mode-reason": "DysonModeReason", }); const exportedTypeSuite = { Dyson360MsgDeviceCredentials, Dyson360MsgConnectionStatus, Dyson360MsgHello, Dyson360MsgGoodbye, Dyson360MsgGoneAway, Dyson360MsgImBack, Dyson360MsgCurrentState, Dyson360MsgStateChange, Dyson360MsgMapData, Dyson360MsgMapGlobal, Dyson360MsgMapGrid, Dyson360MsgTelemetryData, Dyson360MsgRequestCurrentState, Dyson360MsgStateSet, Dyson360MsgStart, Dyson360MsgPause, Dyson360MsgResume, Dyson360MsgAbort, }; export default exportedTypeSuite; //# sourceMappingURL=dyson-360-msg-types-ti.js.map