@camstack/addon-model-studio 1.1.166 → 1.1.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MotionZonesSettings-C2ftiA6i.mjs → MotionZonesSettings-sJUloF9d.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-Xg4k3L47.mjs → PrivacyMaskSettings-v_y0uLR7.mjs} +4 -4
- package/dist/{SceneMonitorEditor-CEsQn7b2.mjs → SceneMonitorEditor-DW8-_EvS.mjs} +3 -3
- package/dist/_stub.js +10 -10
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Doe1jImv.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-C6ovYeg2.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BeO6iU8W.mjs +26 -0
- package/dist/{hostInit-DJug5Kyx.mjs → hostInit-DtYZHu6O.mjs} +2 -2
- package/dist/model-studio.addon.js +1024 -834
- package/dist/model-studio.addon.mjs +1024 -834
- package/dist/{player-overlays-Drd0jdDm.mjs → player-overlays-DZI3Us9O.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-CO49Ymxi.mjs → responsive-6KHz1FeQ.mjs} +1 -1
- package/dist/{scene-monitor-copy-D5Esy39C.mjs → scene-monitor-copy-pDRHUCNN.mjs} +1 -1
- package/dist/{square-I3JVGn-g.mjs → square-G5IxIOOA.mjs} +1 -1
- package/dist/{trash-2-Rdm8qwZb.mjs → trash-2-BQ6DXX-P.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-WVMYffMk.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-XdC34FqG.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-ByY5idrl.mjs +0 -26
|
@@ -5863,7 +5863,7 @@ var ZodIssueCode = {
|
|
|
5863
5863
|
var ZodFirstPartyTypeKind;
|
|
5864
5864
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5865
5865
|
//#endregion
|
|
5866
|
-
//#region ../types/dist/sleep-
|
|
5866
|
+
//#region ../types/dist/sleep-PEo0-Fz9.mjs
|
|
5867
5867
|
/**
|
|
5868
5868
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5869
5869
|
* window to float samples (D455).
|
|
@@ -6999,6 +6999,24 @@ function normalizeAddonInitResult(result) {
|
|
|
6999
6999
|
if (Array.isArray(result)) return { providers: result };
|
|
7000
7000
|
return result;
|
|
7001
7001
|
}
|
|
7002
|
+
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
7003
|
+
var PeerBytesTicketSchema = object({
|
|
7004
|
+
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
7005
|
+
url: string().min(1),
|
|
7006
|
+
/**
|
|
7007
|
+
* The HOST node this URL means something on — the hub or a named agent,
|
|
7008
|
+
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
7009
|
+
* refuses `cross-node` by name when they differ, without dialling.
|
|
7010
|
+
*/
|
|
7011
|
+
hostNodeId: string().min(1),
|
|
7012
|
+
expiresAtMs: number().int().nonnegative(),
|
|
7013
|
+
/**
|
|
7014
|
+
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
7015
|
+
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
7016
|
+
* must be able to tell "the producer did not say" from "the body is empty".
|
|
7017
|
+
*/
|
|
7018
|
+
declaredBytes: number().int().nonnegative().nullable()
|
|
7019
|
+
});
|
|
7002
7020
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
7003
7021
|
var CamProfileSchema = _enum([
|
|
7004
7022
|
"high",
|
|
@@ -8098,24 +8116,6 @@ object({
|
|
|
8098
8116
|
unreachable: number()
|
|
8099
8117
|
})
|
|
8100
8118
|
});
|
|
8101
|
-
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
8102
|
-
var PeerBytesTicketSchema = object({
|
|
8103
|
-
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
8104
|
-
url: string().min(1),
|
|
8105
|
-
/**
|
|
8106
|
-
* The HOST node this URL means something on — the hub or a named agent,
|
|
8107
|
-
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
8108
|
-
* refuses `cross-node` by name when they differ, without dialling.
|
|
8109
|
-
*/
|
|
8110
|
-
hostNodeId: string().min(1),
|
|
8111
|
-
expiresAtMs: number().int().nonnegative(),
|
|
8112
|
-
/**
|
|
8113
|
-
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
8114
|
-
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
8115
|
-
* must be able to tell "the producer did not say" from "the body is empty".
|
|
8116
|
-
*/
|
|
8117
|
-
declaredBytes: number().int().nonnegative().nullable()
|
|
8118
|
-
});
|
|
8119
8119
|
/**
|
|
8120
8120
|
* Adoption job — the background form of `device-adoption.adopt`.
|
|
8121
8121
|
*
|
|
@@ -8227,7 +8227,7 @@ var AdoptionJobSchema = object({
|
|
|
8227
8227
|
* component's original options — detection to the detection-pipeline wrapper
|
|
8228
8228
|
* binding, audio analysis to its own, recording to `RecordingConfig.enabled`
|
|
8229
8229
|
* (which was always first-class; the switch was a veneer over
|
|
8230
|
-
* `
|
|
8230
|
+
* `recordingArchive.setDeviceConfig`), notifications to a notification-center
|
|
8231
8231
|
* per-device setting, the two camera planes to their own components.
|
|
8232
8232
|
*
|
|
8233
8233
|
* What survives is {@link composeSwitchedOff}: `CameraStatus.switchedOff`, the
|
|
@@ -8253,7 +8253,7 @@ var AdoptionJobSchema = object({
|
|
|
8253
8253
|
* | `stream-broker` | `deviceManager.setDisabled` | `StreamBrokerManager.reconcileAllCatalogs` releases the brokers; `ensureBroker` refuses re-creation |
|
|
8254
8254
|
* | `object-detection` | `deviceManager.setWrapperActive('detection-pipeline')` | `PipelineSettingsStore.resolvePipelineForDevice` returns `{ steps: [], audio: null }` |
|
|
8255
8255
|
* | `audio-analysis` | `deviceManager.setWrapperActive('audio-analysis')` | `AudioSubscriptionController.subscribeAudioStream` returns `null` before opening the stream |
|
|
8256
|
-
* | `recording` | `
|
|
8256
|
+
* | `recording` | `recordingArchive.setDeviceConfig` → `RecordingConfig.enabled` | `band-decision.shouldRecord` returns false; the controller detaches the device |
|
|
8257
8257
|
* | `notifications` | `notificationRules.setDeviceMuted` | `NotificationCenter.evaluateAndEnqueue` returns before any rule is evaluated |
|
|
8258
8258
|
* | `privacy-mask` | `privacyMask.setMask({ enabled })` → the CAMERA | the camera blanks the masked regions itself; every stream and recording carries the black boxes |
|
|
8259
8259
|
* | `device-audio` | `privacyMask.setAudioEnabled` → the CAMERA | the camera stops encoding an audio track at all; every consumer sees silent video |
|
|
@@ -12169,58 +12169,6 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
12169
12169
|
auth: "admin"
|
|
12170
12170
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
12171
12171
|
DeviceType.Camera;
|
|
12172
|
-
/**
|
|
12173
|
-
* The signals a device can emit to WAKE its own stream.
|
|
12174
|
-
*
|
|
12175
|
-
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
12176
|
-
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
12177
|
-
* puller holds a session open for ever, and treating that as demand would keep
|
|
12178
|
-
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
12179
|
-
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
12180
|
-
* itself, with no stream running.
|
|
12181
|
-
*
|
|
12182
|
-
* ## The vocabulary is the PROVIDER'S, not ours
|
|
12183
|
-
*
|
|
12184
|
-
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
12185
|
-
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
12186
|
-
* Reolink offers motion and camera-native detection; another provider may offer
|
|
12187
|
-
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
12188
|
-
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
12189
|
-
*
|
|
12190
|
-
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
12191
|
-
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
12192
|
-
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
12193
|
-
* binding — but both answer "what drives the detection pipeline", which is a
|
|
12194
|
-
* different question from "what may wake a sleeping stream". A camera can do
|
|
12195
|
-
* the first and not be trusted with the second, and the operator picks per
|
|
12196
|
-
* camera. Two questions, two authorities.
|
|
12197
|
-
*
|
|
12198
|
-
* ## Availability is not permission
|
|
12199
|
-
*
|
|
12200
|
-
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
12201
|
-
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
12202
|
-
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
12203
|
-
* provider declaring a signal is not a provider enabling it.
|
|
12204
|
-
*/
|
|
12205
|
-
/** One signal a device can emit. */
|
|
12206
|
-
var StreamSignalSchema = object({
|
|
12207
|
-
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
12208
|
-
code: string().min(1),
|
|
12209
|
-
/** What an operator reads in the picker. The provider's own wording. */
|
|
12210
|
-
label: string().min(1),
|
|
12211
|
-
/**
|
|
12212
|
-
* Whether the provider recommends this signal ON when a camera is first set
|
|
12213
|
-
* up. A provider knows which of its signals are cheap and reliable; an
|
|
12214
|
-
* operator should not have to discover that by trial. Reolink recommends
|
|
12215
|
-
* both of its own.
|
|
12216
|
-
*/
|
|
12217
|
-
recommended: boolean()
|
|
12218
|
-
});
|
|
12219
|
-
object({
|
|
12220
|
-
signals: array(StreamSignalSchema),
|
|
12221
|
-
lastFetchedAt: number()
|
|
12222
|
-
});
|
|
12223
|
-
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
12224
12172
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
12225
12173
|
var StreamFormatSchema = _enum([
|
|
12226
12174
|
"webrtc",
|
|
@@ -13600,6 +13548,97 @@ method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
|
13600
13548
|
});
|
|
13601
13549
|
DeviceType.Camera;
|
|
13602
13550
|
/**
|
|
13551
|
+
* device-admin-link — "this device has a management page of its own, and here
|
|
13552
|
+
* is its address".
|
|
13553
|
+
*
|
|
13554
|
+
* ## Why this is not a `deviceConfig` cap
|
|
13555
|
+
*
|
|
13556
|
+
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
13557
|
+
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
13558
|
+
* patch back through a setter; it costs a `builderId` reducer in
|
|
13559
|
+
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
13560
|
+
* renders a form section. This cap answers ONE question with ONE read and
|
|
13561
|
+
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
13562
|
+
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
13563
|
+
* `reboot`, the other pure-RPC device-native cap.
|
|
13564
|
+
*
|
|
13565
|
+
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
13566
|
+
*
|
|
13567
|
+
* The two are answered at DIFFERENT layers, on purpose:
|
|
13568
|
+
*
|
|
13569
|
+
* - **"We cannot say"** → the provider never registers the cap for that
|
|
13570
|
+
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
13571
|
+
* fan are reached only through a vendor cloud; there is no address to hand
|
|
13572
|
+
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
13573
|
+
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
13574
|
+
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
13575
|
+
* lists the cap and no surface asks.
|
|
13576
|
+
* - **"This device has no page, and I know that"** → the provider registers
|
|
13577
|
+
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
13578
|
+
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
13579
|
+
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
13580
|
+
* transport, a Home Assistant broker authenticated by supervisor token
|
|
13581
|
+
* (which carries no `baseUrl` at all).
|
|
13582
|
+
*
|
|
13583
|
+
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
13584
|
+
* button, and D62 is the same rule from the other side: an off switch is
|
|
13585
|
+
* reported off, never made to look broken. There is no third state where the
|
|
13586
|
+
* UI renders a disabled button "because the device might have a page".
|
|
13587
|
+
*
|
|
13588
|
+
* ## The URL never carries credentials
|
|
13589
|
+
*
|
|
13590
|
+
* Not in userinfo, not in a query string. Every provider builds through
|
|
13591
|
+
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
13592
|
+
* scheme and path as separate arguments — there is no parameter a secret could
|
|
13593
|
+
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
13594
|
+
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
13595
|
+
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
13596
|
+
* keeps providers from hand-rolling one anyway.
|
|
13597
|
+
*
|
|
13598
|
+
* This matters here more than anywhere else in the repo, because every provider
|
|
13599
|
+
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
13600
|
+
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
13601
|
+
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
13602
|
+
* camera's own page will ask for its own login. That is correct, and pre-
|
|
13603
|
+
* filling it is the operator's business, not ours.
|
|
13604
|
+
*
|
|
13605
|
+
* ## It is a LAN fact
|
|
13606
|
+
*
|
|
13607
|
+
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
13608
|
+
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
13609
|
+
* as a link the operator's own browser follows, on the operator's own network,
|
|
13610
|
+
* or renders nothing.
|
|
13611
|
+
*/
|
|
13612
|
+
/**
|
|
13613
|
+
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
13614
|
+
* before clicking whether he is about to land on a camera's own web server or
|
|
13615
|
+
* inside Home Assistant.
|
|
13616
|
+
*/
|
|
13617
|
+
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
13618
|
+
var DeviceAdminLinkSchema = object({
|
|
13619
|
+
/**
|
|
13620
|
+
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
13621
|
+
* free of userinfo and of any credential-shaped query key.
|
|
13622
|
+
*/
|
|
13623
|
+
url: string(),
|
|
13624
|
+
/**
|
|
13625
|
+
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
13626
|
+
* The PROVIDER names it, because only the provider knows what the page is;
|
|
13627
|
+
* a UI that invented the label from the addon id would call the Home
|
|
13628
|
+
* Assistant device page "Provider Homeassistant".
|
|
13629
|
+
*/
|
|
13630
|
+
label: string(),
|
|
13631
|
+
target: AdminLinkTargetEnum,
|
|
13632
|
+
/**
|
|
13633
|
+
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
13634
|
+
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
13635
|
+
* with `url` by construction; carried separately so no surface has to parse
|
|
13636
|
+
* a URL to show it.
|
|
13637
|
+
*/
|
|
13638
|
+
host: string()
|
|
13639
|
+
});
|
|
13640
|
+
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
13641
|
+
/**
|
|
13603
13642
|
* Identity envelope for a device's upstream-system metadata.
|
|
13604
13643
|
*
|
|
13605
13644
|
* Two jobs:
|
|
@@ -13927,97 +13966,6 @@ method(object({ integrationId: string() }), object({ filters: array(AdoptionFilt
|
|
|
13927
13966
|
auth: "admin"
|
|
13928
13967
|
});
|
|
13929
13968
|
/**
|
|
13930
|
-
* device-admin-link — "this device has a management page of its own, and here
|
|
13931
|
-
* is its address".
|
|
13932
|
-
*
|
|
13933
|
-
* ## Why this is not a `deviceConfig` cap
|
|
13934
|
-
*
|
|
13935
|
-
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
13936
|
-
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
13937
|
-
* patch back through a setter; it costs a `builderId` reducer in
|
|
13938
|
-
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
13939
|
-
* renders a form section. This cap answers ONE question with ONE read and
|
|
13940
|
-
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
13941
|
-
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
13942
|
-
* `reboot`, the other pure-RPC device-native cap.
|
|
13943
|
-
*
|
|
13944
|
-
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
13945
|
-
*
|
|
13946
|
-
* The two are answered at DIFFERENT layers, on purpose:
|
|
13947
|
-
*
|
|
13948
|
-
* - **"We cannot say"** → the provider never registers the cap for that
|
|
13949
|
-
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
13950
|
-
* fan are reached only through a vendor cloud; there is no address to hand
|
|
13951
|
-
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
13952
|
-
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
13953
|
-
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
13954
|
-
* lists the cap and no surface asks.
|
|
13955
|
-
* - **"This device has no page, and I know that"** → the provider registers
|
|
13956
|
-
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
13957
|
-
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
13958
|
-
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
13959
|
-
* transport, a Home Assistant broker authenticated by supervisor token
|
|
13960
|
-
* (which carries no `baseUrl` at all).
|
|
13961
|
-
*
|
|
13962
|
-
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
13963
|
-
* button, and D62 is the same rule from the other side: an off switch is
|
|
13964
|
-
* reported off, never made to look broken. There is no third state where the
|
|
13965
|
-
* UI renders a disabled button "because the device might have a page".
|
|
13966
|
-
*
|
|
13967
|
-
* ## The URL never carries credentials
|
|
13968
|
-
*
|
|
13969
|
-
* Not in userinfo, not in a query string. Every provider builds through
|
|
13970
|
-
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
13971
|
-
* scheme and path as separate arguments — there is no parameter a secret could
|
|
13972
|
-
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
13973
|
-
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
13974
|
-
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
13975
|
-
* keeps providers from hand-rolling one anyway.
|
|
13976
|
-
*
|
|
13977
|
-
* This matters here more than anywhere else in the repo, because every provider
|
|
13978
|
-
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
13979
|
-
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
13980
|
-
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
13981
|
-
* camera's own page will ask for its own login. That is correct, and pre-
|
|
13982
|
-
* filling it is the operator's business, not ours.
|
|
13983
|
-
*
|
|
13984
|
-
* ## It is a LAN fact
|
|
13985
|
-
*
|
|
13986
|
-
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
13987
|
-
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
13988
|
-
* as a link the operator's own browser follows, on the operator's own network,
|
|
13989
|
-
* or renders nothing.
|
|
13990
|
-
*/
|
|
13991
|
-
/**
|
|
13992
|
-
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
13993
|
-
* before clicking whether he is about to land on a camera's own web server or
|
|
13994
|
-
* inside Home Assistant.
|
|
13995
|
-
*/
|
|
13996
|
-
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
13997
|
-
var DeviceAdminLinkSchema = object({
|
|
13998
|
-
/**
|
|
13999
|
-
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
14000
|
-
* free of userinfo and of any credential-shaped query key.
|
|
14001
|
-
*/
|
|
14002
|
-
url: string(),
|
|
14003
|
-
/**
|
|
14004
|
-
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
14005
|
-
* The PROVIDER names it, because only the provider knows what the page is;
|
|
14006
|
-
* a UI that invented the label from the addon id would call the Home
|
|
14007
|
-
* Assistant device page "Provider Homeassistant".
|
|
14008
|
-
*/
|
|
14009
|
-
label: string(),
|
|
14010
|
-
target: AdminLinkTargetEnum,
|
|
14011
|
-
/**
|
|
14012
|
-
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
14013
|
-
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
14014
|
-
* with `url` by construction; carried separately so no surface has to parse
|
|
14015
|
-
* a URL to show it.
|
|
14016
|
-
*/
|
|
14017
|
-
host: string()
|
|
14018
|
-
});
|
|
14019
|
-
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
14020
|
-
/**
|
|
14021
13969
|
* `device-export` — collection cap for addons that export camstack
|
|
14022
13970
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
14023
13971
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
@@ -24143,6 +24091,58 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
|
|
|
24143
24091
|
kind: "mutation",
|
|
24144
24092
|
auth: "admin"
|
|
24145
24093
|
});
|
|
24094
|
+
/**
|
|
24095
|
+
* The signals a device can emit to WAKE its own stream.
|
|
24096
|
+
*
|
|
24097
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
24098
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
24099
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
24100
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
24101
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
24102
|
+
* itself, with no stream running.
|
|
24103
|
+
*
|
|
24104
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
24105
|
+
*
|
|
24106
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
24107
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
24108
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
24109
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
24110
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
24111
|
+
*
|
|
24112
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
24113
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
24114
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
24115
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
24116
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
24117
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
24118
|
+
* camera. Two questions, two authorities.
|
|
24119
|
+
*
|
|
24120
|
+
* ## Availability is not permission
|
|
24121
|
+
*
|
|
24122
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
24123
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
24124
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
24125
|
+
* provider declaring a signal is not a provider enabling it.
|
|
24126
|
+
*/
|
|
24127
|
+
/** One signal a device can emit. */
|
|
24128
|
+
var StreamSignalSchema = object({
|
|
24129
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
24130
|
+
code: string().min(1),
|
|
24131
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
24132
|
+
label: string().min(1),
|
|
24133
|
+
/**
|
|
24134
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
24135
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
24136
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
24137
|
+
* both of its own.
|
|
24138
|
+
*/
|
|
24139
|
+
recommended: boolean()
|
|
24140
|
+
});
|
|
24141
|
+
object({
|
|
24142
|
+
signals: array(StreamSignalSchema),
|
|
24143
|
+
lastFetchedAt: number()
|
|
24144
|
+
});
|
|
24145
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
24146
24146
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
24147
24147
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
24148
24148
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -26425,6 +26425,143 @@ DeviceType.Camera, method(object({ deviceId: number() }), CameraCredentialsSchem
|
|
|
26425
26425
|
kind: "query",
|
|
26426
26426
|
auth: "admin"
|
|
26427
26427
|
});
|
|
26428
|
+
/**
|
|
26429
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
26430
|
+
* page.
|
|
26431
|
+
*
|
|
26432
|
+
* ## Why this is a capability and not an addon settings schema
|
|
26433
|
+
*
|
|
26434
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
26435
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
26436
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
26437
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
26438
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
26439
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
26440
|
+
* not on it "falls off silently".
|
|
26441
|
+
*
|
|
26442
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
26443
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
26444
|
+
* beside PTZ and motion zones on the camera itself. The device page is
|
|
26445
|
+
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
26446
|
+
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
26447
|
+
* from `getDeviceSettingsContribution`.
|
|
26448
|
+
*
|
|
26449
|
+
* Seven other widgets are still declared the other way, through a
|
|
26450
|
+
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
26451
|
+
* gives the addon no say in where its own panel lands and no way to decline
|
|
26452
|
+
* for a device the panel does not suit, which is why this one does not use it.
|
|
26453
|
+
*
|
|
26454
|
+
* ## Why one addon may implement it
|
|
26455
|
+
*
|
|
26456
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
26457
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
26458
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
26459
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
26460
|
+
* reached only by a caller that already knew the addon id.
|
|
26461
|
+
*
|
|
26462
|
+
* ## The tab
|
|
26463
|
+
*
|
|
26464
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
26465
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
26466
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
26467
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
26468
|
+
* next to "PTZ").
|
|
26469
|
+
*/
|
|
26470
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
26471
|
+
var GridNormalizedRectSchema = object({
|
|
26472
|
+
x: number().min(0).max(1),
|
|
26473
|
+
y: number().min(0).max(1),
|
|
26474
|
+
width: number().gt(0).max(1),
|
|
26475
|
+
height: number().gt(0).max(1)
|
|
26476
|
+
});
|
|
26477
|
+
/**
|
|
26478
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
26479
|
+
*
|
|
26480
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
26481
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
26482
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
26483
|
+
* which is the class of bug nobody files.
|
|
26484
|
+
*/
|
|
26485
|
+
var GridLayoutCellSchema = object({
|
|
26486
|
+
deviceId: number().int().positive(),
|
|
26487
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
26488
|
+
source: GridNormalizedRectSchema,
|
|
26489
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
26490
|
+
cell: GridNormalizedRectSchema
|
|
26491
|
+
});
|
|
26492
|
+
/**
|
|
26493
|
+
* Which profiles this grid can actually compose, and why not.
|
|
26494
|
+
*
|
|
26495
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
26496
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
26497
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
26498
|
+
* low" is, and it is the one an operator can act on.
|
|
26499
|
+
*/
|
|
26500
|
+
var GridProfileOfferSchema = object({
|
|
26501
|
+
profile: _enum([
|
|
26502
|
+
"high",
|
|
26503
|
+
"mid",
|
|
26504
|
+
"low"
|
|
26505
|
+
]),
|
|
26506
|
+
offered: boolean(),
|
|
26507
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
26508
|
+
missingSources: array(number().int().positive()),
|
|
26509
|
+
/**
|
|
26510
|
+
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
26511
|
+
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
26512
|
+
* it is reported because nothing else in the system would ever say what the
|
|
26513
|
+
* grid came out as, and because it is the number an operator would otherwise
|
|
26514
|
+
* expect to type.
|
|
26515
|
+
*/
|
|
26516
|
+
canvas: string(),
|
|
26517
|
+
/**
|
|
26518
|
+
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
26519
|
+
*
|
|
26520
|
+
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
26521
|
+
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
26522
|
+
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
26523
|
+
* Default is `mid` + `low`.
|
|
26524
|
+
*/
|
|
26525
|
+
published: boolean()
|
|
26526
|
+
});
|
|
26527
|
+
var GridLayoutViewSchema = object({
|
|
26528
|
+
/** The persisted grid row this camera was declared from. */
|
|
26529
|
+
instanceId: string(),
|
|
26530
|
+
deviceId: number().int().nonnegative(),
|
|
26531
|
+
name: string(),
|
|
26532
|
+
/**
|
|
26533
|
+
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
26534
|
+
* its own from the cells and its sources' dimensions. The two numbers that
|
|
26535
|
+
* used to be here were a text field that silently decided both how much the
|
|
26536
|
+
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
26537
|
+
* came out as.
|
|
26538
|
+
*/
|
|
26539
|
+
fps: number().int(),
|
|
26540
|
+
cells: array(GridLayoutCellSchema),
|
|
26541
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
26542
|
+
profiles: array(GridProfileOfferSchema)
|
|
26543
|
+
});
|
|
26544
|
+
var GridLayoutPatchSchema = object({
|
|
26545
|
+
deviceId: number().int().nonnegative(),
|
|
26546
|
+
name: string().min(1).max(160).optional(),
|
|
26547
|
+
fps: number().int().min(1).max(60).optional(),
|
|
26548
|
+
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
26549
|
+
publishedProfiles: array(_enum([
|
|
26550
|
+
"high",
|
|
26551
|
+
"mid",
|
|
26552
|
+
"low"
|
|
26553
|
+
])).max(3).optional(),
|
|
26554
|
+
/**
|
|
26555
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
26556
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
26557
|
+
* for.
|
|
26558
|
+
*/
|
|
26559
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
26560
|
+
});
|
|
26561
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
26562
|
+
kind: "mutation",
|
|
26563
|
+
auth: "admin"
|
|
26564
|
+
});
|
|
26428
26565
|
object({
|
|
26429
26566
|
detected: boolean(),
|
|
26430
26567
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
@@ -26898,307 +27035,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
|
|
|
26898
27035
|
auth: "admin"
|
|
26899
27036
|
});
|
|
26900
27037
|
/**
|
|
26901
|
-
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
26902
|
-
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
26903
|
-
*
|
|
26904
|
-
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
26905
|
-
* footage ledger, our storage locations, our retention. This one has a
|
|
26906
|
-
* different authority — the camera's firmware — and per D62 it stores
|
|
26907
|
-
* nothing of its own. Every value here is read from the camera and every
|
|
26908
|
-
* write goes back to the camera; there is no CamStack-side mirror that
|
|
26909
|
-
* could disagree with the device.
|
|
26910
|
-
*
|
|
26911
|
-
* ## One shape, two firmwares
|
|
26912
|
-
*
|
|
26913
|
-
* Measured 2026-09-22 against the live fleet:
|
|
26914
|
-
*
|
|
26915
|
-
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
26916
|
-
* | --- | --- | --- |
|
|
26917
|
-
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
26918
|
-
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
26919
|
-
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
26920
|
-
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
26921
|
-
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
26922
|
-
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
26923
|
-
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
26924
|
-
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
26925
|
-
*
|
|
26926
|
-
* The two schedule models look different and are the same thing in
|
|
26927
|
-
* different coordinates: both answer "for this trigger, during which
|
|
26928
|
-
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
26929
|
-
* question in one shape — Hikvision's ranges map straight onto it,
|
|
26930
|
-
* Reolink's mask expands into hour-aligned windows.
|
|
26931
|
-
*
|
|
26932
|
-
* ## Union, not intersection
|
|
26933
|
-
*
|
|
26934
|
-
* **The same fields exist on every camera.** What differs per device is
|
|
26935
|
-
* which VALUES that device accepts, and that is what {@link
|
|
26936
|
-
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
26937
|
-
* per field plus the schedule's own limits. A control a camera cannot
|
|
26938
|
-
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
26939
|
-
* dead: disabled must not look like broken.
|
|
26940
|
-
*
|
|
26941
|
-
* ## Refusal by name
|
|
26942
|
-
*
|
|
26943
|
-
* A write a camera cannot honour is refused with a sentence the operator
|
|
26944
|
-
* can read — never accepted and dropped. Both providers refuse through
|
|
26945
|
-
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
26946
|
-
* one test, not two hand-written vendor opinions.
|
|
26947
|
-
*
|
|
26948
|
-
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
26949
|
-
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
26950
|
-
* injected from `status`) reports the live values, and a single
|
|
26951
|
-
* `setSettings` mutation applies a partial change. No hand-written
|
|
26952
|
-
* settings-contribution methods.
|
|
26953
|
-
*/
|
|
26954
|
-
/**
|
|
26955
|
-
* What makes the camera start recording during a window.
|
|
26956
|
-
*
|
|
26957
|
-
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
26958
|
-
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
26959
|
-
* object-class triggers are Reolink-only today and the smart-event ones
|
|
26960
|
-
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
26961
|
-
* firmwares measured — a camera that cannot record on a trigger simply
|
|
26962
|
-
* does not list it in `options.schedule.triggers`, and a window naming
|
|
26963
|
-
* it is REFUSED, not dropped.
|
|
26964
|
-
*/
|
|
26965
|
-
var RecordTriggerSchema = _enum([
|
|
26966
|
-
"continuous",
|
|
26967
|
-
"motion",
|
|
26968
|
-
"person",
|
|
26969
|
-
"vehicle",
|
|
26970
|
-
"animal",
|
|
26971
|
-
"lineCrossing",
|
|
26972
|
-
"intrusion",
|
|
26973
|
-
"loitering",
|
|
26974
|
-
"alarmInput"
|
|
26975
|
-
]);
|
|
26976
|
-
/**
|
|
26977
|
-
* One weekly recording window: "on `day`, from `startMinute` to
|
|
26978
|
-
* `endMinute`, record on `trigger`".
|
|
26979
|
-
*
|
|
26980
|
-
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
26981
|
-
* both firmwares enumerate). Minutes are local camera time since
|
|
26982
|
-
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
26983
|
-
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
26984
|
-
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
26985
|
-
*/
|
|
26986
|
-
var RecordWindowSchema = object({
|
|
26987
|
-
trigger: RecordTriggerSchema,
|
|
26988
|
-
day: number().int().min(0).max(6),
|
|
26989
|
-
startMinute: number().int().min(0).max(1439),
|
|
26990
|
-
endMinute: number().int().min(1).max(1440)
|
|
26991
|
-
});
|
|
26992
|
-
/** Status of one physical volume, as the camera itself describes it. */
|
|
26993
|
-
var OnboardStorageVolumeSchema = object({
|
|
26994
|
-
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
26995
|
-
id: string(),
|
|
26996
|
-
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
26997
|
-
label: string().optional(),
|
|
26998
|
-
status: _enum([
|
|
26999
|
-
"ok",
|
|
27000
|
-
"unformatted",
|
|
27001
|
-
"error",
|
|
27002
|
-
"offline",
|
|
27003
|
-
"unknown"
|
|
27004
|
-
]),
|
|
27005
|
-
/**
|
|
27006
|
-
* Total size in MB, or **null when the camera did not say**.
|
|
27007
|
-
*
|
|
27008
|
-
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
27009
|
-
* measurement (D393), and a card whose size is unknown must not be
|
|
27010
|
-
* rendered as a card of size zero.
|
|
27011
|
-
*/
|
|
27012
|
-
capacityMb: number().nullable(),
|
|
27013
|
-
/**
|
|
27014
|
-
* Free space in MB, or null when unknown.
|
|
27015
|
-
*
|
|
27016
|
-
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
27017
|
-
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
27018
|
-
* card converges on once it has wrapped. At loop steady state the
|
|
27019
|
-
* number is identical whether the camera recorded yesterday or stopped
|
|
27020
|
-
* a month ago.
|
|
27021
|
-
*/
|
|
27022
|
-
freeMb: number().nullable(),
|
|
27023
|
-
/** True when the camera reports the volume writable (`property` RW). */
|
|
27024
|
-
writable: boolean().optional()
|
|
27025
|
-
});
|
|
27026
|
-
object({
|
|
27027
|
-
storage: discriminatedUnion("kind", [
|
|
27028
|
-
object({
|
|
27029
|
-
kind: literal("present"),
|
|
27030
|
-
volumes: array(OnboardStorageVolumeSchema)
|
|
27031
|
-
}),
|
|
27032
|
-
object({
|
|
27033
|
-
kind: literal("absent"),
|
|
27034
|
-
reason: string()
|
|
27035
|
-
}),
|
|
27036
|
-
object({
|
|
27037
|
-
kind: literal("unknown"),
|
|
27038
|
-
reason: string()
|
|
27039
|
-
})
|
|
27040
|
-
]),
|
|
27041
|
-
tracks: array(object({
|
|
27042
|
-
id: string(),
|
|
27043
|
-
enabled: boolean(),
|
|
27044
|
-
isVideo: boolean(),
|
|
27045
|
-
/** From the camera's own track description. Null when it does not say. */
|
|
27046
|
-
codec: string().nullable(),
|
|
27047
|
-
resolution: string().nullable(),
|
|
27048
|
-
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
27049
|
-
overwriteWhenFull: boolean().nullable()
|
|
27050
|
-
})),
|
|
27051
|
-
/**
|
|
27052
|
-
* The track the write path targets — the enabled VIDEO one. Null when
|
|
27053
|
-
* no track could be identified, which is itself a refusal reason.
|
|
27054
|
-
*/
|
|
27055
|
-
primaryTrackId: string().nullable(),
|
|
27056
|
-
/** Master "record to the card at all" switch. */
|
|
27057
|
-
enabled: boolean().nullable(),
|
|
27058
|
-
overwriteWhenFull: boolean().nullable(),
|
|
27059
|
-
preRecordSec: number().nullable(),
|
|
27060
|
-
postRecordSec: number().nullable(),
|
|
27061
|
-
/** Length of one recorded file, in minutes. */
|
|
27062
|
-
segmentMinutes: number().nullable(),
|
|
27063
|
-
/** The primary track's weekly windows, flattened. */
|
|
27064
|
-
windows: array(RecordWindowSchema),
|
|
27065
|
-
/**
|
|
27066
|
-
* How many windows the camera described that CamStack could NOT read —
|
|
27067
|
-
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
27068
|
-
* name.
|
|
27069
|
-
*
|
|
27070
|
-
* A dropped window is work the reader threw away, and a schedule that
|
|
27071
|
-
* silently shows fewer rows than the camera holds is how an operator
|
|
27072
|
-
* saves back a schedule shorter than the one they were looking at
|
|
27073
|
-
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
27074
|
-
* that replaces it would delete what was not shown — which is why a
|
|
27075
|
-
* provider reporting a non-zero count also reports the schedule as not
|
|
27076
|
-
* writable.
|
|
27077
|
-
*/
|
|
27078
|
-
unreadableWindows: number(),
|
|
27079
|
-
/**
|
|
27080
|
-
* The camera is scheduled to record and has NO usable storage.
|
|
27081
|
-
*
|
|
27082
|
-
* A first-class fact because it is the fleet's most common silent
|
|
27083
|
-
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
27084
|
-
* to a card that is not there. Neither the schedule nor the storage
|
|
27085
|
-
* read says anything wrong on its own; only the pair does.
|
|
27086
|
-
*/
|
|
27087
|
-
recordingToNowhere: boolean(),
|
|
27088
|
-
lastFetchedAt: number()
|
|
27089
|
-
});
|
|
27090
|
-
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
27091
|
-
var RangeSchema = object({
|
|
27092
|
-
min: number(),
|
|
27093
|
-
max: number(),
|
|
27094
|
-
step: number()
|
|
27095
|
-
});
|
|
27096
|
-
/**
|
|
27097
|
-
* The values a camera actually takes for a numeric field, when they are a SET
|
|
27098
|
-
* rather than a range.
|
|
27099
|
-
*
|
|
27100
|
-
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
27101
|
-
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
27102
|
-
*
|
|
27103
|
-
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
27104
|
-
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
27105
|
-
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
27106
|
-
*
|
|
27107
|
-
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
27108
|
-
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
27109
|
-
* would forbid values the camera takes AND permit values it silently replaces
|
|
27110
|
-
* with 5 — wrong in both directions at once.
|
|
27111
|
-
*
|
|
27112
|
-
* `sentinel` names the member that is not a duration, so a surface can render
|
|
27113
|
-
* "no limit" instead of `2147483647` seconds.
|
|
27114
|
-
*/
|
|
27115
|
-
var AllowedValuesSchema = object({
|
|
27116
|
-
values: array(number()).min(1),
|
|
27117
|
-
sentinel: object({
|
|
27118
|
-
value: number(),
|
|
27119
|
-
meaning: _enum(["no-limit", "disabled"])
|
|
27120
|
-
}).optional()
|
|
27121
|
-
});
|
|
27122
|
-
/**
|
|
27123
|
-
* Per-field availability on ONE camera.
|
|
27124
|
-
*
|
|
27125
|
-
* The field exists on every camera — this says whether this one can be
|
|
27126
|
-
* read and whether it can be written, and `reason` says why not when
|
|
27127
|
-
* either is false. The UI renders the control DISABLED with the reason
|
|
27128
|
-
* rather than hiding it, so a limitation is legible instead of looking
|
|
27129
|
-
* like a missing feature.
|
|
27130
|
-
*/
|
|
27131
|
-
var OnboardFieldSupportSchema = object({
|
|
27132
|
-
readable: boolean(),
|
|
27133
|
-
writable: boolean(),
|
|
27134
|
-
/** Required whenever `readable` or `writable` is false. */
|
|
27135
|
-
reason: string().optional()
|
|
27136
|
-
});
|
|
27137
|
-
/** What this camera's schedule model can express. */
|
|
27138
|
-
var OnboardScheduleSupportSchema = object({
|
|
27139
|
-
support: OnboardFieldSupportSchema,
|
|
27140
|
-
/**
|
|
27141
|
-
* The smallest time step the camera can express, in minutes.
|
|
27142
|
-
*
|
|
27143
|
-
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
27144
|
-
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
27145
|
-
* window whose edges are not a multiple of this is REFUSED rather than
|
|
27146
|
-
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
27147
|
-
* and nothing says so.
|
|
27148
|
-
*/
|
|
27149
|
-
granularityMinutes: number(),
|
|
27150
|
-
/** Triggers this camera can record on. A window naming another is refused. */
|
|
27151
|
-
triggers: array(RecordTriggerSchema),
|
|
27152
|
-
/**
|
|
27153
|
-
* False when the camera stores ONE trigger per time range, so two
|
|
27154
|
-
* windows overlapping on the same day cannot carry different triggers.
|
|
27155
|
-
* True on Reolink, whose mask is per-trigger and independent.
|
|
27156
|
-
*/
|
|
27157
|
-
supportsOverlappingTriggers: boolean()
|
|
27158
|
-
});
|
|
27159
|
-
var RecordingOnboardOptionsSchema = object({
|
|
27160
|
-
enabled: OnboardFieldSupportSchema,
|
|
27161
|
-
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
27162
|
-
preRecordSec: OnboardFieldSupportSchema,
|
|
27163
|
-
preRecordSecRange: RangeSchema.optional(),
|
|
27164
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
27165
|
-
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
27166
|
-
postRecordSec: OnboardFieldSupportSchema,
|
|
27167
|
-
postRecordSecRange: RangeSchema.optional(),
|
|
27168
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
27169
|
-
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
27170
|
-
segmentMinutes: OnboardFieldSupportSchema,
|
|
27171
|
-
segmentMinutesRange: RangeSchema.optional(),
|
|
27172
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
27173
|
-
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
27174
|
-
schedule: OnboardScheduleSupportSchema
|
|
27175
|
-
});
|
|
27176
|
-
/**
|
|
27177
|
-
* A partial change. Every field optional.
|
|
27178
|
-
*
|
|
27179
|
-
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
27180
|
-
* silently ignore a field it cannot support — it refuses, by name,
|
|
27181
|
-
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
27182
|
-
* is the failure D62 exists to prevent: the operator believes the camera
|
|
27183
|
-
* is recording the way the form says, and it is not.
|
|
27184
|
-
*/
|
|
27185
|
-
var RecordingOnboardPatchSchema = object({
|
|
27186
|
-
enabled: boolean().optional(),
|
|
27187
|
-
overwriteWhenFull: boolean().optional(),
|
|
27188
|
-
preRecordSec: number().optional(),
|
|
27189
|
-
postRecordSec: number().optional(),
|
|
27190
|
-
segmentMinutes: number().optional(),
|
|
27191
|
-
/** The complete new window set for the primary track — not a delta. */
|
|
27192
|
-
windows: array(RecordWindowSchema).optional()
|
|
27193
|
-
});
|
|
27194
|
-
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
27195
|
-
deviceId: number(),
|
|
27196
|
-
settings: RecordingOnboardPatchSchema
|
|
27197
|
-
}), _void(), {
|
|
27198
|
-
kind: "mutation",
|
|
27199
|
-
auth: "admin"
|
|
27200
|
-
});
|
|
27201
|
-
/**
|
|
27202
27038
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
27203
27039
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
27204
27040
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -27292,30 +27128,6 @@ object({
|
|
|
27292
27128
|
eventCountSinceStart: number()
|
|
27293
27129
|
});
|
|
27294
27130
|
DeviceType.EventEmitter;
|
|
27295
|
-
var EventItemSchema = object({
|
|
27296
|
-
id: string(),
|
|
27297
|
-
type: string(),
|
|
27298
|
-
timestamp: number(),
|
|
27299
|
-
label: string().optional(),
|
|
27300
|
-
thumbnailUrl: string().optional(),
|
|
27301
|
-
clipUrl: string().optional(),
|
|
27302
|
-
metadata: record(string(), unknown()).optional()
|
|
27303
|
-
});
|
|
27304
|
-
DeviceType.Camera, method(object({
|
|
27305
|
-
deviceId: number(),
|
|
27306
|
-
from: number().optional(),
|
|
27307
|
-
to: number().optional(),
|
|
27308
|
-
limit: number().optional()
|
|
27309
|
-
}), array(EventItemSchema)), method(object({
|
|
27310
|
-
deviceId: number(),
|
|
27311
|
-
eventId: string()
|
|
27312
|
-
}), object({
|
|
27313
|
-
base64: string(),
|
|
27314
|
-
contentType: string()
|
|
27315
|
-
}).nullable()), method(object({
|
|
27316
|
-
deviceId: number(),
|
|
27317
|
-
eventId: string()
|
|
27318
|
-
}), string().nullable());
|
|
27319
27131
|
var IdentitySchema = object({
|
|
27320
27132
|
id: string(),
|
|
27321
27133
|
name: string(),
|
|
@@ -28987,143 +28799,6 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
28987
28799
|
lastChangedAt: number()
|
|
28988
28800
|
});
|
|
28989
28801
|
/**
|
|
28990
|
-
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
28991
|
-
* page.
|
|
28992
|
-
*
|
|
28993
|
-
* ## Why this is a capability and not an addon settings schema
|
|
28994
|
-
*
|
|
28995
|
-
* It was one, and it did not render. The addon declared the editor as a
|
|
28996
|
-
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
28997
|
-
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
28998
|
-
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
28999
|
-
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29000
|
-
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29001
|
-
* not on it "falls off silently".
|
|
29002
|
-
*
|
|
29003
|
-
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29004
|
-
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29005
|
-
* beside PTZ and motion zones on the camera itself. The device page is
|
|
29006
|
-
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
29007
|
-
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
29008
|
-
* from `getDeviceSettingsContribution`.
|
|
29009
|
-
*
|
|
29010
|
-
* Seven other widgets are still declared the other way, through a
|
|
29011
|
-
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
29012
|
-
* gives the addon no say in where its own panel lands and no way to decline
|
|
29013
|
-
* for a device the panel does not suit, which is why this one does not use it.
|
|
29014
|
-
*
|
|
29015
|
-
* ## Why one addon may implement it
|
|
29016
|
-
*
|
|
29017
|
-
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29018
|
-
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29019
|
-
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29020
|
-
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29021
|
-
* reached only by a caller that already knew the addon id.
|
|
29022
|
-
*
|
|
29023
|
-
* ## The tab
|
|
29024
|
-
*
|
|
29025
|
-
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29026
|
-
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29027
|
-
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29028
|
-
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29029
|
-
* next to "PTZ").
|
|
29030
|
-
*/
|
|
29031
|
-
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29032
|
-
var GridNormalizedRectSchema = object({
|
|
29033
|
-
x: number().min(0).max(1),
|
|
29034
|
-
y: number().min(0).max(1),
|
|
29035
|
-
width: number().gt(0).max(1),
|
|
29036
|
-
height: number().gt(0).max(1)
|
|
29037
|
-
});
|
|
29038
|
-
/**
|
|
29039
|
-
* One source camera, the part of its picture taken, and where that part lands.
|
|
29040
|
-
*
|
|
29041
|
-
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29042
|
-
* — a profile switch, a firmware update, a substream that comes back different
|
|
29043
|
-
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29044
|
-
* which is the class of bug nobody files.
|
|
29045
|
-
*/
|
|
29046
|
-
var GridLayoutCellSchema = object({
|
|
29047
|
-
deviceId: number().int().positive(),
|
|
29048
|
-
/** The part of the SOURCE taken, normalized against the source. */
|
|
29049
|
-
source: GridNormalizedRectSchema,
|
|
29050
|
-
/** Where it lands, normalized against the CANVAS. */
|
|
29051
|
-
cell: GridNormalizedRectSchema
|
|
29052
|
-
});
|
|
29053
|
-
/**
|
|
29054
|
-
* Which profiles this grid can actually compose, and why not.
|
|
29055
|
-
*
|
|
29056
|
-
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29057
|
-
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29058
|
-
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29059
|
-
* low" is, and it is the one an operator can act on.
|
|
29060
|
-
*/
|
|
29061
|
-
var GridProfileOfferSchema = object({
|
|
29062
|
-
profile: _enum([
|
|
29063
|
-
"high",
|
|
29064
|
-
"mid",
|
|
29065
|
-
"low"
|
|
29066
|
-
]),
|
|
29067
|
-
offered: boolean(),
|
|
29068
|
-
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29069
|
-
missingSources: array(number().int().positive()),
|
|
29070
|
-
/**
|
|
29071
|
-
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
29072
|
-
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
29073
|
-
* it is reported because nothing else in the system would ever say what the
|
|
29074
|
-
* grid came out as, and because it is the number an operator would otherwise
|
|
29075
|
-
* expect to type.
|
|
29076
|
-
*/
|
|
29077
|
-
canvas: string(),
|
|
29078
|
-
/**
|
|
29079
|
-
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
29080
|
-
*
|
|
29081
|
-
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
29082
|
-
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
29083
|
-
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
29084
|
-
* Default is `mid` + `low`.
|
|
29085
|
-
*/
|
|
29086
|
-
published: boolean()
|
|
29087
|
-
});
|
|
29088
|
-
var GridLayoutViewSchema = object({
|
|
29089
|
-
/** The persisted grid row this camera was declared from. */
|
|
29090
|
-
instanceId: string(),
|
|
29091
|
-
deviceId: number().int().nonnegative(),
|
|
29092
|
-
name: string(),
|
|
29093
|
-
/**
|
|
29094
|
-
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
29095
|
-
* its own from the cells and its sources' dimensions. The two numbers that
|
|
29096
|
-
* used to be here were a text field that silently decided both how much the
|
|
29097
|
-
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
29098
|
-
* came out as.
|
|
29099
|
-
*/
|
|
29100
|
-
fps: number().int(),
|
|
29101
|
-
cells: array(GridLayoutCellSchema),
|
|
29102
|
-
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29103
|
-
profiles: array(GridProfileOfferSchema)
|
|
29104
|
-
});
|
|
29105
|
-
var GridLayoutPatchSchema = object({
|
|
29106
|
-
deviceId: number().int().nonnegative(),
|
|
29107
|
-
name: string().min(1).max(160).optional(),
|
|
29108
|
-
fps: number().int().min(1).max(60).optional(),
|
|
29109
|
-
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
29110
|
-
publishedProfiles: array(_enum([
|
|
29111
|
-
"high",
|
|
29112
|
-
"mid",
|
|
29113
|
-
"low"
|
|
29114
|
-
])).max(3).optional(),
|
|
29115
|
-
/**
|
|
29116
|
-
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29117
|
-
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29118
|
-
* for.
|
|
29119
|
-
*/
|
|
29120
|
-
cells: array(GridLayoutCellSchema).max(16)
|
|
29121
|
-
});
|
|
29122
|
-
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29123
|
-
kind: "mutation",
|
|
29124
|
-
auth: "admin"
|
|
29125
|
-
});
|
|
29126
|
-
/**
|
|
29127
28802
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29128
28803
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29129
28804
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -30935,37 +30610,37 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
30935
30610
|
kind: "mutation",
|
|
30936
30611
|
auth: "admin"
|
|
30937
30612
|
});
|
|
30938
|
-
/**
|
|
30939
|
-
* `recording` cap — footage availability + HLS playback manifests + per-device
|
|
30940
|
-
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
30941
|
-
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
30942
|
-
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
30943
|
-
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
30944
|
-
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
30945
|
-
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
30946
|
-
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
30947
|
-
*/
|
|
30948
|
-
var RecordingStatusSchema = object({
|
|
30949
|
-
deviceId: number(),
|
|
30950
|
-
enabled: boolean(),
|
|
30951
|
-
/** THE derived storage mode, from the one definition
|
|
30952
|
-
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30953
|
-
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30954
|
-
activeMode: RecordingStorageModeSchema,
|
|
30955
|
-
nodeId: string(),
|
|
30956
|
-
storageBytes: number()
|
|
30957
|
-
});
|
|
30958
30613
|
var RecordingRangeSchema = object({
|
|
30959
30614
|
profile: string(),
|
|
30960
30615
|
startMs: number(),
|
|
30961
30616
|
endMs: number()
|
|
30962
30617
|
});
|
|
30618
|
+
/**
|
|
30619
|
+
* How a source ANSWERED, on every singular read of this cap.
|
|
30620
|
+
*
|
|
30621
|
+
* `'read'` — it looked. `ranges: []` / `days: []` is then a real claim: this
|
|
30622
|
+
* source has no coverage in the window. `'unreadable'` — nobody could look
|
|
30623
|
+
* (the camera was unreachable, the calendar rung threw, the location is
|
|
30624
|
+
* unmounted, the node is still on the old build), and the emptiness beside it
|
|
30625
|
+
* means NOTHING.
|
|
30626
|
+
*
|
|
30627
|
+
* The batch rows have carried this since the grid existed; the SINGULAR
|
|
30628
|
+
* answers gained it with the collection (D625 §10.4), because they are the
|
|
30629
|
+
* ones the single-camera picker uses and because a half-converted fleet makes
|
|
30630
|
+
* "nobody looked" common for the length of a deploy. Without it the timeline
|
|
30631
|
+
* has no vocabulary for it, and `(data ?? [])` in a viewer turns a rollout into
|
|
30632
|
+
* a fleet of cameras that appear to have lost their recordings (D315, D393).
|
|
30633
|
+
*/
|
|
30634
|
+
var RecordingReadSchema = _enum(["read", "unreadable"]);
|
|
30963
30635
|
var RecordingAvailabilitySchema = object({
|
|
30964
30636
|
deviceId: number(),
|
|
30637
|
+
/** See {@link RecordingReadSchema}. An `'unreadable'` answer carries an empty
|
|
30638
|
+
* `ranges` that means nothing — never draw it as "no footage". */
|
|
30639
|
+
read: RecordingReadSchema,
|
|
30965
30640
|
ranges: array(RecordingRangeSchema),
|
|
30966
30641
|
/**
|
|
30967
|
-
* Every profile this camera has footage in — not only the one
|
|
30968
|
-
* describes (D433).
|
|
30642
|
+
* Every profile this camera has footage in AT THIS SOURCE — not only the one
|
|
30643
|
+
* `ranges` describes (D433).
|
|
30969
30644
|
*
|
|
30970
30645
|
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30971
30646
|
* and enumerating all of them triples the directory reads for a bar that
|
|
@@ -30982,15 +30657,285 @@ var RecordingAvailabilitySchema = object({
|
|
|
30982
30657
|
});
|
|
30983
30658
|
var RecordingDaysSchema = object({
|
|
30984
30659
|
deviceId: number(),
|
|
30660
|
+
/** See {@link RecordingReadSchema}. `days: []` on an `'unreadable'` answer is
|
|
30661
|
+
* "nobody could look", and the date-picker must not spell it the same as
|
|
30662
|
+
* "no footage this month". */
|
|
30663
|
+
read: RecordingReadSchema,
|
|
30985
30664
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
30986
30665
|
days: array(number())
|
|
30987
30666
|
});
|
|
30667
|
+
var RecordingManifestSchema = object({
|
|
30668
|
+
deviceId: number(),
|
|
30669
|
+
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
30670
|
+
localMasterPath: string().nullable(),
|
|
30671
|
+
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
30672
|
+
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
30673
|
+
* scoped playback token in its path. */
|
|
30674
|
+
playbackUrl: string().nullable(),
|
|
30675
|
+
/**
|
|
30676
|
+
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
30677
|
+
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
30678
|
+
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
30679
|
+
* there is no recording / server.
|
|
30680
|
+
*/
|
|
30681
|
+
playbackEndpoints: array(string())
|
|
30682
|
+
});
|
|
30683
|
+
var RecordingSourceAvailabilitySchema = object({
|
|
30684
|
+
state: _enum([
|
|
30685
|
+
"ok",
|
|
30686
|
+
"sleeping",
|
|
30687
|
+
"unreachable",
|
|
30688
|
+
"no-storage",
|
|
30689
|
+
"index-empty"
|
|
30690
|
+
]),
|
|
30691
|
+
/** Free text, shown verbatim. Names the camera's own refusal when there is one. */
|
|
30692
|
+
reason: string().optional(),
|
|
30693
|
+
/** When this source's coverage was last CONFIRMED. A cached answer is never
|
|
30694
|
+
* drawn as current: the surface shows the age whenever it is older than the
|
|
30695
|
+
* refresh interval. The clip catalog's `catalogAsOf`, under the name the
|
|
30696
|
+
* timeline uses for it. */
|
|
30697
|
+
coverageAsOf: number().optional()
|
|
30698
|
+
});
|
|
30699
|
+
/**
|
|
30700
|
+
* One SOURCE of recorded coverage for a camera — a row of the picker.
|
|
30701
|
+
*
|
|
30702
|
+
* A provider lists the sources IT serves for that device, and answers for each
|
|
30703
|
+
* of them whether it can answer at all. A provider with nothing to offer on a
|
|
30704
|
+
* camera returns `[]` — it is not that camera's business. The five availability
|
|
30705
|
+
* states are `ClipSourceAvailability`'s verbatim: they mean exactly the same
|
|
30706
|
+
* things about a coverage index as about a clip catalog, and `sleeping` in
|
|
30707
|
+
* particular is what stops a battery camera being woken to paint a bar.
|
|
30708
|
+
*/
|
|
30709
|
+
var RecordingSourceSchema = object({
|
|
30710
|
+
/** The source id. {@link RECORDING_SOURCE_CAMSTACK} for ours (RESERVED), a
|
|
30711
|
+
* vendor namespace (`native:reolink:onboard`, …) for a camera's own store. */
|
|
30712
|
+
source: string(),
|
|
30713
|
+
/** Operator-facing name of the source ("CamStack recordings", "SD card"). */
|
|
30714
|
+
label: string(),
|
|
30715
|
+
/**
|
|
30716
|
+
* The addon that SERVES this row, and the value a later call passes as
|
|
30717
|
+
* `provider`.
|
|
30718
|
+
*
|
|
30719
|
+
* Optional for version skew only. The collection dispatcher stamps it from
|
|
30720
|
+
* the registry, so a row that travelled through the fan-out carries the
|
|
30721
|
+
* authoritative id whatever the provider filled in (D557 §4).
|
|
30722
|
+
*/
|
|
30723
|
+
addonId: string().optional(),
|
|
30724
|
+
availability: RecordingSourceAvailabilitySchema
|
|
30725
|
+
});
|
|
30726
|
+
/**
|
|
30727
|
+
* What a surface may DRAW for this (camera, source) — D612's rule applied to a
|
|
30728
|
+
* timeline: **the source declares what it can do, and the surface draws what
|
|
30729
|
+
* was declared. It never assumes, and never offers a gesture it will then
|
|
30730
|
+
* refuse.** D612 exists because `8` and `16` were offered as clip rates, the
|
|
30731
|
+
* broker clamped them to `4`, and no line anywhere said so.
|
|
30732
|
+
*
|
|
30733
|
+
* Asked once per (camera, source) before anything is drawn — never replaced by
|
|
30734
|
+
* a constant the surface keeps, which is the second authority D612 ends.
|
|
30735
|
+
*/
|
|
30736
|
+
var RecordingSourceOptionsSchema = object({
|
|
30737
|
+
/** How this source's media reaches the player.
|
|
30738
|
+
* `archive` = our own indexed segment tree; `stream` = the provider's
|
|
30739
|
+
* forward-only fMP4 (D597); `realtime` = a replay bound to wall clock. */
|
|
30740
|
+
transport: _enum([
|
|
30741
|
+
"archive",
|
|
30742
|
+
"stream",
|
|
30743
|
+
"realtime"
|
|
30744
|
+
]),
|
|
30745
|
+
/** What the BAR means. `continuous` = gaps are holes in a recording;
|
|
30746
|
+
* `sparse` = gaps are the absence of one, and must be drawn as such.
|
|
30747
|
+
*
|
|
30748
|
+
* Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
|
|
30749
|
+
* of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
|
|
30750
|
+
* pair, and ours answers it per camera from `deriveRecordingMode`. */
|
|
30751
|
+
coverage: _enum(["continuous", "sparse"]),
|
|
30752
|
+
/** Where the playhead may be put.
|
|
30753
|
+
* `free` — anywhere, to the frame.
|
|
30754
|
+
* `forward` — only ahead of the current position.
|
|
30755
|
+
* `segment` — a position SNAPS to the head of the covering segment; a finer
|
|
30756
|
+
* ask is accepted by the camera and SILENTLY IGNORED. Measured
|
|
30757
|
+
* on 1436 (Hikvision V5.7.1, 2026-09-23): a window-narrowed
|
|
30758
|
+
* `ContentMgmt/search` returns a row and a `playbackURI`, the
|
|
30759
|
+
* replay opens 200 and delivers media — and the burned-in OSD of
|
|
30760
|
+
* the first frame reads the SEGMENT HEAD every time. Calling
|
|
30761
|
+
* that `forward` would tell the surface it may move the playhead
|
|
30762
|
+
* ahead within a loaded segment, which it may not. */
|
|
30763
|
+
seek: _enum([
|
|
30764
|
+
"free",
|
|
30765
|
+
"forward",
|
|
30766
|
+
"segment"
|
|
30767
|
+
]),
|
|
30768
|
+
/** Frame-step BACKWARD is meaningful. */
|
|
30769
|
+
stepBack: boolean(),
|
|
30770
|
+
/** Whether the drag-scrub gesture is served, as opposed to refused by name. */
|
|
30771
|
+
scrub: boolean(),
|
|
30772
|
+
/** Deliverable rates, ascending, always containing `1`. The surface draws its
|
|
30773
|
+
* picker from this and from NOTHING else (D612, D620, D621). `0` is not a
|
|
30774
|
+
* member: pause is the absence of a rate. */
|
|
30775
|
+
rates: array(number().positive()).min(1).readonly(),
|
|
30776
|
+
/** TRUE when a read of this source HOLDS the camera's only playback session.
|
|
30777
|
+
* A surface with this set makes at most ONE read at a time and draws no
|
|
30778
|
+
* scrub-thumbnail strip, no hover preview, no prefetch and no background
|
|
30779
|
+
* refresh. The precedent is exact and expensive: filling one screen of
|
|
30780
|
+
* Hikvision thumbnails at 1.01× realtime consumed fifteen minutes of that
|
|
30781
|
+
* camera's only playback session (1.2.126, reported within minutes), and a
|
|
30782
|
+
* timeline is a screenful of reads by construction. */
|
|
30783
|
+
exclusive: boolean()
|
|
30784
|
+
});
|
|
30785
|
+
/**
|
|
30786
|
+
* How to PLAY the instant that was asked for, from the chosen source.
|
|
30787
|
+
*
|
|
30788
|
+
* No new media transport is built for onboard sources: the `clip` arm is a
|
|
30789
|
+
* DELEGATION to the `videoclips` transport that vendor already has (D597 /
|
|
30790
|
+
* D616 / D617). The onboard half of this collection is a PROJECTION of
|
|
30791
|
+
* `videoclips` for coverage and a delegation to it for bytes.
|
|
30792
|
+
*/
|
|
30793
|
+
var RecordingPlaybackSchema = discriminatedUnion("kind", [
|
|
30794
|
+
object({
|
|
30795
|
+
kind: literal("hls"),
|
|
30796
|
+
manifest: RecordingManifestSchema
|
|
30797
|
+
}),
|
|
30798
|
+
object({
|
|
30799
|
+
kind: literal("clip"),
|
|
30800
|
+
/** The `videoclips` source namespace this clip id belongs to. */
|
|
30801
|
+
source: string(),
|
|
30802
|
+
clipId: string(),
|
|
30803
|
+
/** Where this clip actually STARTS. On a `seek: 'segment'` source the
|
|
30804
|
+
* playhead lands here, not at the requested instant — the surface must be
|
|
30805
|
+
* TOLD, not left to discover it from a burned-in OSD. */
|
|
30806
|
+
startsAtMs: number()
|
|
30807
|
+
}),
|
|
30808
|
+
object({
|
|
30809
|
+
kind: literal("none"),
|
|
30810
|
+
reason: string()
|
|
30811
|
+
})
|
|
30812
|
+
]);
|
|
30813
|
+
DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceSchema).readonly(), {
|
|
30814
|
+
kind: "query",
|
|
30815
|
+
auth: "protected"
|
|
30816
|
+
}), method(object({
|
|
30817
|
+
deviceId: number(),
|
|
30818
|
+
/**
|
|
30819
|
+
* WHICH provider to ask — the `addonId` a {@link RecordingSourceSchema}
|
|
30820
|
+
* row carries, never a source id and never a list. **REQUIRED**, in the
|
|
30821
|
+
* schema, where the generated types make it unomittable rather than
|
|
30822
|
+
* merely discouraged (D554 amended).
|
|
30823
|
+
*
|
|
30824
|
+
* It was learned the expensive way on `videoclips.listClips`: measured
|
|
30825
|
+
* on the live hub 2026-09-20, device 592 bound to `recorder` AND
|
|
30826
|
+
* `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
|
|
30827
|
+
* three from each source, merged — `device-collection-dispatch.ts`
|
|
30828
|
+
* leaves an unpinned fan-out un-narrowed, so absence buys the union the
|
|
30829
|
+
* method exists not to be. An un-narrowed `getAvailability` would do
|
|
30830
|
+
* that to a TIMELINE: our ranges and the card's clips unioned into one
|
|
30831
|
+
* bar, which is "two sources are never drawn together" broken in the
|
|
30832
|
+
* one place it matters most.
|
|
30833
|
+
*
|
|
30834
|
+
* A provider the device is not bound to is refused BY NAME (D552's
|
|
30835
|
+
* `rejectUnresolvedAddonPin`), never answered by another one.
|
|
30836
|
+
*/
|
|
30837
|
+
provider: string().min(1),
|
|
30838
|
+
fromMs: number(),
|
|
30839
|
+
toMs: number(),
|
|
30840
|
+
/**
|
|
30841
|
+
* Answer for THIS profile instead of the source's preferred one (D433).
|
|
30842
|
+
* Absent keeps the timeline's behaviour — one bar, one profile, one set
|
|
30843
|
+
* of reads. `profilesWithFootage` on the answer says what may be asked
|
|
30844
|
+
* for.
|
|
30845
|
+
*/
|
|
30846
|
+
profile: string().optional()
|
|
30847
|
+
}), RecordingAvailabilitySchema, {
|
|
30848
|
+
kind: "query",
|
|
30849
|
+
auth: "protected"
|
|
30850
|
+
}), method(object({
|
|
30851
|
+
deviceId: number(),
|
|
30852
|
+
provider: string().min(1),
|
|
30853
|
+
fromMs: number(),
|
|
30854
|
+
toMs: number(),
|
|
30855
|
+
tzOffsetMinutes: number()
|
|
30856
|
+
}), RecordingDaysSchema, {
|
|
30857
|
+
kind: "query",
|
|
30858
|
+
auth: "protected"
|
|
30859
|
+
}), method(object({
|
|
30860
|
+
deviceId: number(),
|
|
30861
|
+
provider: string().min(1),
|
|
30862
|
+
fromMs: number(),
|
|
30863
|
+
toMs: number(),
|
|
30864
|
+
profile: CamProfileSchema.optional()
|
|
30865
|
+
}), RecordingPlaybackSchema, {
|
|
30866
|
+
kind: "query",
|
|
30867
|
+
auth: "protected"
|
|
30868
|
+
}), method(object({
|
|
30869
|
+
deviceId: number(),
|
|
30870
|
+
provider: string().min(1)
|
|
30871
|
+
}), RecordingSourceOptionsSchema, {
|
|
30872
|
+
kind: "query",
|
|
30873
|
+
auth: "protected"
|
|
30874
|
+
});
|
|
30875
|
+
/**
|
|
30876
|
+
* `recording-archive` — OUR archive, and the intent that fills it.
|
|
30877
|
+
*
|
|
30878
|
+
* The system-singleton half of the 2026-09-24 cut (D625). `recording` used to
|
|
30879
|
+
* be one 33-method system singleton holding two unrelated subjects: three
|
|
30880
|
+
* per-camera READS about coverage and playback, and everything else — storage
|
|
30881
|
+
* locations, retention, relocation, rebalance, the ops log, the placement
|
|
30882
|
+
* table and the byte-plane primitives our scrub and export are built on.
|
|
30883
|
+
*
|
|
30884
|
+
* The reads became a device-scoped COLLECTION, so a camera's own card can be a
|
|
30885
|
+
* source beside ours (`recording.cap.ts`). Everything that is about OUR store,
|
|
30886
|
+
* or unimplementable by a camera, stayed here.
|
|
30887
|
+
*
|
|
30888
|
+
* ## On the name
|
|
30889
|
+
*
|
|
30890
|
+
* `recording-storage` was the obvious choice and is wrong: this cap also holds
|
|
30891
|
+
* `getDeviceConfig`/`setDeviceConfig`, which are recording INTENT — bands,
|
|
30892
|
+
* retention, the D62 switch authority — and a name that says "storage" invites
|
|
30893
|
+
* the next reader to move them out again. An archive is a thing we keep, and
|
|
30894
|
+
* what we keep it under is a policy; the name covers both halves honestly and
|
|
30895
|
+
* sits in the existing family (`recording-onboard`, `recording-export`,
|
|
30896
|
+
* `recording-signal`).
|
|
30897
|
+
*
|
|
30898
|
+
* ## What must NOT happen to it
|
|
30899
|
+
*
|
|
30900
|
+
* It stays a SINGLETON. It is registered by `recorder`, which is
|
|
30901
|
+
* `placement: 'any-node'` and runs on every recording node; the hub dispatches
|
|
30902
|
+
* to one of them. Putting the ledger, the placement table or the relocation
|
|
30903
|
+
* jobs behind a fan-out is the one genuinely dangerous move in this cut.
|
|
30904
|
+
*
|
|
30905
|
+
* `getDeviceConfig` / `setDeviceConfig` in particular are the D62 recording
|
|
30906
|
+
* authority (`CameraSwitch.authority`). If a write reached a different provider
|
|
30907
|
+
* than the read — which a collection fan-out permits — two authorities would
|
|
30908
|
+
* decide when one camera records, and the symptom (recording silently off, or
|
|
30909
|
+
* a `bands` array clobbered by a partial write) is durable and silent. Keeping
|
|
30910
|
+
* them here means the worst case during a rollout is a 412: the switch refuses
|
|
30911
|
+
* to flip and SAYS so. **Do not move them into the collection, at any point,
|
|
30912
|
+
* for any reason.**
|
|
30913
|
+
*
|
|
30914
|
+
* ## The two batch reads
|
|
30915
|
+
*
|
|
30916
|
+
* `getAvailabilityBatch` / `getDaysWithRecordingsBatch` take `deviceIds:
|
|
30917
|
+
* number[]` with no single `deviceId`, and a device-scoped mount routes
|
|
30918
|
+
* through `getProviderForDevice(deviceId)` — there is nothing for it to route
|
|
30919
|
+
* on. They stay here, and on this cap the batch is explicitly OURS: a grid has
|
|
30920
|
+
* no per-camera picker, and a caller that wants another source's coverage asks
|
|
30921
|
+
* `recording.getAvailability` per device with that source's `provider`.
|
|
30922
|
+
*/
|
|
30923
|
+
var RecordingStatusSchema = object({
|
|
30924
|
+
deviceId: number(),
|
|
30925
|
+
enabled: boolean(),
|
|
30926
|
+
/** THE derived storage mode, from the one definition
|
|
30927
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30928
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30929
|
+
activeMode: RecordingStorageModeSchema,
|
|
30930
|
+
nodeId: string(),
|
|
30931
|
+
storageBytes: number()
|
|
30932
|
+
});
|
|
30988
30933
|
/**
|
|
30989
30934
|
* One camera's row in a `getAvailabilityBatch` answer.
|
|
30990
30935
|
*
|
|
30991
|
-
* `ranges` is EXACTLY what `getAvailability` returns for that camera
|
|
30992
|
-
* batch collapses the transport, not the work — plus the
|
|
30993
|
-
*
|
|
30936
|
+
* `ranges` is EXACTLY what `recording.getAvailability` returns for that camera
|
|
30937
|
+
* at OUR source — the batch collapses the transport, not the work — plus the
|
|
30938
|
+
* `read` mark the singular answer now carries too (D625):
|
|
30994
30939
|
*
|
|
30995
30940
|
* - `read: 'read'` — answered. `ranges: []` means "read, and this camera has
|
|
30996
30941
|
* no footage in the window", which is a real claim.
|
|
@@ -31022,22 +30967,6 @@ var RecordingDaysForDeviceSchema = object({
|
|
|
31022
30967
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
31023
30968
|
days: array(number()).readonly()
|
|
31024
30969
|
});
|
|
31025
|
-
var RecordingManifestSchema = object({
|
|
31026
|
-
deviceId: number(),
|
|
31027
|
-
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
31028
|
-
localMasterPath: string().nullable(),
|
|
31029
|
-
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
31030
|
-
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
31031
|
-
* scoped playback token in its path. */
|
|
31032
|
-
playbackUrl: string().nullable(),
|
|
31033
|
-
/**
|
|
31034
|
-
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
31035
|
-
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
31036
|
-
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
31037
|
-
* there is no recording / server.
|
|
31038
|
-
*/
|
|
31039
|
-
playbackEndpoints: array(string())
|
|
31040
|
-
});
|
|
31041
30970
|
/**
|
|
31042
30971
|
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31043
30972
|
* across every profile and every resolvable location on this node.
|
|
@@ -31296,34 +31225,12 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31296
31225
|
segmentEndMs: number()
|
|
31297
31226
|
})]);
|
|
31298
31227
|
method(object({
|
|
31299
|
-
deviceId: number(),
|
|
31300
|
-
fromMs: number(),
|
|
31301
|
-
toMs: number(),
|
|
31302
|
-
/**
|
|
31303
|
-
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31304
|
-
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31305
|
-
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31306
|
-
* for.
|
|
31307
|
-
*/
|
|
31308
|
-
profile: string().optional()
|
|
31309
|
-
}), RecordingAvailabilitySchema, {
|
|
31310
|
-
kind: "query",
|
|
31311
|
-
auth: "protected"
|
|
31312
|
-
}), method(object({
|
|
31313
31228
|
deviceIds: array(number()).min(1).max(200),
|
|
31314
31229
|
fromMs: number(),
|
|
31315
31230
|
toMs: number()
|
|
31316
31231
|
}), array(RecordingAvailabilityForDeviceSchema).readonly(), {
|
|
31317
31232
|
kind: "query",
|
|
31318
31233
|
auth: "protected"
|
|
31319
|
-
}), method(object({
|
|
31320
|
-
deviceId: number(),
|
|
31321
|
-
fromMs: number(),
|
|
31322
|
-
toMs: number(),
|
|
31323
|
-
tzOffsetMinutes: number()
|
|
31324
|
-
}), RecordingDaysSchema, {
|
|
31325
|
-
kind: "query",
|
|
31326
|
-
auth: "protected"
|
|
31327
31234
|
}), method(object({
|
|
31328
31235
|
deviceIds: array(number()).min(1).max(200),
|
|
31329
31236
|
fromMs: number(),
|
|
@@ -31332,13 +31239,6 @@ method(object({
|
|
|
31332
31239
|
}), array(RecordingDaysForDeviceSchema).readonly(), {
|
|
31333
31240
|
kind: "query",
|
|
31334
31241
|
auth: "protected"
|
|
31335
|
-
}), method(object({
|
|
31336
|
-
deviceId: number(),
|
|
31337
|
-
fromMs: number(),
|
|
31338
|
-
toMs: number()
|
|
31339
|
-
}), RecordingManifestSchema, {
|
|
31340
|
-
kind: "query",
|
|
31341
|
-
auth: "protected"
|
|
31342
31242
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
31343
31243
|
kind: "query",
|
|
31344
31244
|
auth: "admin"
|
|
@@ -31786,6 +31686,307 @@ method(object({
|
|
|
31786
31686
|
auth: "protected"
|
|
31787
31687
|
});
|
|
31788
31688
|
/**
|
|
31689
|
+
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
31690
|
+
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
31691
|
+
*
|
|
31692
|
+
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
31693
|
+
* footage ledger, our storage locations, our retention. This one has a
|
|
31694
|
+
* different authority — the camera's firmware — and per D62 it stores
|
|
31695
|
+
* nothing of its own. Every value here is read from the camera and every
|
|
31696
|
+
* write goes back to the camera; there is no CamStack-side mirror that
|
|
31697
|
+
* could disagree with the device.
|
|
31698
|
+
*
|
|
31699
|
+
* ## One shape, two firmwares
|
|
31700
|
+
*
|
|
31701
|
+
* Measured 2026-09-22 against the live fleet:
|
|
31702
|
+
*
|
|
31703
|
+
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
31704
|
+
* | --- | --- | --- |
|
|
31705
|
+
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
31706
|
+
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
31707
|
+
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
31708
|
+
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
31709
|
+
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
31710
|
+
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
31711
|
+
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
31712
|
+
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
31713
|
+
*
|
|
31714
|
+
* The two schedule models look different and are the same thing in
|
|
31715
|
+
* different coordinates: both answer "for this trigger, during which
|
|
31716
|
+
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
31717
|
+
* question in one shape — Hikvision's ranges map straight onto it,
|
|
31718
|
+
* Reolink's mask expands into hour-aligned windows.
|
|
31719
|
+
*
|
|
31720
|
+
* ## Union, not intersection
|
|
31721
|
+
*
|
|
31722
|
+
* **The same fields exist on every camera.** What differs per device is
|
|
31723
|
+
* which VALUES that device accepts, and that is what {@link
|
|
31724
|
+
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
31725
|
+
* per field plus the schedule's own limits. A control a camera cannot
|
|
31726
|
+
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
31727
|
+
* dead: disabled must not look like broken.
|
|
31728
|
+
*
|
|
31729
|
+
* ## Refusal by name
|
|
31730
|
+
*
|
|
31731
|
+
* A write a camera cannot honour is refused with a sentence the operator
|
|
31732
|
+
* can read — never accepted and dropped. Both providers refuse through
|
|
31733
|
+
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
31734
|
+
* one test, not two hand-written vendor opinions.
|
|
31735
|
+
*
|
|
31736
|
+
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
31737
|
+
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
31738
|
+
* injected from `status`) reports the live values, and a single
|
|
31739
|
+
* `setSettings` mutation applies a partial change. No hand-written
|
|
31740
|
+
* settings-contribution methods.
|
|
31741
|
+
*/
|
|
31742
|
+
/**
|
|
31743
|
+
* What makes the camera start recording during a window.
|
|
31744
|
+
*
|
|
31745
|
+
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
31746
|
+
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
31747
|
+
* object-class triggers are Reolink-only today and the smart-event ones
|
|
31748
|
+
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
31749
|
+
* firmwares measured — a camera that cannot record on a trigger simply
|
|
31750
|
+
* does not list it in `options.schedule.triggers`, and a window naming
|
|
31751
|
+
* it is REFUSED, not dropped.
|
|
31752
|
+
*/
|
|
31753
|
+
var RecordTriggerSchema = _enum([
|
|
31754
|
+
"continuous",
|
|
31755
|
+
"motion",
|
|
31756
|
+
"person",
|
|
31757
|
+
"vehicle",
|
|
31758
|
+
"animal",
|
|
31759
|
+
"lineCrossing",
|
|
31760
|
+
"intrusion",
|
|
31761
|
+
"loitering",
|
|
31762
|
+
"alarmInput"
|
|
31763
|
+
]);
|
|
31764
|
+
/**
|
|
31765
|
+
* One weekly recording window: "on `day`, from `startMinute` to
|
|
31766
|
+
* `endMinute`, record on `trigger`".
|
|
31767
|
+
*
|
|
31768
|
+
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
31769
|
+
* both firmwares enumerate). Minutes are local camera time since
|
|
31770
|
+
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
31771
|
+
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
31772
|
+
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
31773
|
+
*/
|
|
31774
|
+
var RecordWindowSchema = object({
|
|
31775
|
+
trigger: RecordTriggerSchema,
|
|
31776
|
+
day: number().int().min(0).max(6),
|
|
31777
|
+
startMinute: number().int().min(0).max(1439),
|
|
31778
|
+
endMinute: number().int().min(1).max(1440)
|
|
31779
|
+
});
|
|
31780
|
+
/** Status of one physical volume, as the camera itself describes it. */
|
|
31781
|
+
var OnboardStorageVolumeSchema = object({
|
|
31782
|
+
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
31783
|
+
id: string(),
|
|
31784
|
+
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
31785
|
+
label: string().optional(),
|
|
31786
|
+
status: _enum([
|
|
31787
|
+
"ok",
|
|
31788
|
+
"unformatted",
|
|
31789
|
+
"error",
|
|
31790
|
+
"offline",
|
|
31791
|
+
"unknown"
|
|
31792
|
+
]),
|
|
31793
|
+
/**
|
|
31794
|
+
* Total size in MB, or **null when the camera did not say**.
|
|
31795
|
+
*
|
|
31796
|
+
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
31797
|
+
* measurement (D393), and a card whose size is unknown must not be
|
|
31798
|
+
* rendered as a card of size zero.
|
|
31799
|
+
*/
|
|
31800
|
+
capacityMb: number().nullable(),
|
|
31801
|
+
/**
|
|
31802
|
+
* Free space in MB, or null when unknown.
|
|
31803
|
+
*
|
|
31804
|
+
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
31805
|
+
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
31806
|
+
* card converges on once it has wrapped. At loop steady state the
|
|
31807
|
+
* number is identical whether the camera recorded yesterday or stopped
|
|
31808
|
+
* a month ago.
|
|
31809
|
+
*/
|
|
31810
|
+
freeMb: number().nullable(),
|
|
31811
|
+
/** True when the camera reports the volume writable (`property` RW). */
|
|
31812
|
+
writable: boolean().optional()
|
|
31813
|
+
});
|
|
31814
|
+
object({
|
|
31815
|
+
storage: discriminatedUnion("kind", [
|
|
31816
|
+
object({
|
|
31817
|
+
kind: literal("present"),
|
|
31818
|
+
volumes: array(OnboardStorageVolumeSchema)
|
|
31819
|
+
}),
|
|
31820
|
+
object({
|
|
31821
|
+
kind: literal("absent"),
|
|
31822
|
+
reason: string()
|
|
31823
|
+
}),
|
|
31824
|
+
object({
|
|
31825
|
+
kind: literal("unknown"),
|
|
31826
|
+
reason: string()
|
|
31827
|
+
})
|
|
31828
|
+
]),
|
|
31829
|
+
tracks: array(object({
|
|
31830
|
+
id: string(),
|
|
31831
|
+
enabled: boolean(),
|
|
31832
|
+
isVideo: boolean(),
|
|
31833
|
+
/** From the camera's own track description. Null when it does not say. */
|
|
31834
|
+
codec: string().nullable(),
|
|
31835
|
+
resolution: string().nullable(),
|
|
31836
|
+
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
31837
|
+
overwriteWhenFull: boolean().nullable()
|
|
31838
|
+
})),
|
|
31839
|
+
/**
|
|
31840
|
+
* The track the write path targets — the enabled VIDEO one. Null when
|
|
31841
|
+
* no track could be identified, which is itself a refusal reason.
|
|
31842
|
+
*/
|
|
31843
|
+
primaryTrackId: string().nullable(),
|
|
31844
|
+
/** Master "record to the card at all" switch. */
|
|
31845
|
+
enabled: boolean().nullable(),
|
|
31846
|
+
overwriteWhenFull: boolean().nullable(),
|
|
31847
|
+
preRecordSec: number().nullable(),
|
|
31848
|
+
postRecordSec: number().nullable(),
|
|
31849
|
+
/** Length of one recorded file, in minutes. */
|
|
31850
|
+
segmentMinutes: number().nullable(),
|
|
31851
|
+
/** The primary track's weekly windows, flattened. */
|
|
31852
|
+
windows: array(RecordWindowSchema),
|
|
31853
|
+
/**
|
|
31854
|
+
* How many windows the camera described that CamStack could NOT read —
|
|
31855
|
+
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
31856
|
+
* name.
|
|
31857
|
+
*
|
|
31858
|
+
* A dropped window is work the reader threw away, and a schedule that
|
|
31859
|
+
* silently shows fewer rows than the camera holds is how an operator
|
|
31860
|
+
* saves back a schedule shorter than the one they were looking at
|
|
31861
|
+
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
31862
|
+
* that replaces it would delete what was not shown — which is why a
|
|
31863
|
+
* provider reporting a non-zero count also reports the schedule as not
|
|
31864
|
+
* writable.
|
|
31865
|
+
*/
|
|
31866
|
+
unreadableWindows: number(),
|
|
31867
|
+
/**
|
|
31868
|
+
* The camera is scheduled to record and has NO usable storage.
|
|
31869
|
+
*
|
|
31870
|
+
* A first-class fact because it is the fleet's most common silent
|
|
31871
|
+
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
31872
|
+
* to a card that is not there. Neither the schedule nor the storage
|
|
31873
|
+
* read says anything wrong on its own; only the pair does.
|
|
31874
|
+
*/
|
|
31875
|
+
recordingToNowhere: boolean(),
|
|
31876
|
+
lastFetchedAt: number()
|
|
31877
|
+
});
|
|
31878
|
+
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
31879
|
+
var RangeSchema = object({
|
|
31880
|
+
min: number(),
|
|
31881
|
+
max: number(),
|
|
31882
|
+
step: number()
|
|
31883
|
+
});
|
|
31884
|
+
/**
|
|
31885
|
+
* The values a camera actually takes for a numeric field, when they are a SET
|
|
31886
|
+
* rather than a range.
|
|
31887
|
+
*
|
|
31888
|
+
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
31889
|
+
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
31890
|
+
*
|
|
31891
|
+
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
31892
|
+
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
31893
|
+
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
31894
|
+
*
|
|
31895
|
+
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
31896
|
+
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
31897
|
+
* would forbid values the camera takes AND permit values it silently replaces
|
|
31898
|
+
* with 5 — wrong in both directions at once.
|
|
31899
|
+
*
|
|
31900
|
+
* `sentinel` names the member that is not a duration, so a surface can render
|
|
31901
|
+
* "no limit" instead of `2147483647` seconds.
|
|
31902
|
+
*/
|
|
31903
|
+
var AllowedValuesSchema = object({
|
|
31904
|
+
values: array(number()).min(1),
|
|
31905
|
+
sentinel: object({
|
|
31906
|
+
value: number(),
|
|
31907
|
+
meaning: _enum(["no-limit", "disabled"])
|
|
31908
|
+
}).optional()
|
|
31909
|
+
});
|
|
31910
|
+
/**
|
|
31911
|
+
* Per-field availability on ONE camera.
|
|
31912
|
+
*
|
|
31913
|
+
* The field exists on every camera — this says whether this one can be
|
|
31914
|
+
* read and whether it can be written, and `reason` says why not when
|
|
31915
|
+
* either is false. The UI renders the control DISABLED with the reason
|
|
31916
|
+
* rather than hiding it, so a limitation is legible instead of looking
|
|
31917
|
+
* like a missing feature.
|
|
31918
|
+
*/
|
|
31919
|
+
var OnboardFieldSupportSchema = object({
|
|
31920
|
+
readable: boolean(),
|
|
31921
|
+
writable: boolean(),
|
|
31922
|
+
/** Required whenever `readable` or `writable` is false. */
|
|
31923
|
+
reason: string().optional()
|
|
31924
|
+
});
|
|
31925
|
+
/** What this camera's schedule model can express. */
|
|
31926
|
+
var OnboardScheduleSupportSchema = object({
|
|
31927
|
+
support: OnboardFieldSupportSchema,
|
|
31928
|
+
/**
|
|
31929
|
+
* The smallest time step the camera can express, in minutes.
|
|
31930
|
+
*
|
|
31931
|
+
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
31932
|
+
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
31933
|
+
* window whose edges are not a multiple of this is REFUSED rather than
|
|
31934
|
+
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
31935
|
+
* and nothing says so.
|
|
31936
|
+
*/
|
|
31937
|
+
granularityMinutes: number(),
|
|
31938
|
+
/** Triggers this camera can record on. A window naming another is refused. */
|
|
31939
|
+
triggers: array(RecordTriggerSchema),
|
|
31940
|
+
/**
|
|
31941
|
+
* False when the camera stores ONE trigger per time range, so two
|
|
31942
|
+
* windows overlapping on the same day cannot carry different triggers.
|
|
31943
|
+
* True on Reolink, whose mask is per-trigger and independent.
|
|
31944
|
+
*/
|
|
31945
|
+
supportsOverlappingTriggers: boolean()
|
|
31946
|
+
});
|
|
31947
|
+
var RecordingOnboardOptionsSchema = object({
|
|
31948
|
+
enabled: OnboardFieldSupportSchema,
|
|
31949
|
+
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
31950
|
+
preRecordSec: OnboardFieldSupportSchema,
|
|
31951
|
+
preRecordSecRange: RangeSchema.optional(),
|
|
31952
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31953
|
+
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
31954
|
+
postRecordSec: OnboardFieldSupportSchema,
|
|
31955
|
+
postRecordSecRange: RangeSchema.optional(),
|
|
31956
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31957
|
+
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
31958
|
+
segmentMinutes: OnboardFieldSupportSchema,
|
|
31959
|
+
segmentMinutesRange: RangeSchema.optional(),
|
|
31960
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31961
|
+
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
31962
|
+
schedule: OnboardScheduleSupportSchema
|
|
31963
|
+
});
|
|
31964
|
+
/**
|
|
31965
|
+
* A partial change. Every field optional.
|
|
31966
|
+
*
|
|
31967
|
+
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
31968
|
+
* silently ignore a field it cannot support — it refuses, by name,
|
|
31969
|
+
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
31970
|
+
* is the failure D62 exists to prevent: the operator believes the camera
|
|
31971
|
+
* is recording the way the form says, and it is not.
|
|
31972
|
+
*/
|
|
31973
|
+
var RecordingOnboardPatchSchema = object({
|
|
31974
|
+
enabled: boolean().optional(),
|
|
31975
|
+
overwriteWhenFull: boolean().optional(),
|
|
31976
|
+
preRecordSec: number().optional(),
|
|
31977
|
+
postRecordSec: number().optional(),
|
|
31978
|
+
segmentMinutes: number().optional(),
|
|
31979
|
+
/** The complete new window set for the primary track — not a delta. */
|
|
31980
|
+
windows: array(RecordWindowSchema).optional()
|
|
31981
|
+
});
|
|
31982
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
31983
|
+
deviceId: number(),
|
|
31984
|
+
settings: RecordingOnboardPatchSchema
|
|
31985
|
+
}), _void(), {
|
|
31986
|
+
kind: "mutation",
|
|
31987
|
+
auth: "admin"
|
|
31988
|
+
});
|
|
31989
|
+
/**
|
|
31789
31990
|
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
31790
31991
|
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
31791
31992
|
* running, a gate open) and lowers when it stops.
|
|
@@ -37079,24 +37280,6 @@ Object.freeze({
|
|
|
37079
37280
|
addonId: null,
|
|
37080
37281
|
access: "view"
|
|
37081
37282
|
},
|
|
37082
|
-
"events.getEventClipUrl": {
|
|
37083
|
-
capName: "events",
|
|
37084
|
-
capScope: "device",
|
|
37085
|
-
addonId: null,
|
|
37086
|
-
access: "view"
|
|
37087
|
-
},
|
|
37088
|
-
"events.getEvents": {
|
|
37089
|
-
capName: "events",
|
|
37090
|
-
capScope: "device",
|
|
37091
|
-
addonId: null,
|
|
37092
|
-
access: "view"
|
|
37093
|
-
},
|
|
37094
|
-
"events.getEventThumbnail": {
|
|
37095
|
-
capName: "events",
|
|
37096
|
-
capScope: "device",
|
|
37097
|
-
addonId: null,
|
|
37098
|
-
access: "view"
|
|
37099
|
-
},
|
|
37100
37283
|
"faceGallery.assignFace": {
|
|
37101
37284
|
capName: "face-gallery",
|
|
37102
37285
|
capScope: "system",
|
|
@@ -39971,224 +40154,236 @@ Object.freeze({
|
|
|
39971
40154
|
addonId: null,
|
|
39972
40155
|
access: "create"
|
|
39973
40156
|
},
|
|
39974
|
-
"recording.
|
|
40157
|
+
"recording.getAvailability": {
|
|
39975
40158
|
capName: "recording",
|
|
39976
|
-
capScope: "
|
|
40159
|
+
capScope: "device",
|
|
39977
40160
|
addonId: null,
|
|
39978
|
-
access: "
|
|
40161
|
+
access: "view"
|
|
39979
40162
|
},
|
|
39980
|
-
"recording.
|
|
40163
|
+
"recording.getDaysWithRecordings": {
|
|
39981
40164
|
capName: "recording",
|
|
39982
|
-
capScope: "
|
|
40165
|
+
capScope: "device",
|
|
39983
40166
|
addonId: null,
|
|
39984
|
-
access: "
|
|
40167
|
+
access: "view"
|
|
39985
40168
|
},
|
|
39986
|
-
"recording.
|
|
40169
|
+
"recording.getPlayback": {
|
|
39987
40170
|
capName: "recording",
|
|
39988
|
-
capScope: "
|
|
40171
|
+
capScope: "device",
|
|
39989
40172
|
addonId: null,
|
|
39990
|
-
access: "
|
|
40173
|
+
access: "view"
|
|
39991
40174
|
},
|
|
39992
|
-
"recording.
|
|
40175
|
+
"recording.getPlaybackOptions": {
|
|
39993
40176
|
capName: "recording",
|
|
39994
|
-
capScope: "
|
|
40177
|
+
capScope: "device",
|
|
39995
40178
|
addonId: null,
|
|
39996
|
-
access: "
|
|
40179
|
+
access: "view"
|
|
39997
40180
|
},
|
|
39998
|
-
"recording.
|
|
40181
|
+
"recording.listSources": {
|
|
39999
40182
|
capName: "recording",
|
|
40000
|
-
capScope: "
|
|
40183
|
+
capScope: "device",
|
|
40001
40184
|
addonId: null,
|
|
40002
40185
|
access: "view"
|
|
40003
40186
|
},
|
|
40004
|
-
"
|
|
40005
|
-
capName: "recording",
|
|
40187
|
+
"recordingArchive.applyDeviceSettingsPatch": {
|
|
40188
|
+
capName: "recording-archive",
|
|
40006
40189
|
capScope: "system",
|
|
40007
40190
|
addonId: null,
|
|
40008
|
-
access: "
|
|
40191
|
+
access: "create"
|
|
40009
40192
|
},
|
|
40010
|
-
"
|
|
40011
|
-
capName: "recording",
|
|
40193
|
+
"recordingArchive.cancelRelocateJob": {
|
|
40194
|
+
capName: "recording-archive",
|
|
40012
40195
|
capScope: "system",
|
|
40013
40196
|
addonId: null,
|
|
40014
|
-
access: "
|
|
40197
|
+
access: "create"
|
|
40015
40198
|
},
|
|
40016
|
-
"
|
|
40017
|
-
capName: "recording",
|
|
40199
|
+
"recordingArchive.cancelStorageMigrationMove": {
|
|
40200
|
+
capName: "recording-archive",
|
|
40201
|
+
capScope: "system",
|
|
40202
|
+
addonId: null,
|
|
40203
|
+
access: "create"
|
|
40204
|
+
},
|
|
40205
|
+
"recordingArchive.deleteFootprint": {
|
|
40206
|
+
capName: "recording-archive",
|
|
40207
|
+
capScope: "system",
|
|
40208
|
+
addonId: null,
|
|
40209
|
+
access: "delete"
|
|
40210
|
+
},
|
|
40211
|
+
"recordingArchive.getAvailabilityBatch": {
|
|
40212
|
+
capName: "recording-archive",
|
|
40018
40213
|
capScope: "system",
|
|
40019
40214
|
addonId: null,
|
|
40020
40215
|
access: "view"
|
|
40021
40216
|
},
|
|
40022
|
-
"
|
|
40023
|
-
capName: "recording",
|
|
40217
|
+
"recordingArchive.getDaysWithRecordingsBatch": {
|
|
40218
|
+
capName: "recording-archive",
|
|
40024
40219
|
capScope: "system",
|
|
40025
40220
|
addonId: null,
|
|
40026
40221
|
access: "view"
|
|
40027
40222
|
},
|
|
40028
|
-
"
|
|
40029
|
-
capName: "recording",
|
|
40223
|
+
"recordingArchive.getDeviceConfig": {
|
|
40224
|
+
capName: "recording-archive",
|
|
40030
40225
|
capScope: "system",
|
|
40031
40226
|
addonId: null,
|
|
40032
40227
|
access: "view"
|
|
40033
40228
|
},
|
|
40034
|
-
"
|
|
40035
|
-
capName: "recording",
|
|
40229
|
+
"recordingArchive.getDeviceLiveContribution": {
|
|
40230
|
+
capName: "recording-archive",
|
|
40036
40231
|
capScope: "system",
|
|
40037
40232
|
addonId: null,
|
|
40038
40233
|
access: "view"
|
|
40039
40234
|
},
|
|
40040
|
-
"
|
|
40041
|
-
capName: "recording",
|
|
40235
|
+
"recordingArchive.getDeviceSettingsContribution": {
|
|
40236
|
+
capName: "recording-archive",
|
|
40042
40237
|
capScope: "system",
|
|
40043
40238
|
addonId: null,
|
|
40044
40239
|
access: "view"
|
|
40045
40240
|
},
|
|
40046
|
-
"
|
|
40047
|
-
capName: "recording",
|
|
40241
|
+
"recordingArchive.getPlacement": {
|
|
40242
|
+
capName: "recording-archive",
|
|
40048
40243
|
capScope: "system",
|
|
40049
40244
|
addonId: null,
|
|
40050
40245
|
access: "view"
|
|
40051
40246
|
},
|
|
40052
|
-
"
|
|
40053
|
-
capName: "recording",
|
|
40247
|
+
"recordingArchive.getRelocateResidue": {
|
|
40248
|
+
capName: "recording-archive",
|
|
40054
40249
|
capScope: "system",
|
|
40055
40250
|
addonId: null,
|
|
40056
40251
|
access: "view"
|
|
40057
40252
|
},
|
|
40058
|
-
"
|
|
40059
|
-
capName: "recording",
|
|
40253
|
+
"recordingArchive.getStatus": {
|
|
40254
|
+
capName: "recording-archive",
|
|
40060
40255
|
capScope: "system",
|
|
40061
40256
|
addonId: null,
|
|
40062
40257
|
access: "view"
|
|
40063
40258
|
},
|
|
40064
|
-
"
|
|
40065
|
-
capName: "recording",
|
|
40259
|
+
"recordingArchive.getStorageMigrationMoveStatus": {
|
|
40260
|
+
capName: "recording-archive",
|
|
40066
40261
|
capScope: "system",
|
|
40067
40262
|
addonId: null,
|
|
40068
40263
|
access: "view"
|
|
40069
40264
|
},
|
|
40070
|
-
"
|
|
40071
|
-
capName: "recording",
|
|
40265
|
+
"recordingArchive.getStorageUsage": {
|
|
40266
|
+
capName: "recording-archive",
|
|
40072
40267
|
capScope: "system",
|
|
40073
40268
|
addonId: null,
|
|
40074
40269
|
access: "view"
|
|
40075
40270
|
},
|
|
40076
|
-
"
|
|
40077
|
-
capName: "recording",
|
|
40271
|
+
"recordingArchive.listOpsLog": {
|
|
40272
|
+
capName: "recording-archive",
|
|
40078
40273
|
capScope: "system",
|
|
40079
40274
|
addonId: null,
|
|
40080
40275
|
access: "view"
|
|
40081
40276
|
},
|
|
40082
|
-
"
|
|
40083
|
-
capName: "recording",
|
|
40277
|
+
"recordingArchive.listRelocateJobs": {
|
|
40278
|
+
capName: "recording-archive",
|
|
40084
40279
|
capScope: "system",
|
|
40085
40280
|
addonId: null,
|
|
40086
40281
|
access: "view"
|
|
40087
40282
|
},
|
|
40088
|
-
"
|
|
40089
|
-
capName: "recording",
|
|
40283
|
+
"recordingArchive.locateSegment": {
|
|
40284
|
+
capName: "recording-archive",
|
|
40090
40285
|
capScope: "system",
|
|
40091
40286
|
addonId: null,
|
|
40092
40287
|
access: "view"
|
|
40093
40288
|
},
|
|
40094
|
-
"
|
|
40095
|
-
capName: "recording",
|
|
40289
|
+
"recordingArchive.pauseForStorageMigration": {
|
|
40290
|
+
capName: "recording-archive",
|
|
40096
40291
|
capScope: "system",
|
|
40097
40292
|
addonId: null,
|
|
40098
40293
|
access: "create"
|
|
40099
40294
|
},
|
|
40100
|
-
"
|
|
40101
|
-
capName: "recording",
|
|
40295
|
+
"recordingArchive.planStorageRebalance": {
|
|
40296
|
+
capName: "recording-archive",
|
|
40102
40297
|
capScope: "system",
|
|
40103
40298
|
addonId: null,
|
|
40104
40299
|
access: "view"
|
|
40105
40300
|
},
|
|
40106
|
-
"
|
|
40107
|
-
capName: "recording",
|
|
40301
|
+
"recordingArchive.pruneFootage": {
|
|
40302
|
+
capName: "recording-archive",
|
|
40108
40303
|
capScope: "system",
|
|
40109
40304
|
addonId: null,
|
|
40110
40305
|
access: "create"
|
|
40111
40306
|
},
|
|
40112
|
-
"
|
|
40113
|
-
capName: "recording",
|
|
40307
|
+
"recordingArchive.readGopBytes": {
|
|
40308
|
+
capName: "recording-archive",
|
|
40114
40309
|
capScope: "system",
|
|
40115
40310
|
addonId: null,
|
|
40116
40311
|
access: "view"
|
|
40117
40312
|
},
|
|
40118
|
-
"
|
|
40119
|
-
capName: "recording",
|
|
40313
|
+
"recordingArchive.readSegmentBytes": {
|
|
40314
|
+
capName: "recording-archive",
|
|
40120
40315
|
capScope: "system",
|
|
40121
40316
|
addonId: null,
|
|
40122
40317
|
access: "view"
|
|
40123
40318
|
},
|
|
40124
|
-
"
|
|
40125
|
-
capName: "recording",
|
|
40319
|
+
"recordingArchive.readWindowBytes": {
|
|
40320
|
+
capName: "recording-archive",
|
|
40126
40321
|
capScope: "system",
|
|
40127
40322
|
addonId: null,
|
|
40128
40323
|
access: "view"
|
|
40129
40324
|
},
|
|
40130
|
-
"
|
|
40131
|
-
capName: "recording",
|
|
40325
|
+
"recordingArchive.reconcileLedgerAgainstDisk": {
|
|
40326
|
+
capName: "recording-archive",
|
|
40132
40327
|
capScope: "system",
|
|
40133
40328
|
addonId: null,
|
|
40134
40329
|
access: "create"
|
|
40135
40330
|
},
|
|
40136
|
-
"
|
|
40137
|
-
capName: "recording",
|
|
40331
|
+
"recordingArchive.refreshStorageLocationsForMigration": {
|
|
40332
|
+
capName: "recording-archive",
|
|
40138
40333
|
capScope: "system",
|
|
40139
40334
|
addonId: null,
|
|
40140
40335
|
access: "create"
|
|
40141
40336
|
},
|
|
40142
|
-
"
|
|
40143
|
-
capName: "recording",
|
|
40337
|
+
"recordingArchive.relocateFootage": {
|
|
40338
|
+
capName: "recording-archive",
|
|
40144
40339
|
capScope: "system",
|
|
40145
40340
|
addonId: null,
|
|
40146
40341
|
access: "create"
|
|
40147
40342
|
},
|
|
40148
|
-
"
|
|
40149
|
-
capName: "recording",
|
|
40343
|
+
"recordingArchive.renderClip": {
|
|
40344
|
+
capName: "recording-archive",
|
|
40150
40345
|
capScope: "system",
|
|
40151
40346
|
addonId: null,
|
|
40152
40347
|
access: "create"
|
|
40153
40348
|
},
|
|
40154
|
-
"
|
|
40155
|
-
capName: "recording",
|
|
40349
|
+
"recordingArchive.renderGif": {
|
|
40350
|
+
capName: "recording-archive",
|
|
40156
40351
|
capScope: "system",
|
|
40157
40352
|
addonId: null,
|
|
40158
40353
|
access: "create"
|
|
40159
40354
|
},
|
|
40160
|
-
"
|
|
40161
|
-
capName: "recording",
|
|
40355
|
+
"recordingArchive.rescanStorage": {
|
|
40356
|
+
capName: "recording-archive",
|
|
40162
40357
|
capScope: "system",
|
|
40163
40358
|
addonId: null,
|
|
40164
40359
|
access: "create"
|
|
40165
40360
|
},
|
|
40166
|
-
"
|
|
40167
|
-
capName: "recording",
|
|
40361
|
+
"recordingArchive.resumeForStorageMigration": {
|
|
40362
|
+
capName: "recording-archive",
|
|
40168
40363
|
capScope: "system",
|
|
40169
40364
|
addonId: null,
|
|
40170
40365
|
access: "create"
|
|
40171
40366
|
},
|
|
40172
|
-
"
|
|
40173
|
-
capName: "recording",
|
|
40367
|
+
"recordingArchive.setDeviceConfig": {
|
|
40368
|
+
capName: "recording-archive",
|
|
40174
40369
|
capScope: "system",
|
|
40175
40370
|
addonId: null,
|
|
40176
40371
|
access: "create"
|
|
40177
40372
|
},
|
|
40178
|
-
"
|
|
40179
|
-
capName: "recording",
|
|
40373
|
+
"recordingArchive.setDevicePlacement": {
|
|
40374
|
+
capName: "recording-archive",
|
|
40180
40375
|
capScope: "system",
|
|
40181
40376
|
addonId: null,
|
|
40182
40377
|
access: "create"
|
|
40183
40378
|
},
|
|
40184
|
-
"
|
|
40185
|
-
capName: "recording",
|
|
40379
|
+
"recordingArchive.startStorageMigrationMove": {
|
|
40380
|
+
capName: "recording-archive",
|
|
40186
40381
|
capScope: "system",
|
|
40187
40382
|
addonId: null,
|
|
40188
40383
|
access: "create"
|
|
40189
40384
|
},
|
|
40190
|
-
"
|
|
40191
|
-
capName: "recording",
|
|
40385
|
+
"recordingArchive.startStorageRebalance": {
|
|
40386
|
+
capName: "recording-archive",
|
|
40192
40387
|
capScope: "system",
|
|
40193
40388
|
addonId: null,
|
|
40194
40389
|
access: "create"
|
|
@@ -42493,21 +42688,6 @@ Object.freeze({
|
|
|
42493
42688
|
form: "single",
|
|
42494
42689
|
optional: false
|
|
42495
42690
|
}],
|
|
42496
|
-
"events.getEventClipUrl": [{
|
|
42497
|
-
name: "deviceId",
|
|
42498
|
-
form: "single",
|
|
42499
|
-
optional: false
|
|
42500
|
-
}],
|
|
42501
|
-
"events.getEvents": [{
|
|
42502
|
-
name: "deviceId",
|
|
42503
|
-
form: "single",
|
|
42504
|
-
optional: false
|
|
42505
|
-
}],
|
|
42506
|
-
"events.getEventThumbnail": [{
|
|
42507
|
-
name: "deviceId",
|
|
42508
|
-
form: "single",
|
|
42509
|
-
optional: false
|
|
42510
|
-
}],
|
|
42511
42691
|
"faceGallery.getFaceByTrack": [{
|
|
42512
42692
|
name: "deviceId",
|
|
42513
42693
|
form: "single",
|
|
@@ -43426,107 +43606,117 @@ Object.freeze({
|
|
|
43426
43606
|
form: "single",
|
|
43427
43607
|
optional: false
|
|
43428
43608
|
}],
|
|
43429
|
-
"recording.
|
|
43609
|
+
"recording.getAvailability": [{
|
|
43430
43610
|
name: "deviceId",
|
|
43431
43611
|
form: "single",
|
|
43432
43612
|
optional: false
|
|
43433
43613
|
}],
|
|
43434
|
-
"recording.
|
|
43614
|
+
"recording.getDaysWithRecordings": [{
|
|
43435
43615
|
name: "deviceId",
|
|
43436
43616
|
form: "single",
|
|
43437
43617
|
optional: false
|
|
43438
43618
|
}],
|
|
43439
|
-
"recording.
|
|
43440
|
-
name: "
|
|
43441
|
-
form: "
|
|
43619
|
+
"recording.getPlayback": [{
|
|
43620
|
+
name: "deviceId",
|
|
43621
|
+
form: "single",
|
|
43442
43622
|
optional: false
|
|
43443
43623
|
}],
|
|
43444
|
-
"recording.
|
|
43624
|
+
"recording.getPlaybackOptions": [{
|
|
43445
43625
|
name: "deviceId",
|
|
43446
43626
|
form: "single",
|
|
43447
43627
|
optional: false
|
|
43448
43628
|
}],
|
|
43449
|
-
"recording.
|
|
43450
|
-
name: "
|
|
43451
|
-
form: "
|
|
43629
|
+
"recording.listSources": [{
|
|
43630
|
+
name: "deviceId",
|
|
43631
|
+
form: "single",
|
|
43452
43632
|
optional: false
|
|
43453
43633
|
}],
|
|
43454
|
-
"
|
|
43634
|
+
"recordingArchive.deleteFootprint": [{
|
|
43455
43635
|
name: "deviceId",
|
|
43456
43636
|
form: "single",
|
|
43457
43637
|
optional: false
|
|
43458
43638
|
}],
|
|
43459
|
-
"
|
|
43639
|
+
"recordingArchive.getAvailabilityBatch": [{
|
|
43640
|
+
name: "deviceIds",
|
|
43641
|
+
form: "array",
|
|
43642
|
+
optional: false
|
|
43643
|
+
}],
|
|
43644
|
+
"recordingArchive.getDaysWithRecordingsBatch": [{
|
|
43645
|
+
name: "deviceIds",
|
|
43646
|
+
form: "array",
|
|
43647
|
+
optional: false
|
|
43648
|
+
}],
|
|
43649
|
+
"recordingArchive.getDeviceConfig": [{
|
|
43460
43650
|
name: "deviceId",
|
|
43461
43651
|
form: "single",
|
|
43462
43652
|
optional: false
|
|
43463
43653
|
}],
|
|
43464
|
-
"
|
|
43654
|
+
"recordingArchive.listOpsLog": [{
|
|
43465
43655
|
name: "deviceId",
|
|
43466
43656
|
form: "single",
|
|
43467
43657
|
optional: true
|
|
43468
43658
|
}],
|
|
43469
|
-
"
|
|
43659
|
+
"recordingArchive.locateSegment": [{
|
|
43470
43660
|
name: "deviceId",
|
|
43471
43661
|
form: "single",
|
|
43472
43662
|
optional: false
|
|
43473
43663
|
}],
|
|
43474
|
-
"
|
|
43664
|
+
"recordingArchive.pruneFootage": [{
|
|
43475
43665
|
name: "deviceId",
|
|
43476
43666
|
form: "single",
|
|
43477
43667
|
optional: false
|
|
43478
43668
|
}],
|
|
43479
|
-
"
|
|
43669
|
+
"recordingArchive.readGopBytes": [{
|
|
43480
43670
|
name: "deviceId",
|
|
43481
43671
|
form: "single",
|
|
43482
43672
|
optional: false
|
|
43483
43673
|
}],
|
|
43484
|
-
"
|
|
43674
|
+
"recordingArchive.readSegmentBytes": [{
|
|
43485
43675
|
name: "deviceId",
|
|
43486
43676
|
form: "single",
|
|
43487
43677
|
optional: false
|
|
43488
43678
|
}],
|
|
43489
|
-
"
|
|
43679
|
+
"recordingArchive.readWindowBytes": [{
|
|
43490
43680
|
name: "deviceId",
|
|
43491
43681
|
form: "single",
|
|
43492
43682
|
optional: false
|
|
43493
43683
|
}],
|
|
43494
|
-
"
|
|
43684
|
+
"recordingArchive.reconcileLedgerAgainstDisk": [{
|
|
43495
43685
|
name: "deviceId",
|
|
43496
43686
|
form: "single",
|
|
43497
43687
|
optional: true
|
|
43498
43688
|
}],
|
|
43499
|
-
"
|
|
43689
|
+
"recordingArchive.relocateFootage": [{
|
|
43500
43690
|
name: "deviceId",
|
|
43501
43691
|
form: "single",
|
|
43502
43692
|
optional: true
|
|
43503
43693
|
}],
|
|
43504
|
-
"
|
|
43694
|
+
"recordingArchive.renderClip": [{
|
|
43505
43695
|
name: "deviceId",
|
|
43506
43696
|
form: "single",
|
|
43507
43697
|
optional: false
|
|
43508
43698
|
}],
|
|
43509
|
-
"
|
|
43699
|
+
"recordingArchive.renderGif": [{
|
|
43510
43700
|
name: "deviceId",
|
|
43511
43701
|
form: "single",
|
|
43512
43702
|
optional: false
|
|
43513
43703
|
}],
|
|
43514
|
-
"
|
|
43704
|
+
"recordingArchive.rescanStorage": [{
|
|
43515
43705
|
name: "deviceId",
|
|
43516
43706
|
form: "single",
|
|
43517
43707
|
optional: false
|
|
43518
43708
|
}],
|
|
43519
|
-
"
|
|
43709
|
+
"recordingArchive.setDeviceConfig": [{
|
|
43520
43710
|
name: "deviceId",
|
|
43521
43711
|
form: "single",
|
|
43522
43712
|
optional: false
|
|
43523
43713
|
}],
|
|
43524
|
-
"
|
|
43714
|
+
"recordingArchive.setDevicePlacement": [{
|
|
43525
43715
|
name: "deviceId",
|
|
43526
43716
|
form: "single",
|
|
43527
43717
|
optional: false
|
|
43528
43718
|
}],
|
|
43529
|
-
"
|
|
43719
|
+
"recordingArchive.startStorageMigrationMove": [{
|
|
43530
43720
|
name: "deviceId",
|
|
43531
43721
|
form: "single",
|
|
43532
43722
|
optional: true
|