@camstack/addon-export-google 0.1.16 → 0.1.17
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.
|
@@ -7911,7 +7911,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7911
7911
|
"quota",
|
|
7912
7912
|
"manual",
|
|
7913
7913
|
"operator",
|
|
7914
|
-
"maintenance"
|
|
7914
|
+
"maintenance",
|
|
7915
|
+
"orphaned-device"
|
|
7915
7916
|
]);
|
|
7916
7917
|
/** One audit row, shared verbatim by both domains. */
|
|
7917
7918
|
var OpsLogEntrySchema = object({
|
|
@@ -13015,10 +13016,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13015
13016
|
deviceId: number(),
|
|
13016
13017
|
data: record(string(), unknown())
|
|
13017
13018
|
});
|
|
13019
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13020
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13021
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13022
|
+
"off",
|
|
13023
|
+
"on",
|
|
13024
|
+
"not-offered",
|
|
13025
|
+
"unreachable"
|
|
13026
|
+
]);
|
|
13027
|
+
var MigrateSwitchReportSchema = object({
|
|
13028
|
+
deviceId: number(),
|
|
13029
|
+
switchId: CameraSwitchIdSchema,
|
|
13030
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13031
|
+
detail: string().optional()
|
|
13032
|
+
});
|
|
13033
|
+
var MigrateDeviceResultSchema = object({
|
|
13034
|
+
sourceId: number(),
|
|
13035
|
+
targetId: number(),
|
|
13036
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13037
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13038
|
+
* value meaning the replaced hardware is quiet. */
|
|
13039
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13040
|
+
swapped: boolean()
|
|
13041
|
+
});
|
|
13018
13042
|
method(object({
|
|
13019
13043
|
addonId: string(),
|
|
13020
13044
|
stableId: string()
|
|
13021
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13045
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13046
|
+
sourceId: number(),
|
|
13047
|
+
targetId: number()
|
|
13048
|
+
}), MigrateDeviceResultSchema, {
|
|
13049
|
+
kind: "mutation",
|
|
13050
|
+
auth: "admin"
|
|
13051
|
+
}), 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({
|
|
13022
13052
|
deviceId: number(),
|
|
13023
13053
|
name: string()
|
|
13024
13054
|
}), _void(), {
|
|
@@ -30556,6 +30586,12 @@ Object.freeze({
|
|
|
30556
30586
|
addonId: null,
|
|
30557
30587
|
access: "view"
|
|
30558
30588
|
},
|
|
30589
|
+
"deviceManager.migrateDevice": {
|
|
30590
|
+
capName: "device-manager",
|
|
30591
|
+
capScope: "system",
|
|
30592
|
+
addonId: null,
|
|
30593
|
+
access: "create"
|
|
30594
|
+
},
|
|
30559
30595
|
"deviceManager.persistConfig": {
|
|
30560
30596
|
capName: "device-manager",
|
|
30561
30597
|
capScope: "system",
|
|
@@ -7907,7 +7907,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7907
7907
|
"quota",
|
|
7908
7908
|
"manual",
|
|
7909
7909
|
"operator",
|
|
7910
|
-
"maintenance"
|
|
7910
|
+
"maintenance",
|
|
7911
|
+
"orphaned-device"
|
|
7911
7912
|
]);
|
|
7912
7913
|
/** One audit row, shared verbatim by both domains. */
|
|
7913
7914
|
var OpsLogEntrySchema = object({
|
|
@@ -13011,10 +13012,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
13011
13012
|
deviceId: number(),
|
|
13012
13013
|
data: record(string(), unknown())
|
|
13013
13014
|
});
|
|
13015
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
13016
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
13017
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
13018
|
+
"off",
|
|
13019
|
+
"on",
|
|
13020
|
+
"not-offered",
|
|
13021
|
+
"unreachable"
|
|
13022
|
+
]);
|
|
13023
|
+
var MigrateSwitchReportSchema = object({
|
|
13024
|
+
deviceId: number(),
|
|
13025
|
+
switchId: CameraSwitchIdSchema,
|
|
13026
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
13027
|
+
detail: string().optional()
|
|
13028
|
+
});
|
|
13029
|
+
var MigrateDeviceResultSchema = object({
|
|
13030
|
+
sourceId: number(),
|
|
13031
|
+
targetId: number(),
|
|
13032
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
13033
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
13034
|
+
* value meaning the replaced hardware is quiet. */
|
|
13035
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
13036
|
+
swapped: boolean()
|
|
13037
|
+
});
|
|
13014
13038
|
method(object({
|
|
13015
13039
|
addonId: string(),
|
|
13016
13040
|
stableId: string()
|
|
13017
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
13041
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
13042
|
+
sourceId: number(),
|
|
13043
|
+
targetId: number()
|
|
13044
|
+
}), MigrateDeviceResultSchema, {
|
|
13045
|
+
kind: "mutation",
|
|
13046
|
+
auth: "admin"
|
|
13047
|
+
}), 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({
|
|
13018
13048
|
deviceId: number(),
|
|
13019
13049
|
name: string()
|
|
13020
13050
|
}), _void(), {
|
|
@@ -30552,6 +30582,12 @@ Object.freeze({
|
|
|
30552
30582
|
addonId: null,
|
|
30553
30583
|
access: "view"
|
|
30554
30584
|
},
|
|
30585
|
+
"deviceManager.migrateDevice": {
|
|
30586
|
+
capName: "device-manager",
|
|
30587
|
+
capScope: "system",
|
|
30588
|
+
addonId: null,
|
|
30589
|
+
access: "create"
|
|
30590
|
+
},
|
|
30555
30591
|
"deviceManager.persistConfig": {
|
|
30556
30592
|
capName: "device-manager",
|
|
30557
30593
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|