@camstack/types 1.2.242 → 1.2.244

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-vrBqRLsb.js");
2
+ const require_sleep = require("./sleep-Da9UCU5_.js");
3
3
  const require_event_category = require("./event-category-BVfsrBYA.js");
4
4
  const require_canonical_hash = require("./canonical-hash-CSE4ioRi.js");
5
5
  const require_enums = require("./enums.js");
@@ -1149,10 +1149,20 @@ var CameraSwitchAuthoritySchema = zod.z.discriminatedUnion("kind", [
1149
1149
  var CameraSwitchUnavailableReasonSchema = zod.z.enum([
1150
1150
  "no-provider",
1151
1151
  "source-unreachable",
1152
- "not-configured",
1153
1152
  "device-disabled"
1154
1153
  ]);
1155
1154
  /**
1155
+ * Something true about a switch that is nonetheless OFFERED.
1156
+ *
1157
+ * The distinction from {@link CameraSwitchUnavailableReasonSchema} is the
1158
+ * whole point: a reason replaces the control, a warning travels WITH it. The
1159
+ * privacy mask taught us the difference — greying the one button that starts
1160
+ * the feature teaches the operator the feature is broken, while a live toggle
1161
+ * that flips nothing teaches them the switch is broken. Neither is true; the
1162
+ * honest surface is a working toggle that says what is missing.
1163
+ */
1164
+ var CameraSwitchWarningSchema = zod.z.enum(["no-privacy-zones"]);
1165
+ /**
1156
1166
  * One switch, resolved for one camera.
1157
1167
  *
1158
1168
  * `label` and `costWhenOff` travel ON THE WIRE rather than being looked up
@@ -1171,6 +1181,11 @@ var CameraSwitchSchema = zod.z.object({
1171
1181
  /** False = do not render a control. `unavailableReason` says why. */
1172
1182
  available: zod.z.boolean(),
1173
1183
  unavailableReason: CameraSwitchUnavailableReasonSchema.optional(),
1184
+ /**
1185
+ * Present on an AVAILABLE switch only. Rendered beside the live control;
1186
+ * never a substitute for one.
1187
+ */
1188
+ warning: CameraSwitchWarningSchema.optional(),
1174
1189
  /** Current state. Meaningless when `available` is false — read it as `true`. */
1175
1190
  enabled: zod.z.boolean(),
1176
1191
  authority: CameraSwitchAuthoritySchema
@@ -1404,9 +1419,9 @@ function resolveState(descriptor, input) {
1404
1419
  unavailableReason: "source-unreachable"
1405
1420
  };
1406
1421
  if (mask.configuredRegions === 0) return {
1407
- available: false,
1408
- enabled: false,
1409
- unavailableReason: "not-configured"
1422
+ available: true,
1423
+ enabled: mask.enabled,
1424
+ warning: "no-privacy-zones"
1410
1425
  };
1411
1426
  return {
1412
1427
  available: true,
@@ -1445,6 +1460,7 @@ function deriveCameraSwitches(input) {
1445
1460
  costWhenOff: descriptor.costWhenOff,
1446
1461
  available: state.available,
1447
1462
  ...state.unavailableReason !== void 0 ? { unavailableReason: state.unavailableReason } : {},
1463
+ ...state.warning !== void 0 ? { warning: state.warning } : {},
1448
1464
  enabled: state.enabled,
1449
1465
  authority: descriptor.authority
1450
1466
  };
@@ -11537,6 +11553,248 @@ var deviceAdoptionCapability = {
11537
11553
  }
11538
11554
  };
11539
11555
  //#endregion
11556
+ //#region src/capabilities/device-admin-link.cap.ts
11557
+ /**
11558
+ * device-admin-link — "this device has a management page of its own, and here
11559
+ * is its address".
11560
+ *
11561
+ * ## Why this is not a `deviceConfig` cap
11562
+ *
11563
+ * There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
11564
+ * can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
11565
+ * patch back through a setter; it costs a `builderId` reducer in
11566
+ * `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
11567
+ * renders a form section. This cap answers ONE question with ONE read and
11568
+ * renders a button. Nothing about it is a form, so it carries no `deviceConfig`
11569
+ * block, no `settings`, no `runtimeState` and no reducer — exactly like
11570
+ * `reboot`, the other pure-RPC device-native cap.
11571
+ *
11572
+ * ## Absent, and the difference between "no page" and "we cannot say"
11573
+ *
11574
+ * The two are answered at DIFFERENT layers, on purpose:
11575
+ *
11576
+ * - **"We cannot say"** → the provider never registers the cap for that
11577
+ * device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
11578
+ * fan are reached only through a vendor cloud; there is no address to hand
11579
+ * out and no page to open. A Tuya plug, a Wyze camera and a Gree air
11580
+ * conditioner DO have a LAN IP, and still have no HTTP management page
11581
+ * behind it. None of them register, so `deviceManager.getBindings` never
11582
+ * lists the cap and no surface asks.
11583
+ * - **"This device has no page, and I know that"** → the provider registers
11584
+ * and `getAdminLink` returns `null`. This is the answer for a device whose
11585
+ * sibling DOES have a page: a Reolink battery camera reached over UDP by
11586
+ * `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
11587
+ * transport, a Home Assistant broker authenticated by supervisor token
11588
+ * (which carries no `baseUrl` at all).
11589
+ *
11590
+ * Both draw NOTHING. A button that opens a browser error is worse than no
11591
+ * button, and D62 is the same rule from the other side: an off switch is
11592
+ * reported off, never made to look broken. There is no third state where the
11593
+ * UI renders a disabled button "because the device might have a page".
11594
+ *
11595
+ * ## The URL never carries credentials
11596
+ *
11597
+ * Not in userinfo, not in a query string. Every provider builds through
11598
+ * `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
11599
+ * scheme and path as separate arguments — there is no parameter a secret could
11600
+ * arrive in — and re-checks its own output for the `scheme://user:pass@` shape
11601
+ * that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
11602
+ * output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
11603
+ * keeps providers from hand-rolling one anyway.
11604
+ *
11605
+ * This matters here more than anywhere else in the repo, because every provider
11606
+ * that knows a device's host knows its PASSWORD too: `{ host, port, username,
11607
+ * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
11608
+ * and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
11609
+ * camera's own page will ask for its own login. That is correct, and pre-
11610
+ * filling it is the operator's business, not ours.
11611
+ *
11612
+ * ## It is a LAN fact
11613
+ *
11614
+ * The URL addresses the device where the NODE can see it. It is not proxied,
11615
+ * not made reachable from outside, and not sent anywhere. A surface renders it
11616
+ * as a link the operator's own browser follows, on the operator's own network,
11617
+ * or renders nothing.
11618
+ */
11619
+ /**
11620
+ * Whose page is it. The distinction is for the OPERATOR, who needs to know
11621
+ * before clicking whether he is about to land on a camera's own web server or
11622
+ * inside Home Assistant.
11623
+ */
11624
+ var AdminLinkTargetEnum = zod.z.enum(["device", "integration"]);
11625
+ var DeviceAdminLinkSchema = zod.z.object({
11626
+ /**
11627
+ * Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
11628
+ * free of userinfo and of any credential-shaped query key.
11629
+ */
11630
+ url: zod.z.string(),
11631
+ /**
11632
+ * What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
11633
+ * The PROVIDER names it, because only the provider knows what the page is;
11634
+ * a UI that invented the label from the addon id would call the Home
11635
+ * Assistant device page "Provider Homeassistant".
11636
+ */
11637
+ label: zod.z.string(),
11638
+ target: AdminLinkTargetEnum,
11639
+ /**
11640
+ * Host the URL points at, without scheme, port or path — for the tooltip, so
11641
+ * an operator can see WHERE the button goes before he follows it. Redundant
11642
+ * with `url` by construction; carried separately so no surface has to parse
11643
+ * a URL to show it.
11644
+ */
11645
+ host: zod.z.string()
11646
+ });
11647
+ var deviceAdminLinkCapability = {
11648
+ name: "device-admin-link",
11649
+ scope: "device",
11650
+ deviceNative: true,
11651
+ mode: "singleton",
11652
+ methods: {
11653
+ /**
11654
+ * The device's management page, or `null` when this device has none.
11655
+ *
11656
+ * `auth: 'admin'` deliberately. This is administration, not actuation —
11657
+ * the same bucket as `reboot` and `camera-credentials`, and explicitly NOT
11658
+ * the actuation set `scripts/check-actuation-not-admin.ts` protects (D403).
11659
+ * The URL is also a statement about the LAN, which a household member with
11660
+ * a `view` grant on a light has no reason to be handed.
11661
+ *
11662
+ * The surfaces gate on the QUERY, never on a role they guessed: a caller
11663
+ * without the right loses the query and draws nothing, which is the same
11664
+ * thing a device with no page draws. There is no path on which a button
11665
+ * appears and then fails — the D403 failure mode, from the other end.
11666
+ */
11667
+ getAdminLink: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" }) }
11668
+ };
11669
+ //#endregion
11670
+ //#region src/capabilities/device-admin-link-url.ts
11671
+ /**
11672
+ * Query keys that may never appear on an admin link. A credential smuggled as
11673
+ * `?password=` is the same leak as userinfo, in a form the userinfo check
11674
+ * cannot see: it survives copy-paste, referrer headers and proxy logs
11675
+ * identically.
11676
+ */
11677
+ var CREDENTIAL_QUERY_KEYS = [
11678
+ "password",
11679
+ "passwd",
11680
+ "pwd",
11681
+ "pass",
11682
+ "user",
11683
+ "username",
11684
+ "usr",
11685
+ "login",
11686
+ "token",
11687
+ "access_token",
11688
+ "auth",
11689
+ "authorization",
11690
+ "apikey",
11691
+ "api_key",
11692
+ "secret",
11693
+ "credential",
11694
+ "credentials",
11695
+ "session",
11696
+ "sessionid",
11697
+ "key"
11698
+ ];
11699
+ /**
11700
+ * The same userinfo shape `scripts/check-no-credential-urls-in-fixtures.ts`
11701
+ * scans recorded fixtures for, applied to what we are about to EMIT. Kept
11702
+ * structurally identical on purpose: a URL this function returns is a URL that
11703
+ * guard would pass.
11704
+ */
11705
+ var CREDENTIAL_URL = /[a-z][a-z0-9+.-]*:\/\/[^/\s:@'"]+:[^/\s:@'"]+@/i;
11706
+ /** A host that is safe to place in an authority component verbatim. */
11707
+ var PLAIN_HOST = /^[a-zA-Z0-9._-]+$/;
11708
+ /** A bracketed IPv6 literal, the only other authority form we emit. */
11709
+ var IPV6_HOST = /^\[[0-9a-fA-F:.]+\]$/;
11710
+ function defaultPortFor(scheme) {
11711
+ return scheme === "https" ? 443 : 80;
11712
+ }
11713
+ /**
11714
+ * Build the admin-page URL, or refuse by name.
11715
+ *
11716
+ * The refusal is never thrown: a provider answering "no page for this device"
11717
+ * is an ordinary answer (`getAdminLink` → `null`), and a throw here would turn
11718
+ * a missing host on one device into a failed query for the whole surface.
11719
+ */
11720
+ function buildDeviceAdminUrl(parts) {
11721
+ const host = parts.host.trim();
11722
+ if (host.length === 0) return {
11723
+ ok: false,
11724
+ reason: "empty-host"
11725
+ };
11726
+ if (host.includes("@")) return {
11727
+ ok: false,
11728
+ reason: "host-carries-userinfo"
11729
+ };
11730
+ if (!PLAIN_HOST.test(host) && !IPV6_HOST.test(host)) return {
11731
+ ok: false,
11732
+ reason: "host-not-plain"
11733
+ };
11734
+ if (parts.port !== null) {
11735
+ if (!Number.isInteger(parts.port) || parts.port < 1 || parts.port > 65535) return {
11736
+ ok: false,
11737
+ reason: "port-out-of-range"
11738
+ };
11739
+ }
11740
+ if (!parts.path.startsWith("/")) return {
11741
+ ok: false,
11742
+ reason: "path-not-absolute"
11743
+ };
11744
+ const query = parts.query ?? {};
11745
+ for (const key of Object.keys(query)) if (CREDENTIAL_QUERY_KEYS.includes(key.toLowerCase())) return {
11746
+ ok: false,
11747
+ reason: "credential-query-key"
11748
+ };
11749
+ const authority = parts.port === null || parts.port === defaultPortFor(parts.scheme) ? host : `${host}:${String(parts.port)}`;
11750
+ const search = new URLSearchParams();
11751
+ for (const [key, value] of Object.entries(query)) search.append(key, value);
11752
+ const suffix = search.size > 0 ? `?${search.toString()}` : "";
11753
+ const url = `${parts.scheme}://${authority}${parts.path}${suffix}`;
11754
+ if (CREDENTIAL_URL.test(url)) return {
11755
+ ok: false,
11756
+ reason: "userinfo-in-result"
11757
+ };
11758
+ return {
11759
+ ok: true,
11760
+ url
11761
+ };
11762
+ }
11763
+ function parseAdminBase(baseUrl) {
11764
+ const raw = baseUrl.trim();
11765
+ if (raw.length === 0) return {
11766
+ ok: false,
11767
+ reason: "empty"
11768
+ };
11769
+ let parsed;
11770
+ try {
11771
+ parsed = new URL(raw);
11772
+ } catch {
11773
+ return {
11774
+ ok: false,
11775
+ reason: "unparseable"
11776
+ };
11777
+ }
11778
+ if (parsed.username !== "" || parsed.password !== "") return {
11779
+ ok: false,
11780
+ reason: "base-carries-userinfo"
11781
+ };
11782
+ if (parsed.protocol !== "http:" && parsed.protocol !== "https:") return {
11783
+ ok: false,
11784
+ reason: "scheme-not-http"
11785
+ };
11786
+ const scheme = parsed.protocol === "https:" ? "https" : "http";
11787
+ const port = parsed.port === "" ? null : Number(parsed.port);
11788
+ const basePath = parsed.pathname === "/" ? "" : parsed.pathname.replace(/\/+$/, "");
11789
+ return {
11790
+ ok: true,
11791
+ host: parsed.hostname,
11792
+ port,
11793
+ scheme,
11794
+ basePath
11795
+ };
11796
+ }
11797
+ //#endregion
11540
11798
  //#region src/capabilities/device-export.cap.ts
11541
11799
  /**
11542
11800
  * `device-export` — collection cap for addons that export camstack
@@ -27248,6 +27506,15 @@ var CLIP_STILL_REASON_HEADER = "x-camstack-reason";
27248
27506
  var CLIP_STILL_REASON_CODE_HEADER = "x-camstack-reason-code";
27249
27507
  /** One {@link ClipStillDispositionSchema} token, alone. */
27250
27508
  var CLIP_STILL_DISPOSITION_HEADER = "x-camstack-disposition";
27509
+ /**
27510
+ * The clip STREAM route's own statement of what it is (D597): the value is
27511
+ * `forward-only`. A producer writes it on the 200; a consumer that dials a
27512
+ * URL and does not read it back refuses to play, because a progressive file
27513
+ * through a forward-only feeder looks like it worked until the first seek.
27514
+ * Named here because BOTH the provider and the broker spell it, and two
27515
+ * copies of a header name is how one of them stops being checked.
27516
+ */
27517
+ var CLIP_STREAM_TRANSPORT_HEADER = "x-camstack-clip-transport";
27251
27518
  var ClipSchema = zod.z.object({
27252
27519
  /** Opaque, provider-namespaced id. The default provider encodes the time
27253
27520
  * window so `getClipPlayback` is self-contained (no event re-query). */
@@ -27533,6 +27800,82 @@ var ClipBytesSchema = zod.z.object({
27533
27800
  */
27534
27801
  durationMs: zod.z.number().positive().optional()
27535
27802
  });
27803
+ /**
27804
+ * Where a clip's STREAM can be dialled (D597) — the answer to
27805
+ * {@link videoclipsCapability.methods.dialClipStream}.
27806
+ *
27807
+ * `url` is plain `http://` on the provider's own token-gated listener, one
27808
+ * shot, short-lived. It is NOT the hub-proxied `/addon/<id>/clip-stream/…`
27809
+ * path: that plane takes only a user credential, which an addon does not
27810
+ * hold, and the framework offers no addon→addon byte transport — the one
27811
+ * precedent is the broker's own restream URLs (`getStreamWithCodec`), which
27812
+ * a consumer dials directly, and this is that precedent one addon over.
27813
+ */
27814
+ /**
27815
+ * The audio a clip stream can be asked for, and the audio it carries.
27816
+ *
27817
+ * The camera stores AAC and no WebRTC session speaks it, so a stream that
27818
+ * carries sound carries it TRANSCODED, muxed as a second track beside the
27819
+ * video by the one ffmpeg the provider already runs (D600). `opus` is
27820
+ * 48 kHz mono, `pcmu` is 8 kHz µ-law — the two codecs a broker session
27821
+ * negotiates — and `none` is a stream asked for, or served, without sound.
27822
+ */
27823
+ var ClipStreamAudioSchema = zod.z.enum([
27824
+ "opus",
27825
+ "pcmu",
27826
+ "none"
27827
+ ]);
27828
+ /**
27829
+ * Why a stream that was ASKED for sound is not carrying it (D600).
27830
+ *
27831
+ * Only ever set beside `servedAudio: 'none'` after a non-`none` ask. Absent
27832
+ * means the ask was honoured, or there was no ask.
27833
+ *
27834
+ * - `not-requested` — the caller asked for `none`.
27835
+ * - `unsupported-ask` — the provider cannot produce that codec.
27836
+ *
27837
+ * Whether the RECORDING has sound at all is not knowable here: the camera
27838
+ * declares no audio track before its first frame arrives. That answer is in
27839
+ * the stream itself — an fMP4 with no audio track — and the broker reads it
27840
+ * there. A dial that says `opus` promises the codec, never the content.
27841
+ */
27842
+ var ClipStreamAudioReasonSchema = zod.z.enum(["not-requested", "unsupported-ask"]);
27843
+ var ClipStreamDialSchema = zod.z.object({
27844
+ url: zod.z.string().min(1),
27845
+ /** After this the token is gone and the URL answers 404 `dial-expired`. */
27846
+ expiresAtMs: zod.z.number(),
27847
+ /** What the stream IS — a consumer that cannot honour it must not dial. */
27848
+ transport: zod.z.literal("forward-only"),
27849
+ /**
27850
+ * Which twin the stream ACTUALLY carries — not what was asked for.
27851
+ *
27852
+ * The stream serves every profile (D599), and a recording whose main twin
27853
+ * does not exist is streamed as its sub copy, which this field reports as
27854
+ * `low`. That is the whole reason the dial no longer refuses `high`:
27855
+ * stating what was served is what makes accepting honest, where a silent
27856
+ * substitution would be the 33x lie D576 forbids. Stated rather than
27857
+ * assumed, the way {@link ClipPlaybackSchema.served} is (D549 15).
27858
+ */
27859
+ served: require_sleep.CamProfileSchema,
27860
+ /**
27861
+ * Which audio the stream will ACTUALLY carry — `served`'s companion for
27862
+ * sound, and the same reasoning (D599, D600).
27863
+ *
27864
+ * The broker asks for the codec its WebRTC session negotiated, and the
27865
+ * provider either muxes that codec or carries none. Stating it is what
27866
+ * lets the broker wire the matching sink before the first byte, and what
27867
+ * keeps a session from being handed a codec it cannot send — the audio
27868
+ * shape of the substitution `served` exists to prevent.
27869
+ *
27870
+ * It is a promise about the CODEC, not about the content: a recording with
27871
+ * no microphone track answers `opus` here and then arrives with no audio
27872
+ * track at all. That second answer is in the stream, and the broker reads
27873
+ * it from the `moov`.
27874
+ */
27875
+ servedAudio: ClipStreamAudioSchema,
27876
+ /** Why `servedAudio` is `none` although sound was asked for. */
27877
+ audioReason: ClipStreamAudioReasonSchema.optional()
27878
+ });
27536
27879
  var ClipSourceAvailabilitySchema = zod.z.object({
27537
27880
  state: zod.z.enum([
27538
27881
  "ok",
@@ -27783,6 +28126,44 @@ var videoclipsCapability = {
27783
28126
  }), ClipBytesSchema, {
27784
28127
  kind: "query",
27785
28128
  auth: "protected"
28129
+ }),
28130
+ /**
28131
+ * Where this clip's STREAM can be dialled (D597) — the forward-only
28132
+ * fMP4 the provider writes from the first muxed byte, for the broker to
28133
+ * play through the same WebRTC session as recorded footage, with the
28134
+ * first frame at the first fragment instead of after the last byte.
28135
+ *
28136
+ * Nothing is fetched here: the answer is a one-shot URL on the
28137
+ * provider's own listener, and the camera is touched when it is dialled.
28138
+ * The gates the file path runs (`readClipBytes`) run on the dial too —
28139
+ * the id, the row, a clip still being written — and refuse in the same
28140
+ * vocabulary, THROWN with `clipExportFailure(<token>, <prose>)`. Every
28141
+ * profile is served (D599) and the answer states which twin it carries;
28142
+ * `high` is not refused. Optional on the provider for the same reason
28143
+ * `readClipBytes` is: a source with no camera socket behind it (the
28144
+ * recorder's analytics window, a HomeKit tee) has no stream.
28145
+ */
28146
+ dialClipStream: require_sleep.optionalMethod(zod.z.object({
28147
+ deviceId: zod.z.number(),
28148
+ clipId: zod.z.string().min(1),
28149
+ /** WHICH provider holds the camera — see `readClipBytes.provider`. */
28150
+ provider: zod.z.string().min(1),
28151
+ /** Which twin — `high` → the main file, everything else the sub (D599). */
28152
+ profile: require_sleep.CamProfileSchema.optional(),
28153
+ /**
28154
+ * Which audio codec the caller's session negotiated, so the provider
28155
+ * can mux it (D600). The ask travels on the DIAL because the mux is
28156
+ * spawned once, before the first byte, and cannot gain a track later.
28157
+ *
28158
+ * ABSENT IS `none`, never a guess: a caller that does not state an
28159
+ * ask is served the video-only stream that shipped first, so a broker
28160
+ * older than this field keeps working unchanged (D382 — an unstated
28161
+ * ask is zero).
28162
+ */
28163
+ audio: ClipStreamAudioSchema.optional()
28164
+ }), ClipStreamDialSchema, {
28165
+ kind: "query",
28166
+ auth: "protected"
27786
28167
  })
27787
28168
  }
27788
28169
  };
@@ -30484,6 +30865,632 @@ var dayNightCapability = {
30484
30865
  volatileStateFields: ["lastFetchedAt"]
30485
30866
  };
30486
30867
  //#endregion
30868
+ //#region src/capabilities/recording-onboard.cap.ts
30869
+ /**
30870
+ * Vendor-neutral **onboard** recording + storage cap — what the CAMERA
30871
+ * writes to the CAMERA's own card, on the camera's own schedule.
30872
+ *
30873
+ * This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
30874
+ * footage ledger, our storage locations, our retention. This one has a
30875
+ * different authority — the camera's firmware — and per D62 it stores
30876
+ * nothing of its own. Every value here is read from the camera and every
30877
+ * write goes back to the camera; there is no CamStack-side mirror that
30878
+ * could disagree with the device.
30879
+ *
30880
+ * ## One shape, two firmwares
30881
+ *
30882
+ * Measured 2026-09-22 against the live fleet:
30883
+ *
30884
+ * | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
30885
+ * | --- | --- | --- |
30886
+ * | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
30887
+ * | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
30888
+ * | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
30889
+ * | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
30890
+ * | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
30891
+ * | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
30892
+ * | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
30893
+ * | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
30894
+ *
30895
+ * The two schedule models look different and are the same thing in
30896
+ * different coordinates: both answer "for this trigger, during which
30897
+ * weekly windows does the camera record". {@link RecordWindow} is that
30898
+ * question in one shape — Hikvision's ranges map straight onto it,
30899
+ * Reolink's mask expands into hour-aligned windows.
30900
+ *
30901
+ * ## Union, not intersection
30902
+ *
30903
+ * **The same fields exist on every camera.** What differs per device is
30904
+ * which VALUES that device accepts, and that is what {@link
30905
+ * RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
30906
+ * per field plus the schedule's own limits. A control a camera cannot
30907
+ * honour is rendered DISABLED WITH ITS REASON, never missing and never
30908
+ * dead: disabled must not look like broken.
30909
+ *
30910
+ * ## Refusal by name
30911
+ *
30912
+ * A write a camera cannot honour is refused with a sentence the operator
30913
+ * can read — never accepted and dropped. Both providers refuse through
30914
+ * {@link describeOnboardRefusal}, so the vocabulary is one function and
30915
+ * one test, not two hand-written vendor opinions.
30916
+ *
30917
+ * Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
30918
+ * `getOptions` advertises per-camera availability, `getStatus` (auto-
30919
+ * injected from `status`) reports the live values, and a single
30920
+ * `setSettings` mutation applies a partial change. No hand-written
30921
+ * settings-contribution methods.
30922
+ */
30923
+ /**
30924
+ * What makes the camera start recording during a window.
30925
+ *
30926
+ * The union of both vendors' vocabularies. `continuous` is Hikvision's
30927
+ * `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
30928
+ * object-class triggers are Reolink-only today and the smart-event ones
30929
+ * (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
30930
+ * firmwares measured — a camera that cannot record on a trigger simply
30931
+ * does not list it in `options.schedule.triggers`, and a window naming
30932
+ * it is REFUSED, not dropped.
30933
+ */
30934
+ var RecordTriggerSchema = zod.z.enum([
30935
+ "continuous",
30936
+ "motion",
30937
+ "person",
30938
+ "vehicle",
30939
+ "animal",
30940
+ "lineCrossing",
30941
+ "intrusion",
30942
+ "loitering",
30943
+ "alarmInput"
30944
+ ]);
30945
+ /**
30946
+ * One weekly recording window: "on `day`, from `startMinute` to
30947
+ * `endMinute`, record on `trigger`".
30948
+ *
30949
+ * `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
30950
+ * both firmwares enumerate). Minutes are local camera time since
30951
+ * midnight; `endMinute` may be 1440, meaning end of day — that is
30952
+ * Hikvision's literal `24:00` and Reolink's 24th mask slot, and
30953
+ * collapsing it to 0 would turn a whole-day window into an empty one.
30954
+ */
30955
+ var RecordWindowSchema = zod.z.object({
30956
+ trigger: RecordTriggerSchema,
30957
+ day: zod.z.number().int().min(0).max(6),
30958
+ startMinute: zod.z.number().int().min(0).max(1439),
30959
+ endMinute: zod.z.number().int().min(1).max(1440)
30960
+ });
30961
+ /** Status of one physical volume, as the camera itself describes it. */
30962
+ var OnboardStorageVolumeSchema = zod.z.object({
30963
+ /** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
30964
+ id: zod.z.string(),
30965
+ /** The camera's own name for it, when it gives one (`hddName`). */
30966
+ label: zod.z.string().optional(),
30967
+ status: zod.z.enum([
30968
+ "ok",
30969
+ "unformatted",
30970
+ "error",
30971
+ "offline",
30972
+ "unknown"
30973
+ ]),
30974
+ /**
30975
+ * Total size in MB, or **null when the camera did not say**.
30976
+ *
30977
+ * Never 0 for an unreadable value: a measurement that failed is not a
30978
+ * measurement (D393), and a card whose size is unknown must not be
30979
+ * rendered as a card of size zero.
30980
+ */
30981
+ capacityMb: zod.z.number().nullable(),
30982
+ /**
30983
+ * Free space in MB, or null when unknown.
30984
+ *
30985
+ * **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
30986
+ * 1439 both report exactly 11776 MB free — the fixed reserve a looping
30987
+ * card converges on once it has wrapped. At loop steady state the
30988
+ * number is identical whether the camera recorded yesterday or stopped
30989
+ * a month ago.
30990
+ */
30991
+ freeMb: zod.z.number().nullable(),
30992
+ /** True when the camera reports the volume writable (`property` RW). */
30993
+ writable: zod.z.boolean().optional()
30994
+ });
30995
+ /**
30996
+ * Whether the camera has usable onboard storage.
30997
+ *
30998
+ * Three states, never two: an unreadable answer is `unknown`, never
30999
+ * folded into `absent`. Folding a failed read into "no card" is how a
31000
+ * healthy camera gets reported as broken, and the inverse is how a
31001
+ * camera with no card reports `ok` and then an empty list (D393).
31002
+ */
31003
+ var OnboardStorageSchema = zod.z.discriminatedUnion("kind", [
31004
+ zod.z.object({
31005
+ kind: zod.z.literal("present"),
31006
+ volumes: zod.z.array(OnboardStorageVolumeSchema)
31007
+ }),
31008
+ zod.z.object({
31009
+ kind: zod.z.literal("absent"),
31010
+ reason: zod.z.string()
31011
+ }),
31012
+ zod.z.object({
31013
+ kind: zod.z.literal("unknown"),
31014
+ reason: zod.z.string()
31015
+ })
31016
+ ]);
31017
+ /**
31018
+ * One recording track the camera exposes. Read-only.
31019
+ *
31020
+ * Hikvision lists several — 1436 and 3833 each list 101 AND 103, with
31021
+ * DIFFERENT schedules (101 MOTION all day, 103 CMR 00:05–23:57) — so a
31022
+ * cap that reported one number for "the schedule" would be lying on
31023
+ * every Hikvision in the fleet. Reolink has exactly one per channel.
31024
+ *
31025
+ * There is deliberately **no `framerate`**. Hikvision declares it in the
31026
+ * track `Description` and it is WRONG: 1436 says `2.260000 fps` while
31027
+ * the media measures 12.55 fps. `codec` and `resolution` from the same
31028
+ * string ARE right — those are the only two worth surfacing.
31029
+ */
31030
+ var OnboardRecordTrackSchema = zod.z.object({
31031
+ id: zod.z.string(),
31032
+ enabled: zod.z.boolean(),
31033
+ isVideo: zod.z.boolean(),
31034
+ /** From the camera's own track description. Null when it does not say. */
31035
+ codec: zod.z.string().nullable(),
31036
+ resolution: zod.z.string().nullable(),
31037
+ /** Per-track overwrite flag, where the firmware keeps it per track. */
31038
+ overwriteWhenFull: zod.z.boolean().nullable()
31039
+ });
31040
+ /**
31041
+ * What the camera is doing with its own storage, right now.
31042
+ *
31043
+ * Every scalar is nullable and **null means the camera did not answer**,
31044
+ * never a default. A form that seeds `0` from an unanswered read invites
31045
+ * the operator to save that 0 back onto the camera.
31046
+ */
31047
+ var RecordingOnboardStatusSchema = zod.z.object({
31048
+ storage: OnboardStorageSchema,
31049
+ tracks: zod.z.array(OnboardRecordTrackSchema),
31050
+ /**
31051
+ * The track the write path targets — the enabled VIDEO one. Null when
31052
+ * no track could be identified, which is itself a refusal reason.
31053
+ */
31054
+ primaryTrackId: zod.z.string().nullable(),
31055
+ /** Master "record to the card at all" switch. */
31056
+ enabled: zod.z.boolean().nullable(),
31057
+ overwriteWhenFull: zod.z.boolean().nullable(),
31058
+ preRecordSec: zod.z.number().nullable(),
31059
+ postRecordSec: zod.z.number().nullable(),
31060
+ /** Length of one recorded file, in minutes. */
31061
+ segmentMinutes: zod.z.number().nullable(),
31062
+ /** The primary track's weekly windows, flattened. */
31063
+ windows: zod.z.array(RecordWindowSchema),
31064
+ /**
31065
+ * How many windows the camera described that CamStack could NOT read —
31066
+ * an unrecognised trigger, an unparseable clock, a weekday it does not
31067
+ * name.
31068
+ *
31069
+ * A dropped window is work the reader threw away, and a schedule that
31070
+ * silently shows fewer rows than the camera holds is how an operator
31071
+ * saves back a schedule shorter than the one they were looking at
31072
+ * (D391). Non-zero means the window list is INCOMPLETE and a write
31073
+ * that replaces it would delete what was not shown — which is why a
31074
+ * provider reporting a non-zero count also reports the schedule as not
31075
+ * writable.
31076
+ */
31077
+ unreadableWindows: zod.z.number(),
31078
+ /**
31079
+ * The camera is scheduled to record and has NO usable storage.
31080
+ *
31081
+ * A first-class fact because it is the fleet's most common silent
31082
+ * defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
31083
+ * to a card that is not there. Neither the schedule nor the storage
31084
+ * read says anything wrong on its own; only the pair does.
31085
+ */
31086
+ recordingToNowhere: zod.z.boolean(),
31087
+ lastFetchedAt: zod.z.number()
31088
+ });
31089
+ /** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
31090
+ var RangeSchema = zod.z.object({
31091
+ min: zod.z.number(),
31092
+ max: zod.z.number(),
31093
+ step: zod.z.number()
31094
+ });
31095
+ /**
31096
+ * The values a camera actually takes for a numeric field, when they are a SET
31097
+ * rather than a range.
31098
+ *
31099
+ * `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
31100
+ * (I91DN) on 2026-09-22 by writing each value and reading it back:
31101
+ *
31102
+ * - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
31103
+ * camera's "no limit" — `-1` and `4294967295` both land on it);
31104
+ * - post-record: `5, 10, 30, 60, 120, 300, 600`.
31105
+ *
31106
+ * Neither is expressible as a step: the first has a sentinel two billion away
31107
+ * from its neighbours, the second doubles and then jumps. A range that tried
31108
+ * would forbid values the camera takes AND permit values it silently replaces
31109
+ * with 5 — wrong in both directions at once.
31110
+ *
31111
+ * `sentinel` names the member that is not a duration, so a surface can render
31112
+ * "no limit" instead of `2147483647` seconds.
31113
+ */
31114
+ var AllowedValuesSchema = zod.z.object({
31115
+ values: zod.z.array(zod.z.number()).min(1),
31116
+ sentinel: zod.z.object({
31117
+ value: zod.z.number(),
31118
+ meaning: zod.z.enum(["no-limit", "disabled"])
31119
+ }).optional()
31120
+ });
31121
+ /**
31122
+ * Per-field availability on ONE camera.
31123
+ *
31124
+ * The field exists on every camera — this says whether this one can be
31125
+ * read and whether it can be written, and `reason` says why not when
31126
+ * either is false. The UI renders the control DISABLED with the reason
31127
+ * rather than hiding it, so a limitation is legible instead of looking
31128
+ * like a missing feature.
31129
+ */
31130
+ var OnboardFieldSupportSchema = zod.z.object({
31131
+ readable: zod.z.boolean(),
31132
+ writable: zod.z.boolean(),
31133
+ /** Required whenever `readable` or `writable` is false. */
31134
+ reason: zod.z.string().optional()
31135
+ });
31136
+ /** What this camera's schedule model can express. */
31137
+ var OnboardScheduleSupportSchema = zod.z.object({
31138
+ support: OnboardFieldSupportSchema,
31139
+ /**
31140
+ * The smallest time step the camera can express, in minutes.
31141
+ *
31142
+ * Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
31143
+ * 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
31144
+ * window whose edges are not a multiple of this is REFUSED rather than
31145
+ * quietly rounded — rounding is how an operator's 06:30 becomes 06:00
31146
+ * and nothing says so.
31147
+ */
31148
+ granularityMinutes: zod.z.number(),
31149
+ /** Triggers this camera can record on. A window naming another is refused. */
31150
+ triggers: zod.z.array(RecordTriggerSchema),
31151
+ /**
31152
+ * False when the camera stores ONE trigger per time range, so two
31153
+ * windows overlapping on the same day cannot carry different triggers.
31154
+ * True on Reolink, whose mask is per-trigger and independent.
31155
+ */
31156
+ supportsOverlappingTriggers: zod.z.boolean()
31157
+ });
31158
+ var RecordingOnboardOptionsSchema = zod.z.object({
31159
+ enabled: OnboardFieldSupportSchema,
31160
+ overwriteWhenFull: OnboardFieldSupportSchema,
31161
+ preRecordSec: OnboardFieldSupportSchema,
31162
+ preRecordSecRange: RangeSchema.optional(),
31163
+ /** Preferred over the range when the camera takes a SET, not a span. */
31164
+ preRecordSecAllowed: AllowedValuesSchema.optional(),
31165
+ postRecordSec: OnboardFieldSupportSchema,
31166
+ postRecordSecRange: RangeSchema.optional(),
31167
+ /** Preferred over the range when the camera takes a SET, not a span. */
31168
+ postRecordSecAllowed: AllowedValuesSchema.optional(),
31169
+ segmentMinutes: OnboardFieldSupportSchema,
31170
+ segmentMinutesRange: RangeSchema.optional(),
31171
+ /** Preferred over the range when the camera takes a SET, not a span. */
31172
+ segmentMinutesAllowed: AllowedValuesSchema.optional(),
31173
+ schedule: OnboardScheduleSupportSchema
31174
+ });
31175
+ /**
31176
+ * A partial change. Every field optional.
31177
+ *
31178
+ * Unlike the other `deviceConfig` caps, a provider here does **NOT**
31179
+ * silently ignore a field it cannot support — it refuses, by name,
31180
+ * through {@link describeOnboardRefusal}. Silence on a recording setting
31181
+ * is the failure D62 exists to prevent: the operator believes the camera
31182
+ * is recording the way the form says, and it is not.
31183
+ */
31184
+ var RecordingOnboardPatchSchema = zod.z.object({
31185
+ enabled: zod.z.boolean().optional(),
31186
+ overwriteWhenFull: zod.z.boolean().optional(),
31187
+ preRecordSec: zod.z.number().optional(),
31188
+ postRecordSec: zod.z.number().optional(),
31189
+ segmentMinutes: zod.z.number().optional(),
31190
+ /** The complete new window set for the primary track — not a delta. */
31191
+ windows: zod.z.array(RecordWindowSchema).optional()
31192
+ });
31193
+ var recordingOnboardCapability = {
31194
+ name: "recording-onboard",
31195
+ scope: "device",
31196
+ deviceNative: true,
31197
+ mode: "singleton",
31198
+ deviceTypes: [require_sleep.DeviceType.Camera],
31199
+ deviceConfig: { ui: {
31200
+ kind: "derived-form",
31201
+ builderId: "recording-onboard",
31202
+ tab: "recording"
31203
+ } },
31204
+ methods: {
31205
+ getOptions: require_sleep.method(zod.z.object({ deviceId: zod.z.number() }), RecordingOnboardOptionsSchema),
31206
+ setSettings: require_sleep.method(zod.z.object({
31207
+ deviceId: zod.z.number(),
31208
+ settings: RecordingOnboardPatchSchema
31209
+ }), zod.z.void(), {
31210
+ kind: "mutation",
31211
+ auth: "admin"
31212
+ })
31213
+ },
31214
+ status: {
31215
+ schema: RecordingOnboardStatusSchema,
31216
+ kind: "poll"
31217
+ },
31218
+ runtimeState: RecordingOnboardStatusSchema,
31219
+ /**
31220
+ * Runtime-state durability: **restored** — operator-set camera-side
31221
+ * recording config; mutation-driven, and the storage half is the last
31222
+ * thing the camera said about its own card.
31223
+ *
31224
+ * See `RuntimeStateDurability`. Enforced by
31225
+ * `scripts/check-runtime-state-durability.ts`.
31226
+ */
31227
+ durability: "restored",
31228
+ /** Clock fields: written, but excluded from the compare that decides
31229
+ * whether persisting is worth a SQLite commit. */
31230
+ volatileStateFields: ["lastFetchedAt"]
31231
+ };
31232
+ //#endregion
31233
+ //#region src/capabilities/recording-onboard-rules.ts
31234
+ /** Minutes in a day. `endMinute === 1440` means "to end of day". */
31235
+ var MINUTES_PER_DAY = 1440;
31236
+ /** Days in the cap's week, 0 = Monday. */
31237
+ var DAYS_PER_WEEK = 7;
31238
+ /** Hours per day — the resolution of Reolink's mask. */
31239
+ var HOURS_PER_DAY = 24;
31240
+ /** Length of a Reolink weekly `valueTable`: 7 days × 24 hours. */
31241
+ var WEEKLY_MASK_LENGTH = 168;
31242
+ /**
31243
+ * Day-of-week names in the cap's index order (0 = Monday), for messages
31244
+ * an operator reads and for Hikvision's `<DayOfWeek>` element.
31245
+ */
31246
+ var DAY_NAMES = [
31247
+ "Monday",
31248
+ "Tuesday",
31249
+ "Wednesday",
31250
+ "Thursday",
31251
+ "Friday",
31252
+ "Saturday",
31253
+ "Sunday"
31254
+ ];
31255
+ /**
31256
+ * Does `patch` ask this camera for something it cannot do?
31257
+ *
31258
+ * Returns the operator-readable reason, or `null` when every field in
31259
+ * the patch is within what `options` says this camera accepts. A
31260
+ * provider calls this BEFORE touching the camera and throws the string:
31261
+ * refusing is the point, and refusing identically on both vendors is why
31262
+ * this is one function.
31263
+ *
31264
+ * The order of checks is the order an operator would read them: the
31265
+ * scalar knobs first, then the schedule, because a schedule complaint is
31266
+ * longer and a scalar one is usually the real problem.
31267
+ */
31268
+ function describeOnboardRefusal(options, patch) {
31269
+ if (patch.enabled !== void 0 && !options.enabled.writable) return unwritable("the master recording switch", options.enabled.reason);
31270
+ if (patch.overwriteWhenFull !== void 0 && !options.overwriteWhenFull.writable) return unwritable("overwrite-when-full", options.overwriteWhenFull.reason);
31271
+ const preRefusal = refuseNumeric("pre-record seconds", patch.preRecordSec, options.preRecordSec, options.preRecordSecRange, options.preRecordSecAllowed);
31272
+ if (preRefusal) return preRefusal;
31273
+ const postRefusal = refuseNumeric("post-record seconds", patch.postRecordSec, options.postRecordSec, options.postRecordSecRange, options.postRecordSecAllowed);
31274
+ if (postRefusal) return postRefusal;
31275
+ const segmentRefusal = refuseNumeric("segment length (minutes)", patch.segmentMinutes, options.segmentMinutes, options.segmentMinutesRange, options.segmentMinutesAllowed);
31276
+ if (segmentRefusal) return segmentRefusal;
31277
+ if (patch.windows !== void 0) {
31278
+ const scheduleRefusal = refuseSchedule(options, patch.windows);
31279
+ if (scheduleRefusal) return scheduleRefusal;
31280
+ }
31281
+ return null;
31282
+ }
31283
+ function unwritable(what, reason) {
31284
+ return reason ? `this camera cannot change ${what}: ${reason}` : `this camera cannot change ${what}`;
31285
+ }
31286
+ function refuseNumeric(what, value, support, range, allowed) {
31287
+ if (value === void 0) return null;
31288
+ if (!support.writable) return unwritable(what, support.reason);
31289
+ if (!Number.isFinite(value)) return `${what} must be a number, got ${String(value)}`;
31290
+ if (allowed) {
31291
+ if (allowed.values.includes(value)) return null;
31292
+ const say = (v) => allowed.sentinel !== void 0 && v === allowed.sentinel.value ? allowed.sentinel.meaning === "no-limit" ? "no limit" : "off" : String(v);
31293
+ return `this camera accepts ${what} only as ${allowed.values.map(say).join(", ")}; ${say(value)} is not one of them`;
31294
+ }
31295
+ if (!range) return null;
31296
+ if (value < range.min || value > range.max) return `this camera accepts ${what} between ${String(range.min)} and ${String(range.max)}; ${String(value)} is outside that`;
31297
+ if (range.step > 0 && (value - range.min) % range.step !== 0) return `this camera accepts ${what} in steps of ${String(range.step)} from ${String(range.min)}; ${String(value)} is not one of them`;
31298
+ return null;
31299
+ }
31300
+ function refuseSchedule(options, windows) {
31301
+ const schedule = options.schedule;
31302
+ if (!schedule.support.writable) return unwritable("the recording schedule", schedule.support.reason);
31303
+ const allowed = new Set(schedule.triggers);
31304
+ for (const window of windows) {
31305
+ if (!allowed.has(window.trigger)) {
31306
+ const offer = schedule.triggers.length > 0 ? schedule.triggers.join(", ") : "none";
31307
+ return `this camera cannot record on "${window.trigger}"; it records on: ${offer}`;
31308
+ }
31309
+ if (window.endMinute <= window.startMinute) return `a window on ${dayName(window.day)} ends at or before it starts (${String(window.startMinute)} → ${String(window.endMinute)})`;
31310
+ const step = schedule.granularityMinutes;
31311
+ if (step > 1 && (window.startMinute % step !== 0 || window.endMinute % step !== 0)) return `this camera's schedule only moves in ${String(step)}-minute steps; the ${dayName(window.day)} window ${formatMinutes(window.startMinute)}–${formatMinutes(window.endMinute)} is not aligned to them`;
31312
+ }
31313
+ if (!schedule.supportsOverlappingTriggers) {
31314
+ const clash = findOverlapWithDifferentTrigger(windows);
31315
+ if (clash) return `this camera stores one trigger per time range, so "${clash.a.trigger}" and "${clash.b.trigger}" cannot both cover ${dayName(clash.a.day)} ${formatMinutes(Math.max(clash.a.startMinute, clash.b.startMinute))}–${formatMinutes(Math.min(clash.a.endMinute, clash.b.endMinute))}`;
31316
+ }
31317
+ return null;
31318
+ }
31319
+ function findOverlapWithDifferentTrigger(windows) {
31320
+ for (let i = 0; i < windows.length; i += 1) for (let j = i + 1; j < windows.length; j += 1) {
31321
+ const a = windows[i];
31322
+ const b = windows[j];
31323
+ if (!a || !b) continue;
31324
+ if (a.day !== b.day) continue;
31325
+ if (a.trigger === b.trigger) continue;
31326
+ if (a.startMinute < b.endMinute && b.startMinute < a.endMinute) return {
31327
+ a,
31328
+ b
31329
+ };
31330
+ }
31331
+ return null;
31332
+ }
31333
+ function dayName(day) {
31334
+ return DAY_NAMES[day] ?? `day ${String(day)}`;
31335
+ }
31336
+ /** `510` → `08:30`. For messages, not for the wire. */
31337
+ function formatMinutes(minute) {
31338
+ const hour = Math.floor(minute / 60);
31339
+ const rest = minute % 60;
31340
+ return `${String(hour).padStart(2, "0")}:${String(rest).padStart(2, "0")}`;
31341
+ }
31342
+ /**
31343
+ * Index of the mask character covering `day` at `hour`.
31344
+ *
31345
+ * **Layout: day-major, Monday first** — `day * 24 + hour`.
31346
+ *
31347
+ * This is an ASSUMPTION, and it is recorded as one because the fleet
31348
+ * cannot currently confirm it: every `valueTable` on every Reolink
31349
+ * measured on 2026-09-22 is uniform (all `1` or all `0`), and a uniform
31350
+ * mask reads identically under either layout. To settle it, set a single
31351
+ * hour on one day from the Reolink app and re-read `getRecordSchedule`.
31352
+ * Until then, a NON-uniform mask is reported as windows under this
31353
+ * layout and the day labels may be transposed; a uniform one is exact.
31354
+ */
31355
+ function weeklyMaskIndex(day, hour) {
31356
+ return day * 24 + hour;
31357
+ }
31358
+ /**
31359
+ * True when every slot of the mask carries the same value — the case in
31360
+ * which {@link weeklyMaskIndex}'s layout assumption cannot be wrong.
31361
+ */
31362
+ function weeklyMaskIsUniform(mask) {
31363
+ if (mask.length === 0) return true;
31364
+ const first = mask[0];
31365
+ for (const ch of mask) if (ch !== first) return false;
31366
+ return true;
31367
+ }
31368
+ /**
31369
+ * Expand one trigger's weekly hour mask into windows, merging adjacent
31370
+ * set hours into one window per run so a full day is ONE window rather
31371
+ * than twenty-four.
31372
+ *
31373
+ * A mask of the wrong length yields no windows: a truncated table is not
31374
+ * a schedule of fewer days, it is an answer we did not understand.
31375
+ */
31376
+ function weeklyMaskToWindows(mask, trigger) {
31377
+ if (mask.length !== 168) return [];
31378
+ const out = [];
31379
+ for (let day = 0; day < 7; day += 1) {
31380
+ let runStart = null;
31381
+ for (let hour = 0; hour <= 24; hour += 1) {
31382
+ const set = hour < 24 && mask[weeklyMaskIndex(day, hour)] === "1";
31383
+ if (set && runStart === null) runStart = hour;
31384
+ else if (!set && runStart !== null) {
31385
+ out.push({
31386
+ trigger,
31387
+ day,
31388
+ startMinute: runStart * 60,
31389
+ endMinute: hour * 60
31390
+ });
31391
+ runStart = null;
31392
+ }
31393
+ }
31394
+ }
31395
+ return out;
31396
+ }
31397
+ /**
31398
+ * Collapse this trigger's windows back into a weekly hour mask.
31399
+ *
31400
+ * Windows for other triggers are ignored — the mask is per trigger. A
31401
+ * window that is not hour-aligned is REFUSED upstream by
31402
+ * {@link describeOnboardRefusal}; this function rounds nothing, it
31403
+ * simply sets every hour the window fully or partly covers, so a caller
31404
+ * that skipped the refusal cannot silently lose coverage.
31405
+ */
31406
+ function windowsToWeeklyMask(windows, trigger) {
31407
+ const slots = new Array(168).fill("0");
31408
+ for (const window of windows) {
31409
+ if (window.trigger !== trigger) continue;
31410
+ if (window.day < 0 || window.day >= 7) continue;
31411
+ const firstHour = Math.floor(window.startMinute / 60);
31412
+ const lastHour = Math.ceil(window.endMinute / 60);
31413
+ for (let hour = firstHour; hour < lastHour && hour < 24; hour += 1) slots[weeklyMaskIndex(window.day, hour)] = "1";
31414
+ }
31415
+ return slots.join("");
31416
+ }
31417
+ /**
31418
+ * Parse a Hikvision `<TimeOfDay>` into minutes since midnight.
31419
+ *
31420
+ * The firmware is not self-consistent and both spellings are real, on
31421
+ * the same camera in the same block: a start time reads `00:00:00` and
31422
+ * the matching end time reads `24:00`. Seconds are accepted and
31423
+ * discarded — the cap's resolution is minutes — and `24:00` maps to
31424
+ * {@link MINUTES_PER_DAY}, not to 0.
31425
+ *
31426
+ * Returns null for anything else, which a caller reports as a window it
31427
+ * could not read rather than as midnight.
31428
+ */
31429
+ function timeOfDayToMinutes(value) {
31430
+ const match = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/.exec(value.trim());
31431
+ if (!match) return null;
31432
+ const hour = Number(match[1]);
31433
+ const minute = Number(match[2]);
31434
+ if (!Number.isInteger(hour) || !Number.isInteger(minute)) return null;
31435
+ if (minute > 59) return null;
31436
+ const total = hour * 60 + minute;
31437
+ if (total > 1440) return null;
31438
+ return total;
31439
+ }
31440
+ /**
31441
+ * Render minutes back as a Hikvision `TimeOfDay`.
31442
+ *
31443
+ * Emits the camera's own two spellings: `24:00` for end-of-day, because
31444
+ * that is what the firmware writes and `24:00:00` is not observed, and
31445
+ * `HH:MM:SS` otherwise.
31446
+ */
31447
+ function minutesToTimeOfDay(minute) {
31448
+ if (minute >= 1440) return "24:00";
31449
+ const hour = Math.floor(minute / 60);
31450
+ const rest = minute % 60;
31451
+ return `${String(hour).padStart(2, "0")}:${String(rest).padStart(2, "0")}:00`;
31452
+ }
31453
+ /** `'Monday'` → 0. Case-insensitive. Null for anything unrecognised. */
31454
+ function dayOfWeekToIndex(value) {
31455
+ const needle = value.trim().toLowerCase();
31456
+ const index = DAY_NAMES.findIndex((name) => name.toLowerCase() === needle);
31457
+ return index >= 0 ? index : null;
31458
+ }
31459
+ /**
31460
+ * Which fields of a patch the camera did NOT take verbatim.
31461
+ *
31462
+ * Measured on a Hikvision I91DN (1436, 2026-09-22): a `PUT` of
31463
+ * `PreRecordTimeSeconds: 8` answered `200`, `statusCode 1`, `OK` — and stored
31464
+ * **5**. Neither the asked value nor the previous one. The camera declares no
31465
+ * allowed set for that field, so there is nothing to refuse against before the
31466
+ * wire: `/capabilities` returns a plain value where a constrained field would
31467
+ * carry an `opt=` list.
31468
+ *
31469
+ * So the only honest moment is after the read-back, and re-reading alone is
31470
+ * not enough — it makes the difference VISIBLE while leaving it unexplained.
31471
+ * A write that reports success for a value the camera never took is the same
31472
+ * silent substitution D599 removed from the clip path, wearing a different hat.
31473
+ *
31474
+ * Compares only the fields the patch actually named: a field nobody asked
31475
+ * about cannot have been clamped, and a read-back that could not answer it is
31476
+ * `stored: null` rather than a claim.
31477
+ */
31478
+ function describeOnboardClamp(patch, landed) {
31479
+ const out = [];
31480
+ for (const [field, asked] of Object.entries(patch)) {
31481
+ if (asked === void 0) continue;
31482
+ if (typeof asked !== "number" && typeof asked !== "boolean" && typeof asked !== "string") continue;
31483
+ const raw = landed === null ? void 0 : landed[field];
31484
+ const stored = typeof raw === "number" || typeof raw === "boolean" || typeof raw === "string" ? raw : null;
31485
+ if (stored !== asked) out.push({
31486
+ field,
31487
+ asked,
31488
+ stored
31489
+ });
31490
+ }
31491
+ return out;
31492
+ }
31493
+ //#endregion
30487
31494
  //#region src/capabilities/device-status.cap.ts
30488
31495
  /**
30489
31496
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
@@ -41389,6 +42396,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
41389
42396
  pressureSensor: pressureSensorCapability,
41390
42397
  privacyMask: privacyMaskCapability,
41391
42398
  ptzAutotrack: ptzAutotrackCapability,
42399
+ recordingOnboard: recordingOnboardCapability,
41392
42400
  recordingSignal: recordingSignalCapability,
41393
42401
  sceneMonitor: sceneMonitorCapability,
41394
42402
  scriptRunner: scriptRunnerCapability,
@@ -43219,6 +44227,1429 @@ function resolveDeviceProfile(features) {
43219
44227
  return null;
43220
44228
  }
43221
44229
  //#endregion
44230
+ //#region src/device/display-icon-vocabulary.ts
44231
+ /** The order the groups are offered in, and the only members there are. */
44232
+ var DISPLAY_ICON_GROUPS = [
44233
+ "device",
44234
+ "lighting",
44235
+ "sensing",
44236
+ "place",
44237
+ "life"
44238
+ ];
44239
+ /**
44240
+ * The vocabulary, in the order a picker offers it.
44241
+ *
44242
+ * Adding a key here is not enough to make it pickable: both glyph tables must
44243
+ * gain it too, and their tests fail until they do. That is the intended
44244
+ * friction — it is the only thing that keeps the two surfaces honest.
44245
+ */
44246
+ var DISPLAY_ICON_VOCABULARY = [
44247
+ {
44248
+ key: "camera",
44249
+ group: "device",
44250
+ synonyms: [
44251
+ "telecamera",
44252
+ "videocamera",
44253
+ "camera",
44254
+ "cam"
44255
+ ]
44256
+ },
44257
+ {
44258
+ key: "network",
44259
+ group: "device",
44260
+ synonyms: [
44261
+ "rete",
44262
+ "network",
44263
+ "lan"
44264
+ ]
44265
+ },
44266
+ {
44267
+ key: "toggle-left",
44268
+ group: "device",
44269
+ synonyms: [
44270
+ "interruttore",
44271
+ "switch",
44272
+ "toggle"
44273
+ ]
44274
+ },
44275
+ {
44276
+ key: "toggle-right",
44277
+ group: "device",
44278
+ synonyms: [
44279
+ "interruttore",
44280
+ "switch",
44281
+ "toggle",
44282
+ "acceso"
44283
+ ]
44284
+ },
44285
+ {
44286
+ key: "circle-dot",
44287
+ group: "device",
44288
+ synonyms: [
44289
+ "pulsante",
44290
+ "bottone",
44291
+ "button",
44292
+ "dot"
44293
+ ]
44294
+ },
44295
+ {
44296
+ key: "refresh-cw",
44297
+ group: "device",
44298
+ synonyms: [
44299
+ "aggiorna",
44300
+ "ricarica",
44301
+ "refresh",
44302
+ "reload",
44303
+ "ciclo"
44304
+ ]
44305
+ },
44306
+ {
44307
+ key: "box",
44308
+ group: "device",
44309
+ synonyms: [
44310
+ "scatola",
44311
+ "box",
44312
+ "contenitore"
44313
+ ]
44314
+ },
44315
+ {
44316
+ key: "scroll-text",
44317
+ group: "device",
44318
+ synonyms: [
44319
+ "registro",
44320
+ "log",
44321
+ "testo"
44322
+ ]
44323
+ },
44324
+ {
44325
+ key: "workflow",
44326
+ group: "device",
44327
+ synonyms: [
44328
+ "automazione",
44329
+ "flusso",
44330
+ "workflow",
44331
+ "scenario"
44332
+ ]
44333
+ },
44334
+ {
44335
+ key: "lock",
44336
+ group: "device",
44337
+ synonyms: [
44338
+ "serratura",
44339
+ "chiave",
44340
+ "lucchetto",
44341
+ "chiuso",
44342
+ "locked"
44343
+ ]
44344
+ },
44345
+ {
44346
+ key: "lock-open",
44347
+ group: "device",
44348
+ synonyms: [
44349
+ "serratura",
44350
+ "aperta",
44351
+ "sbloccato",
44352
+ "unlocked"
44353
+ ]
44354
+ },
44355
+ {
44356
+ key: "blinds",
44357
+ group: "device",
44358
+ synonyms: [
44359
+ "tapparella",
44360
+ "persiana",
44361
+ "serranda",
44362
+ "avvolgibile",
44363
+ "shutter",
44364
+ "blind",
44365
+ "veneziana"
44366
+ ]
44367
+ },
44368
+ {
44369
+ key: "air-vent",
44370
+ group: "device",
44371
+ synonyms: [
44372
+ "bocchetta",
44373
+ "aria",
44374
+ "ventilazione",
44375
+ "condizionatore",
44376
+ "vent"
44377
+ ]
44378
+ },
44379
+ {
44380
+ key: "monitor-play",
44381
+ group: "device",
44382
+ synonyms: [
44383
+ "schermo",
44384
+ "riproduzione",
44385
+ "player",
44386
+ "display"
44387
+ ]
44388
+ },
44389
+ {
44390
+ key: "sliders-horizontal",
44391
+ group: "device",
44392
+ synonyms: [
44393
+ "regolazione",
44394
+ "cursori",
44395
+ "impostazioni",
44396
+ "slider"
44397
+ ]
44398
+ },
44399
+ {
44400
+ key: "map-pin",
44401
+ group: "device",
44402
+ synonyms: [
44403
+ "posizione",
44404
+ "luogo",
44405
+ "mappa",
44406
+ "pin"
44407
+ ]
44408
+ },
44409
+ {
44410
+ key: "bot",
44411
+ group: "device",
44412
+ synonyms: [
44413
+ "robot",
44414
+ "aspirapolvere",
44415
+ "bot"
44416
+ ]
44417
+ },
44418
+ {
44419
+ key: "tractor",
44420
+ group: "device",
44421
+ synonyms: [
44422
+ "trattore",
44423
+ "tosaerba",
44424
+ "giardino"
44425
+ ]
44426
+ },
44427
+ {
44428
+ key: "image",
44429
+ group: "device",
44430
+ synonyms: [
44431
+ "immagine",
44432
+ "foto",
44433
+ "snapshot"
44434
+ ]
44435
+ },
44436
+ {
44437
+ key: "bone",
44438
+ group: "device",
44439
+ synonyms: ["osso", "cane"]
44440
+ },
44441
+ {
44442
+ key: "door-closed",
44443
+ group: "device",
44444
+ synonyms: [
44445
+ "porta",
44446
+ "chiusa",
44447
+ "contatto"
44448
+ ]
44449
+ },
44450
+ {
44451
+ key: "door-open",
44452
+ group: "device",
44453
+ synonyms: [
44454
+ "porta",
44455
+ "aperta",
44456
+ "contatto",
44457
+ "ingresso",
44458
+ "uscita"
44459
+ ]
44460
+ },
44461
+ {
44462
+ key: "crosshair",
44463
+ group: "device",
44464
+ synonyms: [
44465
+ "mirino",
44466
+ "puntamento",
44467
+ "centro"
44468
+ ]
44469
+ },
44470
+ {
44471
+ key: "eye",
44472
+ group: "device",
44473
+ synonyms: [
44474
+ "occhio",
44475
+ "visibile",
44476
+ "visto"
44477
+ ]
44478
+ },
44479
+ {
44480
+ key: "eye-off",
44481
+ group: "device",
44482
+ synonyms: [
44483
+ "privacy",
44484
+ "nascosto",
44485
+ "oscurato",
44486
+ "mascherato",
44487
+ "invisibile"
44488
+ ]
44489
+ },
44490
+ {
44491
+ key: "smartphone",
44492
+ group: "device",
44493
+ synonyms: [
44494
+ "telefono",
44495
+ "cellulare",
44496
+ "smartphone"
44497
+ ]
44498
+ },
44499
+ {
44500
+ key: "phone",
44501
+ group: "device",
44502
+ synonyms: ["telefono", "chiamata"]
44503
+ },
44504
+ {
44505
+ key: "tablet",
44506
+ group: "device",
44507
+ synonyms: ["tablet", "ipad"]
44508
+ },
44509
+ {
44510
+ key: "laptop",
44511
+ group: "device",
44512
+ synonyms: [
44513
+ "portatile",
44514
+ "laptop",
44515
+ "notebook"
44516
+ ]
44517
+ },
44518
+ {
44519
+ key: "monitor",
44520
+ group: "device",
44521
+ synonyms: ["monitor", "schermo"]
44522
+ },
44523
+ {
44524
+ key: "tv",
44525
+ group: "device",
44526
+ synonyms: ["televisore", "tv"]
44527
+ },
44528
+ {
44529
+ key: "speaker",
44530
+ group: "device",
44531
+ synonyms: [
44532
+ "altoparlante",
44533
+ "cassa",
44534
+ "speaker"
44535
+ ]
44536
+ },
44537
+ {
44538
+ key: "printer",
44539
+ group: "device",
44540
+ synonyms: ["stampante"]
44541
+ },
44542
+ {
44543
+ key: "projector",
44544
+ group: "device",
44545
+ synonyms: ["proiettore"]
44546
+ },
44547
+ {
44548
+ key: "gamepad-2",
44549
+ group: "device",
44550
+ synonyms: [
44551
+ "console",
44552
+ "gioco",
44553
+ "joystick"
44554
+ ]
44555
+ },
44556
+ {
44557
+ key: "radio",
44558
+ group: "device",
44559
+ synonyms: ["radio"]
44560
+ },
44561
+ {
44562
+ key: "router",
44563
+ group: "device",
44564
+ synonyms: ["router", "modem"]
44565
+ },
44566
+ {
44567
+ key: "bluetooth",
44568
+ group: "device",
44569
+ synonyms: ["bluetooth"]
44570
+ },
44571
+ {
44572
+ key: "cpu",
44573
+ group: "device",
44574
+ synonyms: [
44575
+ "processore",
44576
+ "cpu",
44577
+ "chip",
44578
+ "dispositivo"
44579
+ ]
44580
+ },
44581
+ {
44582
+ key: "hard-drive",
44583
+ group: "device",
44584
+ synonyms: [
44585
+ "disco",
44586
+ "hdd",
44587
+ "archiviazione",
44588
+ "storage"
44589
+ ]
44590
+ },
44591
+ {
44592
+ key: "server",
44593
+ group: "device",
44594
+ synonyms: ["server", "nas"]
44595
+ },
44596
+ {
44597
+ key: "mic",
44598
+ group: "device",
44599
+ synonyms: ["microfono", "audio"]
44600
+ },
44601
+ {
44602
+ key: "mic-off",
44603
+ group: "device",
44604
+ synonyms: [
44605
+ "microfono",
44606
+ "spento",
44607
+ "muto"
44608
+ ]
44609
+ },
44610
+ {
44611
+ key: "video",
44612
+ group: "device",
44613
+ synonyms: ["video"]
44614
+ },
44615
+ {
44616
+ key: "video-off",
44617
+ group: "device",
44618
+ synonyms: ["video", "spento"]
44619
+ },
44620
+ {
44621
+ key: "music",
44622
+ group: "device",
44623
+ synonyms: ["musica"]
44624
+ },
44625
+ {
44626
+ key: "plug",
44627
+ group: "device",
44628
+ synonyms: [
44629
+ "presa",
44630
+ "spina",
44631
+ "plug"
44632
+ ]
44633
+ },
44634
+ {
44635
+ key: "plug-zap",
44636
+ group: "device",
44637
+ synonyms: ["presa", "alimentata"]
44638
+ },
44639
+ {
44640
+ key: "power",
44641
+ group: "device",
44642
+ synonyms: [
44643
+ "accensione",
44644
+ "alimentazione",
44645
+ "power"
44646
+ ]
44647
+ },
44648
+ {
44649
+ key: "power-off",
44650
+ group: "device",
44651
+ synonyms: ["spegnimento", "spento"]
44652
+ },
44653
+ {
44654
+ key: "cable",
44655
+ group: "device",
44656
+ synonyms: ["cavo"]
44657
+ },
44658
+ {
44659
+ key: "battery",
44660
+ group: "device",
44661
+ synonyms: ["batteria"]
44662
+ },
44663
+ {
44664
+ key: "battery-charging",
44665
+ group: "device",
44666
+ synonyms: [
44667
+ "batteria",
44668
+ "carica",
44669
+ "ricarica"
44670
+ ]
44671
+ },
44672
+ {
44673
+ key: "battery-full",
44674
+ group: "device",
44675
+ synonyms: [
44676
+ "batteria",
44677
+ "carica",
44678
+ "piena"
44679
+ ]
44680
+ },
44681
+ {
44682
+ key: "battery-low",
44683
+ group: "device",
44684
+ synonyms: ["batteria", "scarica"]
44685
+ },
44686
+ {
44687
+ key: "key",
44688
+ group: "device",
44689
+ synonyms: ["chiave"]
44690
+ },
44691
+ {
44692
+ key: "key-round",
44693
+ group: "device",
44694
+ synonyms: ["chiave", "tonda"]
44695
+ },
44696
+ {
44697
+ key: "mailbox",
44698
+ group: "device",
44699
+ synonyms: [
44700
+ "cassetta",
44701
+ "postale",
44702
+ "posta"
44703
+ ]
44704
+ },
44705
+ {
44706
+ key: "package",
44707
+ group: "device",
44708
+ synonyms: ["pacco", "consegna"]
44709
+ },
44710
+ {
44711
+ key: "shield",
44712
+ group: "device",
44713
+ synonyms: [
44714
+ "scudo",
44715
+ "protezione",
44716
+ "sicurezza",
44717
+ "allarme"
44718
+ ]
44719
+ },
44720
+ {
44721
+ key: "shield-check",
44722
+ group: "device",
44723
+ synonyms: [
44724
+ "protetto",
44725
+ "sicuro",
44726
+ "armato"
44727
+ ]
44728
+ },
44729
+ {
44730
+ key: "shield-off",
44731
+ group: "device",
44732
+ synonyms: [
44733
+ "protezione",
44734
+ "disattivata",
44735
+ "disarmato"
44736
+ ]
44737
+ },
44738
+ {
44739
+ key: "briefcase",
44740
+ group: "device",
44741
+ synonyms: [
44742
+ "ufficio",
44743
+ "lavoro",
44744
+ "valigetta",
44745
+ "studio"
44746
+ ]
44747
+ },
44748
+ {
44749
+ key: "lightbulb",
44750
+ group: "lighting",
44751
+ synonyms: [
44752
+ "luce",
44753
+ "lampadina",
44754
+ "lampada",
44755
+ "light"
44756
+ ]
44757
+ },
44758
+ {
44759
+ key: "lamp",
44760
+ group: "lighting",
44761
+ synonyms: ["lampada", "abatjour"]
44762
+ },
44763
+ {
44764
+ key: "lamp-ceiling",
44765
+ group: "lighting",
44766
+ synonyms: [
44767
+ "plafoniera",
44768
+ "lampadario",
44769
+ "luce",
44770
+ "soffitto"
44771
+ ]
44772
+ },
44773
+ {
44774
+ key: "lamp-desk",
44775
+ group: "lighting",
44776
+ synonyms: [
44777
+ "lampada",
44778
+ "scrivania",
44779
+ "abatjour"
44780
+ ]
44781
+ },
44782
+ {
44783
+ key: "lamp-floor",
44784
+ group: "lighting",
44785
+ synonyms: [
44786
+ "piantana",
44787
+ "lampada",
44788
+ "terra"
44789
+ ]
44790
+ },
44791
+ {
44792
+ key: "flashlight",
44793
+ group: "lighting",
44794
+ synonyms: [
44795
+ "faretto",
44796
+ "torcia",
44797
+ "spot",
44798
+ "faro"
44799
+ ]
44800
+ },
44801
+ {
44802
+ key: "heater",
44803
+ group: "lighting",
44804
+ synonyms: [
44805
+ "riscaldamento",
44806
+ "termosifone",
44807
+ "stufa",
44808
+ "calore"
44809
+ ]
44810
+ },
44811
+ {
44812
+ key: "snowflake",
44813
+ group: "lighting",
44814
+ synonyms: [
44815
+ "freddo",
44816
+ "raffrescamento",
44817
+ "aria",
44818
+ "condizionata",
44819
+ "neve"
44820
+ ]
44821
+ },
44822
+ {
44823
+ key: "thermometer-sun",
44824
+ group: "lighting",
44825
+ synonyms: [
44826
+ "caldo",
44827
+ "temperatura",
44828
+ "alta"
44829
+ ]
44830
+ },
44831
+ {
44832
+ key: "thermometer-snowflake",
44833
+ group: "lighting",
44834
+ synonyms: [
44835
+ "freddo",
44836
+ "temperatura",
44837
+ "bassa"
44838
+ ]
44839
+ },
44840
+ {
44841
+ key: "refrigerator",
44842
+ group: "lighting",
44843
+ synonyms: ["frigorifero", "frigo"]
44844
+ },
44845
+ {
44846
+ key: "microwave",
44847
+ group: "lighting",
44848
+ synonyms: ["microonde", "forno"]
44849
+ },
44850
+ {
44851
+ key: "washing-machine",
44852
+ group: "lighting",
44853
+ synonyms: [
44854
+ "lavatrice",
44855
+ "lavastoviglie",
44856
+ "asciugatrice"
44857
+ ]
44858
+ },
44859
+ {
44860
+ key: "cooking-pot",
44861
+ group: "lighting",
44862
+ synonyms: [
44863
+ "pentola",
44864
+ "cucina",
44865
+ "fornello"
44866
+ ]
44867
+ },
44868
+ {
44869
+ key: "utensils",
44870
+ group: "lighting",
44871
+ synonyms: [
44872
+ "cucina",
44873
+ "posate",
44874
+ "sala",
44875
+ "pranzo"
44876
+ ]
44877
+ },
44878
+ {
44879
+ key: "thermometer",
44880
+ group: "sensing",
44881
+ synonyms: [
44882
+ "temperatura",
44883
+ "termometro",
44884
+ "termostato"
44885
+ ]
44886
+ },
44887
+ {
44888
+ key: "droplets",
44889
+ group: "sensing",
44890
+ synonyms: [
44891
+ "umidita",
44892
+ "acqua",
44893
+ "allagamento",
44894
+ "perdita"
44895
+ ]
44896
+ },
44897
+ {
44898
+ key: "droplet",
44899
+ group: "sensing",
44900
+ synonyms: [
44901
+ "goccia",
44902
+ "acqua",
44903
+ "perdita",
44904
+ "allagamento"
44905
+ ]
44906
+ },
44907
+ {
44908
+ key: "gauge",
44909
+ group: "sensing",
44910
+ synonyms: [
44911
+ "misura",
44912
+ "livello",
44913
+ "pressione",
44914
+ "indicatore"
44915
+ ]
44916
+ },
44917
+ {
44918
+ key: "gauge2",
44919
+ group: "sensing",
44920
+ synonyms: [
44921
+ "misura",
44922
+ "livello",
44923
+ "pressione",
44924
+ "indicatore"
44925
+ ],
44926
+ aliasOf: "gauge"
44927
+ },
44928
+ {
44929
+ key: "sun",
44930
+ group: "sensing",
44931
+ synonyms: [
44932
+ "sole",
44933
+ "luminosita",
44934
+ "giorno",
44935
+ "esterno"
44936
+ ]
44937
+ },
44938
+ {
44939
+ key: "sun-medium",
44940
+ group: "sensing",
44941
+ synonyms: ["sole", "luminosita"]
44942
+ },
44943
+ {
44944
+ key: "sunrise",
44945
+ group: "sensing",
44946
+ synonyms: ["alba"]
44947
+ },
44948
+ {
44949
+ key: "moon",
44950
+ group: "sensing",
44951
+ synonyms: [
44952
+ "notte",
44953
+ "luna",
44954
+ "notturna",
44955
+ "nightvision"
44956
+ ]
44957
+ },
44958
+ {
44959
+ key: "wind",
44960
+ group: "sensing",
44961
+ synonyms: [
44962
+ "vento",
44963
+ "aria",
44964
+ "gas",
44965
+ "monossido",
44966
+ "co"
44967
+ ]
44968
+ },
44969
+ {
44970
+ key: "cloud",
44971
+ group: "sensing",
44972
+ synonyms: ["nuvola", "nuvoloso"]
44973
+ },
44974
+ {
44975
+ key: "cloud-rain",
44976
+ group: "sensing",
44977
+ synonyms: ["pioggia"]
44978
+ },
44979
+ {
44980
+ key: "cloud-sun",
44981
+ group: "sensing",
44982
+ synonyms: [
44983
+ "variabile",
44984
+ "sole",
44985
+ "nuvole"
44986
+ ]
44987
+ },
44988
+ {
44989
+ key: "waves",
44990
+ group: "sensing",
44991
+ synonyms: [
44992
+ "onde",
44993
+ "acqua",
44994
+ "vibrazione"
44995
+ ]
44996
+ },
44997
+ {
44998
+ key: "sprout",
44999
+ group: "sensing",
45000
+ synonyms: [
45001
+ "irrigazione",
45002
+ "pianta",
45003
+ "germoglio",
45004
+ "orto"
45005
+ ]
45006
+ },
45007
+ {
45008
+ key: "leaf",
45009
+ group: "sensing",
45010
+ synonyms: [
45011
+ "foglia",
45012
+ "pianta",
45013
+ "verde"
45014
+ ]
45015
+ },
45016
+ {
45017
+ key: "flower",
45018
+ group: "sensing",
45019
+ synonyms: ["fiore", "pianta"]
45020
+ },
45021
+ {
45022
+ key: "zap",
45023
+ group: "sensing",
45024
+ synonyms: [
45025
+ "energia",
45026
+ "corrente",
45027
+ "consumo",
45028
+ "watt",
45029
+ "elettricita"
45030
+ ]
45031
+ },
45032
+ {
45033
+ key: "flame",
45034
+ group: "sensing",
45035
+ synonyms: [
45036
+ "fiamma",
45037
+ "gas",
45038
+ "fuoco",
45039
+ "incendio"
45040
+ ]
45041
+ },
45042
+ {
45043
+ key: "bell",
45044
+ group: "sensing",
45045
+ synonyms: [
45046
+ "campanello",
45047
+ "suoneria",
45048
+ "notifica",
45049
+ "bell",
45050
+ "chime"
45051
+ ]
45052
+ },
45053
+ {
45054
+ key: "bell-ring",
45055
+ group: "sensing",
45056
+ synonyms: [
45057
+ "campanello",
45058
+ "suona",
45059
+ "doorbell",
45060
+ "notifica"
45061
+ ]
45062
+ },
45063
+ {
45064
+ key: "bell-off",
45065
+ group: "sensing",
45066
+ synonyms: [
45067
+ "silenzioso",
45068
+ "notifiche",
45069
+ "disattivate",
45070
+ "muto"
45071
+ ]
45072
+ },
45073
+ {
45074
+ key: "siren",
45075
+ group: "sensing",
45076
+ synonyms: ["sirena", "allarme"]
45077
+ },
45078
+ {
45079
+ key: "radar",
45080
+ group: "sensing",
45081
+ synonyms: [
45082
+ "movimento",
45083
+ "presenza",
45084
+ "pir",
45085
+ "rilevamento",
45086
+ "radar"
45087
+ ]
45088
+ },
45089
+ {
45090
+ key: "activity",
45091
+ group: "sensing",
45092
+ synonyms: [
45093
+ "attivita",
45094
+ "sensore",
45095
+ "generico"
45096
+ ]
45097
+ },
45098
+ {
45099
+ key: "hash",
45100
+ group: "sensing",
45101
+ synonyms: [
45102
+ "numero",
45103
+ "contatore",
45104
+ "valore"
45105
+ ]
45106
+ },
45107
+ {
45108
+ key: "clock",
45109
+ group: "sensing",
45110
+ synonyms: [
45111
+ "orologio",
45112
+ "ora",
45113
+ "tempo"
45114
+ ]
45115
+ },
45116
+ {
45117
+ key: "timer",
45118
+ group: "sensing",
45119
+ synonyms: [
45120
+ "timer",
45121
+ "conto",
45122
+ "rovescia"
45123
+ ]
45124
+ },
45125
+ {
45126
+ key: "calendar",
45127
+ group: "sensing",
45128
+ synonyms: [
45129
+ "calendario",
45130
+ "data",
45131
+ "pianificazione"
45132
+ ]
45133
+ },
45134
+ {
45135
+ key: "pipette",
45136
+ group: "sensing",
45137
+ synonyms: [
45138
+ "qualita",
45139
+ "aria",
45140
+ "misura",
45141
+ "campione"
45142
+ ]
45143
+ },
45144
+ {
45145
+ key: "fan",
45146
+ group: "sensing",
45147
+ synonyms: [
45148
+ "ventilatore",
45149
+ "ventola",
45150
+ "aria"
45151
+ ]
45152
+ },
45153
+ {
45154
+ key: "bath",
45155
+ group: "sensing",
45156
+ synonyms: [
45157
+ "bagno",
45158
+ "vasca",
45159
+ "doccia"
45160
+ ]
45161
+ },
45162
+ {
45163
+ key: "footprints",
45164
+ group: "sensing",
45165
+ synonyms: [
45166
+ "movimento",
45167
+ "passi",
45168
+ "presenza",
45169
+ "motion"
45170
+ ]
45171
+ },
45172
+ {
45173
+ key: "alarm-smoke",
45174
+ group: "sensing",
45175
+ synonyms: [
45176
+ "fumo",
45177
+ "antincendio",
45178
+ "rilevatore"
45179
+ ]
45180
+ },
45181
+ {
45182
+ key: "shield-alert",
45183
+ group: "sensing",
45184
+ synonyms: [
45185
+ "manomissione",
45186
+ "allarme",
45187
+ "tamper",
45188
+ "avviso"
45189
+ ]
45190
+ },
45191
+ {
45192
+ key: "vibrate",
45193
+ group: "sensing",
45194
+ synonyms: [
45195
+ "vibrazione",
45196
+ "urto",
45197
+ "tamper"
45198
+ ]
45199
+ },
45200
+ {
45201
+ key: "wifi",
45202
+ group: "sensing",
45203
+ synonyms: [
45204
+ "wifi",
45205
+ "rete",
45206
+ "segnale"
45207
+ ]
45208
+ },
45209
+ {
45210
+ key: "wifi-off",
45211
+ group: "sensing",
45212
+ synonyms: [
45213
+ "wifi",
45214
+ "assente",
45215
+ "offline",
45216
+ "disconnesso"
45217
+ ]
45218
+ },
45219
+ {
45220
+ key: "volume-2",
45221
+ group: "sensing",
45222
+ synonyms: [
45223
+ "volume",
45224
+ "audio",
45225
+ "altoparlante",
45226
+ "suono"
45227
+ ]
45228
+ },
45229
+ {
45230
+ key: "volume-x",
45231
+ group: "sensing",
45232
+ synonyms: [
45233
+ "muto",
45234
+ "silenziato",
45235
+ "volume",
45236
+ "spento"
45237
+ ]
45238
+ },
45239
+ {
45240
+ key: "heart",
45241
+ group: "sensing",
45242
+ synonyms: [
45243
+ "cuore",
45244
+ "preferito",
45245
+ "salute"
45246
+ ]
45247
+ },
45248
+ {
45249
+ key: "heart-pulse",
45250
+ group: "sensing",
45251
+ synonyms: [
45252
+ "battito",
45253
+ "salute",
45254
+ "monitoraggio"
45255
+ ]
45256
+ },
45257
+ {
45258
+ key: "star",
45259
+ group: "sensing",
45260
+ synonyms: [
45261
+ "preferito",
45262
+ "stella",
45263
+ "importante"
45264
+ ]
45265
+ },
45266
+ {
45267
+ key: "sparkles",
45268
+ group: "sensing",
45269
+ synonyms: [
45270
+ "automatico",
45271
+ "intelligente",
45272
+ "ai",
45273
+ "scena"
45274
+ ]
45275
+ },
45276
+ {
45277
+ key: "house",
45278
+ group: "place",
45279
+ synonyms: [
45280
+ "casa",
45281
+ "abitazione",
45282
+ "home"
45283
+ ]
45284
+ },
45285
+ {
45286
+ key: "sofa",
45287
+ group: "place",
45288
+ synonyms: [
45289
+ "salone",
45290
+ "soggiorno",
45291
+ "divano",
45292
+ "living"
45293
+ ]
45294
+ },
45295
+ {
45296
+ key: "bed-double",
45297
+ group: "place",
45298
+ synonyms: [
45299
+ "camera",
45300
+ "letto",
45301
+ "matrimoniale"
45302
+ ]
45303
+ },
45304
+ {
45305
+ key: "bed",
45306
+ group: "place",
45307
+ synonyms: [
45308
+ "cameretta",
45309
+ "letto",
45310
+ "singolo"
45311
+ ]
45312
+ },
45313
+ {
45314
+ key: "warehouse",
45315
+ group: "place",
45316
+ synonyms: [
45317
+ "magazzino",
45318
+ "capanno",
45319
+ "deposito",
45320
+ "cantina"
45321
+ ]
45322
+ },
45323
+ {
45324
+ key: "trees",
45325
+ group: "place",
45326
+ synonyms: [
45327
+ "giardino",
45328
+ "alberi",
45329
+ "esterno",
45330
+ "parco"
45331
+ ]
45332
+ },
45333
+ {
45334
+ key: "tree-pine",
45335
+ group: "place",
45336
+ synonyms: [
45337
+ "albero",
45338
+ "pino",
45339
+ "giardino"
45340
+ ]
45341
+ },
45342
+ {
45343
+ key: "fence",
45344
+ group: "place",
45345
+ synonyms: [
45346
+ "recinto",
45347
+ "cancello",
45348
+ "staccionata",
45349
+ "perimetro"
45350
+ ]
45351
+ },
45352
+ {
45353
+ key: "store",
45354
+ group: "place",
45355
+ synonyms: [
45356
+ "negozio",
45357
+ "ingresso",
45358
+ "vetrina"
45359
+ ]
45360
+ },
45361
+ {
45362
+ key: "building",
45363
+ group: "place",
45364
+ synonyms: ["edificio", "palazzo"]
45365
+ },
45366
+ {
45367
+ key: "building-2",
45368
+ group: "place",
45369
+ synonyms: [
45370
+ "edificio",
45371
+ "uffici",
45372
+ "condominio"
45373
+ ]
45374
+ },
45375
+ {
45376
+ key: "mountain",
45377
+ group: "place",
45378
+ synonyms: [
45379
+ "montagna",
45380
+ "esterno",
45381
+ "panorama"
45382
+ ]
45383
+ },
45384
+ {
45385
+ key: "umbrella",
45386
+ group: "place",
45387
+ synonyms: [
45388
+ "tenda",
45389
+ "markise",
45390
+ "ombrellone",
45391
+ "pergola",
45392
+ "veranda"
45393
+ ]
45394
+ },
45395
+ {
45396
+ key: "dumbbell",
45397
+ group: "place",
45398
+ synonyms: ["palestra", "attrezzi"]
45399
+ },
45400
+ {
45401
+ key: "wrench",
45402
+ group: "place",
45403
+ synonyms: [
45404
+ "officina",
45405
+ "manutenzione",
45406
+ "attrezzi",
45407
+ "utenze"
45408
+ ]
45409
+ },
45410
+ {
45411
+ key: "hammer",
45412
+ group: "place",
45413
+ synonyms: [
45414
+ "officina",
45415
+ "martello",
45416
+ "lavori"
45417
+ ]
45418
+ },
45419
+ {
45420
+ key: "drill",
45421
+ group: "place",
45422
+ synonyms: [
45423
+ "officina",
45424
+ "trapano",
45425
+ "lavori"
45426
+ ]
45427
+ },
45428
+ {
45429
+ key: "waves-ladder",
45430
+ group: "place",
45431
+ synonyms: ["piscina", "vasca"]
45432
+ },
45433
+ {
45434
+ key: "circle-parking",
45435
+ group: "place",
45436
+ synonyms: [
45437
+ "parcheggio",
45438
+ "posto",
45439
+ "auto",
45440
+ "garage"
45441
+ ]
45442
+ },
45443
+ {
45444
+ key: "route",
45445
+ group: "place",
45446
+ synonyms: [
45447
+ "percorso",
45448
+ "strada",
45449
+ "vialetto",
45450
+ "tragitto"
45451
+ ]
45452
+ },
45453
+ {
45454
+ key: "car",
45455
+ group: "life",
45456
+ synonyms: [
45457
+ "auto",
45458
+ "macchina",
45459
+ "veicolo",
45460
+ "parcheggio"
45461
+ ]
45462
+ },
45463
+ {
45464
+ key: "bike",
45465
+ group: "life",
45466
+ synonyms: [
45467
+ "bicicletta",
45468
+ "bici",
45469
+ "moto"
45470
+ ]
45471
+ },
45472
+ {
45473
+ key: "bus",
45474
+ group: "life",
45475
+ synonyms: ["autobus", "pullman"]
45476
+ },
45477
+ {
45478
+ key: "truck",
45479
+ group: "life",
45480
+ synonyms: [
45481
+ "camion",
45482
+ "furgone",
45483
+ "consegna"
45484
+ ]
45485
+ },
45486
+ {
45487
+ key: "plane",
45488
+ group: "life",
45489
+ synonyms: ["aereo"]
45490
+ },
45491
+ {
45492
+ key: "train-front",
45493
+ group: "life",
45494
+ synonyms: ["treno"]
45495
+ },
45496
+ {
45497
+ key: "sailboat",
45498
+ group: "life",
45499
+ synonyms: ["barca", "imbarcazione"]
45500
+ },
45501
+ {
45502
+ key: "dog",
45503
+ group: "life",
45504
+ synonyms: ["cane", "animale"]
45505
+ },
45506
+ {
45507
+ key: "cat",
45508
+ group: "life",
45509
+ synonyms: ["gatto", "animale"]
45510
+ },
45511
+ {
45512
+ key: "bird",
45513
+ group: "life",
45514
+ synonyms: ["uccello", "animale"]
45515
+ },
45516
+ {
45517
+ key: "paw-print",
45518
+ group: "life",
45519
+ synonyms: [
45520
+ "animale",
45521
+ "zampa",
45522
+ "pet"
45523
+ ]
45524
+ },
45525
+ {
45526
+ key: "baby",
45527
+ group: "life",
45528
+ synonyms: [
45529
+ "neonato",
45530
+ "bimbo",
45531
+ "cameretta",
45532
+ "babymonitor"
45533
+ ]
45534
+ },
45535
+ {
45536
+ key: "user",
45537
+ group: "life",
45538
+ synonyms: ["persona", "utente"]
45539
+ },
45540
+ {
45541
+ key: "users",
45542
+ group: "life",
45543
+ synonyms: [
45544
+ "persone",
45545
+ "gruppo",
45546
+ "famiglia"
45547
+ ]
45548
+ },
45549
+ {
45550
+ key: "person-standing",
45551
+ group: "life",
45552
+ synonyms: [
45553
+ "persona",
45554
+ "piedi",
45555
+ "presenza"
45556
+ ]
45557
+ }
45558
+ ];
45559
+ /** Every key, in vocabulary order — aliases included, because they resolve. */
45560
+ var DISPLAY_ICON_KEYS = DISPLAY_ICON_VOCABULARY.map((e) => e.key);
45561
+ /** The keys a picker OFFERS: everything that is not a deprecated spelling. */
45562
+ var DISPLAY_ICON_OFFERED_KEYS = DISPLAY_ICON_VOCABULARY.filter((e) => e.aliasOf === void 0).map((e) => e.key);
45563
+ var ENTRY_BY_KEY = new Map(DISPLAY_ICON_VOCABULARY.map((e) => [e.key, e]));
45564
+ /** Is this a key of the shared vocabulary? */
45565
+ function isDisplayIconKey(value) {
45566
+ return typeof value === "string" && ENTRY_BY_KEY.has(value);
45567
+ }
45568
+ /** The entry for a key, or `undefined` — never a guessed one. */
45569
+ function displayIconEntry(key) {
45570
+ return ENTRY_BY_KEY.get(key);
45571
+ }
45572
+ /** The entries of one group, in vocabulary order. */
45573
+ function displayIconsInGroup(group) {
45574
+ return DISPLAY_ICON_VOCABULARY.filter((e) => e.group === group);
45575
+ }
45576
+ /**
45577
+ * Lower-case, strip accents, collapse separators.
45578
+ *
45579
+ * The accent strip is not cosmetic: an operator typing "umidità" must reach
45580
+ * `droplets`, whose synonym is spelled without one, and an Italian keyboard
45581
+ * produces the composed form.
45582
+ */
45583
+ function normalise(text) {
45584
+ return text.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase().replace(/[_-]+/g, " ").trim();
45585
+ }
45586
+ /** Does `needle` appear in `haystack` in order, though not adjacently? */
45587
+ function isSubsequence(needle, haystack) {
45588
+ let i = 0;
45589
+ for (const ch of haystack) {
45590
+ if (ch === needle[i]) i += 1;
45591
+ if (i === needle.length) return true;
45592
+ }
45593
+ return needle.length === 0;
45594
+ }
45595
+ /**
45596
+ * How well one word answers the query. 0 = not at all.
45597
+ *
45598
+ * The tiers are ordered by how confident the operator can be that they meant
45599
+ * this: an exact word beats a prefix, a prefix beats a word STARTING inside
45600
+ * the phrase, and a loose subsequence comes last because it is the tier that
45601
+ * matches almost anything ("cr" reaches `circle-parking`).
45602
+ */
45603
+ function scoreWord(query, word) {
45604
+ if (word === query) return 100;
45605
+ if (word.startsWith(query)) return 80;
45606
+ if (word.split(" ").some((w) => w.startsWith(query))) return 60;
45607
+ if (word.includes(query)) return 40;
45608
+ if (isSubsequence(query, word)) return 15;
45609
+ return 0;
45610
+ }
45611
+ /**
45612
+ * Rank the vocabulary against a free-text query.
45613
+ *
45614
+ * An empty query returns the WHOLE vocabulary in its declared order, because
45615
+ * a picker's resting state is the full list, not an empty one.
45616
+ *
45617
+ * `extraWords` lets a caller add the words IT can translate — a localised
45618
+ * device-role label, say — without this module knowing what a locale is.
45619
+ * They score exactly like a synonym.
45620
+ *
45621
+ * Ties keep vocabulary order: a search that reshuffles equally-good results
45622
+ * between two keystrokes makes the list unusable.
45623
+ */
45624
+ function searchDisplayIcons(query, extraWords) {
45625
+ const q = normalise(query);
45626
+ if (q.length === 0) return DISPLAY_ICON_VOCABULARY.filter((e) => e.aliasOf === void 0).map((entry) => ({
45627
+ entry,
45628
+ score: 0
45629
+ }));
45630
+ const hits = [];
45631
+ for (const entry of DISPLAY_ICON_VOCABULARY) {
45632
+ if (entry.aliasOf !== void 0) continue;
45633
+ const words = [
45634
+ normalise(entry.key),
45635
+ ...entry.synonyms.map(normalise),
45636
+ ...(extraWords?.get(entry.key) ?? []).map(normalise)
45637
+ ];
45638
+ let best = 0;
45639
+ for (const [index, word] of words.entries()) {
45640
+ const score = scoreWord(q, word);
45641
+ if (score === 0) continue;
45642
+ const weighted = index === 0 ? score + 1 : score;
45643
+ if (weighted > best) best = weighted;
45644
+ }
45645
+ if (best > 0) hits.push({
45646
+ entry,
45647
+ score: best
45648
+ });
45649
+ }
45650
+ return hits.sort((a, b) => b.score - a.score);
45651
+ }
45652
+ //#endregion
43222
45653
  //#region src/device/path-util.ts
43223
45654
  /** Returns true when `x` is a non-null, non-array plain object. */
43224
45655
  function isRecord(x) {
@@ -44414,6 +46845,7 @@ var CAP_NAMES_WITH_STATUS = [
44414
46845
  "ptz",
44415
46846
  "ptz-autotrack",
44416
46847
  "recording",
46848
+ "recording-onboard",
44417
46849
  "recording-signal",
44418
46850
  "scene-monitor",
44419
46851
  "script-runner",
@@ -44477,6 +46909,7 @@ var CAPABILITY_NAMES = {
44477
46909
  dayNight: "day-night",
44478
46910
  decoder: "decoder",
44479
46911
  detectionPipeline: "detection-pipeline",
46912
+ deviceAdminLink: "device-admin-link",
44480
46913
  deviceAdoption: "device-adoption",
44481
46914
  deviceDiscovery: "device-discovery",
44482
46915
  deviceExport: "device-export",
@@ -44551,6 +46984,7 @@ var CAPABILITY_NAMES = {
44551
46984
  reboot: "reboot",
44552
46985
  recording: "recording",
44553
46986
  recordingExport: "recording-export",
46987
+ recordingOnboard: "recording-onboard",
44554
46988
  recordingSignal: "recording-signal",
44555
46989
  sceneMonitor: "scene-monitor",
44556
46990
  scriptRunner: "script-runner",
@@ -44770,6 +47204,10 @@ var CAPABILITY_ROUTER_KEYS = [
44770
47204
  key: "detectionPipeline",
44771
47205
  name: "detection-pipeline"
44772
47206
  },
47207
+ {
47208
+ key: "deviceAdminLink",
47209
+ name: "device-admin-link"
47210
+ },
44773
47211
  {
44774
47212
  key: "deviceAdoption",
44775
47213
  name: "device-adoption"
@@ -45066,6 +47504,10 @@ var CAPABILITY_ROUTER_KEYS = [
45066
47504
  key: "recordingExport",
45067
47505
  name: "recording-export"
45068
47506
  },
47507
+ {
47508
+ key: "recordingOnboard",
47509
+ name: "recording-onboard"
47510
+ },
45069
47511
  {
45070
47512
  key: "recordingSignal",
45071
47513
  name: "recording-signal"
@@ -45281,6 +47723,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
45281
47723
  dayNightCapability,
45282
47724
  decoderCapability,
45283
47725
  detectionPipelineCapability,
47726
+ deviceAdminLinkCapability,
45284
47727
  deviceAdoptionCapability,
45285
47728
  deviceDiscoveryCapability,
45286
47729
  deviceExportCapability,
@@ -45355,6 +47798,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
45355
47798
  rebootCapability,
45356
47799
  recordingCapability,
45357
47800
  recordingExportCapability,
47801
+ recordingOnboardCapability,
45358
47802
  recordingSignalCapability,
45359
47803
  sceneMonitorCapability,
45360
47804
  scriptRunnerCapability,
@@ -46701,6 +49145,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
46701
49145
  addonId: null,
46702
49146
  access: "view"
46703
49147
  },
49148
+ "deviceAdminLink.getAdminLink": {
49149
+ capName: "device-admin-link",
49150
+ capScope: "device",
49151
+ addonId: null,
49152
+ access: "view"
49153
+ },
46704
49154
  "deviceAdoption.adopt": {
46705
49155
  capName: "device-adoption",
46706
49156
  capScope: "system",
@@ -50739,6 +53189,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
50739
53189
  addonId: null,
50740
53190
  access: "view"
50741
53191
  },
53192
+ "recordingOnboard.getOptions": {
53193
+ capName: "recording-onboard",
53194
+ capScope: "device",
53195
+ addonId: null,
53196
+ access: "view"
53197
+ },
53198
+ "recordingOnboard.getStatus": {
53199
+ capName: "recording-onboard",
53200
+ capScope: "device",
53201
+ addonId: null,
53202
+ access: "view"
53203
+ },
53204
+ "recordingOnboard.setSettings": {
53205
+ capName: "recording-onboard",
53206
+ capScope: "device",
53207
+ addonId: null,
53208
+ access: "create"
53209
+ },
50742
53210
  "recordingSignal.getStatus": {
50743
53211
  capName: "recording-signal",
50744
53212
  capScope: "device",
@@ -52191,6 +54659,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
52191
54659
  addonId: null,
52192
54660
  access: "view"
52193
54661
  },
54662
+ "videoclips.dialClipStream": {
54663
+ capName: "videoclips",
54664
+ capScope: "device",
54665
+ addonId: null,
54666
+ access: "view"
54667
+ },
52194
54668
  "videoclips.getClipPlayback": {
52195
54669
  capName: "videoclips",
52196
54670
  capScope: "device",
@@ -52430,6 +54904,7 @@ var KNOWN_CAP_NAMES = [
52430
54904
  "day-night",
52431
54905
  "decoder",
52432
54906
  "detection-pipeline",
54907
+ "device-admin-link",
52433
54908
  "device-adoption",
52434
54909
  "device-discovery",
52435
54910
  "device-export",
@@ -52504,6 +54979,7 @@ var KNOWN_CAP_NAMES = [
52504
54979
  "reboot",
52505
54980
  "recording",
52506
54981
  "recording-export",
54982
+ "recording-onboard",
52507
54983
  "recording-signal",
52508
54984
  "scene-monitor",
52509
54985
  "script-runner",
@@ -52572,6 +55048,7 @@ var DEVICE_CAP_NAMES = [
52572
55048
  "cover",
52573
55049
  "day-night",
52574
55050
  "detection-pipeline",
55051
+ "device-admin-link",
52575
55052
  "device-discovery",
52576
55053
  "device-ops",
52577
55054
  "device-status",
@@ -52610,6 +55087,7 @@ var DEVICE_CAP_NAMES = [
52610
55087
  "ptz",
52611
55088
  "ptz-autotrack",
52612
55089
  "reboot",
55090
+ "recording-onboard",
52613
55091
  "recording-signal",
52614
55092
  "scene-monitor",
52615
55093
  "script-runner",
@@ -52946,6 +55424,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
52946
55424
  form: "single",
52947
55425
  optional: true
52948
55426
  }],
55427
+ "deviceAdminLink.getAdminLink": [{
55428
+ name: "deviceId",
55429
+ form: "single",
55430
+ optional: false
55431
+ }],
52949
55432
  "deviceAdoption.release": [{
52950
55433
  name: "camDeviceId",
52951
55434
  form: "single",
@@ -54331,6 +56814,16 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
54331
56814
  form: "single",
54332
56815
  optional: true
54333
56816
  }],
56817
+ "recordingOnboard.getOptions": [{
56818
+ name: "deviceId",
56819
+ form: "single",
56820
+ optional: false
56821
+ }],
56822
+ "recordingOnboard.setSettings": [{
56823
+ name: "deviceId",
56824
+ form: "single",
56825
+ optional: false
56826
+ }],
54334
56827
  "recordingSignal.getStatus": [{
54335
56828
  name: "deviceId",
54336
56829
  form: "single",
@@ -54557,6 +57050,11 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
54557
57050
  form: "single",
54558
57051
  optional: false
54559
57052
  }],
57053
+ "videoclips.dialClipStream": [{
57054
+ name: "deviceId",
57055
+ form: "single",
57056
+ optional: false
57057
+ }],
54560
57058
  "videoclips.getClipPlayback": [{
54561
57059
  name: "deviceId",
54562
57060
  form: "single",
@@ -54877,7 +57375,7 @@ function getCapsByProviderKind(kind) {
54877
57375
  //#region src/generated/runtime-state-durability.ts
54878
57376
  /**
54879
57377
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
54880
- * `runtimeState`. 68 caps: 35 `restored`, 33 `session`.
57378
+ * `runtimeState`. 69 caps: 36 `restored`, 33 `session`.
54881
57379
  *
54882
57380
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
54883
57381
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -55079,6 +57577,10 @@ var RUNTIME_STATE_POLICY = {
55079
57577
  durability: "session",
55080
57578
  volatileFields: []
55081
57579
  },
57580
+ "recording-onboard": {
57581
+ durability: "restored",
57582
+ volatileFields: ["lastFetchedAt"]
57583
+ },
55082
57584
  "recording-signal": {
55083
57585
  durability: "session",
55084
57586
  volatileFields: []
@@ -55203,6 +57705,7 @@ var RESTORED_CAP_NAMES = [
55203
57705
  "presence",
55204
57706
  "pressure-sensor",
55205
57707
  "privacy-mask",
57708
+ "recording-onboard",
55206
57709
  "smoke",
55207
57710
  "stream-catalog",
55208
57711
  "stream-params",
@@ -60072,6 +62575,7 @@ exports.AddonAutoUpdateSchema = AddonAutoUpdateSchema;
60072
62575
  exports.AddonListItemSchema = AddonListItemSchema;
60073
62576
  exports.AddonPageDeclarationSchema = AddonPageDeclarationSchema;
60074
62577
  exports.AddonPageInfoSchema = AddonPageInfoSchema;
62578
+ exports.AdminLinkTargetEnum = AdminLinkTargetEnum;
60075
62579
  exports.AdoptionAdoptInputSchema = AdoptInputSchema;
60076
62580
  exports.AdoptionAdoptResultSchema = AdoptResultSchema;
60077
62581
  exports.AdoptionCandidateResultSchema = AdoptionCandidateResultSchema;
@@ -60191,6 +62695,7 @@ exports.CLASS_MAP_MACRO_TARGETS = CLASS_MAP_MACRO_TARGETS;
60191
62695
  exports.CLIP_STILL_DISPOSITION_HEADER = CLIP_STILL_DISPOSITION_HEADER;
60192
62696
  exports.CLIP_STILL_REASON_CODE_HEADER = CLIP_STILL_REASON_CODE_HEADER;
60193
62697
  exports.CLIP_STILL_REASON_HEADER = CLIP_STILL_REASON_HEADER;
62698
+ exports.CLIP_STREAM_TRANSPORT_HEADER = CLIP_STREAM_TRANSPORT_HEADER;
60194
62699
  exports.CLUSTER_MODEL_SCOPED_STEPS = CLUSTER_MODEL_SCOPED_STEPS;
60195
62700
  exports.CLUSTER_MODEL_SECTION_ID = CLUSTER_MODEL_SECTION_ID;
60196
62701
  exports.CLUSTER_STEP_SETTING_FIELDS = CLUSTER_STEP_SETTING_FIELDS;
@@ -60234,6 +62739,7 @@ exports.CameraSwitchGroupSchema = CameraSwitchGroupSchema;
60234
62739
  exports.CameraSwitchIdSchema = CameraSwitchIdSchema;
60235
62740
  exports.CameraSwitchSchema = CameraSwitchSchema;
60236
62741
  exports.CameraSwitchUnavailableReasonSchema = CameraSwitchUnavailableReasonSchema;
62742
+ exports.CameraSwitchWarningSchema = CameraSwitchWarningSchema;
60237
62743
  exports.CandidateQueryFilterSchema = CandidateQueryFilterSchema;
60238
62744
  exports.CapScopeSchema = CapScopeSchema;
60239
62745
  exports.CapabilityBindingsSchema = CapabilityBindingsSchema;
@@ -60249,6 +62755,9 @@ exports.ClipSourceAvailabilitySchema = ClipSourceAvailabilitySchema;
60249
62755
  exports.ClipSourceSchema = ClipSourceSchema;
60250
62756
  exports.ClipStillDispositionSchema = ClipStillDispositionSchema;
60251
62757
  exports.ClipStillRefusalCodeSchema = ClipStillRefusalCodeSchema;
62758
+ exports.ClipStreamAudioReasonSchema = ClipStreamAudioReasonSchema;
62759
+ exports.ClipStreamAudioSchema = ClipStreamAudioSchema;
62760
+ exports.ClipStreamDialSchema = ClipStreamDialSchema;
60252
62761
  exports.ClipWakeSchema = ClipWakeSchema;
60253
62762
  exports.ClusterAddonNodeDeploymentSchema = ClusterAddonNodeDeploymentSchema;
60254
62763
  exports.ClusterAddonStatusEntrySchema = ClusterAddonStatusEntrySchema;
@@ -60286,6 +62795,8 @@ exports.CreateUserInputSchema = CreateUserInputSchema;
60286
62795
  exports.CustomActionInputSchema = CustomActionInputSchema;
60287
62796
  exports.CustomModelDescriptorSchema = CustomModelDescriptorSchema;
60288
62797
  exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
62798
+ exports.DAYS_PER_WEEK = DAYS_PER_WEEK;
62799
+ exports.DAY_NAMES = DAY_NAMES;
60289
62800
  exports.DECLARED_DEVICE_SWEEP_LIMIT = DECLARED_DEVICE_SWEEP_LIMIT;
60290
62801
  exports.DECLARED_INTEGRATION_FIXED_KEY = DECLARED_INTEGRATION_FIXED_KEY;
60291
62802
  exports.DEFAULT_ADDON_PLACEMENT = DEFAULT_ADDON_PLACEMENT;
@@ -60326,6 +62837,10 @@ exports.DEVICE_STATE_READERS = DEVICE_STATE_READERS;
60326
62837
  exports.DEVICE_STATUS_METHOD = require_sleep.DEVICE_STATUS_METHOD;
60327
62838
  exports.DEVICE_TYPE_CONTROL_KIND = DEVICE_TYPE_CONTROL_KIND;
60328
62839
  exports.DEVICE_TYPE_INFO = DEVICE_TYPE_INFO;
62840
+ exports.DISPLAY_ICON_GROUPS = DISPLAY_ICON_GROUPS;
62841
+ exports.DISPLAY_ICON_KEYS = DISPLAY_ICON_KEYS;
62842
+ exports.DISPLAY_ICON_OFFERED_KEYS = DISPLAY_ICON_OFFERED_KEYS;
62843
+ exports.DISPLAY_ICON_VOCABULARY = DISPLAY_ICON_VOCABULARY;
60329
62844
  exports.DataStoreEngineInfoSchema = EngineInfoSchema;
60330
62845
  exports.DayNightModeSchema = DayNightModeSchema;
60331
62846
  exports.DayNightOptionsSchema = DayNightOptionsSchema;
@@ -60341,6 +62856,7 @@ exports.DetailCropConventionSchema = DetailCropConventionSchema;
60341
62856
  exports.DetectionCatalogClassMapSchema = DetectionCatalogClassMapSchema;
60342
62857
  exports.DetectionSourceSchema = DetectionSourceSchema;
60343
62858
  exports.DetectionSourcesSchema = DetectionSourcesSchema;
62859
+ exports.DeviceAdminLinkSchema = DeviceAdminLinkSchema;
60344
62860
  exports.DeviceCodeSeveritySchema = DeviceCodeSeveritySchema;
60345
62861
  exports.DeviceConfig = DeviceConfig;
60346
62862
  exports.DeviceDiscoveryStatusSchema = DeviceDiscoveryStatusSchema;
@@ -60460,6 +62976,7 @@ exports.HAP_AUDIO_VBV_KBITS = HAP_AUDIO_VBV_KBITS;
60460
62976
  exports.HAP_KEYFRAME_INTERVAL_SEC = HAP_KEYFRAME_INTERVAL_SEC;
60461
62977
  exports.HF_BASE_URL = HF_BASE_URL;
60462
62978
  exports.HF_REPO = HF_REPO;
62979
+ exports.HOURS_PER_DAY = HOURS_PER_DAY;
60463
62980
  exports.HWACCEL_OPTIONS = HWACCEL_OPTIONS;
60464
62981
  exports.HealthStatusSchema = HealthStatusSchema;
60465
62982
  exports.HfModelResolutionSchema = HfModelResolutionSchema;
@@ -60579,6 +63096,7 @@ exports.MEDIA_OWNER_TYPES = MEDIA_OWNER_TYPES;
60579
63096
  exports.MEDIA_PRESENCE_OWNER_KINDS = MEDIA_PRESENCE_OWNER_KINDS;
60580
63097
  exports.METHOD_ACCESS_MAP = METHOD_ACCESS_MAP;
60581
63098
  exports.METHOD_DEVICE_SELECTORS = METHOD_DEVICE_SELECTORS;
63099
+ exports.MINUTES_PER_DAY = MINUTES_PER_DAY;
60582
63100
  exports.MODEL_FORMATS = MODEL_FORMATS;
60583
63101
  exports.MODEL_PROVIDER_IDS = MODEL_PROVIDER_IDS;
60584
63102
  exports.MOTION_CLOSE_AFTER_MS = MOTION_CLOSE_AFTER_MS;
@@ -60781,6 +63299,11 @@ exports.OVERLAY_LAYERS = OVERLAY_LAYERS;
60781
63299
  exports.OauthIntegrationDescriptorSchema = OauthIntegrationDescriptorSchema;
60782
63300
  exports.ObjectEventSchema = ObjectEventSchema;
60783
63301
  exports.OccupancyBurstRefusalSchema = OccupancyBurstRefusalSchema;
63302
+ exports.OnboardFieldSupportSchema = OnboardFieldSupportSchema;
63303
+ exports.OnboardRecordTrackSchema = OnboardRecordTrackSchema;
63304
+ exports.OnboardScheduleSupportSchema = OnboardScheduleSupportSchema;
63305
+ exports.OnboardStorageSchema = OnboardStorageSchema;
63306
+ exports.OnboardStorageVolumeSchema = OnboardStorageVolumeSchema;
60784
63307
  exports.OpsLogDomainSchema = OpsLogDomainSchema;
60785
63308
  exports.OpsLogEntrySchema = OpsLogEntrySchema;
60786
63309
  exports.OpsLogOpSchema = OpsLogOpSchema;
@@ -60882,6 +63405,8 @@ exports.ReadinessRegistry = require_sleep.ReadinessRegistry;
60882
63405
  exports.ReadinessTimeoutError = require_sleep.ReadinessTimeoutError;
60883
63406
  exports.RecentTracksPageSchema = RecentTracksPageSchema;
60884
63407
  exports.RecentTracksQueryInput = RecentTracksQueryInput;
63408
+ exports.RecordTriggerSchema = RecordTriggerSchema;
63409
+ exports.RecordWindowSchema = RecordWindowSchema;
60885
63410
  exports.RecordingAvailabilityForDeviceSchema = RecordingAvailabilityForDeviceSchema;
60886
63411
  exports.RecordingAvailabilitySchema = RecordingAvailabilitySchema;
60887
63412
  exports.RecordingBandAudioSchema = RecordingBandAudioSchema;
@@ -60895,6 +63420,9 @@ exports.RecordingDeviceUsageSchema = RecordingDeviceUsageSchema;
60895
63420
  exports.RecordingLocationUsageSchema = RecordingLocationUsageSchema;
60896
63421
  exports.RecordingManifestSchema = RecordingManifestSchema;
60897
63422
  exports.RecordingObjectTriggerClassSchema = RecordingObjectTriggerClassSchema;
63423
+ exports.RecordingOnboardOptionsSchema = RecordingOnboardOptionsSchema;
63424
+ exports.RecordingOnboardPatchSchema = RecordingOnboardPatchSchema;
63425
+ exports.RecordingOnboardStatusSchema = RecordingOnboardStatusSchema;
60898
63426
  exports.RecordingRangeSchema = RecordingRangeSchema;
60899
63427
  exports.RecordingRebalanceInputSchema = RecordingRebalanceInputSchema;
60900
63428
  exports.RecordingRebalanceMoveSchema = RecordingRebalanceMoveSchema;
@@ -61174,6 +63702,7 @@ exports.VectorUpsertResultSchema = VectorUpsertResultSchema;
61174
63702
  exports.VibrationStatusSchema = VibrationStatusSchema;
61175
63703
  exports.VideoEncodeSchema = VideoEncodeSchema;
61176
63704
  exports.WEBRTC_EGRESS_PROFILE = WEBRTC_EGRESS_PROFILE;
63705
+ exports.WEEKLY_MASK_LENGTH = WEEKLY_MASK_LENGTH;
61177
63706
  exports.WELL_KNOWN_TABS = require_sleep.WELL_KNOWN_TABS;
61178
63707
  exports.WELL_KNOWN_TAB_MAP = require_sleep.WELL_KNOWN_TAB_MAP;
61179
63708
  exports.WaterHeaterStatusSchema = WaterHeaterStatusSchema;
@@ -61248,6 +63777,7 @@ exports.brightnessCapability = brightnessCapability;
61248
63777
  exports.brokerCapability = brokerCapability;
61249
63778
  exports.buildAddonRouteProvider = buildAddonRouteProvider;
61250
63779
  exports.buildAudioArgs = require_canonical_hash.buildAudioArgs;
63780
+ exports.buildDeviceAdminUrl = buildDeviceAdminUrl;
61251
63781
  exports.buildEventKindDescriptor = buildEventKindDescriptor;
61252
63782
  exports.buildFfmpegArgs = require_canonical_hash.buildFfmpegArgs;
61253
63783
  exports.buildInputArgs = require_canonical_hash.buildInputArgs;
@@ -61316,6 +63846,7 @@ exports.customAction = require_sleep.customAction;
61316
63846
  exports.customModelRegistryCapability = customModelRegistryCapability;
61317
63847
  exports.dataStoreProviderCapability = dataStoreProviderCapability;
61318
63848
  exports.dayNightCapability = dayNightCapability;
63849
+ exports.dayOfWeekToIndex = dayOfWeekToIndex;
61319
63850
  exports.declarationOwnerNodeId = declarationOwnerNodeId;
61320
63851
  exports.declareLogChannel = declareLogChannel;
61321
63852
  exports.decodeVectorBase64 = decodeVectorBase64;
@@ -61329,8 +63860,11 @@ exports.deriveDetailCropRect = deriveDetailCropRect;
61329
63860
  exports.deriveRecordingMode = deriveRecordingMode;
61330
63861
  exports.describeCustomActions = require_sleep.describeCustomActions;
61331
63862
  exports.describeModelVariant = describeModelVariant;
63863
+ exports.describeOnboardClamp = describeOnboardClamp;
63864
+ exports.describeOnboardRefusal = describeOnboardRefusal;
61332
63865
  exports.detectAccessRole = detectAccessRole;
61333
63866
  exports.detectionPipelineCapability = detectionPipelineCapability;
63867
+ exports.deviceAdminLinkCapability = deviceAdminLinkCapability;
61334
63868
  exports.deviceAdoptionCapability = deviceAdoptionCapability;
61335
63869
  exports.deviceBackendToFormat = deviceBackendToFormat;
61336
63870
  exports.deviceCustomAction = require_sleep.deviceCustomAction;
@@ -61343,6 +63877,8 @@ exports.deviceProviderCapability = deviceProviderCapability;
61343
63877
  exports.deviceSelectorMatches = deviceSelectorMatches;
61344
63878
  exports.deviceStateCapability = deviceStateCapability;
61345
63879
  exports.deviceStatusCapability = deviceStatusCapability;
63880
+ exports.displayIconEntry = displayIconEntry;
63881
+ exports.displayIconsInGroup = displayIconsInGroup;
61346
63882
  exports.doorbellCapability = doorbellCapability;
61347
63883
  exports.droppedConditionsForKind = droppedConditionsForKind;
61348
63884
  exports.egressTranscodeSharingKey = egressTranscodeSharingKey;
@@ -61385,6 +63921,7 @@ exports.foldSnapshotByFunction = foldSnapshotByFunction;
61385
63921
  exports.formatForBackend = formatForBackend;
61386
63922
  exports.formatForRuntime = formatForRuntime;
61387
63923
  exports.formatMediaOwnerKey = formatMediaOwnerKey;
63924
+ exports.formatMinutes = formatMinutes;
61388
63925
  exports.formatParkedFor = formatParkedFor;
61389
63926
  exports.gasCapability = gasCapability;
61390
63927
  exports.gbToBytes = gbToBytes;
@@ -61420,6 +63957,7 @@ exports.isDeployableToAgent = isDeployableToAgent;
61420
63957
  exports.isDetectionMacroClass = isDetectionMacroClass;
61421
63958
  exports.isDeviceConfigCap = require_sleep.isDeviceConfigCap;
61422
63959
  exports.isDeviceScopedCap = require_sleep.isDeviceScopedCap;
63960
+ exports.isDisplayIconKey = isDisplayIconKey;
61423
63961
  exports.isEvent = require_sleep.isEvent;
61424
63962
  exports.isEventOwnerType = isEventOwnerType;
61425
63963
  exports.isFirstLevelMacroClass = isFirstLevelMacroClass;
@@ -61476,6 +64014,7 @@ exports.method = require_sleep.method;
61476
64014
  exports.methodAccessForHttpMethod = methodAccessForHttpMethod;
61477
64015
  exports.metricsProviderCapability = metricsProviderCapability;
61478
64016
  exports.migrateLegacyDeviceSignalConfig = migrateLegacyDeviceSignalConfig;
64017
+ exports.minutesToTimeOfDay = minutesToTimeOfDay;
61479
64018
  exports.modeMayRead = modeMayRead;
61480
64019
  exports.modeMayWrite = modeMayWrite;
61481
64020
  exports.modelConvertCapability = modelConvertCapability;
@@ -61509,6 +64048,7 @@ exports.optionalMethod = require_sleep.optionalMethod;
61509
64048
  exports.osdCapability = osdCapability;
61510
64049
  exports.osdManagerCapability = osdManagerCapability;
61511
64050
  exports.overlayClusterStepSettings = overlayClusterStepSettings;
64051
+ exports.parseAdminBase = parseAdminBase;
61512
64052
  exports.parseCameraStreamConfig = parseCameraStreamConfig;
61513
64053
  exports.parseExpression = parseExpression;
61514
64054
  exports.parseJsonArray = require_sleep.parseJsonArray;
@@ -61560,6 +64100,7 @@ exports.readinessKey = require_sleep.readinessKey;
61560
64100
  exports.rebootCapability = rebootCapability;
61561
64101
  exports.recordingCapability = recordingCapability;
61562
64102
  exports.recordingExportCapability = recordingExportCapability;
64103
+ exports.recordingOnboardCapability = recordingOnboardCapability;
61563
64104
  exports.recordingSignalCapability = recordingSignalCapability;
61564
64105
  exports.rectsToCells = rectsToCells;
61565
64106
  exports.reducePoints = reducePoints;
@@ -61611,6 +64152,7 @@ exports.scopesAllowAddon = scopesAllowAddon;
61611
64152
  exports.scopesAllowDeviceCap = scopesAllowDeviceCap;
61612
64153
  exports.scoreRuntimes = scoreRuntimes;
61613
64154
  exports.scriptRunnerCapability = scriptRunnerCapability;
64155
+ exports.searchDisplayIcons = searchDisplayIcons;
61614
64156
  exports.selectAssignedProfileSlots = require_sleep.selectAssignedProfileSlots;
61615
64157
  exports.serverManagementCapability = serverManagementCapability;
61616
64158
  exports.setByPath = setByPath;
@@ -61658,6 +64200,7 @@ exports.taskTargetSchema = taskTargetSchema;
61658
64200
  exports.temperatureSensorCapability = temperatureSensorCapability;
61659
64201
  exports.terminalSessionCapability = terminalSessionCapability;
61660
64202
  exports.textToHtml = textToHtml;
64203
+ exports.timeOfDayToMinutes = timeOfDayToMinutes;
61661
64204
  exports.toDeviceSummary = toDeviceSummary;
61662
64205
  exports.toExpressionValue = toExpressionValue;
61663
64206
  exports.toNodeId = require_sleep.toNodeId;
@@ -61686,6 +64229,10 @@ exports.waterHeaterCapability = waterHeaterCapability;
61686
64229
  exports.weatherCapability = weatherCapability;
61687
64230
  exports.webrtcClientHintsSchema = webrtcClientHintsSchema;
61688
64231
  exports.webrtcSessionCapability = webrtcSessionCapability;
64232
+ exports.weeklyMaskIndex = weeklyMaskIndex;
64233
+ exports.weeklyMaskIsUniform = weeklyMaskIsUniform;
64234
+ exports.weeklyMaskToWindows = weeklyMaskToWindows;
64235
+ exports.windowsToWeeklyMask = windowsToWeeklyMask;
61689
64236
  exports.wiringAddonHealthSchema = wiringAddonHealthSchema;
61690
64237
  exports.wiringHealthSnapshotSchema = wiringHealthSnapshotSchema;
61691
64238
  exports.wiringNodeHealthSchema = wiringNodeHealthSchema;