@camstack/addon-decoder-nodeav 1.2.52 → 1.2.53
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/index.js +38 -2
- package/dist/index.mjs +38 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7718,7 +7718,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7718
7718
|
"quota",
|
|
7719
7719
|
"manual",
|
|
7720
7720
|
"operator",
|
|
7721
|
-
"maintenance"
|
|
7721
|
+
"maintenance",
|
|
7722
|
+
"orphaned-device"
|
|
7722
7723
|
]);
|
|
7723
7724
|
/** One audit row, shared verbatim by both domains. */
|
|
7724
7725
|
var OpsLogEntrySchema = object({
|
|
@@ -12879,10 +12880,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
12879
12880
|
deviceId: number(),
|
|
12880
12881
|
data: record(string(), unknown())
|
|
12881
12882
|
});
|
|
12883
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
12884
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
12885
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
12886
|
+
"off",
|
|
12887
|
+
"on",
|
|
12888
|
+
"not-offered",
|
|
12889
|
+
"unreachable"
|
|
12890
|
+
]);
|
|
12891
|
+
var MigrateSwitchReportSchema = object({
|
|
12892
|
+
deviceId: number(),
|
|
12893
|
+
switchId: CameraSwitchIdSchema,
|
|
12894
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
12895
|
+
detail: string().optional()
|
|
12896
|
+
});
|
|
12897
|
+
var MigrateDeviceResultSchema = object({
|
|
12898
|
+
sourceId: number(),
|
|
12899
|
+
targetId: number(),
|
|
12900
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
12901
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
12902
|
+
* value meaning the replaced hardware is quiet. */
|
|
12903
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
12904
|
+
swapped: boolean()
|
|
12905
|
+
});
|
|
12882
12906
|
method(object({
|
|
12883
12907
|
addonId: string(),
|
|
12884
12908
|
stableId: string()
|
|
12885
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
12909
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
12910
|
+
sourceId: number(),
|
|
12911
|
+
targetId: number()
|
|
12912
|
+
}), MigrateDeviceResultSchema, {
|
|
12913
|
+
kind: "mutation",
|
|
12914
|
+
auth: "admin"
|
|
12915
|
+
}), 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({
|
|
12886
12916
|
deviceId: number(),
|
|
12887
12917
|
name: string()
|
|
12888
12918
|
}), _void(), {
|
|
@@ -30385,6 +30415,12 @@ Object.freeze({
|
|
|
30385
30415
|
addonId: null,
|
|
30386
30416
|
access: "view"
|
|
30387
30417
|
},
|
|
30418
|
+
"deviceManager.migrateDevice": {
|
|
30419
|
+
capName: "device-manager",
|
|
30420
|
+
capScope: "system",
|
|
30421
|
+
addonId: null,
|
|
30422
|
+
access: "create"
|
|
30423
|
+
},
|
|
30388
30424
|
"deviceManager.persistConfig": {
|
|
30389
30425
|
capName: "device-manager",
|
|
30390
30426
|
capScope: "system",
|
package/dist/index.mjs
CHANGED
|
@@ -7714,7 +7714,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7714
7714
|
"quota",
|
|
7715
7715
|
"manual",
|
|
7716
7716
|
"operator",
|
|
7717
|
-
"maintenance"
|
|
7717
|
+
"maintenance",
|
|
7718
|
+
"orphaned-device"
|
|
7718
7719
|
]);
|
|
7719
7720
|
/** One audit row, shared verbatim by both domains. */
|
|
7720
7721
|
var OpsLogEntrySchema = object({
|
|
@@ -12875,10 +12876,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
12875
12876
|
deviceId: number(),
|
|
12876
12877
|
data: record(string(), unknown())
|
|
12877
12878
|
});
|
|
12879
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
12880
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
12881
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
12882
|
+
"off",
|
|
12883
|
+
"on",
|
|
12884
|
+
"not-offered",
|
|
12885
|
+
"unreachable"
|
|
12886
|
+
]);
|
|
12887
|
+
var MigrateSwitchReportSchema = object({
|
|
12888
|
+
deviceId: number(),
|
|
12889
|
+
switchId: CameraSwitchIdSchema,
|
|
12890
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
12891
|
+
detail: string().optional()
|
|
12892
|
+
});
|
|
12893
|
+
var MigrateDeviceResultSchema = object({
|
|
12894
|
+
sourceId: number(),
|
|
12895
|
+
targetId: number(),
|
|
12896
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
12897
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
12898
|
+
* value meaning the replaced hardware is quiet. */
|
|
12899
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
12900
|
+
swapped: boolean()
|
|
12901
|
+
});
|
|
12878
12902
|
method(object({
|
|
12879
12903
|
addonId: string(),
|
|
12880
12904
|
stableId: string()
|
|
12881
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
12905
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
12906
|
+
sourceId: number(),
|
|
12907
|
+
targetId: number()
|
|
12908
|
+
}), MigrateDeviceResultSchema, {
|
|
12909
|
+
kind: "mutation",
|
|
12910
|
+
auth: "admin"
|
|
12911
|
+
}), 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({
|
|
12882
12912
|
deviceId: number(),
|
|
12883
12913
|
name: string()
|
|
12884
12914
|
}), _void(), {
|
|
@@ -30381,6 +30411,12 @@ Object.freeze({
|
|
|
30381
30411
|
addonId: null,
|
|
30382
30412
|
access: "view"
|
|
30383
30413
|
},
|
|
30414
|
+
"deviceManager.migrateDevice": {
|
|
30415
|
+
capName: "device-manager",
|
|
30416
|
+
capScope: "system",
|
|
30417
|
+
addonId: null,
|
|
30418
|
+
access: "create"
|
|
30419
|
+
},
|
|
30384
30420
|
"deviceManager.persistConfig": {
|
|
30385
30421
|
capName: "device-manager",
|
|
30386
30422
|
capScope: "system",
|