@camstack/addon-post-analysis 1.2.164 → 1.2.166

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.
@@ -7910,7 +7910,8 @@ var OpsLogReasonSchema = _enum([
7910
7910
  "quota",
7911
7911
  "manual",
7912
7912
  "operator",
7913
- "maintenance"
7913
+ "maintenance",
7914
+ "orphaned-device"
7914
7915
  ]);
7915
7916
  /** One audit row, shared verbatim by both domains. */
7916
7917
  var OpsLogEntrySchema = object({
@@ -13348,10 +13349,39 @@ var DevicePersistConfigPayloadSchema = object({
13348
13349
  deviceId: number(),
13349
13350
  data: record(string(), unknown())
13350
13351
  });
13352
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13353
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13354
+ var MigrateSwitchOutcomeSchema = _enum([
13355
+ "off",
13356
+ "on",
13357
+ "not-offered",
13358
+ "unreachable"
13359
+ ]);
13360
+ var MigrateSwitchReportSchema = object({
13361
+ deviceId: number(),
13362
+ switchId: CameraSwitchIdSchema,
13363
+ outcome: MigrateSwitchOutcomeSchema,
13364
+ detail: string().optional()
13365
+ });
13366
+ var MigrateDeviceResultSchema = object({
13367
+ sourceId: number(),
13368
+ targetId: number(),
13369
+ switches: array(MigrateSwitchReportSchema).readonly(),
13370
+ /** Switches that could NOT be turned off on the source. Empty is the only
13371
+ * value meaning the replaced hardware is quiet. */
13372
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13373
+ swapped: boolean()
13374
+ });
13351
13375
  method(object({
13352
13376
  addonId: string(),
13353
13377
  stableId: string()
13354
- }), 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({
13378
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13379
+ sourceId: number(),
13380
+ targetId: number()
13381
+ }), MigrateDeviceResultSchema, {
13382
+ kind: "mutation",
13383
+ auth: "admin"
13384
+ }), 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({
13355
13385
  deviceId: number(),
13356
13386
  name: string()
13357
13387
  }), _void(), {
@@ -35868,6 +35898,12 @@ Object.freeze({
35868
35898
  addonId: null,
35869
35899
  access: "view"
35870
35900
  },
35901
+ "deviceManager.migrateDevice": {
35902
+ capName: "device-manager",
35903
+ capScope: "system",
35904
+ addonId: null,
35905
+ access: "create"
35906
+ },
35871
35907
  "deviceManager.persistConfig": {
35872
35908
  capName: "device-manager",
35873
35909
  capScope: "system",
@@ -7941,7 +7941,8 @@ var OpsLogReasonSchema = _enum([
7941
7941
  "quota",
7942
7942
  "manual",
7943
7943
  "operator",
7944
- "maintenance"
7944
+ "maintenance",
7945
+ "orphaned-device"
7945
7946
  ]);
7946
7947
  /** One audit row, shared verbatim by both domains. */
7947
7948
  var OpsLogEntrySchema = object({
@@ -13379,10 +13380,39 @@ var DevicePersistConfigPayloadSchema = object({
13379
13380
  deviceId: number(),
13380
13381
  data: record(string(), unknown())
13381
13382
  });
13383
+ /** What a migration actually did, per switch. `unreachable` is a first-class
13384
+ * answer: a camera that could not be asked is not a camera that was silenced. */
13385
+ var MigrateSwitchOutcomeSchema = _enum([
13386
+ "off",
13387
+ "on",
13388
+ "not-offered",
13389
+ "unreachable"
13390
+ ]);
13391
+ var MigrateSwitchReportSchema = object({
13392
+ deviceId: number(),
13393
+ switchId: CameraSwitchIdSchema,
13394
+ outcome: MigrateSwitchOutcomeSchema,
13395
+ detail: string().optional()
13396
+ });
13397
+ var MigrateDeviceResultSchema = object({
13398
+ sourceId: number(),
13399
+ targetId: number(),
13400
+ switches: array(MigrateSwitchReportSchema).readonly(),
13401
+ /** Switches that could NOT be turned off on the source. Empty is the only
13402
+ * value meaning the replaced hardware is quiet. */
13403
+ sourceStillLive: array(CameraSwitchIdSchema).readonly(),
13404
+ swapped: boolean()
13405
+ });
13382
13406
  method(object({
13383
13407
  addonId: string(),
13384
13408
  stableId: string()
13385
- }), 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({
13409
+ }), object({ id: number() }), { kind: "mutation" }), method(object({
13410
+ sourceId: number(),
13411
+ targetId: number()
13412
+ }), MigrateDeviceResultSchema, {
13413
+ kind: "mutation",
13414
+ auth: "admin"
13415
+ }), 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({
13386
13416
  deviceId: number(),
13387
13417
  name: string()
13388
13418
  }), _void(), {
@@ -35899,6 +35929,12 @@ Object.freeze({
35899
35929
  addonId: null,
35900
35930
  access: "view"
35901
35931
  },
35932
+ "deviceManager.migrateDevice": {
35933
+ capName: "device-manager",
35934
+ capScope: "system",
35935
+ addonId: null,
35936
+ access: "create"
35937
+ },
35902
35938
  "deviceManager.persistConfig": {
35903
35939
  capName: "device-manager",
35904
35940
  capScope: "system",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BHNF6L4b.js");
5
+ const require_dist = require("../dist-dGS8z89L.js");
6
6
  let node_fs = require("node:fs");
7
7
  node_fs = require_dist.__toESM(node_fs);
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { P as PoolMemoryWatchdog, ht as parseProcStatus, it as embeddingEncoderCapability, kt as BaseAddon, lt as hfModelUrl, xt as resolvePoolMemoryPolicy } from "../dist-C-Owk01b.mjs";
1
+ import { P as PoolMemoryWatchdog, ht as parseProcStatus, it as embeddingEncoderCapability, kt as BaseAddon, lt as hfModelUrl, xt as resolvePoolMemoryPolicy } from "../dist-DgOc1kH7.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import * as fs from "node:fs";
4
4
  import * as path$1 from "node:path";
@@ -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_analytics_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_analytics_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_analytics_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,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.101",
84
+ version: "1.2.102",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-BHNF6L4b.js");
5
+ const require_dist = require("../dist-dGS8z89L.js");
6
6
  let node_fs = require("node:fs");
7
7
  node_fs = require_dist.__toESM(node_fs, 1);
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { $ as buildEventKindDescriptor, A as NcSnoozeSuppressedSchema, At as DeviceType, B as SCENE_DIVERGED, Bt as literal, C as NcRuleInputSchema, Ct as subKindsOf, D as NcScheduleSchema, Dt as zoneAnalyticsCapability, E as NcRuleTargetSchema, Et as videoclipsCapability, F as RECORDING_EXPORT_MAX_READ_BYTES, Ft as sleep$1, G as TimelapseRuleSchema, Gt as string, H as TIMELAPSE_DENSE_FLOOR_SEC, Ht as object, I as RetrainStatusSchema, It as _enum, J as addonWidgetsSourceCapability, K as TrackSourceSchema, Kt as unknown, Lt as array, M as NcTaxonomySchema, Mt as hydrateSchema, N as OpsLogEntrySchema, Nt as isDeviceScopedCap, O as NcSnoozeInputSchema, Ot as errMsg, Pt as nodePin, Q as audioModeOf, R as SCENE_DEFAULT_ANCHOR_THRESHOLD, Rt as boolean, S as NcConditionDescriptorSchema, St as sceneMonitorCapability, T as NcRuleSchema, Tt as vectorDimFromBase64, U as TimelapseRuleInputSchema, Ut as partialRecord, V as SceneMonitorSchema, Vt as number, W as TimelapseRulePatchSchema, Wt as record, X as assertTimelapseCadences, Y as alarmPanelCapability, Z as audioMetricsCapability, _ as NC_ALARM_SYSTEM_EVENT_KINDS, _t as pipelineAnalyticsCapability, at as encodeVectorBase64, bt as readTimelapseGeneratedAt, ct as failureContributionCapability, d as EVENT_PAD_MS, dt as isScheduleActive, et as cosineSimilarity$1, f as FULL_IMAGE_BBOX, ft as isSourceCap, g as MediaFileKindEnum, gt as pickClusterStepModels, h as MACRO_LABELS, i as DEFAULT_EVENT_COLOR, j as NcSystemEventKindSchema, jt as createEvent, k as NcSnoozeSchema, kt as BaseAddon, l as DeclaredDevices, m as LabelAttributionSchema, mt as notificationRulesCapability, n as CLUSTER_MODEL_SCOPED_STEPS, nt as defineCustomActions, ot as evaluateSensorEdge, p as FailureCounters, pt as kebabToCamel, q as VISIT_MERGE_GAP_MS, qt as EventCategory, r as COCO_TO_MACRO, rt as deriveRecordingMode, s as DETECTION_MACRO_CLASSES, st as faceGalleryCapability, t as BaseDevice, tt as customAction, u as EVENT_KIND_BY_CAP, ut as isDetectionMacroClass, v as NC_CONDITION_CATALOG, vt as plateGalleryCapability, w as NcRulePatchSchema, wt as systemEventFilterApplies, x as NC_TAXONOMY, y as NC_DEFAULT_SNOOZE_MINUTES, yt as readDeviceStateFrom, z as SCENE_DEFAULT_UNCOVERED_POLICY, zt as discriminatedUnion } from "../dist-C-Owk01b.mjs";
1
+ import { $ as buildEventKindDescriptor, A as NcSnoozeSuppressedSchema, At as DeviceType, B as SCENE_DIVERGED, Bt as literal, C as NcRuleInputSchema, Ct as subKindsOf, D as NcScheduleSchema, Dt as zoneAnalyticsCapability, E as NcRuleTargetSchema, Et as videoclipsCapability, F as RECORDING_EXPORT_MAX_READ_BYTES, Ft as sleep$1, G as TimelapseRuleSchema, Gt as string, H as TIMELAPSE_DENSE_FLOOR_SEC, Ht as object, I as RetrainStatusSchema, It as _enum, J as addonWidgetsSourceCapability, K as TrackSourceSchema, Kt as unknown, Lt as array, M as NcTaxonomySchema, Mt as hydrateSchema, N as OpsLogEntrySchema, Nt as isDeviceScopedCap, O as NcSnoozeInputSchema, Ot as errMsg, Pt as nodePin, Q as audioModeOf, R as SCENE_DEFAULT_ANCHOR_THRESHOLD, Rt as boolean, S as NcConditionDescriptorSchema, St as sceneMonitorCapability, T as NcRuleSchema, Tt as vectorDimFromBase64, U as TimelapseRuleInputSchema, Ut as partialRecord, V as SceneMonitorSchema, Vt as number, W as TimelapseRulePatchSchema, Wt as record, X as assertTimelapseCadences, Y as alarmPanelCapability, Z as audioMetricsCapability, _ as NC_ALARM_SYSTEM_EVENT_KINDS, _t as pipelineAnalyticsCapability, at as encodeVectorBase64, bt as readTimelapseGeneratedAt, ct as failureContributionCapability, d as EVENT_PAD_MS, dt as isScheduleActive, et as cosineSimilarity$1, f as FULL_IMAGE_BBOX, ft as isSourceCap, g as MediaFileKindEnum, gt as pickClusterStepModels, h as MACRO_LABELS, i as DEFAULT_EVENT_COLOR, j as NcSystemEventKindSchema, jt as createEvent, k as NcSnoozeSchema, kt as BaseAddon, l as DeclaredDevices, m as LabelAttributionSchema, mt as notificationRulesCapability, n as CLUSTER_MODEL_SCOPED_STEPS, nt as defineCustomActions, ot as evaluateSensorEdge, p as FailureCounters, pt as kebabToCamel, q as VISIT_MERGE_GAP_MS, qt as EventCategory, r as COCO_TO_MACRO, rt as deriveRecordingMode, s as DETECTION_MACRO_CLASSES, st as faceGalleryCapability, t as BaseDevice, tt as customAction, u as EVENT_KIND_BY_CAP, ut as isDetectionMacroClass, v as NC_CONDITION_CATALOG, vt as plateGalleryCapability, w as NcRulePatchSchema, wt as systemEventFilterApplies, x as NC_TAXONOMY, y as NC_DEFAULT_SNOOZE_MINUTES, yt as readDeviceStateFrom, z as SCENE_DEFAULT_UNCOVERED_POLICY, zt as discriminatedUnion } from "../dist-DgOc1kH7.mjs";
2
2
  import { t as __exportAll } from "../embedding-encoder/index.mjs";
3
3
  import * as fs from "node:fs";
4
4
  import { promises } from "node:fs";
@@ -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_analytics_widgets-CafJQcXt.mjs")).catch((e) => {
33
+ return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BF71fbsz.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-post-analysis",
3
- "version": "1.2.164",
3
+ "version": "1.2.166",
4
4
  "description": "Post-Analysis bundle — enrichment, embedding-encoder, pipeline-analytics. Multi-entry npm package shipping addons that consume pipeline output.",
5
5
  "keywords": [
6
6
  "camstack",