@camstack/addon-provider-homeassistant 1.2.116 → 1.2.117

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.
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("./dist-Daqsf2Q7.js");
2
+ const require_dist = require("./dist-By4s88My.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let node_zlib = require("node:zlib");
5
5
  //#region src/ha-device-source.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-DRv84o8E.mjs";
1
+ import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-Badx--6A.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
4
4
  //#region src/ha-device-source.ts
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
5345
5345
  var ZodFirstPartyTypeKind;
5346
5346
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5347
5347
  //#endregion
5348
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5348
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5349
5349
  /**
5350
5350
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5351
5351
  * window to float samples (D455).
@@ -7550,7 +7550,23 @@ var EncodeProfileSchema = object({
7550
7550
  "zerolatency",
7551
7551
  "film",
7552
7552
  "animation"
7553
- ]).optional()
7553
+ ]).optional(),
7554
+ /**
7555
+ * ONE slice per access unit.
7556
+ *
7557
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7558
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7559
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7560
+ * frame-end per frame: the first pictures render and the video then freezes
7561
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7562
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7563
+ *
7564
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7565
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7566
+ * consumers meaning the same thing spelled differently would stop sharing one
7567
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7568
+ */
7569
+ singleSlicePerFrame: boolean().optional()
7554
7570
  }),
