@camstack/addon-admin-ui 1.2.256 → 1.2.258
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/assets/{AddonCollectionPage-BrKnhqN6.js → AddonCollectionPage-BX0XnPQb.js} +1 -1
- package/dist/assets/{Addons-CGV0tPao.js → Addons-BDOOkMuS.js} +1 -1
- package/dist/assets/{AdminTabs-xl7L7LbK.js → AdminTabs-CSovnIie.js} +1 -1
- package/dist/assets/{AiProfiles-B8KpsNCY.js → AiProfiles-E5IAsm2S.js} +1 -1
- package/dist/assets/{BrokerForm-CKSu9YR9.js → BrokerForm-zK_8Dcox.js} +1 -1
- package/dist/assets/{Build-XG623eb0.js → Build-BtjCenWS.js} +3 -3
- package/dist/assets/{Capabilities-B9iwXfJ_.js → Capabilities-DZdGmm1p.js} +1 -1
- package/dist/assets/{CapabilityBadges-BAcpbKzW.js → CapabilityBadges-dLW1TjJs.js} +1 -1
- package/dist/assets/{Cluster-Cfrkklrp.js → Cluster-BbNceUht.js} +1 -1
- package/dist/assets/{Data-DpRaj0c6.js → Data-cuCuoZJZ.js} +1 -1
- package/dist/assets/{DetectionIntelligence-Ducrtn6e.js → DetectionIntelligence-G7lCcALp.js} +1 -1
- package/dist/assets/{DeviceAggregateSection-DDurBWQj.js → DeviceAggregateSection-BgIHM0MP.js} +1 -1
- package/dist/assets/{DeviceDetail-Ce4mRuPS.js → DeviceDetail-BdOqOqTl.js} +2 -2
- package/dist/assets/{Devices-C98LQwVO.js → Devices-Ch6FOfuB.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-B3l-8HW2.js → EmbedPlayerPage-BErA2z2-.js} +1 -1
- package/dist/assets/{Events-B_71AIay.js → Events-CgOvlHhY.js} +1 -1
- package/dist/assets/{FormBuilder-CANAIdrR.js → FormBuilder-jIqGNdKD.js} +1 -1
- package/dist/assets/{Identity-u8jUWQrm.js → Identity-BWdkMiVS.js} +1 -1
- package/dist/assets/{IntegrationDetail-CrPCrREf.js → IntegrationDetail-BIjcJOw8.js} +1 -1
- package/dist/assets/{Integrations-C4LRENNk.js → Integrations-5qB154Mm.js} +1 -1
- package/dist/assets/{Integrations-Pcad36nf.js → Integrations-CR7lMMFk.js} +1 -1
- package/dist/assets/{Locations-CvU6SB6j.js → Locations-BCTsz8p1.js} +1 -1
- package/dist/assets/{Logs-D5EN75I7.js → Logs-BM6XTKrt.js} +1 -1
- package/dist/assets/{MotionZonesSettings-D89OA6Dl.js → MotionZonesSettings-CQX7yV3y.js} +1 -1
- package/dist/assets/{MyAccess-D9XZpDt_.js → MyAccess-CJbXiIW5.js} +1 -1
- package/dist/assets/{Network-DyvJ_sUh.js → Network-DPbXs8WB.js} +1 -1
- package/dist/assets/{NodeAddonsSettingsPanel-C2-2gbZN.js → NodeAddonsSettingsPanel-D1mmPw8E.js} +1 -1
- package/dist/assets/{NodeInferenceDevices-B1rn7MrL.js → NodeInferenceDevices-BZT90g18.js} +1 -1
- package/dist/assets/{Notifications-DWErHd4D.js → Notifications-Df8BJ8WO.js} +1 -1
- package/dist/assets/{Pipeline-CPN6DMOv.js → Pipeline-DAOklLn2.js} +1 -1
- package/dist/assets/{Plates-C_19VFWL.js → Plates-CQi1FcSU.js} +1 -1
- package/dist/assets/{PrivacyMaskSettings-DEmm8fHe.js → PrivacyMaskSettings-BAmYAzaT.js} +1 -1
- package/dist/assets/{ProviderIcon-DMbNuVpL.js → ProviderIcon-DCDpuWgi.js} +1 -1
- package/dist/assets/{Recordings-0nE5bOy2.js → Recordings-CqoxOlE1.js} +1 -1
- package/dist/assets/{ScanNetworkModal-Si1NDfzK.js → ScanNetworkModal-Cz8wK3Sf.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-Cty1hcvy.js → SceneMonitorEditor-DxBU0nwK.js} +1 -1
- package/dist/assets/{Scenes-BQ3lrevm.js → Scenes--ADmPstY.js} +1 -1
- package/dist/assets/{Settings-Cwxw21JB.js → Settings-C9a74W-U.js} +1 -1
- package/dist/assets/{Showroom-DiDJ6Fs7.js → Showroom-JqyYWh5s.js} +1 -1
- package/dist/assets/{StorageLocationsPanel-QqQ1AfLw.js → StorageLocationsPanel-Ch5YTeaG.js} +1 -1
- package/dist/assets/{Terminal-BbgHCh2b.js → Terminal-WhJmXhAV.js} +1 -1
- package/dist/assets/{Viewer-asZ6v1vn.js → Viewer-BUVuTunJ.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BmKHcM42.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-D3L9YkaA.js} +1 -1
- package/dist/assets/{archive-ZFSAgRZp.js → archive-BBd9Y5og.js} +1 -1
- package/dist/assets/{authed-media-DGZdQJ2_.js → authed-media-Cp17W-pc.js} +1 -1
- package/dist/assets/{boxes-BODd3IWC.js → boxes-B2dkI7tE.js} +1 -1
- package/dist/assets/circle-slash-Beg_P0an.js +1 -0
- package/dist/assets/{debounced-invalidate-DH52lQTo.js → debounced-invalidate-CL0RRPMu.js} +1 -1
- package/dist/assets/dist-B8NLJMCh.js +349 -0
- package/dist/assets/{dist-CkPg0LaV.js → dist-C9Mb2vEn.js} +1 -1
- package/dist/assets/{face-bbox-DDIWE1Cf.js → face-bbox-CRCCB2nD.js} +1 -1
- package/dist/assets/{hard-drive-download-CUrLCXGO.js → hard-drive-download-CIHN2VkD.js} +1 -1
- package/dist/assets/{hostInit-D70wSjDB.js → hostInit-BsyyQBn2.js} +1 -1
- package/dist/assets/{index-BKiNswCO.js → index-BpiZqZOx.js} +3 -3
- package/dist/assets/{layers-DoAc2HJN.js → layers-cSbXjXdl.js} +1 -1
- package/dist/assets/{location-owned-usage-BjDkvBjK.js → location-owned-usage-BT2pmQo5.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-f259369c.js → mf-entry-bootstrap-0-0e59474f.js} +2 -2
- package/dist/assets/{player-overlays-DCH2V7HP.js → player-overlays-B82OVd2b.js} +1 -1
- package/dist/assets/remoteEntry-Boe6tAc9.js +1 -0
- package/dist/assets/{send-ChUQtIO6.js → send-BUidPUKy.js} +1 -1
- package/dist/assets/{settings-2-N3fIPeCJ.js → settings-2-CoiJ1-tg.js} +1 -1
- package/dist/assets/{square-check-big-7_RRY3I0.js → square-check-big-BeLRKn52.js} +1 -1
- package/dist/assets/src-8XVcukAG.js +349 -0
- package/dist/assets/src-jk2FdB5v.js +67 -0
- package/dist/assets/{use-scenes-feed-DUegdGHV.js → use-scenes-feed-BOjzOiOU.js} +1 -1
- package/dist/assets/{use-stationary-objects-BUBgMEN1.js → use-stationary-objects-Bd9Ou1yp.js} +1 -1
- package/dist/assets/useEventInvalidation-WjkWP5Gl.js +1 -0
- package/dist/assets/{useNodeUrlSelection-9plsTcbR.js → useNodeUrlSelection-GaFsaq3Y.js} +1 -1
- package/dist/assets/user-round-C782gYyr.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-zGmv_FRV.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-ta66_Q-u.js} +2 -2
- package/dist/index.html +5 -5
- package/dist/server/addon.js +1144 -817
- package/package.json +1 -1
- package/dist/assets/circle-slash-DhwA7_X6.js +0 -1
- package/dist/assets/dist-M9UIrsfR.js +0 -349
- package/dist/assets/remoteEntry-CDEVqUb3.js +0 -1
- package/dist/assets/src-CgXCIfw0.js +0 -349
- package/dist/assets/src-D2rbApke.js +0 -67
- package/dist/assets/useEventInvalidation-BsR3wfvy.js +0 -1
- package/dist/assets/user-round-QyLQU6kC.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -5361,7 +5361,7 @@ var ZodIssueCode = {
|
|
|
5361
5361
|
var ZodFirstPartyTypeKind;
|
|
5362
5362
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5363
5363
|
//#endregion
|
|
5364
|
-
//#region ../types/dist/sleep-
|
|
5364
|
+
//#region ../types/dist/sleep-PEo0-Fz9.mjs
|
|
5365
5365
|
/**
|
|
5366
5366
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5367
5367
|
* window to float samples (D455).
|
|
@@ -6497,6 +6497,24 @@ function normalizeAddonInitResult(result) {
|
|
|
6497
6497
|
if (Array.isArray(result)) return { providers: result };
|
|
6498
6498
|
return result;
|
|
6499
6499
|
}
|
|
6500
|
+
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
6501
|
+
var PeerBytesTicketSchema = object({
|
|
6502
|
+
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
6503
|
+
url: string().min(1),
|
|
6504
|
+
/**
|
|
6505
|
+
* The HOST node this URL means something on — the hub or a named agent,
|
|
6506
|
+
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
6507
|
+
* refuses `cross-node` by name when they differ, without dialling.
|
|
6508
|
+
*/
|
|
6509
|
+
hostNodeId: string().min(1),
|
|
6510
|
+
expiresAtMs: number().int().nonnegative(),
|
|
6511
|
+
/**
|
|
6512
|
+
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
6513
|
+
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
6514
|
+
* must be able to tell "the producer did not say" from "the body is empty".
|
|
6515
|
+
*/
|
|
6516
|
+
declaredBytes: number().int().nonnegative().nullable()
|
|
6517
|
+
});
|
|
6500
6518
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
6501
6519
|
var CamProfileSchema = _enum([
|
|
6502
6520
|
"high",
|
|
@@ -7644,7 +7662,7 @@ var AdoptionJobSchema = object({
|
|
|
7644
7662
|
* component's original options — detection to the detection-pipeline wrapper
|
|
7645
7663
|
* binding, audio analysis to its own, recording to `RecordingConfig.enabled`
|
|
7646
7664
|
* (which was always first-class; the switch was a veneer over
|
|
7647
|
-
* `
|
|
7665
|
+
* `recordingArchive.setDeviceConfig`), notifications to a notification-center
|
|
7648
7666
|
* per-device setting, the two camera planes to their own components.
|
|
7649
7667
|
*
|
|
7650
7668
|
* What survives is {@link composeSwitchedOff}: `CameraStatus.switchedOff`, the
|
|
@@ -7670,7 +7688,7 @@ var AdoptionJobSchema = object({
|
|
|
7670
7688
|
* | `stream-broker` | `deviceManager.setDisabled` | `StreamBrokerManager.reconcileAllCatalogs` releases the brokers; `ensureBroker` refuses re-creation |
|
|
7671
7689
|
* | `object-detection` | `deviceManager.setWrapperActive('detection-pipeline')` | `PipelineSettingsStore.resolvePipelineForDevice` returns `{ steps: [], audio: null }` |
|
|
7672
7690
|
* | `audio-analysis` | `deviceManager.setWrapperActive('audio-analysis')` | `AudioSubscriptionController.subscribeAudioStream` returns `null` before opening the stream |
|
|
7673
|
-
* | `recording` | `
|
|
7691
|
+
* | `recording` | `recordingArchive.setDeviceConfig` → `RecordingConfig.enabled` | `band-decision.shouldRecord` returns false; the controller detaches the device |
|
|
7674
7692
|
* | `notifications` | `notificationRules.setDeviceMuted` | `NotificationCenter.evaluateAndEnqueue` returns before any rule is evaluated |
|
|
7675
7693
|
* | `privacy-mask` | `privacyMask.setMask({ enabled })` → the CAMERA | the camera blanks the masked regions itself; every stream and recording carries the black boxes |
|
|
7676
7694
|
* | `device-audio` | `privacyMask.setAudioEnabled` → the CAMERA | the camera stops encoding an audio track at all; every consumer sees silent video |
|
|
@@ -11568,58 +11586,6 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
11568
11586
|
auth: "admin"
|
|
11569
11587
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
11570
11588
|
DeviceType.Camera;
|
|
11571
|
-
/**
|
|
11572
|
-
* The signals a device can emit to WAKE its own stream.
|
|
11573
|
-
*
|
|
11574
|
-
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
11575
|
-
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
11576
|
-
* puller holds a session open for ever, and treating that as demand would keep
|
|
11577
|
-
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11578
|
-
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
11579
|
-
* itself, with no stream running.
|
|
11580
|
-
*
|
|
11581
|
-
* ## The vocabulary is the PROVIDER'S, not ours
|
|
11582
|
-
*
|
|
11583
|
-
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
11584
|
-
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
11585
|
-
* Reolink offers motion and camera-native detection; another provider may offer
|
|
11586
|
-
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
11587
|
-
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
11588
|
-
*
|
|
11589
|
-
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
11590
|
-
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
11591
|
-
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
11592
|
-
* binding — but both answer "what drives the detection pipeline", which is a
|
|
11593
|
-
* different question from "what may wake a sleeping stream". A camera can do
|
|
11594
|
-
* the first and not be trusted with the second, and the operator picks per
|
|
11595
|
-
* camera. Two questions, two authorities.
|
|
11596
|
-
*
|
|
11597
|
-
* ## Availability is not permission
|
|
11598
|
-
*
|
|
11599
|
-
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
11600
|
-
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
11601
|
-
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
11602
|
-
* provider declaring a signal is not a provider enabling it.
|
|
11603
|
-
*/
|
|
11604
|
-
/** One signal a device can emit. */
|
|
11605
|
-
var StreamSignalSchema = object({
|
|
11606
|
-
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
11607
|
-
code: string().min(1),
|
|
11608
|
-
/** What an operator reads in the picker. The provider's own wording. */
|
|
11609
|
-
label: string().min(1),
|
|
11610
|
-
/**
|
|
11611
|
-
* Whether the provider recommends this signal ON when a camera is first set
|
|
11612
|
-
* up. A provider knows which of its signals are cheap and reliable; an
|
|
11613
|
-
* operator should not have to discover that by trial. Reolink recommends
|
|
11614
|
-
* both of its own.
|
|
11615
|
-
*/
|
|
11616
|
-
recommended: boolean()
|
|
11617
|
-
});
|
|
11618
|
-
object({
|
|
11619
|
-
signals: array(StreamSignalSchema),
|
|
11620
|
-
lastFetchedAt: number()
|
|
11621
|
-
});
|
|
11622
|
-
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
11623
11589
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
11624
11590
|
var StreamFormatSchema = _enum([
|
|
11625
11591
|
"webrtc",
|
|
@@ -12983,6 +12949,97 @@ method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
|
12983
12949
|
});
|
|
12984
12950
|
DeviceType.Camera;
|
|
12985
12951
|
/**
|
|
12952
|
+
* device-admin-link — "this device has a management page of its own, and here
|
|
12953
|
+
* is its address".
|
|
12954
|
+
*
|
|
12955
|
+
* ## Why this is not a `deviceConfig` cap
|
|
12956
|
+
*
|
|
12957
|
+
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
12958
|
+
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
12959
|
+
* patch back through a setter; it costs a `builderId` reducer in
|
|
12960
|
+
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
12961
|
+
* renders a form section. This cap answers ONE question with ONE read and
|
|
12962
|
+
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
12963
|
+
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
12964
|
+
* `reboot`, the other pure-RPC device-native cap.
|
|
12965
|
+
*
|
|
12966
|
+
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
12967
|
+
*
|
|
12968
|
+
* The two are answered at DIFFERENT layers, on purpose:
|
|
12969
|
+
*
|
|
12970
|
+
* - **"We cannot say"** → the provider never registers the cap for that
|
|
12971
|
+
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
12972
|
+
* fan are reached only through a vendor cloud; there is no address to hand
|
|
12973
|
+
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
12974
|
+
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
12975
|
+
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
12976
|
+
* lists the cap and no surface asks.
|
|
12977
|
+
* - **"This device has no page, and I know that"** → the provider registers
|
|
12978
|
+
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
12979
|
+
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
12980
|
+
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
12981
|
+
* transport, a Home Assistant broker authenticated by supervisor token
|
|
12982
|
+
* (which carries no `baseUrl` at all).
|
|
12983
|
+
*
|
|
12984
|
+
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
12985
|
+
* button, and D62 is the same rule from the other side: an off switch is
|
|
12986
|
+
* reported off, never made to look broken. There is no third state where the
|
|
12987
|
+
* UI renders a disabled button "because the device might have a page".
|
|
12988
|
+
*
|
|
12989
|
+
* ## The URL never carries credentials
|
|
12990
|
+
*
|
|
12991
|
+
* Not in userinfo, not in a query string. Every provider builds through
|
|
12992
|
+
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
12993
|
+
* scheme and path as separate arguments — there is no parameter a secret could
|
|
12994
|
+
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
12995
|
+
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
12996
|
+
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
12997
|
+
* keeps providers from hand-rolling one anyway.
|
|
12998
|
+
*
|
|
12999
|
+
* This matters here more than anywhere else in the repo, because every provider
|
|
13000
|
+
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
13001
|
+
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
13002
|
+
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
13003
|
+
* camera's own page will ask for its own login. That is correct, and pre-
|
|
13004
|
+
* filling it is the operator's business, not ours.
|
|
13005
|
+
*
|
|
13006
|
+
* ## It is a LAN fact
|
|
13007
|
+
*
|
|
13008
|
+
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
13009
|
+
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
13010
|
+
* as a link the operator's own browser follows, on the operator's own network,
|
|
13011
|
+
* or renders nothing.
|
|
13012
|
+
*/
|
|
13013
|
+
/**
|
|
13014
|
+
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
13015
|
+
* before clicking whether he is about to land on a camera's own web server or
|
|
13016
|
+
* inside Home Assistant.
|
|
13017
|
+
*/
|
|
13018
|
+
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
13019
|
+
var DeviceAdminLinkSchema = object({
|
|
13020
|
+
/**
|
|
13021
|
+
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
13022
|
+
* free of userinfo and of any credential-shaped query key.
|
|
13023
|
+
*/
|
|
13024
|
+
url: string(),
|
|
13025
|
+
/**
|
|
13026
|
+
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
13027
|
+
* The PROVIDER names it, because only the provider knows what the page is;
|
|
13028
|
+
* a UI that invented the label from the addon id would call the Home
|
|
13029
|
+
* Assistant device page "Provider Homeassistant".
|
|
13030
|
+
*/
|
|
13031
|
+
label: string(),
|
|
13032
|
+
target: AdminLinkTargetEnum,
|
|
13033
|
+
/**
|
|
13034
|
+
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
13035
|
+
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
13036
|
+
* with `url` by construction; carried separately so no surface has to parse
|
|
13037
|
+
* a URL to show it.
|
|
13038
|
+
*/
|
|
13039
|
+
host: string()
|
|
13040
|
+
});
|
|
13041
|
+
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
13042
|
+
/**
|
|
12986
13043
|
* Identity envelope for a device's upstream-system metadata.
|
|
12987
13044
|
*
|
|
12988
13045
|
* Two jobs:
|
|
@@ -13310,97 +13367,6 @@ method(object({ integrationId: string() }), object({ filters: array(AdoptionFilt
|
|
|
13310
13367
|
auth: "admin"
|
|
13311
13368
|
});
|
|
13312
13369
|
/**
|
|
13313
|
-
* device-admin-link — "this device has a management page of its own, and here
|
|
13314
|
-
* is its address".
|
|
13315
|
-
*
|
|
13316
|
-
* ## Why this is not a `deviceConfig` cap
|
|
13317
|
-
*
|
|
13318
|
-
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
13319
|
-
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
13320
|
-
* patch back through a setter; it costs a `builderId` reducer in
|
|
13321
|
-
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
13322
|
-
* renders a form section. This cap answers ONE question with ONE read and
|
|
13323
|
-
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
13324
|
-
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
13325
|
-
* `reboot`, the other pure-RPC device-native cap.
|
|
13326
|
-
*
|
|
13327
|
-
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
13328
|
-
*
|
|
13329
|
-
* The two are answered at DIFFERENT layers, on purpose:
|
|
13330
|
-
*
|
|
13331
|
-
* - **"We cannot say"** → the provider never registers the cap for that
|
|
13332
|
-
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
13333
|
-
* fan are reached only through a vendor cloud; there is no address to hand
|
|
13334
|
-
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
13335
|
-
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
13336
|
-
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
13337
|
-
* lists the cap and no surface asks.
|
|
13338
|
-
* - **"This device has no page, and I know that"** → the provider registers
|
|
13339
|
-
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
13340
|
-
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
13341
|
-
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
13342
|
-
* transport, a Home Assistant broker authenticated by supervisor token
|
|
13343
|
-
* (which carries no `baseUrl` at all).
|
|
13344
|
-
*
|
|
13345
|
-
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
13346
|
-
* button, and D62 is the same rule from the other side: an off switch is
|
|
13347
|
-
* reported off, never made to look broken. There is no third state where the
|
|
13348
|
-
* UI renders a disabled button "because the device might have a page".
|
|
13349
|
-
*
|
|
13350
|
-
* ## The URL never carries credentials
|
|
13351
|
-
*
|
|
13352
|
-
* Not in userinfo, not in a query string. Every provider builds through
|
|
13353
|
-
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
13354
|
-
* scheme and path as separate arguments — there is no parameter a secret could
|
|
13355
|
-
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
13356
|
-
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
13357
|
-
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
13358
|
-
* keeps providers from hand-rolling one anyway.
|
|
13359
|
-
*
|
|
13360
|
-
* This matters here more than anywhere else in the repo, because every provider
|
|
13361
|
-
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
13362
|
-
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
13363
|
-
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
13364
|
-
* camera's own page will ask for its own login. That is correct, and pre-
|
|
13365
|
-
* filling it is the operator's business, not ours.
|
|
13366
|
-
*
|
|
13367
|
-
* ## It is a LAN fact
|
|
13368
|
-
*
|
|
13369
|
-
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
13370
|
-
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
13371
|
-
* as a link the operator's own browser follows, on the operator's own network,
|
|
13372
|
-
* or renders nothing.
|
|
13373
|
-
*/
|
|
13374
|
-
/**
|
|
13375
|
-
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
13376
|
-
* before clicking whether he is about to land on a camera's own web server or
|
|
13377
|
-
* inside Home Assistant.
|
|
13378
|
-
*/
|
|
13379
|
-
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
13380
|
-
var DeviceAdminLinkSchema = object({
|
|
13381
|
-
/**
|
|
13382
|
-
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
13383
|
-
* free of userinfo and of any credential-shaped query key.
|
|
13384
|
-
*/
|
|
13385
|
-
url: string(),
|
|
13386
|
-
/**
|
|
13387
|
-
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
13388
|
-
* The PROVIDER names it, because only the provider knows what the page is;
|
|
13389
|
-
* a UI that invented the label from the addon id would call the Home
|
|
13390
|
-
* Assistant device page "Provider Homeassistant".
|
|
13391
|
-
*/
|
|
13392
|
-
label: string(),
|
|
13393
|
-
target: AdminLinkTargetEnum,
|
|
13394
|
-
/**
|
|
13395
|
-
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
13396
|
-
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
13397
|
-
* with `url` by construction; carried separately so no surface has to parse
|
|
13398
|
-
* a URL to show it.
|
|
13399
|
-
*/
|
|
13400
|
-
host: string()
|
|
13401
|
-
});
|
|
13402
|
-
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
13403
|
-
/**
|
|
13404
13370
|
* `device-export` — collection cap for addons that export camstack
|
|
13405
13371
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
13406
13372
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
@@ -23520,6 +23486,58 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
|
|
|
23520
23486
|
kind: "mutation",
|
|
23521
23487
|
auth: "admin"
|
|
23522
23488
|
});
|
|
23489
|
+
/**
|
|
23490
|
+
* The signals a device can emit to WAKE its own stream.
|
|
23491
|
+
*
|
|
23492
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
23493
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
23494
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
23495
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
23496
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
23497
|
+
* itself, with no stream running.
|
|
23498
|
+
*
|
|
23499
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
23500
|
+
*
|
|
23501
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
23502
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
23503
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
23504
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
23505
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
23506
|
+
*
|
|
23507
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
23508
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
23509
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
23510
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
23511
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
23512
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
23513
|
+
* camera. Two questions, two authorities.
|
|
23514
|
+
*
|
|
23515
|
+
* ## Availability is not permission
|
|
23516
|
+
*
|
|
23517
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
23518
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
23519
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
23520
|
+
* provider declaring a signal is not a provider enabling it.
|
|
23521
|
+
*/
|
|
23522
|
+
/** One signal a device can emit. */
|
|
23523
|
+
var StreamSignalSchema = object({
|
|
23524
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
23525
|
+
code: string().min(1),
|
|
23526
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
23527
|
+
label: string().min(1),
|
|
23528
|
+
/**
|
|
23529
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
23530
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
23531
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
23532
|
+
* both of its own.
|
|
23533
|
+
*/
|
|
23534
|
+
recommended: boolean()
|
|
23535
|
+
});
|
|
23536
|
+
object({
|
|
23537
|
+
signals: array(StreamSignalSchema),
|
|
23538
|
+
lastFetchedAt: number()
|
|
23539
|
+
});
|
|
23540
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
23523
23541
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
23524
23542
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
23525
23543
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -24092,6 +24110,7 @@ _enum([
|
|
|
24092
24110
|
"sleeping",
|
|
24093
24111
|
"camera-refused",
|
|
24094
24112
|
"no-keyframe",
|
|
24113
|
+
"decode-failed",
|
|
24095
24114
|
"no-catalog-row",
|
|
24096
24115
|
"unsupported",
|
|
24097
24116
|
"unknown-device",
|
|
@@ -24366,6 +24385,32 @@ var ClipBytesSchema = object({
|
|
|
24366
24385
|
durationMs: number().positive().optional()
|
|
24367
24386
|
});
|
|
24368
24387
|
/**
|
|
24388
|
+
* Where a clip's finished bytes can be TAKEN (D613) — the answer to
|
|
24389
|
+
* {@link videoclipsCapability.methods.offerClipBytes}.
|
|
24390
|
+
*
|
|
24391
|
+
* Everything {@link ClipBytesSchema} carries except the bytes themselves, plus
|
|
24392
|
+
* the one-shot ticket that leads to them. The metadata is answered BEFORE the
|
|
24393
|
+
* transfer on purpose: a consumer learns which twin it got, what to call the
|
|
24394
|
+
* file and how long the clip runs without having to read a byte, so a decision
|
|
24395
|
+
* it would make on that metadata (a wrong twin, an implausible duration) costs
|
|
24396
|
+
* no transfer at all.
|
|
24397
|
+
*/
|
|
24398
|
+
var ClipBytesOfferSchema = object({
|
|
24399
|
+
/**
|
|
24400
|
+
* One shot, seconds-long, loopback, on the PROVIDER's own host. Open it with
|
|
24401
|
+
* `ctx.peerBytes.open(...)`, which refuses a ticket from another node by
|
|
24402
|
+
* name rather than dialling a port that means something else here.
|
|
24403
|
+
*/
|
|
24404
|
+
ticket: PeerBytesTicketSchema,
|
|
24405
|
+
contentType: string(),
|
|
24406
|
+
/** Suggested filename, extension included. */
|
|
24407
|
+
name: string(),
|
|
24408
|
+
/** Which twin was actually served — see {@link ClipBytesSchema.served}. */
|
|
24409
|
+
served: CamProfileSchema,
|
|
24410
|
+
/** See {@link ClipBytesSchema.durationMs}. Absent when nothing measured it. */
|
|
24411
|
+
durationMs: number().positive().optional()
|
|
24412
|
+
});
|
|
24413
|
+
/**
|
|
24369
24414
|
* Where a clip's STREAM can be dialled (D597) — the answer to
|
|
24370
24415
|
* {@link videoclipsCapability.methods.dialClipStream}.
|
|
24371
24416
|
*
|
|
@@ -24441,6 +24486,44 @@ var ClipStreamDialSchema = object({
|
|
|
24441
24486
|
/** Why `servedAudio` is `none` although sound was asked for. */
|
|
24442
24487
|
audioReason: ClipStreamAudioReasonSchema.optional()
|
|
24443
24488
|
});
|
|
24489
|
+
/**
|
|
24490
|
+
* What a surface may DRAW for this provider's clips — the answer to
|
|
24491
|
+
* {@link videoclipsCapability.methods.getPlaybackOptions} (D612).
|
|
24492
|
+
*
|
|
24493
|
+
* The envelope is a PROVIDER fact, not a clip fact, and that is measured, not
|
|
24494
|
+
* assumed: the broker's `chooseClipPath` reads exactly two inputs — whether
|
|
24495
|
+
* `dialClipStream` and `readClipBytes` are wired — and both are constants of
|
|
24496
|
+
* the broker's own closure over the provider's methods. The `profile` it is
|
|
24497
|
+
* handed is explicitly not read. So every clip of a provider is served the
|
|
24498
|
+
* same way, and a per-clip channel carried a value that could not vary. The
|
|
24499
|
+
* per-clip `clipTransport` server message was removed for exactly that reason.
|
|
24500
|
+
*
|
|
24501
|
+
* Queried per camera, before a clip is picked, so a control is rendered or
|
|
24502
|
+
* DISABLED rather than offered and refused at play time (D62: a disabled
|
|
24503
|
+
* control reads as unavailable, one that undoes the gesture reads as broken).
|
|
24504
|
+
*/
|
|
24505
|
+
var ClipPlaybackOptionsSchema = object({
|
|
24506
|
+
/**
|
|
24507
|
+
* How this provider's clips reach the player. `stream` is the provider's
|
|
24508
|
+
* forward-only fMP4 (D597); `file` is one bounded by-handle fetch of the
|
|
24509
|
+
* whole clip, `stbl` indexed (D575).
|
|
24510
|
+
*/
|
|
24511
|
+
transport: _enum(["stream", "file"]),
|
|
24512
|
+
/** `forward` = only ahead of the playhead. `free` = anywhere. */
|
|
24513
|
+
seek: _enum(["forward", "free"]),
|
|
24514
|
+
/** Frame-step BACKWARD is meaningful. Forward always is. */
|
|
24515
|
+
stepBack: boolean(),
|
|
24516
|
+
/** Whether the scrub gesture is served, as opposed to refused by name. */
|
|
24517
|
+
scrub: boolean(),
|
|
24518
|
+
/**
|
|
24519
|
+
* The rates that can be delivered, ascending, always containing `1`. The
|
|
24520
|
+
* viewer draws its picker from this and from nothing else — a constant it
|
|
24521
|
+
* keeps instead is the second authority that produced the defect: `8` and
|
|
24522
|
+
* `16` were offered, the broker clamped them to `4`, and no line anywhere
|
|
24523
|
+
* said so. `0` is not a member: pause is the absence of a rate.
|
|
24524
|
+
*/
|
|
24525
|
+
rates: array(number().positive()).min(1).readonly()
|
|
24526
|
+
});
|
|
24444
24527
|
var ClipSourceAvailabilitySchema = object({
|
|
24445
24528
|
state: _enum([
|
|
24446
24529
|
"ok",
|
|
@@ -24600,6 +24683,29 @@ DeviceType.Camera, method(object({
|
|
|
24600
24683
|
}), ClipBytesSchema, {
|
|
24601
24684
|
kind: "query",
|
|
24602
24685
|
auth: "protected"
|
|
24686
|
+
}), optionalMethod(object({
|
|
24687
|
+
deviceId: number(),
|
|
24688
|
+
clipId: string().min(1),
|
|
24689
|
+
/** WHICH provider holds the bytes — see `readClipBytes.provider`. */
|
|
24690
|
+
provider: string().min(1),
|
|
24691
|
+
/** Which twin — `low | mid` → the sub file, `high` → the main twin. */
|
|
24692
|
+
profile: CamProfileSchema.optional(),
|
|
24693
|
+
/**
|
|
24694
|
+
* The CALLER's byte bound, so an over-size clip is refused before the
|
|
24695
|
+
* camera is touched rather than after. Capped by
|
|
24696
|
+
* {@link VIDEOCLIPS_MAX_OFFER_BYTES} whatever is passed; absent means
|
|
24697
|
+
* that ceiling.
|
|
24698
|
+
*/
|
|
24699
|
+
maxBytes: number().int().positive().optional(),
|
|
24700
|
+
/**
|
|
24701
|
+
* The operator's authorisation to wake a sleeping camera for this
|
|
24702
|
+
* read. Absent — the default — means a sleeping standalone battery
|
|
24703
|
+
* camera is REFUSED by name, before any session is opened.
|
|
24704
|
+
*/
|
|
24705
|
+
wake: ClipWakeSchema.optional()
|
|
24706
|
+
}), ClipBytesOfferSchema, {
|
|
24707
|
+
kind: "query",
|
|
24708
|
+
auth: "protected"
|
|
24603
24709
|
}), optionalMethod(object({
|
|
24604
24710
|
deviceId: number(),
|
|
24605
24711
|
clipId: string().min(1),
|
|
@@ -24621,6 +24727,15 @@ DeviceType.Camera, method(object({
|
|
|
24621
24727
|
}), ClipStreamDialSchema, {
|
|
24622
24728
|
kind: "query",
|
|
24623
24729
|
auth: "protected"
|
|
24730
|
+
}), optionalMethod(object({
|
|
24731
|
+
deviceId: number(),
|
|
24732
|
+
/** WHICH provider to ask — the `addonId` a {@link ClipSourceSchema}
|
|
24733
|
+
* row carries. Required for the same reason `listClips` requires it:
|
|
24734
|
+
* a collection cap has no "the bound one" to resolve to (D554). */
|
|
24735
|
+
provider: string().min(1)
|
|
24736
|
+
}), ClipPlaybackOptionsSchema, {
|
|
24737
|
+
kind: "query",
|
|
24738
|
+
auth: "protected"
|
|
24624
24739
|
});
|
|
24625
24740
|
/**
|
|
24626
24741
|
* Optional client-side hints sent at session creation to help the provider
|
|
@@ -25705,6 +25820,143 @@ DeviceType.Camera, method(object({ deviceId: number() }), CameraCredentialsSchem
|
|
|
25705
25820
|
kind: "query",
|
|
25706
25821
|
auth: "admin"
|
|
25707
25822
|
});
|
|
25823
|
+
/**
|
|
25824
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
25825
|
+
* page.
|
|
25826
|
+
*
|
|
25827
|
+
* ## Why this is a capability and not an addon settings schema
|
|
25828
|
+
*
|
|
25829
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
25830
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
25831
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
25832
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
25833
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
25834
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
25835
|
+
* not on it "falls off silently".
|
|
25836
|
+
*
|
|
25837
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
25838
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
25839
|
+
* beside PTZ and motion zones on the camera itself. The device page is
|
|
25840
|
+
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
25841
|
+
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
25842
|
+
* from `getDeviceSettingsContribution`.
|
|
25843
|
+
*
|
|
25844
|
+
* Seven other widgets are still declared the other way, through a
|
|
25845
|
+
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
25846
|
+
* gives the addon no say in where its own panel lands and no way to decline
|
|
25847
|
+
* for a device the panel does not suit, which is why this one does not use it.
|
|
25848
|
+
*
|
|
25849
|
+
* ## Why one addon may implement it
|
|
25850
|
+
*
|
|
25851
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
25852
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
25853
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
25854
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
25855
|
+
* reached only by a caller that already knew the addon id.
|
|
25856
|
+
*
|
|
25857
|
+
* ## The tab
|
|
25858
|
+
*
|
|
25859
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
25860
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
25861
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
25862
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
25863
|
+
* next to "PTZ").
|
|
25864
|
+
*/
|
|
25865
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
25866
|
+
var GridNormalizedRectSchema = object({
|
|
25867
|
+
x: number().min(0).max(1),
|
|
25868
|
+
y: number().min(0).max(1),
|
|
25869
|
+
width: number().gt(0).max(1),
|
|
25870
|
+
height: number().gt(0).max(1)
|
|
25871
|
+
});
|
|
25872
|
+
/**
|
|
25873
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
25874
|
+
*
|
|
25875
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
25876
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
25877
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
25878
|
+
* which is the class of bug nobody files.
|
|
25879
|
+
*/
|
|
25880
|
+
var GridLayoutCellSchema = object({
|
|
25881
|
+
deviceId: number().int().positive(),
|
|
25882
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
25883
|
+
source: GridNormalizedRectSchema,
|
|
25884
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
25885
|
+
cell: GridNormalizedRectSchema
|
|
25886
|
+
});
|
|
25887
|
+
/**
|
|
25888
|
+
* Which profiles this grid can actually compose, and why not.
|
|
25889
|
+
*
|
|
25890
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
25891
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
25892
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
25893
|
+
* low" is, and it is the one an operator can act on.
|
|
25894
|
+
*/
|
|
25895
|
+
var GridProfileOfferSchema = object({
|
|
25896
|
+
profile: _enum([
|
|
25897
|
+
"high",
|
|
25898
|
+
"mid",
|
|
25899
|
+
"low"
|
|
25900
|
+
]),
|
|
25901
|
+
offered: boolean(),
|
|
25902
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
25903
|
+
missingSources: array(number().int().positive()),
|
|
25904
|
+
/**
|
|
25905
|
+
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
25906
|
+
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
25907
|
+
* it is reported because nothing else in the system would ever say what the
|
|
25908
|
+
* grid came out as, and because it is the number an operator would otherwise
|
|
25909
|
+
* expect to type.
|
|
25910
|
+
*/
|
|
25911
|
+
canvas: string(),
|
|
25912
|
+
/**
|
|
25913
|
+
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
25914
|
+
*
|
|
25915
|
+
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
25916
|
+
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
25917
|
+
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
25918
|
+
* Default is `mid` + `low`.
|
|
25919
|
+
*/
|
|
25920
|
+
published: boolean()
|
|
25921
|
+
});
|
|
25922
|
+
var GridLayoutViewSchema = object({
|
|
25923
|
+
/** The persisted grid row this camera was declared from. */
|
|
25924
|
+
instanceId: string(),
|
|
25925
|
+
deviceId: number().int().nonnegative(),
|
|
25926
|
+
name: string(),
|
|
25927
|
+
/**
|
|
25928
|
+
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
25929
|
+
* its own from the cells and its sources' dimensions. The two numbers that
|
|
25930
|
+
* used to be here were a text field that silently decided both how much the
|
|
25931
|
+
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
25932
|
+
* came out as.
|
|
25933
|
+
*/
|
|
25934
|
+
fps: number().int(),
|
|
25935
|
+
cells: array(GridLayoutCellSchema),
|
|
25936
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
25937
|
+
profiles: array(GridProfileOfferSchema)
|
|
25938
|
+
});
|
|
25939
|
+
var GridLayoutPatchSchema = object({
|
|
25940
|
+
deviceId: number().int().nonnegative(),
|
|
25941
|
+
name: string().min(1).max(160).optional(),
|
|
25942
|
+
fps: number().int().min(1).max(60).optional(),
|
|
25943
|
+
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
25944
|
+
publishedProfiles: array(_enum([
|
|
25945
|
+
"high",
|
|
25946
|
+
"mid",
|
|
25947
|
+
"low"
|
|
25948
|
+
])).max(3).optional(),
|
|
25949
|
+
/**
|
|
25950
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
25951
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
25952
|
+
* for.
|
|
25953
|
+
*/
|
|
25954
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
25955
|
+
});
|
|
25956
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
25957
|
+
kind: "mutation",
|
|
25958
|
+
auth: "admin"
|
|
25959
|
+
});
|
|
25708
25960
|
object({
|
|
25709
25961
|
detected: boolean(),
|
|
25710
25962
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
@@ -26178,307 +26430,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
|
|
|
26178
26430
|
auth: "admin"
|
|
26179
26431
|
});
|
|
26180
26432
|
/**
|
|
26181
|
-
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
26182
|
-
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
26183
|
-
*
|
|
26184
|
-
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
26185
|
-
* footage ledger, our storage locations, our retention. This one has a
|
|
26186
|
-
* different authority — the camera's firmware — and per D62 it stores
|
|
26187
|
-
* nothing of its own. Every value here is read from the camera and every
|
|
26188
|
-
* write goes back to the camera; there is no CamStack-side mirror that
|
|
26189
|
-
* could disagree with the device.
|
|
26190
|
-
*
|
|
26191
|
-
* ## One shape, two firmwares
|
|
26192
|
-
*
|
|
26193
|
-
* Measured 2026-09-22 against the live fleet:
|
|
26194
|
-
*
|
|
26195
|
-
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
26196
|
-
* | --- | --- | --- |
|
|
26197
|
-
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
26198
|
-
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
26199
|
-
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
26200
|
-
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
26201
|
-
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
26202
|
-
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
26203
|
-
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
26204
|
-
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
26205
|
-
*
|
|
26206
|
-
* The two schedule models look different and are the same thing in
|
|
26207
|
-
* different coordinates: both answer "for this trigger, during which
|
|
26208
|
-
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
26209
|
-
* question in one shape — Hikvision's ranges map straight onto it,
|
|
26210
|
-
* Reolink's mask expands into hour-aligned windows.
|
|
26211
|
-
*
|
|
26212
|
-
* ## Union, not intersection
|
|
26213
|
-
*
|
|
26214
|
-
* **The same fields exist on every camera.** What differs per device is
|
|
26215
|
-
* which VALUES that device accepts, and that is what {@link
|
|
26216
|
-
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
26217
|
-
* per field plus the schedule's own limits. A control a camera cannot
|
|
26218
|
-
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
26219
|
-
* dead: disabled must not look like broken.
|
|
26220
|
-
*
|
|
26221
|
-
* ## Refusal by name
|
|
26222
|
-
*
|
|
26223
|
-
* A write a camera cannot honour is refused with a sentence the operator
|
|
26224
|
-
* can read — never accepted and dropped. Both providers refuse through
|
|
26225
|
-
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
26226
|
-
* one test, not two hand-written vendor opinions.
|
|
26227
|
-
*
|
|
26228
|
-
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
26229
|
-
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
26230
|
-
* injected from `status`) reports the live values, and a single
|
|
26231
|
-
* `setSettings` mutation applies a partial change. No hand-written
|
|
26232
|
-
* settings-contribution methods.
|
|
26233
|
-
*/
|
|
26234
|
-
/**
|
|
26235
|
-
* What makes the camera start recording during a window.
|
|
26236
|
-
*
|
|
26237
|
-
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
26238
|
-
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
26239
|
-
* object-class triggers are Reolink-only today and the smart-event ones
|
|
26240
|
-
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
26241
|
-
* firmwares measured — a camera that cannot record on a trigger simply
|
|
26242
|
-
* does not list it in `options.schedule.triggers`, and a window naming
|
|
26243
|
-
* it is REFUSED, not dropped.
|
|
26244
|
-
*/
|
|
26245
|
-
var RecordTriggerSchema = _enum([
|
|
26246
|
-
"continuous",
|
|
26247
|
-
"motion",
|
|
26248
|
-
"person",
|
|
26249
|
-
"vehicle",
|
|
26250
|
-
"animal",
|
|
26251
|
-
"lineCrossing",
|
|
26252
|
-
"intrusion",
|
|
26253
|
-
"loitering",
|
|
26254
|
-
"alarmInput"
|
|
26255
|
-
]);
|
|
26256
|
-
/**
|
|
26257
|
-
* One weekly recording window: "on `day`, from `startMinute` to
|
|
26258
|
-
* `endMinute`, record on `trigger`".
|
|
26259
|
-
*
|
|
26260
|
-
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
26261
|
-
* both firmwares enumerate). Minutes are local camera time since
|
|
26262
|
-
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
26263
|
-
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
26264
|
-
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
26265
|
-
*/
|
|
26266
|
-
var RecordWindowSchema = object({
|
|
26267
|
-
trigger: RecordTriggerSchema,
|
|
26268
|
-
day: number().int().min(0).max(6),
|
|
26269
|
-
startMinute: number().int().min(0).max(1439),
|
|
26270
|
-
endMinute: number().int().min(1).max(1440)
|
|
26271
|
-
});
|
|
26272
|
-
/** Status of one physical volume, as the camera itself describes it. */
|
|
26273
|
-
var OnboardStorageVolumeSchema = object({
|
|
26274
|
-
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
26275
|
-
id: string(),
|
|
26276
|
-
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
26277
|
-
label: string().optional(),
|
|
26278
|
-
status: _enum([
|
|
26279
|
-
"ok",
|
|
26280
|
-
"unformatted",
|
|
26281
|
-
"error",
|
|
26282
|
-
"offline",
|
|
26283
|
-
"unknown"
|
|
26284
|
-
]),
|
|
26285
|
-
/**
|
|
26286
|
-
* Total size in MB, or **null when the camera did not say**.
|
|
26287
|
-
*
|
|
26288
|
-
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
26289
|
-
* measurement (D393), and a card whose size is unknown must not be
|
|
26290
|
-
* rendered as a card of size zero.
|
|
26291
|
-
*/
|
|
26292
|
-
capacityMb: number().nullable(),
|
|
26293
|
-
/**
|
|
26294
|
-
* Free space in MB, or null when unknown.
|
|
26295
|
-
*
|
|
26296
|
-
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
26297
|
-
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
26298
|
-
* card converges on once it has wrapped. At loop steady state the
|
|
26299
|
-
* number is identical whether the camera recorded yesterday or stopped
|
|
26300
|
-
* a month ago.
|
|
26301
|
-
*/
|
|
26302
|
-
freeMb: number().nullable(),
|
|
26303
|
-
/** True when the camera reports the volume writable (`property` RW). */
|
|
26304
|
-
writable: boolean().optional()
|
|
26305
|
-
});
|
|
26306
|
-
object({
|
|
26307
|
-
storage: discriminatedUnion("kind", [
|
|
26308
|
-
object({
|
|
26309
|
-
kind: literal("present"),
|
|
26310
|
-
volumes: array(OnboardStorageVolumeSchema)
|
|
26311
|
-
}),
|
|
26312
|
-
object({
|
|
26313
|
-
kind: literal("absent"),
|
|
26314
|
-
reason: string()
|
|
26315
|
-
}),
|
|
26316
|
-
object({
|
|
26317
|
-
kind: literal("unknown"),
|
|
26318
|
-
reason: string()
|
|
26319
|
-
})
|
|
26320
|
-
]),
|
|
26321
|
-
tracks: array(object({
|
|
26322
|
-
id: string(),
|
|
26323
|
-
enabled: boolean(),
|
|
26324
|
-
isVideo: boolean(),
|
|
26325
|
-
/** From the camera's own track description. Null when it does not say. */
|
|
26326
|
-
codec: string().nullable(),
|
|
26327
|
-
resolution: string().nullable(),
|
|
26328
|
-
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
26329
|
-
overwriteWhenFull: boolean().nullable()
|
|
26330
|
-
})),
|
|
26331
|
-
/**
|
|
26332
|
-
* The track the write path targets — the enabled VIDEO one. Null when
|
|
26333
|
-
* no track could be identified, which is itself a refusal reason.
|
|
26334
|
-
*/
|
|
26335
|
-
primaryTrackId: string().nullable(),
|
|
26336
|
-
/** Master "record to the card at all" switch. */
|
|
26337
|
-
enabled: boolean().nullable(),
|
|
26338
|
-
overwriteWhenFull: boolean().nullable(),
|
|
26339
|
-
preRecordSec: number().nullable(),
|
|
26340
|
-
postRecordSec: number().nullable(),
|
|
26341
|
-
/** Length of one recorded file, in minutes. */
|
|
26342
|
-
segmentMinutes: number().nullable(),
|
|
26343
|
-
/** The primary track's weekly windows, flattened. */
|
|
26344
|
-
windows: array(RecordWindowSchema),
|
|
26345
|
-
/**
|
|
26346
|
-
* How many windows the camera described that CamStack could NOT read —
|
|
26347
|
-
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
26348
|
-
* name.
|
|
26349
|
-
*
|
|
26350
|
-
* A dropped window is work the reader threw away, and a schedule that
|
|
26351
|
-
* silently shows fewer rows than the camera holds is how an operator
|
|
26352
|
-
* saves back a schedule shorter than the one they were looking at
|
|
26353
|
-
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
26354
|
-
* that replaces it would delete what was not shown — which is why a
|
|
26355
|
-
* provider reporting a non-zero count also reports the schedule as not
|
|
26356
|
-
* writable.
|
|
26357
|
-
*/
|
|
26358
|
-
unreadableWindows: number(),
|
|
26359
|
-
/**
|
|
26360
|
-
* The camera is scheduled to record and has NO usable storage.
|
|
26361
|
-
*
|
|
26362
|
-
* A first-class fact because it is the fleet's most common silent
|
|
26363
|
-
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
26364
|
-
* to a card that is not there. Neither the schedule nor the storage
|
|
26365
|
-
* read says anything wrong on its own; only the pair does.
|
|
26366
|
-
*/
|
|
26367
|
-
recordingToNowhere: boolean(),
|
|
26368
|
-
lastFetchedAt: number()
|
|
26369
|
-
});
|
|
26370
|
-
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
26371
|
-
var RangeSchema = object({
|
|
26372
|
-
min: number(),
|
|
26373
|
-
max: number(),
|
|
26374
|
-
step: number()
|
|
26375
|
-
});
|
|
26376
|
-
/**
|
|
26377
|
-
* The values a camera actually takes for a numeric field, when they are a SET
|
|
26378
|
-
* rather than a range.
|
|
26379
|
-
*
|
|
26380
|
-
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
26381
|
-
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
26382
|
-
*
|
|
26383
|
-
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
26384
|
-
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
26385
|
-
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
26386
|
-
*
|
|
26387
|
-
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
26388
|
-
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
26389
|
-
* would forbid values the camera takes AND permit values it silently replaces
|
|
26390
|
-
* with 5 — wrong in both directions at once.
|
|
26391
|
-
*
|
|
26392
|
-
* `sentinel` names the member that is not a duration, so a surface can render
|
|
26393
|
-
* "no limit" instead of `2147483647` seconds.
|
|
26394
|
-
*/
|
|
26395
|
-
var AllowedValuesSchema = object({
|
|
26396
|
-
values: array(number()).min(1),
|
|
26397
|
-
sentinel: object({
|
|
26398
|
-
value: number(),
|
|
26399
|
-
meaning: _enum(["no-limit", "disabled"])
|
|
26400
|
-
}).optional()
|
|
26401
|
-
});
|
|
26402
|
-
/**
|
|
26403
|
-
* Per-field availability on ONE camera.
|
|
26404
|
-
*
|
|
26405
|
-
* The field exists on every camera — this says whether this one can be
|
|
26406
|
-
* read and whether it can be written, and `reason` says why not when
|
|
26407
|
-
* either is false. The UI renders the control DISABLED with the reason
|
|
26408
|
-
* rather than hiding it, so a limitation is legible instead of looking
|
|
26409
|
-
* like a missing feature.
|
|
26410
|
-
*/
|
|
26411
|
-
var OnboardFieldSupportSchema = object({
|
|
26412
|
-
readable: boolean(),
|
|
26413
|
-
writable: boolean(),
|
|
26414
|
-
/** Required whenever `readable` or `writable` is false. */
|
|
26415
|
-
reason: string().optional()
|
|
26416
|
-
});
|
|
26417
|
-
/** What this camera's schedule model can express. */
|
|
26418
|
-
var OnboardScheduleSupportSchema = object({
|
|
26419
|
-
support: OnboardFieldSupportSchema,
|
|
26420
|
-
/**
|
|
26421
|
-
* The smallest time step the camera can express, in minutes.
|
|
26422
|
-
*
|
|
26423
|
-
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
26424
|
-
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
26425
|
-
* window whose edges are not a multiple of this is REFUSED rather than
|
|
26426
|
-
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
26427
|
-
* and nothing says so.
|
|
26428
|
-
*/
|
|
26429
|
-
granularityMinutes: number(),
|
|
26430
|
-
/** Triggers this camera can record on. A window naming another is refused. */
|
|
26431
|
-
triggers: array(RecordTriggerSchema),
|
|
26432
|
-
/**
|
|
26433
|
-
* False when the camera stores ONE trigger per time range, so two
|
|
26434
|
-
* windows overlapping on the same day cannot carry different triggers.
|
|
26435
|
-
* True on Reolink, whose mask is per-trigger and independent.
|
|
26436
|
-
*/
|
|
26437
|
-
supportsOverlappingTriggers: boolean()
|
|
26438
|
-
});
|
|
26439
|
-
var RecordingOnboardOptionsSchema = object({
|
|
26440
|
-
enabled: OnboardFieldSupportSchema,
|
|
26441
|
-
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
26442
|
-
preRecordSec: OnboardFieldSupportSchema,
|
|
26443
|
-
preRecordSecRange: RangeSchema.optional(),
|
|
26444
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
26445
|
-
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
26446
|
-
postRecordSec: OnboardFieldSupportSchema,
|
|
26447
|
-
postRecordSecRange: RangeSchema.optional(),
|
|
26448
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
26449
|
-
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
26450
|
-
segmentMinutes: OnboardFieldSupportSchema,
|
|
26451
|
-
segmentMinutesRange: RangeSchema.optional(),
|
|
26452
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
26453
|
-
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
26454
|
-
schedule: OnboardScheduleSupportSchema
|
|
26455
|
-
});
|
|
26456
|
-
/**
|
|
26457
|
-
* A partial change. Every field optional.
|
|
26458
|
-
*
|
|
26459
|
-
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
26460
|
-
* silently ignore a field it cannot support — it refuses, by name,
|
|
26461
|
-
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
26462
|
-
* is the failure D62 exists to prevent: the operator believes the camera
|
|
26463
|
-
* is recording the way the form says, and it is not.
|
|
26464
|
-
*/
|
|
26465
|
-
var RecordingOnboardPatchSchema = object({
|
|
26466
|
-
enabled: boolean().optional(),
|
|
26467
|
-
overwriteWhenFull: boolean().optional(),
|
|
26468
|
-
preRecordSec: number().optional(),
|
|
26469
|
-
postRecordSec: number().optional(),
|
|
26470
|
-
segmentMinutes: number().optional(),
|
|
26471
|
-
/** The complete new window set for the primary track — not a delta. */
|
|
26472
|
-
windows: array(RecordWindowSchema).optional()
|
|
26473
|
-
});
|
|
26474
|
-
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
26475
|
-
deviceId: number(),
|
|
26476
|
-
settings: RecordingOnboardPatchSchema
|
|
26477
|
-
}), _void(), {
|
|
26478
|
-
kind: "mutation",
|
|
26479
|
-
auth: "admin"
|
|
26480
|
-
});
|
|
26481
|
-
/**
|
|
26482
26433
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
26483
26434
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
26484
26435
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -26572,30 +26523,6 @@ object({
|
|
|
26572
26523
|
eventCountSinceStart: number()
|
|
26573
26524
|
});
|
|
26574
26525
|
DeviceType.EventEmitter;
|
|
26575
|
-
var EventItemSchema = object({
|
|
26576
|
-
id: string(),
|
|
26577
|
-
type: string(),
|
|
26578
|
-
timestamp: number(),
|
|
26579
|
-
label: string().optional(),
|
|
26580
|
-
thumbnailUrl: string().optional(),
|
|
26581
|
-
clipUrl: string().optional(),
|
|
26582
|
-
metadata: record(string(), unknown()).optional()
|
|
26583
|
-
});
|
|
26584
|
-
DeviceType.Camera, method(object({
|
|
26585
|
-
deviceId: number(),
|
|
26586
|
-
from: number().optional(),
|
|
26587
|
-
to: number().optional(),
|
|
26588
|
-
limit: number().optional()
|
|
26589
|
-
}), array(EventItemSchema)), method(object({
|
|
26590
|
-
deviceId: number(),
|
|
26591
|
-
eventId: string()
|
|
26592
|
-
}), object({
|
|
26593
|
-
base64: string(),
|
|
26594
|
-
contentType: string()
|
|
26595
|
-
}).nullable()), method(object({
|
|
26596
|
-
deviceId: number(),
|
|
26597
|
-
eventId: string()
|
|
26598
|
-
}), string().nullable());
|
|
26599
26526
|
var IdentitySchema = object({
|
|
26600
26527
|
id: string(),
|
|
26601
26528
|
name: string(),
|
|
@@ -28267,143 +28194,6 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
28267
28194
|
lastChangedAt: number()
|
|
28268
28195
|
});
|
|
28269
28196
|
/**
|
|
28270
|
-
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28271
|
-
* page.
|
|
28272
|
-
*
|
|
28273
|
-
* ## Why this is a capability and not an addon settings schema
|
|
28274
|
-
*
|
|
28275
|
-
* It was one, and it did not render. The addon declared the editor as a
|
|
28276
|
-
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28277
|
-
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28278
|
-
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28279
|
-
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
28280
|
-
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
28281
|
-
* not on it "falls off silently".
|
|
28282
|
-
*
|
|
28283
|
-
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
28284
|
-
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
28285
|
-
* beside PTZ and motion zones on the camera itself. The device page is
|
|
28286
|
-
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
28287
|
-
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
28288
|
-
* from `getDeviceSettingsContribution`.
|
|
28289
|
-
*
|
|
28290
|
-
* Seven other widgets are still declared the other way, through a
|
|
28291
|
-
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
28292
|
-
* gives the addon no say in where its own panel lands and no way to decline
|
|
28293
|
-
* for a device the panel does not suit, which is why this one does not use it.
|
|
28294
|
-
*
|
|
28295
|
-
* ## Why one addon may implement it
|
|
28296
|
-
*
|
|
28297
|
-
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
28298
|
-
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
28299
|
-
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
28300
|
-
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
28301
|
-
* reached only by a caller that already knew the addon id.
|
|
28302
|
-
*
|
|
28303
|
-
* ## The tab
|
|
28304
|
-
*
|
|
28305
|
-
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
28306
|
-
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
28307
|
-
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
28308
|
-
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
28309
|
-
* next to "PTZ").
|
|
28310
|
-
*/
|
|
28311
|
-
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
28312
|
-
var GridNormalizedRectSchema = object({
|
|
28313
|
-
x: number().min(0).max(1),
|
|
28314
|
-
y: number().min(0).max(1),
|
|
28315
|
-
width: number().gt(0).max(1),
|
|
28316
|
-
height: number().gt(0).max(1)
|
|
28317
|
-
});
|
|
28318
|
-
/**
|
|
28319
|
-
* One source camera, the part of its picture taken, and where that part lands.
|
|
28320
|
-
*
|
|
28321
|
-
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
28322
|
-
* — a profile switch, a firmware update, a substream that comes back different
|
|
28323
|
-
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
28324
|
-
* which is the class of bug nobody files.
|
|
28325
|
-
*/
|
|
28326
|
-
var GridLayoutCellSchema = object({
|
|
28327
|
-
deviceId: number().int().positive(),
|
|
28328
|
-
/** The part of the SOURCE taken, normalized against the source. */
|
|
28329
|
-
source: GridNormalizedRectSchema,
|
|
28330
|
-
/** Where it lands, normalized against the CANVAS. */
|
|
28331
|
-
cell: GridNormalizedRectSchema
|
|
28332
|
-
});
|
|
28333
|
-
/**
|
|
28334
|
-
* Which profiles this grid can actually compose, and why not.
|
|
28335
|
-
*
|
|
28336
|
-
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
28337
|
-
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
28338
|
-
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
28339
|
-
* low" is, and it is the one an operator can act on.
|
|
28340
|
-
*/
|
|
28341
|
-
var GridProfileOfferSchema = object({
|
|
28342
|
-
profile: _enum([
|
|
28343
|
-
"high",
|
|
28344
|
-
"mid",
|
|
28345
|
-
"low"
|
|
28346
|
-
]),
|
|
28347
|
-
offered: boolean(),
|
|
28348
|
-
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
28349
|
-
missingSources: array(number().int().positive()),
|
|
28350
|
-
/**
|
|
28351
|
-
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
28352
|
-
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
28353
|
-
* it is reported because nothing else in the system would ever say what the
|
|
28354
|
-
* grid came out as, and because it is the number an operator would otherwise
|
|
28355
|
-
* expect to type.
|
|
28356
|
-
*/
|
|
28357
|
-
canvas: string(),
|
|
28358
|
-
/**
|
|
28359
|
-
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
28360
|
-
*
|
|
28361
|
-
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
28362
|
-
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
28363
|
-
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
28364
|
-
* Default is `mid` + `low`.
|
|
28365
|
-
*/
|
|
28366
|
-
published: boolean()
|
|
28367
|
-
});
|
|
28368
|
-
var GridLayoutViewSchema = object({
|
|
28369
|
-
/** The persisted grid row this camera was declared from. */
|
|
28370
|
-
instanceId: string(),
|
|
28371
|
-
deviceId: number().int().nonnegative(),
|
|
28372
|
-
name: string(),
|
|
28373
|
-
/**
|
|
28374
|
-
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
28375
|
-
* its own from the cells and its sources' dimensions. The two numbers that
|
|
28376
|
-
* used to be here were a text field that silently decided both how much the
|
|
28377
|
-
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
28378
|
-
* came out as.
|
|
28379
|
-
*/
|
|
28380
|
-
fps: number().int(),
|
|
28381
|
-
cells: array(GridLayoutCellSchema),
|
|
28382
|
-
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
28383
|
-
profiles: array(GridProfileOfferSchema)
|
|
28384
|
-
});
|
|
28385
|
-
var GridLayoutPatchSchema = object({
|
|
28386
|
-
deviceId: number().int().nonnegative(),
|
|
28387
|
-
name: string().min(1).max(160).optional(),
|
|
28388
|
-
fps: number().int().min(1).max(60).optional(),
|
|
28389
|
-
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
28390
|
-
publishedProfiles: array(_enum([
|
|
28391
|
-
"high",
|
|
28392
|
-
"mid",
|
|
28393
|
-
"low"
|
|
28394
|
-
])).max(3).optional(),
|
|
28395
|
-
/**
|
|
28396
|
-
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
28397
|
-
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
28398
|
-
* for.
|
|
28399
|
-
*/
|
|
28400
|
-
cells: array(GridLayoutCellSchema).max(16)
|
|
28401
|
-
});
|
|
28402
|
-
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
28403
|
-
kind: "mutation",
|
|
28404
|
-
auth: "admin"
|
|
28405
|
-
});
|
|
28406
|
-
/**
|
|
28407
28197
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
28408
28198
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
28409
28199
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -30215,37 +30005,37 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
30215
30005
|
kind: "mutation",
|
|
30216
30006
|
auth: "admin"
|
|
30217
30007
|
});
|
|
30218
|
-
/**
|
|
30219
|
-
* `recording` cap — footage availability + HLS playback manifests + per-device
|
|
30220
|
-
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
30221
|
-
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
30222
|
-
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
30223
|
-
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
30224
|
-
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
30225
|
-
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
30226
|
-
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
30227
|
-
*/
|
|
30228
|
-
var RecordingStatusSchema = object({
|
|
30229
|
-
deviceId: number(),
|
|
30230
|
-
enabled: boolean(),
|
|
30231
|
-
/** THE derived storage mode, from the one definition
|
|
30232
|
-
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30233
|
-
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30234
|
-
activeMode: RecordingStorageModeSchema,
|
|
30235
|
-
nodeId: string(),
|
|
30236
|
-
storageBytes: number()
|
|
30237
|
-
});
|
|
30238
30008
|
var RecordingRangeSchema = object({
|
|
30239
30009
|
profile: string(),
|
|
30240
30010
|
startMs: number(),
|
|
30241
30011
|
endMs: number()
|
|
30242
30012
|
});
|
|
30013
|
+
/**
|
|
30014
|
+
* How a source ANSWERED, on every singular read of this cap.
|
|
30015
|
+
*
|
|
30016
|
+
* `'read'` — it looked. `ranges: []` / `days: []` is then a real claim: this
|
|
30017
|
+
* source has no coverage in the window. `'unreadable'` — nobody could look
|
|
30018
|
+
* (the camera was unreachable, the calendar rung threw, the location is
|
|
30019
|
+
* unmounted, the node is still on the old build), and the emptiness beside it
|
|
30020
|
+
* means NOTHING.
|
|
30021
|
+
*
|
|
30022
|
+
* The batch rows have carried this since the grid existed; the SINGULAR
|
|
30023
|
+
* answers gained it with the collection (D625 §10.4), because they are the
|
|
30024
|
+
* ones the single-camera picker uses and because a half-converted fleet makes
|
|
30025
|
+
* "nobody looked" common for the length of a deploy. Without it the timeline
|
|
30026
|
+
* has no vocabulary for it, and `(data ?? [])` in a viewer turns a rollout into
|
|
30027
|
+
* a fleet of cameras that appear to have lost their recordings (D315, D393).
|
|
30028
|
+
*/
|
|
30029
|
+
var RecordingReadSchema = _enum(["read", "unreadable"]);
|
|
30243
30030
|
var RecordingAvailabilitySchema = object({
|
|
30244
30031
|
deviceId: number(),
|
|
30032
|
+
/** See {@link RecordingReadSchema}. An `'unreadable'` answer carries an empty
|
|
30033
|
+
* `ranges` that means nothing — never draw it as "no footage". */
|
|
30034
|
+
read: RecordingReadSchema,
|
|
30245
30035
|
ranges: array(RecordingRangeSchema),
|
|
30246
30036
|
/**
|
|
30247
|
-
* Every profile this camera has footage in — not only the one
|
|
30248
|
-
* describes (D433).
|
|
30037
|
+
* Every profile this camera has footage in AT THIS SOURCE — not only the one
|
|
30038
|
+
* `ranges` describes (D433).
|
|
30249
30039
|
*
|
|
30250
30040
|
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30251
30041
|
* and enumerating all of them triples the directory reads for a bar that
|
|
@@ -30262,15 +30052,285 @@ var RecordingAvailabilitySchema = object({
|
|
|
30262
30052
|
});
|
|
30263
30053
|
var RecordingDaysSchema = object({
|
|
30264
30054
|
deviceId: number(),
|
|
30055
|
+
/** See {@link RecordingReadSchema}. `days: []` on an `'unreadable'` answer is
|
|
30056
|
+
* "nobody could look", and the date-picker must not spell it the same as
|
|
30057
|
+
* "no footage this month". */
|
|
30058
|
+
read: RecordingReadSchema,
|
|
30265
30059
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
30266
30060
|
days: array(number())
|
|
30267
30061
|
});
|
|
30062
|
+
var RecordingManifestSchema = object({
|
|
30063
|
+
deviceId: number(),
|
|
30064
|
+
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
30065
|
+
localMasterPath: string().nullable(),
|
|
30066
|
+
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
30067
|
+
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
30068
|
+
* scoped playback token in its path. */
|
|
30069
|
+
playbackUrl: string().nullable(),
|
|
30070
|
+
/**
|
|
30071
|
+
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
30072
|
+
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
30073
|
+
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
30074
|
+
* there is no recording / server.
|
|
30075
|
+
*/
|
|
30076
|
+
playbackEndpoints: array(string())
|
|
30077
|
+
});
|
|
30078
|
+
var RecordingSourceAvailabilitySchema = object({
|
|
30079
|
+
state: _enum([
|
|
30080
|
+
"ok",
|
|
30081
|
+
"sleeping",
|
|
30082
|
+
"unreachable",
|
|
30083
|
+
"no-storage",
|
|
30084
|
+
"index-empty"
|
|
30085
|
+
]),
|
|
30086
|
+
/** Free text, shown verbatim. Names the camera's own refusal when there is one. */
|
|
30087
|
+
reason: string().optional(),
|
|
30088
|
+
/** When this source's coverage was last CONFIRMED. A cached answer is never
|
|
30089
|
+
* drawn as current: the surface shows the age whenever it is older than the
|
|
30090
|
+
* refresh interval. The clip catalog's `catalogAsOf`, under the name the
|
|
30091
|
+
* timeline uses for it. */
|
|
30092
|
+
coverageAsOf: number().optional()
|
|
30093
|
+
});
|
|
30094
|
+
/**
|
|
30095
|
+
* One SOURCE of recorded coverage for a camera — a row of the picker.
|
|
30096
|
+
*
|
|
30097
|
+
* A provider lists the sources IT serves for that device, and answers for each
|
|
30098
|
+
* of them whether it can answer at all. A provider with nothing to offer on a
|
|
30099
|
+
* camera returns `[]` — it is not that camera's business. The five availability
|
|
30100
|
+
* states are `ClipSourceAvailability`'s verbatim: they mean exactly the same
|
|
30101
|
+
* things about a coverage index as about a clip catalog, and `sleeping` in
|
|
30102
|
+
* particular is what stops a battery camera being woken to paint a bar.
|
|
30103
|
+
*/
|
|
30104
|
+
var RecordingSourceSchema = object({
|
|
30105
|
+
/** The source id. {@link RECORDING_SOURCE_CAMSTACK} for ours (RESERVED), a
|
|
30106
|
+
* vendor namespace (`native:reolink:onboard`, …) for a camera's own store. */
|
|
30107
|
+
source: string(),
|
|
30108
|
+
/** Operator-facing name of the source ("CamStack recordings", "SD card"). */
|
|
30109
|
+
label: string(),
|
|
30110
|
+
/**
|
|
30111
|
+
* The addon that SERVES this row, and the value a later call passes as
|
|
30112
|
+
* `provider`.
|
|
30113
|
+
*
|
|
30114
|
+
* Optional for version skew only. The collection dispatcher stamps it from
|
|
30115
|
+
* the registry, so a row that travelled through the fan-out carries the
|
|
30116
|
+
* authoritative id whatever the provider filled in (D557 §4).
|
|
30117
|
+
*/
|
|
30118
|
+
addonId: string().optional(),
|
|
30119
|
+
availability: RecordingSourceAvailabilitySchema
|
|
30120
|
+
});
|
|
30121
|
+
/**
|
|
30122
|
+
* What a surface may DRAW for this (camera, source) — D612's rule applied to a
|
|
30123
|
+
* timeline: **the source declares what it can do, and the surface draws what
|
|
30124
|
+
* was declared. It never assumes, and never offers a gesture it will then
|
|
30125
|
+
* refuse.** D612 exists because `8` and `16` were offered as clip rates, the
|
|
30126
|
+
* broker clamped them to `4`, and no line anywhere said so.
|
|
30127
|
+
*
|
|
30128
|
+
* Asked once per (camera, source) before anything is drawn — never replaced by
|
|
30129
|
+
* a constant the surface keeps, which is the second authority D612 ends.
|
|
30130
|
+
*/
|
|
30131
|
+
var RecordingSourceOptionsSchema = object({
|
|
30132
|
+
/** How this source's media reaches the player.
|
|
30133
|
+
* `archive` = our own indexed segment tree; `stream` = the provider's
|
|
30134
|
+
* forward-only fMP4 (D597); `realtime` = a replay bound to wall clock. */
|
|
30135
|
+
transport: _enum([
|
|
30136
|
+
"archive",
|
|
30137
|
+
"stream",
|
|
30138
|
+
"realtime"
|
|
30139
|
+
]),
|
|
30140
|
+
/** What the BAR means. `continuous` = gaps are holes in a recording;
|
|
30141
|
+
* `sparse` = gaps are the absence of one, and must be drawn as such.
|
|
30142
|
+
*
|
|
30143
|
+
* Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
|
|
30144
|
+
* of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
|
|
30145
|
+
* pair, and ours answers it per camera from `deriveRecordingMode`. */
|
|
30146
|
+
coverage: _enum(["continuous", "sparse"]),
|
|
30147
|
+
/** Where the playhead may be put.
|
|
30148
|
+
* `free` — anywhere, to the frame.
|
|
30149
|
+
* `forward` — only ahead of the current position.
|
|
30150
|
+
* `segment` — a position SNAPS to the head of the covering segment; a finer
|
|
30151
|
+
* ask is accepted by the camera and SILENTLY IGNORED. Measured
|
|
30152
|
+
* on 1436 (Hikvision V5.7.1, 2026-09-23): a window-narrowed
|
|
30153
|
+
* `ContentMgmt/search` returns a row and a `playbackURI`, the
|
|
30154
|
+
* replay opens 200 and delivers media — and the burned-in OSD of
|
|
30155
|
+
* the first frame reads the SEGMENT HEAD every time. Calling
|
|
30156
|
+
* that `forward` would tell the surface it may move the playhead
|
|
30157
|
+
* ahead within a loaded segment, which it may not. */
|
|
30158
|
+
seek: _enum([
|
|
30159
|
+
"free",
|
|
30160
|
+
"forward",
|
|
30161
|
+
"segment"
|
|
30162
|
+
]),
|
|
30163
|
+
/** Frame-step BACKWARD is meaningful. */
|
|
30164
|
+
stepBack: boolean(),
|
|
30165
|
+
/** Whether the drag-scrub gesture is served, as opposed to refused by name. */
|
|
30166
|
+
scrub: boolean(),
|
|
30167
|
+
/** Deliverable rates, ascending, always containing `1`. The surface draws its
|
|
30168
|
+
* picker from this and from NOTHING else (D612, D620, D621). `0` is not a
|
|
30169
|
+
* member: pause is the absence of a rate. */
|
|
30170
|
+
rates: array(number().positive()).min(1).readonly(),
|
|
30171
|
+
/** TRUE when a read of this source HOLDS the camera's only playback session.
|
|
30172
|
+
* A surface with this set makes at most ONE read at a time and draws no
|
|
30173
|
+
* scrub-thumbnail strip, no hover preview, no prefetch and no background
|
|
30174
|
+
* refresh. The precedent is exact and expensive: filling one screen of
|
|
30175
|
+
* Hikvision thumbnails at 1.01× realtime consumed fifteen minutes of that
|
|
30176
|
+
* camera's only playback session (1.2.126, reported within minutes), and a
|
|
30177
|
+
* timeline is a screenful of reads by construction. */
|
|
30178
|
+
exclusive: boolean()
|
|
30179
|
+
});
|
|
30180
|
+
/**
|
|
30181
|
+
* How to PLAY the instant that was asked for, from the chosen source.
|
|
30182
|
+
*
|
|
30183
|
+
* No new media transport is built for onboard sources: the `clip` arm is a
|
|
30184
|
+
* DELEGATION to the `videoclips` transport that vendor already has (D597 /
|
|
30185
|
+
* D616 / D617). The onboard half of this collection is a PROJECTION of
|
|
30186
|
+
* `videoclips` for coverage and a delegation to it for bytes.
|
|
30187
|
+
*/
|
|
30188
|
+
var RecordingPlaybackSchema = discriminatedUnion("kind", [
|
|
30189
|
+
object({
|
|
30190
|
+
kind: literal("hls"),
|
|
30191
|
+
manifest: RecordingManifestSchema
|
|
30192
|
+
}),
|
|
30193
|
+
object({
|
|
30194
|
+
kind: literal("clip"),
|
|
30195
|
+
/** The `videoclips` source namespace this clip id belongs to. */
|
|
30196
|
+
source: string(),
|
|
30197
|
+
clipId: string(),
|
|
30198
|
+
/** Where this clip actually STARTS. On a `seek: 'segment'` source the
|
|
30199
|
+
* playhead lands here, not at the requested instant — the surface must be
|
|
30200
|
+
* TOLD, not left to discover it from a burned-in OSD. */
|
|
30201
|
+
startsAtMs: number()
|
|
30202
|
+
}),
|
|
30203
|
+
object({
|
|
30204
|
+
kind: literal("none"),
|
|
30205
|
+
reason: string()
|
|
30206
|
+
})
|
|
30207
|
+
]);
|
|
30208
|
+
DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceSchema).readonly(), {
|
|
30209
|
+
kind: "query",
|
|
30210
|
+
auth: "protected"
|
|
30211
|
+
}), method(object({
|
|
30212
|
+
deviceId: number(),
|
|
30213
|
+
/**
|
|
30214
|
+
* WHICH provider to ask — the `addonId` a {@link RecordingSourceSchema}
|
|
30215
|
+
* row carries, never a source id and never a list. **REQUIRED**, in the
|
|
30216
|
+
* schema, where the generated types make it unomittable rather than
|
|
30217
|
+
* merely discouraged (D554 amended).
|
|
30218
|
+
*
|
|
30219
|
+
* It was learned the expensive way on `videoclips.listClips`: measured
|
|
30220
|
+
* on the live hub 2026-09-20, device 592 bound to `recorder` AND
|
|
30221
|
+
* `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
|
|
30222
|
+
* three from each source, merged — `device-collection-dispatch.ts`
|
|
30223
|
+
* leaves an unpinned fan-out un-narrowed, so absence buys the union the
|
|
30224
|
+
* method exists not to be. An un-narrowed `getAvailability` would do
|
|
30225
|
+
* that to a TIMELINE: our ranges and the card's clips unioned into one
|
|
30226
|
+
* bar, which is "two sources are never drawn together" broken in the
|
|
30227
|
+
* one place it matters most.
|
|
30228
|
+
*
|
|
30229
|
+
* A provider the device is not bound to is refused BY NAME (D552's
|
|
30230
|
+
* `rejectUnresolvedAddonPin`), never answered by another one.
|
|
30231
|
+
*/
|
|
30232
|
+
provider: string().min(1),
|
|
30233
|
+
fromMs: number(),
|
|
30234
|
+
toMs: number(),
|
|
30235
|
+
/**
|
|
30236
|
+
* Answer for THIS profile instead of the source's preferred one (D433).
|
|
30237
|
+
* Absent keeps the timeline's behaviour — one bar, one profile, one set
|
|
30238
|
+
* of reads. `profilesWithFootage` on the answer says what may be asked
|
|
30239
|
+
* for.
|
|
30240
|
+
*/
|
|
30241
|
+
profile: string().optional()
|
|
30242
|
+
}), RecordingAvailabilitySchema, {
|
|
30243
|
+
kind: "query",
|
|
30244
|
+
auth: "protected"
|
|
30245
|
+
}), method(object({
|
|
30246
|
+
deviceId: number(),
|
|
30247
|
+
provider: string().min(1),
|
|
30248
|
+
fromMs: number(),
|
|
30249
|
+
toMs: number(),
|
|
30250
|
+
tzOffsetMinutes: number()
|
|
30251
|
+
}), RecordingDaysSchema, {
|
|
30252
|
+
kind: "query",
|
|
30253
|
+
auth: "protected"
|
|
30254
|
+
}), method(object({
|
|
30255
|
+
deviceId: number(),
|
|
30256
|
+
provider: string().min(1),
|
|
30257
|
+
fromMs: number(),
|
|
30258
|
+
toMs: number(),
|
|
30259
|
+
profile: CamProfileSchema.optional()
|
|
30260
|
+
}), RecordingPlaybackSchema, {
|
|
30261
|
+
kind: "query",
|
|
30262
|
+
auth: "protected"
|
|
30263
|
+
}), method(object({
|
|
30264
|
+
deviceId: number(),
|
|
30265
|
+
provider: string().min(1)
|
|
30266
|
+
}), RecordingSourceOptionsSchema, {
|
|
30267
|
+
kind: "query",
|
|
30268
|
+
auth: "protected"
|
|
30269
|
+
});
|
|
30270
|
+
/**
|
|
30271
|
+
* `recording-archive` — OUR archive, and the intent that fills it.
|
|
30272
|
+
*
|
|
30273
|
+
* The system-singleton half of the 2026-09-24 cut (D625). `recording` used to
|
|
30274
|
+
* be one 33-method system singleton holding two unrelated subjects: three
|
|
30275
|
+
* per-camera READS about coverage and playback, and everything else — storage
|
|
30276
|
+
* locations, retention, relocation, rebalance, the ops log, the placement
|
|
30277
|
+
* table and the byte-plane primitives our scrub and export are built on.
|
|
30278
|
+
*
|
|
30279
|
+
* The reads became a device-scoped COLLECTION, so a camera's own card can be a
|
|
30280
|
+
* source beside ours (`recording.cap.ts`). Everything that is about OUR store,
|
|
30281
|
+
* or unimplementable by a camera, stayed here.
|
|
30282
|
+
*
|
|
30283
|
+
* ## On the name
|
|
30284
|
+
*
|
|
30285
|
+
* `recording-storage` was the obvious choice and is wrong: this cap also holds
|
|
30286
|
+
* `getDeviceConfig`/`setDeviceConfig`, which are recording INTENT — bands,
|
|
30287
|
+
* retention, the D62 switch authority — and a name that says "storage" invites
|
|
30288
|
+
* the next reader to move them out again. An archive is a thing we keep, and
|
|
30289
|
+
* what we keep it under is a policy; the name covers both halves honestly and
|
|
30290
|
+
* sits in the existing family (`recording-onboard`, `recording-export`,
|
|
30291
|
+
* `recording-signal`).
|
|
30292
|
+
*
|
|
30293
|
+
* ## What must NOT happen to it
|
|
30294
|
+
*
|
|
30295
|
+
* It stays a SINGLETON. It is registered by `recorder`, which is
|
|
30296
|
+
* `placement: 'any-node'` and runs on every recording node; the hub dispatches
|
|
30297
|
+
* to one of them. Putting the ledger, the placement table or the relocation
|
|
30298
|
+
* jobs behind a fan-out is the one genuinely dangerous move in this cut.
|
|
30299
|
+
*
|
|
30300
|
+
* `getDeviceConfig` / `setDeviceConfig` in particular are the D62 recording
|
|
30301
|
+
* authority (`CameraSwitch.authority`). If a write reached a different provider
|
|
30302
|
+
* than the read — which a collection fan-out permits — two authorities would
|
|
30303
|
+
* decide when one camera records, and the symptom (recording silently off, or
|
|
30304
|
+
* a `bands` array clobbered by a partial write) is durable and silent. Keeping
|
|
30305
|
+
* them here means the worst case during a rollout is a 412: the switch refuses
|
|
30306
|
+
* to flip and SAYS so. **Do not move them into the collection, at any point,
|
|
30307
|
+
* for any reason.**
|
|
30308
|
+
*
|
|
30309
|
+
* ## The two batch reads
|
|
30310
|
+
*
|
|
30311
|
+
* `getAvailabilityBatch` / `getDaysWithRecordingsBatch` take `deviceIds:
|
|
30312
|
+
* number[]` with no single `deviceId`, and a device-scoped mount routes
|
|
30313
|
+
* through `getProviderForDevice(deviceId)` — there is nothing for it to route
|
|
30314
|
+
* on. They stay here, and on this cap the batch is explicitly OURS: a grid has
|
|
30315
|
+
* no per-camera picker, and a caller that wants another source's coverage asks
|
|
30316
|
+
* `recording.getAvailability` per device with that source's `provider`.
|
|
30317
|
+
*/
|
|
30318
|
+
var RecordingStatusSchema = object({
|
|
30319
|
+
deviceId: number(),
|
|
30320
|
+
enabled: boolean(),
|
|
30321
|
+
/** THE derived storage mode, from the one definition
|
|
30322
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30323
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30324
|
+
activeMode: RecordingStorageModeSchema,
|
|
30325
|
+
nodeId: string(),
|
|
30326
|
+
storageBytes: number()
|
|
30327
|
+
});
|
|
30268
30328
|
/**
|
|
30269
30329
|
* One camera's row in a `getAvailabilityBatch` answer.
|
|
30270
30330
|
*
|
|
30271
|
-
* `ranges` is EXACTLY what `getAvailability` returns for that camera
|
|
30272
|
-
* batch collapses the transport, not the work — plus the
|
|
30273
|
-
*
|
|
30331
|
+
* `ranges` is EXACTLY what `recording.getAvailability` returns for that camera
|
|
30332
|
+
* at OUR source — the batch collapses the transport, not the work — plus the
|
|
30333
|
+
* `read` mark the singular answer now carries too (D625):
|
|
30274
30334
|
*
|
|
30275
30335
|
* - `read: 'read'` — answered. `ranges: []` means "read, and this camera has
|
|
30276
30336
|
* no footage in the window", which is a real claim.
|
|
@@ -30302,22 +30362,6 @@ var RecordingDaysForDeviceSchema = object({
|
|
|
30302
30362
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
30303
30363
|
days: array(number()).readonly()
|
|
30304
30364
|
});
|
|
30305
|
-
var RecordingManifestSchema = object({
|
|
30306
|
-
deviceId: number(),
|
|
30307
|
-
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
30308
|
-
localMasterPath: string().nullable(),
|
|
30309
|
-
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
30310
|
-
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
30311
|
-
* scoped playback token in its path. */
|
|
30312
|
-
playbackUrl: string().nullable(),
|
|
30313
|
-
/**
|
|
30314
|
-
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
30315
|
-
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
30316
|
-
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
30317
|
-
* there is no recording / server.
|
|
30318
|
-
*/
|
|
30319
|
-
playbackEndpoints: array(string())
|
|
30320
|
-
});
|
|
30321
30365
|
/**
|
|
30322
30366
|
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
30323
30367
|
* across every profile and every resolvable location on this node.
|
|
@@ -30576,34 +30620,12 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
30576
30620
|
segmentEndMs: number()
|
|
30577
30621
|
})]);
|
|
30578
30622
|
method(object({
|
|
30579
|
-
deviceId: number(),
|
|
30580
|
-
fromMs: number(),
|
|
30581
|
-
toMs: number(),
|
|
30582
|
-
/**
|
|
30583
|
-
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
30584
|
-
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
30585
|
-
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
30586
|
-
* for.
|
|
30587
|
-
*/
|
|
30588
|
-
profile: string().optional()
|
|
30589
|
-
}), RecordingAvailabilitySchema, {
|
|
30590
|
-
kind: "query",
|
|
30591
|
-
auth: "protected"
|
|
30592
|
-
}), method(object({
|
|
30593
30623
|
deviceIds: array(number()).min(1).max(200),
|
|
30594
30624
|
fromMs: number(),
|
|
30595
30625
|
toMs: number()
|
|
30596
30626
|
}), array(RecordingAvailabilityForDeviceSchema).readonly(), {
|
|
30597
30627
|
kind: "query",
|
|
30598
30628
|
auth: "protected"
|
|
30599
|
-
}), method(object({
|
|
30600
|
-
deviceId: number(),
|
|
30601
|
-
fromMs: number(),
|
|
30602
|
-
toMs: number(),
|
|
30603
|
-
tzOffsetMinutes: number()
|
|
30604
|
-
}), RecordingDaysSchema, {
|
|
30605
|
-
kind: "query",
|
|
30606
|
-
auth: "protected"
|
|
30607
30629
|
}), method(object({
|
|
30608
30630
|
deviceIds: array(number()).min(1).max(200),
|
|
30609
30631
|
fromMs: number(),
|
|
@@ -30612,13 +30634,6 @@ method(object({
|
|
|
30612
30634
|
}), array(RecordingDaysForDeviceSchema).readonly(), {
|
|
30613
30635
|
kind: "query",
|
|
30614
30636
|
auth: "protected"
|
|
30615
|
-
}), method(object({
|
|
30616
|
-
deviceId: number(),
|
|
30617
|
-
fromMs: number(),
|
|
30618
|
-
toMs: number()
|
|
30619
|
-
}), RecordingManifestSchema, {
|
|
30620
|
-
kind: "query",
|
|
30621
|
-
auth: "protected"
|
|
30622
30637
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
30623
30638
|
kind: "query",
|
|
30624
30639
|
auth: "admin"
|
|
@@ -31066,6 +31081,307 @@ method(object({
|
|
|
31066
31081
|
auth: "protected"
|
|
31067
31082
|
});
|
|
31068
31083
|
/**
|
|
31084
|
+
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
31085
|
+
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
31086
|
+
*
|
|
31087
|
+
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
31088
|
+
* footage ledger, our storage locations, our retention. This one has a
|
|
31089
|
+
* different authority — the camera's firmware — and per D62 it stores
|
|
31090
|
+
* nothing of its own. Every value here is read from the camera and every
|
|
31091
|
+
* write goes back to the camera; there is no CamStack-side mirror that
|
|
31092
|
+
* could disagree with the device.
|
|
31093
|
+
*
|
|
31094
|
+
* ## One shape, two firmwares
|
|
31095
|
+
*
|
|
31096
|
+
* Measured 2026-09-22 against the live fleet:
|
|
31097
|
+
*
|
|
31098
|
+
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
31099
|
+
* | --- | --- | --- |
|
|
31100
|
+
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
31101
|
+
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
31102
|
+
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
31103
|
+
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
31104
|
+
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
31105
|
+
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
31106
|
+
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
31107
|
+
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
31108
|
+
*
|
|
31109
|
+
* The two schedule models look different and are the same thing in
|
|
31110
|
+
* different coordinates: both answer "for this trigger, during which
|
|
31111
|
+
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
31112
|
+
* question in one shape — Hikvision's ranges map straight onto it,
|
|
31113
|
+
* Reolink's mask expands into hour-aligned windows.
|
|
31114
|
+
*
|
|
31115
|
+
* ## Union, not intersection
|
|
31116
|
+
*
|
|
31117
|
+
* **The same fields exist on every camera.** What differs per device is
|
|
31118
|
+
* which VALUES that device accepts, and that is what {@link
|
|
31119
|
+
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
31120
|
+
* per field plus the schedule's own limits. A control a camera cannot
|
|
31121
|
+
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
31122
|
+
* dead: disabled must not look like broken.
|
|
31123
|
+
*
|
|
31124
|
+
* ## Refusal by name
|
|
31125
|
+
*
|
|
31126
|
+
* A write a camera cannot honour is refused with a sentence the operator
|
|
31127
|
+
* can read — never accepted and dropped. Both providers refuse through
|
|
31128
|
+
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
31129
|
+
* one test, not two hand-written vendor opinions.
|
|
31130
|
+
*
|
|
31131
|
+
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
31132
|
+
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
31133
|
+
* injected from `status`) reports the live values, and a single
|
|
31134
|
+
* `setSettings` mutation applies a partial change. No hand-written
|
|
31135
|
+
* settings-contribution methods.
|
|
31136
|
+
*/
|
|
31137
|
+
/**
|
|
31138
|
+
* What makes the camera start recording during a window.
|
|
31139
|
+
*
|
|
31140
|
+
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
31141
|
+
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
31142
|
+
* object-class triggers are Reolink-only today and the smart-event ones
|
|
31143
|
+
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
31144
|
+
* firmwares measured — a camera that cannot record on a trigger simply
|
|
31145
|
+
* does not list it in `options.schedule.triggers`, and a window naming
|
|
31146
|
+
* it is REFUSED, not dropped.
|
|
31147
|
+
*/
|
|
31148
|
+
var RecordTriggerSchema = _enum([
|
|
31149
|
+
"continuous",
|
|
31150
|
+
"motion",
|
|
31151
|
+
"person",
|
|
31152
|
+
"vehicle",
|
|
31153
|
+
"animal",
|
|
31154
|
+
"lineCrossing",
|
|
31155
|
+
"intrusion",
|
|
31156
|
+
"loitering",
|
|
31157
|
+
"alarmInput"
|
|
31158
|
+
]);
|
|
31159
|
+
/**
|
|
31160
|
+
* One weekly recording window: "on `day`, from `startMinute` to
|
|
31161
|
+
* `endMinute`, record on `trigger`".
|
|
31162
|
+
*
|
|
31163
|
+
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
31164
|
+
* both firmwares enumerate). Minutes are local camera time since
|
|
31165
|
+
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
31166
|
+
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
31167
|
+
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
31168
|
+
*/
|
|
31169
|
+
var RecordWindowSchema = object({
|
|
31170
|
+
trigger: RecordTriggerSchema,
|
|
31171
|
+
day: number().int().min(0).max(6),
|
|
31172
|
+
startMinute: number().int().min(0).max(1439),
|
|
31173
|
+
endMinute: number().int().min(1).max(1440)
|
|
31174
|
+
});
|
|
31175
|
+
/** Status of one physical volume, as the camera itself describes it. */
|
|
31176
|
+
var OnboardStorageVolumeSchema = object({
|
|
31177
|
+
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
31178
|
+
id: string(),
|
|
31179
|
+
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
31180
|
+
label: string().optional(),
|
|
31181
|
+
status: _enum([
|
|
31182
|
+
"ok",
|
|
31183
|
+
"unformatted",
|
|
31184
|
+
"error",
|
|
31185
|
+
"offline",
|
|
31186
|
+
"unknown"
|
|
31187
|
+
]),
|
|
31188
|
+
/**
|
|
31189
|
+
* Total size in MB, or **null when the camera did not say**.
|
|
31190
|
+
*
|
|
31191
|
+
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
31192
|
+
* measurement (D393), and a card whose size is unknown must not be
|
|
31193
|
+
* rendered as a card of size zero.
|
|
31194
|
+
*/
|
|
31195
|
+
capacityMb: number().nullable(),
|
|
31196
|
+
/**
|
|
31197
|
+
* Free space in MB, or null when unknown.
|
|
31198
|
+
*
|
|
31199
|
+
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
31200
|
+
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
31201
|
+
* card converges on once it has wrapped. At loop steady state the
|
|
31202
|
+
* number is identical whether the camera recorded yesterday or stopped
|
|
31203
|
+
* a month ago.
|
|
31204
|
+
*/
|
|
31205
|
+
freeMb: number().nullable(),
|
|
31206
|
+
/** True when the camera reports the volume writable (`property` RW). */
|
|
31207
|
+
writable: boolean().optional()
|
|
31208
|
+
});
|
|
31209
|
+
object({
|
|
31210
|
+
storage: discriminatedUnion("kind", [
|
|
31211
|
+
object({
|
|
31212
|
+
kind: literal("present"),
|
|
31213
|
+
volumes: array(OnboardStorageVolumeSchema)
|
|
31214
|
+
}),
|
|
31215
|
+
object({
|
|
31216
|
+
kind: literal("absent"),
|
|
31217
|
+
reason: string()
|
|
31218
|
+
}),
|
|
31219
|
+
object({
|
|
31220
|
+
kind: literal("unknown"),
|
|
31221
|
+
reason: string()
|
|
31222
|
+
})
|
|
31223
|
+
]),
|
|
31224
|
+
tracks: array(object({
|
|
31225
|
+
id: string(),
|
|
31226
|
+
enabled: boolean(),
|
|
31227
|
+
isVideo: boolean(),
|
|
31228
|
+
/** From the camera's own track description. Null when it does not say. */
|
|
31229
|
+
codec: string().nullable(),
|
|
31230
|
+
resolution: string().nullable(),
|
|
31231
|
+
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
31232
|
+
overwriteWhenFull: boolean().nullable()
|
|
31233
|
+
})),
|
|
31234
|
+
/**
|
|
31235
|
+
* The track the write path targets — the enabled VIDEO one. Null when
|
|
31236
|
+
* no track could be identified, which is itself a refusal reason.
|
|
31237
|
+
*/
|
|
31238
|
+
primaryTrackId: string().nullable(),
|
|
31239
|
+
/** Master "record to the card at all" switch. */
|
|
31240
|
+
enabled: boolean().nullable(),
|
|
31241
|
+
overwriteWhenFull: boolean().nullable(),
|
|
31242
|
+
preRecordSec: number().nullable(),
|
|
31243
|
+
postRecordSec: number().nullable(),
|
|
31244
|
+
/** Length of one recorded file, in minutes. */
|
|
31245
|
+
segmentMinutes: number().nullable(),
|
|
31246
|
+
/** The primary track's weekly windows, flattened. */
|
|
31247
|
+
windows: array(RecordWindowSchema),
|
|
31248
|
+
/**
|
|
31249
|
+
* How many windows the camera described that CamStack could NOT read —
|
|
31250
|
+
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
31251
|
+
* name.
|
|
31252
|
+
*
|
|
31253
|
+
* A dropped window is work the reader threw away, and a schedule that
|
|
31254
|
+
* silently shows fewer rows than the camera holds is how an operator
|
|
31255
|
+
* saves back a schedule shorter than the one they were looking at
|
|
31256
|
+
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
31257
|
+
* that replaces it would delete what was not shown — which is why a
|
|
31258
|
+
* provider reporting a non-zero count also reports the schedule as not
|
|
31259
|
+
* writable.
|
|
31260
|
+
*/
|
|
31261
|
+
unreadableWindows: number(),
|
|
31262
|
+
/**
|
|
31263
|
+
* The camera is scheduled to record and has NO usable storage.
|
|
31264
|
+
*
|
|
31265
|
+
* A first-class fact because it is the fleet's most common silent
|
|
31266
|
+
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
31267
|
+
* to a card that is not there. Neither the schedule nor the storage
|
|
31268
|
+
* read says anything wrong on its own; only the pair does.
|
|
31269
|
+
*/
|
|
31270
|
+
recordingToNowhere: boolean(),
|
|
31271
|
+
lastFetchedAt: number()
|
|
31272
|
+
});
|
|
31273
|
+
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
31274
|
+
var RangeSchema = object({
|
|
31275
|
+
min: number(),
|
|
31276
|
+
max: number(),
|
|
31277
|
+
step: number()
|
|
31278
|
+
});
|
|
31279
|
+
/**
|
|
31280
|
+
* The values a camera actually takes for a numeric field, when they are a SET
|
|
31281
|
+
* rather than a range.
|
|
31282
|
+
*
|
|
31283
|
+
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
31284
|
+
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
31285
|
+
*
|
|
31286
|
+
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
31287
|
+
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
31288
|
+
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
31289
|
+
*
|
|
31290
|
+
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
31291
|
+
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
31292
|
+
* would forbid values the camera takes AND permit values it silently replaces
|
|
31293
|
+
* with 5 — wrong in both directions at once.
|
|
31294
|
+
*
|
|
31295
|
+
* `sentinel` names the member that is not a duration, so a surface can render
|
|
31296
|
+
* "no limit" instead of `2147483647` seconds.
|
|
31297
|
+
*/
|
|
31298
|
+
var AllowedValuesSchema = object({
|
|
31299
|
+
values: array(number()).min(1),
|
|
31300
|
+
sentinel: object({
|
|
31301
|
+
value: number(),
|
|
31302
|
+
meaning: _enum(["no-limit", "disabled"])
|
|
31303
|
+
}).optional()
|
|
31304
|
+
});
|
|
31305
|
+
/**
|
|
31306
|
+
* Per-field availability on ONE camera.
|
|
31307
|
+
*
|
|
31308
|
+
* The field exists on every camera — this says whether this one can be
|
|
31309
|
+
* read and whether it can be written, and `reason` says why not when
|
|
31310
|
+
* either is false. The UI renders the control DISABLED with the reason
|
|
31311
|
+
* rather than hiding it, so a limitation is legible instead of looking
|
|
31312
|
+
* like a missing feature.
|
|
31313
|
+
*/
|
|
31314
|
+
var OnboardFieldSupportSchema = object({
|
|
31315
|
+
readable: boolean(),
|
|
31316
|
+
writable: boolean(),
|
|
31317
|
+
/** Required whenever `readable` or `writable` is false. */
|
|
31318
|
+
reason: string().optional()
|
|
31319
|
+
});
|
|
31320
|
+
/** What this camera's schedule model can express. */
|
|
31321
|
+
var OnboardScheduleSupportSchema = object({
|
|
31322
|
+
support: OnboardFieldSupportSchema,
|
|
31323
|
+
/**
|
|
31324
|
+
* The smallest time step the camera can express, in minutes.
|
|
31325
|
+
*
|
|
31326
|
+
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
31327
|
+
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
31328
|
+
* window whose edges are not a multiple of this is REFUSED rather than
|
|
31329
|
+
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
31330
|
+
* and nothing says so.
|
|
31331
|
+
*/
|
|
31332
|
+
granularityMinutes: number(),
|
|
31333
|
+
/** Triggers this camera can record on. A window naming another is refused. */
|
|
31334
|
+
triggers: array(RecordTriggerSchema),
|
|
31335
|
+
/**
|
|
31336
|
+
* False when the camera stores ONE trigger per time range, so two
|
|
31337
|
+
* windows overlapping on the same day cannot carry different triggers.
|
|
31338
|
+
* True on Reolink, whose mask is per-trigger and independent.
|
|
31339
|
+
*/
|
|
31340
|
+
supportsOverlappingTriggers: boolean()
|
|
31341
|
+
});
|
|
31342
|
+
var RecordingOnboardOptionsSchema = object({
|
|
31343
|
+
enabled: OnboardFieldSupportSchema,
|
|
31344
|
+
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
31345
|
+
preRecordSec: OnboardFieldSupportSchema,
|
|
31346
|
+
preRecordSecRange: RangeSchema.optional(),
|
|
31347
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31348
|
+
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
31349
|
+
postRecordSec: OnboardFieldSupportSchema,
|
|
31350
|
+
postRecordSecRange: RangeSchema.optional(),
|
|
31351
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31352
|
+
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
31353
|
+
segmentMinutes: OnboardFieldSupportSchema,
|
|
31354
|
+
segmentMinutesRange: RangeSchema.optional(),
|
|
31355
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31356
|
+
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
31357
|
+
schedule: OnboardScheduleSupportSchema
|
|
31358
|
+
});
|
|
31359
|
+
/**
|
|
31360
|
+
* A partial change. Every field optional.
|
|
31361
|
+
*
|
|
31362
|
+
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
31363
|
+
* silently ignore a field it cannot support — it refuses, by name,
|
|
31364
|
+
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
31365
|
+
* is the failure D62 exists to prevent: the operator believes the camera
|
|
31366
|
+
* is recording the way the form says, and it is not.
|
|
31367
|
+
*/
|
|
31368
|
+
var RecordingOnboardPatchSchema = object({
|
|
31369
|
+
enabled: boolean().optional(),
|
|
31370
|
+
overwriteWhenFull: boolean().optional(),
|
|
31371
|
+
preRecordSec: number().optional(),
|
|
31372
|
+
postRecordSec: number().optional(),
|
|
31373
|
+
segmentMinutes: number().optional(),
|
|
31374
|
+
/** The complete new window set for the primary track — not a delta. */
|
|
31375
|
+
windows: array(RecordWindowSchema).optional()
|
|
31376
|
+
});
|
|
31377
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
31378
|
+
deviceId: number(),
|
|
31379
|
+
settings: RecordingOnboardPatchSchema
|
|
31380
|
+
}), _void(), {
|
|
31381
|
+
kind: "mutation",
|
|
31382
|
+
auth: "admin"
|
|
31383
|
+
});
|
|
31384
|
+
/**
|
|
31069
31385
|
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
31070
31386
|
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
31071
31387
|
* running, a gate open) and lowers when it stops.
|
|
@@ -36359,24 +36675,6 @@ Object.freeze({
|
|
|
36359
36675
|
addonId: null,
|
|
36360
36676
|
access: "view"
|
|
36361
36677
|
},
|
|
36362
|
-
"events.getEventClipUrl": {
|
|
36363
|
-
capName: "events",
|
|
36364
|
-
capScope: "device",
|
|
36365
|
-
addonId: null,
|
|
36366
|
-
access: "view"
|
|
36367
|
-
},
|
|
36368
|
-
"events.getEvents": {
|
|
36369
|
-
capName: "events",
|
|
36370
|
-
capScope: "device",
|
|
36371
|
-
addonId: null,
|
|
36372
|
-
access: "view"
|
|
36373
|
-
},
|
|
36374
|
-
"events.getEventThumbnail": {
|
|
36375
|
-
capName: "events",
|
|
36376
|
-
capScope: "device",
|
|
36377
|
-
addonId: null,
|
|
36378
|
-
access: "view"
|
|
36379
|
-
},
|
|
36380
36678
|
"faceGallery.assignFace": {
|
|
36381
36679
|
capName: "face-gallery",
|
|
36382
36680
|
capScope: "system",
|
|
@@ -39251,224 +39549,236 @@ Object.freeze({
|
|
|
39251
39549
|
addonId: null,
|
|
39252
39550
|
access: "create"
|
|
39253
39551
|
},
|
|
39254
|
-
"recording.
|
|
39552
|
+
"recording.getAvailability": {
|
|
39255
39553
|
capName: "recording",
|
|
39256
|
-
capScope: "
|
|
39554
|
+
capScope: "device",
|
|
39257
39555
|
addonId: null,
|
|
39258
|
-
access: "
|
|
39556
|
+
access: "view"
|
|
39259
39557
|
},
|
|
39260
|
-
"recording.
|
|
39558
|
+
"recording.getDaysWithRecordings": {
|
|
39261
39559
|
capName: "recording",
|
|
39262
|
-
capScope: "
|
|
39560
|
+
capScope: "device",
|
|
39263
39561
|
addonId: null,
|
|
39264
|
-
access: "
|
|
39562
|
+
access: "view"
|
|
39265
39563
|
},
|
|
39266
|
-
"recording.
|
|
39564
|
+
"recording.getPlayback": {
|
|
39267
39565
|
capName: "recording",
|
|
39268
|
-
capScope: "
|
|
39566
|
+
capScope: "device",
|
|
39269
39567
|
addonId: null,
|
|
39270
|
-
access: "
|
|
39568
|
+
access: "view"
|
|
39271
39569
|
},
|
|
39272
|
-
"recording.
|
|
39570
|
+
"recording.getPlaybackOptions": {
|
|
39273
39571
|
capName: "recording",
|
|
39274
|
-
capScope: "
|
|
39572
|
+
capScope: "device",
|
|
39275
39573
|
addonId: null,
|
|
39276
|
-
access: "
|
|
39574
|
+
access: "view"
|
|
39277
39575
|
},
|
|
39278
|
-
"recording.
|
|
39576
|
+
"recording.listSources": {
|
|
39279
39577
|
capName: "recording",
|
|
39280
|
-
capScope: "
|
|
39578
|
+
capScope: "device",
|
|
39281
39579
|
addonId: null,
|
|
39282
39580
|
access: "view"
|
|
39283
39581
|
},
|
|
39284
|
-
"
|
|
39285
|
-
capName: "recording",
|
|
39582
|
+
"recordingArchive.applyDeviceSettingsPatch": {
|
|
39583
|
+
capName: "recording-archive",
|
|
39286
39584
|
capScope: "system",
|
|
39287
39585
|
addonId: null,
|
|
39288
|
-
access: "
|
|
39586
|
+
access: "create"
|
|
39289
39587
|
},
|
|
39290
|
-
"
|
|
39291
|
-
capName: "recording",
|
|
39588
|
+
"recordingArchive.cancelRelocateJob": {
|
|
39589
|
+
capName: "recording-archive",
|
|
39292
39590
|
capScope: "system",
|
|
39293
39591
|
addonId: null,
|
|
39294
|
-
access: "
|
|
39592
|
+
access: "create"
|
|
39295
39593
|
},
|
|
39296
|
-
"
|
|
39297
|
-
capName: "recording",
|
|
39594
|
+
"recordingArchive.cancelStorageMigrationMove": {
|
|
39595
|
+
capName: "recording-archive",
|
|
39596
|
+
capScope: "system",
|
|
39597
|
+
addonId: null,
|
|
39598
|
+
access: "create"
|
|
39599
|
+
},
|
|
39600
|
+
"recordingArchive.deleteFootprint": {
|
|
39601
|
+
capName: "recording-archive",
|
|
39602
|
+
capScope: "system",
|
|
39603
|
+
addonId: null,
|
|
39604
|
+
access: "delete"
|
|
39605
|
+
},
|
|
39606
|
+
"recordingArchive.getAvailabilityBatch": {
|
|
39607
|
+
capName: "recording-archive",
|
|
39298
39608
|
capScope: "system",
|
|
39299
39609
|
addonId: null,
|
|
39300
39610
|
access: "view"
|
|
39301
39611
|
},
|
|
39302
|
-
"
|
|
39303
|
-
capName: "recording",
|
|
39612
|
+
"recordingArchive.getDaysWithRecordingsBatch": {
|
|
39613
|
+
capName: "recording-archive",
|
|
39304
39614
|
capScope: "system",
|
|
39305
39615
|
addonId: null,
|
|
39306
39616
|
access: "view"
|
|
39307
39617
|
},
|
|
39308
|
-
"
|
|
39309
|
-
capName: "recording",
|
|
39618
|
+
"recordingArchive.getDeviceConfig": {
|
|
39619
|
+
capName: "recording-archive",
|
|
39310
39620
|
capScope: "system",
|
|
39311
39621
|
addonId: null,
|
|
39312
39622
|
access: "view"
|
|
39313
39623
|
},
|
|
39314
|
-
"
|
|
39315
|
-
capName: "recording",
|
|
39624
|
+
"recordingArchive.getDeviceLiveContribution": {
|
|
39625
|
+
capName: "recording-archive",
|
|
39316
39626
|
capScope: "system",
|
|
39317
39627
|
addonId: null,
|
|
39318
39628
|
access: "view"
|
|
39319
39629
|
},
|
|
39320
|
-
"
|
|
39321
|
-
capName: "recording",
|
|
39630
|
+
"recordingArchive.getDeviceSettingsContribution": {
|
|
39631
|
+
capName: "recording-archive",
|
|
39322
39632
|
capScope: "system",
|
|
39323
39633
|
addonId: null,
|
|
39324
39634
|
access: "view"
|
|
39325
39635
|
},
|
|
39326
|
-
"
|
|
39327
|
-
capName: "recording",
|
|
39636
|
+
"recordingArchive.getPlacement": {
|
|
39637
|
+
capName: "recording-archive",
|
|
39328
39638
|
capScope: "system",
|
|
39329
39639
|
addonId: null,
|
|
39330
39640
|
access: "view"
|
|
39331
39641
|
},
|
|
39332
|
-
"
|
|
39333
|
-
capName: "recording",
|
|
39642
|
+
"recordingArchive.getRelocateResidue": {
|
|
39643
|
+
capName: "recording-archive",
|
|
39334
39644
|
capScope: "system",
|
|
39335
39645
|
addonId: null,
|
|
39336
39646
|
access: "view"
|
|
39337
39647
|
},
|
|
39338
|
-
"
|
|
39339
|
-
capName: "recording",
|
|
39648
|
+
"recordingArchive.getStatus": {
|
|
39649
|
+
capName: "recording-archive",
|
|
39340
39650
|
capScope: "system",
|
|
39341
39651
|
addonId: null,
|
|
39342
39652
|
access: "view"
|
|
39343
39653
|
},
|
|
39344
|
-
"
|
|
39345
|
-
capName: "recording",
|
|
39654
|
+
"recordingArchive.getStorageMigrationMoveStatus": {
|
|
39655
|
+
capName: "recording-archive",
|
|
39346
39656
|
capScope: "system",
|
|
39347
39657
|
addonId: null,
|
|
39348
39658
|
access: "view"
|
|
39349
39659
|
},
|
|
39350
|
-
"
|
|
39351
|
-
capName: "recording",
|
|
39660
|
+
"recordingArchive.getStorageUsage": {
|
|
39661
|
+
capName: "recording-archive",
|
|
39352
39662
|
capScope: "system",
|
|
39353
39663
|
addonId: null,
|
|
39354
39664
|
access: "view"
|
|
39355
39665
|
},
|
|
39356
|
-
"
|
|
39357
|
-
capName: "recording",
|
|
39666
|
+
"recordingArchive.listOpsLog": {
|
|
39667
|
+
capName: "recording-archive",
|
|
39358
39668
|
capScope: "system",
|
|
39359
39669
|
addonId: null,
|
|
39360
39670
|
access: "view"
|
|
39361
39671
|
},
|
|
39362
|
-
"
|
|
39363
|
-
capName: "recording",
|
|
39672
|
+
"recordingArchive.listRelocateJobs": {
|
|
39673
|
+
capName: "recording-archive",
|
|
39364
39674
|
capScope: "system",
|
|
39365
39675
|
addonId: null,
|
|
39366
39676
|
access: "view"
|
|
39367
39677
|
},
|
|
39368
|
-
"
|
|
39369
|
-
capName: "recording",
|
|
39678
|
+
"recordingArchive.locateSegment": {
|
|
39679
|
+
capName: "recording-archive",
|
|
39370
39680
|
capScope: "system",
|
|
39371
39681
|
addonId: null,
|
|
39372
39682
|
access: "view"
|
|
39373
39683
|
},
|
|
39374
|
-
"
|
|
39375
|
-
capName: "recording",
|
|
39684
|
+
"recordingArchive.pauseForStorageMigration": {
|
|
39685
|
+
capName: "recording-archive",
|
|
39376
39686
|
capScope: "system",
|
|
39377
39687
|
addonId: null,
|
|
39378
39688
|
access: "create"
|
|
39379
39689
|
},
|
|
39380
|
-
"
|
|
39381
|
-
capName: "recording",
|
|
39690
|
+
"recordingArchive.planStorageRebalance": {
|
|
39691
|
+
capName: "recording-archive",
|
|
39382
39692
|
capScope: "system",
|
|
39383
39693
|
addonId: null,
|
|
39384
39694
|
access: "view"
|
|
39385
39695
|
},
|
|
39386
|
-
"
|
|
39387
|
-
capName: "recording",
|
|
39696
|
+
"recordingArchive.pruneFootage": {
|
|
39697
|
+
capName: "recording-archive",
|
|
39388
39698
|
capScope: "system",
|
|
39389
39699
|
addonId: null,
|
|
39390
39700
|
access: "create"
|
|
39391
39701
|
},
|
|
39392
|
-
"
|
|
39393
|
-
capName: "recording",
|
|
39702
|
+
"recordingArchive.readGopBytes": {
|
|
39703
|
+
capName: "recording-archive",
|
|
39394
39704
|
capScope: "system",
|
|
39395
39705
|
addonId: null,
|
|
39396
39706
|
access: "view"
|
|
39397
39707
|
},
|
|
39398
|
-
"
|
|
39399
|
-
capName: "recording",
|
|
39708
|
+
"recordingArchive.readSegmentBytes": {
|
|
39709
|
+
capName: "recording-archive",
|
|
39400
39710
|
capScope: "system",
|
|
39401
39711
|
addonId: null,
|
|
39402
39712
|
access: "view"
|
|
39403
39713
|
},
|
|
39404
|
-
"
|
|
39405
|
-
capName: "recording",
|
|
39714
|
+
"recordingArchive.readWindowBytes": {
|
|
39715
|
+
capName: "recording-archive",
|
|
39406
39716
|
capScope: "system",
|
|
39407
39717
|
addonId: null,
|
|
39408
39718
|
access: "view"
|
|
39409
39719
|
},
|
|
39410
|
-
"
|
|
39411
|
-
capName: "recording",
|
|
39720
|
+
"recordingArchive.reconcileLedgerAgainstDisk": {
|
|
39721
|
+
capName: "recording-archive",
|
|
39412
39722
|
capScope: "system",
|
|
39413
39723
|
addonId: null,
|
|
39414
39724
|
access: "create"
|
|
39415
39725
|
},
|
|
39416
|
-
"
|
|
39417
|
-
capName: "recording",
|
|
39726
|
+
"recordingArchive.refreshStorageLocationsForMigration": {
|
|
39727
|
+
capName: "recording-archive",
|
|
39418
39728
|
capScope: "system",
|
|
39419
39729
|
addonId: null,
|
|
39420
39730
|
access: "create"
|
|
39421
39731
|
},
|
|
39422
|
-
"
|
|
39423
|
-
capName: "recording",
|
|
39732
|
+
"recordingArchive.relocateFootage": {
|
|
39733
|
+
capName: "recording-archive",
|
|
39424
39734
|
capScope: "system",
|
|
39425
39735
|
addonId: null,
|
|
39426
39736
|
access: "create"
|
|
39427
39737
|
},
|
|
39428
|
-
"
|
|
39429
|
-
capName: "recording",
|
|
39738
|
+
"recordingArchive.renderClip": {
|
|
39739
|
+
capName: "recording-archive",
|
|
39430
39740
|
capScope: "system",
|
|
39431
39741
|
addonId: null,
|
|
39432
39742
|
access: "create"
|
|
39433
39743
|
},
|
|
39434
|
-
"
|
|
39435
|
-
capName: "recording",
|
|
39744
|
+
"recordingArchive.renderGif": {
|
|
39745
|
+
capName: "recording-archive",
|
|
39436
39746
|
capScope: "system",
|
|
39437
39747
|
addonId: null,
|
|
39438
39748
|
access: "create"
|
|
39439
39749
|
},
|
|
39440
|
-
"
|
|
39441
|
-
capName: "recording",
|
|
39750
|
+
"recordingArchive.rescanStorage": {
|
|
39751
|
+
capName: "recording-archive",
|
|
39442
39752
|
capScope: "system",
|
|
39443
39753
|
addonId: null,
|
|
39444
39754
|
access: "create"
|
|
39445
39755
|
},
|
|
39446
|
-
"
|
|
39447
|
-
capName: "recording",
|
|
39756
|
+
"recordingArchive.resumeForStorageMigration": {
|
|
39757
|
+
capName: "recording-archive",
|
|
39448
39758
|
capScope: "system",
|
|
39449
39759
|
addonId: null,
|
|
39450
39760
|
access: "create"
|
|
39451
39761
|
},
|
|
39452
|
-
"
|
|
39453
|
-
capName: "recording",
|
|
39762
|
+
"recordingArchive.setDeviceConfig": {
|
|
39763
|
+
capName: "recording-archive",
|
|
39454
39764
|
capScope: "system",
|
|
39455
39765
|
addonId: null,
|
|
39456
39766
|
access: "create"
|
|
39457
39767
|
},
|
|
39458
|
-
"
|
|
39459
|
-
capName: "recording",
|
|
39768
|
+
"recordingArchive.setDevicePlacement": {
|
|
39769
|
+
capName: "recording-archive",
|
|
39460
39770
|
capScope: "system",
|
|
39461
39771
|
addonId: null,
|
|
39462
39772
|
access: "create"
|
|
39463
39773
|
},
|
|
39464
|
-
"
|
|
39465
|
-
capName: "recording",
|
|
39774
|
+
"recordingArchive.startStorageMigrationMove": {
|
|
39775
|
+
capName: "recording-archive",
|
|
39466
39776
|
capScope: "system",
|
|
39467
39777
|
addonId: null,
|
|
39468
39778
|
access: "create"
|
|
39469
39779
|
},
|
|
39470
|
-
"
|
|
39471
|
-
capName: "recording",
|
|
39780
|
+
"recordingArchive.startStorageRebalance": {
|
|
39781
|
+
capName: "recording-archive",
|
|
39472
39782
|
capScope: "system",
|
|
39473
39783
|
addonId: null,
|
|
39474
39784
|
access: "create"
|
|
@@ -40997,6 +41307,12 @@ Object.freeze({
|
|
|
40997
41307
|
addonId: null,
|
|
40998
41308
|
access: "view"
|
|
40999
41309
|
},
|
|
41310
|
+
"videoclips.getPlaybackOptions": {
|
|
41311
|
+
capName: "videoclips",
|
|
41312
|
+
capScope: "device",
|
|
41313
|
+
addonId: null,
|
|
41314
|
+
access: "view"
|
|
41315
|
+
},
|
|
41000
41316
|
"videoclips.listClips": {
|
|
41001
41317
|
capName: "videoclips",
|
|
41002
41318
|
capScope: "device",
|
|
@@ -41009,6 +41325,12 @@ Object.freeze({
|
|
|
41009
41325
|
addonId: null,
|
|
41010
41326
|
access: "view"
|
|
41011
41327
|
},
|
|
41328
|
+
"videoclips.offerClipBytes": {
|
|
41329
|
+
capName: "videoclips",
|
|
41330
|
+
capScope: "device",
|
|
41331
|
+
addonId: null,
|
|
41332
|
+
access: "view"
|
|
41333
|
+
},
|
|
41012
41334
|
"videoclips.readClipBytes": {
|
|
41013
41335
|
capName: "videoclips",
|
|
41014
41336
|
capScope: "device",
|
|
@@ -41761,21 +42083,6 @@ Object.freeze({
|
|
|
41761
42083
|
form: "single",
|
|
41762
42084
|
optional: false
|
|
41763
42085
|
}],
|
|
41764
|
-
"events.getEventClipUrl": [{
|
|
41765
|
-
name: "deviceId",
|
|
41766
|
-
form: "single",
|
|
41767
|
-
optional: false
|
|
41768
|
-
}],
|
|
41769
|
-
"events.getEvents": [{
|
|
41770
|
-
name: "deviceId",
|
|
41771
|
-
form: "single",
|
|
41772
|
-
optional: false
|
|
41773
|
-
}],
|
|
41774
|
-
"events.getEventThumbnail": [{
|
|
41775
|
-
name: "deviceId",
|
|
41776
|
-
form: "single",
|
|
41777
|
-
optional: false
|
|
41778
|
-
}],
|
|
41779
42086
|
"faceGallery.getFaceByTrack": [{
|
|
41780
42087
|
name: "deviceId",
|
|
41781
42088
|
form: "single",
|
|
@@ -42694,107 +43001,117 @@ Object.freeze({
|
|
|
42694
43001
|
form: "single",
|
|
42695
43002
|
optional: false
|
|
42696
43003
|
}],
|
|
42697
|
-
"recording.
|
|
43004
|
+
"recording.getAvailability": [{
|
|
42698
43005
|
name: "deviceId",
|
|
42699
43006
|
form: "single",
|
|
42700
43007
|
optional: false
|
|
42701
43008
|
}],
|
|
42702
|
-
"recording.
|
|
43009
|
+
"recording.getDaysWithRecordings": [{
|
|
42703
43010
|
name: "deviceId",
|
|
42704
43011
|
form: "single",
|
|
42705
43012
|
optional: false
|
|
42706
43013
|
}],
|
|
42707
|
-
"recording.
|
|
42708
|
-
name: "
|
|
42709
|
-
form: "
|
|
43014
|
+
"recording.getPlayback": [{
|
|
43015
|
+
name: "deviceId",
|
|
43016
|
+
form: "single",
|
|
42710
43017
|
optional: false
|
|
42711
43018
|
}],
|
|
42712
|
-
"recording.
|
|
43019
|
+
"recording.getPlaybackOptions": [{
|
|
42713
43020
|
name: "deviceId",
|
|
42714
43021
|
form: "single",
|
|
42715
43022
|
optional: false
|
|
42716
43023
|
}],
|
|
42717
|
-
"recording.
|
|
42718
|
-
name: "
|
|
42719
|
-
form: "
|
|
43024
|
+
"recording.listSources": [{
|
|
43025
|
+
name: "deviceId",
|
|
43026
|
+
form: "single",
|
|
42720
43027
|
optional: false
|
|
42721
43028
|
}],
|
|
42722
|
-
"
|
|
43029
|
+
"recordingArchive.deleteFootprint": [{
|
|
42723
43030
|
name: "deviceId",
|
|
42724
43031
|
form: "single",
|
|
42725
43032
|
optional: false
|
|
42726
43033
|
}],
|
|
42727
|
-
"
|
|
43034
|
+
"recordingArchive.getAvailabilityBatch": [{
|
|
43035
|
+
name: "deviceIds",
|
|
43036
|
+
form: "array",
|
|
43037
|
+
optional: false
|
|
43038
|
+
}],
|
|
43039
|
+
"recordingArchive.getDaysWithRecordingsBatch": [{
|
|
43040
|
+
name: "deviceIds",
|
|
43041
|
+
form: "array",
|
|
43042
|
+
optional: false
|
|
43043
|
+
}],
|
|
43044
|
+
"recordingArchive.getDeviceConfig": [{
|
|
42728
43045
|
name: "deviceId",
|
|
42729
43046
|
form: "single",
|
|
42730
43047
|
optional: false
|
|
42731
43048
|
}],
|
|
42732
|
-
"
|
|
43049
|
+
"recordingArchive.listOpsLog": [{
|
|
42733
43050
|
name: "deviceId",
|
|
42734
43051
|
form: "single",
|
|
42735
43052
|
optional: true
|
|
42736
43053
|
}],
|
|
42737
|
-
"
|
|
43054
|
+
"recordingArchive.locateSegment": [{
|
|
42738
43055
|
name: "deviceId",
|
|
42739
43056
|
form: "single",
|
|
42740
43057
|
optional: false
|
|
42741
43058
|
}],
|
|
42742
|
-
"
|
|
43059
|
+
"recordingArchive.pruneFootage": [{
|
|
42743
43060
|
name: "deviceId",
|
|
42744
43061
|
form: "single",
|
|
42745
43062
|
optional: false
|
|
42746
43063
|
}],
|
|
42747
|
-
"
|
|
43064
|
+
"recordingArchive.readGopBytes": [{
|
|
42748
43065
|
name: "deviceId",
|
|
42749
43066
|
form: "single",
|
|
42750
43067
|
optional: false
|
|
42751
43068
|
}],
|
|
42752
|
-
"
|
|
43069
|
+
"recordingArchive.readSegmentBytes": [{
|
|
42753
43070
|
name: "deviceId",
|
|
42754
43071
|
form: "single",
|
|
42755
43072
|
optional: false
|
|
42756
43073
|
}],
|
|
42757
|
-
"
|
|
43074
|
+
"recordingArchive.readWindowBytes": [{
|
|
42758
43075
|
name: "deviceId",
|
|
42759
43076
|
form: "single",
|
|
42760
43077
|
optional: false
|
|
42761
43078
|
}],
|
|
42762
|
-
"
|
|
43079
|
+
"recordingArchive.reconcileLedgerAgainstDisk": [{
|
|
42763
43080
|
name: "deviceId",
|
|
42764
43081
|
form: "single",
|
|
42765
43082
|
optional: true
|
|
42766
43083
|
}],
|
|
42767
|
-
"
|
|
43084
|
+
"recordingArchive.relocateFootage": [{
|
|
42768
43085
|
name: "deviceId",
|
|
42769
43086
|
form: "single",
|
|
42770
43087
|
optional: true
|
|
42771
43088
|
}],
|
|
42772
|
-
"
|
|
43089
|
+
"recordingArchive.renderClip": [{
|
|
42773
43090
|
name: "deviceId",
|
|
42774
43091
|
form: "single",
|
|
42775
43092
|
optional: false
|
|
42776
43093
|
}],
|
|
42777
|
-
"
|
|
43094
|
+
"recordingArchive.renderGif": [{
|
|
42778
43095
|
name: "deviceId",
|
|
42779
43096
|
form: "single",
|
|
42780
43097
|
optional: false
|
|
42781
43098
|
}],
|
|
42782
|
-
"
|
|
43099
|
+
"recordingArchive.rescanStorage": [{
|
|
42783
43100
|
name: "deviceId",
|
|
42784
43101
|
form: "single",
|
|
42785
43102
|
optional: false
|
|
42786
43103
|
}],
|
|
42787
|
-
"
|
|
43104
|
+
"recordingArchive.setDeviceConfig": [{
|
|
42788
43105
|
name: "deviceId",
|
|
42789
43106
|
form: "single",
|
|
42790
43107
|
optional: false
|
|
42791
43108
|
}],
|
|
42792
|
-
"
|
|
43109
|
+
"recordingArchive.setDevicePlacement": [{
|
|
42793
43110
|
name: "deviceId",
|
|
42794
43111
|
form: "single",
|
|
42795
43112
|
optional: false
|
|
42796
43113
|
}],
|
|
42797
|
-
"
|
|
43114
|
+
"recordingArchive.startStorageMigrationMove": [{
|
|
42798
43115
|
name: "deviceId",
|
|
42799
43116
|
form: "single",
|
|
42800
43117
|
optional: true
|
|
@@ -43055,6 +43372,11 @@ Object.freeze({
|
|
|
43055
43372
|
form: "single",
|
|
43056
43373
|
optional: false
|
|
43057
43374
|
}],
|
|
43375
|
+
"videoclips.getPlaybackOptions": [{
|
|
43376
|
+
name: "deviceId",
|
|
43377
|
+
form: "single",
|
|
43378
|
+
optional: false
|
|
43379
|
+
}],
|
|
43058
43380
|
"videoclips.listClips": [{
|
|
43059
43381
|
name: "deviceId",
|
|
43060
43382
|
form: "single",
|
|
@@ -43065,6 +43387,11 @@ Object.freeze({
|
|
|
43065
43387
|
form: "single",
|
|
43066
43388
|
optional: false
|
|
43067
43389
|
}],
|
|
43390
|
+
"videoclips.offerClipBytes": [{
|
|
43391
|
+
name: "deviceId",
|
|
43392
|
+
form: "single",
|
|
43393
|
+
optional: false
|
|
43394
|
+
}],
|
|
43068
43395
|
"videoclips.readClipBytes": [{
|
|
43069
43396
|
name: "deviceId",
|
|
43070
43397
|
form: "single",
|
|
@@ -43747,7 +44074,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
43747
44074
|
capability: adminUiCapability,
|
|
43748
44075
|
provider: {
|
|
43749
44076
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
43750
|
-
getVersion: async () => ({ version: "1.2.
|
|
44077
|
+
getVersion: async () => ({ version: "1.2.258" })
|
|
43751
44078
|
}
|
|
43752
44079
|
}];
|
|
43753
44080
|
}
|