@camstack/addon-osd-manager 0.1.97 → 0.1.99

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 (17) hide show
  1. package/dist/{MotionZonesSettings-DpjulO5F.mjs → MotionZonesSettings-BSQaXYXm.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-DaxBEzfV.mjs → PrivacyMaskSettings-BsOmMQ3G.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-DoZLlL7g.mjs → SceneMonitorEditor-tekjBVAD.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-C-0Xt8HG.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-ZjOQCsZZ.mjs} +4 -4
  6. package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-0OJdCNRg.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BR1kX9U-.mjs} +1 -1
  7. package/dist/{hostInit-DArYUUQ8.mjs → hostInit-B8PUHWlr.mjs} +3 -3
  8. package/dist/index.js +389 -15
  9. package/dist/index.mjs +389 -15
  10. package/dist/{player-overlays-CKl-z5dT.mjs → player-overlays-CU2Q1FOt.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-Db-2LAhn.mjs → responsive-CREvujgj.mjs} +1 -1
  13. package/dist/{square-D4bK2uSS.mjs → square-D4G_-ewV.mjs} +1 -1
  14. package/dist/{trash-2-CkBUBr8-.mjs → trash-2-UEtRGymk.mjs} +1 -1
  15. package/dist/{use-device-snapshot-VChilLVp.mjs → use-device-snapshot-DiWS-JDe.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Dc06UWXO.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-m9QQayT8.mjs} +1 -1
  17. package/package.json +1 -1
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-ZyX6jcse.mjs
5
+ //#region ../types/dist/event-category-BVDXG4tB.mjs
6
6
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
7
7
  EventCategory["SystemBoot"] = "system.boot";
8
8
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -619,6 +619,20 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
619
619
  * pull-reconcile from the provider's `getStatus` on reconnect. */
620
620
  EventCategory["MeshNetworkChanged"] = "network.mesh.changed";
621
621
  EventCategory["BackupCompleted"] = "backup.completed";
622
+ /**
623
+ * A whole backup RUN finished — every destination attempted, win or lose.
624
+ *
625
+ * `backup.completed` fires once per DESTINATION, which is the right grain for
626
+ * a progress UI and the wrong one for a notification: an operator with three
627
+ * destinations would be told three times. And a run where two of three
628
+ * destinations succeeded is not a clean success — a single "backup
629
+ * completed" that hid the failed one would be a lie, so the count of each is
630
+ * carried here and the message says both.
631
+ *
632
+ * Emitted by the backup orchestrator only after the destination loop, so a
633
+ * run that dies during the BUILD phase produces no completion at all.
634
+ */
635
+ EventCategory["BackupRunCompleted"] = "backup.run-completed";
622
636
  EventCategory["BackupRestored"] = "backup.restored";
623
637
  EventCategory["NotificationDispatched"] = "notification.dispatched";
624
638
  EventCategory["NotificationFailed"] = "notification.failed";
@@ -5349,7 +5363,7 @@ var ZodIssueCode = {
5349
5363
  var ZodFirstPartyTypeKind;
5350
5364
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5351
5365
  //#endregion
5352
- //#region ../types/dist/sleep-CnLyvg3w.mjs
5366
+ //#region ../types/dist/sleep-DEuj7E3j.mjs
5353
5367
  /**
5354
5368
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5355
5369
  * window to float samples (D455).
@@ -7474,7 +7488,23 @@ var EncodeProfileSchema = object({
7474
7488
  "zerolatency",
7475
7489
  "film",
7476
7490
  "animation"
7477
- ]).optional()
7491
+ ]).optional(),
7492
+ /**
7493
+ * ONE slice per access unit.
7494
+ *
7495
+ * `-tune zerolatency` turns on x264's sliced threads, and a frame then leaves
7496
+ * the encoder as five NAL slices that share one RTP timestamp and carry one
7497
+ * marker bit. A libwebrtc depacketiser sees five frame-starts and one
7498
+ * frame-end per frame: the first pictures render and the video then freezes
7499
+ * for good while the audio, on its own plane, plays on. Measured on this hub
7500
+ * 2026-09-13 against the Echo, and reduced to one slice by this flag alone.
7501
+ *
7502
+ * A NAMED field and not a raw flag, because {@link EgressEncodeSchema} omits
7503
+ * `outputArgs` on purpose: an opaque array is part of the sharing key, so two
7504
+ * consumers meaning the same thing spelled differently would stop sharing one
7505
+ * child. Absent means "whatever the encoder does" — today's behaviour.
7506
+ */
7507
+ singleSlicePerFrame: boolean().optional()
7478
7508
  }),
