@camstack/addon-osd-manager 0.1.260 → 0.1.261

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 (18) hide show
  1. package/dist/{MotionZonesSettings-Czb6U1Uv.mjs → MotionZonesSettings-DRzVtBFW.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-CjQukp2_.mjs → PrivacyMaskSettings-C7wUecND.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BjR4jvak.mjs → SceneMonitorEditor-BkIBeRgq.mjs} +3 -3
  4. package/dist/_stub.js +23 -12
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Dn5RwrzU.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-B4ntcc3T.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CWzPWMLE.mjs +26 -0
  7. package/dist/{hostInit-X1g9h8Uu.mjs → hostInit-BEL9T-ZE.mjs} +3 -3
  8. package/dist/index.js +142 -61
  9. package/dist/index.mjs +142 -61
  10. package/dist/{player-overlays-CYDxfbZg.mjs → player-overlays-DzjfQTb4.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-CPHdCoPU.mjs → responsive-DXxTiZk_.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-BqeT2c18.mjs → scene-monitor-copy-BqnDA31r.mjs} +1 -1
  14. package/dist/{square-sfAhDUz3.mjs → square-DGRrNJim.mjs} +1 -1
  15. package/dist/{trash-2-D2yoPx1r.mjs → trash-2-Cm4a_frA.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DaD0A39G.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Byjybpdl.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-fw4QVG2F.mjs +0 -26
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- //#region ../types/dist/event-category-7pZEBmVg.mjs
5
+ //#region ../types/dist/event-category-BfJwUd2S.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -319,6 +319,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
319
319
  */
320
320
  EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
321
321
  /**
322
+ * A camera's motion source has fired constantly with no subject for an hour
323
+ * (motion duty or session count over the bar, zero detections) — it is not
324
+ * blind, its motion zones or sensitivity want tuning (D907). Paired with
325
+ * {@link PipelineMotionCalm}.
326
+ */
327
+ EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
328
+ /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
329
+ EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
330
+ /**
322
331
  * Per-camera pipeline config was mutated by the orchestrator
323
332
  * (3-level settings change via `setAgentAddonDefaults` /
324
333
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -5425,7 +5434,7 @@ var ZodIssueCode = {
5425
5434
  var ZodFirstPartyTypeKind;
5426
5435
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5427
5436
  //#endregion
5428
- //#region ../types/dist/sleep-CueztlR1.mjs
5437
+ //#region ../types/dist/sleep-DJFUfKvA.mjs
5429
5438
  /**
5430
5439
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5431
5440
  * window to float samples (D455).
@@ -7887,7 +7896,7 @@ var EntryDescriptorSchema = object({
7887
7896
  /** JSON Schema of the entry body; `secret: true` marks a password field. */
7888
7897
  fields: record(string(), unknown())
7889
7898
  }).strict();
7890
- /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
7899
+ /** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
7891
7900
  var RecordKindDeclarationSchema = object({
7892
7901
  database: _enum(RECORD_DATABASES).default("settings"),
7893
7902
  class: _enum(RECORD_CLASSES),
@@ -7906,14 +7915,6 @@ var RecordKindDeclarationSchema = object({
7906
7915
  secretPaths: array(string().min(1)).default([]),
7907
7916
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7908
7917
  secretArrayKeys: record(string(), string()).default({}),
7909
- /**
7910
- * RETIRED (D900): the legacy table a kind adopted from during the records
7911
- * migration. Nothing declares it any more and nothing reads it; the schema
7912
- * still ACCEPTS it because the catalog rows the migration wrote carry it
7913
- * (an orphaned kind is never redeclared) and an addon built before the
7914
- * removal still sends it. Never set it.
7915
- */
7916
- adoptsFrom: string().min(1).optional(),
7917
7918
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7918
7919
  transactFamily: string().min(1).optional(),
7919
7920
  entry: EntryDescriptorSchema.optional()
@@ -12577,17 +12578,6 @@ object({
12577
12578
  createdAt: number(),
12578
12579
  updatedAt: number()
12579
12580
  });
