@camstack/addon-osd-manager 0.1.260 → 0.1.262

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-DmQHlRD8.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-CjQukp2_.mjs → PrivacyMaskSettings-Bwduz_L2.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BjR4jvak.mjs → SceneMonitorEditor-BxIDOWEP.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-CQ9S3_n1.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-67r1vkIW.mjs +26 -0
  7. package/dist/{hostInit-X1g9h8Uu.mjs → hostInit-Dw_GUFsb.mjs} +3 -3
  8. package/dist/index.js +142 -67
  9. package/dist/index.mjs +142 -67
  10. package/dist/{player-overlays-CYDxfbZg.mjs → player-overlays-Bm48oYAV.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-CPHdCoPU.mjs → responsive-BEF2g9pl.mjs} +1 -1
  13. package/dist/{scene-monitor-copy-BqeT2c18.mjs → scene-monitor-copy-dsiWag_w.mjs} +1 -1
  14. package/dist/{square-sfAhDUz3.mjs → square-BpWGsia4.mjs} +1 -1
  15. package/dist/{trash-2-D2yoPx1r.mjs → trash-2-CtCWv0GO.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-DaIEFI9b.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"
@@ -48150,7 +48190,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48150
48190
  modelId: string()
48151
48191
  }),
48152
48192
  object({ kind: literal("cpu-device") }),
48153
- object({ kind: literal("coral-untouched") }),
48154
48193
  object({ kind: literal("device-disabled") }),
48155
48194
  object({ kind: literal("device-unavailable") }),
48156
48195
  object({ kind: literal("node-offline") }),
@@ -48248,11 +48287,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48248
48287
  kind: literal("detector-store-unreadable"),
48249
48288
  error: string()
48250
48289
  }),
