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