7555
7571
  audio: union([literal("passthrough"), object({
7556
7572
  codec: _enum([
@@ -7600,7 +7616,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7600
7616
  audio: "passthrough"
7601
7617
  };
7602
7618
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7603
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7619
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7604
7620
  /**
7605
7621
  * Deep wiring healthcheck — snapshot of active reachability probes across
7606
7622
  * every declared capability + widget of every installed plugin, on every
@@ -20516,13 +20532,109 @@ var SummariesQueryInput = object({
20516
20532
  deviceIds: array(number()).min(1),
20517
20533
  since: number().optional(),
20518
20534
  until: number().optional(),
20519
- limit: number().int().min(1).max(200).default(50)
20535
+ limit: number().int().min(1).max(200).default(50),
20536
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20537
+ * meaning of "dog" on every summary surface. */
20538
+ classes: array(string().min(1).max(60)).max(40).optional()
20520
20539
  });
20521
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20522
20540
  var SummaryDetailSchema = object({
20523
20541
  summary: SummarySchema,
20524
- /** Member track ids, in absorption order. */
20525
- trackIds: array(string()).readonly()
20542
+ /** Members in absorption order, oldest join first. */
20543
+ members: array(object({
20544
+ trackId: string(),
20545
+ /**
20546
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20547
+ * and the track no longer exists to fill it.
20548
+ *
20549
+ * The join, not the latest opinion: class voting can re-decide a track's
20550
+ * class afterwards, and a group's composition is the history of who came
20551
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20552
+ * dog" — rather than being handed a second, denormalised tally that would
20553
+ * drift from the members it claims to describe.
20554
+ */
20555
+ className: string().nullable(),
20556
+ /** `primary` is the one member that carries the group's identity. */
20557
+ role: _enum([
20558
+ "primary",
20559
+ "sibling",
20560
+ "child"
20561
+ ]).nullable(),
20562
+ joinedAt: number(),
20563
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20564
+ * at read time. Absent when nothing resolved, never an empty string. */
20565
+ label: string().optional(),
20566
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20567
+ * recognised nobody, and absent for a member whose track has been pruned —
20568
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20569
+ subLabel: string().optional()
20570
+ })).readonly()
20571
+ });
20572
+ /**
20573
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20574
+ *
20575
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20576
+ * we extend when we notice we need more". Enough to draw the card ("two people
20577
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20578
+ * are on {@link getSummary}: shipping every member of every group so a client
20579
+ * can count them turns a page of two hundred groups into a thousand records to
20580
+ * draw two hundred badges.
20581
+ */
20582
+ var SummaryListItemSchema = object({
20583
+ summary: SummarySchema,
20584
+ /** Class counts, most numerous first; `className: null` is a member whose
20585
+ * class never resolved, counted so the counts add up to `memberCount`. */
20586
+ classes: array(object({
20587
+ className: string().nullable(),
20588
+ count: number().int().positive()
20589
+ })).readonly()
20590
+ });
20591
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20592
+ /**
20593
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20594
+ *
20595
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20596
+ * summaries feed that could only answer "the last N for these cameras"
20597
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20598
+ * else. Two feeds with different ordering contracts would be two ideas of what
20599
+ * "newest" means, on one screen.
20600
+ */
20601
+ var RecentSummariesQueryInput = object({
20602
+ /** Devices to merge. An empty array yields an empty page. */
20603
+ deviceIds: array(number()),
20604
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20605
+ since: number().optional(),
20606
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20607
+ until: number().optional(),
20608
+ limit: number().int().min(1).max(500).default(100),
20609
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20610
+ cursor: string().optional(),
20611
+ /**
20612
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20613
+ * deliberately the same name: the events filter tree emits one list of ticked
20614
+ * taxonomy nodes, and a summaries feed that called it something else would
20615
+ * make the operator's one filter component produce two shapes.
20616
+ *
20617
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20618
+ * me the arrivals with a dog" has to return the group of four people who had
20619
+ * one with them; a filter on the group's own fields could only ever answer
20620
+ * about its primary.
20621
+ *
20622
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20623
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20624
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20625
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20626
+ * that read only the class would answer "animal" and never "dog".
20627
+ *
20628
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20629
+ */
20630
+ classes: array(string().min(1).max(60)).max(40).optional()
20631
+ });
20632
+ var RecentSummariesPageSchema = object({
20633
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20634
+ * {@link listSummaries} — one list shape, so a card renders the same
20635
+ * whichever feed drew it. */
20636
+ summaries: array(SummaryListItemSchema).readonly(),
20637
+ nextCursor: string().nullable()
20526
20638
  });
20527
20639
  var RecentTracksPageSchema = object({
20528
20640
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20936,7 +21048,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20936
21048
  classes: array(string()).optional(),
20937
21049
  /** See {@link ExcludeSourcesDoc}. */
20938
21050
  excludeSources: array(TrackSourceSchema).optional()
20939
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
21051
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20940
21052
  kind: "mutation",
20941
21053
  auth: "admin"
20942
21054
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -32778,7 +32890,29 @@ var LoggingSettingsPatchSchema = object({
32778
32890
  * disarmed the channels it did not mention would make the Levels page and
32779
32891
  * the Diagnostics page fight over the same value.
32780
32892
  */
32781
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32893
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32894
+ /**
32895
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32896
+ * retention actually deleted.
32897
+ *
32898
+ * It lives HERE, on the logging document, and not on the analytics addon's
32899
+ * settings form, on the operator's instruction: every other log-ish window in
32900
+ * this system is configured through this one document, and a retention audit
32901
+ * configured somewhere else is a second place to look when the question is
32902
+ * "what happened to my data".
32903
+ *
32904
+ * That placement has a cost worth stating: this document ships in the
32905
+ * framework closure, so this knob needs a published `@camstack/server` while
32906
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32907
+ *
32908
+ * `retention-model.ts` argued this one must NOT follow a device window,
32909
+ * because the audit trail is the history of the SWEEP and not of the camera.
32910
+ * That argument stands and is untouched — what changes is that 30 days stops
32911
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32912
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32913
+ * state in which the next 9.5 GiB leak cannot be explained.
32914
+ */
32915
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32782
32916
  });
32783
32917
  /**
32784
32918
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32851,6 +32985,14 @@ var LoggingSettingsStateSchema = object({
32851
32985
  channels: array(LogChannelDescriptorSchema).readonly(),
32852
32986
  /** The channels ARMED right now, each with its deadline. */
32853
32987
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32988
+ /**
32989
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32990
+ *
32991
+ * Reported rather than left to the caller's memory of what it wrote: this is
32992
+ * the value the analytics sweep will actually use, and an operator asking how
32993
+ * long their audit trail lives should not have to infer it from a default.
32994
+ */
32995
+ opsLogRetentionDays: number().int().min(0),
32854
32996
  persisted: boolean()
32855
32997
  });
32856
32998
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -38851,6 +38993,12 @@ Object.freeze({
38851
38993
  addonId: null,
38852
38994
  access: "view"
38853
38995
  },
38996
+ "pipelineAnalytics.listRecentSummaries": {
38997
+ capName: "pipeline-analytics",
38998
+ capScope: "device",
38999
+ addonId: null,
39000
+ access: "view"
39001
+ },
38854
39002
  "pipelineAnalytics.listRecentTracks": {
38855
39003
  capName: "pipeline-analytics",
38856
39004
  capScope: "device",
@@ -42678,6 +42826,11 @@ Object.freeze({
42678
42826
  form: "single",
42679
42827
  optional: true
42680
42828
  }],
42829
+ "pipelineAnalytics.listRecentSummaries": [{
42830
+ name: "deviceIds",
42831
+ form: "array",
42832
+ optional: false
42833
+ }],
42681
42834
  "pipelineAnalytics.listRecentTracks": [{
42682
42835
  name: "deviceIds",
42683
42836
  form: "array",
@@ -5345,7 +5345,7 @@ var ZodIssueCode = {
5345
5345
  var ZodFirstPartyTypeKind;
5346
5346
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5347
5347
  //#endregion
5348
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5348
+ //#region ../types/dist/sleep-DBKu2-U5.mjs
5349
5349
  /**
5350
5350
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5351
5351
  * window to float samples (D455).
@@ -7550,7 +7550,23 @@ var EncodeProfileSchema = object({
7550
7550
  "zerolatency",
7551
7551
  "film",
7552
7552
  "animation"
7553
- ]).optional()
7553
+ ]).optional(),
7554
+ /**
7555
+ * ONE slice per access unit.
7556
+ *
7557
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7558
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7559
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7560
+ * frame-end per frame: the first pictures render and the video then freezes
7561
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7562
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7563
+ *
7564
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7565
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7566
+ * consumers meaning the same thing spelled differently would stop sharing one
7567
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7568
+ */
7569
+ singleSlicePerFrame: boolean().optional()
7554
7570
  }),
7555
7571
  audio: union([literal("passthrough"), object({
7556
7572
  codec: _enum([
@@ -7600,7 +7616,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7600
7616
  audio: "passthrough"
7601
7617
  };
7602
7618
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7603
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7619
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7604
7620
  /**
7605
7621
  * Deep wiring healthcheck — snapshot of active reachability probes across
7606
7622
  * every declared capability + widget of every installed plugin, on every
@@ -20516,13 +20532,109 @@ var SummariesQueryInput = object({
20516
20532
  deviceIds: array(number()).min(1),
20517
20533
  since: number().optional(),
20518
20534
  until: number().optional(),
20519
- limit: number().int().min(1).max(200).default(50)
20535
+ limit: number().int().min(1).max(200).default(50),
20536
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
20537
+ * meaning of "dog" on every summary surface. */
20538
+ classes: array(string().min(1).max(60)).max(40).optional()
20520
20539
  });
20521
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
20522
20540
  var SummaryDetailSchema = object({
20523
20541
  summary: SummarySchema,
20524
- /** Member track ids, in absorption order. */
20525
- trackIds: array(string()).readonly()
20542
+ /** Members in absorption order, oldest join first. */
20543
+ members: array(object({
20544
+ trackId: string(),
20545
+ /**
20546
+ * The track's class at the time it JOINED, or `null` when it was unresolved
20547
+ * and the track no longer exists to fill it.
20548
+ *
20549
+ * The join, not the latest opinion: class voting can re-decide a track's
20550
+ * class afterwards, and a group's composition is the history of who came
20551
+ * together. A consumer counts these to badge a thumbnail — "two people and a
20552
+ * dog" — rather than being handed a second, denormalised tally that would
20553
+ * drift from the members it claims to describe.
20554
+ */
20555
+ className: string().nullable(),
20556
+ /** `primary` is the one member that carries the group's identity. */
20557
+ role: _enum([
20558
+ "primary",
20559
+ "sibling",
20560
+ "child"
20561
+ ]).nullable(),
20562
+ joinedAt: number(),
20563
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
20564
+ * at read time. Absent when nothing resolved, never an empty string. */
20565
+ label: string().optional(),
20566
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
20567
+ * recognised nobody, and absent for a member whose track has been pruned —
20568
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
20569
+ subLabel: string().optional()
20570
+ })).readonly()
20571
+ });
20572
+ /**
20573
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
20574
+ *
20575
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
20576
+ * we extend when we notice we need more". Enough to draw the card ("two people
20577
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
20578
+ * are on {@link getSummary}: shipping every member of every group so a client
20579
+ * can count them turns a page of two hundred groups into a thousand records to
20580
+ * draw two hundred badges.
20581
+ */
20582
+ var SummaryListItemSchema = object({
20583
+ summary: SummarySchema,
20584
+ /** Class counts, most numerous first; `className: null` is a member whose
20585
+ * class never resolved, counted so the counts add up to `memberCount`. */
20586
+ classes: array(object({
20587
+ className: string().nullable(),
20588
+ count: number().int().positive()
20589
+ })).readonly()
20590
+ });
20591
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
20592
+ /**
20593
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
20594
+ *
20595
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
20596
+ * summaries feed that could only answer "the last N for these cameras"
20597
+ * (`listSummaries`) would make groups available in the timeline and nowhere
20598
+ * else. Two feeds with different ordering contracts would be two ideas of what
20599
+ * "newest" means, on one screen.
20600
+ */
20601
+ var RecentSummariesQueryInput = object({
20602
+ /** Devices to merge. An empty array yields an empty page. */
20603
+ deviceIds: array(number()),
20604
+ /** Window lower bound on `lastActiveAt` (inclusive). */
20605
+ since: number().optional(),
20606
+ /** Window upper bound on `lastActiveAt` (inclusive). */
20607
+ until: number().optional(),
20608
+ limit: number().int().min(1).max(500).default(100),
20609
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
20610
+ cursor: string().optional(),
20611
+ /**
20612
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
20613
+ * deliberately the same name: the events filter tree emits one list of ticked
20614
+ * taxonomy nodes, and a summaries feed that called it something else would
20615
+ * make the operator's one filter component produce two shapes.
20616
+ *
20617
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
20618
+ * me the arrivals with a dog" has to return the group of four people who had
20619
+ * one with them; a filter on the group's own fields could only ever answer
20620
+ * about its primary.
20621
+ *
20622
+ * Matched against all THREE tiers of a member — the class (`animal`), the
20623
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
20624
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
20625
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
20626
+ * that read only the class would answer "animal" and never "dog".
20627
+ *
20628
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
20629
+ */
20630
+ classes: array(string().min(1).max(60)).max(40).optional()
20631
+ });
20632
+ var RecentSummariesPageSchema = object({
20633
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
20634
+ * {@link listSummaries} — one list shape, so a card renders the same
20635
+ * whichever feed drew it. */
20636
+ summaries: array(SummaryListItemSchema).readonly(),
20637
+ nextCursor: string().nullable()
20526
20638
  });
20527
20639
  var RecentTracksPageSchema = object({
20528
20640
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -20936,7 +21048,7 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
20936
21048
  classes: array(string()).optional(),
20937
21049
  /** See {@link ExcludeSourcesDoc}. */
20938
21050
  excludeSources: array(TrackSourceSchema).optional()
20939
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
21051
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(SummariesQueryInput, SummariesPageSchema), method(RecentSummariesQueryInput, RecentSummariesPageSchema), method(object({ id: string() }), SummaryDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
20940
21052
  kind: "mutation",
20941
21053
  auth: "admin"
20942
21054
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -32778,7 +32890,29 @@ var LoggingSettingsPatchSchema = object({
32778
32890
  * disarmed the channels it did not mention would make the Levels page and
32779
32891
  * the Diagnostics page fight over the same value.
32780
32892
  */
32781
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
32893
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
32894
+ /**
32895
+ * How many days the analytics OPS LOG is kept — the audit trail of what
32896
+ * retention actually deleted.
32897
+ *
32898
+ * It lives HERE, on the logging document, and not on the analytics addon's
32899
+ * settings form, on the operator's instruction: every other log-ish window in
32900
+ * this system is configured through this one document, and a retention audit
32901
+ * configured somewhere else is a second place to look when the question is
32902
+ * "what happened to my data".
32903
+ *
32904
+ * That placement has a cost worth stating: this document ships in the
32905
+ * framework closure, so this knob needs a published `@camstack/server` while
32906
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
32907
+ *
32908
+ * `retention-model.ts` argued this one must NOT follow a device window,
32909
+ * because the audit trail is the history of the SWEEP and not of the camera.
32910
+ * That argument stands and is untouched — what changes is that 30 days stops
32911
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
32912
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
32913
+ * state in which the next 9.5 GiB leak cannot be explained.
32914
+ */
32915
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
32782
32916
  });
32783
32917
  /**
32784
32918
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -32851,6 +32985,14 @@ var LoggingSettingsStateSchema = object({
32851
32985
  channels: array(LogChannelDescriptorSchema).readonly(),
32852
32986
  /** The channels ARMED right now, each with its deadline. */
32853
32987
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
32988
+ /**
32989
+ * The ops-log window in days, as it is in force. `0` = kept forever.
32990
+ *
32991
+ * Reported rather than left to the caller's memory of what it wrote: this is
32992
+ * the value the analytics sweep will actually use, and an operator asking how
32993
+ * long their audit trail lives should not have to infer it from a default.
32994
+ */
32995
+ opsLogRetentionDays: number().int().min(0),
32854
32996
  persisted: boolean()
32855
32997
  });
32856
32998
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
@@ -38851,6 +38993,12 @@ Object.freeze({
38851
38993
  addonId: null,
38852
38994
  access: "view"
38853
38995
  },
38996
+ "pipelineAnalytics.listRecentSummaries": {
38997
+ capName: "pipeline-analytics",
38998
+ capScope: "device",
38999
+ addonId: null,
39000
+ access: "view"
39001
+ },
38854
39002
  "pipelineAnalytics.listRecentTracks": {
38855
39003
  capName: "pipeline-analytics",
38856
39004
  capScope: "device",
@@ -42678,6 +42826,11 @@ Object.freeze({
42678
42826
  form: "single",
42679
42827
  optional: true
42680
42828
  }],
42829
+ "pipelineAnalytics.listRecentSummaries": [{
42830
+ name: "deviceIds",
42831
+ form: "array",
42832
+ optional: false
42833
+ }],
42681
42834
  "pipelineAnalytics.listRecentTracks": [{
42682
42835
  name: "deviceIds",
42683
42836
  form: "array",
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  //#endregion
6
- const require_dist = require("../dist-Daqsf2Q7.js");
6
+ const require_dist = require("../dist-By4s88My.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/ha-export/topics.ts
9
9
  /**
@@ -1,4 +1,4 @@
1
- import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-DRv84o8E.mjs";
1
+ import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-Badx--6A.mjs";
2
2
  import { createHmac, timingSafeEqual } from "node:crypto";
3
3
  //#region src/ha-export/topics.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homeassistant",
3
- "version": "1.2.116",
3
+ "version": "1.2.117",
4
4
  "description": "Home Assistant device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",