12580
- object({
12581
- id: string(),
12582
- label: string(),
12583
- isAdmin: boolean().default(false),
12584
- allowedProviders: AllowedProviderSchema,
12585
- allowedDevices: AllowedDevicesSchema,
12586
- tokenHash: string(),
12587
- tokenPrefix: string(),
12588
- createdAt: number(),
12589
- lastUsedAt: number().optional()
12590
- });
12591
12581
  object({
12592
12582
  id: string(),
12593
12583
  userId: string(),
@@ -16480,16 +16470,36 @@ var RecordKindStateSchema = _enum([
16480
16470
  var DeclareKindResultSchema = object({
16481
16471
  kindId: number().int(),
16482
16472
  state: RecordKindStateSchema,
16483
- createdIndexes: array(string()),
16484
- /**
16485
- * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16486
- * it stays on the wire, null, because an addon built before the removal reads
16487
- * an ABSENT field as "adoption pending" and refuses to start.
16488
- */
16489
- adoptionPending: _null()
16473
+ createdIndexes: array(string())
16490
16474
  });
16491
16475
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16492
16476
  var SecretRefsList = array(string());
16477
+ /**
16478
+ * One op of a `transact`: the single-row writes, each on a kind of the caller.
16479
+ * All ops of one call share ONE database file and ONE `transactFamily`.
16480
+ */
16481
+ var RecordTransactOpSchema = discriminatedUnion("op", [
16482
+ object({
16483
+ op: literal("put"),
16484
+ kind: RecordKindNameSchema,
16485
+ record: RecordInputSchema,
16486
+ ifRev: number().int().min(0).optional()
16487
+ }),
16488
+ object({
16489
+ op: literal("patch"),
16490
+ kind: RecordKindNameSchema,
16491
+ id: RecordIdSchema,
16492
+ data: RecordBodySchema,
16493
+ at: number().int().nullable().optional(),
16494
+ expiresAt: number().int().nullable().optional(),
16495
+ ifRev: number().int().min(1).optional()
16496
+ }),
16497
+ object({
16498
+ op: literal("delete"),
16499
+ kind: RecordKindNameSchema,
16500
+ id: RecordIdSchema
16501
+ })
16502
+ ]);
16493
16503
  var RecordSecretRefsSchema = record(string(), record(string(), string()));
16494
16504
  method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
16495
16505
  kind: "mutation",
@@ -16596,6 +16606,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
16596
16606
  }), {
16597
16607
  kind: "mutation",
16598
16608
  auth: "admin"
16609
+ }), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
16610
+ results: array(object({
16611
+ rev: number().int().nullable(),
16612
+ deleted: boolean()
16613
+ })),
16614
+ releasedRefs: SecretRefsList,
16615
+ secretRefs: SecretRefsList
16616
+ }), {
16617
+ kind: "mutation",
16618
+ auth: "admin"
16599
16619
  }), method(object({
16600
16620
  deviceId: number().int(),
16601
16621
  kinds: array(RecordKindNameSchema).optional()
@@ -41999,9 +42019,13 @@ var NcSystemEventKindSchema = _enum([
41999
42019
  "node-updating",
42000
42020
  "node-inference-unavailable",
42001
42021
  "detection-blind",
42022
+ "motion-noisy",
42023
+ "motion-calm",
42002
42024
  "recording-stalled",
42003
42025
  "recording-healthy",
42004
42026
  "recording-degraded",
42027
+ "device-attention-required",
42028
+ "device-attention-resolved",
42005
42029
  "storage-location-low",
42006
42030
  "storage-location-critical",
42007
42031
  "storage-location-ok",
@@ -43470,6 +43494,14 @@ var NC_CONDITION_CATALOG = [
43470
43494
  value: "detection-blind",
43471
43495
  label: "Camera detecting nothing"
43472
43496
  },
43497
+ {
43498
+ value: "motion-noisy",
43499
+ label: "Camera motion constant, no subject"
43500
+ },
43501
+ {
43502
+ value: "motion-calm",
43503
+ label: "Camera motion calm again"
43504
+ },
43473
43505
  {
43474
43506
  value: "recording-stalled",
43475
43507
  label: "Recording stalled"
@@ -43482,6 +43514,14 @@ var NC_CONDITION_CATALOG = [
43482
43514
  value: "recording-degraded",
43483
43515
  label: "Recording degraded (restart storm)"
43484
43516
  },
43517
+ {
43518
+ value: "device-attention-required",
43519
+ label: "Device needs attention"
43520
+ },
43521
+ {
43522
+ value: "device-attention-resolved",
43523
+ label: "Device attention resolved"
43524
+ },
43485
43525
  {
43486
43526
  value: "storage-location-low",
43487
43527
  label: "Storage location low"
@@ -55046,6 +55086,16 @@ object({
55046
55086
  powerState: string().nullable(),
55047
55087
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55048
55088
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55089
+ /**
55090
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55091
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
55092
+ * when none is reported. A cleared reminder is not an unknown one.
55093
+ */
55094
+ filterCleaningDue: boolean().nullable(),
55095
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
55096
+ machineCareDue: boolean().nullable(),
55097
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
55098
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
55049
55099
  /** Option states: null when the appliance does not expose the option or has not said. */
55050
55100
  halfLoad: boolean().nullable(),
55051
55101
  hygienePlus: boolean().nullable(),
@@ -61725,16 +61775,6 @@ var UpdateUserInputSchema = object({
61725
61775
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
61726
61776
  scopes: array(TokenScopeSchema).optional()
61727
61777
  });
61728
- var ApiKeySummarySchema = object({
61729
- id: string(),
61730
- label: string(),
61731
- isAdmin: boolean().default(false),
61732
- allowedProviders: union([array(string()), literal("*")]).optional(),
61733
- allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
61734
- tokenPrefix: string(),
61735
- createdAt: number(),
61736
- lastUsedAt: number().optional()
61737
- });
61738
61778
  var OauthSessionSummarySchema = object({
61739
61779
  id: string(),
61740
61780
  userId: string(),
@@ -61756,8 +61796,7 @@ var TotpStatusSchema = object({
61756
61796
  confirmedAt: number().nullable()
61757
61797
  });
61758
61798
  /**
61759
- * user-management — singleton capability for user accounts and the
61760
- * legacy API-key rows.
61799
+ * user-management — singleton capability for user accounts.
61761
61800
  *
61762
61801
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
61763
61802
  * — the subset check on `setUserScopes` is moot
@@ -61813,10 +61852,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61813
61852
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
61814
61853
  kind: "mutation",
61815
61854
  access: "view"
61816
- }), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
61817
- kind: "mutation",
61818
- auth: "admin",
61819
- access: "delete"
61820
61855
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
61821
61856
  kind: "mutation",
61822
61857
  auth: "admin",
@@ -69645,6 +69680,12 @@ Object.freeze({
69645
69680
  addonId: null,
69646
69681
  access: "view"
69647
69682
  },
69683
+ "records.transact": {
69684
+ capName: "records",
69685
+ capScope: "system",
69686
+ addonId: null,
69687
+ access: "create"
69688
+ },
69648
69689
  "sceneMonitor.captureReference": {
69649
69690
  capName: "scene-monitor",
69650
69691
  capScope: "device",
@@ -70977,12 +71018,6 @@ Object.freeze({
70977
71018
  addonId: null,
70978
71019
  access: "view"
70979
71020
  },
70980
- "userManagement.listApiKeys": {
70981
- capName: "user-management",
70982
- capScope: "system",
70983
- addonId: null,
70984
- access: "view"
70985
- },
70986
71021
  "userManagement.listExternalIdentities": {
70987
71022
  capName: "user-management",
70988
71023
  capScope: "system",
@@ -71037,12 +71072,6 @@ Object.freeze({
71037
71072
  addonId: null,
71038
71073
  access: "create"
71039
71074
  },
71040
- "userManagement.revokeApiKey": {
71041
- capName: "user-management",
71042
- capScope: "system",
71043
- addonId: null,
71044
- access: "delete"
71045
- },
71046
71075
  "userManagement.revokeOauthSession": {
71047
71076
  capName: "user-management",
71048
71077
  capScope: "system",
@@ -74407,9 +74436,13 @@ new Map(Object.entries({
74407
74436
  "stream-online": "device-events",
74408
74437
  "stream-offline": "device-events",
74409
74438
  "detection-blind": "device-events",
74439
+ "motion-noisy": "device-events",
74440
+ "motion-calm": "device-events",
74410
74441
  "recording-stalled": "device-events",
74411
74442
  "recording-healthy": "device-events",
74412
74443
  "recording-degraded": "device-events",
74444
+ "device-attention-required": "device-events",
74445
+ "device-attention-resolved": "device-events",
74413
74446
  "node-online": "system",
74414
74447
  "node-offline": "system",
74415
74448
  "node-restarting": "system",
@@ -74492,6 +74525,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74492
74525
  label: "Detecting nothing",
74493
74526
  kinds: ["detection-blind"]
74494
74527
  },
74528
+ {
74529
+ id: "motion-noise",
74530
+ family: "device-events",
74531
+ label: "Motion without a subject",
74532
+ kinds: ["motion-noisy", "motion-calm"]
74533
+ },
74495
74534
  {
74496
74535
  id: "recording",
74497
74536
  family: "device-events",
@@ -74502,6 +74541,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74502
74541
  "recording-degraded"
74503
74542
  ]
74504
74543
  },
74544
+ {
74545
+ id: "device-attention",
74546
+ family: "device-events",
74547
+ label: "Needs attention",
74548
+ kinds: ["device-attention-required", "device-attention-resolved"]
74549
+ },
74505
74550
  {
74506
74551
  id: "nodes",
74507
74552
  family: "system",
@@ -74721,6 +74766,7 @@ var ALERT_EPISODE = [
74721
74766
  "alert-error",
74722
74767
  "alert-critical-resolved"
74723
74768
  ];
74769
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74724
74770
  var UPDATES = [
74725
74771
  "addon-update-available",
74726
74772
  "server-update-available",
@@ -74750,9 +74796,12 @@ var DEVICE_EVENTS = [
74750
74796
  "stream-online",
74751
74797
  "stream-offline",
74752
74798
  "detection-blind",
74799
+ "motion-noisy",
74800
+ "motion-calm",
74753
74801
  "recording-stalled",
74754
74802
  "recording-healthy",
74755
74803
  "recording-degraded",
74804
+ ...DEVICE_ATTENTION,
74756
74805
  ...ALARM
74757
74806
  ];
74758
74807
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -74920,7 +74969,9 @@ var STATE_SUMMARY_VARS = [
74920
74969
  [...RULE_TEXT],
74921
74970
  [...RULE_TEXT],
74922
74971
  [...RULE_TEXT],
74923
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74972
+ [...RULE_TEXT],
74973
+ [...RULE_TEXT],
74974
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74924
74975
  [...RULE_TEXT],
74925
74976
  [...RULE_TEXT],
74926
74977
  [...RULE_TEXT],
@@ -74942,11 +74993,11 @@ var STATE_SUMMARY_VARS = [
74942
74993
  [...RULE_TEXT],
74943
74994
  [...RULE_TEXT],
74944
74995
  [...RULE_TEXT],
74996
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74945
74997
  ([...RULE_TEXT], [...ALERT_EPISODE]),
74998
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74946
74999
  ([...RULE_TEXT], [...ALERT_EPISODE]),
74947
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74948
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74949
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75000
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74950
75001
  [...RULE_TEXT],
74951
75002
  [...RULE_TEXT],
74952
75003
  [...RULE_TEXT],
@@ -75022,6 +75073,15 @@ new Map([
75022
75073
  snapshotLabel: "Tanks low or full now",
75023
75074
  snapshotSection: "tanks"
75024
75075
  },
75076
+ {
75077
+ id: "motion-noise",
75078
+ family: "device-events",
75079
+ label: "Motion without a subject (constant / calm again)",
75080
+ bad: ["motion-noisy"],
75081
+ recovery: ["motion-calm"],
75082
+ snapshotLabel: "Cameras with constant motion now",
75083
+ snapshotSection: null
75084
+ },
75025
75085
  {
75026
75086
  id: "recording-health",
75027
75087
  family: "device-events",
@@ -75031,6 +75091,15 @@ new Map([
75031
75091
  snapshotLabel: "Recordings stalled now",
75032
75092
  snapshotSection: null
75033
75093
  },
75094
+ {
75095
+ id: "device-attention",
75096
+ family: "device-events",
75097
+ label: "Device needs attention (raised / resolved)",
75098
+ bad: ["device-attention-required"],
75099
+ recovery: ["device-attention-resolved"],
75100
+ snapshotLabel: "Devices needing attention now",
75101
+ snapshotSection: null
75102
+ },
75034
75103
  {
75035
75104
  id: "node-connectivity",
75036
75105
  family: "system",
@@ -77233,6 +77302,18 @@ var CAP_STATE_LEAVES = Object.freeze({
77233
77302
  "empty"
77234
77303
  ]
77235
77304
  },
77305
+ {
77306
+ "path": "filterCleaningDue",
77307
+ "valueType": "boolean"
77308
+ },
77309
+ {
77310
+ "path": "machineCareDue",
77311
+ "valueType": "boolean"
77312
+ },
77313
+ {
77314
+ "path": "machineCareRemainingRuns",
77315
+ "valueType": "number"
77316
+ },
77236
77317
  {
77237
77318
  "path": "halfLoad",
77238
77319
  "valueType": "boolean"