@camstack/addon-import-alexa 0.2.150 → 0.2.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +6 -4
- package/dist/addon.mjs +6 -4
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -133515,6 +133515,11 @@ var alexaSpeakSessionsEntryKind = defineEntryKind("speak-sessions", {
|
|
|
133515
133515
|
schema: entryBody({ session: string().default("").meta({ secret: true }) }),
|
|
133516
133516
|
writeTrigger: "an Echo worker signs in as an Alexa account broker"
|
|
133517
133517
|
});
|
|
133518
|
+
/** Every kind this addon declares, keyed by its name: `records.declare` refuses any other key. */
|
|
133519
|
+
var alexaRecordKinds = {
|
|
133520
|
+
brokers: alexaBrokersEntryKind,
|
|
133521
|
+
"speak-sessions": alexaSpeakSessionsEntryKind
|
|
133522
|
+
};
|
|
133518
133523
|
//#endregion
|
|
133519
133524
|
//#region src/alexa-broker-store.ts
|
|
133520
133525
|
function rowToEntry(id, data) {
|
|
@@ -135242,10 +135247,7 @@ var AlexaImportAddon = class extends BaseDeviceProvider {
|
|
|
135242
135247
|
const regs = this.providerRegistrationsFromSuper(await super.onInitialize());
|
|
135243
135248
|
const records = this.ctx.records;
|
|
135244
135249
|
if (records === void 0) throw new Error("import-alexa: ctx.records is required (hub-only addon)");
|
|
135245
|
-
await records.declare(
|
|
135246
|
-
brokers: alexaBrokersEntryKind,
|
|
135247
|
-
speakSessions: alexaSpeakSessionsEntryKind
|
|
135248
|
-
});
|
|
135250
|
+
await records.declare(alexaRecordKinds);
|
|
135249
135251
|
this.brokerStore = AlexaBrokerStore.of(records);
|
|
135250
135252
|
this.activeBrokers = await this.loadPersistedBrokers();
|
|
135251
135253
|
this.registry = new AlexaBrokerRegistry(this.ctx.logger, {
|
package/dist/addon.mjs
CHANGED
|
@@ -133514,6 +133514,11 @@ var alexaSpeakSessionsEntryKind = defineEntryKind("speak-sessions", {
|
|
|
133514
133514
|
schema: entryBody({ session: string().default("").meta({ secret: true }) }),
|
|
133515
133515
|
writeTrigger: "an Echo worker signs in as an Alexa account broker"
|
|
133516
133516
|
});
|
|
133517
|
+
/** Every kind this addon declares, keyed by its name: `records.declare` refuses any other key. */
|
|
133518
|
+
var alexaRecordKinds = {
|
|
133519
|
+
brokers: alexaBrokersEntryKind,
|
|
133520
|
+
"speak-sessions": alexaSpeakSessionsEntryKind
|
|
133521
|
+
};
|
|
133517
133522
|
//#endregion
|
|
133518
133523
|
//#region src/alexa-broker-store.ts
|
|
133519
133524
|
function rowToEntry(id, data) {
|
|
@@ -135241,10 +135246,7 @@ var AlexaImportAddon = class extends BaseDeviceProvider {
|
|
|
135241
135246
|
const regs = this.providerRegistrationsFromSuper(await super.onInitialize());
|
|
135242
135247
|
const records = this.ctx.records;
|
|
135243
135248
|
if (records === void 0) throw new Error("import-alexa: ctx.records is required (hub-only addon)");
|
|
135244
|
-
await records.declare(
|
|
135245
|
-
brokers: alexaBrokersEntryKind,
|
|
135246
|
-
speakSessions: alexaSpeakSessionsEntryKind
|
|
135247
|
-
});
|
|
135249
|
+
await records.declare(alexaRecordKinds);
|
|
135248
135250
|
this.brokerStore = AlexaBrokerStore.of(records);
|
|
135249
135251
|
this.activeBrokers = await this.loadPersistedBrokers();
|
|
135250
135252
|
this.registry = new AlexaBrokerRegistry(this.ctx.logger, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.151",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|