@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
|
@@ -5884,7 +5884,7 @@ var ZodIssueCode = {
|
|
|
5884
5884
|
var ZodFirstPartyTypeKind;
|
|
5885
5885
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5886
5886
|
//#endregion
|
|
5887
|
-
//#region ../types/dist/sleep-
|
|
5887
|
+
//#region ../types/dist/sleep-PEo0-Fz9.mjs
|
|
5888
5888
|
/**
|
|
5889
5889
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5890
5890
|
* window to float samples (D455).
|
|
@@ -7020,6 +7020,24 @@ function normalizeAddonInitResult(result) {
|
|
|
7020
7020
|
if (Array.isArray(result)) return { providers: result };
|
|
7021
7021
|
return result;
|
|
7022
7022
|
}
|
|
7023
|
+
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
7024
|
+
var PeerBytesTicketSchema = object({
|
|
7025
|
+
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
7026
|
+
url: string().min(1),
|
|
7027
|
+
/**
|
|
7028
|
+
* The HOST node this URL means something on — the hub or a named agent,
|
|
7029
|
+
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
7030
|
+
* refuses `cross-node` by name when they differ, without dialling.
|
|
7031
|
+
*/
|
|
7032
|
+
hostNodeId: string().min(1),
|
|
7033
|
+
expiresAtMs: number().int().nonnegative(),
|
|
7034
|
+
/**
|
|
7035
|
+
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
7036
|
+
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
7037
|
+
* must be able to tell "the producer did not say" from "the body is empty".
|
|
7038
|
+
*/
|
|
7039
|
+
declaredBytes: number().int().nonnegative().nullable()
|
|
7040
|
+
});
|
|
7023
7041
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
7024
7042
|
var CamProfileSchema = _enum([
|
|
7025
7043
|
"high",
|
|
@@ -8119,24 +8137,6 @@ object({
|
|
|
8119
8137
|
unreachable: number()
|
|
8120
8138
|
})
|
|
8121
8139
|
});
|
|
8122
|
-
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
8123
|
-
var PeerBytesTicketSchema = object({
|
|
8124
|
-
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
8125
|
-
url: string().min(1),
|
|
8126
|
-
/**
|
|
8127
|
-
* The HOST node this URL means something on — the hub or a named agent,
|
|
8128
|
-
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
8129
|
-
* refuses `cross-node` by name when they differ, without dialling.
|
|
8130
|
-
*/
|
|
8131
|
-
hostNodeId: string().min(1),
|
|
8132
|
-
expiresAtMs: number().int().nonnegative(),
|
|
8133
|
-
/**
|
|
8134
|
-
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
8135
|
-
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
8136
|
-
* must be able to tell "the producer did not say" from "the body is empty".
|
|
8137
|
-
*/
|
|
8138
|
-
declaredBytes: number().int().nonnegative().nullable()
|
|
8139
|
-
});
|
|
8140
8140
|
/**
|
|
8141
8141
|
* Adoption job — the background form of `device-adoption.adopt`.
|
|
8142
8142
|
*
|
|
@@ -8248,7 +8248,7 @@ var AdoptionJobSchema = object({
|
|
|
8248
8248
|
* component's original options — detection to the detection-pipeline wrapper
|
|
8249
8249
|
* binding, audio analysis to its own, recording to `RecordingConfig.enabled`
|
|
8250
8250
|
* (which was always first-class; the switch was a veneer over
|
|
8251
|
-
* `
|
|
8251
|
+
* `recordingArchive.setDeviceConfig`), notifications to a notification-center
|
|
8252
8252
|
* per-device setting, the two camera planes to their own components.
|
|
8253
8253
|
*
|
|
8254
8254
|
* What survives is {@link composeSwitchedOff}: `CameraStatus.switchedOff`, the
|
|
@@ -8274,7 +8274,7 @@ var AdoptionJobSchema = object({
|
|
|
8274
8274
|
* | `stream-broker` | `deviceManager.setDisabled` | `StreamBrokerManager.reconcileAllCatalogs` releases the brokers; `ensureBroker` refuses re-creation |
|
|
8275
8275
|
* | `object-detection` | `deviceManager.setWrapperActive('detection-pipeline')` | `PipelineSettingsStore.resolvePipelineForDevice` returns `{ steps: [], audio: null }` |
|
|
8276
8276
|
* | `audio-analysis` | `deviceManager.setWrapperActive('audio-analysis')` | `AudioSubscriptionController.subscribeAudioStream` returns `null` before opening the stream |
|
|
8277
|
-
* | `recording` | `
|
|
8277
|
+
* | `recording` | `recordingArchive.setDeviceConfig` → `RecordingConfig.enabled` | `band-decision.shouldRecord` returns false; the controller detaches the device |
|
|
8278
8278
|
* | `notifications` | `notificationRules.setDeviceMuted` | `NotificationCenter.evaluateAndEnqueue` returns before any rule is evaluated |
|
|
8279
8279
|
* | `privacy-mask` | `privacyMask.setMask({ enabled })` → the CAMERA | the camera blanks the masked regions itself; every stream and recording carries the black boxes |
|
|
8280
8280
|
* | `device-audio` | `privacyMask.setAudioEnabled` → the CAMERA | the camera stops encoding an audio track at all; every consumer sees silent video |
|
|
@@ -12190,58 +12190,6 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
12190
12190
|
auth: "admin"
|
|
12191
12191
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
12192
12192
|
DeviceType.Camera;
|
|
12193
|
-
/**
|
|
12194
|
-
* The signals a device can emit to WAKE its own stream.
|
|
12195
|
-
*
|
|
12196
|
-
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
12197
|
-
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
12198
|
-
* puller holds a session open for ever, and treating that as demand would keep
|
|
12199
|
-
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
12200
|
-
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
12201
|
-
* itself, with no stream running.
|
|
12202
|
-
*
|
|
12203
|
-
* ## The vocabulary is the PROVIDER'S, not ours
|
|
12204
|
-
*
|
|
12205
|
-
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
12206
|
-
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
12207
|
-
* Reolink offers motion and camera-native detection; another provider may offer
|
|
12208
|
-
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
12209
|
-
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
12210
|
-
*
|
|
12211
|
-
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
12212
|
-
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
12213
|
-
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
12214
|
-
* binding — but both answer "what drives the detection pipeline", which is a
|
|
12215
|
-
* different question from "what may wake a sleeping stream". A camera can do
|
|
12216
|
-
* the first and not be trusted with the second, and the operator picks per
|
|
12217
|
-
* camera. Two questions, two authorities.
|
|
12218
|
-
*
|
|
12219
|
-
* ## Availability is not permission
|
|
12220
|
-
*
|
|
12221
|
-
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
12222
|
-
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
12223
|
-
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
12224
|
-
* provider declaring a signal is not a provider enabling it.
|
|
12225
|
-
*/
|
|
12226
|
-
/** One signal a device can emit. */
|
|
12227
|
-
var StreamSignalSchema = object({
|
|
12228
|
-
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
12229
|
-
code: string().min(1),
|
|
12230
|
-
/** What an operator reads in the picker. The provider's own wording. */
|
|
12231
|
-
label: string().min(1),
|
|
12232
|
-
/**
|
|
12233
|
-
* Whether the provider recommends this signal ON when a camera is first set
|
|
12234
|
-
* up. A provider knows which of its signals are cheap and reliable; an
|
|
12235
|
-
* operator should not have to discover that by trial. Reolink recommends
|
|
12236
|
-
* both of its own.
|
|
12237
|
-
*/
|
|
12238
|
-
recommended: boolean()
|
|
12239
|
-
});
|
|
12240
|
-
object({
|
|
12241
|
-
signals: array(StreamSignalSchema),
|
|
12242
|
-
lastFetchedAt: number()
|
|
12243
|
-
});
|
|
12244
|
-
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
12245
12193
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
12246
12194
|
var StreamFormatSchema = _enum([
|
|
12247
12195
|
"webrtc",
|
|
@@ -13621,6 +13569,97 @@ method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
|
13621
13569
|
});
|
|
13622
13570
|
DeviceType.Camera;
|
|
13623
13571
|
/**
|
|
13572
|
+
* device-admin-link — "this device has a management page of its own, and here
|
|
13573
|
+
* is its address".
|
|
13574
|
+
*
|
|
13575
|
+
* ## Why this is not a `deviceConfig` cap
|
|
13576
|
+
*
|
|
13577
|
+
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
13578
|
+
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
13579
|
+
* patch back through a setter; it costs a `builderId` reducer in
|
|
13580
|
+
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
13581
|
+
* renders a form section. This cap answers ONE question with ONE read and
|
|
13582
|
+
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
13583
|
+
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
13584
|
+
* `reboot`, the other pure-RPC device-native cap.
|
|
13585
|
+
*
|
|
13586
|
+
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
13587
|
+
*
|
|
13588
|
+
* The two are answered at DIFFERENT layers, on purpose:
|
|
13589
|
+
*
|
|
13590
|
+
* - **"We cannot say"** → the provider never registers the cap for that
|
|
13591
|
+
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
13592
|
+
* fan are reached only through a vendor cloud; there is no address to hand
|
|
13593
|
+
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
13594
|
+
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
13595
|
+
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
13596
|
+
* lists the cap and no surface asks.
|
|
13597
|
+
* - **"This device has no page, and I know that"** → the provider registers
|
|
13598
|
+
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
13599
|
+
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
13600
|
+
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
13601
|
+
* transport, a Home Assistant broker authenticated by supervisor token
|
|
13602
|
+
* (which carries no `baseUrl` at all).
|
|
13603
|
+
*
|
|
13604
|
+
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
13605
|
+
* button, and D62 is the same rule from the other side: an off switch is
|
|
13606
|
+
* reported off, never made to look broken. There is no third state where the
|
|
13607
|
+
* UI renders a disabled button "because the device might have a page".
|
|
13608
|
+
*
|
|
13609
|
+
* ## The URL never carries credentials
|
|
13610
|
+
*
|
|
13611
|
+
* Not in userinfo, not in a query string. Every provider builds through
|
|
13612
|
+
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
13613
|
+
* scheme and path as separate arguments — there is no parameter a secret could
|
|
13614
|
+
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
13615
|
+
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
13616
|
+
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
13617
|
+
* keeps providers from hand-rolling one anyway.
|
|
13618
|
+
*
|
|
13619
|
+
* This matters here more than anywhere else in the repo, because every provider
|
|
13620
|
+
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
13621
|
+
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
13622
|
+
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
13623
|
+
* camera's own page will ask for its own login. That is correct, and pre-
|
|
13624
|
+
* filling it is the operator's business, not ours.
|
|
13625
|
+
*
|
|
13626
|
+
* ## It is a LAN fact
|
|
13627
|
+
*
|
|
13628
|
+
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
13629
|
+
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
13630
|
+
* as a link the operator's own browser follows, on the operator's own network,
|
|
13631
|
+
* or renders nothing.
|
|
13632
|
+
*/
|
|
13633
|
+
/**
|
|
13634
|
+
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
13635
|
+
* before clicking whether he is about to land on a camera's own web server or
|
|
13636
|
+
* inside Home Assistant.
|
|
13637
|
+
*/
|
|
13638
|
+
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
13639
|
+
var DeviceAdminLinkSchema = object({
|
|
13640
|
+
/**
|
|
13641
|
+
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
13642
|
+
* free of userinfo and of any credential-shaped query key.
|
|
13643
|
+
*/
|
|
13644
|
+
url: string(),
|
|
13645
|
+
/**
|
|
13646
|
+
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
13647
|
+
* The PROVIDER names it, because only the provider knows what the page is;
|
|
13648
|
+
* a UI that invented the label from the addon id would call the Home
|
|
13649
|
+
* Assistant device page "Provider Homeassistant".
|
|
13650
|
+
*/
|
|
13651
|
+
label: string(),
|
|
13652
|
+
target: AdminLinkTargetEnum,
|
|
13653
|
+
/**
|
|
13654
|
+
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
13655
|
+
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
13656
|
+
* with `url` by construction; carried separately so no surface has to parse
|
|
13657
|
+
* a URL to show it.
|
|
13658
|
+
*/
|
|
13659
|
+
host: string()
|
|
13660
|
+
});
|
|
13661
|
+
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
13662
|
+
/**
|
|
13624
13663
|
* Identity envelope for a device's upstream-system metadata.
|
|
13625
13664
|
*
|
|
13626
13665
|
* Two jobs:
|
|
@@ -13948,97 +13987,6 @@ method(object({ integrationId: string() }), object({ filters: array(AdoptionFilt
|
|
|
13948
13987
|
auth: "admin"
|
|
13949
13988
|
});
|
|
13950
13989
|
/**
|
|
13951
|
-
* device-admin-link — "this device has a management page of its own, and here
|
|
13952
|
-
* is its address".
|
|
13953
|
-
*
|
|
13954
|
-
* ## Why this is not a `deviceConfig` cap
|
|
13955
|
-
*
|
|
13956
|
-
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
13957
|
-
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
13958
|
-
* patch back through a setter; it costs a `builderId` reducer in
|
|
13959
|
-
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
13960
|
-
* renders a form section. This cap answers ONE question with ONE read and
|
|
13961
|
-
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
13962
|
-
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
13963
|
-
* `reboot`, the other pure-RPC device-native cap.
|
|
13964
|
-
*
|
|
13965
|
-
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
13966
|
-
*
|
|
13967
|
-
* The two are answered at DIFFERENT layers, on purpose:
|
|
13968
|
-
*
|
|
13969
|
-
* - **"We cannot say"** → the provider never registers the cap for that
|
|
13970
|
-
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
13971
|
-
* fan are reached only through a vendor cloud; there is no address to hand
|
|
13972
|
-
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
13973
|
-
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
13974
|
-
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
13975
|
-
* lists the cap and no surface asks.
|
|
13976
|
-
* - **"This device has no page, and I know that"** → the provider registers
|
|
13977
|
-
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
13978
|
-
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
13979
|
-
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
13980
|
-
* transport, a Home Assistant broker authenticated by supervisor token
|
|
13981
|
-
* (which carries no `baseUrl` at all).
|
|
13982
|
-
*
|
|
13983
|
-
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
13984
|
-
* button, and D62 is the same rule from the other side: an off switch is
|
|
13985
|
-
* reported off, never made to look broken. There is no third state where the
|
|
13986
|
-
* UI renders a disabled button "because the device might have a page".
|
|
13987
|
-
*
|
|
13988
|
-
* ## The URL never carries credentials
|
|
13989
|
-
*
|
|
13990
|
-
* Not in userinfo, not in a query string. Every provider builds through
|
|
13991
|
-
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
13992
|
-
* scheme and path as separate arguments — there is no parameter a secret could
|
|
13993
|
-
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
13994
|
-
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
13995
|
-
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
13996
|
-
* keeps providers from hand-rolling one anyway.
|
|
13997
|
-
*
|
|
13998
|
-
* This matters here more than anywhere else in the repo, because every provider
|
|
13999
|
-
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
14000
|
-
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
14001
|
-
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
14002
|
-
* camera's own page will ask for its own login. That is correct, and pre-
|
|
14003
|
-
* filling it is the operator's business, not ours.
|
|
14004
|
-
*
|
|
14005
|
-
* ## It is a LAN fact
|
|
14006
|
-
*
|
|
14007
|
-
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
14008
|
-
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
14009
|
-
* as a link the operator's own browser follows, on the operator's own network,
|
|
14010
|
-
* or renders nothing.
|
|
14011
|
-
*/
|
|
14012
|
-
/**
|
|
14013
|
-
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
14014
|
-
* before clicking whether he is about to land on a camera's own web server or
|
|
14015
|
-
* inside Home Assistant.
|
|
14016
|
-
*/
|
|
14017
|
-
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
14018
|
-
var DeviceAdminLinkSchema = object({
|
|
14019
|
-
/**
|
|
14020
|
-
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
14021
|
-
* free of userinfo and of any credential-shaped query key.
|
|
14022
|
-
*/
|
|
14023
|
-
url: string(),
|
|
14024
|
-
/**
|
|
14025
|
-
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
14026
|
-
* The PROVIDER names it, because only the provider knows what the page is;
|
|
14027
|
-
* a UI that invented the label from the addon id would call the Home
|
|
14028
|
-
* Assistant device page "Provider Homeassistant".
|
|
14029
|
-
*/
|
|
14030
|
-
label: string(),
|
|
14031
|
-
target: AdminLinkTargetEnum,
|
|
14032
|
-
/**
|
|
14033
|
-
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
14034
|
-
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
14035
|
-
* with `url` by construction; carried separately so no surface has to parse
|
|
14036
|
-
* a URL to show it.
|
|
14037
|
-
*/
|
|
14038
|
-
host: string()
|
|
14039
|
-
});
|
|
14040
|
-
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
14041
|
-
/**
|
|
14042
13990
|
* `device-export` — collection cap for addons that export camstack
|
|
14043
13991
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
14044
13992
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
@@ -24164,6 +24112,58 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
|
|
|
24164
24112
|
kind: "mutation",
|
|
24165
24113
|
auth: "admin"
|
|
24166
24114
|
});
|
|
24115
|
+
/**
|
|
24116
|
+
* The signals a device can emit to WAKE its own stream.
|
|
24117
|
+
*
|
|
24118
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
24119
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
24120
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
24121
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
24122
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
24123
|
+
* itself, with no stream running.
|
|
24124
|
+
*
|
|
24125
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
24126
|
+
*
|
|
24127
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
24128
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
24129
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
24130
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
24131
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
24132
|
+
*
|
|
24133
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
24134
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
24135
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
24136
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
24137
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
24138
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
24139
|
+
* camera. Two questions, two authorities.
|
|
24140
|
+
*
|
|
24141
|
+
* ## Availability is not permission
|
|
24142
|
+
*
|
|
24143
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
24144
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
24145
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
24146
|
+
* provider declaring a signal is not a provider enabling it.
|
|
24147
|
+
*/
|
|
24148
|
+
/** One signal a device can emit. */
|
|
24149
|
+
var StreamSignalSchema = object({
|
|
24150
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
24151
|
+
code: string().min(1),
|
|
24152
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
24153
|
+
label: string().min(1),
|
|
24154
|
+
/**
|
|
24155
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
24156
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
24157
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
24158
|
+
* both of its own.
|
|
24159
|
+
*/
|
|
24160
|
+
recommended: boolean()
|
|
24161
|
+
});
|
|
24162
|
+
object({
|
|
24163
|
+
signals: array(StreamSignalSchema),
|
|
24164
|
+
lastFetchedAt: number()
|
|
24165
|
+
});
|
|
24166
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
24167
24167
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
24168
24168
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
24169
24169
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -26446,6 +26446,143 @@ DeviceType.Camera, method(object({ deviceId: number() }), CameraCredentialsSchem
|
|
|
26446
26446
|
kind: "query",
|
|
26447
26447
|
auth: "admin"
|
|
26448
26448
|
});
|
|
26449
|
+
/**
|
|
26450
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
26451
|
+
* page.
|
|
26452
|
+
*
|
|
26453
|
+
* ## Why this is a capability and not an addon settings schema
|
|
26454
|
+
*
|
|
26455
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
26456
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
26457
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
26458
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
26459
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
26460
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
26461
|
+
* not on it "falls off silently".
|
|
26462
|
+
*
|
|
26463
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
26464
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
26465
|
+
* beside PTZ and motion zones on the camera itself. The device page is
|
|
26466
|
+
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
26467
|
+
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
26468
|
+
* from `getDeviceSettingsContribution`.
|
|
26469
|
+
*
|
|
26470
|
+
* Seven other widgets are still declared the other way, through a
|
|
26471
|
+
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
26472
|
+
* gives the addon no say in where its own panel lands and no way to decline
|
|
26473
|
+
* for a device the panel does not suit, which is why this one does not use it.
|
|
26474
|
+
*
|
|
26475
|
+
* ## Why one addon may implement it
|
|
26476
|
+
*
|
|
26477
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
26478
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
26479
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
26480
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
26481
|
+
* reached only by a caller that already knew the addon id.
|
|
26482
|
+
*
|
|
26483
|
+
* ## The tab
|
|
26484
|
+
*
|
|
26485
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
26486
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
26487
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
26488
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
26489
|
+
* next to "PTZ").
|
|
26490
|
+
*/
|
|
26491
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
26492
|
+
var GridNormalizedRectSchema = object({
|
|
26493
|
+
x: number().min(0).max(1),
|
|
26494
|
+
y: number().min(0).max(1),
|
|
26495
|
+
width: number().gt(0).max(1),
|
|
26496
|
+
height: number().gt(0).max(1)
|
|
26497
|
+
});
|
|
26498
|
+
/**
|
|
26499
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
26500
|
+
*
|
|
26501
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
26502
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
26503
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
26504
|
+
* which is the class of bug nobody files.
|
|
26505
|
+
*/
|
|
26506
|
+
var GridLayoutCellSchema = object({
|
|
26507
|
+
deviceId: number().int().positive(),
|
|
26508
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
26509
|
+
source: GridNormalizedRectSchema,
|
|
26510
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
26511
|
+
cell: GridNormalizedRectSchema
|
|
26512
|
+
});
|
|
26513
|
+
/**
|
|
26514
|
+
* Which profiles this grid can actually compose, and why not.
|
|
26515
|
+
*
|
|
26516
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
26517
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
26518
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
26519
|
+
* low" is, and it is the one an operator can act on.
|
|
26520
|
+
*/
|
|
26521
|
+
var GridProfileOfferSchema = object({
|
|
26522
|
+
profile: _enum([
|
|
26523
|
+
"high",
|
|
26524
|
+
"mid",
|
|
26525
|
+
"low"
|
|
26526
|
+
]),
|
|
26527
|
+
offered: boolean(),
|
|
26528
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
26529
|
+
missingSources: array(number().int().positive()),
|
|
26530
|
+
/**
|
|
26531
|
+
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
26532
|
+
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
26533
|
+
* it is reported because nothing else in the system would ever say what the
|
|
26534
|
+
* grid came out as, and because it is the number an operator would otherwise
|
|
26535
|
+
* expect to type.
|
|
26536
|
+
*/
|
|
26537
|
+
canvas: string(),
|
|
26538
|
+
/**
|
|
26539
|
+
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
26540
|
+
*
|
|
26541
|
+
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
26542
|
+
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
26543
|
+
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
26544
|
+
* Default is `mid` + `low`.
|
|
26545
|
+
*/
|
|
26546
|
+
published: boolean()
|
|
26547
|
+
});
|
|
26548
|
+
var GridLayoutViewSchema = object({
|
|
26549
|
+
/** The persisted grid row this camera was declared from. */
|
|
26550
|
+
instanceId: string(),
|
|
26551
|
+
deviceId: number().int().nonnegative(),
|
|
26552
|
+
name: string(),
|
|
26553
|
+
/**
|
|
26554
|
+
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
26555
|
+
* its own from the cells and its sources' dimensions. The two numbers that
|
|
26556
|
+
* used to be here were a text field that silently decided both how much the
|
|
26557
|
+
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
26558
|
+
* came out as.
|
|
26559
|
+
*/
|
|
26560
|
+
fps: number().int(),
|
|
26561
|
+
cells: array(GridLayoutCellSchema),
|
|
26562
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
26563
|
+
profiles: array(GridProfileOfferSchema)
|
|
26564
|
+
});
|
|
26565
|
+
var GridLayoutPatchSchema = object({
|
|
26566
|
+
deviceId: number().int().nonnegative(),
|
|
26567
|
+
name: string().min(1).max(160).optional(),
|
|
26568
|
+
fps: number().int().min(1).max(60).optional(),
|
|
26569
|
+
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
26570
|
+
publishedProfiles: array(_enum([
|
|
26571
|
+
"high",
|
|
26572
|
+
"mid",
|
|
26573
|
+
"low"
|
|
26574
|
+
])).max(3).optional(),
|
|
26575
|
+
/**
|
|
26576
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
26577
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
26578
|
+
* for.
|
|
26579
|
+
*/
|
|
26580
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
26581
|
+
});
|
|
26582
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
26583
|
+
kind: "mutation",
|
|
26584
|
+
auth: "admin"
|
|
26585
|
+
});
|
|
26449
26586
|
object({
|
|
26450
26587
|
detected: boolean(),
|
|
26451
26588
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
@@ -26919,307 +27056,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
|
|
|
26919
27056
|
auth: "admin"
|
|
26920
27057
|
});
|
|
26921
27058
|
/**
|
|
26922
|
-
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
26923
|
-
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
26924
|
-
*
|
|
26925
|
-
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
26926
|
-
* footage ledger, our storage locations, our retention. This one has a
|
|
26927
|
-
* different authority — the camera's firmware — and per D62 it stores
|
|
26928
|
-
* nothing of its own. Every value here is read from the camera and every
|
|
26929
|
-
* write goes back to the camera; there is no CamStack-side mirror that
|
|
26930
|
-
* could disagree with the device.
|
|
26931
|
-
*
|
|
26932
|
-
* ## One shape, two firmwares
|
|
26933
|
-
*
|
|
26934
|
-
* Measured 2026-09-22 against the live fleet:
|
|
26935
|
-
*
|
|
26936
|
-
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
26937
|
-
* | --- | --- | --- |
|
|
26938
|
-
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
26939
|
-
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
26940
|
-
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
26941
|
-
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
26942
|
-
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
26943
|
-
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
26944
|
-
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
26945
|
-
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
26946
|
-
*
|
|
26947
|
-
* The two schedule models look different and are the same thing in
|
|
26948
|
-
* different coordinates: both answer "for this trigger, during which
|
|
26949
|
-
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
26950
|
-
* question in one shape — Hikvision's ranges map straight onto it,
|
|
26951
|
-
* Reolink's mask expands into hour-aligned windows.
|
|
26952
|
-
*
|
|
26953
|
-
* ## Union, not intersection
|
|
26954
|
-
*
|
|
26955
|
-
* **The same fields exist on every camera.** What differs per device is
|
|
26956
|
-
* which VALUES that device accepts, and that is what {@link
|
|
26957
|
-
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
26958
|
-
* per field plus the schedule's own limits. A control a camera cannot
|
|
26959
|
-
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
26960
|
-
* dead: disabled must not look like broken.
|
|
26961
|
-
*
|
|
26962
|
-
* ## Refusal by name
|
|
26963
|
-
*
|
|
26964
|
-
* A write a camera cannot honour is refused with a sentence the operator
|
|
26965
|
-
* can read — never accepted and dropped. Both providers refuse through
|
|
26966
|
-
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
26967
|
-
* one test, not two hand-written vendor opinions.
|
|
26968
|
-
*
|
|
26969
|
-
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
26970
|
-
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
26971
|
-
* injected from `status`) reports the live values, and a single
|
|
26972
|
-
* `setSettings` mutation applies a partial change. No hand-written
|
|
26973
|
-
* settings-contribution methods.
|
|
26974
|
-
*/
|
|
26975
|
-
/**
|
|
26976
|
-
* What makes the camera start recording during a window.
|
|
26977
|
-
*
|
|
26978
|
-
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
26979
|
-
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
26980
|
-
* object-class triggers are Reolink-only today and the smart-event ones
|
|
26981
|
-
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
26982
|
-
* firmwares measured — a camera that cannot record on a trigger simply
|
|
26983
|
-
* does not list it in `options.schedule.triggers`, and a window naming
|
|
26984
|
-
* it is REFUSED, not dropped.
|
|
26985
|
-
*/
|
|
26986
|
-
var RecordTriggerSchema = _enum([
|
|
26987
|
-
"continuous",
|
|
26988
|
-
"motion",
|
|
26989
|
-
"person",
|
|
26990
|
-
"vehicle",
|
|
26991
|
-
"animal",
|
|
26992
|
-
"lineCrossing",
|
|
26993
|
-
"intrusion",
|
|
26994
|
-
"loitering",
|
|
26995
|
-
"alarmInput"
|
|
26996
|
-
]);
|
|
26997
|
-
/**
|
|
26998
|
-
* One weekly recording window: "on `day`, from `startMinute` to
|
|
26999
|
-
* `endMinute`, record on `trigger`".
|
|
27000
|
-
*
|
|
27001
|
-
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
27002
|
-
* both firmwares enumerate). Minutes are local camera time since
|
|
27003
|
-
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
27004
|
-
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
27005
|
-
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
27006
|
-
*/
|
|
27007
|
-
var RecordWindowSchema = object({
|
|
27008
|
-
trigger: RecordTriggerSchema,
|
|
27009
|
-
day: number().int().min(0).max(6),
|
|
27010
|
-
startMinute: number().int().min(0).max(1439),
|
|
27011
|
-
endMinute: number().int().min(1).max(1440)
|
|
27012
|
-
});
|
|
27013
|
-
/** Status of one physical volume, as the camera itself describes it. */
|
|
27014
|
-
var OnboardStorageVolumeSchema = object({
|
|
27015
|
-
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
27016
|
-
id: string(),
|
|
27017
|
-
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
27018
|
-
label: string().optional(),
|
|
27019
|
-
status: _enum([
|
|
27020
|
-
"ok",
|
|
27021
|
-
"unformatted",
|
|
27022
|
-
"error",
|
|
27023
|
-
"offline",
|
|
27024
|
-
"unknown"
|
|
27025
|
-
]),
|
|
27026
|
-
/**
|
|
27027
|
-
* Total size in MB, or **null when the camera did not say**.
|
|
27028
|
-
*
|
|
27029
|
-
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
27030
|
-
* measurement (D393), and a card whose size is unknown must not be
|
|
27031
|
-
* rendered as a card of size zero.
|
|
27032
|
-
*/
|
|
27033
|
-
capacityMb: number().nullable(),
|
|
27034
|
-
/**
|
|
27035
|
-
* Free space in MB, or null when unknown.
|
|
27036
|
-
*
|
|
27037
|
-
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
27038
|
-
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
27039
|
-
* card converges on once it has wrapped. At loop steady state the
|
|
27040
|
-
* number is identical whether the camera recorded yesterday or stopped
|
|
27041
|
-
* a month ago.
|
|
27042
|
-
*/
|
|
27043
|
-
freeMb: number().nullable(),
|
|
27044
|
-
/** True when the camera reports the volume writable (`property` RW). */
|
|
27045
|
-
writable: boolean().optional()
|
|
27046
|
-
});
|
|
27047
|
-
object({
|
|
27048
|
-
storage: discriminatedUnion("kind", [
|
|
27049
|
-
object({
|
|
27050
|
-
kind: literal("present"),
|
|
27051
|
-
volumes: array(OnboardStorageVolumeSchema)
|
|
27052
|
-
}),
|
|
27053
|
-
object({
|
|
27054
|
-
kind: literal("absent"),
|
|
27055
|
-
reason: string()
|
|
27056
|
-
}),
|
|
27057
|
-
object({
|
|
27058
|
-
kind: literal("unknown"),
|
|
27059
|
-
reason: string()
|
|
27060
|
-
})
|
|
27061
|
-
]),
|
|
27062
|
-
tracks: array(object({
|
|
27063
|
-
id: string(),
|
|
27064
|
-
enabled: boolean(),
|
|
27065
|
-
isVideo: boolean(),
|
|
27066
|
-
/** From the camera's own track description. Null when it does not say. */
|
|
27067
|
-
codec: string().nullable(),
|
|
27068
|
-
resolution: string().nullable(),
|
|
27069
|
-
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
27070
|
-
overwriteWhenFull: boolean().nullable()
|
|
27071
|
-
})),
|
|
27072
|
-
/**
|
|
27073
|
-
* The track the write path targets — the enabled VIDEO one. Null when
|
|
27074
|
-
* no track could be identified, which is itself a refusal reason.
|
|
27075
|
-
*/
|
|
27076
|
-
primaryTrackId: string().nullable(),
|
|
27077
|
-
/** Master "record to the card at all" switch. */
|
|
27078
|
-
enabled: boolean().nullable(),
|
|
27079
|
-
overwriteWhenFull: boolean().nullable(),
|
|
27080
|
-
preRecordSec: number().nullable(),
|
|
27081
|
-
postRecordSec: number().nullable(),
|
|
27082
|
-
/** Length of one recorded file, in minutes. */
|
|
27083
|
-
segmentMinutes: number().nullable(),
|
|
27084
|
-
/** The primary track's weekly windows, flattened. */
|
|
27085
|
-
windows: array(RecordWindowSchema),
|
|
27086
|
-
/**
|
|
27087
|
-
* How many windows the camera described that CamStack could NOT read —
|
|
27088
|
-
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
27089
|
-
* name.
|
|
27090
|
-
*
|
|
27091
|
-
* A dropped window is work the reader threw away, and a schedule that
|
|
27092
|
-
* silently shows fewer rows than the camera holds is how an operator
|
|
27093
|
-
* saves back a schedule shorter than the one they were looking at
|
|
27094
|
-
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
27095
|
-
* that replaces it would delete what was not shown — which is why a
|
|
27096
|
-
* provider reporting a non-zero count also reports the schedule as not
|
|
27097
|
-
* writable.
|
|
27098
|
-
*/
|
|
27099
|
-
unreadableWindows: number(),
|
|
27100
|
-
/**
|
|
27101
|
-
* The camera is scheduled to record and has NO usable storage.
|
|
27102
|
-
*
|
|
27103
|
-
* A first-class fact because it is the fleet's most common silent
|
|
27104
|
-
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
27105
|
-
* to a card that is not there. Neither the schedule nor the storage
|
|
27106
|
-
* read says anything wrong on its own; only the pair does.
|
|
27107
|
-
*/
|
|
27108
|
-
recordingToNowhere: boolean(),
|
|
27109
|
-
lastFetchedAt: number()
|
|
27110
|
-
});
|
|
27111
|
-
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
27112
|
-
var RangeSchema = object({
|
|
27113
|
-
min: number(),
|
|
27114
|
-
max: number(),
|
|
27115
|
-
step: number()
|
|
27116
|
-
});
|
|
27117
|
-
/**
|
|
27118
|
-
* The values a camera actually takes for a numeric field, when they are a SET
|
|
27119
|
-
* rather than a range.
|
|
27120
|
-
*
|
|
27121
|
-
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
27122
|
-
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
27123
|
-
*
|
|
27124
|
-
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
27125
|
-
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
27126
|
-
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
27127
|
-
*
|
|
27128
|
-
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
27129
|
-
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
27130
|
-
* would forbid values the camera takes AND permit values it silently replaces
|
|
27131
|
-
* with 5 — wrong in both directions at once.
|
|
27132
|
-
*
|
|
27133
|
-
* `sentinel` names the member that is not a duration, so a surface can render
|
|
27134
|
-
* "no limit" instead of `2147483647` seconds.
|
|
27135
|
-
*/
|
|
27136
|
-
var AllowedValuesSchema = object({
|
|
27137
|
-
values: array(number()).min(1),
|
|
27138
|
-
sentinel: object({
|
|
27139
|
-
value: number(),
|
|
27140
|
-
meaning: _enum(["no-limit", "disabled"])
|
|
27141
|
-
}).optional()
|
|
27142
|
-
});
|
|
27143
|
-
/**
|
|
27144
|
-
* Per-field availability on ONE camera.
|
|
27145
|
-
*
|
|
27146
|
-
* The field exists on every camera — this says whether this one can be
|
|
27147
|
-
* read and whether it can be written, and `reason` says why not when
|
|
27148
|
-
* either is false. The UI renders the control DISABLED with the reason
|
|
27149
|
-
* rather than hiding it, so a limitation is legible instead of looking
|
|
27150
|
-
* like a missing feature.
|
|
27151
|
-
*/
|
|
27152
|
-
var OnboardFieldSupportSchema = object({
|
|
27153
|
-
readable: boolean(),
|
|
27154
|
-
writable: boolean(),
|
|
27155
|
-
/** Required whenever `readable` or `writable` is false. */
|
|
27156
|
-
reason: string().optional()
|
|
27157
|
-
});
|
|
27158
|
-
/** What this camera's schedule model can express. */
|
|
27159
|
-
var OnboardScheduleSupportSchema = object({
|
|
27160
|
-
support: OnboardFieldSupportSchema,
|
|
27161
|
-
/**
|
|
27162
|
-
* The smallest time step the camera can express, in minutes.
|
|
27163
|
-
*
|
|
27164
|
-
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
27165
|
-
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
27166
|
-
* window whose edges are not a multiple of this is REFUSED rather than
|
|
27167
|
-
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
27168
|
-
* and nothing says so.
|
|
27169
|
-
*/
|
|
27170
|
-
granularityMinutes: number(),
|
|
27171
|
-
/** Triggers this camera can record on. A window naming another is refused. */
|
|
27172
|
-
triggers: array(RecordTriggerSchema),
|
|
27173
|
-
/**
|
|
27174
|
-
* False when the camera stores ONE trigger per time range, so two
|
|
27175
|
-
* windows overlapping on the same day cannot carry different triggers.
|
|
27176
|
-
* True on Reolink, whose mask is per-trigger and independent.
|
|
27177
|
-
*/
|
|
27178
|
-
supportsOverlappingTriggers: boolean()
|
|
27179
|
-
});
|
|
27180
|
-
var RecordingOnboardOptionsSchema = object({
|
|
27181
|
-
enabled: OnboardFieldSupportSchema,
|
|
27182
|
-
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
27183
|
-
preRecordSec: OnboardFieldSupportSchema,
|
|
27184
|
-
preRecordSecRange: RangeSchema.optional(),
|
|
27185
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
27186
|
-
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
27187
|
-
postRecordSec: OnboardFieldSupportSchema,
|
|
27188
|
-
postRecordSecRange: RangeSchema.optional(),
|
|
27189
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
27190
|
-
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
27191
|
-
segmentMinutes: OnboardFieldSupportSchema,
|
|
27192
|
-
segmentMinutesRange: RangeSchema.optional(),
|
|
27193
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
27194
|
-
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
27195
|
-
schedule: OnboardScheduleSupportSchema
|
|
27196
|
-
});
|
|
27197
|
-
/**
|
|
27198
|
-
* A partial change. Every field optional.
|
|
27199
|
-
*
|
|
27200
|
-
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
27201
|
-
* silently ignore a field it cannot support — it refuses, by name,
|
|
27202
|
-
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
27203
|
-
* is the failure D62 exists to prevent: the operator believes the camera
|
|
27204
|
-
* is recording the way the form says, and it is not.
|
|
27205
|
-
*/
|
|
27206
|
-
var RecordingOnboardPatchSchema = object({
|
|
27207
|
-
enabled: boolean().optional(),
|
|
27208
|
-
overwriteWhenFull: boolean().optional(),
|
|
27209
|
-
preRecordSec: number().optional(),
|
|
27210
|
-
postRecordSec: number().optional(),
|
|
27211
|
-
segmentMinutes: number().optional(),
|
|
27212
|
-
/** The complete new window set for the primary track — not a delta. */
|
|
27213
|
-
windows: array(RecordWindowSchema).optional()
|
|
27214
|
-
});
|
|
27215
|
-
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
27216
|
-
deviceId: number(),
|
|
27217
|
-
settings: RecordingOnboardPatchSchema
|
|
27218
|
-
}), _void(), {
|
|
27219
|
-
kind: "mutation",
|
|
27220
|
-
auth: "admin"
|
|
27221
|
-
});
|
|
27222
|
-
/**
|
|
27223
27059
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
27224
27060
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
27225
27061
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -27313,30 +27149,6 @@ object({
|
|
|
27313
27149
|
eventCountSinceStart: number()
|
|
27314
27150
|
});
|
|
27315
27151
|
DeviceType.EventEmitter;
|
|
27316
|
-
var EventItemSchema = object({
|
|
27317
|
-
id: string(),
|
|
27318
|
-
type: string(),
|
|
27319
|
-
timestamp: number(),
|
|
27320
|
-
label: string().optional(),
|
|
27321
|
-
thumbnailUrl: string().optional(),
|
|
27322
|
-
clipUrl: string().optional(),
|
|
27323
|
-
metadata: record(string(), unknown()).optional()
|
|
27324
|
-
});
|
|
27325
|
-
DeviceType.Camera, method(object({
|
|
27326
|
-
deviceId: number(),
|
|
27327
|
-
from: number().optional(),
|
|
27328
|
-
to: number().optional(),
|
|
27329
|
-
limit: number().optional()
|
|
27330
|
-
}), array(EventItemSchema)), method(object({
|
|
27331
|
-
deviceId: number(),
|
|
27332
|
-
eventId: string()
|
|
27333
|
-
}), object({
|
|
27334
|
-
base64: string(),
|
|
27335
|
-
contentType: string()
|
|
27336
|
-
}).nullable()), method(object({
|
|
27337
|
-
deviceId: number(),
|
|
27338
|
-
eventId: string()
|
|
27339
|
-
}), string().nullable());
|
|
27340
27152
|
var IdentitySchema = object({
|
|
27341
27153
|
id: string(),
|
|
27342
27154
|
name: string(),
|
|
@@ -29008,143 +28820,6 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
29008
28820
|
lastChangedAt: number()
|
|
29009
28821
|
});
|
|
29010
28822
|
/**
|
|
29011
|
-
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29012
|
-
* page.
|
|
29013
|
-
*
|
|
29014
|
-
* ## Why this is a capability and not an addon settings schema
|
|
29015
|
-
*
|
|
29016
|
-
* It was one, and it did not render. The addon declared the editor as a
|
|
29017
|
-
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29018
|
-
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29019
|
-
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29020
|
-
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29021
|
-
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29022
|
-
* not on it "falls off silently".
|
|
29023
|
-
*
|
|
29024
|
-
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29025
|
-
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29026
|
-
* beside PTZ and motion zones on the camera itself. The device page is
|
|
29027
|
-
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
29028
|
-
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
29029
|
-
* from `getDeviceSettingsContribution`.
|
|
29030
|
-
*
|
|
29031
|
-
* Seven other widgets are still declared the other way, through a
|
|
29032
|
-
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
29033
|
-
* gives the addon no say in where its own panel lands and no way to decline
|
|
29034
|
-
* for a device the panel does not suit, which is why this one does not use it.
|
|
29035
|
-
*
|
|
29036
|
-
* ## Why one addon may implement it
|
|
29037
|
-
*
|
|
29038
|
-
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29039
|
-
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29040
|
-
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29041
|
-
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29042
|
-
* reached only by a caller that already knew the addon id.
|
|
29043
|
-
*
|
|
29044
|
-
* ## The tab
|
|
29045
|
-
*
|
|
29046
|
-
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29047
|
-
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29048
|
-
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29049
|
-
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29050
|
-
* next to "PTZ").
|
|
29051
|
-
*/
|
|
29052
|
-
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29053
|
-
var GridNormalizedRectSchema = object({
|
|
29054
|
-
x: number().min(0).max(1),
|
|
29055
|
-
y: number().min(0).max(1),
|
|
29056
|
-
width: number().gt(0).max(1),
|
|
29057
|
-
height: number().gt(0).max(1)
|
|
29058
|
-
});
|
|
29059
|
-
/**
|
|
29060
|
-
* One source camera, the part of its picture taken, and where that part lands.
|
|
29061
|
-
*
|
|
29062
|
-
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29063
|
-
* — a profile switch, a firmware update, a substream that comes back different
|
|
29064
|
-
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29065
|
-
* which is the class of bug nobody files.
|
|
29066
|
-
*/
|
|
29067
|
-
var GridLayoutCellSchema = object({
|
|
29068
|
-
deviceId: number().int().positive(),
|
|
29069
|
-
/** The part of the SOURCE taken, normalized against the source. */
|
|
29070
|
-
source: GridNormalizedRectSchema,
|
|
29071
|
-
/** Where it lands, normalized against the CANVAS. */
|
|
29072
|
-
cell: GridNormalizedRectSchema
|
|
29073
|
-
});
|
|
29074
|
-
/**
|
|
29075
|
-
* Which profiles this grid can actually compose, and why not.
|
|
29076
|
-
*
|
|
29077
|
-
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29078
|
-
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29079
|
-
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29080
|
-
* low" is, and it is the one an operator can act on.
|
|
29081
|
-
*/
|
|
29082
|
-
var GridProfileOfferSchema = object({
|
|
29083
|
-
profile: _enum([
|
|
29084
|
-
"high",
|
|
29085
|
-
"mid",
|
|
29086
|
-
"low"
|
|
29087
|
-
]),
|
|
29088
|
-
offered: boolean(),
|
|
29089
|
-
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29090
|
-
missingSources: array(number().int().positive()),
|
|
29091
|
-
/**
|
|
29092
|
-
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
29093
|
-
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
29094
|
-
* it is reported because nothing else in the system would ever say what the
|
|
29095
|
-
* grid came out as, and because it is the number an operator would otherwise
|
|
29096
|
-
* expect to type.
|
|
29097
|
-
*/
|
|
29098
|
-
canvas: string(),
|
|
29099
|
-
/**
|
|
29100
|
-
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
29101
|
-
*
|
|
29102
|
-
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
29103
|
-
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
29104
|
-
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
29105
|
-
* Default is `mid` + `low`.
|
|
29106
|
-
*/
|
|
29107
|
-
published: boolean()
|
|
29108
|
-
});
|
|
29109
|
-
var GridLayoutViewSchema = object({
|
|
29110
|
-
/** The persisted grid row this camera was declared from. */
|
|
29111
|
-
instanceId: string(),
|
|
29112
|
-
deviceId: number().int().nonnegative(),
|
|
29113
|
-
name: string(),
|
|
29114
|
-
/**
|
|
29115
|
-
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
29116
|
-
* its own from the cells and its sources' dimensions. The two numbers that
|
|
29117
|
-
* used to be here were a text field that silently decided both how much the
|
|
29118
|
-
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
29119
|
-
* came out as.
|
|
29120
|
-
*/
|
|
29121
|
-
fps: number().int(),
|
|
29122
|
-
cells: array(GridLayoutCellSchema),
|
|
29123
|
-
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29124
|
-
profiles: array(GridProfileOfferSchema)
|
|
29125
|
-
});
|
|
29126
|
-
var GridLayoutPatchSchema = object({
|
|
29127
|
-
deviceId: number().int().nonnegative(),
|
|
29128
|
-
name: string().min(1).max(160).optional(),
|
|
29129
|
-
fps: number().int().min(1).max(60).optional(),
|
|
29130
|
-
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
29131
|
-
publishedProfiles: array(_enum([
|
|
29132
|
-
"high",
|
|
29133
|
-
"mid",
|
|
29134
|
-
"low"
|
|
29135
|
-
])).max(3).optional(),
|
|
29136
|
-
/**
|
|
29137
|
-
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29138
|
-
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29139
|
-
* for.
|
|
29140
|
-
*/
|
|
29141
|
-
cells: array(GridLayoutCellSchema).max(16)
|
|
29142
|
-
});
|
|
29143
|
-
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29144
|
-
kind: "mutation",
|
|
29145
|
-
auth: "admin"
|
|
29146
|
-
});
|
|
29147
|
-
/**
|
|
29148
28823
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
29149
28824
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
29150
28825
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -30956,37 +30631,37 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
30956
30631
|
kind: "mutation",
|
|
30957
30632
|
auth: "admin"
|
|
30958
30633
|
});
|
|
30959
|
-
/**
|
|
30960
|
-
* `recording` cap — footage availability + HLS playback manifests + per-device
|
|
30961
|
-
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
30962
|
-
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
30963
|
-
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
30964
|
-
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
30965
|
-
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
30966
|
-
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
30967
|
-
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
30968
|
-
*/
|
|
30969
|
-
var RecordingStatusSchema = object({
|
|
30970
|
-
deviceId: number(),
|
|
30971
|
-
enabled: boolean(),
|
|
30972
|
-
/** THE derived storage mode, from the one definition
|
|
30973
|
-
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30974
|
-
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30975
|
-
activeMode: RecordingStorageModeSchema,
|
|
30976
|
-
nodeId: string(),
|
|
30977
|
-
storageBytes: number()
|
|
30978
|
-
});
|
|
30979
30634
|
var RecordingRangeSchema = object({
|
|
30980
30635
|
profile: string(),
|
|
30981
30636
|
startMs: number(),
|
|
30982
30637
|
endMs: number()
|
|
30983
30638
|
});
|
|
30639
|
+
/**
|
|
30640
|
+
* How a source ANSWERED, on every singular read of this cap.
|
|
30641
|
+
*
|
|
30642
|
+
* `'read'` — it looked. `ranges: []` / `days: []` is then a real claim: this
|
|
30643
|
+
* source has no coverage in the window. `'unreadable'` — nobody could look
|
|
30644
|
+
* (the camera was unreachable, the calendar rung threw, the location is
|
|
30645
|
+
* unmounted, the node is still on the old build), and the emptiness beside it
|
|
30646
|
+
* means NOTHING.
|
|
30647
|
+
*
|
|
30648
|
+
* The batch rows have carried this since the grid existed; the SINGULAR
|
|
30649
|
+
* answers gained it with the collection (D625 §10.4), because they are the
|
|
30650
|
+
* ones the single-camera picker uses and because a half-converted fleet makes
|
|
30651
|
+
* "nobody looked" common for the length of a deploy. Without it the timeline
|
|
30652
|
+
* has no vocabulary for it, and `(data ?? [])` in a viewer turns a rollout into
|
|
30653
|
+
* a fleet of cameras that appear to have lost their recordings (D315, D393).
|
|
30654
|
+
*/
|
|
30655
|
+
var RecordingReadSchema = _enum(["read", "unreadable"]);
|
|
30984
30656
|
var RecordingAvailabilitySchema = object({
|
|
30985
30657
|
deviceId: number(),
|
|
30658
|
+
/** See {@link RecordingReadSchema}. An `'unreadable'` answer carries an empty
|
|
30659
|
+
* `ranges` that means nothing — never draw it as "no footage". */
|
|
30660
|
+
read: RecordingReadSchema,
|
|
30986
30661
|
ranges: array(RecordingRangeSchema),
|
|
30987
30662
|
/**
|
|
30988
|
-
* Every profile this camera has footage in — not only the one
|
|
30989
|
-
* describes (D433).
|
|
30663
|
+
* Every profile this camera has footage in AT THIS SOURCE — not only the one
|
|
30664
|
+
* `ranges` describes (D433).
|
|
30990
30665
|
*
|
|
30991
30666
|
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
30992
30667
|
* and enumerating all of them triples the directory reads for a bar that
|
|
@@ -31003,15 +30678,285 @@ var RecordingAvailabilitySchema = object({
|
|
|
31003
30678
|
});
|
|
31004
30679
|
var RecordingDaysSchema = object({
|
|
31005
30680
|
deviceId: number(),
|
|
30681
|
+
/** See {@link RecordingReadSchema}. `days: []` on an `'unreadable'` answer is
|
|
30682
|
+
* "nobody could look", and the date-picker must not spell it the same as
|
|
30683
|
+
* "no footage this month". */
|
|
30684
|
+
read: RecordingReadSchema,
|
|
31006
30685
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
31007
30686
|
days: array(number())
|
|
31008
30687
|
});
|
|
30688
|
+
var RecordingManifestSchema = object({
|
|
30689
|
+
deviceId: number(),
|
|
30690
|
+
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
30691
|
+
localMasterPath: string().nullable(),
|
|
30692
|
+
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
30693
|
+
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
30694
|
+
* scoped playback token in its path. */
|
|
30695
|
+
playbackUrl: string().nullable(),
|
|
30696
|
+
/**
|
|
30697
|
+
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
30698
|
+
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
30699
|
+
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
30700
|
+
* there is no recording / server.
|
|
30701
|
+
*/
|
|
30702
|
+
playbackEndpoints: array(string())
|
|
30703
|
+
});
|
|
30704
|
+
var RecordingSourceAvailabilitySchema = object({
|
|
30705
|
+
state: _enum([
|
|
30706
|
+
"ok",
|
|
30707
|
+
"sleeping",
|
|
30708
|
+
"unreachable",
|
|
30709
|
+
"no-storage",
|
|
30710
|
+
"index-empty"
|
|
30711
|
+
]),
|
|
30712
|
+
/** Free text, shown verbatim. Names the camera's own refusal when there is one. */
|
|
30713
|
+
reason: string().optional(),
|
|
30714
|
+
/** When this source's coverage was last CONFIRMED. A cached answer is never
|
|
30715
|
+
* drawn as current: the surface shows the age whenever it is older than the
|
|
30716
|
+
* refresh interval. The clip catalog's `catalogAsOf`, under the name the
|
|
30717
|
+
* timeline uses for it. */
|
|
30718
|
+
coverageAsOf: number().optional()
|
|
30719
|
+
});
|
|
30720
|
+
/**
|
|
30721
|
+
* One SOURCE of recorded coverage for a camera — a row of the picker.
|
|
30722
|
+
*
|
|
30723
|
+
* A provider lists the sources IT serves for that device, and answers for each
|
|
30724
|
+
* of them whether it can answer at all. A provider with nothing to offer on a
|
|
30725
|
+
* camera returns `[]` — it is not that camera's business. The five availability
|
|
30726
|
+
* states are `ClipSourceAvailability`'s verbatim: they mean exactly the same
|
|
30727
|
+
* things about a coverage index as about a clip catalog, and `sleeping` in
|
|
30728
|
+
* particular is what stops a battery camera being woken to paint a bar.
|
|
30729
|
+
*/
|
|
30730
|
+
var RecordingSourceSchema = object({
|
|
30731
|
+
/** The source id. {@link RECORDING_SOURCE_CAMSTACK} for ours (RESERVED), a
|
|
30732
|
+
* vendor namespace (`native:reolink:onboard`, …) for a camera's own store. */
|
|
30733
|
+
source: string(),
|
|
30734
|
+
/** Operator-facing name of the source ("CamStack recordings", "SD card"). */
|
|
30735
|
+
label: string(),
|
|
30736
|
+
/**
|
|
30737
|
+
* The addon that SERVES this row, and the value a later call passes as
|
|
30738
|
+
* `provider`.
|
|
30739
|
+
*
|
|
30740
|
+
* Optional for version skew only. The collection dispatcher stamps it from
|
|
30741
|
+
* the registry, so a row that travelled through the fan-out carries the
|
|
30742
|
+
* authoritative id whatever the provider filled in (D557 §4).
|
|
30743
|
+
*/
|
|
30744
|
+
addonId: string().optional(),
|
|
30745
|
+
availability: RecordingSourceAvailabilitySchema
|
|
30746
|
+
});
|
|
30747
|
+
/**
|
|
30748
|
+
* What a surface may DRAW for this (camera, source) — D612's rule applied to a
|
|
30749
|
+
* timeline: **the source declares what it can do, and the surface draws what
|
|
30750
|
+
* was declared. It never assumes, and never offers a gesture it will then
|
|
30751
|
+
* refuse.** D612 exists because `8` and `16` were offered as clip rates, the
|
|
30752
|
+
* broker clamped them to `4`, and no line anywhere said so.
|
|
30753
|
+
*
|
|
30754
|
+
* Asked once per (camera, source) before anything is drawn — never replaced by
|
|
30755
|
+
* a constant the surface keeps, which is the second authority D612 ends.
|
|
30756
|
+
*/
|
|
30757
|
+
var RecordingSourceOptionsSchema = object({
|
|
30758
|
+
/** How this source's media reaches the player.
|
|
30759
|
+
* `archive` = our own indexed segment tree; `stream` = the provider's
|
|
30760
|
+
* forward-only fMP4 (D597); `realtime` = a replay bound to wall clock. */
|
|
30761
|
+
transport: _enum([
|
|
30762
|
+
"archive",
|
|
30763
|
+
"stream",
|
|
30764
|
+
"realtime"
|
|
30765
|
+
]),
|
|
30766
|
+
/** What the BAR means. `continuous` = gaps are holes in a recording;
|
|
30767
|
+
* `sparse` = gaps are the absence of one, and must be drawn as such.
|
|
30768
|
+
*
|
|
30769
|
+
* Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
|
|
30770
|
+
* of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
|
|
30771
|
+
* pair, and ours answers it per camera from `deriveRecordingMode`. */
|
|
30772
|
+
coverage: _enum(["continuous", "sparse"]),
|
|
30773
|
+
/** Where the playhead may be put.
|
|
30774
|
+
* `free` — anywhere, to the frame.
|
|
30775
|
+
* `forward` — only ahead of the current position.
|
|
30776
|
+
* `segment` — a position SNAPS to the head of the covering segment; a finer
|
|
30777
|
+
* ask is accepted by the camera and SILENTLY IGNORED. Measured
|
|
30778
|
+
* on 1436 (Hikvision V5.7.1, 2026-09-23): a window-narrowed
|
|
30779
|
+
* `ContentMgmt/search` returns a row and a `playbackURI`, the
|
|
30780
|
+
* replay opens 200 and delivers media — and the burned-in OSD of
|
|
30781
|
+
* the first frame reads the SEGMENT HEAD every time. Calling
|
|
30782
|
+
* that `forward` would tell the surface it may move the playhead
|
|
30783
|
+
* ahead within a loaded segment, which it may not. */
|
|
30784
|
+
seek: _enum([
|
|
30785
|
+
"free",
|
|
30786
|
+
"forward",
|
|
30787
|
+
"segment"
|
|
30788
|
+
]),
|
|
30789
|
+
/** Frame-step BACKWARD is meaningful. */
|
|
30790
|
+
stepBack: boolean(),
|
|
30791
|
+
/** Whether the drag-scrub gesture is served, as opposed to refused by name. */
|
|
30792
|
+
scrub: boolean(),
|
|
30793
|
+
/** Deliverable rates, ascending, always containing `1`. The surface draws its
|
|
30794
|
+
* picker from this and from NOTHING else (D612, D620, D621). `0` is not a
|
|
30795
|
+
* member: pause is the absence of a rate. */
|
|
30796
|
+
rates: array(number().positive()).min(1).readonly(),
|
|
30797
|
+
/** TRUE when a read of this source HOLDS the camera's only playback session.
|
|
30798
|
+
* A surface with this set makes at most ONE read at a time and draws no
|
|
30799
|
+
* scrub-thumbnail strip, no hover preview, no prefetch and no background
|
|
30800
|
+
* refresh. The precedent is exact and expensive: filling one screen of
|
|
30801
|
+
* Hikvision thumbnails at 1.01× realtime consumed fifteen minutes of that
|
|
30802
|
+
* camera's only playback session (1.2.126, reported within minutes), and a
|
|
30803
|
+
* timeline is a screenful of reads by construction. */
|
|
30804
|
+
exclusive: boolean()
|
|
30805
|
+
});
|
|
30806
|
+
/**
|
|
30807
|
+
* How to PLAY the instant that was asked for, from the chosen source.
|
|
30808
|
+
*
|
|
30809
|
+
* No new media transport is built for onboard sources: the `clip` arm is a
|
|
30810
|
+
* DELEGATION to the `videoclips` transport that vendor already has (D597 /
|
|
30811
|
+
* D616 / D617). The onboard half of this collection is a PROJECTION of
|
|
30812
|
+
* `videoclips` for coverage and a delegation to it for bytes.
|
|
30813
|
+
*/
|
|
30814
|
+
var RecordingPlaybackSchema = discriminatedUnion("kind", [
|
|
30815
|
+
object({
|
|
30816
|
+
kind: literal("hls"),
|
|
30817
|
+
manifest: RecordingManifestSchema
|
|
30818
|
+
}),
|
|
30819
|
+
object({
|
|
30820
|
+
kind: literal("clip"),
|
|
30821
|
+
/** The `videoclips` source namespace this clip id belongs to. */
|
|
30822
|
+
source: string(),
|
|
30823
|
+
clipId: string(),
|
|
30824
|
+
/** Where this clip actually STARTS. On a `seek: 'segment'` source the
|
|
30825
|
+
* playhead lands here, not at the requested instant — the surface must be
|
|
30826
|
+
* TOLD, not left to discover it from a burned-in OSD. */
|
|
30827
|
+
startsAtMs: number()
|
|
30828
|
+
}),
|
|
30829
|
+
object({
|
|
30830
|
+
kind: literal("none"),
|
|
30831
|
+
reason: string()
|
|
30832
|
+
})
|
|
30833
|
+
]);
|
|
30834
|
+
DeviceType.Camera, method(object({ deviceId: number() }), array(RecordingSourceSchema).readonly(), {
|
|
30835
|
+
kind: "query",
|
|
30836
|
+
auth: "protected"
|
|
30837
|
+
}), method(object({
|
|
30838
|
+
deviceId: number(),
|
|
30839
|
+
/**
|
|
30840
|
+
* WHICH provider to ask — the `addonId` a {@link RecordingSourceSchema}
|
|
30841
|
+
* row carries, never a source id and never a list. **REQUIRED**, in the
|
|
30842
|
+
* schema, where the generated types make it unomittable rather than
|
|
30843
|
+
* merely discouraged (D554 amended).
|
|
30844
|
+
*
|
|
30845
|
+
* It was learned the expensive way on `videoclips.listClips`: measured
|
|
30846
|
+
* on the live hub 2026-09-20, device 592 bound to `recorder` AND
|
|
30847
|
+
* `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
|
|
30848
|
+
* three from each source, merged — `device-collection-dispatch.ts`
|
|
30849
|
+
* leaves an unpinned fan-out un-narrowed, so absence buys the union the
|
|
30850
|
+
* method exists not to be. An un-narrowed `getAvailability` would do
|
|
30851
|
+
* that to a TIMELINE: our ranges and the card's clips unioned into one
|
|
30852
|
+
* bar, which is "two sources are never drawn together" broken in the
|
|
30853
|
+
* one place it matters most.
|
|
30854
|
+
*
|
|
30855
|
+
* A provider the device is not bound to is refused BY NAME (D552's
|
|
30856
|
+
* `rejectUnresolvedAddonPin`), never answered by another one.
|
|
30857
|
+
*/
|
|
30858
|
+
provider: string().min(1),
|
|
30859
|
+
fromMs: number(),
|
|
30860
|
+
toMs: number(),
|
|
30861
|
+
/**
|
|
30862
|
+
* Answer for THIS profile instead of the source's preferred one (D433).
|
|
30863
|
+
* Absent keeps the timeline's behaviour — one bar, one profile, one set
|
|
30864
|
+
* of reads. `profilesWithFootage` on the answer says what may be asked
|
|
30865
|
+
* for.
|
|
30866
|
+
*/
|
|
30867
|
+
profile: string().optional()
|
|
30868
|
+
}), RecordingAvailabilitySchema, {
|
|
30869
|
+
kind: "query",
|
|
30870
|
+
auth: "protected"
|
|
30871
|
+
}), method(object({
|
|
30872
|
+
deviceId: number(),
|
|
30873
|
+
provider: string().min(1),
|
|
30874
|
+
fromMs: number(),
|
|
30875
|
+
toMs: number(),
|
|
30876
|
+
tzOffsetMinutes: number()
|
|
30877
|
+
}), RecordingDaysSchema, {
|
|
30878
|
+
kind: "query",
|
|
30879
|
+
auth: "protected"
|
|
30880
|
+
}), method(object({
|
|
30881
|
+
deviceId: number(),
|
|
30882
|
+
provider: string().min(1),
|
|
30883
|
+
fromMs: number(),
|
|
30884
|
+
toMs: number(),
|
|
30885
|
+
profile: CamProfileSchema.optional()
|
|
30886
|
+
}), RecordingPlaybackSchema, {
|
|
30887
|
+
kind: "query",
|
|
30888
|
+
auth: "protected"
|
|
30889
|
+
}), method(object({
|
|
30890
|
+
deviceId: number(),
|
|
30891
|
+
provider: string().min(1)
|
|
30892
|
+
}), RecordingSourceOptionsSchema, {
|
|
30893
|
+
kind: "query",
|
|
30894
|
+
auth: "protected"
|
|
30895
|
+
});
|
|
30896
|
+
/**
|
|
30897
|
+
* `recording-archive` — OUR archive, and the intent that fills it.
|
|
30898
|
+
*
|
|
30899
|
+
* The system-singleton half of the 2026-09-24 cut (D625). `recording` used to
|
|
30900
|
+
* be one 33-method system singleton holding two unrelated subjects: three
|
|
30901
|
+
* per-camera READS about coverage and playback, and everything else — storage
|
|
30902
|
+
* locations, retention, relocation, rebalance, the ops log, the placement
|
|
30903
|
+
* table and the byte-plane primitives our scrub and export are built on.
|
|
30904
|
+
*
|
|
30905
|
+
* The reads became a device-scoped COLLECTION, so a camera's own card can be a
|
|
30906
|
+
* source beside ours (`recording.cap.ts`). Everything that is about OUR store,
|
|
30907
|
+
* or unimplementable by a camera, stayed here.
|
|
30908
|
+
*
|
|
30909
|
+
* ## On the name
|
|
30910
|
+
*
|
|
30911
|
+
* `recording-storage` was the obvious choice and is wrong: this cap also holds
|
|
30912
|
+
* `getDeviceConfig`/`setDeviceConfig`, which are recording INTENT — bands,
|
|
30913
|
+
* retention, the D62 switch authority — and a name that says "storage" invites
|
|
30914
|
+
* the next reader to move them out again. An archive is a thing we keep, and
|
|
30915
|
+
* what we keep it under is a policy; the name covers both halves honestly and
|
|
30916
|
+
* sits in the existing family (`recording-onboard`, `recording-export`,
|
|
30917
|
+
* `recording-signal`).
|
|
30918
|
+
*
|
|
30919
|
+
* ## What must NOT happen to it
|
|
30920
|
+
*
|
|
30921
|
+
* It stays a SINGLETON. It is registered by `recorder`, which is
|
|
30922
|
+
* `placement: 'any-node'` and runs on every recording node; the hub dispatches
|
|
30923
|
+
* to one of them. Putting the ledger, the placement table or the relocation
|
|
30924
|
+
* jobs behind a fan-out is the one genuinely dangerous move in this cut.
|
|
30925
|
+
*
|
|
30926
|
+
* `getDeviceConfig` / `setDeviceConfig` in particular are the D62 recording
|
|
30927
|
+
* authority (`CameraSwitch.authority`). If a write reached a different provider
|
|
30928
|
+
* than the read — which a collection fan-out permits — two authorities would
|
|
30929
|
+
* decide when one camera records, and the symptom (recording silently off, or
|
|
30930
|
+
* a `bands` array clobbered by a partial write) is durable and silent. Keeping
|
|
30931
|
+
* them here means the worst case during a rollout is a 412: the switch refuses
|
|
30932
|
+
* to flip and SAYS so. **Do not move them into the collection, at any point,
|
|
30933
|
+
* for any reason.**
|
|
30934
|
+
*
|
|
30935
|
+
* ## The two batch reads
|
|
30936
|
+
*
|
|
30937
|
+
* `getAvailabilityBatch` / `getDaysWithRecordingsBatch` take `deviceIds:
|
|
30938
|
+
* number[]` with no single `deviceId`, and a device-scoped mount routes
|
|
30939
|
+
* through `getProviderForDevice(deviceId)` — there is nothing for it to route
|
|
30940
|
+
* on. They stay here, and on this cap the batch is explicitly OURS: a grid has
|
|
30941
|
+
* no per-camera picker, and a caller that wants another source's coverage asks
|
|
30942
|
+
* `recording.getAvailability` per device with that source's `provider`.
|
|
30943
|
+
*/
|
|
30944
|
+
var RecordingStatusSchema = object({
|
|
30945
|
+
deviceId: number(),
|
|
30946
|
+
enabled: boolean(),
|
|
30947
|
+
/** THE derived storage mode, from the one definition
|
|
30948
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30949
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30950
|
+
activeMode: RecordingStorageModeSchema,
|
|
30951
|
+
nodeId: string(),
|
|
30952
|
+
storageBytes: number()
|
|
30953
|
+
});
|
|
31009
30954
|
/**
|
|
31010
30955
|
* One camera's row in a `getAvailabilityBatch` answer.
|
|
31011
30956
|
*
|
|
31012
|
-
* `ranges` is EXACTLY what `getAvailability` returns for that camera
|
|
31013
|
-
* batch collapses the transport, not the work — plus the
|
|
31014
|
-
*
|
|
30957
|
+
* `ranges` is EXACTLY what `recording.getAvailability` returns for that camera
|
|
30958
|
+
* at OUR source — the batch collapses the transport, not the work — plus the
|
|
30959
|
+
* `read` mark the singular answer now carries too (D625):
|
|
31015
30960
|
*
|
|
31016
30961
|
* - `read: 'read'` — answered. `ranges: []` means "read, and this camera has
|
|
31017
30962
|
* no footage in the window", which is a real claim.
|
|
@@ -31043,22 +30988,6 @@ var RecordingDaysForDeviceSchema = object({
|
|
|
31043
30988
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
31044
30989
|
days: array(number()).readonly()
|
|
31045
30990
|
});
|
|
31046
|
-
var RecordingManifestSchema = object({
|
|
31047
|
-
deviceId: number(),
|
|
31048
|
-
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
31049
|
-
localMasterPath: string().nullable(),
|
|
31050
|
-
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
31051
|
-
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
31052
|
-
* scoped playback token in its path. */
|
|
31053
|
-
playbackUrl: string().nullable(),
|
|
31054
|
-
/**
|
|
31055
|
-
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
31056
|
-
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
31057
|
-
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
31058
|
-
* there is no recording / server.
|
|
31059
|
-
*/
|
|
31060
|
-
playbackEndpoints: array(string())
|
|
31061
|
-
});
|
|
31062
30991
|
/**
|
|
31063
30992
|
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31064
30993
|
* across every profile and every resolvable location on this node.
|
|
@@ -31317,34 +31246,12 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
31317
31246
|
segmentEndMs: number()
|
|
31318
31247
|
})]);
|
|
31319
31248
|
method(object({
|
|
31320
|
-
deviceId: number(),
|
|
31321
|
-
fromMs: number(),
|
|
31322
|
-
toMs: number(),
|
|
31323
|
-
/**
|
|
31324
|
-
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
31325
|
-
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
31326
|
-
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
31327
|
-
* for.
|
|
31328
|
-
*/
|
|
31329
|
-
profile: string().optional()
|
|
31330
|
-
}), RecordingAvailabilitySchema, {
|
|
31331
|
-
kind: "query",
|
|
31332
|
-
auth: "protected"
|
|
31333
|
-
}), method(object({
|
|
31334
31249
|
deviceIds: array(number()).min(1).max(200),
|
|
31335
31250
|
fromMs: number(),
|
|
31336
31251
|
toMs: number()
|
|
31337
31252
|
}), array(RecordingAvailabilityForDeviceSchema).readonly(), {
|
|
31338
31253
|
kind: "query",
|
|
31339
31254
|
auth: "protected"
|
|
31340
|
-
}), method(object({
|
|
31341
|
-
deviceId: number(),
|
|
31342
|
-
fromMs: number(),
|
|
31343
|
-
toMs: number(),
|
|
31344
|
-
tzOffsetMinutes: number()
|
|
31345
|
-
}), RecordingDaysSchema, {
|
|
31346
|
-
kind: "query",
|
|
31347
|
-
auth: "protected"
|
|
31348
31255
|
}), method(object({
|
|
31349
31256
|
deviceIds: array(number()).min(1).max(200),
|
|
31350
31257
|
fromMs: number(),
|
|
@@ -31353,13 +31260,6 @@ method(object({
|
|
|
31353
31260
|
}), array(RecordingDaysForDeviceSchema).readonly(), {
|
|
31354
31261
|
kind: "query",
|
|
31355
31262
|
auth: "protected"
|
|
31356
|
-
}), method(object({
|
|
31357
|
-
deviceId: number(),
|
|
31358
|
-
fromMs: number(),
|
|
31359
|
-
toMs: number()
|
|
31360
|
-
}), RecordingManifestSchema, {
|
|
31361
|
-
kind: "query",
|
|
31362
|
-
auth: "protected"
|
|
31363
31263
|
}), method(object({}), RecordingStorageUsageSchema, {
|
|
31364
31264
|
kind: "query",
|
|
31365
31265
|
auth: "admin"
|
|
@@ -31807,6 +31707,307 @@ method(object({
|
|
|
31807
31707
|
auth: "protected"
|
|
31808
31708
|
});
|
|
31809
31709
|
/**
|
|
31710
|
+
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
31711
|
+
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
31712
|
+
*
|
|
31713
|
+
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
31714
|
+
* footage ledger, our storage locations, our retention. This one has a
|
|
31715
|
+
* different authority — the camera's firmware — and per D62 it stores
|
|
31716
|
+
* nothing of its own. Every value here is read from the camera and every
|
|
31717
|
+
* write goes back to the camera; there is no CamStack-side mirror that
|
|
31718
|
+
* could disagree with the device.
|
|
31719
|
+
*
|
|
31720
|
+
* ## One shape, two firmwares
|
|
31721
|
+
*
|
|
31722
|
+
* Measured 2026-09-22 against the live fleet:
|
|
31723
|
+
*
|
|
31724
|
+
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
31725
|
+
* | --- | --- | --- |
|
|
31726
|
+
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
31727
|
+
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
31728
|
+
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
31729
|
+
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
31730
|
+
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
31731
|
+
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
31732
|
+
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
31733
|
+
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
31734
|
+
*
|
|
31735
|
+
* The two schedule models look different and are the same thing in
|
|
31736
|
+
* different coordinates: both answer "for this trigger, during which
|
|
31737
|
+
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
31738
|
+
* question in one shape — Hikvision's ranges map straight onto it,
|
|
31739
|
+
* Reolink's mask expands into hour-aligned windows.
|
|
31740
|
+
*
|
|
31741
|
+
* ## Union, not intersection
|
|
31742
|
+
*
|
|
31743
|
+
* **The same fields exist on every camera.** What differs per device is
|
|
31744
|
+
* which VALUES that device accepts, and that is what {@link
|
|
31745
|
+
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
31746
|
+
* per field plus the schedule's own limits. A control a camera cannot
|
|
31747
|
+
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
31748
|
+
* dead: disabled must not look like broken.
|
|
31749
|
+
*
|
|
31750
|
+
* ## Refusal by name
|
|
31751
|
+
*
|
|
31752
|
+
* A write a camera cannot honour is refused with a sentence the operator
|
|
31753
|
+
* can read — never accepted and dropped. Both providers refuse through
|
|
31754
|
+
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
31755
|
+
* one test, not two hand-written vendor opinions.
|
|
31756
|
+
*
|
|
31757
|
+
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
31758
|
+
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
31759
|
+
* injected from `status`) reports the live values, and a single
|
|
31760
|
+
* `setSettings` mutation applies a partial change. No hand-written
|
|
31761
|
+
* settings-contribution methods.
|
|
31762
|
+
*/
|
|
31763
|
+
/**
|
|
31764
|
+
* What makes the camera start recording during a window.
|
|
31765
|
+
*
|
|
31766
|
+
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
31767
|
+
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
31768
|
+
* object-class triggers are Reolink-only today and the smart-event ones
|
|
31769
|
+
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
31770
|
+
* firmwares measured — a camera that cannot record on a trigger simply
|
|
31771
|
+
* does not list it in `options.schedule.triggers`, and a window naming
|
|
31772
|
+
* it is REFUSED, not dropped.
|
|
31773
|
+
*/
|
|
31774
|
+
var RecordTriggerSchema = _enum([
|
|
31775
|
+
"continuous",
|
|
31776
|
+
"motion",
|
|
31777
|
+
"person",
|
|
31778
|
+
"vehicle",
|
|
31779
|
+
"animal",
|
|
31780
|
+
"lineCrossing",
|
|
31781
|
+
"intrusion",
|
|
31782
|
+
"loitering",
|
|
31783
|
+
"alarmInput"
|
|
31784
|
+
]);
|
|
31785
|
+
/**
|
|
31786
|
+
* One weekly recording window: "on `day`, from `startMinute` to
|
|
31787
|
+
* `endMinute`, record on `trigger`".
|
|
31788
|
+
*
|
|
31789
|
+
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
31790
|
+
* both firmwares enumerate). Minutes are local camera time since
|
|
31791
|
+
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
31792
|
+
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
31793
|
+
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
31794
|
+
*/
|
|
31795
|
+
var RecordWindowSchema = object({
|
|
31796
|
+
trigger: RecordTriggerSchema,
|
|
31797
|
+
day: number().int().min(0).max(6),
|
|
31798
|
+
startMinute: number().int().min(0).max(1439),
|
|
31799
|
+
endMinute: number().int().min(1).max(1440)
|
|
31800
|
+
});
|
|
31801
|
+
/** Status of one physical volume, as the camera itself describes it. */
|
|
31802
|
+
var OnboardStorageVolumeSchema = object({
|
|
31803
|
+
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
31804
|
+
id: string(),
|
|
31805
|
+
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
31806
|
+
label: string().optional(),
|
|
31807
|
+
status: _enum([
|
|
31808
|
+
"ok",
|
|
31809
|
+
"unformatted",
|
|
31810
|
+
"error",
|
|
31811
|
+
"offline",
|
|
31812
|
+
"unknown"
|
|
31813
|
+
]),
|
|
31814
|
+
/**
|
|
31815
|
+
* Total size in MB, or **null when the camera did not say**.
|
|
31816
|
+
*
|
|
31817
|
+
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
31818
|
+
* measurement (D393), and a card whose size is unknown must not be
|
|
31819
|
+
* rendered as a card of size zero.
|
|
31820
|
+
*/
|
|
31821
|
+
capacityMb: number().nullable(),
|
|
31822
|
+
/**
|
|
31823
|
+
* Free space in MB, or null when unknown.
|
|
31824
|
+
*
|
|
31825
|
+
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
31826
|
+
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
31827
|
+
* card converges on once it has wrapped. At loop steady state the
|
|
31828
|
+
* number is identical whether the camera recorded yesterday or stopped
|
|
31829
|
+
* a month ago.
|
|
31830
|
+
*/
|
|
31831
|
+
freeMb: number().nullable(),
|
|
31832
|
+
/** True when the camera reports the volume writable (`property` RW). */
|
|
31833
|
+
writable: boolean().optional()
|
|
31834
|
+
});
|
|
31835
|
+
object({
|
|
31836
|
+
storage: discriminatedUnion("kind", [
|
|
31837
|
+
object({
|
|
31838
|
+
kind: literal("present"),
|
|
31839
|
+
volumes: array(OnboardStorageVolumeSchema)
|
|
31840
|
+
}),
|
|
31841
|
+
object({
|
|
31842
|
+
kind: literal("absent"),
|
|
31843
|
+
reason: string()
|
|
31844
|
+
}),
|
|
31845
|
+
object({
|
|
31846
|
+
kind: literal("unknown"),
|
|
31847
|
+
reason: string()
|
|
31848
|
+
})
|
|
31849
|
+
]),
|
|
31850
|
+
tracks: array(object({
|
|
31851
|
+
id: string(),
|
|
31852
|
+
enabled: boolean(),
|
|
31853
|
+
isVideo: boolean(),
|
|
31854
|
+
/** From the camera's own track description. Null when it does not say. */
|
|
31855
|
+
codec: string().nullable(),
|
|
31856
|
+
resolution: string().nullable(),
|
|
31857
|
+
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
31858
|
+
overwriteWhenFull: boolean().nullable()
|
|
31859
|
+
})),
|
|
31860
|
+
/**
|
|
31861
|
+
* The track the write path targets — the enabled VIDEO one. Null when
|
|
31862
|
+
* no track could be identified, which is itself a refusal reason.
|
|
31863
|
+
*/
|
|
31864
|
+
primaryTrackId: string().nullable(),
|
|
31865
|
+
/** Master "record to the card at all" switch. */
|
|
31866
|
+
enabled: boolean().nullable(),
|
|
31867
|
+
overwriteWhenFull: boolean().nullable(),
|
|
31868
|
+
preRecordSec: number().nullable(),
|
|
31869
|
+
postRecordSec: number().nullable(),
|
|
31870
|
+
/** Length of one recorded file, in minutes. */
|
|
31871
|
+
segmentMinutes: number().nullable(),
|
|
31872
|
+
/** The primary track's weekly windows, flattened. */
|
|
31873
|
+
windows: array(RecordWindowSchema),
|
|
31874
|
+
/**
|
|
31875
|
+
* How many windows the camera described that CamStack could NOT read —
|
|
31876
|
+
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
31877
|
+
* name.
|
|
31878
|
+
*
|
|
31879
|
+
* A dropped window is work the reader threw away, and a schedule that
|
|
31880
|
+
* silently shows fewer rows than the camera holds is how an operator
|
|
31881
|
+
* saves back a schedule shorter than the one they were looking at
|
|
31882
|
+
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
31883
|
+
* that replaces it would delete what was not shown — which is why a
|
|
31884
|
+
* provider reporting a non-zero count also reports the schedule as not
|
|
31885
|
+
* writable.
|
|
31886
|
+
*/
|
|
31887
|
+
unreadableWindows: number(),
|
|
31888
|
+
/**
|
|
31889
|
+
* The camera is scheduled to record and has NO usable storage.
|
|
31890
|
+
*
|
|
31891
|
+
* A first-class fact because it is the fleet's most common silent
|
|
31892
|
+
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
31893
|
+
* to a card that is not there. Neither the schedule nor the storage
|
|
31894
|
+
* read says anything wrong on its own; only the pair does.
|
|
31895
|
+
*/
|
|
31896
|
+
recordingToNowhere: boolean(),
|
|
31897
|
+
lastFetchedAt: number()
|
|
31898
|
+
});
|
|
31899
|
+
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
31900
|
+
var RangeSchema = object({
|
|
31901
|
+
min: number(),
|
|
31902
|
+
max: number(),
|
|
31903
|
+
step: number()
|
|
31904
|
+
});
|
|
31905
|
+
/**
|
|
31906
|
+
* The values a camera actually takes for a numeric field, when they are a SET
|
|
31907
|
+
* rather than a range.
|
|
31908
|
+
*
|
|
31909
|
+
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
31910
|
+
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
31911
|
+
*
|
|
31912
|
+
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
31913
|
+
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
31914
|
+
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
31915
|
+
*
|
|
31916
|
+
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
31917
|
+
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
31918
|
+
* would forbid values the camera takes AND permit values it silently replaces
|
|
31919
|
+
* with 5 — wrong in both directions at once.
|
|
31920
|
+
*
|
|
31921
|
+
* `sentinel` names the member that is not a duration, so a surface can render
|
|
31922
|
+
* "no limit" instead of `2147483647` seconds.
|
|
31923
|
+
*/
|
|
31924
|
+
var AllowedValuesSchema = object({
|
|
31925
|
+
values: array(number()).min(1),
|
|
31926
|
+
sentinel: object({
|
|
31927
|
+
value: number(),
|
|
31928
|
+
meaning: _enum(["no-limit", "disabled"])
|
|
31929
|
+
}).optional()
|
|
31930
|
+
});
|
|
31931
|
+
/**
|
|
31932
|
+
* Per-field availability on ONE camera.
|
|
31933
|
+
*
|
|
31934
|
+
* The field exists on every camera — this says whether this one can be
|
|
31935
|
+
* read and whether it can be written, and `reason` says why not when
|
|
31936
|
+
* either is false. The UI renders the control DISABLED with the reason
|
|
31937
|
+
* rather than hiding it, so a limitation is legible instead of looking
|
|
31938
|
+
* like a missing feature.
|
|
31939
|
+
*/
|
|
31940
|
+
var OnboardFieldSupportSchema = object({
|
|
31941
|
+
readable: boolean(),
|
|
31942
|
+
writable: boolean(),
|
|
31943
|
+
/** Required whenever `readable` or `writable` is false. */
|
|
31944
|
+
reason: string().optional()
|
|
31945
|
+
});
|
|
31946
|
+
/** What this camera's schedule model can express. */
|
|
31947
|
+
var OnboardScheduleSupportSchema = object({
|
|
31948
|
+
support: OnboardFieldSupportSchema,
|
|
31949
|
+
/**
|
|
31950
|
+
* The smallest time step the camera can express, in minutes.
|
|
31951
|
+
*
|
|
31952
|
+
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
31953
|
+
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
31954
|
+
* window whose edges are not a multiple of this is REFUSED rather than
|
|
31955
|
+
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
31956
|
+
* and nothing says so.
|
|
31957
|
+
*/
|
|
31958
|
+
granularityMinutes: number(),
|
|
31959
|
+
/** Triggers this camera can record on. A window naming another is refused. */
|
|
31960
|
+
triggers: array(RecordTriggerSchema),
|
|
31961
|
+
/**
|
|
31962
|
+
* False when the camera stores ONE trigger per time range, so two
|
|
31963
|
+
* windows overlapping on the same day cannot carry different triggers.
|
|
31964
|
+
* True on Reolink, whose mask is per-trigger and independent.
|
|
31965
|
+
*/
|
|
31966
|
+
supportsOverlappingTriggers: boolean()
|
|
31967
|
+
});
|
|
31968
|
+
var RecordingOnboardOptionsSchema = object({
|
|
31969
|
+
enabled: OnboardFieldSupportSchema,
|
|
31970
|
+
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
31971
|
+
preRecordSec: OnboardFieldSupportSchema,
|
|
31972
|
+
preRecordSecRange: RangeSchema.optional(),
|
|
31973
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31974
|
+
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
31975
|
+
postRecordSec: OnboardFieldSupportSchema,
|
|
31976
|
+
postRecordSecRange: RangeSchema.optional(),
|
|
31977
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31978
|
+
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
31979
|
+
segmentMinutes: OnboardFieldSupportSchema,
|
|
31980
|
+
segmentMinutesRange: RangeSchema.optional(),
|
|
31981
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
31982
|
+
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
31983
|
+
schedule: OnboardScheduleSupportSchema
|
|
31984
|
+
});
|
|
31985
|
+
/**
|
|
31986
|
+
* A partial change. Every field optional.
|
|
31987
|
+
*
|
|
31988
|
+
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
31989
|
+
* silently ignore a field it cannot support — it refuses, by name,
|
|
31990
|
+
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
31991
|
+
* is the failure D62 exists to prevent: the operator believes the camera
|
|
31992
|
+
* is recording the way the form says, and it is not.
|
|
31993
|
+
*/
|
|
31994
|
+
var RecordingOnboardPatchSchema = object({
|
|
31995
|
+
enabled: boolean().optional(),
|
|
31996
|
+
overwriteWhenFull: boolean().optional(),
|
|
31997
|
+
preRecordSec: number().optional(),
|
|
31998
|
+
postRecordSec: number().optional(),
|
|
31999
|
+
segmentMinutes: number().optional(),
|
|
32000
|
+
/** The complete new window set for the primary track — not a delta. */
|
|
32001
|
+
windows: array(RecordWindowSchema).optional()
|
|
32002
|
+
});
|
|
32003
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
32004
|
+
deviceId: number(),
|
|
32005
|
+
settings: RecordingOnboardPatchSchema
|
|
32006
|
+
}), _void(), {
|
|
32007
|
+
kind: "mutation",
|
|
32008
|
+
auth: "admin"
|
|
32009
|
+
});
|
|
32010
|
+
/**
|
|
31810
32011
|
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
31811
32012
|
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
31812
32013
|
* running, a gate open) and lowers when it stops.
|
|
@@ -37100,24 +37301,6 @@ Object.freeze({
|
|
|
37100
37301
|
addonId: null,
|
|
37101
37302
|
access: "view"
|
|
37102
37303
|
},
|
|
37103
|
-
"events.getEventClipUrl": {
|
|
37104
|
-
capName: "events",
|
|
37105
|
-
capScope: "device",
|
|
37106
|
-
addonId: null,
|
|
37107
|
-
access: "view"
|
|
37108
|
-
},
|
|
37109
|
-
"events.getEvents": {
|
|
37110
|
-
capName: "events",
|
|
37111
|
-
capScope: "device",
|
|
37112
|
-
addonId: null,
|
|
37113
|
-
access: "view"
|
|
37114
|
-
},
|
|
37115
|
-
"events.getEventThumbnail": {
|
|
37116
|
-
capName: "events",
|
|
37117
|
-
capScope: "device",
|
|
37118
|
-
addonId: null,
|
|
37119
|
-
access: "view"
|
|
37120
|
-
},
|
|
37121
37304
|
"faceGallery.assignFace": {
|
|
37122
37305
|
capName: "face-gallery",
|
|
37123
37306
|
capScope: "system",
|
|
@@ -39992,224 +40175,236 @@ Object.freeze({
|
|
|
39992
40175
|
addonId: null,
|
|
39993
40176
|
access: "create"
|
|
39994
40177
|
},
|
|
39995
|
-
"recording.
|
|
40178
|
+
"recording.getAvailability": {
|
|
39996
40179
|
capName: "recording",
|
|
39997
|
-
capScope: "
|
|
40180
|
+
capScope: "device",
|
|
39998
40181
|
addonId: null,
|
|
39999
|
-
access: "
|
|
40182
|
+
access: "view"
|
|
40000
40183
|
},
|
|
40001
|
-
"recording.
|
|
40184
|
+
"recording.getDaysWithRecordings": {
|
|
40002
40185
|
capName: "recording",
|
|
40003
|
-
capScope: "
|
|
40186
|
+
capScope: "device",
|
|
40004
40187
|
addonId: null,
|
|
40005
|
-
access: "
|
|
40188
|
+
access: "view"
|
|
40006
40189
|
},
|
|
40007
|
-
"recording.
|
|
40190
|
+
"recording.getPlayback": {
|
|
40008
40191
|
capName: "recording",
|
|
40009
|
-
capScope: "
|
|
40192
|
+
capScope: "device",
|
|
40010
40193
|
addonId: null,
|
|
40011
|
-
access: "
|
|
40194
|
+
access: "view"
|
|
40012
40195
|
},
|
|
40013
|
-
"recording.
|
|
40196
|
+
"recording.getPlaybackOptions": {
|
|
40014
40197
|
capName: "recording",
|
|
40015
|
-
capScope: "
|
|
40198
|
+
capScope: "device",
|
|
40016
40199
|
addonId: null,
|
|
40017
|
-
access: "
|
|
40200
|
+
access: "view"
|
|
40018
40201
|
},
|
|
40019
|
-
"recording.
|
|
40202
|
+
"recording.listSources": {
|
|
40020
40203
|
capName: "recording",
|
|
40021
|
-
capScope: "
|
|
40204
|
+
capScope: "device",
|
|
40022
40205
|
addonId: null,
|
|
40023
40206
|
access: "view"
|
|
40024
40207
|
},
|
|
40025
|
-
"
|
|
40026
|
-
capName: "recording",
|
|
40208
|
+
"recordingArchive.applyDeviceSettingsPatch": {
|
|
40209
|
+
capName: "recording-archive",
|
|
40027
40210
|
capScope: "system",
|
|
40028
40211
|
addonId: null,
|
|
40029
|
-
access: "
|
|
40212
|
+
access: "create"
|
|
40030
40213
|
},
|
|
40031
|
-
"
|
|
40032
|
-
capName: "recording",
|
|
40214
|
+
"recordingArchive.cancelRelocateJob": {
|
|
40215
|
+
capName: "recording-archive",
|
|
40033
40216
|
capScope: "system",
|
|
40034
40217
|
addonId: null,
|
|
40035
|
-
access: "
|
|
40218
|
+
access: "create"
|
|
40036
40219
|
},
|
|
40037
|
-
"
|
|
40038
|
-
capName: "recording",
|
|
40220
|
+
"recordingArchive.cancelStorageMigrationMove": {
|
|
40221
|
+
capName: "recording-archive",
|
|
40222
|
+
capScope: "system",
|
|
40223
|
+
addonId: null,
|
|
40224
|
+
access: "create"
|
|
40225
|
+
},
|
|
40226
|
+
"recordingArchive.deleteFootprint": {
|
|
40227
|
+
capName: "recording-archive",
|
|
40228
|
+
capScope: "system",
|
|
40229
|
+
addonId: null,
|
|
40230
|
+
access: "delete"
|
|
40231
|
+
},
|
|
40232
|
+
"recordingArchive.getAvailabilityBatch": {
|
|
40233
|
+
capName: "recording-archive",
|
|
40039
40234
|
capScope: "system",
|
|
40040
40235
|
addonId: null,
|
|
40041
40236
|
access: "view"
|
|
40042
40237
|
},
|
|
40043
|
-
"
|
|
40044
|
-
capName: "recording",
|
|
40238
|
+
"recordingArchive.getDaysWithRecordingsBatch": {
|
|
40239
|
+
capName: "recording-archive",
|
|
40045
40240
|
capScope: "system",
|
|
40046
40241
|
addonId: null,
|
|
40047
40242
|
access: "view"
|
|
40048
40243
|
},
|
|
40049
|
-
"
|
|
40050
|
-
capName: "recording",
|
|
40244
|
+
"recordingArchive.getDeviceConfig": {
|
|
40245
|
+
capName: "recording-archive",
|
|
40051
40246
|
capScope: "system",
|
|
40052
40247
|
addonId: null,
|
|
40053
40248
|
access: "view"
|
|
40054
40249
|
},
|
|
40055
|
-
"
|
|
40056
|
-
capName: "recording",
|
|
40250
|
+
"recordingArchive.getDeviceLiveContribution": {
|
|
40251
|
+
capName: "recording-archive",
|
|
40057
40252
|
capScope: "system",
|
|
40058
40253
|
addonId: null,
|
|
40059
40254
|
access: "view"
|
|
40060
40255
|
},
|
|
40061
|
-
"
|
|
40062
|
-
capName: "recording",
|
|
40256
|
+
"recordingArchive.getDeviceSettingsContribution": {
|
|
40257
|
+
capName: "recording-archive",
|
|
40063
40258
|
capScope: "system",
|
|
40064
40259
|
addonId: null,
|
|
40065
40260
|
access: "view"
|
|
40066
40261
|
},
|
|
40067
|
-
"
|
|
40068
|
-
capName: "recording",
|
|
40262
|
+
"recordingArchive.getPlacement": {
|
|
40263
|
+
capName: "recording-archive",
|
|
40069
40264
|
capScope: "system",
|
|
40070
40265
|
addonId: null,
|
|
40071
40266
|
access: "view"
|
|
40072
40267
|
},
|
|
40073
|
-
"
|
|
40074
|
-
capName: "recording",
|
|
40268
|
+
"recordingArchive.getRelocateResidue": {
|
|
40269
|
+
capName: "recording-archive",
|
|
40075
40270
|
capScope: "system",
|
|
40076
40271
|
addonId: null,
|
|
40077
40272
|
access: "view"
|
|
40078
40273
|
},
|
|
40079
|
-
"
|
|
40080
|
-
capName: "recording",
|
|
40274
|
+
"recordingArchive.getStatus": {
|
|
40275
|
+
capName: "recording-archive",
|
|
40081
40276
|
capScope: "system",
|
|
40082
40277
|
addonId: null,
|
|
40083
40278
|
access: "view"
|
|
40084
40279
|
},
|
|
40085
|
-
"
|
|
40086
|
-
capName: "recording",
|
|
40280
|
+
"recordingArchive.getStorageMigrationMoveStatus": {
|
|
40281
|
+
capName: "recording-archive",
|
|
40087
40282
|
capScope: "system",
|
|
40088
40283
|
addonId: null,
|
|
40089
40284
|
access: "view"
|
|
40090
40285
|
},
|
|
40091
|
-
"
|
|
40092
|
-
capName: "recording",
|
|
40286
|
+
"recordingArchive.getStorageUsage": {
|
|
40287
|
+
capName: "recording-archive",
|
|
40093
40288
|
capScope: "system",
|
|
40094
40289
|
addonId: null,
|
|
40095
40290
|
access: "view"
|
|
40096
40291
|
},
|
|
40097
|
-
"
|
|
40098
|
-
capName: "recording",
|
|
40292
|
+
"recordingArchive.listOpsLog": {
|
|
40293
|
+
capName: "recording-archive",
|
|
40099
40294
|
capScope: "system",
|
|
40100
40295
|
addonId: null,
|
|
40101
40296
|
access: "view"
|
|
40102
40297
|
},
|
|
40103
|
-
"
|
|
40104
|
-
capName: "recording",
|
|
40298
|
+
"recordingArchive.listRelocateJobs": {
|
|
40299
|
+
capName: "recording-archive",
|
|
40105
40300
|
capScope: "system",
|
|
40106
40301
|
addonId: null,
|
|
40107
40302
|
access: "view"
|
|
40108
40303
|
},
|
|
40109
|
-
"
|
|
40110
|
-
capName: "recording",
|
|
40304
|
+
"recordingArchive.locateSegment": {
|
|
40305
|
+
capName: "recording-archive",
|
|
40111
40306
|
capScope: "system",
|
|
40112
40307
|
addonId: null,
|
|
40113
40308
|
access: "view"
|
|
40114
40309
|
},
|
|
40115
|
-
"
|
|
40116
|
-
capName: "recording",
|
|
40310
|
+
"recordingArchive.pauseForStorageMigration": {
|
|
40311
|
+
capName: "recording-archive",
|
|
40117
40312
|
capScope: "system",
|
|
40118
40313
|
addonId: null,
|
|
40119
40314
|
access: "create"
|
|
40120
40315
|
},
|
|
40121
|
-
"
|
|
40122
|
-
capName: "recording",
|
|
40316
|
+
"recordingArchive.planStorageRebalance": {
|
|
40317
|
+
capName: "recording-archive",
|
|
40123
40318
|
capScope: "system",
|
|
40124
40319
|
addonId: null,
|
|
40125
40320
|
access: "view"
|
|
40126
40321
|
},
|
|
40127
|
-
"
|
|
40128
|
-
capName: "recording",
|
|
40322
|
+
"recordingArchive.pruneFootage": {
|
|
40323
|
+
capName: "recording-archive",
|
|
40129
40324
|
capScope: "system",
|
|
40130
40325
|
addonId: null,
|
|
40131
40326
|
access: "create"
|
|
40132
40327
|
},
|
|
40133
|
-
"
|
|
40134
|
-
capName: "recording",
|
|
40328
|
+
"recordingArchive.readGopBytes": {
|
|
40329
|
+
capName: "recording-archive",
|
|
40135
40330
|
capScope: "system",
|
|
40136
40331
|
addonId: null,
|
|
40137
40332
|
access: "view"
|
|
40138
40333
|
},
|
|
40139
|
-
"
|
|
40140
|
-
capName: "recording",
|
|
40334
|
+
"recordingArchive.readSegmentBytes": {
|
|
40335
|
+
capName: "recording-archive",
|
|
40141
40336
|
capScope: "system",
|
|
40142
40337
|
addonId: null,
|
|
40143
40338
|
access: "view"
|
|
40144
40339
|
},
|
|
40145
|
-
"
|
|
40146
|
-
capName: "recording",
|
|
40340
|
+
"recordingArchive.readWindowBytes": {
|
|
40341
|
+
capName: "recording-archive",
|
|
40147
40342
|
capScope: "system",
|
|
40148
40343
|
addonId: null,
|
|
40149
40344
|
access: "view"
|
|
40150
40345
|
},
|
|
40151
|
-
"
|
|
40152
|
-
capName: "recording",
|
|
40346
|
+
"recordingArchive.reconcileLedgerAgainstDisk": {
|
|
40347
|
+
capName: "recording-archive",
|
|
40153
40348
|
capScope: "system",
|
|
40154
40349
|
addonId: null,
|
|
40155
40350
|
access: "create"
|
|
40156
40351
|
},
|
|
40157
|
-
"
|
|
40158
|
-
capName: "recording",
|
|
40352
|
+
"recordingArchive.refreshStorageLocationsForMigration": {
|
|
40353
|
+
capName: "recording-archive",
|
|
40159
40354
|
capScope: "system",
|
|
40160
40355
|
addonId: null,
|
|
40161
40356
|
access: "create"
|
|
40162
40357
|
},
|
|
40163
|
-
"
|
|
40164
|
-
capName: "recording",
|
|
40358
|
+
"recordingArchive.relocateFootage": {
|
|
40359
|
+
capName: "recording-archive",
|
|
40165
40360
|
capScope: "system",
|
|
40166
40361
|
addonId: null,
|
|
40167
40362
|
access: "create"
|
|
40168
40363
|
},
|
|
40169
|
-
"
|
|
40170
|
-
capName: "recording",
|
|
40364
|
+
"recordingArchive.renderClip": {
|
|
40365
|
+
capName: "recording-archive",
|
|
40171
40366
|
capScope: "system",
|
|
40172
40367
|
addonId: null,
|
|
40173
40368
|
access: "create"
|
|
40174
40369
|
},
|
|
40175
|
-
"
|
|
40176
|
-
capName: "recording",
|
|
40370
|
+
"recordingArchive.renderGif": {
|
|
40371
|
+
capName: "recording-archive",
|
|
40177
40372
|
capScope: "system",
|
|
40178
40373
|
addonId: null,
|
|
40179
40374
|
access: "create"
|
|
40180
40375
|
},
|
|
40181
|
-
"
|
|
40182
|
-
capName: "recording",
|
|
40376
|
+
"recordingArchive.rescanStorage": {
|
|
40377
|
+
capName: "recording-archive",
|
|
40183
40378
|
capScope: "system",
|
|
40184
40379
|
addonId: null,
|
|
40185
40380
|
access: "create"
|
|
40186
40381
|
},
|
|
40187
|
-
"
|
|
40188
|
-
capName: "recording",
|
|
40382
|
+
"recordingArchive.resumeForStorageMigration": {
|
|
40383
|
+
capName: "recording-archive",
|
|
40189
40384
|
capScope: "system",
|
|
40190
40385
|
addonId: null,
|
|
40191
40386
|
access: "create"
|
|
40192
40387
|
},
|
|
40193
|
-
"
|
|
40194
|
-
capName: "recording",
|
|
40388
|
+
"recordingArchive.setDeviceConfig": {
|
|
40389
|
+
capName: "recording-archive",
|
|
40195
40390
|
capScope: "system",
|
|
40196
40391
|
addonId: null,
|
|
40197
40392
|
access: "create"
|
|
40198
40393
|
},
|
|
40199
|
-
"
|
|
40200
|
-
capName: "recording",
|
|
40394
|
+
"recordingArchive.setDevicePlacement": {
|
|
40395
|
+
capName: "recording-archive",
|
|
40201
40396
|
capScope: "system",
|
|
40202
40397
|
addonId: null,
|
|
40203
40398
|
access: "create"
|
|
40204
40399
|
},
|
|
40205
|
-
"
|
|
40206
|
-
capName: "recording",
|
|
40400
|
+
"recordingArchive.startStorageMigrationMove": {
|
|
40401
|
+
capName: "recording-archive",
|
|
40207
40402
|
capScope: "system",
|
|
40208
40403
|
addonId: null,
|
|
40209
40404
|
access: "create"
|
|
40210
40405
|
},
|
|
40211
|
-
"
|
|
40212
|
-
capName: "recording",
|
|
40406
|
+
"recordingArchive.startStorageRebalance": {
|
|
40407
|
+
capName: "recording-archive",
|
|
40213
40408
|
capScope: "system",
|
|
40214
40409
|
addonId: null,
|
|
40215
40410
|
access: "create"
|
|
@@ -42514,21 +42709,6 @@ Object.freeze({
|
|
|
42514
42709
|
form: "single",
|
|
42515
42710
|
optional: false
|
|
42516
42711
|
}],
|
|
42517
|
-
"events.getEventClipUrl": [{
|
|
42518
|
-
name: "deviceId",
|
|
42519
|
-
form: "single",
|
|
42520
|
-
optional: false
|
|
42521
|
-
}],
|
|
42522
|
-
"events.getEvents": [{
|
|
42523
|
-
name: "deviceId",
|
|
42524
|
-
form: "single",
|
|
42525
|
-
optional: false
|
|
42526
|
-
}],
|
|
42527
|
-
"events.getEventThumbnail": [{
|
|
42528
|
-
name: "deviceId",
|
|
42529
|
-
form: "single",
|
|
42530
|
-
optional: false
|
|
42531
|
-
}],
|
|
42532
42712
|
"faceGallery.getFaceByTrack": [{
|
|
42533
42713
|
name: "deviceId",
|
|
42534
42714
|
form: "single",
|
|
@@ -43447,107 +43627,117 @@ Object.freeze({
|
|
|
43447
43627
|
form: "single",
|
|
43448
43628
|
optional: false
|
|
43449
43629
|
}],
|
|
43450
|
-
"recording.
|
|
43630
|
+
"recording.getAvailability": [{
|
|
43451
43631
|
name: "deviceId",
|
|
43452
43632
|
form: "single",
|
|
43453
43633
|
optional: false
|
|
43454
43634
|
}],
|
|
43455
|
-
"recording.
|
|
43635
|
+
"recording.getDaysWithRecordings": [{
|
|
43456
43636
|
name: "deviceId",
|
|
43457
43637
|
form: "single",
|
|
43458
43638
|
optional: false
|
|
43459
43639
|
}],
|
|
43460
|
-
"recording.
|
|
43461
|
-
name: "
|
|
43462
|
-
form: "
|
|
43640
|
+
"recording.getPlayback": [{
|
|
43641
|
+
name: "deviceId",
|
|
43642
|
+
form: "single",
|
|
43463
43643
|
optional: false
|
|
43464
43644
|
}],
|
|
43465
|
-
"recording.
|
|
43645
|
+
"recording.getPlaybackOptions": [{
|
|
43466
43646
|
name: "deviceId",
|
|
43467
43647
|
form: "single",
|
|
43468
43648
|
optional: false
|
|
43469
43649
|
}],
|
|
43470
|
-
"recording.
|
|
43471
|
-
name: "
|
|
43472
|
-
form: "
|
|
43650
|
+
"recording.listSources": [{
|
|
43651
|
+
name: "deviceId",
|
|
43652
|
+
form: "single",
|
|
43473
43653
|
optional: false
|
|
43474
43654
|
}],
|
|
43475
|
-
"
|
|
43655
|
+
"recordingArchive.deleteFootprint": [{
|
|
43476
43656
|
name: "deviceId",
|
|
43477
43657
|
form: "single",
|
|
43478
43658
|
optional: false
|
|
43479
43659
|
}],
|
|
43480
|
-
"
|
|
43660
|
+
"recordingArchive.getAvailabilityBatch": [{
|
|
43661
|
+
name: "deviceIds",
|
|
43662
|
+
form: "array",
|
|
43663
|
+
optional: false
|
|
43664
|
+
}],
|
|
43665
|
+
"recordingArchive.getDaysWithRecordingsBatch": [{
|
|
43666
|
+
name: "deviceIds",
|
|
43667
|
+
form: "array",
|
|
43668
|
+
optional: false
|
|
43669
|
+
}],
|
|
43670
|
+
"recordingArchive.getDeviceConfig": [{
|
|
43481
43671
|
name: "deviceId",
|
|
43482
43672
|
form: "single",
|
|
43483
43673
|
optional: false
|
|
43484
43674
|
}],
|
|
43485
|
-
"
|
|
43675
|
+
"recordingArchive.listOpsLog": [{
|
|
43486
43676
|
name: "deviceId",
|
|
43487
43677
|
form: "single",
|
|
43488
43678
|
optional: true
|
|
43489
43679
|
}],
|
|
43490
|
-
"
|
|
43680
|
+
"recordingArchive.locateSegment": [{
|
|
43491
43681
|
name: "deviceId",
|
|
43492
43682
|
form: "single",
|
|
43493
43683
|
optional: false
|
|
43494
43684
|
}],
|
|
43495
|
-
"
|
|
43685
|
+
"recordingArchive.pruneFootage": [{
|
|
43496
43686
|
name: "deviceId",
|
|
43497
43687
|
form: "single",
|
|
43498
43688
|
optional: false
|
|
43499
43689
|
}],
|
|
43500
|
-
"
|
|
43690
|
+
"recordingArchive.readGopBytes": [{
|
|
43501
43691
|
name: "deviceId",
|
|
43502
43692
|
form: "single",
|
|
43503
43693
|
optional: false
|
|
43504
43694
|
}],
|
|
43505
|
-
"
|
|
43695
|
+
"recordingArchive.readSegmentBytes": [{
|
|
43506
43696
|
name: "deviceId",
|
|
43507
43697
|
form: "single",
|
|
43508
43698
|
optional: false
|
|
43509
43699
|
}],
|
|
43510
|
-
"
|
|
43700
|
+
"recordingArchive.readWindowBytes": [{
|
|
43511
43701
|
name: "deviceId",
|
|
43512
43702
|
form: "single",
|
|
43513
43703
|
optional: false
|
|
43514
43704
|
}],
|
|
43515
|
-
"
|
|
43705
|
+
"recordingArchive.reconcileLedgerAgainstDisk": [{
|
|
43516
43706
|
name: "deviceId",
|
|
43517
43707
|
form: "single",
|
|
43518
43708
|
optional: true
|
|
43519
43709
|
}],
|
|
43520
|
-
"
|
|
43710
|
+
"recordingArchive.relocateFootage": [{
|
|
43521
43711
|
name: "deviceId",
|
|
43522
43712
|
form: "single",
|
|
43523
43713
|
optional: true
|
|
43524
43714
|
}],
|
|
43525
|
-
"
|
|
43715
|
+
"recordingArchive.renderClip": [{
|
|
43526
43716
|
name: "deviceId",
|
|
43527
43717
|
form: "single",
|
|
43528
43718
|
optional: false
|
|
43529
43719
|
}],
|
|
43530
|
-
"
|
|
43720
|
+
"recordingArchive.renderGif": [{
|
|
43531
43721
|
name: "deviceId",
|
|
43532
43722
|
form: "single",
|
|
43533
43723
|
optional: false
|
|
43534
43724
|
}],
|
|
43535
|
-
"
|
|
43725
|
+
"recordingArchive.rescanStorage": [{
|
|
43536
43726
|
name: "deviceId",
|
|
43537
43727
|
form: "single",
|
|
43538
43728
|
optional: false
|
|
43539
43729
|
}],
|
|
43540
|
-
"
|
|
43730
|
+
"recordingArchive.setDeviceConfig": [{
|
|
43541
43731
|
name: "deviceId",
|
|
43542
43732
|
form: "single",
|
|
43543
43733
|
optional: false
|
|
43544
43734
|
}],
|
|
43545
|
-
"
|
|
43735
|
+
"recordingArchive.setDevicePlacement": [{
|
|
43546
43736
|
name: "deviceId",
|
|
43547
43737
|
form: "single",
|
|
43548
43738
|
optional: false
|
|
43549
43739
|
}],
|
|
43550
|
-
"
|
|
43740
|
+
"recordingArchive.startStorageMigrationMove": [{
|
|
43551
43741
|
name: "deviceId",
|
|
43552
43742
|
form: "single",
|
|
43553
43743
|
optional: true
|