@camstack/addon-osd-manager 0.1.123 → 0.1.125

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 (20) hide show
  1. package/dist/MotionZonesSettings-a5Xl2ZE4.mjs +310 -0
  2. package/dist/{PrivacyMaskSettings-DVZjIN6W.mjs → PrivacyMaskSettings-B2UgOTdb.mjs} +26 -26
  3. package/dist/{SceneMonitorEditor-vd5ui8yS.mjs → SceneMonitorEditor-8tp57K86.mjs} +295 -295
  4. package/dist/_stub.js +245 -245
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BUn-8ukN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Co7z8wQJ.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BK-eslgm.mjs +26 -0
  7. package/dist/addon-osd-manager.css +1 -1
  8. package/dist/{responsive-BJ6OUcwu.mjs → cap-error-DC-GOnm5.mjs} +8 -8
  9. package/dist/{hostInit-B0QYXY-C.mjs → hostInit-p8Mnw5w9.mjs} +2 -2
  10. package/dist/index.js +401 -18
  11. package/dist/index.mjs +401 -18
  12. package/dist/{player-overlays-CnOtnn9E.mjs → player-overlays-C7IiQKvf.mjs} +1 -1
  13. package/dist/remoteEntry.js +1 -1
  14. package/dist/{scene-monitor-copy-CbOCxWBI.mjs → scene-monitor-copy-B5sXPAoG.mjs} +1 -1
  15. package/dist/{square-C85XpRsl.mjs → square-MsYzEBNo.mjs} +1 -1
  16. package/dist/{trash-2-RZb81dMj.mjs → trash-2-CahmDJ9h.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-BYA-5ZRu.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-B0w_cAoJ.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/MotionZonesSettings-DN5iDMeX.mjs +0 -310
  20. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BzMsLBUL.mjs +0 -26
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.231",
39
+ version: "1.2.235",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.189",
84
+ version: "1.2.191",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
package/dist/index.js CHANGED
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
5363
5363
  var ZodFirstPartyTypeKind;
5364
5364
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5365
5365
  //#endregion
5366
- //#region ../types/dist/sleep-CiR4z7r9.mjs
5366
+ //#region ../types/dist/sleep-7AN_Txmu.mjs
5367
5367
  /**
5368
5368
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5369
5369
  * window to float samples (D455).
@@ -15940,14 +15940,30 @@ var deviceManagerCapability = {
15940
15940
  */
15941
15941
  getAllBindings: method(object({}), array(DeviceBindingsForDeviceSchema)),
15942
15942
  /**
15943
- * Activate (or deactivate) a wrapper addon for a (device, cap) pair.
15944
- * Persists the binding via ctx.settings. active=false clears the wrapper
15945
- * (falls back to native if registered).
15943
+ * Activate (or deactivate) a wrapper addon — or ONE of its sources — for a
15944
+ * (device, cap) pair.
15945
+ *
15946
+ * Persists the binding via ctx.settings; `active: false` on a SINGLETON cap
15947
+ * clears the wrapper (falling back to native if one is registered). On a
15948
+ * COLLECTION cap it adds to the per-device DENY set instead, and the
15949
+ * wrapper binding is left exactly as it was — a cap with several sources
15950
+ * has no "which one" for `getBindings` to answer (D556).
15951
+ *
15952
+ * `sourceId` is what makes the switch match its label. One addon can serve
15953
+ * several of a device's sources (`addon-provider-reolink` answers a hub
15954
+ * child with `native:reolink:onboard` AND `native:reolink:hub`), so a
15955
+ * toggle keyed by addon would turn off both while saying it turned off one
15956
+ * — the D62 defect with the polarity reversed (D557). Naming the source
15957
+ * denies exactly that source. OMITTING it keeps the cap-wide meaning
15958
+ * D556 shipped: every source this addon serves for this device, which is
15959
+ * also how a deny entry persisted before the re-key is still read.
15946
15960
  */
15947
15961
  setWrapperActive: method(object({
15948
15962
  deviceId: number(),
15949
15963
  capName: string(),
15950
15964
  wrapperAddonId: string(),
15965
+ /** The `ClipSource.source` id to toggle. Absent = all of the addon's. */
15966
+ sourceId: string().optional(),
15951
15967
  active: boolean()
15952
15968
  }), _void(), {
15953
15969
  kind: "mutation",
@@ -27109,10 +27125,9 @@ var ServerBootModeSchema = _enum([
27109
27125
  * - `idle` / `checking` / `staging` — steady / in-flight registry work.
27110
27126
  * - `pending-restart` — a version is staged and the node has NOT yet
27111
27127
  * restarted onto it (still running the OLD version).
27112
- * - `awaiting-confirmation` — the node HAS restarted onto the staged version
27113
- * (it is the active probation boot) and is waiting to confirm boot-health.
27114
- * Apply/rollback are refused in this state and the node must NOT be
27115
- * manually restarted, or the probation boot auto-rolls-back.
27128
+ * - `awaiting-confirmation` — RETIRED with the probation boot (single-copy
27129
+ * collapse, 2026-07-18). Kept in the enum so an older client still parses;
27130
+ * no provider emits it.
27116
27131
  */
27117
27132
  var ServerUpdateStateSchema = _enum([
27118
27133
  "idle",
@@ -27201,12 +27216,35 @@ var ServerRollbackInfoSchema = object({
27201
27216
  var ServerPackageStatusSchema = object({
27202
27217
  /** Root package name (`@camstack/server` on the hub). */
27203
27218
  packageName: string(),
27204
- /** Version of the code the running process ACTUALLY loaded. */
27219
+ /**
27220
+ * Version of the code THIS PROCESS loaded — captured once, at boot, from the
27221
+ * package.json of the copy the code was loaded from, and never re-read. A
27222
+ * copy replaced on disk under a live process must not move this number;
27223
+ * that divergence is what `installedVersion` is for. Before 2026-09-20 this
27224
+ * was a lazy disk read that would have followed such a swap silently.
27225
+ */
27205
27226
  runningVersion: string().nullable(),
27206
27227
  /** Node.js runtime version the node's process runs on (`process.versions.node`). */
27207
27228
  nodeRuntimeVersion: string().nullable(),
27208
27229
  /** Active data-dir root version; null when booted from seed/workspace. */
27209
27230
  activeVersion: string().nullable(),
27231
+ /**
27232
+ * Version of the root package in the data-root `current/` copy RIGHT NOW —
27233
+ * what the next boot would load if nothing is staged. Normally equal to
27234
+ * `runningVersion`; differs only when the copy on disk changed under the
27235
+ * live process. `null` when there is no data-root copy (baked seed or
27236
+ * workspace boot). Optional for version skew: an older provider omits it.
27237
+ */
27238
+ installedVersion: string().nullable().optional(),
27239
+ /**
27240
+ * True when the code that would run after a restart is NOT the code running
27241
+ * now: a version is staged (`pendingVersion`), or `installedVersion` differs
27242
+ * from `runningVersion`. Derived on every read, never stored. This is the
27243
+ * one field that lets an operator or a script say "1.2.353 is installed and
27244
+ * will run after a restart" instead of reading it off a number that means
27245
+ * "installed". Optional for version skew.
27246
+ */
27247
+ restartRequired: boolean().optional(),
27210
27248
  /** N-1 version kept for rollback; null when no previous version exists. */
27211
27249
  previousVersion: string().nullable(),
27212
27250
  /** Version of the immutable baked seed closure (image fallback). */
@@ -27241,19 +27279,71 @@ var ServerPackageStatusSchema = object({
27241
27279
  });
27242
27280
  var ServerUpdateCheckResultSchema = object({
27243
27281
  packageName: string(),
27282
+ /** Same meaning as on the status payload: what THIS process loaded. */
27244
27283
  runningVersion: string().nullable(),
27245
27284
  latestVersion: string().nullable(),
27285
+ /**
27286
+ * `latestVersion` is newer than `runningVersion` AND is not the version
27287
+ * already staged on this node. A staged-and-waiting version is not "an
27288
+ * update available" — applying it again is refused (`already-staged`), and
27289
+ * a button that announced "updating…" on this boolean then got refused
27290
+ * would be lying. It is reported through `pendingVersion` instead.
27291
+ */
27246
27292
  updateAvailable: boolean(),
27247
27293
  checkedAtMs: number(),
27248
27294
  /** Non-null when the registry lookup failed (offline, bad registry, …). */
27249
- error: string().nullable()
27295
+ error: string().nullable(),
27296
+ /**
27297
+ * Version staged on this node and awaiting its restart, when one is. Before
27298
+ * 2026-09-20 a check answered `{runningVersion, updateAvailable:false}` for a
27299
+ * node whose staged closure had never booted, and the caller had no way to
27300
+ * see the difference. Optional for version skew.
27301
+ */
27302
+ pendingVersion: string().nullable().optional(),
27303
+ /** See the status payload: staged, or installed-on-disk ≠ running. Optional for skew. */
27304
+ restartRequired: boolean().optional()
27250
27305
  });
27306
+ /**
27307
+ * What an action DID — the discriminant `accepted` cannot carry. Before
27308
+ * 2026-09-20 `applyServerUpdate` answered `accepted:false` both for a refusal
27309
+ * where nothing was wrong (already current, already staged) and for a staging
27310
+ * install that died on `npm error code ECONNRESET`; the only difference was
27311
+ * prose in `message`, and an operator restarted a container on the strength of
27312
+ * it, booting the previous version.
27313
+ *
27314
+ * - `staged` — the closure is installed and validated; the node
27315
+ * restarts to apply it (`restarting:true`). NOTHING
27316
+ * runs the new code until that restart completes.
27317
+ * - `restart-scheduled` — a plain, version-preserving restart was accepted.
27318
+ * - `already-current` — the target IS the running version; nothing done.
27319
+ * - `refused` — dropped by a gate; `reason` names which.
27320
+ * - `failed` — attempted and did not land; `error` says why.
27321
+ */
27322
+ var ServerUpdateOutcomeSchema = _enum([
27323
+ "staged",
27324
+ "restart-scheduled",
27325
+ "already-current",
27326
+ "refused",
27327
+ "failed"
27328
+ ]);
27251
27329
  var ServerUpdateActionResultSchema = object({
27252
27330
  accepted: boolean(),
27253
27331
  targetVersion: string().nullable(),
27254
27332
  /** True when a graceful restart was scheduled to apply the change. */
27255
27333
  restarting: boolean(),
27256
- message: string()
27334
+ message: string(),
27335
+ /** See {@link ServerUpdateOutcomeSchema}. Optional for version skew. */
27336
+ outcome: ServerUpdateOutcomeSchema.optional(),
27337
+ /**
27338
+ * Stable, greppable cause for `refused` / `failed` (the engine's
27339
+ * `UpdateRefusalReason`, `staging-failed`, …). `null` on success.
27340
+ */
27341
+ reason: string().nullable().optional(),
27342
+ /**
27343
+ * The failure itself, verbatim enough to act on (the npm output for a
27344
+ * staging install). Non-null only for `failed`.
27345
+ */
27346
+ error: string().nullable().optional()
27257
27347
  });
27258
27348
  var serverManagementCapability = {
27259
27349
  name: "server-management",
@@ -28944,41 +29034,323 @@ var ClipSchema = object({
28944
29034
  holes: array(object({
28945
29035
  startMs: number(),
28946
29036
  endMs: number()
28947
- })).optional()
29037
+ })).optional(),
29038
+ /**
29039
+ * A URL that MAY produce this clip's still, asked only for rows actually on
29040
+ * screen. The opposite of {@link ClipSchema.thumbnail}: that one is VOUCHED
29041
+ * (a JPEG is already on disk), this one is an offer. The route answers 200
29042
+ * with the image, or 204 with `x-camstack-reason` when it could not mint one
29043
+ * — a surface latches that refusal to the instant rather than retrying.
29044
+ *
29045
+ * Never both: a clip with a vouched `thumbnail` needs no mint.
29046
+ */
29047
+ thumbnailMint: string().optional(),
29048
+ /**
29049
+ * Why no still will be produced for this clip RIGHT NOW — set when the
29050
+ * provider already knows, so the surface draws the glyph and the reason
29051
+ * instead of firing a mint that cannot succeed.
29052
+ *
29053
+ * `sleeping` — a standalone battery camera; a read would be a wake (D549 4).
29054
+ * `camera-refused` — the camera answered the CoverPreview with a refusal.
29055
+ * `no-keyframe` — the window holds no decodable I-frame (an event that sits
29056
+ * inside no file is the measured case).
29057
+ * `unsupported` — this source cannot mint stills at all.
29058
+ */
29059
+ thumbnailUnavailable: object({ reason: _enum([
29060
+ "sleeping",
29061
+ "camera-refused",
29062
+ "no-keyframe",
29063
+ "unsupported"
29064
+ ]) }).optional(),
29065
+ /**
29066
+ * When the catalog this row came from was last CONFIRMED against the device.
29067
+ * Absent means "this row was read live". A persisted catalog served while a
29068
+ * camera sleeps carries the age it really has — a cached list is never drawn
29069
+ * as current (D549 13).
29070
+ */
29071
+ catalogAsOf: number().optional(),
29072
+ /**
29073
+ * The camera's OWN type strings for this clip, all of them, unmapped
29074
+ * (`md`, `people`, `dog_cat`, `sched`, …). Kept beside {@link labels}
29075
+ * because a firmware inventing a type must not vanish: the mapping into our
29076
+ * filter vocabulary is lossy on purpose and this is the lossless copy
29077
+ * (D549 20).
29078
+ */
29079
+ nativeTypes: array(string()).optional(),
29080
+ /**
29081
+ * What the subject DID — `crossline`, `intrude`, `loitering`. A behaviour
29082
+ * travels BESIDE a class, never instead of one, and the class filter ignores
29083
+ * it: "a person crossed a line" is still a person (D549 20).
29084
+ */
29085
+ behaviours: array(string()).optional(),
29086
+ /**
29087
+ * The same recording as two files — the sub twin (what the row and its
29088
+ * thumbnail are) and its main twin, matched at listing time so a quality
29089
+ * change never re-searches the camera (D549 15). `getClipPlayback`'s
29090
+ * `profile` picks between them: `low | mid` → sub, `high` → main.
29091
+ */
29092
+ streams: object({
29093
+ sub: object({
29094
+ id: string(),
29095
+ bytes: number().optional()
29096
+ }).optional(),
29097
+ main: object({
29098
+ id: string(),
29099
+ bytes: number().optional()
29100
+ }).optional()
29101
+ }).optional(),
29102
+ /** The camera says it holds a sub-stream copy of this recording. */
29103
+ supportSub: boolean().optional(),
29104
+ /**
29105
+ * Whether this row has bytes behind it. ABSENT means yes — every clip that
29106
+ * IS a file is playable, and only a source that lists EVENTS can produce a
29107
+ * row with nothing to play (the measured case: 1 of 29 hub events on 3628
29108
+ * fell inside no file). Such a row is shown, never dropped and never offered
29109
+ * as playable-then-failing (D549 19).
29110
+ */
29111
+ playable: boolean().optional(),
29112
+ /** Why {@link playable} is false, verbatim (`no-file-for-window`). */
29113
+ unplayableReason: string().optional()
28948
29114
  });
28949
29115
  var ClipPlaybackSchema = object({
28950
- /** HLS master URL through the hub data-plane (Range + token in path). */
29116
+ /**
29117
+ * A media URL through the hub data-plane. {@link ClipPlaybackSchema.format}
29118
+ * says what kind — an HLS master playlist for a recording-derived clip, a
29119
+ * progressive MP4 for a native file the vendor addon muxed and serves with
29120
+ * `Range`. The URL is NOT a credential: both planes are registered
29121
+ * `access: 'authenticated'` and the hub's `/addon/<id>/<prefix>` proxy takes
29122
+ * the session cookie, so nothing is appended to it (D549 22).
29123
+ */
28951
29124
  playbackUrl: string(),
29125
+ /**
29126
+ * How to play {@link playbackUrl}. Absent means `hls` — the shape every
29127
+ * existing consumer already assumes. A player that branches on this is the
29128
+ * one change a native clip needs; a player that ignores it will hand an MP4
29129
+ * to hls.js and fail parsing it as a manifest.
29130
+ */
29131
+ format: _enum(["hls", "mp4"]).optional(),
29132
+ /**
29133
+ * Which twin was actually served. A clip that holds only one stream answers
29134
+ * with the one it has, and the surface SAYS so — a missing main twin is
29135
+ * never served silently as if it were the asked-for quality (D549 15).
29136
+ */
29137
+ served: CamProfileSchema.optional(),
28952
29138
  /** Optional LAN/remote alternates for the same clip. */
28953
29139
  playbackEndpoints: array(string()).optional(),
28954
29140
  token: string().optional()
28955
29141
  });
29142
+ /**
29143
+ * Why a source cannot answer right now — per SOURCE, never fleet-wide.
29144
+ *
29145
+ * `ok` is the only state whose clip list may be read as complete. The other
29146
+ * three exist because an empty list from a sleeping camera reads as "this
29147
+ * camera has no recordings", which is the defect this whole line of work is
29148
+ * about: a battery camera nobody woke (`sleeping`), a camera that could not be
29149
+ * reached at all (`unreachable`, also what a provider that THREW reports), a
29150
+ * camera whose SD card is not mounted (`no-storage`, measured on 640 —
29151
+ * `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
29152
+ * camera whose OWN index disagrees with its OWN calendar (`index-empty`,
29153
+ * measured on 618: the calendar marks 3–20 September, days 6–20 list zero
29154
+ * files on both streams and both filters, with 177 GB free). That last one is
29155
+ * a defect ON THE CAMERA, and the only honest thing a provider can do is say
29156
+ * which days it asked for and got nothing — "no clips" would be a lie about a
29157
+ * card that is full of them.
29158
+ */
29159
+ var ClipSourceAvailabilitySchema = object({
29160
+ state: _enum([
29161
+ "ok",
29162
+ "sleeping",
29163
+ "unreachable",
29164
+ "no-storage",
29165
+ "index-empty"
29166
+ ]),
29167
+ /** Free text, shown verbatim. Names the camera's own refusal when there is one. */
29168
+ reason: string().optional(),
29169
+ /** When this source's catalog was last CONFIRMED. A cached list is never
29170
+ * drawn as current: the surface shows the age whenever it is older than the
29171
+ * refresh interval. */
29172
+ catalogAsOf: number().optional()
29173
+ });
29174
+ /**
29175
+ * One SOURCE of clips for a camera — a row of the picker, and the namespace
29176
+ * every clip id from it is prefixed with (`analytics`,
29177
+ * `native:reolink:onboard`, `hksv`, …).
29178
+ *
29179
+ * A provider lists the sources IT serves for that device, and answers for each
29180
+ * of them whether it can answer at all. A provider with nothing to offer on a
29181
+ * camera returns `[]` — it is not that camera's business.
29182
+ */
29183
+ var ClipSourceSchema = object({
29184
+ /** The value this source stamps on {@link ClipSchema.source}, and the prefix
29185
+ * of every clip id it mints. `getClipPlayback` routes on it. */
29186
+ source: string(),
29187
+ /** Operator-facing name of the source ("CamStack recordings", "SD card"). */
29188
+ label: string(),
29189
+ /**
29190
+ * The addon that SERVES this row.
29191
+ *
29192
+ * A surface cannot otherwise resolve a source to who answers it, and the
29193
+ * alternative — a `native:reolink:* → provider-reolink` table inside the
29194
+ * widget — is a second authority on provider identity living in the one
29195
+ * package with no business knowing it, wrong the day a third source appears
29196
+ * (D557). One addon may serve SEVERAL sources: `addon-provider-reolink`
29197
+ * answers a hub child with both `native:reolink:onboard` and
29198
+ * `native:reolink:hub`, which is why the per-device switch is keyed by
29199
+ * SOURCE and not by this (D555).
29200
+ *
29201
+ * Optional for version skew only. The collection dispatcher stamps it from
29202
+ * the registry, so a row that travelled through the fan-out carries the
29203
+ * authoritative id whatever the provider filled in.
29204
+ */
29205
+ addonId: string().optional(),
29206
+ /**
29207
+ * Which API this source resolved to FOR THIS CAMERA, when it has a choice.
29208
+ *
29209
+ * A source may cover one store through more than one surface — the Reolink
29210
+ * provider reads a hub child through the parent's event log and a standalone
29211
+ * through its own file list, because that is what each camera answers. The
29212
+ * CHOICE is the provider's, made from what the camera is, and is never a row
29213
+ * the operator has to understand; but it is REPORTED, because a source that
29214
+ * silently reads a different API on two cameras and then behaves differently
29215
+ * is the thing nobody can debug later. Absent when the source has only one
29216
+ * way to read its store.
29217
+ */
29218
+ via: string().optional(),
29219
+ availability: ClipSourceAvailabilitySchema,
29220
+ /**
29221
+ * The operator switched this source OFF for this camera.
29222
+ *
29223
+ * Deliberately NOT a member of {@link ClipSourceAvailabilitySchema}'s
29224
+ * vocabulary. That enum models what the source CAN do — a sleeping camera, an
29225
+ * unmounted card, an index that disagrees with its own calendar — and a
29226
+ * switched-off source could answer perfectly well; the operator decided it
29227
+ * should not. Folding the choice in is how `disabled` and `broken` stop being
29228
+ * distinguishable, which is the D62 rule this repo has already paid for twice:
29229
+ * an off switch is REPORTED off (`CameraStatus.switchedOff`, the same word),
29230
+ * and disabled must never look like broken. It is also what lets every
29231
+ * exhaustive consumer of the availability enum keep compiling.
29232
+ *
29233
+ * A switched-off source contributes NO clips (`listClips` never calls it) and
29234
+ * its row carries no `catalogAsOf`: nothing confirms a catalog it is not
29235
+ * allowed to serve, and a frozen age that can only grow draws a stalling
29236
+ * source rather than an off switch.
29237
+ *
29238
+ * The row survives BECAUSE it is the control the operator switches the source
29239
+ * back on from — D554 decision 4's rule ("a source that cannot answer
29240
+ * produces a ROW, not an absence") applied to the one case D556 carved out of
29241
+ * it, and D557's own kept property ("a source is never hidden, only its
29242
+ * rows"). Absent means on.
29243
+ *
29244
+ * A provider never sets this — like {@link ClipSourceSchema.addonId} it is
29245
+ * stamped by the collection dispatcher, which holds the registry's projection
29246
+ * of the persisted authority (D556) and is the only place that knows it.
29247
+ */
29248
+ switchedOff: boolean().optional()
29249
+ });
28956
29250
  var videoclipsCapability = {
28957
29251
  name: "videoclips",
28958
29252
  scope: "device",
28959
- mode: "singleton",
29253
+ mode: "collection",
28960
29254
  kind: "wrapper",
28961
29255
  defaultActive: true,
28962
29256
  /** A clip is a window over a camera's footage — the cap is meaningless on a
28963
29257
  * sensor, a button or an event emitter, and the `defaultActive` auto-bind
28964
29258
  * reads this to decide which devices it may claim. */
28965
29259
  deviceTypes: [DeviceType.Camera],
29260
+ /**
29261
+ * The Clips section of a camera's device details is FRAMEWORK-DERIVED (D14):
29262
+ * the aggregator turns this declaration into the `type:'widget'` section and
29263
+ * `DeviceDetail.tsx` is never edited. `videoclips` is the first WRAPPER cap
29264
+ * to declare one — every previous `host/` widget cap is `deviceNative` — so
29265
+ * `device-config-widget-wrapped-binding.spec.ts` pins that a `kind:'wrapped'`
29266
+ * binding entry derives the same section a native one does.
29267
+ *
29268
+ * **It is a SECTION of the Recording tab, at the end of it — not a tab of
29269
+ * its own.** It shipped as a `clips` top-tab and the operator rejected the
29270
+ * placement: *"utilizzerei la stessa tab recordings, lì abbiamo già tutto il
29271
+ * necessario, una nuova sezione alla fine per le clips"*. The Recording tab
29272
+ * already holds the recorder's panel, the schedule bands and the unified
29273
+ * retention policy; footage the camera itself holds is the same question,
29274
+ * asked of a different store. `order: 100` puts it after all of them with
29275
+ * room left in front. The `clips` entry in `WELL_KNOWN_TABS` went with it —
29276
+ * a well-known id nobody declares is an invitation to mint the tab again.
29277
+ *
29278
+ * `topTab` stays: the browser owns a pane (a day's tiles, a source list and
29279
+ * a player) and the Config tab's inner bar has no room for one. The widget
29280
+ * itself is `host/clips-browser` in ui-library's `HOST_WIDGETS`, and because
29281
+ * the admin Recordings page renders every `location:'top-tab'` +
29282
+ * `tab:'recording'` section behind its camera picker
29283
+ * (`CameraRecordingSettingsSection`), this declaration lands the section on
29284
+ * BOTH surfaces with no second wiring.
29285
+ */
29286
+ deviceConfig: { ui: {
29287
+ kind: "widget",
29288
+ widgetId: "host/clips-browser",
29289
+ tab: "recording",
29290
+ topTab: true,
29291
+ label: "Clips",
29292
+ order: 100
29293
+ } },
28966
29294
  methods: {
28967
29295
  listClips: method(object({
28968
29296
  deviceId: number(),
28969
29297
  since: number(),
28970
29298
  until: number(),
28971
- limit: number().int().positive().optional()
29299
+ limit: number().int().positive().optional(),
29300
+ /**
29301
+ * WHICH provider to ask — the `addonId` a {@link ClipSourceSchema} row
29302
+ * carries, never a source id and never a list.
29303
+ *
29304
+ * Absent means the device's BOUND provider, which is CamStack on every
29305
+ * camera today because that is what `deviceManager.getBindings`
29306
+ * answers with. A provider the device is not bound to is refused by
29307
+ * name rather than answered by another one (D552's
29308
+ * `rejectUnresolvedAddonPin` rule).
29309
+ *
29310
+ * It replaced `sources?: string[]`, a VIEW filter over source ids that
29311
+ * assumed the answer was a fan-out over everything a camera has. The
29312
+ * operator settled otherwise on 2026-09-20 — *"il get videoclips
29313
+ * prendere un provider opzionale, di default va su camstack"*,
29314
+ * *"l'utilizzatore è uno solo"* — so the list is asked of one provider
29315
+ * at a time and there is nothing to filter out of it.
29316
+ */
29317
+ provider: string().optional()
28972
29318
  }), array(ClipSchema).readonly(), {
28973
29319
  kind: "query",
28974
- auth: "admin"
29320
+ auth: "protected"
29321
+ }),
29322
+ /**
29323
+ * The sources this camera has, WITH the reason any of them cannot answer.
29324
+ *
29325
+ * Asked separately from `listClips` because an empty clip list is
29326
+ * ambiguous and this is the only place the ambiguity is resolved: every
29327
+ * bound provider contributes its own rows, and a provider that could not
29328
+ * be reached at all still produces one row saying so. A surface that draws
29329
+ * "no clips" without reading this is drawing a guess.
29330
+ */
29331
+ listSources: method(object({ deviceId: number() }), array(ClipSourceSchema).readonly(), {
29332
+ kind: "query",
29333
+ auth: "protected"
28975
29334
  }),
28976
29335
  getClipPlayback: method(object({
28977
29336
  deviceId: number(),
28978
- clipId: string()
29337
+ clipId: string(),
29338
+ /**
29339
+ * Which twin to serve, on the ONE quality scale the system already has
29340
+ * (`CamProfileSchema`). `low | mid` → the sub file, `high` → the main
29341
+ * twin; both ids are already on the row so this never re-searches the
29342
+ * camera. Absent means the provider's own default (the sub file, which
29343
+ * every source is measured to hold).
29344
+ *
29345
+ * `auto` is deliberately NOT accepted here: a stored file has no
29346
+ * broker session, so the adaptive tier cannot be resolved for it. The
29347
+ * viewer resolves `auto` to a profile the same way live does, before
29348
+ * it calls (D549 15).
29349
+ */
29350
+ profile: CamProfileSchema.optional()
28979
29351
  }), ClipPlaybackSchema, {
28980
29352
  kind: "query",
28981
- auth: "admin"
29353
+ auth: "protected"
28982
29354
  })
28983
29355
  }
28984
29356
  };
@@ -47072,6 +47444,12 @@ Object.freeze({
47072
47444
  addonId: null,
47073
47445
  access: "view"
47074
47446
  },
47447
+ "videoclips.listSources": {
47448
+ capName: "videoclips",
47449
+ capScope: "device",
47450
+ addonId: null,
47451
+ access: "view"
47452
+ },
47075
47453
  "viewerUi.getStaticDir": {
47076
47454
  capName: "viewer-ui",
47077
47455
  capScope: "system",
@@ -49080,6 +49458,11 @@ Object.freeze({
49080
49458
  form: "single",
49081
49459
  optional: false
49082
49460
  }],
49461
+ "videoclips.listSources": [{
49462
+ name: "deviceId",
49463
+ form: "single",
49464
+ optional: false
49465
+ }],
49083
49466
  "waterHeater.setAway": [{
49084
49467
  name: "deviceId",
49085
49468
  form: "single",