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