@camstack/addon-agent-ui 1.2.55 → 1.2.56

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.
Files changed (2) hide show
  1. package/dist/addon.js +39 -3
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -7721,7 +7721,8 @@ var OpsLogReasonSchema = _enum([
7721
7721
  "quota",
7722
7722
  "manual",
7723
7723
  "operator",
7724
- "maintenance"
7724
+ "maintenance",
7725
+ "orphaned-device"
7725
7726
  ]);
7726
7727
  /** One audit row, shared verbatim by both domains. */
7727
7728
  var OpsLogEntrySchema = object({
@@ -12752,10 +12753,39 @@ var DevicePersistConfigPayloadSchema = object({
12752
12753
  deviceId: number(),
12753
12754
  data: record(string(), unknown())
12754
12755
  });
12756
+ /** What a migration actually did, per switch. `unreachable` is a first-class
12757
+ * answer: a camera that could not be asked is not a camera that was silenced. */
12758
+ var MigrateSwitchOutcomeSchema = _enum([
12759
+ "off",
12760
+ "on",
12761
+ "not-offered",
12762
+ "unreachable"
12763
+ ]);
12764
+ var MigrateSwitchReportSchema = object({
12765
+ deviceId: number(),
12766
+ switchId: CameraSwitchIdSchema,
12767
+ outcome: MigrateSwitchOutcomeSchema,
12768
+ detail: string().optional()
12769
+ });
12770
+ var MigrateDeviceResultSchema = object({
12771
+ sourceId: number(),
12772
+ targetId: number(),
12773
+ switches: array(MigrateSwitchReportSchema).readonly(),
12774
+ /** Switches that could NOT be turned off on the source. Empty is the only
12775
+ * value meaning the replaced hardware is quiet. */
12776
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
12777
+ swapped: boolean()
12778
+ });
12755
12779
  method(object({
12756
12780
  addonId: string(),
12757
12781
  stableId: string()
12758
- }), 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({
12782
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
12783
+ sourceId: number(),
12784
+ targetId: number()
12785
+ }), MigrateDeviceResultSchema, {
12786
+ kind: "mutation",
12787
+ auth: "admin"
12788
+ }), 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({
12759
12789
  deviceId: number(),
12760
12790
  name: string()
12761
12791
  }), _void(), {
@@ -30258,6 +30288,12 @@ Object.freeze({
30258
30288
  addonId: null,
30259
30289
  access: "view"
30260
30290
  },
30291
+ "deviceManager.migrateDevice": {
30292
+ capName: "device-manager",
30293
+ capScope: "system",
30294
+ addonId: null,
30295
+ access: "create"
30296
+ },
30261
30297
  "deviceManager.persistConfig": {
30262
30298
  capName: "device-manager",
30263
30299
  capScope: "system",
@@ -37116,7 +37152,7 @@ var AgentUIAddon = class extends BaseAddon {
37116
37152
  capability: adminUiCapability,
37117
37153
  provider: {
37118
37154
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
37119
- getVersion: async () => ({ version: "1.2.55" })
37155
+ getVersion: async () => ({ version: "1.2.56" })
37120
37156
  }
37121
37157
  }];
37122
37158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.55",
3
+ "version": "1.2.56",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",