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>
22 lines
1.1 KiB
TypeScript
22 lines
1.1 KiB
TypeScript
// The messages of the bridge without the bridge: builders, the state collector and the errors.
|
|
export {
|
|
changeReport, deferredResponse, doorbellPress, errorResponse, proactiveEvent, response, sceneEvent, simpleEvent,
|
|
stateReport, MessageError,
|
|
} from "./build.js";
|
|
export type {
|
|
ChangeReportFields, DoorbellPressFields, ErrorResponseFields, ProactiveEventFields, ResponseFields, SceneEventFields,
|
|
SimpleEventFields,
|
|
} from "./build.js";
|
|
export { AlexaError, AlexaErrors, errorNamespace } from "./errors.js";
|
|
export type {
|
|
ChargeState, ControlUnavailableReason, CurrentDeviceMode, EndpointNeedingBypass, MaintenanceAction,
|
|
PlainErrorHelpers, ResourceType, ValidRange,
|
|
} from "./errors.js";
|
|
export { property } from "./property.js";
|
|
export type { PropertyOptions } from "./property.js";
|
|
export { StateBuilder } from "./StateBuilder.js";
|
|
export type { StateBuilderOptions, Target } from "./StateBuilder.js";
|
|
export type {
|
|
ChangeCause, ChangeReportMessage, Context, DeferredResponseMessage, Endpoint, ErrorResponseMessage, Event, Header,
|
|
ProactiveEventMessage, Property, ResponseMessage, SceneEventMessage,
|
|
} from "./types.js";
|