@camstack/addon-import-alexa 0.2.104 → 0.2.105
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 +55 -0
- package/dist/addon.mjs +55 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13720,6 +13720,43 @@ var ExposeInputSchema = object({
|
|
|
13720
13720
|
});
|
|
13721
13721
|
var UnexposeInputSchema = object({ deviceId: string() });
|
|
13722
13722
|
method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
|
|
13723
|
+
/** Wire/storage schema for one icon id. */
|
|
13724
|
+
var LocationIconIdSchema = _enum([
|
|
13725
|
+
"map-pin",
|
|
13726
|
+
"house",
|
|
13727
|
+
"door-open",
|
|
13728
|
+
"sofa",
|
|
13729
|
+
"utensils",
|
|
13730
|
+
"bed-double",
|
|
13731
|
+
"bath",
|
|
13732
|
+
"briefcase",
|
|
13733
|
+
"car",
|
|
13734
|
+
"circle-parking",
|
|
13735
|
+
"route",
|
|
13736
|
+
"trees",
|
|
13737
|
+
"umbrella",
|
|
13738
|
+
"waves-ladder",
|
|
13739
|
+
"fence",
|
|
13740
|
+
"package",
|
|
13741
|
+
"warehouse",
|
|
13742
|
+
"store",
|
|
13743
|
+
"sun",
|
|
13744
|
+
"radar"
|
|
13745
|
+
]);
|
|
13746
|
+
/**
|
|
13747
|
+
* One (location, icon) assignment as it travels.
|
|
13748
|
+
*
|
|
13749
|
+
* `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
|
|
13750
|
+
* operator's casing. The registry matches labels trimmed + case-insensitively
|
|
13751
|
+
* everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
|
|
13752
|
+
* case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
|
|
13753
|
+
* map keyed on the displayed casing would orphan its entry on exactly that
|
|
13754
|
+
* edit. Consumers join by keying their own label through `locationIconKey`.
|
|
13755
|
+
*/
|
|
13756
|
+
var LocationIconAssignmentSchema = object({
|
|
13757
|
+
locationKey: string(),
|
|
13758
|
+
icon: LocationIconIdSchema
|
|
13759
|
+
});
|
|
13723
13760
|
var ProviderStatusSchema = object({
|
|
13724
13761
|
connected: boolean(),
|
|
13725
13762
|
deviceCount: number(),
|
|
@@ -14312,6 +14349,12 @@ method(object({
|
|
|
14312
14349
|
}), object({ moved: number() }), {
|
|
14313
14350
|
kind: "mutation",
|
|
14314
14351
|
auth: "admin"
|
|
14352
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
14353
|
+
location: string(),
|
|
14354
|
+
icon: LocationIconIdSchema.nullable()
|
|
14355
|
+
}), _void(), {
|
|
14356
|
+
kind: "mutation",
|
|
14357
|
+
auth: "admin"
|
|
14315
14358
|
}), method(object({
|
|
14316
14359
|
deviceId: number(),
|
|
14317
14360
|
disabled: boolean()
|
|
@@ -37239,6 +37282,12 @@ Object.freeze({
|
|
|
37239
37282
|
addonId: null,
|
|
37240
37283
|
access: "view"
|
|
37241
37284
|
},
|
|
37285
|
+
"deviceManager.listLocationIcons": {
|
|
37286
|
+
capName: "device-manager",
|
|
37287
|
+
capScope: "system",
|
|
37288
|
+
addonId: null,
|
|
37289
|
+
access: "view"
|
|
37290
|
+
},
|
|
37242
37291
|
"deviceManager.listLocations": {
|
|
37243
37292
|
capName: "device-manager",
|
|
37244
37293
|
capScope: "system",
|
|
@@ -37383,6 +37432,12 @@ Object.freeze({
|
|
|
37383
37432
|
addonId: null,
|
|
37384
37433
|
access: "create"
|
|
37385
37434
|
},
|
|
37435
|
+
"deviceManager.setLocationIcon": {
|
|
37436
|
+
capName: "device-manager",
|
|
37437
|
+
capScope: "system",
|
|
37438
|
+
addonId: null,
|
|
37439
|
+
access: "create"
|
|
37440
|
+
},
|
|
37386
37441
|
"deviceManager.setMetadata": {
|
|
37387
37442
|
capName: "device-manager",
|
|
37388
37443
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13720,6 +13720,43 @@ var ExposeInputSchema = object({
|
|
|
13720
13720
|
});
|
|
13721
13721
|
var UnexposeInputSchema = object({ deviceId: string() });
|
|
13722
13722
|
method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
|
|
13723
|
+
/** Wire/storage schema for one icon id. */
|
|
13724
|
+
var LocationIconIdSchema = _enum([
|
|
13725
|
+
"map-pin",
|
|
13726
|
+
"house",
|
|
13727
|
+
"door-open",
|
|
13728
|
+
"sofa",
|
|
13729
|
+
"utensils",
|
|
13730
|
+
"bed-double",
|
|
13731
|
+
"bath",
|
|
13732
|
+
"briefcase",
|
|
13733
|
+
"car",
|
|
13734
|
+
"circle-parking",
|
|
13735
|
+
"route",
|
|
13736
|
+
"trees",
|
|
13737
|
+
"umbrella",
|
|
13738
|
+
"waves-ladder",
|
|
13739
|
+
"fence",
|
|
13740
|
+
"package",
|
|
13741
|
+
"warehouse",
|
|
13742
|
+
"store",
|
|
13743
|
+
"sun",
|
|
13744
|
+
"radar"
|
|
13745
|
+
]);
|
|
13746
|
+
/**
|
|
13747
|
+
* One (location, icon) assignment as it travels.
|
|
13748
|
+
*
|
|
13749
|
+
* `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
|
|
13750
|
+
* operator's casing. The registry matches labels trimmed + case-insensitively
|
|
13751
|
+
* everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
|
|
13752
|
+
* case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
|
|
13753
|
+
* map keyed on the displayed casing would orphan its entry on exactly that
|
|
13754
|
+
* edit. Consumers join by keying their own label through `locationIconKey`.
|
|
13755
|
+
*/
|
|
13756
|
+
var LocationIconAssignmentSchema = object({
|
|
13757
|
+
locationKey: string(),
|
|
13758
|
+
icon: LocationIconIdSchema
|
|
13759
|
+
});
|
|
13723
13760
|
var ProviderStatusSchema = object({
|
|
13724
13761
|
connected: boolean(),
|
|
13725
13762
|
deviceCount: number(),
|
|
@@ -14312,6 +14349,12 @@ method(object({
|
|
|
14312
14349
|
}), object({ moved: number() }), {
|
|
14313
14350
|
kind: "mutation",
|
|
14314
14351
|
auth: "admin"
|
|
14352
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
14353
|
+
location: string(),
|
|
14354
|
+
icon: LocationIconIdSchema.nullable()
|
|
14355
|
+
}), _void(), {
|
|
14356
|
+
kind: "mutation",
|
|
14357
|
+
auth: "admin"
|
|
14315
14358
|
}), method(object({
|
|
14316
14359
|
deviceId: number(),
|
|
14317
14360
|
disabled: boolean()
|
|
@@ -37239,6 +37282,12 @@ Object.freeze({
|
|
|
37239
37282
|
addonId: null,
|
|
37240
37283
|
access: "view"
|
|
37241
37284
|
},
|
|
37285
|
+
"deviceManager.listLocationIcons": {
|
|
37286
|
+
capName: "device-manager",
|
|
37287
|
+
capScope: "system",
|
|
37288
|
+
addonId: null,
|
|
37289
|
+
access: "view"
|
|
37290
|
+
},
|
|
37242
37291
|
"deviceManager.listLocations": {
|
|
37243
37292
|
capName: "device-manager",
|
|
37244
37293
|
capScope: "system",
|
|
@@ -37383,6 +37432,12 @@ Object.freeze({
|
|
|
37383
37432
|
addonId: null,
|
|
37384
37433
|
access: "create"
|
|
37385
37434
|
},
|
|
37435
|
+
"deviceManager.setLocationIcon": {
|
|
37436
|
+
capName: "device-manager",
|
|
37437
|
+
capScope: "system",
|
|
37438
|
+
addonId: null,
|
|
37439
|
+
access: "create"
|
|
37440
|
+
},
|
|
37386
37441
|
"deviceManager.setMetadata": {
|
|
37387
37442
|
capName: "device-manager",
|
|
37388
37443
|
capScope: "system",
|
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.105",
|
|
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",
|