@camstack/addon-import-alexa 0.2.51 → 0.2.52
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 +38 -2
- package/dist/addon.mjs +38 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7876,7 +7876,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7876
7876
|
"quota",
|
|
7877
7877
|
"manual",
|
|
7878
7878
|
"operator",
|
|
7879
|
-
"maintenance"
|
|
7879
|
+
"maintenance",
|
|
7880
|
+
"orphaned-device"
|
|
7880
7881
|
]);
|
|
7881
7882
|
/** One audit row, shared verbatim by both domains. */
|
|
7882
7883
|
var OpsLogEntrySchema = object({
|
|
@@ -13256,10 +13257,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13256
13257
|
deviceId: number(),
|
|
13257
13258
|
data: record(string(), unknown())
|
|
13258
13259
|
});
|
|
13260
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13261
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13262
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13263
|
+
"off",
|
|
13264
|
+
"on",
|
|
13265
|
+
"not-offered",
|
|
13266
|
+
"unreachable"
|
|
13267
|
+
]);
|
|
13268
|
+
var MigrateSwitchReportSchema = object({
|
|
13269
|
+
deviceId: number(),
|
|
13270
|
+
switchId: CameraSwitchIdSchema,
|
|
13271
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13272
|
+
detail: string().optional()
|
|
13273
|
+
});
|
|
13274
|
+
var MigrateDeviceResultSchema = object({
|
|
13275
|
+
sourceId: number(),
|
|
13276
|
+
targetId: number(),
|
|
13277
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13278
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13279
|
+
* value meaning the replaced hardware is quiet. */
|
|
13280
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13281
|
+
swapped: boolean()
|
|
13282
|
+
});
|
|
13259
13283
|
method(object({
|
|
13260
13284
|
addonId: string(),
|
|
13261
13285
|
stableId: string()
|
|
13262
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13286
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13287
|
+
sourceId: number(),
|
|
13288
|
+
targetId: number()
|
|
13289
|
+
}), MigrateDeviceResultSchema, {
|
|
13290
|
+
kind: "mutation",
|
|
13291
|
+
auth: "admin"
|
|
13292
|
+
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
13263
13293
|
deviceId: number(),
|
|
13264
13294
|
name: string()
|
|
13265
13295
|
}), _void(), {
|
|
@@ -34271,6 +34301,12 @@ Object.freeze({
|
|
|
34271
34301
|
addonId: null,
|
|
34272
34302
|
access: "view"
|
|
34273
34303
|
},
|
|
34304
|
+
"deviceManager.migrateDevice": {
|
|
34305
|
+
capName: "device-manager",
|
|
34306
|
+
capScope: "system",
|
|
34307
|
+
addonId: null,
|
|
34308
|
+
access: "create"
|
|
34309
|
+
},
|
|
34274
34310
|
"deviceManager.persistConfig": {
|
|
34275
34311
|
capName: "device-manager",
|
|
34276
34312
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -7876,7 +7876,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7876
7876
|
"quota",
|
|
7877
7877
|
"manual",
|
|
7878
7878
|
"operator",
|
|
7879
|
-
"maintenance"
|
|
7879
|
+
"maintenance",
|
|
7880
|
+
"orphaned-device"
|
|
7880
7881
|
]);
|
|
7881
7882
|
/** One audit row, shared verbatim by both domains. */
|
|
7882
7883
|
var OpsLogEntrySchema = object({
|
|
@@ -13256,10 +13257,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13256
13257
|
deviceId: number(),
|
|
13257
13258
|
data: record(string(), unknown())
|
|
13258
13259
|
});
|
|
13260
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13261
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13262
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13263
|
+
"off",
|
|
13264
|
+
"on",
|
|
13265
|
+
"not-offered",
|
|
13266
|
+
"unreachable"
|
|
13267
|
+
]);
|
|
13268
|
+
var MigrateSwitchReportSchema = object({
|
|
13269
|
+
deviceId: number(),
|
|
13270
|
+
switchId: CameraSwitchIdSchema,
|
|
13271
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13272
|
+
detail: string().optional()
|
|
13273
|
+
});
|
|
13274
|
+
var MigrateDeviceResultSchema = object({
|
|
13275
|
+
sourceId: number(),
|
|
13276
|
+
targetId: number(),
|
|
13277
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13278
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13279
|
+
* value meaning the replaced hardware is quiet. */
|
|
13280
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13281
|
+
swapped: boolean()
|
|
13282
|
+
});
|
|
13259
13283
|
method(object({
|
|
13260
13284
|
addonId: string(),
|
|
13261
13285
|
stableId: string()
|
|
13262
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13286
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13287
|
+
sourceId: number(),
|
|
13288
|
+
targetId: number()
|
|
13289
|
+
}), MigrateDeviceResultSchema, {
|
|
13290
|
+
kind: "mutation",
|
|
13291
|
+
auth: "admin"
|
|
13292
|
+
}), method(DeviceRegisterPayloadSchema, _void(), { kind: "mutation" }), method(DeviceRemovePayloadSchema, _void(), { kind: "mutation" }), method(DevicePersistConfigPayloadSchema, _void(), { kind: "mutation" }), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), record(string(), unknown())), method(object({ deviceId: number() }), DeviceMetaSchema.nullable()), method(object({
|
|
13263
13293
|
deviceId: number(),
|
|
13264
13294
|
name: string()
|
|
13265
13295
|
}), _void(), {
|
|
@@ -34271,6 +34301,12 @@ Object.freeze({
|
|
|
34271
34301
|
addonId: null,
|
|
34272
34302
|
access: "view"
|
|
34273
34303
|
},
|
|
34304
|
+
"deviceManager.migrateDevice": {
|
|
34305
|
+
capName: "device-manager",
|
|
34306
|
+
capScope: "system",
|
|
34307
|
+
addonId: null,
|
|
34308
|
+
access: "create"
|
|
34309
|
+
},
|
|
34274
34310
|
"deviceManager.persistConfig": {
|
|
34275
34311
|
capName: "device-manager",
|
|
34276
34312
|
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.52",
|
|
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",
|