@camstack/addon-pipeline-orchestrator 1.2.136 → 1.2.137

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.
@@ -3,7 +3,7 @@ import "./dist-CYZr2fwk.mjs";
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.55",
6
+ version: "1.2.56",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_pipeline_orchestrator_widgets",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.135",
21
+ version: "1.2.136",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_pipeline_orchestrator_widgets",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.101",
36
+ version: "1.2.102",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_pipeline_orchestrator_widgets",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.135",
39
+ version: "1.2.136",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.55",
48
+ version: "1.2.56",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -99,7 +99,7 @@ async function r() {
99
99
  }
100
100
  },
101
101
  "@camstack/ui-library": {
102
- version: "1.2.101",
102
+ version: "1.2.102",
103
103
  scope: "default",
104
104
  shareConfig: {
105
105
  singleton: !0,
package/dist/index.js CHANGED
@@ -8594,7 +8594,8 @@ var OpsLogReasonSchema = _enum([
8594
8594
  "quota",
8595
8595
  "manual",
8596
8596
  "operator",
8597
- "maintenance"
8597
+ "maintenance",
8598
+ "orphaned-device"
8598
8599
  ]);
8599
8600
  /** One audit row, shared verbatim by both domains. */
8600
8601
  var OpsLogEntrySchema = object({
@@ -13704,10 +13705,39 @@ var DevicePersistConfigPayloadSchema = object({
13704
13705
  deviceId: number(),
13705
13706
  data: record(string(), unknown())
13706
13707
  });
13708
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13709
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13710
+ var MigrateSwitchOutcomeSchema = _enum([
13711
+ "off",
13712
+ "on",
13713
+ "not-offered",
13714
+ "unreachable"
13715
+ ]);
13716
+ var MigrateSwitchReportSchema = object({
13717
+ deviceId: number(),
13718
+ switchId: CameraSwitchIdSchema,
13719
+ outcome: MigrateSwitchOutcomeSchema,
13720
+ detail: string().optional()
13721
+ });
13722
+ var MigrateDeviceResultSchema = object({
13723
+ sourceId: number(),
13724
+ targetId: number(),
13725
+ switches: array(MigrateSwitchReportSchema).readonly(),
13726
+ /** Switches that could NOT be turned off on the source. Empty is the only
13727
+ * value meaning the replaced hardware is quiet. */
13728
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13729
+ swapped: boolean()
13730
+ });
13707
13731
  method(object({
13708
13732
  addonId: string(),
13709
13733
  stableId: string()
13710
- }), 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({
13734
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13735
+ sourceId: number(),
13736
+ targetId: number()
13737
+ }), MigrateDeviceResultSchema, {
13738
+ kind: "mutation",
13739
+ auth: "admin"
13740
+ }), 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({
13711
13741
  deviceId: number(),
13712
13742
  name: string()
13713
13743
  }), _void(), {
@@ -31999,6 +32029,12 @@ Object.freeze({
31999
32029
  addonId: null,
32000
32030
  access: "view"
32001
32031
  },
32032
+ "deviceManager.migrateDevice": {
32033
+ capName: "device-manager",
32034
+ capScope: "system",
32035
+ addonId: null,
32036
+ access: "create"
32037
+ },
32002
32038
  "deviceManager.persistConfig": {
32003
32039
  capName: "device-manager",
32004
32040
  capScope: "system",
package/dist/index.mjs CHANGED
@@ -8566,7 +8566,8 @@ var OpsLogReasonSchema = _enum([
8566
8566
  "quota",
8567
8567
  "manual",
8568
8568
  "operator",
8569
- "maintenance"
8569
+ "maintenance",
8570
+ "orphaned-device"
8570
8571
  ]);
8571
8572
  /** One audit row, shared verbatim by both domains. */
8572
8573
  var OpsLogEntrySchema = object({
@@ -13676,10 +13677,39 @@ var DevicePersistConfigPayloadSchema = object({
13676
13677
  deviceId: number(),
13677
13678
  data: record(string(), unknown())
13678
13679
  });
13680
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13681
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13682
+ var MigrateSwitchOutcomeSchema = _enum([
13683
+ "off",
13684
+ "on",
13685
+ "not-offered",
13686
+ "unreachable"
13687
+ ]);
13688
+ var MigrateSwitchReportSchema = object({
13689
+ deviceId: number(),
13690
+ switchId: CameraSwitchIdSchema,
13691
+ outcome: MigrateSwitchOutcomeSchema,
13692
+ detail: string().optional()
13693
+ });
13694
+ var MigrateDeviceResultSchema = object({
13695
+ sourceId: number(),
13696
+ targetId: number(),
13697
+ switches: array(MigrateSwitchReportSchema).readonly(),
13698
+ /** Switches that could NOT be turned off on the source. Empty is the only
13699
+ * value meaning the replaced hardware is quiet. */
13700
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13701
+ swapped: boolean()
13702
+ });
13679
13703
  method(object({
13680
13704
  addonId: string(),
13681
13705
  stableId: string()
13682
- }), 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({
13706
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13707
+ sourceId: number(),
13708
+ targetId: number()
13709
+ }), MigrateDeviceResultSchema, {
13710
+ kind: "mutation",
13711
+ auth: "admin"
13712
+ }), 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({
13683
13713
  deviceId: number(),
13684
13714
  name: string()
13685
13715
  }), _void(), {
@@ -31971,6 +32001,12 @@ Object.freeze({
31971
32001
  addonId: null,
31972
32002
  access: "view"
31973
32003
  },
32004
+ "deviceManager.migrateDevice": {
32005
+ capName: "device-manager",
32006
+ capScope: "system",
32007
+ addonId: null,
32008
+ access: "create"
32009
+ },
31974
32010
  "deviceManager.persistConfig": {
31975
32011
  capName: "device-manager",
31976
32012
  capScope: "system",
@@ -30,7 +30,7 @@ async function d(e) {
30
30
  }
31
31
  }
32
32
  async function f() {
33
- return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-C79iNoLr.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-BP4opZs8.mjs")).catch((e) => {
34
34
  throw l = void 0, e;
35
35
  }), l;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-pipeline-orchestrator",
3
- "version": "1.2.136",
3
+ "version": "1.2.137",
4
4
  "description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
5
5
  "keywords": [
6
6
  "camstack",