import { s } from "../schema.js"; import { defineInterface } from "../types.js"; /** * The base interface: every endpoint lists it (alexa-interface.html, "Support the Alexa interface in all add-ons"). * Its one directive to a device is ReportState, answered with a StateReport. */ export const Alexa = defineInterface({ namespace: "Alexa", version: "3", doc: "https://developer.amazon.com/docs/alexaplus/device-apis/alexa-interface.html", kind: "base", tier: 1, instanced: false, properties: {}, directives: { ReportState: { name: "ReportState", payload: s.object({}) }, }, // { type, interface, version } and nothing else, as in the discovery example of the page discovery: () => ({ properties: false }), });