7479
7509
  audio: union([literal("passthrough"), object({
7480
7510
  codec: _enum([
@@ -7524,7 +7554,7 @@ var BASE_LIVE_EGRESS_PROFILE = {
7524
7554
  audio: "passthrough"
7525
7555
  };
7526
7556
  ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7527
- ({ ...BASE_LIVE_EGRESS_PROFILE });
7557
+ ({ ...BASE_LIVE_EGRESS_PROFILE }), { ...BASE_LIVE_EGRESS_PROFILE.video };
7528
7558
  /**
7529
7559
  * Deep wiring healthcheck — snapshot of active reachability probes across
7530
7560
  * every declared capability + widget of every installed plugin, on every
@@ -11995,6 +12025,72 @@ var cameraPipelineConfigCapability = {
11995
12025
  exposesDeviceSettings: true,
11996
12026
  methods: {}
11997
12027
  };
12028
+ /**
12029
+ * The signals a device can emit to WAKE its own stream.
12030
+ *
12031
+ * A camera whose stream is built on demand sleeps until something asks for it,
12032
+ * and "something" cannot be a consumer that is merely attached — a Frigate-style
12033
+ * puller holds a session open for ever, and treating that as demand would keep
12034
+ * a battery camera awake for ever, which is the whole thing the battery is for
12035
+ * (D173). So the wake has to come from the CAMERA: an event it noticed by
12036
+ * itself, with no stream running.
12037
+ *
12038
+ * ## The vocabulary is the PROVIDER'S, not ours
12039
+ *
12040
+ * Like `consumables`, this cap declares no vocabulary of its own. A provider
12041
+ * names each signal with a `code` it chooses and a `label` an operator reads.
12042
+ * Reolink offers motion and camera-native detection; another provider may offer
12043
+ * a tamper, a doorbell press, a PIR, or something no camera in this fleet has
12044
+ * yet. A fixed enum here would mean every new signal is a framework release.
12045
+ *
12046
+ * It is deliberately NOT derived from the caps a device already binds. Whether
12047
+ * a camera CAN push firmware motion is expressed by `motionSources` containing
12048
+ * `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
12049
+ * binding — but both answer "what drives the detection pipeline", which is a
12050
+ * different question from "what may wake a sleeping stream". A camera can do
12051
+ * the first and not be trusted with the second, and the operator picks per
12052
+ * camera. Two questions, two authorities.
12053
+ *
12054
+ * ## Availability is not permission
12055
+ *
12056
+ * `listSignals` says what the device CAN emit. Whether a given signal actually
12057
+ * wakes the stream is the operator's per-camera choice, held by the broker
12058
+ * alongside the cooldown — see the stream-broker cap's wake settings. A
12059
+ * provider declaring a signal is not a provider enabling it.
12060
+ */
12061
+ /** One signal a device can emit. */
12062
+ var StreamSignalSchema = object({
12063
+ /** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
12064
+ code: string().min(1),
12065
+ /** What an operator reads in the picker. The provider's own wording. */
12066
+ label: string().min(1),
12067
+ /**
12068
+ * Whether the provider recommends this signal ON when a camera is first set
12069
+ * up. A provider knows which of its signals are cheap and reliable; an
12070
+ * operator should not have to discover that by trial. Reolink recommends
12071
+ * both of its own.
12072
+ */
12073
+ recommended: boolean()
12074
+ });
12075
+ var StreamSignalsStatusSchema = object({
12076
+ signals: array(StreamSignalSchema),
12077
+ lastFetchedAt: number()
12078
+ });
12079
+ var streamSignalsCapability = {
12080
+ name: "stream-signals",
12081
+ scope: "device",
12082
+ deviceNative: true,
12083
+ mode: "singleton",
12084
+ deviceTypes: Object.values(DeviceType),
12085
+ runtimeState: StreamSignalsStatusSchema,
12086
+ methods: {
12087
+ /**
12088
+ * What this device can emit. Empty is a valid and common answer — most
12089
+ * cameras have nothing to offer here, and an empty list is what makes the
12090
+ * broker's picker show nothing rather than a false choice.
12091
+ */
12092
+ listSignals: method(_void(), array(StreamSignalSchema).readonly()) }
12093
+ };
11998
12094
  /** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
11999
12095
  var StreamFormatSchema = _enum([
12000
12096
  "webrtc",
@@ -12396,6 +12492,46 @@ var streamBrokerCapability = {
12396
12492
  mode: "singleton",
12397
12493
  exposesDeviceSettings: true,
12398
12494
  methods: {
12495
+ /**
12496
+ * A device reporting that one of ITS OWN signals just fired.
12497
+ *
12498
+ * The provider calls this; nothing polls. The broker then decides whether
12499
+ * to wake the source, and the decision has two terms that must BOTH hold:
12500
+ *
12501
+ * - the signal is ENABLED for this camera (the operator's per-camera
12502
+ * choice — a camera may declare a signal the operator does not want
12503
+ * waking anything), and
12504
+ * - a consumer is actually attached and waiting on the prestream. Waking
12505
+ * a camera nobody is watching is the one thing a battery camera must
12506
+ * never do, and a signal arriving with no consumer is exactly that.
12507
+ *
12508
+ * Reported, never inferred: a signal that fires while the stream is
12509
+ * already up refreshes the hold instead of starting a second one, which is
12510
+ * what makes continuous motion keep a camera awake without stacking
12511
+ * timers.
12512
+ *
12513
+ * `code` is the provider's own, from `streamSignals.listSignals`. An
12514
+ * unknown code is REFUSED rather than treated as a wildcard wake — a
12515
+ * provider and an operator disagreeing about a name must not become a
12516
+ * camera that wakes for everything.
12517
+ */
12518
+ reportStreamSignal: method(object({
12519
+ deviceId: number().int().nonnegative(),
12520
+ /** The provider's signal code. */
12521
+ code: string().min(1),
12522
+ /** Ms epoch. Absent ⇒ now. */
12523
+ at: number().optional()
12524
+ }), object({
12525
+ /** Whether the broker acted on it, and if not, why. */
12526
+ accepted: boolean(),
12527
+ reason: _enum([
12528
+ "woke",
12529
+ "hold-extended",
12530
+ "not-enabled",
12531
+ "no-consumer",
12532
+ "unknown-code"
12533
+ ])
12534
+ }), { kind: "mutation" }),
12399
12535
  publishCameraStream: method(object({
12400
12536
  deviceId: number().int().nonnegative(),
12401
12537
  camStreamId: string().min(1),
@@ -12873,6 +13009,16 @@ var PickStreamRequirementsSchema = object({
12873
13009
  acceptCodecs: array(StreamCodecSchema).readonly().optional(),
12874
13010
  /** Minimum vertical resolution. Streams shorter than this are dropped. */
12875
13011
  minHeight: number().int().positive().optional(),
13012
+ /**
13013
+ * Maximum vertical resolution. Streams TALLER than this are dropped.
13014
+ *
13015
+ * A consumer can have a ceiling as real as its floor: Alexa documents
13016
+ * 480p to 1080p, and a 4K stream is as unusable to an Echo as a 360p one.
13017
+ * Without this the ceiling had to be re-implemented by every caller — and
13018
+ * one caller implementing it privately is how a second scoring authority
13019
+ * gets born.
13020
+ */
13021
+ maxHeight: number().int().positive().optional(),
12876
13022
  /** Minimum horizontal resolution. */
12877
13023
  minWidth: number().int().positive().optional(),
12878
13024
  /**
@@ -12889,7 +13035,22 @@ var PickStreamRequirementsSchema = object({
12889
13035
  * transcoded" guard: if the device is already serving the consumer's
12890
13036
  * codec end-to-end, there's nothing to optimise.
12891
13037
  */
12892
- requireSiblingCodec: array(StreamCodecSchema).readonly().optional()
13038
+ requireSiblingCodec: array(StreamCodecSchema).readonly().optional(),
13039
+ /**
13040
+ * Whether a stream the consumer CANNOT decode may still be picked, on the
13041
+ * understanding that it will be transcoded.
13042
+ *
13043
+ * Default `false` — today's behaviour, and the right one for a bypass
13044
+ * question ("is there a stream I can forward untouched?"). Set `true` to
13045
+ * ask the larger question: "what is the best stream for me, transcoding if
13046
+ * I must?" A stream that satisfies `acceptCodecs` always outranks one that
13047
+ * does not, so a passthrough is never lost to a transcode; the answer says
13048
+ * which it is in {@link PickedCamStreamSchema.transcodes}.
13049
+ *
13050
+ * This is what lets one picker serve both the bypass and the full source
13051
+ * choice, instead of a consumer scoring privately when the bypass misses.
13052
+ */
13053
+ allowTranscode: boolean().optional()
12893
13054
  }).readonly();
12894
13055
  var PickStreamPreferencesSchema = object({
12895
13056
  /**
@@ -12903,12 +13064,32 @@ var PickStreamPreferencesSchema = object({
12903
13064
  * picks the tallest stream; `'lowest'` picks the shortest (used by
12904
13065
  * memory-constrained consumers / Apple Home guest sessions).
12905
13066
  */
12906
- resolutionPreference: _enum(["highest", "lowest"]).optional()
13067
+ resolutionPreference: _enum(["highest", "lowest"]).optional(),
13068
+ /**
13069
+ * The height the consumer actually wants to DELIVER.
13070
+ *
13071
+ * Not a constraint — an ordering. With it set, the SMALLEST stream at or
13072
+ * above the target wins, and only if nothing reaches it does the tallest
13073
+ * take over. Pulling 1296 lines to draw 720 on a 1280x800 Echo panel costs
13074
+ * a decode and buys nothing, and `resolutionPreference: 'highest'` cannot
13075
+ * express that: it says "as big as possible", which is a different wish.
13076
+ *
13077
+ * Ignored when absent, so every existing caller keeps its ordering.
13078
+ */
13079
+ targetHeight: number().int().positive().optional()
12907
13080
  }).readonly();
12908
13081
  var PickedCamStreamSchema = object({
12909
13082
  camStreamId: string(),
12910
13083
  codec: string().optional(),
12911
13084
  resolution: CamStreamResolutionSchema.optional(),
13085
+ /**
13086
+ * Whether serving this stream requires a decode + re-encode.
13087
+ *
13088
+ * `false` is a stream the consumer can take as it stands. Only ever `true`
13089
+ * when the caller asked for it with `allowTranscode`, so a caller that did
13090
+ * not ask cannot be handed a cost it never agreed to pay.
13091
+ */
13092
+ transcodes: boolean(),
12912
13093
  /** One-line explanation of why this stream won — for logs / debug UI. */
12913
13094
  reason: string()
12914
13095
  });
@@ -18684,6 +18865,8 @@ var NcSystemEventKindSchema = _enum([
18684
18865
  "device-enabled",
18685
18866
  "device-battery-low",
18686
18867
  "device-battery-normal",
18868
+ "device-consumable-low",
18869
+ "device-consumable-normal",
18687
18870
  "stream-online",
18688
18871
  "stream-offline",
18689
18872
  "node-online",
@@ -18702,6 +18885,7 @@ var NcSystemEventKindSchema = _enum([
18702
18885
  "addon-updated",
18703
18886
  "server-updated",
18704
18887
  "export-completed",
18888
+ "backup-completed",
18705
18889
  "camera-online",
18706
18890
  "camera-offline",
18707
18891
  "camera-disabled",
@@ -19816,10 +20000,22 @@ var NC_CONDITION_CATALOG = [
19816
20000
  value: "server-updated",
19817
20001
  label: "Server updated"
19818
20002
  },
20003
+ {
20004
+ value: "device-consumable-low",
20005
+ label: "Consumable low"
20006
+ },
20007
+ {
20008
+ value: "device-consumable-normal",
20009
+ label: "Consumable replaced"
20010
+ },
19819
20011
  {
19820
20012
  value: "export-completed",
19821
20013
  label: "Export completed"
19822
20014
  },
20015
+ {
20016
+ value: "backup-completed",
20017
+ label: "Backup completed"
20018
+ },
19823
20019
  {
19824
20020
  value: "alarm-arming",
19825
20021
  label: "Alarm arming (exit delay)"
@@ -22901,13 +23097,109 @@ var SummariesQueryInput = object({
22901
23097
  deviceIds: array(number()).min(1),
22902
23098
  since: number().optional(),
22903
23099
  until: number().optional(),
22904
- limit: number().int().min(1).max(200).default(50)
23100
+ limit: number().int().min(1).max(200).default(50),
23101
+ /** The same member-wise filter {@link listRecentSummaries} takes — one
23102
+ * meaning of "dog" on every summary surface. */
23103
+ classes: array(string().min(1).max(60)).max(40).optional()
22905
23104
  });
22906
- var SummariesPageSchema = object({ summaries: array(SummarySchema).readonly() });
22907
23105
  var SummaryDetailSchema = object({
22908
23106
  summary: SummarySchema,
22909
- /** Member track ids, in absorption order. */
22910
- trackIds: array(string()).readonly()
23107
+ /** Members in absorption order, oldest join first. */
23108
+ members: array(object({
23109
+ trackId: string(),
23110
+ /**
23111
+ * The track's class at the time it JOINED, or `null` when it was unresolved
23112
+ * and the track no longer exists to fill it.
23113
+ *
23114
+ * The join, not the latest opinion: class voting can re-decide a track's
23115
+ * class afterwards, and a group's composition is the history of who came
23116
+ * together. A consumer counts these to badge a thumbnail — "two people and a
23117
+ * dog" — rather than being handed a second, denormalised tally that would
23118
+ * drift from the members it claims to describe.
23119
+ */
23120
+ className: string().nullable(),
23121
+ /** `primary` is the one member that carries the group's identity. */
23122
+ role: _enum([
23123
+ "primary",
23124
+ "sibling",
23125
+ "child"
23126
+ ]).nullable(),
23127
+ joinedAt: number(),
23128
+ /** Tier 1 — the sub-class (`dog`, `van`), resolved from the member's track
23129
+ * at read time. Absent when nothing resolved, never an empty string. */
23130
+ label: string().optional(),
23131
+ /** Tier 2 — the instance: a person's name, a plate. Absent when the pipeline
23132
+ * recognised nobody, and absent for a member whose track has been pruned —
23133
+ * a thumbnail that names the wrong person is worse than one naming nobody. */
23134
+ subLabel: string().optional()
23135
+ })).readonly()
23136
+ });
23137
+ /**
23138
+ * What a LIST of groups carries: the envelope plus what it is MADE OF.
23139
+ *
23140
+ * Coarse on purpose — the operator's rule is "only the rough data on the list,
23141
+ * we extend when we notice we need more". Enough to draw the card ("two people
23142
+ * and a dog") and no more. The MEMBERS, their names and the per-member links
23143
+ * are on {@link getSummary}: shipping every member of every group so a client
23144
+ * can count them turns a page of two hundred groups into a thousand records to
23145
+ * draw two hundred badges.
23146
+ */
23147
+ var SummaryListItemSchema = object({
23148
+ summary: SummarySchema,
23149
+ /** Class counts, most numerous first; `className: null` is a member whose
23150
+ * class never resolved, counted so the counts add up to `memberCount`. */
23151
+ classes: array(object({
23152
+ className: string().nullable(),
23153
+ count: number().int().positive()
23154
+ })).readonly()
23155
+ });
23156
+ var SummariesPageSchema = object({ summaries: array(SummaryListItemSchema).readonly() });
23157
+ /**
23158
+ * The paged feed, deliberately the SAME shape as {@link RecentTracksQueryInput}.
23159
+ *
23160
+ * The reel on the cameras page and the Events gallery both ride a cursor, so a
23161
+ * summaries feed that could only answer "the last N for these cameras"
23162
+ * (`listSummaries`) would make groups available in the timeline and nowhere
23163
+ * else. Two feeds with different ordering contracts would be two ideas of what
23164
+ * "newest" means, on one screen.
23165
+ */
23166
+ var RecentSummariesQueryInput = object({
23167
+ /** Devices to merge. An empty array yields an empty page. */
23168
+ deviceIds: array(number()),
23169
+ /** Window lower bound on `lastActiveAt` (inclusive). */
23170
+ since: number().optional(),
23171
+ /** Window upper bound on `lastActiveAt` (inclusive). */
23172
+ until: number().optional(),
23173
+ limit: number().int().min(1).max(500).default(100),
23174
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
23175
+ cursor: string().optional(),
23176
+ /**
23177
+ * Restrict to these classes — THE SAME FIELD `listRecentTracks` takes, and
23178
+ * deliberately the same name: the events filter tree emits one list of ticked
23179
+ * taxonomy nodes, and a summaries feed that called it something else would
23180
+ * make the operator's one filter component produce two shapes.
23181
+ *
23182
+ * A question about the MEMBERS: a group matches when ANY of them does. "Show
23183
+ * me the arrivals with a dog" has to return the group of four people who had
23184
+ * one with them; a filter on the group's own fields could only ever answer
23185
+ * about its primary.
23186
+ *
23187
+ * Matched against all THREE tiers of a member — the class (`animal`), the
23188
+ * sub-class (`dog`) and the instance (a name, a plate) — because which tier a
23189
+ * ticked node lives on is the taxonomy's business, not the caller's. `dog` is
23190
+ * an event kind in the tree and a tier-1 label on an `animal` track; a filter
23191
+ * that read only the class would answer "animal" and never "dog".
23192
+ *
23193
+ * ABSENT or EMPTY means no filter — absent is not a selection of none.
23194
+ */
23195
+ classes: array(string().min(1).max(60)).max(40).optional()
23196
+ });
23197
+ var RecentSummariesPageSchema = object({
23198
+ /** Ordered by (`lastActiveAt` DESC, id DESC). Same light item as
23199
+ * {@link listSummaries} — one list shape, so a card renders the same
23200
+ * whichever feed drew it. */
23201
+ summaries: array(SummaryListItemSchema).readonly(),
23202
+ nextCursor: string().nullable()
22911
23203
  });
22912
23204
  var RecentTracksPageSchema = object({
22913
23205
  /** Merged page, ordered by (`lastSeen` DESC, `trackId` DESC). */
@@ -23349,6 +23641,11 @@ var pipelineAnalyticsCapability = {
23349
23641
  listRecentTracks: method(RecentTracksQueryInput, RecentTracksPageSchema),
23350
23642
  /** Newest first by `openedAt`, for a camera set, inside an optional window. */
23351
23643
  listSummaries: method(SummariesQueryInput, SummariesPageSchema),
23644
+ /**
23645
+ * The PAGED feed — the reel and the Events gallery. Same cursor contract as
23646
+ * {@link listRecentTracks}, so one screen cannot hold two ideas of newest.
23647
+ */
23648
+ listRecentSummaries: method(RecentSummariesQueryInput, RecentSummariesPageSchema),
23352
23649
  /** One summary with its member track ids; `null` for an id nobody wrote. */
23353
23650
  getSummary: method(object({ id: string() }), SummaryDetailSchema.nullable()),
23354
23651
  clearTracks: method(object({ deviceId: number() }), _void(), {
@@ -28369,10 +28666,28 @@ var webrtcSessionCapability = {
28369
28666
  getSessionState: method(object({
28370
28667
  deviceId: number().int().nonnegative(),
28371
28668
  sessionId: string()
28372
- }), object({ pendingRenegotiation: object({
28373
- target: WebrtcStreamTargetSchema,
28374
- epoch: number()
28375
- }).nullable() }))
28669
+ }), object({
28670
+ pendingRenegotiation: object({
28671
+ target: WebrtcStreamTargetSchema,
28672
+ epoch: number()
28673
+ }).nullable(),
28674
+ /**
28675
+ * Whether the session still EXISTS.
28676
+ *
28677
+ * A consumer that holds a resource for the life of a session needs to
28678
+ * be able to ask, because a session does not always end the way it
28679
+ * began. Measured on this hub 2026-09-13: an Echo that got stuck never
28680
+ * sent `SessionDisconnected`, so the Alexa exporter's
28681
+ * `releaseEgressTranscode` never ran, and a 2304x1296 HEVC to 720p
28682
+ * H.264 transcode kept running for NOBODY for more than twenty
28683
+ * minutes. The WebRTC session had logged `WebRTC session closed`
28684
+ * minutes earlier — the broker knew; the holder had no way to ask.
28685
+ *
28686
+ * `false` for a session id the provider has never heard of, which is
28687
+ * the same answer as "it ended": either way nothing is holding it up.
28688
+ */
28689
+ alive: boolean()
28690
+ }))
28376
28691
  },
28377
28692
  /** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
28378
28693
  mount: { kind: "server-provided" }
@@ -37790,7 +38105,29 @@ var LoggingSettingsPatchSchema = object({
37790
38105
  * disarmed the channels it did not mention would make the Levels page and
37791
38106
  * the Diagnostics page fight over the same value.
37792
38107
  */
37793
- channels: array(LogChannelWindowPatchSchema).readonly().optional()
38108
+ channels: array(LogChannelWindowPatchSchema).readonly().optional(),
38109
+ /**
38110
+ * How many days the analytics OPS LOG is kept — the audit trail of what
38111
+ * retention actually deleted.
38112
+ *
38113
+ * It lives HERE, on the logging document, and not on the analytics addon's
38114
+ * settings form, on the operator's instruction: every other log-ish window in
38115
+ * this system is configured through this one document, and a retention audit
38116
+ * configured somewhere else is a second place to look when the question is
38117
+ * "what happened to my data".
38118
+ *
38119
+ * That placement has a cost worth stating: this document ships in the
38120
+ * framework closure, so this knob needs a published `@camstack/server` while
38121
+ * the four windows beside it (D485) reach a node on `camstack deploy`.
38122
+ *
38123
+ * `retention-model.ts` argued this one must NOT follow a device window,
38124
+ * because the audit trail is the history of the SWEEP and not of the camera.
38125
+ * That argument stands and is untouched — what changes is that 30 days stops
38126
+ * being a constant nobody can reach. `0` keeps it forever. The floor is 1 day
38127
+ * rather than 0-as-delete: an audit log truncated to nothing is precisely the
38128
+ * state in which the next 9.5 GiB leak cannot be explained.
38129
+ */
38130
+ opsLogRetentionDays: number().int().min(0).max(3650).optional()
37794
38131
  });
37795
38132
  /**
37796
38133
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -37863,6 +38200,14 @@ var LoggingSettingsStateSchema = object({
37863
38200
  channels: array(LogChannelDescriptorSchema).readonly(),
37864
38201
  /** The channels ARMED right now, each with its deadline. */
37865
38202
  activeChannels: array(LogChannelWindowStateSchema).readonly(),
38203
+ /**
38204
+ * The ops-log window in days, as it is in force. `0` = kept forever.
38205
+ *
38206
+ * Reported rather than left to the caller's memory of what it wrote: this is
38207
+ * the value the analytics sweep will actually use, and an operator asking how
38208
+ * long their audit trail lives should not have to infer it from a default.
38209
+ */
38210
+ opsLogRetentionDays: number().int().min(0),
37866
38211
  persisted: boolean()
37867
38212
  });
37868
38213
  var systemCapability = {
@@ -39305,6 +39650,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
39305
39650
  streamBrokerCapability,
39306
39651
  streamCatalogCapability,
39307
39652
  streamParamsCapability,
39653
+ streamSignalsCapability,
39308
39654
  switchCapability,
39309
39655
  systemCapability,
39310
39656
  tamperCapability,
@@ -42779,6 +43125,12 @@ Object.freeze({
42779
43125
  addonId: null,
42780
43126
  access: "view"
42781
43127
  },
43128
+ "pipelineAnalytics.listRecentSummaries": {
43129
+ capName: "pipeline-analytics",
43130
+ capScope: "device",
43131
+ addonId: null,
43132
+ access: "view"
43133
+ },
42782
43134
  "pipelineAnalytics.listRecentTracks": {
42783
43135
  capName: "pipeline-analytics",
42784
43136
  capScope: "device",
@@ -44741,6 +45093,12 @@ Object.freeze({
44741
45093
  addonId: null,
44742
45094
  access: "create"
44743
45095
  },
45096
+ "streamBroker.reportStreamSignal": {
45097
+ capName: "stream-broker",
45098
+ capScope: "system",
45099
+ addonId: null,
45100
+ access: "create"
45101
+ },
44744
45102
  "streamBroker.restartProfile": {
44745
45103
  capName: "stream-broker",
44746
45104
  capScope: "system",
@@ -44825,6 +45183,12 @@ Object.freeze({
44825
45183
  addonId: null,
44826
45184
  access: "create"
44827
45185
  },
45186
+ "streamSignals.listSignals": {
45187
+ capName: "stream-signals",
45188
+ capScope: "device",
45189
+ addonId: null,
45190
+ access: "view"
45191
+ },
44828
45192
  "switch.setState": {
44829
45193
  capName: "switch",
44830
45194
  capScope: "device",
@@ -46606,6 +46970,11 @@ Object.freeze({
46606
46970
  form: "single",
46607
46971
  optional: true
46608
46972
  }],
46973
+ "pipelineAnalytics.listRecentSummaries": [{
46974
+ name: "deviceIds",
46975
+ form: "array",
46976
+ optional: false
46977
+ }],
46609
46978
  "pipelineAnalytics.listRecentTracks": [{
46610
46979
  name: "deviceIds",
46611
46980
  form: "array",
@@ -47192,6 +47561,11 @@ Object.freeze({
47192
47561
  form: "single",
47193
47562
  optional: false
47194
47563
  }],
47564
+ "streamBroker.reportStreamSignal": [{
47565
+ name: "deviceId",
47566
+ form: "single",
47567
+ optional: false
47568
+ }],
47195
47569
  "streamBroker.restartProfile": [{
47196
47570
  name: "deviceId",
47197
47571
  form: "single",