Alex2Node/test/fixtures/alexa-docs
David 94b13f733a errors: typed helpers for every documented error type
AlexaErrors has a helper for each of the 73 types of the table on
alexa-errorresponse.html, named after the type in camel case: 63 take the
message only, 10 take the payload fields their page documents. A field the
page requires (reason, currentDeviceMode, currentChargeState, resourceType)
is a required argument, so leaving it out does not compile; from JavaScript
the helper throws a TypeError that lists the values. validRange is optional,
as the page says, and has both ends when given.
temperatureOutOfRange and setpointsTooClose stay as shorter names.
The helpers are compared with the 15 examples of the four error pages.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 21:14:55 +00:00
..
alexa-brightnesscontroller registry: describe an Alexa interface as data 2026-09-28 15:18:22 +00:00
alexa-channelcontroller registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController 2026-09-28 20:54:53 +00:00
alexa-colorcontroller registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-colortemperaturecontroller registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-contactsensor registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-discovery-objects registry: RangeController, ModeController, ToggleController with resources, presets and semantics 2026-09-28 15:50:25 +00:00
alexa-doorbelleventsource registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
alexa-endpointhealth registry: describe an Alexa interface as data 2026-09-28 15:18:22 +00:00
alexa-equalizercontroller registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController 2026-09-28 20:54:53 +00:00
alexa-errorresponse errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
alexa-humiditysensor registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-inputcontroller registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController 2026-09-28 20:54:53 +00:00
alexa-interface registry: describe an Alexa interface as data 2026-09-28 15:18:22 +00:00
alexa-inventorylevelsensor registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
alexa-lockcontroller registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-modecontroller registry: RangeController, ModeController, ToggleController with resources, presets and semantics 2026-09-28 15:50:25 +00:00
alexa-motionsensor registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-percentagecontroller registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-playbackcontroller registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController 2026-09-28 20:54:53 +00:00
alexa-powercontroller registry: describe an Alexa interface as data 2026-09-28 15:18:22 +00:00
alexa-powerlevelcontroller registry: Lock, Color, ColorTemperature, Percentage, PowerLevel, Contact, Motion, Humidity 2026-09-28 20:29:04 +00:00
alexa-rangecontroller registry: RangeController, ModeController, ToggleController with resources, presets and semantics 2026-09-28 15:50:25 +00:00
alexa-safety-errorresponse errors: typed helpers for every documented error type 2026-09-28 21:14:55 +00:00
alexa-scenecontroller registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
alexa-securitypanelcontroller registry: SecurityPanelController with Arm.Response and its errors 2026-09-28 20:50:57 +00:00
alexa-securitypanelcontroller-errorresponse registry: SecurityPanelController with Arm.Response and its errors 2026-09-28 20:50:57 +00:00
alexa-simpleeventsource registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
alexa-speaker registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController 2026-09-28 20:54:53 +00:00
alexa-stepspeaker registry: Speaker, StepSpeaker, EqualizerController, PlaybackController, PlaybackStateReporter, InputController, ChannelController 2026-09-28 20:54:53 +00:00
alexa-temperaturesensor registry: describe an Alexa interface as data 2026-09-28 15:18:22 +00:00
alexa-thermostatcontroller registry: ThermostatController 3.2 and ThermostatController.Schedule 2026-09-28 20:34:49 +00:00
alexa-thermostatcontroller-errorresponse registry: ThermostatController 3.2 and ThermostatController.Schedule 2026-09-28 20:34:49 +00:00
alexa-thermostatcontroller-schedule registry: ThermostatController 3.2 and ThermostatController.Schedule 2026-09-28 20:34:49 +00:00
alexa-timeholdcontroller registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00
alexa-togglecontroller registry: RangeController, ModeController, ToggleController with resources, presets and semantics 2026-09-28 15:50:25 +00:00
alexa-wakeonlancontroller registry: SceneController events, DoorbellEventSource, SimpleEventSource, TimeHoldController, InventoryLevelSensor, WakeOnLANController 2026-09-28 21:01:53 +00:00