@camstack/addon-provider-rtsp 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/addon.js CHANGED
@@ -7774,7 +7774,8 @@ var OpsLogReasonSchema = _enum([
7774
7774
  "quota",
7775
7775
  "manual",
7776
7776
  "operator",
7777
- "maintenance"
7777
+ "maintenance",
7778
+ "orphaned-device"
7778
7779
  ]);
7779
7780
  /** One audit row, shared verbatim by both domains. */
7780
7781
  var OpsLogEntrySchema = object({
@@ -13069,10 +13070,39 @@ var DevicePersistConfigPayloadSchema = object({
13069
13070
  deviceId: number(),
13070
13071
  data: record(string(), unknown())
13071
13072
  });
13073
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13074
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13075
+ var MigrateSwitchOutcomeSchema = _enum([
13076
+ "off",
13077
+ "on",
13078
+ "not-offered",
13079
+ "unreachable"
13080
+ ]);
13081
+ var MigrateSwitchReportSchema = object({
13082
+ deviceId: number(),
13083
+ switchId: CameraSwitchIdSchema,
13084
+ outcome: MigrateSwitchOutcomeSchema,
13085
+ detail: string().optional()
13086
+ });
13087
+ var MigrateDeviceResultSchema = object({
13088
+ sourceId: number(),
13089
+ targetId: number(),
13090
+ switches: array(MigrateSwitchReportSchema).readonly(),
13091
+ /** Switches that could NOT be turned off on the source. Empty is the only
13092
+ * value meaning the replaced hardware is quiet. */
13093
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13094
+ swapped: boolean()
13095
+ });
13072
13096
  method(object({
13073
13097
  addonId: string(),
13074
13098
  stableId: string()
13075
- }), 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({
13099
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13100
+ sourceId: number(),
13101
+ targetId: number()
13102
+ }), MigrateDeviceResultSchema, {
13103
+ kind: "mutation",
13104
+ auth: "admin"
13105
+ }), 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({
13076
13106
  deviceId: number(),
13077
13107
  name: string()
13078
13108
  }), _void(), {
@@ -34245,6 +34275,12 @@ Object.freeze({
34245
34275
  addonId: null,
34246
34276
  access: "view"
34247
34277
  },
34278
+ "deviceManager.migrateDevice": {
34279
+ capName: "device-manager",
34280
+ capScope: "system",
34281
+ addonId: null,
34282
+ access: "create"
34283
+ },
34248
34284
  "deviceManager.persistConfig": {
34249
34285
  capName: "device-manager",
34250
34286
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -7750,7 +7750,8 @@ var OpsLogReasonSchema = _enum([
7750
7750
  "quota",
7751
7751
  "manual",
7752
7752
  "operator",
7753
- "maintenance"
7753
+ "maintenance",
7754
+ "orphaned-device"
7754
7755
  ]);
7755
7756
  /** One audit row, shared verbatim by both domains. */
7756
7757
  var OpsLogEntrySchema = object({
@@ -13045,10 +13046,39 @@ var DevicePersistConfigPayloadSchema = object({
13045
13046
  deviceId: number(),
13046
13047
  data: record(string(), unknown())
13047
13048
  });
13049
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13050
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13051
+ var MigrateSwitchOutcomeSchema = _enum([
13052
+ "off",
13053
+ "on",
13054
+ "not-offered",
13055
+ "unreachable"
13056
+ ]);
13057
+ var MigrateSwitchReportSchema = object({
13058
+ deviceId: number(),
13059
+ switchId: CameraSwitchIdSchema,
13060
+ outcome: MigrateSwitchOutcomeSchema,
13061
+ detail: string().optional()
13062
+ });
13063
+ var MigrateDeviceResultSchema = object({
13064
+ sourceId: number(),
13065
+ targetId: number(),
13066
+ switches: array(MigrateSwitchReportSchema).readonly(),
13067
+ /** Switches that could NOT be turned off on the source. Empty is the only
13068
+ * value meaning the replaced hardware is quiet. */
13069
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13070
+ swapped: boolean()
13071
+ });
13048
13072
  method(object({
13049
13073
  addonId: string(),
13050
13074
  stableId: string()
13051
- }), 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({
13075
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13076
+ sourceId: number(),
13077
+ targetId: number()
13078
+ }), MigrateDeviceResultSchema, {
13079
+ kind: "mutation",
13080
+ auth: "admin"
13081
+ }), 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({
13052
13082
  deviceId: number(),
13053
13083
  name: string()
13054
13084
  }), _void(), {
@@ -34221,6 +34251,12 @@ Object.freeze({
34221
34251
  addonId: null,
34222
34252
  access: "view"
34223
34253
  },
34254
+ "deviceManager.migrateDevice": {
34255
+ capName: "device-manager",
34256
+ capScope: "system",
34257
+ addonId: null,
34258
+ access: "create"
34259
+ },
34224
34260
  "deviceManager.persistConfig": {
34225
34261
  capName: "device-manager",
34226
34262
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-rtsp",
3
- "version": "1.2.52",
3
+ "version": "1.2.53",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",