@camstack/addon-export-alexa 1.2.189 → 1.2.190
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/CHANGELOG.md +6 -0
- package/dist/export-alexa.addon.js +30 -10
- package/dist/export-alexa.addon.mjs +30 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.190] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Its integration-instances provider declares its instance kind and stamps it on every instance.
|
|
15
|
+
|
|
10
16
|
## [1.2.189] - 2026-11-08
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -6040,7 +6040,7 @@ var ZodIssueCode = {
|
|
|
6040
6040
|
var ZodFirstPartyTypeKind;
|
|
6041
6041
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6042
6042
|
//#endregion
|
|
6043
|
-
//#region ../types/dist/sleep-
|
|
6043
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
6044
6044
|
/**
|
|
6045
6045
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6046
6046
|
* window to float samples (D455).
|
|
@@ -7256,6 +7256,7 @@ var RecordIntegrationInstances = class {
|
|
|
7256
7256
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
7257
7257
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
7258
7258
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
7259
|
+
if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
|
|
7259
7260
|
}
|
|
7260
7261
|
/**
|
|
7261
7262
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -7297,10 +7298,21 @@ var RecordIntegrationInstances = class {
|
|
|
7297
7298
|
}
|
|
7298
7299
|
return out;
|
|
7299
7300
|
}
|
|
7301
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
7302
|
+
kindOfBody(body) {
|
|
7303
|
+
if (this.hooks.kindOf !== void 0) {
|
|
7304
|
+
const id = this.hooks.kindOf(body);
|
|
7305
|
+
if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare (D1013)`);
|
|
7306
|
+
return id;
|
|
7307
|
+
}
|
|
7308
|
+
const only = this.hooks.description.kinds[0];
|
|
7309
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
7310
|
+
return only.id;
|
|
7311
|
+
}
|
|
7300
7312
|
viewOf(record) {
|
|
7301
7313
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
7302
7314
|
const rawName = record.data[this.nameField];
|
|
7303
|
-
const kind = this.
|
|
7315
|
+
const kind = this.kindOfBody(record.data);
|
|
7304
7316
|
const health = this.hooks.health?.(record.data, record.id);
|
|
7305
7317
|
return {
|
|
7306
7318
|
id: record.id,
|
|
@@ -7308,7 +7320,7 @@ var RecordIntegrationInstances = class {
|
|
|
7308
7320
|
configured: this.hooks.configured(record.data),
|
|
7309
7321
|
enabled: isInstanceEnabled(record.data),
|
|
7310
7322
|
formValues: shown,
|
|
7311
|
-
|
|
7323
|
+
kind,
|
|
7312
7324
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7313
7325
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7314
7326
|
};
|
|
@@ -49215,7 +49227,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
49215
49227
|
kind: "mutation",
|
|
49216
49228
|
auth: "protected"
|
|
49217
49229
|
});
|
|
49218
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater;
|
|
49230
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
|
|
49219
49231
|
var NUMBER = {
|
|
49220
49232
|
kind: "fixed",
|
|
49221
49233
|
result: ["number"]
|
|
@@ -55002,10 +55014,11 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
55002
55014
|
/** True when `testInstance` really probes the remote. */
|
|
55003
55015
|
canTest: boolean(),
|
|
55004
55016
|
/**
|
|
55005
|
-
* The kinds an instance can be of
|
|
55006
|
-
* Add flow asks which first and sends it as
|
|
55017
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
55018
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
55019
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
55007
55020
|
*/
|
|
55008
|
-
kinds: array(IntegrationInstanceKindSchema).
|
|
55021
|
+
kinds: array(IntegrationInstanceKindSchema).min(1),
|
|
55009
55022
|
/**
|
|
55010
55023
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
55011
55024
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -55041,8 +55054,8 @@ var IntegrationInstanceSchema = object({
|
|
|
55041
55054
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
55042
55055
|
*/
|
|
55043
55056
|
enabled: boolean().optional(),
|
|
55044
|
-
/** The kind of this instance
|
|
55045
|
-
kind: string().
|
|
55057
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
55058
|
+
kind: string().min(1),
|
|
55046
55059
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
55047
55060
|
formValues: record(string(), unknown()),
|
|
55048
55061
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -71995,6 +72008,7 @@ var RemoteLayoutComponentSchema = object({
|
|
|
71995
72008
|
});
|
|
71996
72009
|
});
|
|
71997
72010
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
72011
|
+
DeviceType.MediaPlayer;
|
|
71998
72012
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
71999
72013
|
object({
|
|
72000
72014
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -105788,7 +105802,13 @@ var ExportAlexaAddon = class extends BaseAddon {
|
|
|
105788
105802
|
role: "services",
|
|
105789
105803
|
instanceMode: "multiple",
|
|
105790
105804
|
kind: "skills",
|
|
105791
|
-
canTest: false
|
|
105805
|
+
canTest: false,
|
|
105806
|
+
kinds: [{
|
|
105807
|
+
id: "skills",
|
|
105808
|
+
label: "Alexa skill",
|
|
105809
|
+
functionCap: "device-export",
|
|
105810
|
+
role: "services"
|
|
105811
|
+
}]
|
|
105792
105812
|
},
|
|
105793
105813
|
formSchema: (id) => this.skillForm(id),
|
|
105794
105814
|
initialBody: (name) => ({
|
|
@@ -6011,7 +6011,7 @@ var ZodIssueCode = {
|
|
|
6011
6011
|
var ZodFirstPartyTypeKind;
|
|
6012
6012
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6013
6013
|
//#endregion
|
|
6014
|
-
//#region ../types/dist/sleep-
|
|
6014
|
+
//#region ../types/dist/sleep-CGPZyzB5.mjs
|
|
6015
6015
|
/**
|
|
6016
6016
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6017
6017
|
* window to float samples (D455).
|
|
@@ -7227,6 +7227,7 @@ var RecordIntegrationInstances = class {
|
|
|
7227
7227
|
this.secretKeys = topLevelSecretKeys(kind.declaration.secretPaths);
|
|
7228
7228
|
this.secretMaps = secretMapKeys(kind.declaration.secretPaths);
|
|
7229
7229
|
this.nameField = kind.declaration.entry?.nameField ?? "name";
|
|
7230
|
+
if (hooks.kindOf === void 0 && hooks.description.kinds.length !== 1) throw new Error(`record kind '${kind.name}': describe().kinds has ${hooks.description.kinds.length} entries, so kindOf is required to say which one an instance is`);
|
|
7230
7231
|
}
|
|
7231
7232
|
/**
|
|
7232
7233
|
* One instance read for the addon's own runtime; null when absent. When the keychain is
|
|
@@ -7268,10 +7269,21 @@ var RecordIntegrationInstances = class {
|
|
|
7268
7269
|
}
|
|
7269
7270
|
return out;
|
|
7270
7271
|
}
|
|
7272
|
+
/** The kind an instance body is of: the provider's `kindOf`, else its one declared kind. */
|
|
7273
|
+
kindOfBody(body) {
|
|
7274
|
+
if (this.hooks.kindOf !== void 0) {
|
|
7275
|
+
const id = this.hooks.kindOf(body);
|
|
7276
|
+
if (!this.hooks.description.kinds.some((declared) => declared.id === id)) throw new Error(`record kind '${this.kind.name}': kindOf returned '${id}', which describe().kinds does not declare (D1013)`);
|
|
7277
|
+
return id;
|
|
7278
|
+
}
|
|
7279
|
+
const only = this.hooks.description.kinds[0];
|
|
7280
|
+
if (only === void 0) throw new Error(`record kind '${this.kind.name}' declares no kinds`);
|
|
7281
|
+
return only.id;
|
|
7282
|
+
}
|
|
7271
7283
|
viewOf(record) {
|
|
7272
7284
|
const shown = secretViewsOf(this.records.owner, this.kind.name, record.id, this.kind.declaration, record.data);
|
|
7273
7285
|
const rawName = record.data[this.nameField];
|
|
7274
|
-
const kind = this.
|
|
7286
|
+
const kind = this.kindOfBody(record.data);
|
|
7275
7287
|
const health = this.hooks.health?.(record.data, record.id);
|
|
7276
7288
|
return {
|
|
7277
7289
|
id: record.id,
|
|
@@ -7279,7 +7291,7 @@ var RecordIntegrationInstances = class {
|
|
|
7279
7291
|
configured: this.hooks.configured(record.data),
|
|
7280
7292
|
enabled: isInstanceEnabled(record.data),
|
|
7281
7293
|
formValues: shown,
|
|
7282
|
-
|
|
7294
|
+
kind,
|
|
7283
7295
|
...health?.status !== void 0 ? { status: health.status } : {},
|
|
7284
7296
|
...health?.lastCheckedAt !== void 0 ? { lastCheckedAt: health.lastCheckedAt } : {}
|
|
7285
7297
|
};
|
|
@@ -49186,7 +49198,7 @@ DeviceType.MediaPlayer, method(deviceOnly, _void(), {
|
|
|
49186
49198
|
kind: "mutation",
|
|
49187
49199
|
auth: "protected"
|
|
49188
49200
|
});
|
|
49189
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater;
|
|
49201
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Heater, DeviceType.Dryer, DeviceType.Gateway, DeviceType.Camera, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.Gateway, DeviceType.Hub, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder, DeviceType.Heater, DeviceType.MediaPlayer;
|
|
49190
49202
|
var NUMBER = {
|
|
49191
49203
|
kind: "fixed",
|
|
49192
49204
|
result: ["number"]
|
|
@@ -54973,10 +54985,11 @@ var IntegrationInstanceDescriptionSchema = object({
|
|
|
54973
54985
|
/** True when `testInstance` really probes the remote. */
|
|
54974
54986
|
canTest: boolean(),
|
|
54975
54987
|
/**
|
|
54976
|
-
* The kinds an instance can be of
|
|
54977
|
-
* Add flow asks which first and sends it as
|
|
54988
|
+
* The kinds an instance can be of (D1013 rule 1), each naming its `functionCap`. One entry:
|
|
54989
|
+
* nothing to choose; more than one: the Add flow asks which first and sends it as
|
|
54990
|
+
* `createInstance.kind`. Never empty: every instance belongs to exactly one kind.
|
|
54978
54991
|
*/
|
|
54979
|
-
kinds: array(IntegrationInstanceKindSchema).
|
|
54992
|
+
kinds: array(IntegrationInstanceKindSchema).min(1),
|
|
54980
54993
|
/**
|
|
54981
54994
|
* The provider accepts `createInstance.id` for an id that once existed (an adopted id, because
|
|
54982
54995
|
* devices carry it). The UI then offers "restore under its old id" on Add. Absent means no.
|
|
@@ -55012,8 +55025,8 @@ var IntegrationInstanceSchema = object({
|
|
|
55012
55025
|
* the body is the one store, `setInstanceEnabled` the one writer (epic #440, step 3).
|
|
55013
55026
|
*/
|
|
55014
55027
|
enabled: boolean().optional(),
|
|
55015
|
-
/** The kind of this instance
|
|
55016
|
-
kind: string().
|
|
55028
|
+
/** The kind of this instance: exactly one of `describe().kinds[].id` (D1013 rule 2). */
|
|
55029
|
+
kind: string().min(1),
|
|
55017
55030
|
/** Values for the instance form; a secret is a `SecretFieldView`, never text. */
|
|
55018
55031
|
formValues: record(string(), unknown()),
|
|
55019
55032
|
status: IntegrationInstanceStatusSchema.optional(),
|
|
@@ -71966,6 +71979,7 @@ var RemoteLayoutComponentSchema = object({
|
|
|
71966
71979
|
});
|
|
71967
71980
|
});
|
|
71968
71981
|
method(object({}), array(RemoteLayoutComponentSchema), { auth: "protected" });
|
|
71982
|
+
DeviceType.MediaPlayer;
|
|
71969
71983
|
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
71970
71984
|
object({
|
|
71971
71985
|
/** null = unknown — never coerced to false (D393). */
|
|
@@ -105759,7 +105773,13 @@ var ExportAlexaAddon = class extends BaseAddon {
|
|
|
105759
105773
|
role: "services",
|
|
105760
105774
|
instanceMode: "multiple",
|
|
105761
105775
|
kind: "skills",
|
|
105762
|
-
canTest: false
|
|
105776
|
+
canTest: false,
|
|
105777
|
+
kinds: [{
|
|
105778
|
+
id: "skills",
|
|
105779
|
+
label: "Alexa skill",
|
|
105780
|
+
functionCap: "device-export",
|
|
105781
|
+
role: "services"
|
|
105782
|
+
}]
|
|
105763
105783
|
},
|
|
105764
105784
|
formSchema: (id) => this.skillForm(id),
|
|
105765
105785
|
initialBody: (name) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-alexa",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.190",
|
|
4
4
|
"description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
"requires": {
|
|
62
|
-
"server": ">=1.2.
|
|
62
|
+
"server": ">=1.2.810"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"files": [
|