48251
- object({
48252
- kind: literal("coral-enabled"),
48253
- nodeId: string(),
48254
- deviceKey: string()
48255
- }),
48256
48290
  object({
48257
48291
  kind: literal("custom-pin-kept"),
48258
48292
  nodeId: string(),
@@ -55046,6 +55080,16 @@ object({
55046
55080
  powerState: string().nullable(),
55047
55081
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55048
55082
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55083
+ /**
55084
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55085
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
55086
+ * when none is reported. A cleared reminder is not an unknown one.
55087
+ */
55088
+ filterCleaningDue: boolean().nullable(),
55089
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
55090
+ machineCareDue: boolean().nullable(),
55091
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
55092
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
55049
55093
  /** Option states: null when the appliance does not expose the option or has not said. */
55050
55094
  halfLoad: boolean().nullable(),
55051
55095
  hygienePlus: boolean().nullable(),
@@ -61725,16 +61769,6 @@ var UpdateUserInputSchema = object({
61725
61769
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
61726
61770
  scopes: array(TokenScopeSchema).optional()
61727
61771
  });
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
61772
  var OauthSessionSummarySchema = object({
61739
61773
  id: string(),
61740
61774
  userId: string(),
@@ -61756,8 +61790,7 @@ var TotpStatusSchema = object({
61756
61790
  confirmedAt: number().nullable()
61757
61791
  });
61758
61792
  /**
61759
- * user-management — singleton capability for user accounts and the
61760
- * legacy API-key rows.
61793
+ * user-management — singleton capability for user accounts.
61761
61794
  *
61762
61795
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
61763
61796
  * — the subset check on `setUserScopes` is moot
@@ -61813,10 +61846,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61813
61846
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
61814
61847
  kind: "mutation",
61815
61848
  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
61849
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
61821
61850
  kind: "mutation",
61822
61851
  auth: "admin",
@@ -69645,6 +69674,12 @@ Object.freeze({
69645
69674
  addonId: null,
69646
69675
  access: "view"
69647
69676
  },
69677
+ "records.transact": {
69678
+ capName: "records",
69679
+ capScope: "system",
69680
+ addonId: null,
69681
+ access: "create"
69682
+ },
69648
69683
  "sceneMonitor.captureReference": {
69649
69684
  capName: "scene-monitor",
69650
69685
  capScope: "device",
@@ -70977,12 +71012,6 @@ Object.freeze({
70977
71012
  addonId: null,
70978
71013
  access: "view"
70979
71014
  },
70980
- "userManagement.listApiKeys": {
70981
- capName: "user-management",
70982
- capScope: "system",
70983
- addonId: null,
70984
- access: "view"
70985
- },
70986
71015
  "userManagement.listExternalIdentities": {
70987
71016
  capName: "user-management",
70988
71017
  capScope: "system",
@@ -71037,12 +71066,6 @@ Object.freeze({
71037
71066
  addonId: null,
71038
71067
  access: "create"
71039
71068
  },
71040
- "userManagement.revokeApiKey": {
71041
- capName: "user-management",
71042
- capScope: "system",
71043
- addonId: null,
71044
- access: "delete"
71045
- },
71046
71069
  "userManagement.revokeOauthSession": {
71047
71070
  capName: "user-management",
71048
71071
  capScope: "system",
@@ -74407,9 +74430,13 @@ new Map(Object.entries({
74407
74430
  "stream-online": "device-events",
74408
74431
  "stream-offline": "device-events",
74409
74432
  "detection-blind": "device-events",
74433
+ "motion-noisy": "device-events",
74434
+ "motion-calm": "device-events",
74410
74435
  "recording-stalled": "device-events",
74411
74436
  "recording-healthy": "device-events",
74412
74437
  "recording-degraded": "device-events",
74438
+ "device-attention-required": "device-events",
74439
+ "device-attention-resolved": "device-events",
74413
74440
  "node-online": "system",
74414
74441
  "node-offline": "system",
74415
74442
  "node-restarting": "system",
@@ -74492,6 +74519,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74492
74519
  label: "Detecting nothing",
74493
74520
  kinds: ["detection-blind"]
74494
74521
  },
74522
+ {
74523
+ id: "motion-noise",
74524
+ family: "device-events",
74525
+ label: "Motion without a subject",
74526
+ kinds: ["motion-noisy", "motion-calm"]
74527
+ },
74495
74528
  {
74496
74529
  id: "recording",
74497
74530
  family: "device-events",
@@ -74502,6 +74535,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74502
74535
  "recording-degraded"
74503
74536
  ]
74504
74537
  },
74538
+ {
74539
+ id: "device-attention",
74540
+ family: "device-events",
74541
+ label: "Needs attention",
74542
+ kinds: ["device-attention-required", "device-attention-resolved"]
74543
+ },
74505
74544
  {
74506
74545
  id: "nodes",
74507
74546
  family: "system",
@@ -74721,6 +74760,7 @@ var ALERT_EPISODE = [
74721
74760
  "alert-error",
74722
74761
  "alert-critical-resolved"
74723
74762
  ];
74763
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74724
74764
  var UPDATES = [
74725
74765
  "addon-update-available",
74726
74766
  "server-update-available",
@@ -74750,9 +74790,12 @@ var DEVICE_EVENTS = [
74750
74790
  "stream-online",
74751
74791
  "stream-offline",
74752
74792
  "detection-blind",
74793
+ "motion-noisy",
74794
+ "motion-calm",
74753
74795
  "recording-stalled",
74754
74796
  "recording-healthy",
74755
74797
  "recording-degraded",
74798
+ ...DEVICE_ATTENTION,
74756
74799
  ...ALARM
74757
74800
  ];
74758
74801
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -74920,7 +74963,9 @@ var STATE_SUMMARY_VARS = [
74920
74963
  [...RULE_TEXT],
74921
74964
  [...RULE_TEXT],
74922
74965
  [...RULE_TEXT],
74923
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74966
+ [...RULE_TEXT],
74967
+ [...RULE_TEXT],
74968
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74924
74969
  [...RULE_TEXT],
74925
74970
  [...RULE_TEXT],
74926
74971
  [...RULE_TEXT],
@@ -74942,11 +74987,11 @@ var STATE_SUMMARY_VARS = [
74942
74987
  [...RULE_TEXT],
74943
74988
  [...RULE_TEXT],
74944
74989
  [...RULE_TEXT],
74990
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74945
74991
  ([...RULE_TEXT], [...ALERT_EPISODE]),
74992
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74946
74993
  ([...RULE_TEXT], [...ALERT_EPISODE]),
74947
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74948
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74949
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74994
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74950
74995
  [...RULE_TEXT],
74951
74996
  [...RULE_TEXT],
74952
74997
  [...RULE_TEXT],
@@ -75022,6 +75067,15 @@ new Map([
75022
75067
  snapshotLabel: "Tanks low or full now",
75023
75068
  snapshotSection: "tanks"
75024
75069
  },
75070
+ {
75071
+ id: "motion-noise",
75072
+ family: "device-events",
75073
+ label: "Motion without a subject (constant / calm again)",
75074
+ bad: ["motion-noisy"],
75075
+ recovery: ["motion-calm"],
75076
+ snapshotLabel: "Cameras with constant motion now",
75077
+ snapshotSection: null
75078
+ },
75025
75079
  {
75026
75080
  id: "recording-health",
75027
75081
  family: "device-events",
@@ -75031,6 +75085,15 @@ new Map([
75031
75085
  snapshotLabel: "Recordings stalled now",
75032
75086
  snapshotSection: null
75033
75087
  },
75088
+ {
75089
+ id: "device-attention",
75090
+ family: "device-events",
75091
+ label: "Device needs attention (raised / resolved)",
75092
+ bad: ["device-attention-required"],
75093
+ recovery: ["device-attention-resolved"],
75094
+ snapshotLabel: "Devices needing attention now",
75095
+ snapshotSection: null
75096
+ },
75034
75097
  {
75035
75098
  id: "node-connectivity",
75036
75099
  family: "system",
@@ -77233,6 +77296,18 @@ var CAP_STATE_LEAVES = Object.freeze({
77233
77296
  "empty"
77234
77297
  ]
77235
77298
  },
77299
+ {
77300
+ "path": "filterCleaningDue",
77301
+ "valueType": "boolean"
77302
+ },
77303
+ {
77304
+ "path": "machineCareDue",
77305
+ "valueType": "boolean"
77306
+ },
77307
+ {
77308
+ "path": "machineCareRemainingRuns",
77309
+ "valueType": "number"
77310
+ },
77236
77311
  {
77237
77312
  "path": "halfLoad",
77238
77313
  "valueType": "boolean"