@camstack/addon-provider-onvif 1.2.51 → 1.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
|
@@ -7717,7 +7717,8 @@ var OpsLogReasonSchema = _enum([
|
|
|
7717
7717
|
"quota",
|
|
7718
7718
|
"manual",
|
|
7719
7719
|
"operator",
|
|
7720
|
-
"maintenance"
|
|
7720
|
+
"maintenance",
|
|
7721
|
+
"orphaned-device"
|
|
7721
7722
|
]);
|
|
7722
7723
|
/** One audit row, shared verbatim by both domains. */
|
|
7723
7724
|
var OpsLogEntrySchema = object({
|
|
@@ -12803,10 +12804,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
12803
12804
|
deviceId: number(),
|
|
12804
12805
|
data: record(string(), unknown())
|
|
12805
12806
|
});
|
|
12807
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
12808
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
12809
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
12810
|
+
"off",
|
|
12811
|
+
"on",
|
|
12812
|
+
"not-offered",
|
|
12813
|
+
"unreachable"
|
|
12814
|
+
]);
|
|
12815
|
+
var MigrateSwitchReportSchema = object({
|
|
12816
|
+
deviceId: number(),
|
|
12817
|
+
switchId: CameraSwitchIdSchema,
|
|
12818
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
12819
|
+
detail: string().optional()
|
|
12820
|
+
});
|
|
12821
|
+
var MigrateDeviceResultSchema = object({
|
|
12822
|
+
sourceId: number(),
|
|
12823
|
+
targetId: number(),
|
|
12824
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
12825
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
12826
|
+
* value meaning the replaced hardware is quiet. */
|
|
12827
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
12828
|
+
swapped: boolean()
|
|
12829
|
+
});
|
|
12806
12830
|
method(object({
|
|
12807
12831
|
addonId: string(),
|
|
12808
12832
|
stableId: string()
|
|
12809
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
12833
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
12834
|
+
sourceId: number(),
|
|
12835
|
+
targetId: number()
|
|
12836
|
+
}), MigrateDeviceResultSchema, {
|
|
12837
|
+
kind: "mutation",
|
|
12838
|
+
auth: "admin"
|
|
12839
|
+
}), 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({
|
|
12810
12840
|
deviceId: number(),
|
|
12811
12841
|
name: string()
|
|
12812
12842
|
}), _void(), {
|
|
@@ -30865,6 +30895,12 @@ Object.freeze({
|
|
|
30865
30895
|
addonId: null,
|
|
30866
30896
|
access: "view"
|
|
30867
30897
|
},
|
|
30898
|
+
"deviceManager.migrateDevice": {
|
|
30899
|
+
capName: "device-manager",
|
|
30900
|
+
capScope: "system",
|
|
30901
|
+
addonId: null,
|
|
30902
|
+
access: "create"
|
|
30903
|
+
},
|
|
30868
30904
|
"deviceManager.persistConfig": {
|
|
30869
30905
|
capName: "device-manager",
|
|
30870
30906
|
capScope: "system",
|
package/dist/addon.mjs
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({
|
|
@@ -12804,10 +12805,39 @@ var DevicePersistConfigPayloadSchema = object({
|
|
|
12804
12805
|
deviceId: number(),
|
|
12805
12806
|
data: record(string(), unknown())
|
|
12806
12807
|
});
|
|
12808
|
+
/** What a migration actually did, per switch. `unreachable` is a first-class
|
|
12809
|
+
* answer: a camera that could not be asked is not a camera that was silenced. */
|
|
12810
|
+
var MigrateSwitchOutcomeSchema = _enum([
|
|
12811
|
+
"off",
|
|
12812
|
+
"on",
|
|
12813
|
+
"not-offered",
|
|
12814
|
+
"unreachable"
|
|
12815
|
+
]);
|
|
12816
|
+
var MigrateSwitchReportSchema = object({
|
|
12817
|
+
deviceId: number(),
|
|
12818
|
+
switchId: CameraSwitchIdSchema,
|
|
12819
|
+
outcome: MigrateSwitchOutcomeSchema,
|
|
12820
|
+
detail: string().optional()
|
|
12821
|
+
});
|
|
12822
|
+
var MigrateDeviceResultSchema = object({
|
|
12823
|
+
sourceId: number(),
|
|
12824
|
+
targetId: number(),
|
|
12825
|
+
switches: array(MigrateSwitchReportSchema).readonly(),
|
|
12826
|
+
/** Switches that could NOT be turned off on the source. Empty is the only
|
|
12827
|
+
* value meaning the replaced hardware is quiet. */
|
|
12828
|
+
sourceStillLive: array(CameraSwitchIdSchema).readonly(),
|
|
12829
|
+
swapped: boolean()
|
|
12830
|
+
});
|
|
12807
12831
|
method(object({
|
|
12808
12832
|
addonId: string(),
|
|
12809
12833
|
stableId: string()
|
|
12810
|
-
}), object({ id: number() }), { kind: "mutation" }), method(
|
|
12834
|
+
}), object({ id: number() }), { kind: "mutation" }), method(object({
|
|
12835
|
+
sourceId: number(),
|
|
12836
|
+
targetId: number()
|
|
12837
|
+
}), MigrateDeviceResultSchema, {
|
|
12838
|
+
kind: "mutation",
|
|
12839
|
+
auth: "admin"
|
|
12840
|
+
}), 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({
|
|
12811
12841
|
deviceId: number(),
|
|
12812
12842
|
name: string()
|
|
12813
12843
|
}), _void(), {
|
|
@@ -30866,6 +30896,12 @@ Object.freeze({
|
|
|
30866
30896
|
addonId: null,
|
|
30867
30897
|
access: "view"
|
|
30868
30898
|
},
|
|
30899
|
+
"deviceManager.migrateDevice": {
|
|
30900
|
+
capName: "device-manager",
|
|
30901
|
+
capScope: "system",
|
|
30902
|
+
addonId: null,
|
|
30903
|
+
access: "create"
|
|
30904
|
+
},
|
|
30869
30905
|
"deviceManager.persistConfig": {
|
|
30870
30906
|
capName: "device-manager",
|
|
30871
30907
|
capScope: "system",
|