@camstack/addon-osd-manager 0.1.130 → 0.1.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/dist/{MotionZonesSettings-BdgknhPk.mjs → MotionZonesSettings-BEiIAXxX.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-Daia4FHS.mjs → PrivacyMaskSettings-CvIg_072.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-CmH-9VEG.mjs → SceneMonitorEditor-JZwBd1Jv.mjs} +3 -3
  4. package/dist/_stub.js +12 -12
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CT5rLNrc.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-NFf3Y4nO.mjs} +3 -3
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D23J0_pM.mjs +26 -0
  7. package/dist/{hostInit-CGDQxGQr.mjs → hostInit-CwDM2suA.mjs} +2 -2
  8. package/dist/index.js +494 -1
  9. package/dist/index.mjs +494 -1
  10. package/dist/{player-overlays-SETUglb5.mjs → player-overlays-9RdwSS8n.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-dnBm2QK5.mjs → responsive-DOUWrPJ-.mjs} +1 -1
  13. package/dist/{scene-monitor-copy--fsvQxHQ.mjs → scene-monitor-copy-Cr8ZNK1p.mjs} +1 -1
  14. package/dist/{square-DPw7AhAw.mjs → square-DLZPuHya.mjs} +1 -1
  15. package/dist/{trash-2-DNiVd6l-.mjs → trash-2-DE6KKFYA.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DLJN80iK.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-8Z1DwgHL.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DY9EOcFz.mjs +0 -26
package/dist/index.js CHANGED
@@ -5363,7 +5363,7 @@ var ZodIssueCode = {
5363
5363
  var ZodFirstPartyTypeKind;
5364
5364
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5365
5365
  //#endregion
5366
- //#region ../types/dist/sleep-De1BvmWo.mjs
5366
+ //#region ../types/dist/sleep-i3eUVc-d.mjs
5367
5367
  /**
5368
5368
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5369
5369
  * window to float samples (D455).
@@ -14682,6 +14682,118 @@ var deviceAdoptionCapability = {
14682
14682
  }
14683
14683
  };
14684
14684
  /**
14685
+ * device-admin-link — "this device has a management page of its own, and here
14686
+ * is its address".
14687
+ *
14688
+ * ## Why this is not a `deviceConfig` cap
14689
+ *
14690
+ * There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
14691
+ * can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
14692
+ * patch back through a setter; it costs a `builderId` reducer in
14693
+ * `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
14694
+ * renders a form section. This cap answers ONE question with ONE read and
14695
+ * renders a button. Nothing about it is a form, so it carries no `deviceConfig`
14696
+ * block, no `settings`, no `runtimeState` and no reducer — exactly like
14697
+ * `reboot`, the other pure-RPC device-native cap.
14698
+ *
14699
+ * ## Absent, and the difference between "no page" and "we cannot say"
14700
+ *
14701
+ * The two are answered at DIFFERENT layers, on purpose:
14702
+ *
14703
+ * - **"We cannot say"** → the provider never registers the cap for that
14704
+ * device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
14705
+ * fan are reached only through a vendor cloud; there is no address to hand
14706
+ * out and no page to open. A Tuya plug, a Wyze camera and a Gree air
14707
+ * conditioner DO have a LAN IP, and still have no HTTP management page
14708
+ * behind it. None of them register, so `deviceManager.getBindings` never
14709
+ * lists the cap and no surface asks.
14710
+ * - **"This device has no page, and I know that"** → the provider registers
14711
+ * and `getAdminLink` returns `null`. This is the answer for a device whose
14712
+ * sibling DOES have a page: a Reolink battery camera reached over UDP by
14713
+ * `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
14714
+ * transport, a Home Assistant broker authenticated by supervisor token
14715
+ * (which carries no `baseUrl` at all).
14716
+ *
14717
+ * Both draw NOTHING. A button that opens a browser error is worse than no
14718
+ * button, and D62 is the same rule from the other side: an off switch is
14719
+ * reported off, never made to look broken. There is no third state where the
14720
+ * UI renders a disabled button "because the device might have a page".
14721
+ *
14722
+ * ## The URL never carries credentials
14723
+ *
14724
+ * Not in userinfo, not in a query string. Every provider builds through
14725
+ * `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
14726
+ * scheme and path as separate arguments — there is no parameter a secret could
14727
+ * arrive in — and re-checks its own output for the `scheme://user:pass@` shape
14728
+ * that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
14729
+ * output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
14730
+ * keeps providers from hand-rolling one anyway.
14731
+ *
14732
+ * This matters here more than anywhere else in the repo, because every provider
14733
+ * that knows a device's host knows its PASSWORD too: `{ host, port, username,
14734
+ * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
14735
+ * and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
14736
+ * camera's own page will ask for its own login. That is correct, and pre-
14737
+ * filling it is the operator's business, not ours.
14738
+ *
14739
+ * ## It is a LAN fact
14740
+ *
14741
+ * The URL addresses the device where the NODE can see it. It is not proxied,
14742
+ * not made reachable from outside, and not sent anywhere. A surface renders it
14743
+ * as a link the operator's own browser follows, on the operator's own network,
14744
+ * or renders nothing.
14745
+ */
14746
+ /**
14747
+ * Whose page is it. The distinction is for the OPERATOR, who needs to know
14748
+ * before clicking whether he is about to land on a camera's own web server or
14749
+ * inside Home Assistant.
14750
+ */
14751
+ var AdminLinkTargetEnum = _enum(["device", "integration"]);
14752
+ var DeviceAdminLinkSchema = object({
14753
+ /**
14754
+ * Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
14755
+ * free of userinfo and of any credential-shaped query key.
14756
+ */
14757
+ url: string(),
14758
+ /**
14759
+ * What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
14760
+ * The PROVIDER names it, because only the provider knows what the page is;
14761
+ * a UI that invented the label from the addon id would call the Home
14762
+ * Assistant device page "Provider Homeassistant".
14763
+ */
14764
+ label: string(),
14765
+ target: AdminLinkTargetEnum,
14766
+ /**
14767
+ * Host the URL points at, without scheme, port or path — for the tooltip, so
14768
+ * an operator can see WHERE the button goes before he follows it. Redundant
14769
+ * with `url` by construction; carried separately so no surface has to parse
14770
+ * a URL to show it.
14771
+ */
14772
+ host: string()
14773
+ });
14774
+ var deviceAdminLinkCapability = {
14775
+ name: "device-admin-link",
14776
+ scope: "device",
14777
+ deviceNative: true,
14778
+ mode: "singleton",
14779
+ methods: {
14780
+ /**
14781
+ * The device's management page, or `null` when this device has none.
14782
+ *
14783
+ * `auth: 'admin'` deliberately. This is administration, not actuation —
14784
+ * the same bucket as `reboot` and `camera-credentials`, and explicitly NOT
14785
+ * the actuation set `scripts/check-actuation-not-admin.ts` protects (D403).
14786
+ * The URL is also a statement about the LAN, which a household member with
14787
+ * a `view` grant on a light has no reason to be handed.
14788
+ *
14789
+ * The surfaces gate on the QUERY, never on a role they guessed: a caller
14790
+ * without the right loses the query and draws nothing, which is the same
14791
+ * thing a device with no page draws. There is no path on which a button
14792
+ * appears and then fails — the D403 failure mode, from the other end.
14793
+ */
14794
+ getAdminLink: method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" }) }
14795
+ };
14796
+ /**
14685
14797
  * `device-export` — collection cap for addons that export camstack
14686
14798
  * devices to external ecosystems (HomeAssistant via MQTT discovery,
14687
14799
  * HomeKit/HAP, Alexa Smart Home, …).
@@ -32207,6 +32319,346 @@ var dayNightCapability = {
32207
32319
  volatileStateFields: ["lastFetchedAt"]
32208
32320
  };
32209
32321
  /**
32322
+ * Vendor-neutral **onboard** recording + storage cap — what the CAMERA
32323
+ * writes to the CAMERA's own card, on the camera's own schedule.
32324
+ *
32325
+ * This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
32326
+ * footage ledger, our storage locations, our retention. This one has a
32327
+ * different authority — the camera's firmware — and per D62 it stores
32328
+ * nothing of its own. Every value here is read from the camera and every
32329
+ * write goes back to the camera; there is no CamStack-side mirror that
32330
+ * could disagree with the device.
32331
+ *
32332
+ * ## One shape, two firmwares
32333
+ *
32334
+ * Measured 2026-09-22 against the live fleet:
32335
+ *
32336
+ * | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
32337
+ * | --- | --- | --- |
32338
+ * | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
32339
+ * | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
32340
+ * | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
32341
+ * | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
32342
+ * | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
32343
+ * | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
32344
+ * | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
32345
+ * | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
32346
+ *
32347
+ * The two schedule models look different and are the same thing in
32348
+ * different coordinates: both answer "for this trigger, during which
32349
+ * weekly windows does the camera record". {@link RecordWindow} is that
32350
+ * question in one shape — Hikvision's ranges map straight onto it,
32351
+ * Reolink's mask expands into hour-aligned windows.
32352
+ *
32353
+ * ## Union, not intersection
32354
+ *
32355
+ * **The same fields exist on every camera.** What differs per device is
32356
+ * which VALUES that device accepts, and that is what {@link
32357
+ * RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
32358
+ * per field plus the schedule's own limits. A control a camera cannot
32359
+ * honour is rendered DISABLED WITH ITS REASON, never missing and never
32360
+ * dead: disabled must not look like broken.
32361
+ *
32362
+ * ## Refusal by name
32363
+ *
32364
+ * A write a camera cannot honour is refused with a sentence the operator
32365
+ * can read — never accepted and dropped. Both providers refuse through
32366
+ * {@link describeOnboardRefusal}, so the vocabulary is one function and
32367
+ * one test, not two hand-written vendor opinions.
32368
+ *
32369
+ * Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
32370
+ * `getOptions` advertises per-camera availability, `getStatus` (auto-
32371
+ * injected from `status`) reports the live values, and a single
32372
+ * `setSettings` mutation applies a partial change. No hand-written
32373
+ * settings-contribution methods.
32374
+ */
32375
+ /**
32376
+ * What makes the camera start recording during a window.
32377
+ *
32378
+ * The union of both vendors' vocabularies. `continuous` is Hikvision's
32379
+ * `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
32380
+ * object-class triggers are Reolink-only today and the smart-event ones
32381
+ * (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
32382
+ * firmwares measured — a camera that cannot record on a trigger simply
32383
+ * does not list it in `options.schedule.triggers`, and a window naming
32384
+ * it is REFUSED, not dropped.
32385
+ */
32386
+ var RecordTriggerSchema = _enum([
32387
+ "continuous",
32388
+ "motion",
32389
+ "person",
32390
+ "vehicle",
32391
+ "animal",
32392
+ "lineCrossing",
32393
+ "intrusion",
32394
+ "loitering",
32395
+ "alarmInput"
32396
+ ]);
32397
+ /**
32398
+ * One weekly recording window: "on `day`, from `startMinute` to
32399
+ * `endMinute`, record on `trigger`".
32400
+ *
32401
+ * `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
32402
+ * both firmwares enumerate). Minutes are local camera time since
32403
+ * midnight; `endMinute` may be 1440, meaning end of day — that is
32404
+ * Hikvision's literal `24:00` and Reolink's 24th mask slot, and
32405
+ * collapsing it to 0 would turn a whole-day window into an empty one.
32406
+ */
32407
+ var RecordWindowSchema = object({
32408
+ trigger: RecordTriggerSchema,
32409
+ day: number().int().min(0).max(6),
32410
+ startMinute: number().int().min(0).max(1439),
32411
+ endMinute: number().int().min(1).max(1440)
32412
+ });
32413
+ /** Status of one physical volume, as the camera itself describes it. */
32414
+ var OnboardStorageVolumeSchema = object({
32415
+ /** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
32416
+ id: string(),
32417
+ /** The camera's own name for it, when it gives one (`hddName`). */
32418
+ label: string().optional(),
32419
+ status: _enum([
32420
+ "ok",
32421
+ "unformatted",
32422
+ "error",
32423
+ "offline",
32424
+ "unknown"
32425
+ ]),
32426
+ /**
32427
+ * Total size in MB, or **null when the camera did not say**.
32428
+ *
32429
+ * Never 0 for an unreadable value: a measurement that failed is not a
32430
+ * measurement (D393), and a card whose size is unknown must not be
32431
+ * rendered as a card of size zero.
32432
+ */
32433
+ capacityMb: number().nullable(),
32434
+ /**
32435
+ * Free space in MB, or null when unknown.
32436
+ *
32437
+ * **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
32438
+ * 1439 both report exactly 11776 MB free — the fixed reserve a looping
32439
+ * card converges on once it has wrapped. At loop steady state the
32440
+ * number is identical whether the camera recorded yesterday or stopped
32441
+ * a month ago.
32442
+ */
32443
+ freeMb: number().nullable(),
32444
+ /** True when the camera reports the volume writable (`property` RW). */
32445
+ writable: boolean().optional()
32446
+ });
32447
+ /**
32448
+ * What the camera is doing with its own storage, right now.
32449
+ *
32450
+ * Every scalar is nullable and **null means the camera did not answer**,
32451
+ * never a default. A form that seeds `0` from an unanswered read invites
32452
+ * the operator to save that 0 back onto the camera.
32453
+ */
32454
+ var RecordingOnboardStatusSchema = object({
32455
+ storage: discriminatedUnion("kind", [
32456
+ object({
32457
+ kind: literal("present"),
32458
+ volumes: array(OnboardStorageVolumeSchema)
32459
+ }),
32460
+ object({
32461
+ kind: literal("absent"),
32462
+ reason: string()
32463
+ }),
32464
+ object({
32465
+ kind: literal("unknown"),
32466
+ reason: string()
32467
+ })
32468
+ ]),
32469
+ tracks: array(object({
32470
+ id: string(),
32471
+ enabled: boolean(),
32472
+ isVideo: boolean(),
32473
+ /** From the camera's own track description. Null when it does not say. */
32474
+ codec: string().nullable(),
32475
+ resolution: string().nullable(),
32476
+ /** Per-track overwrite flag, where the firmware keeps it per track. */
32477
+ overwriteWhenFull: boolean().nullable()
32478
+ })),
32479
+ /**
32480
+ * The track the write path targets — the enabled VIDEO one. Null when
32481
+ * no track could be identified, which is itself a refusal reason.
32482
+ */
32483
+ primaryTrackId: string().nullable(),
32484
+ /** Master "record to the card at all" switch. */
32485
+ enabled: boolean().nullable(),
32486
+ overwriteWhenFull: boolean().nullable(),
32487
+ preRecordSec: number().nullable(),
32488
+ postRecordSec: number().nullable(),
32489
+ /** Length of one recorded file, in minutes. */
32490
+ segmentMinutes: number().nullable(),
32491
+ /** The primary track's weekly windows, flattened. */
32492
+ windows: array(RecordWindowSchema),
32493
+ /**
32494
+ * How many windows the camera described that CamStack could NOT read —
32495
+ * an unrecognised trigger, an unparseable clock, a weekday it does not
32496
+ * name.
32497
+ *
32498
+ * A dropped window is work the reader threw away, and a schedule that
32499
+ * silently shows fewer rows than the camera holds is how an operator
32500
+ * saves back a schedule shorter than the one they were looking at
32501
+ * (D391). Non-zero means the window list is INCOMPLETE and a write
32502
+ * that replaces it would delete what was not shown — which is why a
32503
+ * provider reporting a non-zero count also reports the schedule as not
32504
+ * writable.
32505
+ */
32506
+ unreadableWindows: number(),
32507
+ /**
32508
+ * The camera is scheduled to record and has NO usable storage.
32509
+ *
32510
+ * A first-class fact because it is the fleet's most common silent
32511
+ * defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
32512
+ * to a card that is not there. Neither the schedule nor the storage
32513
+ * read says anything wrong on its own; only the pair does.
32514
+ */
32515
+ recordingToNowhere: boolean(),
32516
+ lastFetchedAt: number()
32517
+ });
32518
+ /** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
32519
+ var RangeSchema = object({
32520
+ min: number(),
32521
+ max: number(),
32522
+ step: number()
32523
+ });
32524
+ /**
32525
+ * The values a camera actually takes for a numeric field, when they are a SET
32526
+ * rather than a range.
32527
+ *
32528
+ * `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
32529
+ * (I91DN) on 2026-09-22 by writing each value and reading it back:
32530
+ *
32531
+ * - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
32532
+ * camera's "no limit" — `-1` and `4294967295` both land on it);
32533
+ * - post-record: `5, 10, 30, 60, 120, 300, 600`.
32534
+ *
32535
+ * Neither is expressible as a step: the first has a sentinel two billion away
32536
+ * from its neighbours, the second doubles and then jumps. A range that tried
32537
+ * would forbid values the camera takes AND permit values it silently replaces
32538
+ * with 5 — wrong in both directions at once.
32539
+ *
32540
+ * `sentinel` names the member that is not a duration, so a surface can render
32541
+ * "no limit" instead of `2147483647` seconds.
32542
+ */
32543
+ var AllowedValuesSchema = object({
32544
+ values: array(number()).min(1),
32545
+ sentinel: object({
32546
+ value: number(),
32547
+ meaning: _enum(["no-limit", "disabled"])
32548
+ }).optional()
32549
+ });
32550
+ /**
32551
+ * Per-field availability on ONE camera.
32552
+ *
32553
+ * The field exists on every camera — this says whether this one can be
32554
+ * read and whether it can be written, and `reason` says why not when
32555
+ * either is false. The UI renders the control DISABLED with the reason
32556
+ * rather than hiding it, so a limitation is legible instead of looking
32557
+ * like a missing feature.
32558
+ */
32559
+ var OnboardFieldSupportSchema = object({
32560
+ readable: boolean(),
32561
+ writable: boolean(),
32562
+ /** Required whenever `readable` or `writable` is false. */
32563
+ reason: string().optional()
32564
+ });
32565
+ /** What this camera's schedule model can express. */
32566
+ var OnboardScheduleSupportSchema = object({
32567
+ support: OnboardFieldSupportSchema,
32568
+ /**
32569
+ * The smallest time step the camera can express, in minutes.
32570
+ *
32571
+ * Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
32572
+ * 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
32573
+ * window whose edges are not a multiple of this is REFUSED rather than
32574
+ * quietly rounded — rounding is how an operator's 06:30 becomes 06:00
32575
+ * and nothing says so.
32576
+ */
32577
+ granularityMinutes: number(),
32578
+ /** Triggers this camera can record on. A window naming another is refused. */
32579
+ triggers: array(RecordTriggerSchema),
32580
+ /**
32581
+ * False when the camera stores ONE trigger per time range, so two
32582
+ * windows overlapping on the same day cannot carry different triggers.
32583
+ * True on Reolink, whose mask is per-trigger and independent.
32584
+ */
32585
+ supportsOverlappingTriggers: boolean()
32586
+ });
32587
+ var RecordingOnboardOptionsSchema = object({
32588
+ enabled: OnboardFieldSupportSchema,
32589
+ overwriteWhenFull: OnboardFieldSupportSchema,
32590
+ preRecordSec: OnboardFieldSupportSchema,
32591
+ preRecordSecRange: RangeSchema.optional(),
32592
+ /** Preferred over the range when the camera takes a SET, not a span. */
32593
+ preRecordSecAllowed: AllowedValuesSchema.optional(),
32594
+ postRecordSec: OnboardFieldSupportSchema,
32595
+ postRecordSecRange: RangeSchema.optional(),
32596
+ /** Preferred over the range when the camera takes a SET, not a span. */
32597
+ postRecordSecAllowed: AllowedValuesSchema.optional(),
32598
+ segmentMinutes: OnboardFieldSupportSchema,
32599
+ segmentMinutesRange: RangeSchema.optional(),
32600
+ /** Preferred over the range when the camera takes a SET, not a span. */
32601
+ segmentMinutesAllowed: AllowedValuesSchema.optional(),
32602
+ schedule: OnboardScheduleSupportSchema
32603
+ });
32604
+ /**
32605
+ * A partial change. Every field optional.
32606
+ *
32607
+ * Unlike the other `deviceConfig` caps, a provider here does **NOT**
32608
+ * silently ignore a field it cannot support — it refuses, by name,
32609
+ * through {@link describeOnboardRefusal}. Silence on a recording setting
32610
+ * is the failure D62 exists to prevent: the operator believes the camera
32611
+ * is recording the way the form says, and it is not.
32612
+ */
32613
+ var RecordingOnboardPatchSchema = object({
32614
+ enabled: boolean().optional(),
32615
+ overwriteWhenFull: boolean().optional(),
32616
+ preRecordSec: number().optional(),
32617
+ postRecordSec: number().optional(),
32618
+ segmentMinutes: number().optional(),
32619
+ /** The complete new window set for the primary track — not a delta. */
32620
+ windows: array(RecordWindowSchema).optional()
32621
+ });
32622
+ var recordingOnboardCapability = {
32623
+ name: "recording-onboard",
32624
+ scope: "device",
32625
+ deviceNative: true,
32626
+ mode: "singleton",
32627
+ deviceTypes: [DeviceType.Camera],
32628
+ deviceConfig: { ui: {
32629
+ kind: "derived-form",
32630
+ builderId: "recording-onboard",
32631
+ tab: "recording"
32632
+ } },
32633
+ methods: {
32634
+ getOptions: method(object({ deviceId: number() }), RecordingOnboardOptionsSchema),
32635
+ setSettings: method(object({
32636
+ deviceId: number(),
32637
+ settings: RecordingOnboardPatchSchema
32638
+ }), _void(), {
32639
+ kind: "mutation",
32640
+ auth: "admin"
32641
+ })
32642
+ },
32643
+ status: {
32644
+ schema: RecordingOnboardStatusSchema,
32645
+ kind: "poll"
32646
+ },
32647
+ runtimeState: RecordingOnboardStatusSchema,
32648
+ /**
32649
+ * Runtime-state durability: **restored** — operator-set camera-side
32650
+ * recording config; mutation-driven, and the storage half is the last
32651
+ * thing the camera said about its own card.
32652
+ *
32653
+ * See `RuntimeStateDurability`. Enforced by
32654
+ * `scripts/check-runtime-state-durability.ts`.
32655
+ */
32656
+ durability: "restored",
32657
+ /** Clock fields: written, but excluded from the compare that decides
32658
+ * whether persisting is worth a SQLite commit. */
32659
+ volatileStateFields: ["lastFetchedAt"]
32660
+ };
32661
+ /**
32210
32662
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
32211
32663
  * for every device, regardless of provider — the kernel needs a uniform
32212
32664
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -42946,6 +43398,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
42946
43398
  dayNightCapability,
42947
43399
  decoderCapability,
42948
43400
  detectionPipelineCapability,
43401
+ deviceAdminLinkCapability,
42949
43402
  deviceAdoptionCapability,
42950
43403
  deviceDiscoveryCapability,
42951
43404
  deviceExportCapability,
@@ -43020,6 +43473,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
43020
43473
  rebootCapability,
43021
43474
  recordingCapability,
43022
43475
  recordingExportCapability,
43476
+ recordingOnboardCapability,
43023
43477
  recordingSignalCapability,
43024
43478
  sceneMonitorCapability,
43025
43479
  scriptRunnerCapability,
@@ -44364,6 +44818,12 @@ Object.freeze({
44364
44818
  addonId: null,
44365
44819
  access: "view"
44366
44820
  },
44821
+ "deviceAdminLink.getAdminLink": {
44822
+ capName: "device-admin-link",
44823
+ capScope: "device",
44824
+ addonId: null,
44825
+ access: "view"
44826
+ },
44367
44827
  "deviceAdoption.adopt": {
44368
44828
  capName: "device-adoption",
44369
44829
  capScope: "system",
@@ -48402,6 +48862,24 @@ Object.freeze({
48402
48862
  addonId: null,
48403
48863
  access: "view"
48404
48864
  },
48865
+ "recordingOnboard.getOptions": {
48866
+ capName: "recording-onboard",
48867
+ capScope: "device",
48868
+ addonId: null,
48869
+ access: "view"
48870
+ },
48871
+ "recordingOnboard.getStatus": {
48872
+ capName: "recording-onboard",
48873
+ capScope: "device",
48874
+ addonId: null,
48875
+ access: "view"
48876
+ },
48877
+ "recordingOnboard.setSettings": {
48878
+ capName: "recording-onboard",
48879
+ capScope: "device",
48880
+ addonId: null,
48881
+ access: "create"
48882
+ },
48405
48883
  "recordingSignal.getStatus": {
48406
48884
  capName: "recording-signal",
48407
48885
  capScope: "device",
@@ -50288,6 +50766,11 @@ Object.freeze({
50288
50766
  form: "single",
50289
50767
  optional: true
50290
50768
  }],
50769
+ "deviceAdminLink.getAdminLink": [{
50770
+ name: "deviceId",
50771
+ form: "single",
50772
+ optional: false
50773
+ }],
50291
50774
  "deviceAdoption.release": [{
50292
50775
  name: "camDeviceId",
50293
50776
  form: "single",
@@ -51673,6 +52156,16 @@ Object.freeze({
51673
52156
  form: "single",
51674
52157
  optional: true
51675
52158
  }],
52159
+ "recordingOnboard.getOptions": [{
52160
+ name: "deviceId",
52161
+ form: "single",
52162
+ optional: false
52163
+ }],
52164
+ "recordingOnboard.setSettings": [{
52165
+ name: "deviceId",
52166
+ form: "single",
52167
+ optional: false
52168
+ }],
51676
52169
  "recordingSignal.getStatus": [{
51677
52170
  name: "deviceId",
51678
52171
  form: "single",