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.
213 lines • 7.6 kB
JavaScript
/**
* 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'),
"model": t.opt("string"),
"productHardware": t.opt("string"),
"protocol": "string",
"serial": "string",
"sessionId": t.opt("string"),
"version": "string",
});
export const Dyson360MsgGoodbye = t.iface(["DysonMsg"], {
"msg": t.lit('GOODBYE'),
"reason": "Dyson360GoodbyeReason",
"sessionId": t.opt("string"),
});
export const Dyson360MsgAuthoriseVerifiedUser = t.iface(["DysonMsg"], {
"msg": t.lit('AUTHORISE-VERIFIED-USER'),
"id": "string",
"localpwd": "string",
});
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'),
"activeFaults": t.opt(t.array("Dyson360ActiveFault")),
"batteryChargeLevel": t.opt("number"),
"channel": t.opt("string"),
"cleanDuration": t.opt("number"),
"cleanId": t.opt("string"),
"cleaningProgramme": t.opt("Dyson360CleaningProgramme"),
"currentCleaningMode": t.opt("Dyson360CleaningMode"),
"currentCleaningStrategy": t.opt("Dyson360CleaningStrategy"),
"currentVacuumPowerMode": t.opt("Dyson360PowerMode"),
"defaultCleaningMode": t.opt("Dyson360CleaningMode"),
"defaultCleaningStrategy": t.opt("Dyson360CleaningStrategy"),
"defaultVacuumPowerMode": t.opt("Dyson360PowerMode"),
"faults": t.opt("Dyson360Faults"),
"fullCleanType": t.opt("Dyson360CleaningType"),
"globalPosition": t.opt("Dyson360Position"),
"outOfBoxState": t.opt("Dyson360OutOfBoxState"),
"persistentMapId": t.opt("string"),
"rssi": t.opt("string"),
"sessionId": t.opt("string"),
"state": "Dyson360State",
"traverseTargetId": t.opt("string"),
"zoneId": t.opt("string"),
"zonesDefinitionVersion": t.opt("string"),
"zoneStatus": t.opt(t.array("Dyson360ZoneStatus")),
});
export const Dyson360MsgStateChange = t.iface(["DysonMsg"], {
"msg": t.lit('STATE-CHANGE'),
"activeFaults": t.opt(t.array("Dyson360ActiveFault")),
"batteryChargeLevel": t.opt("number"),
"channel": t.opt("string"),
"cleanDuration": t.opt("number"),
"cleanId": t.opt("string"),
"cleaningProgramme": t.opt("Dyson360CleaningProgramme"),
"currentCleaningMode": t.opt("Dyson360CleaningMode"),
"currentCleaningStrategy": t.opt("Dyson360CleaningStrategy"),
"currentVacuumPowerMode": t.opt("Dyson360PowerMode"),
"defaultCleaningMode": t.opt("Dyson360CleaningMode"),
"defaultCleaningStrategy": t.opt("Dyson360CleaningStrategy"),
"defaultVacuumPowerMode": t.opt("Dyson360PowerMode"),
"endOfClean": t.opt("boolean"),
"faults": t.opt("Dyson360Faults"),
"fullCleanType": t.opt("Dyson360CleaningType"),
"globalPosition": t.opt("Dyson360Position"),
"newActiveFaults": t.opt(t.array("Dyson360ActiveFault")),
"newOutOfBoxState": t.opt("Dyson360OutOfBoxState"),
"newstate": "Dyson360State",
"newZoneId": t.opt("string"),
"oldActiveFaults": t.opt(t.array("Dyson360ActiveFault")),
"oldOutOfBoxState": t.opt("Dyson360OutOfBoxState"),
"oldstate": "Dyson360State",
"oldZoneId": t.opt("string"),
"persistentMapId": t.opt("string"),
"rssi": t.opt("string"),
"sessionId": t.opt("string"),
"traverseTargetId": t.opt("string"),
"zonesDefinitionVersion": t.opt("string"),
"zoneStatus": t.opt(t.array("Dyson360ZoneStatus")),
});
export const Dyson360MsgMapData = t.iface(["DysonMsg"], {
"msg": t.lit('MAP-DATA'),
"gridID": "string",
"cleanId": "string",
"data": t.iface([], {
"content": "string",
"contentType": t.lit('application/json'),
"contentEncoding": t.lit('gzip'),
}),
});
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.opt(t.iface([], {
"defaultVacuumPowerMode": "Dyson360PowerMode",
})),
"defaults": t.opt(t.iface([], {
"defaultCleaningStrategy": "Dyson360CleaningStrategy",
})),
});
export const Dyson360MsgStart = t.iface(["DysonMsg"], {
"msg": t.lit('START'),
"mode-reason": t.opt("DysonModeReason"),
"fullCleanType": "Dyson360CleaningType",
"cleaningMode": t.opt("Dyson360CleaningMode"),
"cleaningProgramme": t.opt("Dyson360CleaningProgramme"),
"cleaningStrategy": t.opt("Dyson360CleaningStrategy"),
"vacuumPowerMode": t.opt("Dyson360PowerMode"),
"cleanId": t.opt("string"),
});
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",
});
export const Dyson360MsgStartMapping = t.iface(["DysonMsg"], {
"msg": t.lit('START-MAPPING'),
"mode-reason": "DysonModeReason",
});
export const Dyson360MsgPersistentMapManifestUpdated = t.iface(["DysonMsg"], {
"msg": t.lit('PERSISTENT-MAP-MANIFEST-UPDATED'),
});
export const Dyson360MsgAcknowledgeFault = t.iface(["DysonMsg"], {
"msg": t.lit('ACKNOWLEDGE-FAULT'),
"mode-reason": "DysonModeReason",
"faultCode": "string",
});
const exportedTypeSuite = {
Dyson360MsgDeviceCredentials,
Dyson360MsgConnectionStatus,
Dyson360MsgHello,
Dyson360MsgGoodbye,
Dyson360MsgAuthoriseVerifiedUser,
Dyson360MsgGoneAway,
Dyson360MsgImBack,
Dyson360MsgCurrentState,
Dyson360MsgStateChange,
Dyson360MsgMapData,
Dyson360MsgMapGlobal,
Dyson360MsgMapGrid,
Dyson360MsgTelemetryData,
Dyson360MsgRequestCurrentState,
Dyson360MsgStateSet,
Dyson360MsgStart,
Dyson360MsgPause,
Dyson360MsgResume,
Dyson360MsgAbort,
Dyson360MsgStartMapping,
Dyson360MsgPersistentMapManifestUpdated,
Dyson360MsgAcknowledgeFault,
};
export default exportedTypeSuite;
//# sourceMappingURL=dyson-360-msg-types-ti.js.map