"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlexaErrorType = exports.TemperatureSensorScale = exports.ThermostatMode = exports.EndpointHealth = exports.PowerController = exports.PowerState = exports.AlexaActions = exports.DisplayCategory = exports.AlexaInterfaceType = void 0; // The enums of 1.x, under their 1.x names. const EndpointHealth_js_1 = require("../registry/interfaces/EndpointHealth.js"); const PowerController_js_1 = require("../registry/interfaces/PowerController.js"); /** Every interface name of 1.x. registry.get() takes a member as it takes the namespace, which is its value. */ var AlexaInterfaceType; (function (AlexaInterfaceType) { AlexaInterfaceType["APPLICATION_STATE_REPORTER"] = "Alexa.ApplicationStateReporter"; AlexaInterfaceType["AUDIO_PLAY_QUEUE"] = "Alexa.Audio.PlayQueue"; AlexaInterfaceType["AUTHORIZATION_CONTROLLER"] = "Alexa.AuthorizationController"; AlexaInterfaceType["AUTOMATION_MANAGEMENT"] = "Alexa.AutomationManagement"; AlexaInterfaceType["AUTOMOTIVE_VEHICLE_DATA"] = "Alexa.Automotive.VehicleData"; AlexaInterfaceType["BRIGHTNESS_CONTROLLER"] = "Alexa.BrightnessController"; AlexaInterfaceType["CAMERA_LIVE_VIEW_CONTROLLER"] = "Alexa.Camera.LiveViewController"; AlexaInterfaceType["CAMERA_STREAM_CONTROLLER"] = "Alexa.CameraStreamController"; AlexaInterfaceType["CHANNEL_CONTROLLER"] = "Alexa.ChannelController"; AlexaInterfaceType["COLOR_CONTROLLER"] = "Alexa.ColorController"; AlexaInterfaceType["COLOR_TEMPERATURE_CONTROLLER"] = "Alexa.ColorTemperatureController"; AlexaInterfaceType["COMMISSIONABLE"] = "Alexa.Commissionable"; AlexaInterfaceType["CONSENT_MANAGEMENT_CONSENT_REQUIRED_REPORTER"] = "Alexa.ConsentManagement.ConsentRequiredReporter"; AlexaInterfaceType["CONTACT_SENSOR"] = "Alexa.ContactSensor"; AlexaInterfaceType["COOKING"] = "Alexa.Cooking"; AlexaInterfaceType["COOKING_FOOD_TEMPERATURE_CONTROLLER"] = "Alexa.Cooking.FoodTemperatureController"; AlexaInterfaceType["COOKING_FOOD_TEMPERATURE_SENSOR"] = "Alexa.Cooking.FoodTemperatureSensor"; AlexaInterfaceType["COOKING_PRESET_CONTROLLER"] = "Alexa.Cooking.PresetController"; AlexaInterfaceType["COOKING_TEMPERATURE_CONTROLLER"] = "Alexa.Cooking.TemperatureController"; AlexaInterfaceType["COOKING_TEMPERATURE_SENSOR"] = "Alexa.Cooking.TemperatureSensor"; AlexaInterfaceType["COOKING_TIME_CONTROLLER"] = "Alexa.Cooking.TimeController"; AlexaInterfaceType["DATA_CONTROLLER"] = "Alexa.DataController"; AlexaInterfaceType["DEVICE_USAGE_ESTIMATION"] = "Alexa.DeviceUsage.Estimation"; AlexaInterfaceType["DEVICE_USAGE_METER"] = "Alexa.DeviceUsage.Meter"; AlexaInterfaceType["DOORBELL_EVENT_SOURCE"] = "Alexa.DoorbellEventSource"; AlexaInterfaceType["ENDPOINT_HEALTH"] = "Alexa.EndpointHealth"; AlexaInterfaceType["EQUALIZER_CONTROLLER"] = "Alexa.EqualizerController"; AlexaInterfaceType["INPUT_CONTROLLER"] = "Alexa.InputController"; AlexaInterfaceType["INVENTORY_LEVEL_SENSOR"] = "Alexa.InventoryLevelSensor"; AlexaInterfaceType["INVENTORY_LEVEL_USAGE_SENSOR"] = "Alexa.InventoryLevelUsageSensor"; AlexaInterfaceType["INVENTORY_USAGE_SENSOR"] = "Alexa.InventoryUsageSensor"; AlexaInterfaceType["KEYPAD_CONTROLLER"] = "Alexa.KeypadController"; AlexaInterfaceType["LAUNCHER"] = "Alexa.Launcher"; AlexaInterfaceType["LOCK_CONTROLLER"] = "Alexa.LockController"; AlexaInterfaceType["MEDIA_PLAYBACK"] = "Alexa.Media.Playback"; AlexaInterfaceType["MEDIA_PLAY_QUEUE"] = "Alexa.Media.PlayQueue"; AlexaInterfaceType["MEDIA_SEARCH"] = "Alexa.Media.Search"; AlexaInterfaceType["MODE_CONTROLLER"] = "Alexa.ModeController"; AlexaInterfaceType["MOTION_SENSOR"] = "Alexa.MotionSensor"; AlexaInterfaceType["PERCENTAGE_CONTROLLER"] = "Alexa.PercentageController"; AlexaInterfaceType["PLAYBACK_CONTROLLER"] = "Alexa.PlaybackController"; AlexaInterfaceType["PLAYBACK_STATE_REPORTER"] = "Alexa.PlaybackStateReporter"; AlexaInterfaceType["POWER_CONTROLLER"] = "Alexa.PowerController"; AlexaInterfaceType["POWER_LEVEL_CONTROLLER"] = "Alexa.PowerLevelController"; AlexaInterfaceType["PROACTIVE_NOTIFICATION_SOURCE"] = "Alexa.ProactiveNotificationSource"; AlexaInterfaceType["RANGE_CONTROLLER"] = "Alexa.RangeController"; AlexaInterfaceType["RECORD_CONTROLLER"] = "Alexa.RecordController"; AlexaInterfaceType["REMOTE_VIDEO_PLAYER"] = "Alexa.RemoteVideoPlayer"; AlexaInterfaceType["RTC_SESSION_CONTROLLER"] = "Alexa.RTCSessionController"; AlexaInterfaceType["SCENE_CONTROLLER"] = "Alexa.SceneController"; AlexaInterfaceType["SECURITY_PANEL_CONTROLLER"] = "Alexa.SecurityPanelController"; AlexaInterfaceType["SECURITY_PANEL_CONTROLLER_ALERT"] = "Alexa.SecurityPanelController.Alert"; AlexaInterfaceType["SEEK_CONTROLLER"] = "Alexa.SeekController"; AlexaInterfaceType["SIMPLE_EVENT_SOURCE"] = "Alexa.SimpleEventSource"; AlexaInterfaceType["SMART_VISION_OBJECT_DETECTION_SENSOR"] = "Alexa.SmartVision.ObjectDetectionSensor"; AlexaInterfaceType["SMART_VISION_SNAPSHOT_PROVIDER"] = "Alexa.SmartVision.SnapshotProvider"; AlexaInterfaceType["SPEAKER"] = "Alexa.Speaker"; AlexaInterfaceType["STEP_SPEAKER"] = "Alexa.StepSpeaker"; AlexaInterfaceType["TEMPERATURE_SENSOR"] = "Alexa.TemperatureSensor"; AlexaInterfaceType["THERMOSTAT_CONTROLLER"] = "Alexa.ThermostatController"; AlexaInterfaceType["THERMOSTAT_CONTROLLER_CONFIGURATION"] = "Alexa.ThermostatController.Configuration"; AlexaInterfaceType["THERMOSTAT_CONTROLLER_HVAC_COMPONENTS"] = "Alexa.ThermostatController.HVAC.Components"; AlexaInterfaceType["THERMOSTAT_CONTROLLER_SCHEDULE"] = "Alexa.ThermostatController.Schedule"; AlexaInterfaceType["TIME_HOLD_CONTROLLER"] = "Alexa.TimeHoldController"; AlexaInterfaceType["TOGGLE_CONTROLLER"] = "Alexa.ToggleController"; AlexaInterfaceType["UI_CONTROLLER"] = "Alexa.UIController"; AlexaInterfaceType["USER_PREFERENCE"] = "Alexa.UserPreference"; AlexaInterfaceType["VIDEO_RECORDER"] = "Alexa.VideoRecorder"; AlexaInterfaceType["WAKE_ON_LAN_CONTROLLER"] = "Alexa.WakeOnLANController"; /** Not an interface: declaring it throws a DeclarationError. Kept because 1.x had it. */ AlexaInterfaceType["UNKNOWN"] = "UNKNOWN"; })(AlexaInterfaceType || (exports.AlexaInterfaceType = AlexaInterfaceType = {})); var DisplayCategory; (function (DisplayCategory) { DisplayCategory["ACTIVITY_TRIGGER"] = "ACTIVITY_TRIGGER"; DisplayCategory["AIR_CONDITIONER"] = "AIR_CONDITIONER"; DisplayCategory["AIR_FRESHENER"] = "AIR_FRESHENER"; DisplayCategory["AIR_PURIFIER"] = "AIR_PURIFIER"; DisplayCategory["AIR_QUALITY_MONITOR"] = "AIR_QUALITY_MONITOR"; DisplayCategory["ALEXA_VOICE_ENABLED"] = "ALEXA_VOICE_ENABLED"; DisplayCategory["AUTO_ACCESSORY"] = "AUTO_ACCESSORY"; DisplayCategory["BLUETOOTH_SPEAKER"] = "BLUETOOTH_SPEAKER"; DisplayCategory["CAMERA"] = "CAMERA"; DisplayCategory["CHRISTMAS_TREE"] = "CHRISTMAS_TREE"; DisplayCategory["COFFEE_MAKER"] = "COFFEE_MAKER"; DisplayCategory["COMPUTER"] = "COMPUTER"; DisplayCategory["CONTACT_SENSOR"] = "CONTACT_SENSOR"; DisplayCategory["DISHWASHER"] = "DISHWASHER"; DisplayCategory["DOOR"] = "DOOR"; DisplayCategory["DOORBELL"] = "DOORBELL"; DisplayCategory["DRYER"] = "DRYER"; DisplayCategory["EXTERIOR_BLIND"] = "EXTERIOR_BLIND"; DisplayCategory["FAN"] = "FAN"; DisplayCategory["GAME_CONSOLE"] = "GAME_CONSOLE"; DisplayCategory["GARAGE_DOOR"] = "GARAGE_DOOR"; DisplayCategory["HEADPHONES"] = "HEADPHONES"; DisplayCategory["HUB"] = "HUB"; DisplayCategory["INTERIOR_BLIND"] = "INTERIOR_BLIND"; DisplayCategory["LAPTOP"] = "LAPTOP"; DisplayCategory["LIGHT"] = "LIGHT"; DisplayCategory["MICROWAVE"] = "MICROWAVE"; DisplayCategory["MOBILE_PHONE"] = "MOBILE_PHONE"; DisplayCategory["MOTION_SENSOR"] = "MOTION_SENSOR"; DisplayCategory["MUSIC_SYSTEM"] = "MUSIC_SYSTEM"; DisplayCategory["NETWORK_HARDWARE"] = "NETWORK_HARDWARE"; DisplayCategory["OTHER"] = "OTHER"; DisplayCategory["OVEN"] = "OVEN"; DisplayCategory["PHONE"] = "PHONE"; DisplayCategory["PRINTER"] = "PRINTER"; DisplayCategory["REMOTE"] = "REMOTE"; DisplayCategory["ROUTER"] = "ROUTER"; DisplayCategory["SCENE_TRIGGER"] = "SCENE_TRIGGER"; DisplayCategory["SCREEN"] = "SCREEN"; DisplayCategory["SECURITY_PANEL"] = "SECURITY_PANEL"; DisplayCategory["SECURITY_SYSTEM"] = "SECURITY_SYSTEM"; DisplayCategory["SLOW_COOKER"] = "SLOW_COOKER"; DisplayCategory["SMARTLOCK"] = "SMARTLOCK"; DisplayCategory["SMARTPLUG"] = "SMARTPLUG"; DisplayCategory["SPEAKER"] = "SPEAKER"; DisplayCategory["STREAMING_DEVICE"] = "STREAMING_DEVICE"; DisplayCategory["SWITCH"] = "SWITCH"; DisplayCategory["TABLET"] = "TABLET"; DisplayCategory["TEMPERATURE_SENSOR"] = "TEMPERATURE_SENSOR"; DisplayCategory["THERMOSTAT"] = "THERMOSTAT"; DisplayCategory["TV"] = "TV"; DisplayCategory["VACUUM_CLEANER"] = "VACUUM_CLEANER"; DisplayCategory["VACUUM"] = "VACUUM"; /** Not on the list of display categories any more; kept for 1.x callers. */ DisplayCategory["VEHICLE"] = "VEHICLE"; DisplayCategory["WASHER"] = "WASHER"; DisplayCategory["WATER_HEATER"] = "WATER_HEATER"; DisplayCategory["WEARABLE"] = "WEARABLE"; })(DisplayCategory || (exports.DisplayCategory = DisplayCategory = {})); var AlexaActions; (function (AlexaActions) { AlexaActions["Open"] = "Alexa.Actions.Open"; AlexaActions["Close"] = "Alexa.Actions.Close"; AlexaActions["Raise"] = "Alexa.Actions.Raise"; AlexaActions["Lower"] = "Alexa.Actions.Lower"; AlexaActions["SetEcoOn"] = "Alexa.Actions.SetEcoOn"; AlexaActions["SetEcoOff"] = "Alexa.Actions.SetEcoOff"; })(AlexaActions || (exports.AlexaActions = AlexaActions = {})); /** The values of powerState and toggleState. */ exports.PowerState = { ON: "ON", OFF: "OFF" }; const Connectivity = { OK: "OK", UNREACHABLE: "UNREACHABLE" }; // PowerController and EndpointHealth were enums in 1.x and are the names of two interfaces. One export serves both: // the descriptor, which also has the members of the enum, and a type of the same name for the values. /** * The Alexa.PowerController interface, for device.add(). PowerController.ON and PowerController.OFF are the 1.x enum * of power states and stay until 3.0: PowerState has the same two members. */ exports.PowerController = Object.assign(PowerController_js_1.PowerController, exports.PowerState); /** The Alexa.EndpointHealth interface, for device.add(). EndpointHealth.OK and EndpointHealth.UNREACHABLE are the 1.x enum of connectivity values. */ exports.EndpointHealth = Object.assign(EndpointHealth_js_1.EndpointHealth, Connectivity); /** The modes of a thermostat the 1.x helpers know. */ var ThermostatMode; (function (ThermostatMode) { ThermostatMode["OFF"] = "OFF"; ThermostatMode["HEAT"] = "HEAT"; ThermostatMode["COOL"] = "COOL"; ThermostatMode["AUTO"] = "AUTO"; ThermostatMode["ECO"] = "ECO"; ThermostatMode["CUSTOM"] = "CUSTOM"; })(ThermostatMode || (exports.ThermostatMode = ThermostatMode = {})); /** The scale of a temperature given to addTemperatureSensorProp() and addThermostatControllerProp(). */ var TemperatureSensorScale; (function (TemperatureSensorScale) { TemperatureSensorScale["CELSIUS"] = "CELSIUS"; TemperatureSensorScale["FAHRENHEIT"] = "FAHRENHEIT"; })(TemperatureSensorScale || (exports.TemperatureSensorScale = TemperatureSensorScale = {})); /** The error types of alexa-errorresponse.html, "Error type values". */ var AlexaErrorType; (function (AlexaErrorType) { AlexaErrorType["ALREADY_IN_OPERATION"] = "ALREADY_IN_OPERATION"; AlexaErrorType["AUTHORIZATION_REQUIRED"] = "AUTHORIZATION_REQUIRED"; AlexaErrorType["BRIDGE_UNREACHABLE"] = "BRIDGE_UNREACHABLE"; AlexaErrorType["BYPASS_NEEDED"] = "BYPASS_NEEDED"; AlexaErrorType["CLOUD_CONTROL_DISABLED"] = "CLOUD_CONTROL_DISABLED"; AlexaErrorType["CHILD_LOCK"] = "CHILD_LOCK"; AlexaErrorType["CONFIGURATION_UPDATE_NOT_ALLOWED"] = "CONFIGURATION_UPDATE_NOT_ALLOWED"; AlexaErrorType["COOK_DURATION_TOO_LONG"] = "COOK_DURATION_TOO_LONG"; AlexaErrorType["COOLING_LOCKOUT_TEMPERATURE_VALUE_OUT_OF_RANGE"] = "COOLING_LOCKOUT_TEMPERATURE_VALUE_OUT_OF_RANGE"; AlexaErrorType["COOLING_STAGES_EXCEEDS_LIMIT"] = "COOLING_STAGES_EXCEEDS_LIMIT"; AlexaErrorType["DATA_DELETION_NOT_SUPPORTED"] = "DATA_DELETION_NOT_SUPPORTED"; AlexaErrorType["DATA_RETRIEVAL_NOT_SUPPORTED"] = "DATA_RETRIEVAL_NOT_SUPPORTED"; AlexaErrorType["DEVICE_STUCK"] = "DEVICE_STUCK"; AlexaErrorType["DISABLED_BY_USER"] = "DISABLED_BY_USER"; AlexaErrorType["DO_NOT_DISTURB_MODE"] = "DO_NOT_DISTURB_MODE"; AlexaErrorType["DOOR_CLOSED_TOO_LONG"] = "DOOR_CLOSED_TOO_LONG"; AlexaErrorType["DOOR_OPEN"] = "DOOR_OPEN"; AlexaErrorType["DUAL_SETPOINTS_UNSUPPORTED"] = "DUAL_SETPOINTS_UNSUPPORTED"; AlexaErrorType["ENDPOINT_BUSY"] = "ENDPOINT_BUSY"; AlexaErrorType["ENDPOINT_CONTROL_UNAVAILABLE"] = "ENDPOINT_CONTROL_UNAVAILABLE"; AlexaErrorType["ENDPOINT_LOW_POWER"] = "ENDPOINT_LOW_POWER"; AlexaErrorType["ENDPOINT_UNREACHABLE"] = "ENDPOINT_UNREACHABLE"; AlexaErrorType["EXCEEDED_PIN_ATTEMPTS"] = "EXCEEDED_PIN_ATTEMPTS"; AlexaErrorType["EXPIRED_AUTHORIZATION_CREDENTIAL"] = "EXPIRED_AUTHORIZATION_CREDENTIAL"; AlexaErrorType["FAILED_TO_BOOTSTRAP_COMMISSIONING_PROCESS"] = "FAILED_TO_BOOTSTRAP_COMMISSIONING_PROCESS"; AlexaErrorType["FIRMWARE_OUT_OF_DATE"] = "FIRMWARE_OUT_OF_DATE"; AlexaErrorType["HARDWARE_MALFUNCTION"] = "HARDWARE_MALFUNCTION"; AlexaErrorType["HEATING_LOCKOUT_TEMPERATURE_VALUE_OUT_OF_RANGE"] = "HEATING_LOCKOUT_TEMPERATURE_VALUE_OUT_OF_RANGE"; AlexaErrorType["HEATING_STAGES_EXCEEDS_LIMIT"] = "HEATING_STAGES_EXCEEDS_LIMIT"; AlexaErrorType["INSUFFICIENT_PERMISSIONS"] = "INSUFFICIENT_PERMISSIONS"; AlexaErrorType["INSUFFICIENT_RESOURCE"] = "INSUFFICIENT_RESOURCE"; AlexaErrorType["INSUFFICIENT_SPACE"] = "INSUFFICIENT_SPACE"; AlexaErrorType["INTERNAL_ERROR"] = "INTERNAL_ERROR"; AlexaErrorType["INVALID_AUTHORIZATION_CREDENTIAL"] = "INVALID_AUTHORIZATION_CREDENTIAL"; AlexaErrorType["INVALID_AUXILIARY_HEATING_SYSTEM_TYPE"] = "INVALID_AUXILIARY_HEATING_SYSTEM_TYPE"; AlexaErrorType["INVALID_DIRECTIVE"] = "INVALID_DIRECTIVE"; AlexaErrorType["INVALID_SYSTEM_TYPE"] = "INVALID_SYSTEM_TYPE"; AlexaErrorType["INVALID_TARGET_STATE"] = "INVALID_TARGET_STATE"; AlexaErrorType["INVALID_TEMPERATURE_SCALE"] = "INVALID_TEMPERATURE_SCALE"; AlexaErrorType["INVALID_TERMINAL_CONNECTION"] = "INVALID_TERMINAL_CONNECTION"; AlexaErrorType["INVALID_VALUE"] = "INVALID_VALUE"; AlexaErrorType["MAINTENANCE_REQUIRED"] = "MAINTENANCE_REQUIRED"; AlexaErrorType["MAX_COMMISSIONING_LIMIT_REACHED"] = "MAX_COMMISSIONING_LIMIT_REACHED"; AlexaErrorType["MISSING_SETUP_INFORMATION"] = "MISSING_SETUP_INFORMATION"; AlexaErrorType["NO_SUCH_ENDPOINT"] = "NO_SUCH_ENDPOINT"; AlexaErrorType["NOT_CALIBRATED"] = "NOT_CALIBRATED"; AlexaErrorType["NOT_IN_OPERATION"] = "NOT_IN_OPERATION"; AlexaErrorType["NOT_READY"] = "NOT_READY"; AlexaErrorType["NOT_SUPPORTED_IN_CURRENT_MODE"] = "NOT_SUPPORTED_IN_CURRENT_MODE"; AlexaErrorType["NOT_SUPPORTED_WITH_CURRENT_BATTERY_CHARGE_STATE"] = "NOT_SUPPORTED_WITH_CURRENT_BATTERY_CHARGE_STATE"; AlexaErrorType["OBSTACLE_DETECTED"] = "OBSTACLE_DETECTED"; AlexaErrorType["PARTNER_APPLICATION_REDIRECTION"] = "PARTNER_APPLICATION_REDIRECTION"; AlexaErrorType["PIN_SETUP_REQUIRED"] = "PIN_SETUP_REQUIRED"; AlexaErrorType["POWER_LEVEL_NOT_SUPPORTED"] = "POWER_LEVEL_NOT_SUPPORTED"; AlexaErrorType["PREHEAT_REQUIRED"] = "PREHEAT_REQUIRED"; AlexaErrorType["PROBE_REQUIRED"] = "PROBE_REQUIRED"; AlexaErrorType["RATE_LIMIT_EXCEEDED"] = "RATE_LIMIT_EXCEEDED"; AlexaErrorType["REMOTE_START_NOT_SUPPORTED"] = "REMOTE_START_NOT_SUPPORTED"; AlexaErrorType["REMOVE_PROBE"] = "REMOVE_PROBE"; AlexaErrorType["REMOTE_START_DISABLED"] = "REMOTE_START_DISABLED"; AlexaErrorType["REQUESTED_SETPOINTS_TOO_CLOSE"] = "REQUESTED_SETPOINTS_TOO_CLOSE"; AlexaErrorType["SAFETY_BEAM_BREACHED"] = "SAFETY_BEAM_BREACHED"; AlexaErrorType["SUBSCRIPTION_REQUIRED"] = "SUBSCRIPTION_REQUIRED"; AlexaErrorType["TEMPERATURE_VALUE_OUT_OF_RANGE"] = "TEMPERATURE_VALUE_OUT_OF_RANGE"; AlexaErrorType["THERMOSTAT_IS_OFF"] = "THERMOSTAT_IS_OFF"; AlexaErrorType["TOO_MANY_FAILED_ATTEMPTS"] = "TOO_MANY_FAILED_ATTEMPTS"; AlexaErrorType["TRIPLE_SETPOINTS_UNSUPPORTED"] = "TRIPLE_SETPOINTS_UNSUPPORTED"; AlexaErrorType["UNABLE_TO_CHARGE"] = "UNABLE_TO_CHARGE"; AlexaErrorType["UNAUTHORIZED"] = "UNAUTHORIZED"; AlexaErrorType["UNCLEARED_ALARM"] = "UNCLEARED_ALARM"; AlexaErrorType["UNSUPPORTED_THERMOSTAT_MODE"] = "UNSUPPORTED_THERMOSTAT_MODE"; AlexaErrorType["UNCLEARED_TROUBLE"] = "UNCLEARED_TROUBLE"; AlexaErrorType["UNWILLING_TO_SET_SCHEDULE"] = "UNWILLING_TO_SET_SCHEDULE"; AlexaErrorType["UNWILLING_TO_SET_VALUE"] = "UNWILLING_TO_SET_VALUE"; AlexaErrorType["VALUE_OUT_OF_RANGE"] = "VALUE_OUT_OF_RANGE"; })(AlexaErrorType || (exports.AlexaErrorType = AlexaErrorType = {}));