"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EndpointHealth = exports.CONNECTIVITY_REASONS = void 0; const schema_js_1 = require("../schema.js"); const types_js_1 = require("../types.js"); exports.CONNECTIVITY_REASONS = [ "WIFI_BAD_PASSWORD", "WIFI_AP_NOT_FOUND", "WIFI_ROUTER_UNREACHABLE", "WIFI_AP_CHANNEL_QUALITY_LOW", "INTERNET_UNREACHABLE", "CAPTIVE_PORTAL_CHECK_FAILED", "UNKNOWN", ]; /** * Version 3.1, as the page is titled. It defines connectivity only. Examples on other pages declare 3 and 3.2; * alex2node 1.x declared 3.3, which no page mentions. */ exports.EndpointHealth = (0, types_js_1.defineInterface)({ namespace: "Alexa.EndpointHealth", version: "3.1", doc: "https://developer.amazon.com/docs/alexaplus/device-apis/alexa-endpointhealth.html", kind: "sensor", tier: 1, instanced: false, properties: { connectivity: { name: "connectivity", value: schema_js_1.s.object({ value: schema_js_1.s.enum("OK", "UNREACHABLE"), reason: schema_js_1.s.optional(schema_js_1.s.enum(...exports.CONNECTIVITY_REASONS)), }), note: "in every Response, StateReport and ChangeReport; a change of it reported within three seconds", }, }, directives: {}, });