@camstack/addon-pipeline 1.2.287 → 1.2.290
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/audio-analyzer/index.js +2 -2
- package/dist/audio-analyzer/index.mjs +2 -2
- package/dist/{default-detection-model-GPkHN13Q.mjs → default-detection-model-B64MIW2h.mjs} +1 -1
- package/dist/{default-detection-model-COWU8Rz0.js → default-detection-model-CN_Iu8NF.js} +1 -1
- package/dist/detection-pipeline/index.js +4 -4
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-DiLFfaYv.js → dist-BIlnUdBn.js} +1456 -833
- package/dist/{dist-B0wh1O_e.mjs → dist-C4JqXCw-.mjs} +1427 -834
- package/dist/motion-wasm/index.js +1 -1
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-UjSfDx5h.mjs → node-C-WfKJ6b.mjs} +1 -1
- package/dist/{node-Beq3CXsJ.js → node-CVlJhqng.js} +1 -1
- package/dist/pipeline-runner/index.js +3 -3
- package/dist/pipeline-runner/index.mjs +3 -3
- package/dist/{process-memory-CU-Vka6-.mjs → process-memory-CJKKFNar.mjs} +1 -1
- package/dist/{process-memory-hlScqZ3l.js → process-memory-ZUucMC8Z.js} +1 -1
- package/dist/recorder/index.js +3960 -3666
- package/dist/recorder/index.mjs +3960 -3666
- package/dist/{segment-demux-js-CbeSistI.mjs → segment-demux-js-4OAHyQ3t.mjs} +1 -1
- package/dist/{segment-demux-js-Cd4K5AFm.js → segment-demux-js-D0mqN4RC.js} +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BN28nLCx.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-r5TULO-I.mjs} +2 -2
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D7VLO8g1.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-UqRrHdtw.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-2Mi5oqGe.mjs → hostInit-DPdwl8-T.mjs} +2 -2
- package/dist/stream-broker/index.js +446 -90
- package/dist/stream-broker/index.mjs +446 -90
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/package.json +5 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DVp8RDes.mjs +0 -26
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-6yZguAUw.mjs +0 -26
|
@@ -5360,7 +5360,7 @@ var ZodIssueCode = {
|
|
|
5360
5360
|
var ZodFirstPartyTypeKind;
|
|
5361
5361
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5362
5362
|
//#endregion
|
|
5363
|
-
//#region ../types/dist/sleep-
|
|
5363
|
+
//#region ../types/dist/sleep-PEo0-Fz9.mjs
|
|
5364
5364
|
/**
|
|
5365
5365
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5366
5366
|
* window to float samples (D455).
|
|
@@ -6544,6 +6544,24 @@ function normalizeAddonInitResult(result) {
|
|
|
6544
6544
|
if (Array.isArray(result)) return { providers: result };
|
|
6545
6545
|
return result;
|
|
6546
6546
|
}
|
|
6547
|
+
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
6548
|
+
var PeerBytesTicketSchema = object({
|
|
6549
|
+
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
6550
|
+
url: string().min(1),
|
|
6551
|
+
/**
|
|
6552
|
+
* The HOST node this URL means something on — the hub or a named agent,
|
|
6553
|
+
* never a runner. {@link AddonPeerBytes.open} compares it to its own and
|
|
6554
|
+
* refuses `cross-node` by name when they differ, without dialling.
|
|
6555
|
+
*/
|
|
6556
|
+
hostNodeId: string().min(1),
|
|
6557
|
+
expiresAtMs: number().int().nonnegative(),
|
|
6558
|
+
/**
|
|
6559
|
+
* What the producer DECLARED the body to be, when it knows — `null` when it
|
|
6560
|
+
* does not. Never `0` for unknown (D393): a consumer sizing a bound off this
|
|
6561
|
+
* must be able to tell "the producer did not say" from "the body is empty".
|
|
6562
|
+
*/
|
|
6563
|
+
declaredBytes: number().int().nonnegative().nullable()
|
|
6564
|
+
});
|
|
6547
6565
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
6548
6566
|
var CamProfileSchema = _enum([
|
|
6549
6567
|
"high",
|
|
@@ -8851,7 +8869,7 @@ var AdoptionJobSchema = object({
|
|
|
8851
8869
|
* component's original options — detection to the detection-pipeline wrapper
|
|
8852
8870
|
* binding, audio analysis to its own, recording to `RecordingConfig.enabled`
|
|
8853
8871
|
* (which was always first-class; the switch was a veneer over
|
|
8854
|
-
* `
|
|
8872
|
+
* `recordingArchive.setDeviceConfig`), notifications to a notification-center
|
|
8855
8873
|
* per-device setting, the two camera planes to their own components.
|
|
8856
8874
|
*
|
|
8857
8875
|
* What survives is {@link composeSwitchedOff}: `CameraStatus.switchedOff`, the
|
|
@@ -8877,7 +8895,7 @@ var AdoptionJobSchema = object({
|
|
|
8877
8895
|
* | `stream-broker` | `deviceManager.setDisabled` | `StreamBrokerManager.reconcileAllCatalogs` releases the brokers; `ensureBroker` refuses re-creation |
|
|
8878
8896
|
* | `object-detection` | `deviceManager.setWrapperActive('detection-pipeline')` | `PipelineSettingsStore.resolvePipelineForDevice` returns `{ steps: [], audio: null }` |
|
|
8879
8897
|
* | `audio-analysis` | `deviceManager.setWrapperActive('audio-analysis')` | `AudioSubscriptionController.subscribeAudioStream` returns `null` before opening the stream |
|
|
8880
|
-
* | `recording` | `
|
|
8898
|
+
* | `recording` | `recordingArchive.setDeviceConfig` → `RecordingConfig.enabled` | `band-decision.shouldRecord` returns false; the controller detaches the device |
|
|
8881
8899
|
* | `notifications` | `notificationRules.setDeviceMuted` | `NotificationCenter.evaluateAndEnqueue` returns before any rule is evaluated |
|
|
8882
8900
|
* | `privacy-mask` | `privacyMask.setMask({ enabled })` → the CAMERA | the camera blanks the masked regions itself; every stream and recording carries the black boxes |
|
|
8883
8901
|
* | `device-audio` | `privacyMask.setAudioEnabled` → the CAMERA | the camera stops encoding an audio track at all; every consumer sees silent video |
|
|
@@ -13592,58 +13610,6 @@ method(ListInputSchema, array(BrokerInfoSchema$1)), method(GetInputSchema, Broke
|
|
|
13592
13610
|
auth: "admin"
|
|
13593
13611
|
}), method(GetStateInputSchema, unknown().nullable()), method(_void(), RegistryStatusSchema);
|
|
13594
13612
|
DeviceType.Camera;
|
|
13595
|
-
/**
|
|
13596
|
-
* The signals a device can emit to WAKE its own stream.
|
|
13597
|
-
*
|
|
13598
|
-
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
13599
|
-
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
13600
|
-
* puller holds a session open for ever, and treating that as demand would keep
|
|
13601
|
-
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
13602
|
-
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
13603
|
-
* itself, with no stream running.
|
|
13604
|
-
*
|
|
13605
|
-
* ## The vocabulary is the PROVIDER'S, not ours
|
|
13606
|
-
*
|
|
13607
|
-
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
13608
|
-
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
13609
|
-
* Reolink offers motion and camera-native detection; another provider may offer
|
|
13610
|
-
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
13611
|
-
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
13612
|
-
*
|
|
13613
|
-
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
13614
|
-
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
13615
|
-
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
13616
|
-
* binding — but both answer "what drives the detection pipeline", which is a
|
|
13617
|
-
* different question from "what may wake a sleeping stream". A camera can do
|
|
13618
|
-
* the first and not be trusted with the second, and the operator picks per
|
|
13619
|
-
* camera. Two questions, two authorities.
|
|
13620
|
-
*
|
|
13621
|
-
* ## Availability is not permission
|
|
13622
|
-
*
|
|
13623
|
-
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
13624
|
-
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
13625
|
-
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
13626
|
-
* provider declaring a signal is not a provider enabling it.
|
|
13627
|
-
*/
|
|
13628
|
-
/** One signal a device can emit. */
|
|
13629
|
-
var StreamSignalSchema = object({
|
|
13630
|
-
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
13631
|
-
code: string().min(1),
|
|
13632
|
-
/** What an operator reads in the picker. The provider's own wording. */
|
|
13633
|
-
label: string().min(1),
|
|
13634
|
-
/**
|
|
13635
|
-
* Whether the provider recommends this signal ON when a camera is first set
|
|
13636
|
-
* up. A provider knows which of its signals are cheap and reliable; an
|
|
13637
|
-
* operator should not have to discover that by trial. Reolink recommends
|
|
13638
|
-
* both of its own.
|
|
13639
|
-
*/
|
|
13640
|
-
recommended: boolean()
|
|
13641
|
-
});
|
|
13642
|
-
object({
|
|
13643
|
-
signals: array(StreamSignalSchema),
|
|
13644
|
-
lastFetchedAt: number()
|
|
13645
|
-
});
|
|
13646
|
-
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
13647
13613
|
/** Stream delivery format. (Relocated from the retired `streaming-engine` cap.) */
|
|
13648
13614
|
var StreamFormatSchema = _enum([
|
|
13649
13615
|
"webrtc",
|
|
@@ -15392,6 +15358,97 @@ var detectionPipelineCapability = {
|
|
|
15392
15358
|
methods: {}
|
|
15393
15359
|
};
|
|
15394
15360
|
/**
|
|
15361
|
+
* device-admin-link — "this device has a management page of its own, and here
|
|
15362
|
+
* is its address".
|
|
15363
|
+
*
|
|
15364
|
+
* ## Why this is not a `deviceConfig` cap
|
|
15365
|
+
*
|
|
15366
|
+
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
15367
|
+
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
15368
|
+
* patch back through a setter; it costs a `builderId` reducer in
|
|
15369
|
+
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
15370
|
+
* renders a form section. This cap answers ONE question with ONE read and
|
|
15371
|
+
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
15372
|
+
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
15373
|
+
* `reboot`, the other pure-RPC device-native cap.
|
|
15374
|
+
*
|
|
15375
|
+
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
15376
|
+
*
|
|
15377
|
+
* The two are answered at DIFFERENT layers, on purpose:
|
|
15378
|
+
*
|
|
15379
|
+
* - **"We cannot say"** → the provider never registers the cap for that
|
|
15380
|
+
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
15381
|
+
* fan are reached only through a vendor cloud; there is no address to hand
|
|
15382
|
+
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
15383
|
+
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
15384
|
+
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
15385
|
+
* lists the cap and no surface asks.
|
|
15386
|
+
* - **"This device has no page, and I know that"** → the provider registers
|
|
15387
|
+
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
15388
|
+
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
15389
|
+
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
15390
|
+
* transport, a Home Assistant broker authenticated by supervisor token
|
|
15391
|
+
* (which carries no `baseUrl` at all).
|
|
15392
|
+
*
|
|
15393
|
+
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
15394
|
+
* button, and D62 is the same rule from the other side: an off switch is
|
|
15395
|
+
* reported off, never made to look broken. There is no third state where the
|
|
15396
|
+
* UI renders a disabled button "because the device might have a page".
|
|
15397
|
+
*
|
|
15398
|
+
* ## The URL never carries credentials
|
|
15399
|
+
*
|
|
15400
|
+
* Not in userinfo, not in a query string. Every provider builds through
|
|
15401
|
+
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
15402
|
+
* scheme and path as separate arguments — there is no parameter a secret could
|
|
15403
|
+
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
15404
|
+
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
15405
|
+
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
15406
|
+
* keeps providers from hand-rolling one anyway.
|
|
15407
|
+
*
|
|
15408
|
+
* This matters here more than anywhere else in the repo, because every provider
|
|
15409
|
+
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
15410
|
+
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
15411
|
+
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
15412
|
+
* camera's own page will ask for its own login. That is correct, and pre-
|
|
15413
|
+
* filling it is the operator's business, not ours.
|
|
15414
|
+
*
|
|
15415
|
+
* ## It is a LAN fact
|
|
15416
|
+
*
|
|
15417
|
+
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
15418
|
+
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
15419
|
+
* as a link the operator's own browser follows, on the operator's own network,
|
|
15420
|
+
* or renders nothing.
|
|
15421
|
+
*/
|
|
15422
|
+
/**
|
|
15423
|
+
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
15424
|
+
* before clicking whether he is about to land on a camera's own web server or
|
|
15425
|
+
* inside Home Assistant.
|
|
15426
|
+
*/
|
|
15427
|
+
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
15428
|
+
var DeviceAdminLinkSchema = object({
|
|
15429
|
+
/**
|
|
15430
|
+
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
15431
|
+
* free of userinfo and of any credential-shaped query key.
|
|
15432
|
+
*/
|
|
15433
|
+
url: string(),
|
|
15434
|
+
/**
|
|
15435
|
+
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
15436
|
+
* The PROVIDER names it, because only the provider knows what the page is;
|
|
15437
|
+
* a UI that invented the label from the addon id would call the Home
|
|
15438
|
+
* Assistant device page "Provider Homeassistant".
|
|
15439
|
+
*/
|
|
15440
|
+
label: string(),
|
|
15441
|
+
target: AdminLinkTargetEnum,
|
|
15442
|
+
/**
|
|
15443
|
+
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
15444
|
+
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
15445
|
+
* with `url` by construction; carried separately so no surface has to parse
|
|
15446
|
+
* a URL to show it.
|
|
15447
|
+
*/
|
|
15448
|
+
host: string()
|
|
15449
|
+
});
|
|
15450
|
+
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
15451
|
+
/**
|
|
15395
15452
|
* Identity envelope for a device's upstream-system metadata.
|
|
15396
15453
|
*
|
|
15397
15454
|
* Two jobs:
|
|
@@ -15719,97 +15776,6 @@ method(object({ integrationId: string() }), object({ filters: array(AdoptionFilt
|
|
|
15719
15776
|
auth: "admin"
|
|
15720
15777
|
});
|
|
15721
15778
|
/**
|
|
15722
|
-
* device-admin-link — "this device has a management page of its own, and here
|
|
15723
|
-
* is its address".
|
|
15724
|
-
*
|
|
15725
|
-
* ## Why this is not a `deviceConfig` cap
|
|
15726
|
-
*
|
|
15727
|
-
* There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
|
|
15728
|
-
* can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
|
|
15729
|
-
* patch back through a setter; it costs a `builderId` reducer in
|
|
15730
|
-
* `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
|
|
15731
|
-
* renders a form section. This cap answers ONE question with ONE read and
|
|
15732
|
-
* renders a button. Nothing about it is a form, so it carries no `deviceConfig`
|
|
15733
|
-
* block, no `settings`, no `runtimeState` and no reducer — exactly like
|
|
15734
|
-
* `reboot`, the other pure-RPC device-native cap.
|
|
15735
|
-
*
|
|
15736
|
-
* ## Absent, and the difference between "no page" and "we cannot say"
|
|
15737
|
-
*
|
|
15738
|
-
* The two are answered at DIFFERENT layers, on purpose:
|
|
15739
|
-
*
|
|
15740
|
-
* - **"We cannot say"** → the provider never registers the cap for that
|
|
15741
|
-
* device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
|
|
15742
|
-
* fan are reached only through a vendor cloud; there is no address to hand
|
|
15743
|
-
* out and no page to open. A Tuya plug, a Wyze camera and a Gree air
|
|
15744
|
-
* conditioner DO have a LAN IP, and still have no HTTP management page
|
|
15745
|
-
* behind it. None of them register, so `deviceManager.getBindings` never
|
|
15746
|
-
* lists the cap and no surface asks.
|
|
15747
|
-
* - **"This device has no page, and I know that"** → the provider registers
|
|
15748
|
-
* and `getAdminLink` returns `null`. This is the answer for a device whose
|
|
15749
|
-
* sibling DOES have a page: a Reolink battery camera reached over UDP by
|
|
15750
|
-
* `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
|
|
15751
|
-
* transport, a Home Assistant broker authenticated by supervisor token
|
|
15752
|
-
* (which carries no `baseUrl` at all).
|
|
15753
|
-
*
|
|
15754
|
-
* Both draw NOTHING. A button that opens a browser error is worse than no
|
|
15755
|
-
* button, and D62 is the same rule from the other side: an off switch is
|
|
15756
|
-
* reported off, never made to look broken. There is no third state where the
|
|
15757
|
-
* UI renders a disabled button "because the device might have a page".
|
|
15758
|
-
*
|
|
15759
|
-
* ## The URL never carries credentials
|
|
15760
|
-
*
|
|
15761
|
-
* Not in userinfo, not in a query string. Every provider builds through
|
|
15762
|
-
* `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
|
|
15763
|
-
* scheme and path as separate arguments — there is no parameter a secret could
|
|
15764
|
-
* arrive in — and re-checks its own output for the `scheme://user:pass@` shape
|
|
15765
|
-
* that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
|
|
15766
|
-
* output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
|
|
15767
|
-
* keeps providers from hand-rolling one anyway.
|
|
15768
|
-
*
|
|
15769
|
-
* This matters here more than anywhere else in the repo, because every provider
|
|
15770
|
-
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
15771
|
-
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
15772
|
-
* and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
|
|
15773
|
-
* camera's own page will ask for its own login. That is correct, and pre-
|
|
15774
|
-
* filling it is the operator's business, not ours.
|
|
15775
|
-
*
|
|
15776
|
-
* ## It is a LAN fact
|
|
15777
|
-
*
|
|
15778
|
-
* The URL addresses the device where the NODE can see it. It is not proxied,
|
|
15779
|
-
* not made reachable from outside, and not sent anywhere. A surface renders it
|
|
15780
|
-
* as a link the operator's own browser follows, on the operator's own network,
|
|
15781
|
-
* or renders nothing.
|
|
15782
|
-
*/
|
|
15783
|
-
/**
|
|
15784
|
-
* Whose page is it. The distinction is for the OPERATOR, who needs to know
|
|
15785
|
-
* before clicking whether he is about to land on a camera's own web server or
|
|
15786
|
-
* inside Home Assistant.
|
|
15787
|
-
*/
|
|
15788
|
-
var AdminLinkTargetEnum = _enum(["device", "integration"]);
|
|
15789
|
-
var DeviceAdminLinkSchema = object({
|
|
15790
|
-
/**
|
|
15791
|
-
* Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
|
|
15792
|
-
* free of userinfo and of any credential-shaped query key.
|
|
15793
|
-
*/
|
|
15794
|
-
url: string(),
|
|
15795
|
-
/**
|
|
15796
|
-
* What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
|
|
15797
|
-
* The PROVIDER names it, because only the provider knows what the page is;
|
|
15798
|
-
* a UI that invented the label from the addon id would call the Home
|
|
15799
|
-
* Assistant device page "Provider Homeassistant".
|
|
15800
|
-
*/
|
|
15801
|
-
label: string(),
|
|
15802
|
-
target: AdminLinkTargetEnum,
|
|
15803
|
-
/**
|
|
15804
|
-
* Host the URL points at, without scheme, port or path — for the tooltip, so
|
|
15805
|
-
* an operator can see WHERE the button goes before he follows it. Redundant
|
|
15806
|
-
* with `url` by construction; carried separately so no surface has to parse
|
|
15807
|
-
* a URL to show it.
|
|
15808
|
-
*/
|
|
15809
|
-
host: string()
|
|
15810
|
-
});
|
|
15811
|
-
method(object({ deviceId: number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
15812
|
-
/**
|
|
15813
15779
|
* `device-export` — collection cap for addons that export camstack
|
|
15814
15780
|
* devices to external ecosystems (HomeAssistant via MQTT discovery,
|
|
15815
15781
|
* HomeKit/HAP, Alexa Smart Home, …).
|
|
@@ -26744,6 +26710,58 @@ method(_void(), ProviderInfoSchema, { auth: "admin" }), method(object({ config:
|
|
|
26744
26710
|
kind: "mutation",
|
|
26745
26711
|
auth: "admin"
|
|
26746
26712
|
});
|
|
26713
|
+
/**
|
|
26714
|
+
* The signals a device can emit to WAKE its own stream.
|
|
26715
|
+
*
|
|
26716
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
26717
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
26718
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
26719
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
26720
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
26721
|
+
* itself, with no stream running.
|
|
26722
|
+
*
|
|
26723
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
26724
|
+
*
|
|
26725
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
26726
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
26727
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
26728
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
26729
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
26730
|
+
*
|
|
26731
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
26732
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
26733
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
26734
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
26735
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
26736
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
26737
|
+
* camera. Two questions, two authorities.
|
|
26738
|
+
*
|
|
26739
|
+
* ## Availability is not permission
|
|
26740
|
+
*
|
|
26741
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
26742
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
26743
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
26744
|
+
* provider declaring a signal is not a provider enabling it.
|
|
26745
|
+
*/
|
|
26746
|
+
/** One signal a device can emit. */
|
|
26747
|
+
var StreamSignalSchema = object({
|
|
26748
|
+
/** Stable id chosen by the provider, e.g. `'motion'`, `'person'`, `'tamper'`. */
|
|
26749
|
+
code: string().min(1),
|
|
26750
|
+
/** What an operator reads in the picker. The provider's own wording. */
|
|
26751
|
+
label: string().min(1),
|
|
26752
|
+
/**
|
|
26753
|
+
* Whether the provider recommends this signal ON when a camera is first set
|
|
26754
|
+
* up. A provider knows which of its signals are cheap and reliable; an
|
|
26755
|
+
* operator should not have to discover that by trial. Reolink recommends
|
|
26756
|
+
* both of its own.
|
|
26757
|
+
*/
|
|
26758
|
+
recommended: boolean()
|
|
26759
|
+
});
|
|
26760
|
+
object({
|
|
26761
|
+
signals: array(StreamSignalSchema),
|
|
26762
|
+
lastFetchedAt: number()
|
|
26763
|
+
});
|
|
26764
|
+
Object.values(DeviceType), method(_void(), array(StreamSignalSchema).readonly());
|
|
26747
26765
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
26748
26766
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
26749
26767
|
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
@@ -27316,6 +27334,7 @@ _enum([
|
|
|
27316
27334
|
"sleeping",
|
|
27317
27335
|
"camera-refused",
|
|
27318
27336
|
"no-keyframe",
|
|
27337
|
+
"decode-failed",
|
|
27319
27338
|
"no-catalog-row",
|
|
27320
27339
|
"unsupported",
|
|
27321
27340
|
"unknown-device",
|
|
@@ -27572,6 +27591,27 @@ var ClipPlaybackSchema = object({
|
|
|
27572
27591
|
*/
|
|
27573
27592
|
var ClipWakeSchema = _enum(["authorised"]);
|
|
27574
27593
|
/**
|
|
27594
|
+
* Hard ceiling on ONE {@link videoclipsCapability.methods.offerClipBytes}
|
|
27595
|
+
* transfer — ten times {@link VIDEOCLIPS_MAX_READ_BYTES}, and the reasoning is
|
|
27596
|
+
* not "ten times more comfortable".
|
|
27597
|
+
*
|
|
27598
|
+
* The inline bound is set by what is HELD: a base64 envelope is the payload at
|
|
27599
|
+
* ~1.33× in the provider AND the same again in the caller, so 50 MiB of clip
|
|
27600
|
+
* is ~133 MiB of heap across two processes. Over `peerBytes` the consumer
|
|
27601
|
+
* holds one socket chunk at a time and writes straight through to the export
|
|
27602
|
+
* file, so its contribution is flat whatever the clip weighs. What is left is
|
|
27603
|
+
* the PRODUCER's own copy, and that is a property of how each provider makes a
|
|
27604
|
+
* clip rather than of this transport: Hikvision's fetch writes to a scratch
|
|
27605
|
+
* FILE and offers it (nothing is held), Reolink's cmd-5 transfer is collected
|
|
27606
|
+
* in memory and offered from there (one copy, the one it already had).
|
|
27607
|
+
*
|
|
27608
|
+
* So this number bounds the worst provider, not the transport, and it is named
|
|
27609
|
+
* separately so that lifting it is a statement about a provider rather than
|
|
27610
|
+
* about clips. Above it the provider REFUSES with the size in the message and
|
|
27611
|
+
* never truncates: half a video is worse than an honest refusal.
|
|
27612
|
+
*/
|
|
27613
|
+
var VIDEOCLIPS_MAX_OFFER_BYTES = 500 * 1024 * 1024;
|
|
27614
|
+
/**
|
|
27575
27615
|
* A clip's finished bytes, inline — the twin of `recordingExport.readExportBytes`.
|
|
27576
27616
|
*
|
|
27577
27617
|
* `bytes` is the DECODED length, so nobody infers it from the base64 length,
|
|
@@ -27603,6 +27643,32 @@ var ClipBytesSchema = object({
|
|
|
27603
27643
|
durationMs: number().positive().optional()
|
|
27604
27644
|
});
|
|
27605
27645
|
/**
|
|
27646
|
+
* Where a clip's finished bytes can be TAKEN (D613) — the answer to
|
|
27647
|
+
* {@link videoclipsCapability.methods.offerClipBytes}.
|
|
27648
|
+
*
|
|
27649
|
+
* Everything {@link ClipBytesSchema} carries except the bytes themselves, plus
|
|
27650
|
+
* the one-shot ticket that leads to them. The metadata is answered BEFORE the
|
|
27651
|
+
* transfer on purpose: a consumer learns which twin it got, what to call the
|
|
27652
|
+
* file and how long the clip runs without having to read a byte, so a decision
|
|
27653
|
+
* it would make on that metadata (a wrong twin, an implausible duration) costs
|
|
27654
|
+
* no transfer at all.
|
|
27655
|
+
*/
|
|
27656
|
+
var ClipBytesOfferSchema = object({
|
|
27657
|
+
/**
|
|
27658
|
+
* One shot, seconds-long, loopback, on the PROVIDER's own host. Open it with
|
|
27659
|
+
* `ctx.peerBytes.open(...)`, which refuses a ticket from another node by
|
|
27660
|
+
* name rather than dialling a port that means something else here.
|
|
27661
|
+
*/
|
|
27662
|
+
ticket: PeerBytesTicketSchema,
|
|
27663
|
+
contentType: string(),
|
|
27664
|
+
/** Suggested filename, extension included. */
|
|
27665
|
+
name: string(),
|
|
27666
|
+
/** Which twin was actually served — see {@link ClipBytesSchema.served}. */
|
|
27667
|
+
served: CamProfileSchema,
|
|
27668
|
+
/** See {@link ClipBytesSchema.durationMs}. Absent when nothing measured it. */
|
|
27669
|
+
durationMs: number().positive().optional()
|
|
27670
|
+
});
|
|
27671
|
+
/**
|
|
27606
27672
|
* Where a clip's STREAM can be dialled (D597) — the answer to
|
|
27607
27673
|
* {@link videoclipsCapability.methods.dialClipStream}.
|
|
27608
27674
|
*
|
|
@@ -27678,6 +27744,93 @@ var ClipStreamDialSchema = object({
|
|
|
27678
27744
|
/** Why `servedAudio` is `none` although sound was asked for. */
|
|
27679
27745
|
audioReason: ClipStreamAudioReasonSchema.optional()
|
|
27680
27746
|
});
|
|
27747
|
+
/**
|
|
27748
|
+
* The playback rates the broker can pace over media it HOLDS, ascending,
|
|
27749
|
+
* always with `1` — and the WIDEST ladder there is. It is the domain the
|
|
27750
|
+
* broker's `clampPlaybackRate` is derived from, at both ends.
|
|
27751
|
+
*
|
|
27752
|
+
* These are the BROKER's: it re-paces frames it has already demuxed — the
|
|
27753
|
+
* `MonotonicClock` divides source elapsed time by the factor and the pacer
|
|
27754
|
+
* pushes that much faster. `1.5` is in it because a re-pacer has no reason to
|
|
27755
|
+
* refuse it.
|
|
27756
|
+
*
|
|
27757
|
+
* **`8` is here since D621, and it is the pacer's, not a camera's.** D620
|
|
27758
|
+
* measured the thing that was assumed for a year and was never true: a
|
|
27759
|
+
* Reolink `<playSpeed>` does not time-compress anything. At 1, 2, 4 and 8 the
|
|
27760
|
+
* transfer is byte-identical — same 947 472 bytes, same 594 access units,
|
|
27761
|
+
* same 39.855 s presentation span, same 624 AAC frames — and only the wall
|
|
27762
|
+
* clock moves. It buys SUPPLY, never speed. So there was never a second
|
|
27763
|
+
* mechanism to wire for 8×: there is one, this one, and what it needs is
|
|
27764
|
+
* media in hand and a clamp that does not move the number.
|
|
27765
|
+
*
|
|
27766
|
+
* **`16` is deliberately NOT here, and will not join by widening this array.**
|
|
27767
|
+
* The camera's `playSpeed 16` is not a rate at all but an I-frame-only MODE —
|
|
27768
|
+
* measured on 592: 10 access units for a whole 36.3 s sub clip, 20 for the
|
|
27769
|
+
* main twin at a 2 025 ms median spacing, and no audio track. That is
|
|
27770
|
+
* different CONTENT, a stream of its own, and the honest broker-side twin of
|
|
27771
|
+
* it would be a pacer that DROPS whole GOPs rather than one that pushes 16×
|
|
27772
|
+
* the bitrate at a live WebRTC track. Neither exists. A `16` in this array
|
|
27773
|
+
* today would be a rate accepted and delivered at 8 — D612's defect, which
|
|
27774
|
+
* this list exists to end, one number further along.
|
|
27775
|
+
*
|
|
27776
|
+
* Every entry must survive the broker's `clampPlaybackRate` unchanged. Since
|
|
27777
|
+
* D621 that is structural rather than a discipline: the clamp reads this
|
|
27778
|
+
* array's own ends. What still has to be proved behaviourally — and is, in
|
|
27779
|
+
* the broker's `clip-stream-feeder.spec` — is that the PACER really empties a
|
|
27780
|
+
* clip `rate` times faster, because a clamp agreeing with a ladder is a
|
|
27781
|
+
* constant compared against itself.
|
|
27782
|
+
*
|
|
27783
|
+
* Narrower ladders exist for transports whose SUPPLY is bounded; they are
|
|
27784
|
+
* subsets of this one ({@link CLIP_STREAM_SOURCE_RATES},
|
|
27785
|
+
* {@link CLIP_REALTIME_SOURCE_RATES}).
|
|
27786
|
+
*/
|
|
27787
|
+
var CLIP_BROKER_PACED_RATES = [
|
|
27788
|
+
.25,
|
|
27789
|
+
.5,
|
|
27790
|
+
1,
|
|
27791
|
+
1.5,
|
|
27792
|
+
2,
|
|
27793
|
+
4,
|
|
27794
|
+
8
|
|
27795
|
+
];
|
|
27796
|
+
/**
|
|
27797
|
+
* What a surface may DRAW for this provider's clips — the answer to
|
|
27798
|
+
* {@link videoclipsCapability.methods.getPlaybackOptions} (D612).
|
|
27799
|
+
*
|
|
27800
|
+
* The envelope is a PROVIDER fact, not a clip fact, and that is measured, not
|
|
27801
|
+
* assumed: the broker's `chooseClipPath` reads exactly two inputs — whether
|
|
27802
|
+
* `dialClipStream` and `readClipBytes` are wired — and both are constants of
|
|
27803
|
+
* the broker's own closure over the provider's methods. The `profile` it is
|
|
27804
|
+
* handed is explicitly not read. So every clip of a provider is served the
|
|
27805
|
+
* same way, and a per-clip channel carried a value that could not vary. The
|
|
27806
|
+
* per-clip `clipTransport` server message was removed for exactly that reason.
|
|
27807
|
+
*
|
|
27808
|
+
* Queried per camera, before a clip is picked, so a control is rendered or
|
|
27809
|
+
* DISABLED rather than offered and refused at play time (D62: a disabled
|
|
27810
|
+
* control reads as unavailable, one that undoes the gesture reads as broken).
|
|
27811
|
+
*/
|
|
27812
|
+
var ClipPlaybackOptionsSchema = object({
|
|
27813
|
+
/**
|
|
27814
|
+
* How this provider's clips reach the player. `stream` is the provider's
|
|
27815
|
+
* forward-only fMP4 (D597); `file` is one bounded by-handle fetch of the
|
|
27816
|
+
* whole clip, `stbl` indexed (D575).
|
|
27817
|
+
*/
|
|
27818
|
+
transport: _enum(["stream", "file"]),
|
|
27819
|
+
/** `forward` = only ahead of the playhead. `free` = anywhere. */
|
|
27820
|
+
seek: _enum(["forward", "free"]),
|
|
27821
|
+
/** Frame-step BACKWARD is meaningful. Forward always is. */
|
|
27822
|
+
stepBack: boolean(),
|
|
27823
|
+
/** Whether the scrub gesture is served, as opposed to refused by name. */
|
|
27824
|
+
scrub: boolean(),
|
|
27825
|
+
/**
|
|
27826
|
+
* The rates that can be delivered, ascending, always containing `1`. The
|
|
27827
|
+
* viewer draws its picker from this and from nothing else — a constant it
|
|
27828
|
+
* keeps instead is the second authority that produced the defect: `8` and
|
|
27829
|
+
* `16` were offered, the broker clamped them to `4`, and no line anywhere
|
|
27830
|
+
* said so. `0` is not a member: pause is the absence of a rate.
|
|
27831
|
+
*/
|
|
27832
|
+
rates: array(number().positive()).min(1).readonly()
|
|
27833
|
+
});
|
|
27681
27834
|
var ClipSourceAvailabilitySchema = object({
|
|
27682
27835
|
state: _enum([
|
|
27683
27836
|
"ok",
|
|
@@ -27856,14 +28009,18 @@ var videoclipsCapability = {
|
|
|
27856
28009
|
*
|
|
27857
28010
|
* `getClipPlayback` is the right answer for a player: it hands back a URL
|
|
27858
28011
|
* on a plane the hub serves `access:'authenticated'`, which a browser and a
|
|
27859
|
-
* viewer session satisfy. It is the wrong answer for another ADDON
|
|
27860
|
-
*
|
|
27861
|
-
*
|
|
27862
|
-
*
|
|
27863
|
-
*
|
|
27864
|
-
*
|
|
27865
|
-
*
|
|
27866
|
-
*
|
|
28012
|
+
* viewer session satisfy. It is the wrong answer for another ADDON: the
|
|
28013
|
+
* hub's proxy in front of that plane takes only a user credential, which
|
|
28014
|
+
* an addon does not hold, so a recorder that wants a camera's clip cannot
|
|
28015
|
+
* fetch that URL. This method is the shape that answer forced — the same
|
|
28016
|
+
* one (and the same bound) as `recordingExport.readExportBytes`.
|
|
28017
|
+
*
|
|
28018
|
+
* **It is no longer the only seam.** Until D613 there was no addon→addon
|
|
28019
|
+
* byte transport at all; there is now
|
|
28020
|
+
* ({@link offerClipBytes}, over `ctx.peerBytes`), it holds nothing on
|
|
28021
|
+
* either side, and it is what a clip EXPORT uses. This method remains for
|
|
28022
|
+
* a consumer that genuinely wants the bytes in hand, and as the named
|
|
28023
|
+
* fallback for a provider not yet redeployed.
|
|
27867
28024
|
*
|
|
27868
28025
|
* Routing needs no `provider` pin: the id is source-prefixed and
|
|
27869
28026
|
* self-contained, so `device-collection-dispatch.ts` rule 3 hands the call
|
|
@@ -27930,6 +28087,65 @@ var videoclipsCapability = {
|
|
|
27930
28087
|
auth: "protected"
|
|
27931
28088
|
}),
|
|
27932
28089
|
/**
|
|
28090
|
+
* Where this clip's finished bytes can be TAKEN — the by-handle read a
|
|
28091
|
+
* clip EXPORT pulls, over the addon→addon byte transport (D613).
|
|
28092
|
+
*
|
|
28093
|
+
* This is {@link readClipBytes} with the envelope removed. Same gates,
|
|
28094
|
+
* same vocabulary, same completion rules, same `served` contract — the
|
|
28095
|
+
* only difference is that the bytes travel over a one-shot loopback
|
|
28096
|
+
* socket instead of inside a base64 field, so neither side holds the
|
|
28097
|
+
* payload whole and the 50 MiB refusal on a long `high` twin stops
|
|
28098
|
+
* existing. The bound that remains is
|
|
28099
|
+
* {@link VIDEOCLIPS_MAX_OFFER_BYTES}, and it bounds the PRODUCER's own
|
|
28100
|
+
* copy rather than the transport.
|
|
28101
|
+
*
|
|
28102
|
+
* **The ticket is loopback and same-host.** A provider on an agent mints a
|
|
28103
|
+
* URL that means nothing on the hub, and `ctx.peerBytes.open` refuses it
|
|
28104
|
+
* `cross-node` by name rather than dialling whatever else holds that port
|
|
28105
|
+
* here. A consumer that can be on the other side of a node boundary from
|
|
28106
|
+
* its provider must be able to read that refusal and say so; it must not
|
|
28107
|
+
* treat it as "no bytes".
|
|
28108
|
+
*
|
|
28109
|
+
* **A ticket is a one-shot bearer credential with a seconds-long life.**
|
|
28110
|
+
* Take it immediately, never persist it, never log its `url`. An untaken
|
|
28111
|
+
* ticket costs the provider one map entry until its TTL, and outstanding
|
|
28112
|
+
* tickets are bounded — which is also what makes a per-frame misuse of
|
|
28113
|
+
* this method refuse by name rather than work slowly (D9/D18: this is a
|
|
28114
|
+
* by-handle fetch of finished media, not a frame pipe).
|
|
28115
|
+
*
|
|
28116
|
+
* Optional on the provider for the same reason `readClipBytes` is: a
|
|
28117
|
+
* source with no camera socket behind it has no bytes. A provider that
|
|
28118
|
+
* predates this method answers `NOT_IMPLEMENTED`, and a consumer may fall
|
|
28119
|
+
* back to `readClipBytes` — but it says so in the log, with the deploy
|
|
28120
|
+
* hint, because that fallback re-imposes the 50 MiB refusal and an
|
|
28121
|
+
* operator who sees `too-large-to-transfer` after this shipped is looking
|
|
28122
|
+
* at a stale addon, not at a clip that cannot be exported.
|
|
28123
|
+
*/
|
|
28124
|
+
offerClipBytes: optionalMethod(object({
|
|
28125
|
+
deviceId: number(),
|
|
28126
|
+
clipId: string().min(1),
|
|
28127
|
+
/** WHICH provider holds the bytes — see `readClipBytes.provider`. */
|
|
28128
|
+
provider: string().min(1),
|
|
28129
|
+
/** Which twin — `low | mid` → the sub file, `high` → the main twin. */
|
|
28130
|
+
profile: CamProfileSchema.optional(),
|
|
28131
|
+
/**
|
|
28132
|
+
* The CALLER's byte bound, so an over-size clip is refused before the
|
|
28133
|
+
* camera is touched rather than after. Capped by
|
|
28134
|
+
* {@link VIDEOCLIPS_MAX_OFFER_BYTES} whatever is passed; absent means
|
|
28135
|
+
* that ceiling.
|
|
28136
|
+
*/
|
|
28137
|
+
maxBytes: number().int().positive().optional(),
|
|
28138
|
+
/**
|
|
28139
|
+
* The operator's authorisation to wake a sleeping camera for this
|
|
28140
|
+
* read. Absent — the default — means a sleeping standalone battery
|
|
28141
|
+
* camera is REFUSED by name, before any session is opened.
|
|
28142
|
+
*/
|
|
28143
|
+
wake: ClipWakeSchema.optional()
|
|
28144
|
+
}), ClipBytesOfferSchema, {
|
|
28145
|
+
kind: "query",
|
|
28146
|
+
auth: "protected"
|
|
28147
|
+
}),
|
|
28148
|
+
/**
|
|
27933
28149
|
* Where this clip's STREAM can be dialled (D597) — the forward-only
|
|
27934
28150
|
* fMP4 the provider writes from the first muxed byte, for the broker to
|
|
27935
28151
|
* play through the same WebRTC session as recorded footage, with the
|
|
@@ -27966,6 +28182,36 @@ var videoclipsCapability = {
|
|
|
27966
28182
|
}), ClipStreamDialSchema, {
|
|
27967
28183
|
kind: "query",
|
|
27968
28184
|
auth: "protected"
|
|
28185
|
+
}),
|
|
28186
|
+
/**
|
|
28187
|
+
* What a surface may DRAW for this provider's clips: the rates it can be
|
|
28188
|
+
* played at, whether scrub is served, how far a position may be moved,
|
|
28189
|
+
* and whether a backward frame-step means anything (D612).
|
|
28190
|
+
*
|
|
28191
|
+
* **The only authority.** The per-clip `clipTransport` server message
|
|
28192
|
+
* that used to carry the same answer was removed: the broker's transport
|
|
28193
|
+
* choice reads nothing that varies per clip, so the clip level had no
|
|
28194
|
+
* information the provider does not already have, and two channels that
|
|
28195
|
+
* can disagree are worse than one (D62).
|
|
28196
|
+
*
|
|
28197
|
+
* Asked per camera and per provider, so it must stay CHEAP — it is a
|
|
28198
|
+
* statement about wiring, answered from a constant, never a call to the
|
|
28199
|
+
* camera. A provider answers with one of {@link CLIP_PLAYBACK_OPTIONS}
|
|
28200
|
+
* and never composes an envelope of its own.
|
|
28201
|
+
*
|
|
28202
|
+
* Optional, and absence is load-bearing: a provider that has not answered
|
|
28203
|
+
* has not restricted anything, and a viewer reads it as the freedom it
|
|
28204
|
+
* always had. See D612 on the rollout order that absence implies.
|
|
28205
|
+
*/
|
|
28206
|
+
getPlaybackOptions: optionalMethod(object({
|
|
28207
|
+
deviceId: number(),
|
|
28208
|
+
/** WHICH provider to ask — the `addonId` a {@link ClipSourceSchema}
|
|
28209
|
+
* row carries. Required for the same reason `listClips` requires it:
|
|
28210
|
+
* a collection cap has no "the bound one" to resolve to (D554). */
|
|
28211
|
+
provider: string().min(1)
|
|
28212
|
+
}), ClipPlaybackOptionsSchema, {
|
|
28213
|
+
kind: "query",
|
|
28214
|
+
auth: "protected"
|
|
27969
28215
|
})
|
|
27970
28216
|
}
|
|
27971
28217
|
};
|
|
@@ -29216,6 +29462,143 @@ DeviceType.Camera, method(object({ deviceId: number() }), CameraCredentialsSchem
|
|
|
29216
29462
|
kind: "query",
|
|
29217
29463
|
auth: "admin"
|
|
29218
29464
|
});
|
|
29465
|
+
/**
|
|
29466
|
+
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
29467
|
+
* page.
|
|
29468
|
+
*
|
|
29469
|
+
* ## Why this is a capability and not an addon settings schema
|
|
29470
|
+
*
|
|
29471
|
+
* It was one, and it did not render. The addon declared the editor as a
|
|
29472
|
+
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
29473
|
+
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
29474
|
+
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
29475
|
+
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
29476
|
+
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
29477
|
+
* not on it "falls off silently".
|
|
29478
|
+
*
|
|
29479
|
+
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
29480
|
+
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
29481
|
+
* beside PTZ and motion zones on the camera itself. The device page is
|
|
29482
|
+
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
29483
|
+
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
29484
|
+
* from `getDeviceSettingsContribution`.
|
|
29485
|
+
*
|
|
29486
|
+
* Seven other widgets are still declared the other way, through a
|
|
29487
|
+
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
29488
|
+
* gives the addon no say in where its own panel lands and no way to decline
|
|
29489
|
+
* for a device the panel does not suit, which is why this one does not use it.
|
|
29490
|
+
*
|
|
29491
|
+
* ## Why one addon may implement it
|
|
29492
|
+
*
|
|
29493
|
+
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
29494
|
+
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
29495
|
+
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
29496
|
+
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
29497
|
+
* reached only by a caller that already knew the addon id.
|
|
29498
|
+
*
|
|
29499
|
+
* ## The tab
|
|
29500
|
+
*
|
|
29501
|
+
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
29502
|
+
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
29503
|
+
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
29504
|
+
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
29505
|
+
* next to "PTZ").
|
|
29506
|
+
*/
|
|
29507
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
29508
|
+
var GridNormalizedRectSchema = object({
|
|
29509
|
+
x: number().min(0).max(1),
|
|
29510
|
+
y: number().min(0).max(1),
|
|
29511
|
+
width: number().gt(0).max(1),
|
|
29512
|
+
height: number().gt(0).max(1)
|
|
29513
|
+
});
|
|
29514
|
+
/**
|
|
29515
|
+
* One source camera, the part of its picture taken, and where that part lands.
|
|
29516
|
+
*
|
|
29517
|
+
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
29518
|
+
* — a profile switch, a firmware update, a substream that comes back different
|
|
29519
|
+
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
29520
|
+
* which is the class of bug nobody files.
|
|
29521
|
+
*/
|
|
29522
|
+
var GridLayoutCellSchema = object({
|
|
29523
|
+
deviceId: number().int().positive(),
|
|
29524
|
+
/** The part of the SOURCE taken, normalized against the source. */
|
|
29525
|
+
source: GridNormalizedRectSchema,
|
|
29526
|
+
/** Where it lands, normalized against the CANVAS. */
|
|
29527
|
+
cell: GridNormalizedRectSchema
|
|
29528
|
+
});
|
|
29529
|
+
/**
|
|
29530
|
+
* Which profiles this grid can actually compose, and why not.
|
|
29531
|
+
*
|
|
29532
|
+
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
29533
|
+
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
29534
|
+
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
29535
|
+
* low" is, and it is the one an operator can act on.
|
|
29536
|
+
*/
|
|
29537
|
+
var GridProfileOfferSchema = object({
|
|
29538
|
+
profile: _enum([
|
|
29539
|
+
"high",
|
|
29540
|
+
"mid",
|
|
29541
|
+
"low"
|
|
29542
|
+
]),
|
|
29543
|
+
offered: boolean(),
|
|
29544
|
+
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
29545
|
+
missingSources: array(number().int().positive()),
|
|
29546
|
+
/**
|
|
29547
|
+
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
29548
|
+
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
29549
|
+
* it is reported because nothing else in the system would ever say what the
|
|
29550
|
+
* grid came out as, and because it is the number an operator would otherwise
|
|
29551
|
+
* expect to type.
|
|
29552
|
+
*/
|
|
29553
|
+
canvas: string(),
|
|
29554
|
+
/**
|
|
29555
|
+
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
29556
|
+
*
|
|
29557
|
+
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
29558
|
+
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
29559
|
+
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
29560
|
+
* Default is `mid` + `low`.
|
|
29561
|
+
*/
|
|
29562
|
+
published: boolean()
|
|
29563
|
+
});
|
|
29564
|
+
var GridLayoutViewSchema = object({
|
|
29565
|
+
/** The persisted grid row this camera was declared from. */
|
|
29566
|
+
instanceId: string(),
|
|
29567
|
+
deviceId: number().int().nonnegative(),
|
|
29568
|
+
name: string(),
|
|
29569
|
+
/**
|
|
29570
|
+
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
29571
|
+
* its own from the cells and its sources' dimensions. The two numbers that
|
|
29572
|
+
* used to be here were a text field that silently decided both how much the
|
|
29573
|
+
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
29574
|
+
* came out as.
|
|
29575
|
+
*/
|
|
29576
|
+
fps: number().int(),
|
|
29577
|
+
cells: array(GridLayoutCellSchema),
|
|
29578
|
+
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
29579
|
+
profiles: array(GridProfileOfferSchema)
|
|
29580
|
+
});
|
|
29581
|
+
var GridLayoutPatchSchema = object({
|
|
29582
|
+
deviceId: number().int().nonnegative(),
|
|
29583
|
+
name: string().min(1).max(160).optional(),
|
|
29584
|
+
fps: number().int().min(1).max(60).optional(),
|
|
29585
|
+
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
29586
|
+
publishedProfiles: array(_enum([
|
|
29587
|
+
"high",
|
|
29588
|
+
"mid",
|
|
29589
|
+
"low"
|
|
29590
|
+
])).max(3).optional(),
|
|
29591
|
+
/**
|
|
29592
|
+
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
29593
|
+
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
29594
|
+
* for.
|
|
29595
|
+
*/
|
|
29596
|
+
cells: array(GridLayoutCellSchema).max(16)
|
|
29597
|
+
});
|
|
29598
|
+
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
29599
|
+
kind: "mutation",
|
|
29600
|
+
auth: "admin"
|
|
29601
|
+
});
|
|
29219
29602
|
object({
|
|
29220
29603
|
detected: boolean(),
|
|
29221
29604
|
/** Ms epoch of the last transition. 0 if never observed. */
|
|
@@ -29689,307 +30072,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), DayNightOptionsSchema)
|
|
|
29689
30072
|
auth: "admin"
|
|
29690
30073
|
});
|
|
29691
30074
|
/**
|
|
29692
|
-
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
29693
|
-
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
29694
|
-
*
|
|
29695
|
-
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
29696
|
-
* footage ledger, our storage locations, our retention. This one has a
|
|
29697
|
-
* different authority — the camera's firmware — and per D62 it stores
|
|
29698
|
-
* nothing of its own. Every value here is read from the camera and every
|
|
29699
|
-
* write goes back to the camera; there is no CamStack-side mirror that
|
|
29700
|
-
* could disagree with the device.
|
|
29701
|
-
*
|
|
29702
|
-
* ## One shape, two firmwares
|
|
29703
|
-
*
|
|
29704
|
-
* Measured 2026-09-22 against the live fleet:
|
|
29705
|
-
*
|
|
29706
|
-
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
29707
|
-
* | --- | --- | --- |
|
|
29708
|
-
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
29709
|
-
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
29710
|
-
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
29711
|
-
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
29712
|
-
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
29713
|
-
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
29714
|
-
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
29715
|
-
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
29716
|
-
*
|
|
29717
|
-
* The two schedule models look different and are the same thing in
|
|
29718
|
-
* different coordinates: both answer "for this trigger, during which
|
|
29719
|
-
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
29720
|
-
* question in one shape — Hikvision's ranges map straight onto it,
|
|
29721
|
-
* Reolink's mask expands into hour-aligned windows.
|
|
29722
|
-
*
|
|
29723
|
-
* ## Union, not intersection
|
|
29724
|
-
*
|
|
29725
|
-
* **The same fields exist on every camera.** What differs per device is
|
|
29726
|
-
* which VALUES that device accepts, and that is what {@link
|
|
29727
|
-
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
29728
|
-
* per field plus the schedule's own limits. A control a camera cannot
|
|
29729
|
-
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
29730
|
-
* dead: disabled must not look like broken.
|
|
29731
|
-
*
|
|
29732
|
-
* ## Refusal by name
|
|
29733
|
-
*
|
|
29734
|
-
* A write a camera cannot honour is refused with a sentence the operator
|
|
29735
|
-
* can read — never accepted and dropped. Both providers refuse through
|
|
29736
|
-
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
29737
|
-
* one test, not two hand-written vendor opinions.
|
|
29738
|
-
*
|
|
29739
|
-
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
29740
|
-
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
29741
|
-
* injected from `status`) reports the live values, and a single
|
|
29742
|
-
* `setSettings` mutation applies a partial change. No hand-written
|
|
29743
|
-
* settings-contribution methods.
|
|
29744
|
-
*/
|
|
29745
|
-
/**
|
|
29746
|
-
* What makes the camera start recording during a window.
|
|
29747
|
-
*
|
|
29748
|
-
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
29749
|
-
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
29750
|
-
* object-class triggers are Reolink-only today and the smart-event ones
|
|
29751
|
-
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
29752
|
-
* firmwares measured — a camera that cannot record on a trigger simply
|
|
29753
|
-
* does not list it in `options.schedule.triggers`, and a window naming
|
|
29754
|
-
* it is REFUSED, not dropped.
|
|
29755
|
-
*/
|
|
29756
|
-
var RecordTriggerSchema = _enum([
|
|
29757
|
-
"continuous",
|
|
29758
|
-
"motion",
|
|
29759
|
-
"person",
|
|
29760
|
-
"vehicle",
|
|
29761
|
-
"animal",
|
|
29762
|
-
"lineCrossing",
|
|
29763
|
-
"intrusion",
|
|
29764
|
-
"loitering",
|
|
29765
|
-
"alarmInput"
|
|
29766
|
-
]);
|
|
29767
|
-
/**
|
|
29768
|
-
* One weekly recording window: "on `day`, from `startMinute` to
|
|
29769
|
-
* `endMinute`, record on `trigger`".
|
|
29770
|
-
*
|
|
29771
|
-
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
29772
|
-
* both firmwares enumerate). Minutes are local camera time since
|
|
29773
|
-
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
29774
|
-
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
29775
|
-
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
29776
|
-
*/
|
|
29777
|
-
var RecordWindowSchema = object({
|
|
29778
|
-
trigger: RecordTriggerSchema,
|
|
29779
|
-
day: number().int().min(0).max(6),
|
|
29780
|
-
startMinute: number().int().min(0).max(1439),
|
|
29781
|
-
endMinute: number().int().min(1).max(1440)
|
|
29782
|
-
});
|
|
29783
|
-
/** Status of one physical volume, as the camera itself describes it. */
|
|
29784
|
-
var OnboardStorageVolumeSchema = object({
|
|
29785
|
-
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
29786
|
-
id: string(),
|
|
29787
|
-
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
29788
|
-
label: string().optional(),
|
|
29789
|
-
status: _enum([
|
|
29790
|
-
"ok",
|
|
29791
|
-
"unformatted",
|
|
29792
|
-
"error",
|
|
29793
|
-
"offline",
|
|
29794
|
-
"unknown"
|
|
29795
|
-
]),
|
|
29796
|
-
/**
|
|
29797
|
-
* Total size in MB, or **null when the camera did not say**.
|
|
29798
|
-
*
|
|
29799
|
-
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
29800
|
-
* measurement (D393), and a card whose size is unknown must not be
|
|
29801
|
-
* rendered as a card of size zero.
|
|
29802
|
-
*/
|
|
29803
|
-
capacityMb: number().nullable(),
|
|
29804
|
-
/**
|
|
29805
|
-
* Free space in MB, or null when unknown.
|
|
29806
|
-
*
|
|
29807
|
-
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
29808
|
-
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
29809
|
-
* card converges on once it has wrapped. At loop steady state the
|
|
29810
|
-
* number is identical whether the camera recorded yesterday or stopped
|
|
29811
|
-
* a month ago.
|
|
29812
|
-
*/
|
|
29813
|
-
freeMb: number().nullable(),
|
|
29814
|
-
/** True when the camera reports the volume writable (`property` RW). */
|
|
29815
|
-
writable: boolean().optional()
|
|
29816
|
-
});
|
|
29817
|
-
object({
|
|
29818
|
-
storage: discriminatedUnion("kind", [
|
|
29819
|
-
object({
|
|
29820
|
-
kind: literal("present"),
|
|
29821
|
-
volumes: array(OnboardStorageVolumeSchema)
|
|
29822
|
-
}),
|
|
29823
|
-
object({
|
|
29824
|
-
kind: literal("absent"),
|
|
29825
|
-
reason: string()
|
|
29826
|
-
}),
|
|
29827
|
-
object({
|
|
29828
|
-
kind: literal("unknown"),
|
|
29829
|
-
reason: string()
|
|
29830
|
-
})
|
|
29831
|
-
]),
|
|
29832
|
-
tracks: array(object({
|
|
29833
|
-
id: string(),
|
|
29834
|
-
enabled: boolean(),
|
|
29835
|
-
isVideo: boolean(),
|
|
29836
|
-
/** From the camera's own track description. Null when it does not say. */
|
|
29837
|
-
codec: string().nullable(),
|
|
29838
|
-
resolution: string().nullable(),
|
|
29839
|
-
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
29840
|
-
overwriteWhenFull: boolean().nullable()
|
|
29841
|
-
})),
|
|
29842
|
-
/**
|
|
29843
|
-
* The track the write path targets — the enabled VIDEO one. Null when
|
|
29844
|
-
* no track could be identified, which is itself a refusal reason.
|
|
29845
|
-
*/
|
|
29846
|
-
primaryTrackId: string().nullable(),
|
|
29847
|
-
/** Master "record to the card at all" switch. */
|
|
29848
|
-
enabled: boolean().nullable(),
|
|
29849
|
-
overwriteWhenFull: boolean().nullable(),
|
|
29850
|
-
preRecordSec: number().nullable(),
|
|
29851
|
-
postRecordSec: number().nullable(),
|
|
29852
|
-
/** Length of one recorded file, in minutes. */
|
|
29853
|
-
segmentMinutes: number().nullable(),
|
|
29854
|
-
/** The primary track's weekly windows, flattened. */
|
|
29855
|
-
windows: array(RecordWindowSchema),
|
|
29856
|
-
/**
|
|
29857
|
-
* How many windows the camera described that CamStack could NOT read —
|
|
29858
|
-
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
29859
|
-
* name.
|
|
29860
|
-
*
|
|
29861
|
-
* A dropped window is work the reader threw away, and a schedule that
|
|
29862
|
-
* silently shows fewer rows than the camera holds is how an operator
|
|
29863
|
-
* saves back a schedule shorter than the one they were looking at
|
|
29864
|
-
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
29865
|
-
* that replaces it would delete what was not shown — which is why a
|
|
29866
|
-
* provider reporting a non-zero count also reports the schedule as not
|
|
29867
|
-
* writable.
|
|
29868
|
-
*/
|
|
29869
|
-
unreadableWindows: number(),
|
|
29870
|
-
/**
|
|
29871
|
-
* The camera is scheduled to record and has NO usable storage.
|
|
29872
|
-
*
|
|
29873
|
-
* A first-class fact because it is the fleet's most common silent
|
|
29874
|
-
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
29875
|
-
* to a card that is not there. Neither the schedule nor the storage
|
|
29876
|
-
* read says anything wrong on its own; only the pair does.
|
|
29877
|
-
*/
|
|
29878
|
-
recordingToNowhere: boolean(),
|
|
29879
|
-
lastFetchedAt: number()
|
|
29880
|
-
});
|
|
29881
|
-
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
29882
|
-
var RangeSchema = object({
|
|
29883
|
-
min: number(),
|
|
29884
|
-
max: number(),
|
|
29885
|
-
step: number()
|
|
29886
|
-
});
|
|
29887
|
-
/**
|
|
29888
|
-
* The values a camera actually takes for a numeric field, when they are a SET
|
|
29889
|
-
* rather than a range.
|
|
29890
|
-
*
|
|
29891
|
-
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
29892
|
-
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
29893
|
-
*
|
|
29894
|
-
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
29895
|
-
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
29896
|
-
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
29897
|
-
*
|
|
29898
|
-
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
29899
|
-
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
29900
|
-
* would forbid values the camera takes AND permit values it silently replaces
|
|
29901
|
-
* with 5 — wrong in both directions at once.
|
|
29902
|
-
*
|
|
29903
|
-
* `sentinel` names the member that is not a duration, so a surface can render
|
|
29904
|
-
* "no limit" instead of `2147483647` seconds.
|
|
29905
|
-
*/
|
|
29906
|
-
var AllowedValuesSchema = object({
|
|
29907
|
-
values: array(number()).min(1),
|
|
29908
|
-
sentinel: object({
|
|
29909
|
-
value: number(),
|
|
29910
|
-
meaning: _enum(["no-limit", "disabled"])
|
|
29911
|
-
}).optional()
|
|
29912
|
-
});
|
|
29913
|
-
/**
|
|
29914
|
-
* Per-field availability on ONE camera.
|
|
29915
|
-
*
|
|
29916
|
-
* The field exists on every camera — this says whether this one can be
|
|
29917
|
-
* read and whether it can be written, and `reason` says why not when
|
|
29918
|
-
* either is false. The UI renders the control DISABLED with the reason
|
|
29919
|
-
* rather than hiding it, so a limitation is legible instead of looking
|
|
29920
|
-
* like a missing feature.
|
|
29921
|
-
*/
|
|
29922
|
-
var OnboardFieldSupportSchema = object({
|
|
29923
|
-
readable: boolean(),
|
|
29924
|
-
writable: boolean(),
|
|
29925
|
-
/** Required whenever `readable` or `writable` is false. */
|
|
29926
|
-
reason: string().optional()
|
|
29927
|
-
});
|
|
29928
|
-
/** What this camera's schedule model can express. */
|
|
29929
|
-
var OnboardScheduleSupportSchema = object({
|
|
29930
|
-
support: OnboardFieldSupportSchema,
|
|
29931
|
-
/**
|
|
29932
|
-
* The smallest time step the camera can express, in minutes.
|
|
29933
|
-
*
|
|
29934
|
-
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
29935
|
-
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
29936
|
-
* window whose edges are not a multiple of this is REFUSED rather than
|
|
29937
|
-
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
29938
|
-
* and nothing says so.
|
|
29939
|
-
*/
|
|
29940
|
-
granularityMinutes: number(),
|
|
29941
|
-
/** Triggers this camera can record on. A window naming another is refused. */
|
|
29942
|
-
triggers: array(RecordTriggerSchema),
|
|
29943
|
-
/**
|
|
29944
|
-
* False when the camera stores ONE trigger per time range, so two
|
|
29945
|
-
* windows overlapping on the same day cannot carry different triggers.
|
|
29946
|
-
* True on Reolink, whose mask is per-trigger and independent.
|
|
29947
|
-
*/
|
|
29948
|
-
supportsOverlappingTriggers: boolean()
|
|
29949
|
-
});
|
|
29950
|
-
var RecordingOnboardOptionsSchema = object({
|
|
29951
|
-
enabled: OnboardFieldSupportSchema,
|
|
29952
|
-
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
29953
|
-
preRecordSec: OnboardFieldSupportSchema,
|
|
29954
|
-
preRecordSecRange: RangeSchema.optional(),
|
|
29955
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
29956
|
-
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
29957
|
-
postRecordSec: OnboardFieldSupportSchema,
|
|
29958
|
-
postRecordSecRange: RangeSchema.optional(),
|
|
29959
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
29960
|
-
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
29961
|
-
segmentMinutes: OnboardFieldSupportSchema,
|
|
29962
|
-
segmentMinutesRange: RangeSchema.optional(),
|
|
29963
|
-
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
29964
|
-
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
29965
|
-
schedule: OnboardScheduleSupportSchema
|
|
29966
|
-
});
|
|
29967
|
-
/**
|
|
29968
|
-
* A partial change. Every field optional.
|
|
29969
|
-
*
|
|
29970
|
-
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
29971
|
-
* silently ignore a field it cannot support — it refuses, by name,
|
|
29972
|
-
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
29973
|
-
* is the failure D62 exists to prevent: the operator believes the camera
|
|
29974
|
-
* is recording the way the form says, and it is not.
|
|
29975
|
-
*/
|
|
29976
|
-
var RecordingOnboardPatchSchema = object({
|
|
29977
|
-
enabled: boolean().optional(),
|
|
29978
|
-
overwriteWhenFull: boolean().optional(),
|
|
29979
|
-
preRecordSec: number().optional(),
|
|
29980
|
-
postRecordSec: number().optional(),
|
|
29981
|
-
segmentMinutes: number().optional(),
|
|
29982
|
-
/** The complete new window set for the primary track — not a delta. */
|
|
29983
|
-
windows: array(RecordWindowSchema).optional()
|
|
29984
|
-
});
|
|
29985
|
-
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
29986
|
-
deviceId: number(),
|
|
29987
|
-
settings: RecordingOnboardPatchSchema
|
|
29988
|
-
}), _void(), {
|
|
29989
|
-
kind: "mutation",
|
|
29990
|
-
auth: "admin"
|
|
29991
|
-
});
|
|
29992
|
-
/**
|
|
29993
30075
|
* Generic device-level status snapshot. Auto-registered by `BaseDevice`
|
|
29994
30076
|
* for every device, regardless of provider — the kernel needs a uniform
|
|
29995
30077
|
* cap-keyed slice for the basic device flags every consumer expects to
|
|
@@ -30083,30 +30165,6 @@ object({
|
|
|
30083
30165
|
eventCountSinceStart: number()
|
|
30084
30166
|
});
|
|
30085
30167
|
DeviceType.EventEmitter;
|
|
30086
|
-
var EventItemSchema = object({
|
|
30087
|
-
id: string(),
|
|
30088
|
-
type: string(),
|
|
30089
|
-
timestamp: number(),
|
|
30090
|
-
label: string().optional(),
|
|
30091
|
-
thumbnailUrl: string().optional(),
|
|
30092
|
-
clipUrl: string().optional(),
|
|
30093
|
-
metadata: record(string(), unknown()).optional()
|
|
30094
|
-
});
|
|
30095
|
-
DeviceType.Camera, method(object({
|
|
30096
|
-
deviceId: number(),
|
|
30097
|
-
from: number().optional(),
|
|
30098
|
-
to: number().optional(),
|
|
30099
|
-
limit: number().optional()
|
|
30100
|
-
}), array(EventItemSchema)), method(object({
|
|
30101
|
-
deviceId: number(),
|
|
30102
|
-
eventId: string()
|
|
30103
|
-
}), object({
|
|
30104
|
-
base64: string(),
|
|
30105
|
-
contentType: string()
|
|
30106
|
-
}).nullable()), method(object({
|
|
30107
|
-
deviceId: number(),
|
|
30108
|
-
eventId: string()
|
|
30109
|
-
}), string().nullable());
|
|
30110
30168
|
var IdentitySchema = object({
|
|
30111
30169
|
id: string(),
|
|
30112
30170
|
name: string(),
|
|
@@ -31803,143 +31861,6 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
|
|
|
31803
31861
|
lastChangedAt: number()
|
|
31804
31862
|
});
|
|
31805
31863
|
/**
|
|
31806
|
-
* camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
|
|
31807
|
-
* page.
|
|
31808
|
-
*
|
|
31809
|
-
* ## Why this is a capability and not an addon settings schema
|
|
31810
|
-
*
|
|
31811
|
-
* It was one, and it did not render. The addon declared the editor as a
|
|
31812
|
-
* `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
|
|
31813
|
-
* returned that section correctly and `ConfigFormField` renders `type:'widget'`
|
|
31814
|
-
* perfectly well — and nothing ever asked camera-grid for it. The Cluster →
|
|
31815
|
-
* Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
|
|
31816
|
-
* addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
|
|
31817
|
-
* not on it "falls off silently".
|
|
31818
|
-
*
|
|
31819
|
-
* Adding a fifth name to that list would have been the wrong fix twice over:
|
|
31820
|
-
* that page is per-camera DETECTION tuning, and a grid's geometry belongs
|
|
31821
|
-
* beside PTZ and motion zones on the camera itself. The device page is
|
|
31822
|
-
* BINDING-driven (D12), so the way in is a capability bound to the device —
|
|
31823
|
-
* and this cap carries its section the way `recording` does, by RETURNING it
|
|
31824
|
-
* from `getDeviceSettingsContribution`.
|
|
31825
|
-
*
|
|
31826
|
-
* Seven other widgets are still declared the other way, through a
|
|
31827
|
-
* `deviceConfig.ui` block the framework derives a section from. That route
|
|
31828
|
-
* gives the addon no say in where its own panel lands and no way to decline
|
|
31829
|
-
* for a device the panel does not suit, which is why this one does not use it.
|
|
31830
|
-
*
|
|
31831
|
-
* ## Why one addon may implement it
|
|
31832
|
-
*
|
|
31833
|
-
* It is a device-scoped NATIVE cap, registered by the grid camera device
|
|
31834
|
-
* itself. Nothing else declares a composite camera, so nothing else has a
|
|
31835
|
-
* layout — and the device-scoped route means the widget asks THE camera, not
|
|
31836
|
-
* "the camera-grid addon", which is what let the old custom-action pair be
|
|
31837
|
-
* reached only by a caller that already knew the addon id.
|
|
31838
|
-
*
|
|
31839
|
-
* ## The tab
|
|
31840
|
-
*
|
|
31841
|
-
* `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
|
|
31842
|
-
* is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
|
|
31843
|
-
* entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
|
|
31844
|
-
* label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
|
|
31845
|
-
* next to "PTZ").
|
|
31846
|
-
*/
|
|
31847
|
-
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
31848
|
-
var GridNormalizedRectSchema = object({
|
|
31849
|
-
x: number().min(0).max(1),
|
|
31850
|
-
y: number().min(0).max(1),
|
|
31851
|
-
width: number().gt(0).max(1),
|
|
31852
|
-
height: number().gt(0).max(1)
|
|
31853
|
-
});
|
|
31854
|
-
/**
|
|
31855
|
-
* One source camera, the part of its picture taken, and where that part lands.
|
|
31856
|
-
*
|
|
31857
|
-
* Both rectangles are NORMALIZED (D519): a source camera can change resolution
|
|
31858
|
-
* — a profile switch, a firmware update, a substream that comes back different
|
|
31859
|
-
* — and a stored PIXEL rectangle would quietly start cutting the wrong region,
|
|
31860
|
-
* which is the class of bug nobody files.
|
|
31861
|
-
*/
|
|
31862
|
-
var GridLayoutCellSchema = object({
|
|
31863
|
-
deviceId: number().int().positive(),
|
|
31864
|
-
/** The part of the SOURCE taken, normalized against the source. */
|
|
31865
|
-
source: GridNormalizedRectSchema,
|
|
31866
|
-
/** Where it lands, normalized against the CANVAS. */
|
|
31867
|
-
cell: GridNormalizedRectSchema
|
|
31868
|
-
});
|
|
31869
|
-
/**
|
|
31870
|
-
* Which profiles this grid can actually compose, and why not.
|
|
31871
|
-
*
|
|
31872
|
-
* A grid's `high` composes its sources' `high` and its `low` their `low`, so a
|
|
31873
|
-
* profile is on offer only when EVERY source can serve it. The refusal NAMES
|
|
31874
|
-
* the sources, because "this grid has no low" is not a finding — "615 has no
|
|
31875
|
-
* low" is, and it is the one an operator can act on.
|
|
31876
|
-
*/
|
|
31877
|
-
var GridProfileOfferSchema = object({
|
|
31878
|
-
profile: _enum([
|
|
31879
|
-
"high",
|
|
31880
|
-
"mid",
|
|
31881
|
-
"low"
|
|
31882
|
-
]),
|
|
31883
|
-
offered: boolean(),
|
|
31884
|
-
/** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
|
|
31885
|
-
missingSources: array(number().int().positive()),
|
|
31886
|
-
/**
|
|
31887
|
-
* The canvas this profile composes onto, `WxH`, or empty when it is not
|
|
31888
|
-
* offered. DERIVED from the cells and the sources' own size at this profile —
|
|
31889
|
-
* it is reported because nothing else in the system would ever say what the
|
|
31890
|
-
* grid came out as, and because it is the number an operator would otherwise
|
|
31891
|
-
* expect to type.
|
|
31892
|
-
*/
|
|
31893
|
-
canvas: string(),
|
|
31894
|
-
/**
|
|
31895
|
-
* Whether this profile is PUBLISHED, of the ones the grid could serve.
|
|
31896
|
-
*
|
|
31897
|
-
* A grid's `high` is composed of its sources' `high`, so on a 4K fleet it is
|
|
31898
|
-
* a 4K canvas built from 4K decodes — something to opt into, not something a
|
|
31899
|
-
* viewer's adaptive should be handed by climbing to the top rung it can see.
|
|
31900
|
-
* Default is `mid` + `low`.
|
|
31901
|
-
*/
|
|
31902
|
-
published: boolean()
|
|
31903
|
-
});
|
|
31904
|
-
var GridLayoutViewSchema = object({
|
|
31905
|
-
/** The persisted grid row this camera was declared from. */
|
|
31906
|
-
instanceId: string(),
|
|
31907
|
-
deviceId: number().int().nonnegative(),
|
|
31908
|
-
name: string(),
|
|
31909
|
-
/**
|
|
31910
|
-
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
31911
|
-
* its own from the cells and its sources' dimensions. The two numbers that
|
|
31912
|
-
* used to be here were a text field that silently decided both how much the
|
|
31913
|
-
* composite cost and how sharp it was — see `profiles[].canvas` for what it
|
|
31914
|
-
* came out as.
|
|
31915
|
-
*/
|
|
31916
|
-
fps: number().int(),
|
|
31917
|
-
cells: array(GridLayoutCellSchema),
|
|
31918
|
-
/** What the catalog will publish, and what it refuses to. Read-only. */
|
|
31919
|
-
profiles: array(GridProfileOfferSchema)
|
|
31920
|
-
});
|
|
31921
|
-
var GridLayoutPatchSchema = object({
|
|
31922
|
-
deviceId: number().int().nonnegative(),
|
|
31923
|
-
name: string().min(1).max(160).optional(),
|
|
31924
|
-
fps: number().int().min(1).max(60).optional(),
|
|
31925
|
-
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
31926
|
-
publishedProfiles: array(_enum([
|
|
31927
|
-
"high",
|
|
31928
|
-
"mid",
|
|
31929
|
-
"low"
|
|
31930
|
-
])).max(3).optional(),
|
|
31931
|
-
/**
|
|
31932
|
-
* The whole cell list at once. A per-cell patch would need an ordering the
|
|
31933
|
-
* editor does not have, and a half-applied layout is a picture nobody asked
|
|
31934
|
-
* for.
|
|
31935
|
-
*/
|
|
31936
|
-
cells: array(GridLayoutCellSchema).max(16)
|
|
31937
|
-
});
|
|
31938
|
-
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
|
|
31939
|
-
kind: "mutation",
|
|
31940
|
-
auth: "admin"
|
|
31941
|
-
});
|
|
31942
|
-
/**
|
|
31943
31864
|
* Motion-zones share the same MaskShape vocabulary as privacy-mask — the
|
|
31944
31865
|
* on-camera motion-detection mask is a single `grid` region (a row-major
|
|
31945
31866
|
* boolean cell lattice the camera's onboard VMD evaluates). Composing it as
|
|
@@ -33752,36 +33673,95 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
33752
33673
|
auth: "admin"
|
|
33753
33674
|
});
|
|
33754
33675
|
/**
|
|
33755
|
-
* `recording`
|
|
33756
|
-
*
|
|
33757
|
-
*
|
|
33758
|
-
*
|
|
33759
|
-
*
|
|
33760
|
-
*
|
|
33761
|
-
*
|
|
33762
|
-
*
|
|
33676
|
+
* `recording` — a camera's recorded COVERAGE and PLAYBACK, from whichever
|
|
33677
|
+
* source the operator picked.
|
|
33678
|
+
*
|
|
33679
|
+
* A device-scoped wrapper COLLECTION since D625, and the five lines that make
|
|
33680
|
+
* it one (`scope`/`mode`/`kind`/`defaultActive`/`deviceTypes`) are copied from
|
|
33681
|
+
* `videoclips.cap.ts` deliberately: `scope: 'device'` + `mode: 'collection'` is
|
|
33682
|
+
* what makes `resolveCapMount` keep the PER-DEVICE mount while the collection
|
|
33683
|
+
* dispatcher fans out, and a device's sources are then its BINDINGS
|
|
33684
|
+
* (`deviceManager.getBindings`, D554 amended) rather than "every addon that
|
|
33685
|
+
* registered the cap somewhere".
|
|
33686
|
+
*
|
|
33687
|
+
* ## What is here and what is not
|
|
33688
|
+
*
|
|
33689
|
+
* FIVE of them — `listSources`, `getAvailability`, `getDaysWithRecordings`,
|
|
33690
|
+
* `getPlayback`, `getPlaybackOptions`. Every source must be able to answer
|
|
33691
|
+
* these or it is not a source. Everything else that used to live on this cap —
|
|
33692
|
+
* storage locations, retention, relocation, rebalance, the ops log, the
|
|
33693
|
+
* placement table, the `mfra` byte plane, `getDeviceConfig`/`setDeviceConfig`
|
|
33694
|
+
* and the two batch reads — is on `recording-archive`, a system singleton, and
|
|
33695
|
+
* the reasons are argued there.
|
|
33696
|
+
*
|
|
33697
|
+
* ## The default is OURS, and there is nowhere to say otherwise
|
|
33698
|
+
*
|
|
33699
|
+
* {@link RECORDING_SOURCE_CAMSTACK} is RESERVED. The absence of an operator
|
|
33700
|
+
* choice MEANS that value; it is not a row that happened to sort first. Clips
|
|
33701
|
+
* end their resolver with `?? sources[0]` and that is right for clips — a
|
|
33702
|
+
* camera full of onboard clips that says "no clips" is the defect that work
|
|
33703
|
+
* exists to end. For a TIMELINE it is wrong and the measurement says why: on
|
|
33704
|
+
* 592, ours covers 85 362 s of the day and the card 21 388 s, and
|
|
33705
|
+
* `videoclips.listSources` answers the ONBOARD row first. A silent fall to the
|
|
33706
|
+
* first row would swap a 98.8 % bar for a 24.8 % one with nothing saying so.
|
|
33707
|
+
*
|
|
33708
|
+
* So a surface that cannot find our row says `ours-absent` and offers the
|
|
33709
|
+
* others as a CHOICE; it never takes one on the operator's behalf. The
|
|
33710
|
+
* reservation is enforced in the collection dispatcher — a `listSources` row
|
|
33711
|
+
* carrying this id from any addon but the recorder is refused by name — and by
|
|
33712
|
+
* `scripts/check-reserved-collection-sources.ts` in CI.
|
|
33713
|
+
*
|
|
33714
|
+
* NOTE on events (source of truth, R5/C3): this cap carries NO event surface.
|
|
33715
|
+
* Timeline events (motion/object/audio) come from `pipelineAnalytics` (durable
|
|
33716
|
+
* SQLite rows) and are the ONLY event surface — the recorder has none.
|
|
33717
|
+
* Event<->footage joins are by time, padded with the shared `EVENT_PAD_MS`
|
|
33718
|
+
* (`interfaces/recording-config.ts`).
|
|
33763
33719
|
*/
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
|
|
33720
|
+
/**
|
|
33721
|
+
* OUR recorder's source id. RESERVED: no other provider may return it from
|
|
33722
|
+
* `listSources`, and the absence of an operator choice MEANS this value.
|
|
33723
|
+
*
|
|
33724
|
+
* Reserved is ENFORCED, not requested — `device-collection-dispatch.ts` drops a
|
|
33725
|
+
* row spelling it from any addon but {@link RECORDING_SOURCE_CAMSTACK_ADDON},
|
|
33726
|
+
* naming the impostor, and `scripts/check-reserved-collection-sources.ts`
|
|
33727
|
+
* fails CI on a provider package that spells it at all. A rule nothing checks
|
|
33728
|
+
* has already been broken somewhere.
|
|
33729
|
+
*/
|
|
33730
|
+
var RECORDING_SOURCE_CAMSTACK = "camstack";
|
|
33731
|
+
/** The one addon allowed to serve {@link RECORDING_SOURCE_CAMSTACK}: the
|
|
33732
|
+
* recorder, which is the addon that writes the footage (D560). */
|
|
33733
|
+
var RECORDING_SOURCE_CAMSTACK_ADDON = "recorder";
|
|
33774
33734
|
var RecordingRangeSchema = object({
|
|
33775
33735
|
profile: string(),
|
|
33776
33736
|
startMs: number(),
|
|
33777
33737
|
endMs: number()
|
|
33778
33738
|
});
|
|
33739
|
+
/**
|
|
33740
|
+
* How a source ANSWERED, on every singular read of this cap.
|
|
33741
|
+
*
|
|
33742
|
+
* `'read'` — it looked. `ranges: []` / `days: []` is then a real claim: this
|
|
33743
|
+
* source has no coverage in the window. `'unreadable'` — nobody could look
|
|
33744
|
+
* (the camera was unreachable, the calendar rung threw, the location is
|
|
33745
|
+
* unmounted, the node is still on the old build), and the emptiness beside it
|
|
33746
|
+
* means NOTHING.
|
|
33747
|
+
*
|
|
33748
|
+
* The batch rows have carried this since the grid existed; the SINGULAR
|
|
33749
|
+
* answers gained it with the collection (D625 §10.4), because they are the
|
|
33750
|
+
* ones the single-camera picker uses and because a half-converted fleet makes
|
|
33751
|
+
* "nobody looked" common for the length of a deploy. Without it the timeline
|
|
33752
|
+
* has no vocabulary for it, and `(data ?? [])` in a viewer turns a rollout into
|
|
33753
|
+
* a fleet of cameras that appear to have lost their recordings (D315, D393).
|
|
33754
|
+
*/
|
|
33755
|
+
var RecordingReadSchema = _enum(["read", "unreadable"]);
|
|
33779
33756
|
var RecordingAvailabilitySchema = object({
|
|
33780
33757
|
deviceId: number(),
|
|
33758
|
+
/** See {@link RecordingReadSchema}. An `'unreadable'` answer carries an empty
|
|
33759
|
+
* `ranges` that means nothing — never draw it as "no footage". */
|
|
33760
|
+
read: RecordingReadSchema,
|
|
33781
33761
|
ranges: array(RecordingRangeSchema),
|
|
33782
33762
|
/**
|
|
33783
|
-
* Every profile this camera has footage in — not only the one
|
|
33784
|
-
* describes (D433).
|
|
33763
|
+
* Every profile this camera has footage in AT THIS SOURCE — not only the one
|
|
33764
|
+
* `ranges` describes (D433).
|
|
33785
33765
|
*
|
|
33786
33766
|
* `ranges` answers for ONE profile by design: the timeline is a single bar,
|
|
33787
33767
|
* and enumerating all of them triples the directory reads for a bar that
|
|
@@ -33798,15 +33778,344 @@ var RecordingAvailabilitySchema = object({
|
|
|
33798
33778
|
});
|
|
33799
33779
|
var RecordingDaysSchema = object({
|
|
33800
33780
|
deviceId: number(),
|
|
33781
|
+
/** See {@link RecordingReadSchema}. `days: []` on an `'unreadable'` answer is
|
|
33782
|
+
* "nobody could look", and the date-picker must not spell it the same as
|
|
33783
|
+
* "no footage this month". */
|
|
33784
|
+
read: RecordingReadSchema,
|
|
33801
33785
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
33802
33786
|
days: array(number())
|
|
33803
33787
|
});
|
|
33788
|
+
var RecordingManifestSchema = object({
|
|
33789
|
+
deviceId: number(),
|
|
33790
|
+
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
33791
|
+
localMasterPath: string().nullable(),
|
|
33792
|
+
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
33793
|
+
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
33794
|
+
* scoped playback token in its path. */
|
|
33795
|
+
playbackUrl: string().nullable(),
|
|
33796
|
+
/**
|
|
33797
|
+
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
33798
|
+
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
33799
|
+
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
33800
|
+
* there is no recording / server.
|
|
33801
|
+
*/
|
|
33802
|
+
playbackEndpoints: array(string())
|
|
33803
|
+
});
|
|
33804
|
+
var RecordingSourceAvailabilitySchema = object({
|
|
33805
|
+
state: _enum([
|
|
33806
|
+
"ok",
|
|
33807
|
+
"sleeping",
|
|
33808
|
+
"unreachable",
|
|
33809
|
+
"no-storage",
|
|
33810
|
+
"index-empty"
|
|
33811
|
+
]),
|
|
33812
|
+
/** Free text, shown verbatim. Names the camera's own refusal when there is one. */
|
|
33813
|
+
reason: string().optional(),
|
|
33814
|
+
/** When this source's coverage was last CONFIRMED. A cached answer is never
|
|
33815
|
+
* drawn as current: the surface shows the age whenever it is older than the
|
|
33816
|
+
* refresh interval. The clip catalog's `catalogAsOf`, under the name the
|
|
33817
|
+
* timeline uses for it. */
|
|
33818
|
+
coverageAsOf: number().optional()
|
|
33819
|
+
});
|
|
33820
|
+
/**
|
|
33821
|
+
* One SOURCE of recorded coverage for a camera — a row of the picker.
|
|
33822
|
+
*
|
|
33823
|
+
* A provider lists the sources IT serves for that device, and answers for each
|
|
33824
|
+
* of them whether it can answer at all. A provider with nothing to offer on a
|
|
33825
|
+
* camera returns `[]` — it is not that camera's business. The five availability
|
|
33826
|
+
* states are `ClipSourceAvailability`'s verbatim: they mean exactly the same
|
|
33827
|
+
* things about a coverage index as about a clip catalog, and `sleeping` in
|
|
33828
|
+
* particular is what stops a battery camera being woken to paint a bar.
|
|
33829
|
+
*/
|
|
33830
|
+
var RecordingSourceSchema = object({
|
|
33831
|
+
/** The source id. {@link RECORDING_SOURCE_CAMSTACK} for ours (RESERVED), a
|
|
33832
|
+
* vendor namespace (`native:reolink:onboard`, …) for a camera's own store. */
|
|
33833
|
+
source: string(),
|
|
33834
|
+
/** Operator-facing name of the source ("CamStack recordings", "SD card"). */
|
|
33835
|
+
label: string(),
|
|
33836
|
+
/**
|
|
33837
|
+
* The addon that SERVES this row, and the value a later call passes as
|
|
33838
|
+
* `provider`.
|
|
33839
|
+
*
|
|
33840
|
+
* Optional for version skew only. The collection dispatcher stamps it from
|
|
33841
|
+
* the registry, so a row that travelled through the fan-out carries the
|
|
33842
|
+
* authoritative id whatever the provider filled in (D557 §4).
|
|
33843
|
+
*/
|
|
33844
|
+
addonId: string().optional(),
|
|
33845
|
+
availability: RecordingSourceAvailabilitySchema
|
|
33846
|
+
});
|
|
33847
|
+
/**
|
|
33848
|
+
* What a surface may DRAW for this (camera, source) — D612's rule applied to a
|
|
33849
|
+
* timeline: **the source declares what it can do, and the surface draws what
|
|
33850
|
+
* was declared. It never assumes, and never offers a gesture it will then
|
|
33851
|
+
* refuse.** D612 exists because `8` and `16` were offered as clip rates, the
|
|
33852
|
+
* broker clamped them to `4`, and no line anywhere said so.
|
|
33853
|
+
*
|
|
33854
|
+
* Asked once per (camera, source) before anything is drawn — never replaced by
|
|
33855
|
+
* a constant the surface keeps, which is the second authority D612 ends.
|
|
33856
|
+
*/
|
|
33857
|
+
var RecordingSourceOptionsSchema = object({
|
|
33858
|
+
/** How this source's media reaches the player.
|
|
33859
|
+
* `archive` = our own indexed segment tree; `stream` = the provider's
|
|
33860
|
+
* forward-only fMP4 (D597); `realtime` = a replay bound to wall clock. */
|
|
33861
|
+
transport: _enum([
|
|
33862
|
+
"archive",
|
|
33863
|
+
"stream",
|
|
33864
|
+
"realtime"
|
|
33865
|
+
]),
|
|
33866
|
+
/** What the BAR means. `continuous` = gaps are holes in a recording;
|
|
33867
|
+
* `sparse` = gaps are the absence of one, and must be drawn as such.
|
|
33868
|
+
*
|
|
33869
|
+
* Not an onboard-only concession: measured 2026-09-24, OUR bar covers 98.8 %
|
|
33870
|
+
* of 592's day and 1.2 % of 1436's. It is a fact about a (source, camera)
|
|
33871
|
+
* pair, and ours answers it per camera from `deriveRecordingMode`. */
|
|
33872
|
+
coverage: _enum(["continuous", "sparse"]),
|
|
33873
|
+
/** Where the playhead may be put.
|
|
33874
|
+
* `free` — anywhere, to the frame.
|
|
33875
|
+
* `forward` — only ahead of the current position.
|
|
33876
|
+
* `segment` — a position SNAPS to the head of the covering segment; a finer
|
|
33877
|
+
* ask is accepted by the camera and SILENTLY IGNORED. Measured
|
|
33878
|
+
* on 1436 (Hikvision V5.7.1, 2026-09-23): a window-narrowed
|
|
33879
|
+
* `ContentMgmt/search` returns a row and a `playbackURI`, the
|
|
33880
|
+
* replay opens 200 and delivers media — and the burned-in OSD of
|
|
33881
|
+
* the first frame reads the SEGMENT HEAD every time. Calling
|
|
33882
|
+
* that `forward` would tell the surface it may move the playhead
|
|
33883
|
+
* ahead within a loaded segment, which it may not. */
|
|
33884
|
+
seek: _enum([
|
|
33885
|
+
"free",
|
|
33886
|
+
"forward",
|
|
33887
|
+
"segment"
|
|
33888
|
+
]),
|
|
33889
|
+
/** Frame-step BACKWARD is meaningful. */
|
|
33890
|
+
stepBack: boolean(),
|
|
33891
|
+
/** Whether the drag-scrub gesture is served, as opposed to refused by name. */
|
|
33892
|
+
scrub: boolean(),
|
|
33893
|
+
/** Deliverable rates, ascending, always containing `1`. The surface draws its
|
|
33894
|
+
* picker from this and from NOTHING else (D612, D620, D621). `0` is not a
|
|
33895
|
+
* member: pause is the absence of a rate. */
|
|
33896
|
+
rates: array(number().positive()).min(1).readonly(),
|
|
33897
|
+
/** TRUE when a read of this source HOLDS the camera's only playback session.
|
|
33898
|
+
* A surface with this set makes at most ONE read at a time and draws no
|
|
33899
|
+
* scrub-thumbnail strip, no hover preview, no prefetch and no background
|
|
33900
|
+
* refresh. The precedent is exact and expensive: filling one screen of
|
|
33901
|
+
* Hikvision thumbnails at 1.01× realtime consumed fifteen minutes of that
|
|
33902
|
+
* camera's only playback session (1.2.126, reported within minutes), and a
|
|
33903
|
+
* timeline is a screenful of reads by construction. */
|
|
33904
|
+
exclusive: boolean()
|
|
33905
|
+
});
|
|
33906
|
+
/**
|
|
33907
|
+
* How to PLAY the instant that was asked for, from the chosen source.
|
|
33908
|
+
*
|
|
33909
|
+
* No new media transport is built for onboard sources: the `clip` arm is a
|
|
33910
|
+
* DELEGATION to the `videoclips` transport that vendor already has (D597 /
|
|
33911
|
+
* D616 / D617). The onboard half of this collection is a PROJECTION of
|
|
33912
|
+
* `videoclips` for coverage and a delegation to it for bytes.
|
|
33913
|
+
*/
|
|
33914
|
+
var RecordingPlaybackSchema = discriminatedUnion("kind", [
|
|
33915
|
+
object({
|
|
33916
|
+
kind: literal("hls"),
|
|
33917
|
+
manifest: RecordingManifestSchema
|
|
33918
|
+
}),
|
|
33919
|
+
object({
|
|
33920
|
+
kind: literal("clip"),
|
|
33921
|
+
/** The `videoclips` source namespace this clip id belongs to. */
|
|
33922
|
+
source: string(),
|
|
33923
|
+
clipId: string(),
|
|
33924
|
+
/** Where this clip actually STARTS. On a `seek: 'segment'` source the
|
|
33925
|
+
* playhead lands here, not at the requested instant — the surface must be
|
|
33926
|
+
* TOLD, not left to discover it from a burned-in OSD. */
|
|
33927
|
+
startsAtMs: number()
|
|
33928
|
+
}),
|
|
33929
|
+
object({
|
|
33930
|
+
kind: literal("none"),
|
|
33931
|
+
reason: string()
|
|
33932
|
+
})
|
|
33933
|
+
]);
|
|
33934
|
+
var recordingCapability = {
|
|
33935
|
+
name: "recording",
|
|
33936
|
+
scope: "device",
|
|
33937
|
+
/** Several sources per camera, listed beside each other. The mount stays
|
|
33938
|
+
* `device-scoped` — see `resolveCapMount`'s ordering and D554: per-device
|
|
33939
|
+
* wins over the global collection fan-out. */
|
|
33940
|
+
mode: "collection",
|
|
33941
|
+
kind: "wrapper",
|
|
33942
|
+
defaultActive: true,
|
|
33943
|
+
/** Recorded coverage is a property of a camera — the cap is meaningless on a
|
|
33944
|
+
* sensor, a button or an event emitter, and the `defaultActive` auto-bind
|
|
33945
|
+
* reads this to decide which devices it may claim. */
|
|
33946
|
+
deviceTypes: [DeviceType.Camera],
|
|
33947
|
+
methods: {
|
|
33948
|
+
/**
|
|
33949
|
+
* The sources this camera has, WITH the reason any of them cannot answer.
|
|
33950
|
+
*
|
|
33951
|
+
* Asked separately from `getAvailability` because an empty bar is
|
|
33952
|
+
* ambiguous and this is the only place the ambiguity is resolved: every
|
|
33953
|
+
* bound provider contributes its own rows, and a provider that could not be
|
|
33954
|
+
* reached at all still produces one row saying so. A surface that draws "no
|
|
33955
|
+
* recordings" without reading this is drawing a guess.
|
|
33956
|
+
*
|
|
33957
|
+
* The ONLY method here without a `provider` — it is the call that tells the
|
|
33958
|
+
* caller what to put there.
|
|
33959
|
+
*/
|
|
33960
|
+
listSources: method(object({ deviceId: number() }), array(RecordingSourceSchema).readonly(), {
|
|
33961
|
+
kind: "query",
|
|
33962
|
+
auth: "protected"
|
|
33963
|
+
}),
|
|
33964
|
+
/**
|
|
33965
|
+
* Recorded coverage of `[fromMs, toMs)` at ONE source — the timeline bar.
|
|
33966
|
+
*
|
|
33967
|
+
* `protected`, not `admin`: a per-camera read is exactly what a camera
|
|
33968
|
+
* viewer is FOR, and the device-scoped mount routes through
|
|
33969
|
+
* `getProviderForDevice`, so a camera outside the caller's scope is refused
|
|
33970
|
+
* before a provider is reached.
|
|
33971
|
+
*/
|
|
33972
|
+
getAvailability: method(object({
|
|
33973
|
+
deviceId: number(),
|
|
33974
|
+
/**
|
|
33975
|
+
* WHICH provider to ask — the `addonId` a {@link RecordingSourceSchema}
|
|
33976
|
+
* row carries, never a source id and never a list. **REQUIRED**, in the
|
|
33977
|
+
* schema, where the generated types make it unomittable rather than
|
|
33978
|
+
* merely discouraged (D554 amended).
|
|
33979
|
+
*
|
|
33980
|
+
* It was learned the expensive way on `videoclips.listClips`: measured
|
|
33981
|
+
* on the live hub 2026-09-20, device 592 bound to `recorder` AND
|
|
33982
|
+
* `provider-reolink`, a bare call with `limit: 3` answered SIX rows,
|
|
33983
|
+
* three from each source, merged — `device-collection-dispatch.ts`
|
|
33984
|
+
* leaves an unpinned fan-out un-narrowed, so absence buys the union the
|
|
33985
|
+
* method exists not to be. An un-narrowed `getAvailability` would do
|
|
33986
|
+
* that to a TIMELINE: our ranges and the card's clips unioned into one
|
|
33987
|
+
* bar, which is "two sources are never drawn together" broken in the
|
|
33988
|
+
* one place it matters most.
|
|
33989
|
+
*
|
|
33990
|
+
* A provider the device is not bound to is refused BY NAME (D552's
|
|
33991
|
+
* `rejectUnresolvedAddonPin`), never answered by another one.
|
|
33992
|
+
*/
|
|
33993
|
+
provider: string().min(1),
|
|
33994
|
+
fromMs: number(),
|
|
33995
|
+
toMs: number(),
|
|
33996
|
+
/**
|
|
33997
|
+
* Answer for THIS profile instead of the source's preferred one (D433).
|
|
33998
|
+
* Absent keeps the timeline's behaviour — one bar, one profile, one set
|
|
33999
|
+
* of reads. `profilesWithFootage` on the answer says what may be asked
|
|
34000
|
+
* for.
|
|
34001
|
+
*/
|
|
34002
|
+
profile: string().optional()
|
|
34003
|
+
}), RecordingAvailabilitySchema, {
|
|
34004
|
+
kind: "query",
|
|
34005
|
+
auth: "protected"
|
|
34006
|
+
}),
|
|
34007
|
+
/** Which calendar days in [fromMs,toMs) this source has ≥1 recording in,
|
|
34008
|
+
* bucketed by the client's local day (`tzOffsetMinutes` = minutes to add
|
|
34009
|
+
* to UTC). Drives the theater date-picker's day dots. `provider` is
|
|
34010
|
+
* REQUIRED for the reason `getAvailability` states. */
|
|
34011
|
+
getDaysWithRecordings: method(object({
|
|
34012
|
+
deviceId: number(),
|
|
34013
|
+
provider: string().min(1),
|
|
34014
|
+
fromMs: number(),
|
|
34015
|
+
toMs: number(),
|
|
34016
|
+
tzOffsetMinutes: number()
|
|
34017
|
+
}), RecordingDaysSchema, {
|
|
34018
|
+
kind: "query",
|
|
34019
|
+
auth: "protected"
|
|
34020
|
+
}),
|
|
34021
|
+
/**
|
|
34022
|
+
* How to PLAY `[fromMs, toMs)` at this source.
|
|
34023
|
+
*
|
|
34024
|
+
* It was `getPlaybackManifest`, and the rename is not cosmetic: a
|
|
34025
|
+
* "manifest" is an HLS master playlist, which is a property of OUR recorder
|
|
34026
|
+
* and of nothing else. Keeping the name would make every onboard
|
|
34027
|
+
* implementation a lie in its signature. The old shape survives verbatim
|
|
34028
|
+
* inside the union's `hls` arm, so the recorder's implementation is
|
|
34029
|
+
* unchanged behind it.
|
|
34030
|
+
*/
|
|
34031
|
+
getPlayback: method(object({
|
|
34032
|
+
deviceId: number(),
|
|
34033
|
+
provider: string().min(1),
|
|
34034
|
+
fromMs: number(),
|
|
34035
|
+
toMs: number(),
|
|
34036
|
+
profile: CamProfileSchema.optional()
|
|
34037
|
+
}), RecordingPlaybackSchema, {
|
|
34038
|
+
kind: "query",
|
|
34039
|
+
auth: "protected"
|
|
34040
|
+
}),
|
|
34041
|
+
/**
|
|
34042
|
+
* What this (camera, source) can actually DO — asked before anything is
|
|
34043
|
+
* drawn. See {@link RecordingSourceOptionsSchema}; a constant the surface
|
|
34044
|
+
* keeps instead is the second authority D612 exists to end.
|
|
34045
|
+
*/
|
|
34046
|
+
getPlaybackOptions: method(object({
|
|
34047
|
+
deviceId: number(),
|
|
34048
|
+
provider: string().min(1)
|
|
34049
|
+
}), RecordingSourceOptionsSchema, {
|
|
34050
|
+
kind: "query",
|
|
34051
|
+
auth: "protected"
|
|
34052
|
+
})
|
|
34053
|
+
}
|
|
34054
|
+
};
|
|
34055
|
+
/**
|
|
34056
|
+
* `recording-archive` — OUR archive, and the intent that fills it.
|
|
34057
|
+
*
|
|
34058
|
+
* The system-singleton half of the 2026-09-24 cut (D625). `recording` used to
|
|
34059
|
+
* be one 33-method system singleton holding two unrelated subjects: three
|
|
34060
|
+
* per-camera READS about coverage and playback, and everything else — storage
|
|
34061
|
+
* locations, retention, relocation, rebalance, the ops log, the placement
|
|
34062
|
+
* table and the byte-plane primitives our scrub and export are built on.
|
|
34063
|
+
*
|
|
34064
|
+
* The reads became a device-scoped COLLECTION, so a camera's own card can be a
|
|
34065
|
+
* source beside ours (`recording.cap.ts`). Everything that is about OUR store,
|
|
34066
|
+
* or unimplementable by a camera, stayed here.
|
|
34067
|
+
*
|
|
34068
|
+
* ## On the name
|
|
34069
|
+
*
|
|
34070
|
+
* `recording-storage` was the obvious choice and is wrong: this cap also holds
|
|
34071
|
+
* `getDeviceConfig`/`setDeviceConfig`, which are recording INTENT — bands,
|
|
34072
|
+
* retention, the D62 switch authority — and a name that says "storage" invites
|
|
34073
|
+
* the next reader to move them out again. An archive is a thing we keep, and
|
|
34074
|
+
* what we keep it under is a policy; the name covers both halves honestly and
|
|
34075
|
+
* sits in the existing family (`recording-onboard`, `recording-export`,
|
|
34076
|
+
* `recording-signal`).
|
|
34077
|
+
*
|
|
34078
|
+
* ## What must NOT happen to it
|
|
34079
|
+
*
|
|
34080
|
+
* It stays a SINGLETON. It is registered by `recorder`, which is
|
|
34081
|
+
* `placement: 'any-node'` and runs on every recording node; the hub dispatches
|
|
34082
|
+
* to one of them. Putting the ledger, the placement table or the relocation
|
|
34083
|
+
* jobs behind a fan-out is the one genuinely dangerous move in this cut.
|
|
34084
|
+
*
|
|
34085
|
+
* `getDeviceConfig` / `setDeviceConfig` in particular are the D62 recording
|
|
34086
|
+
* authority (`CameraSwitch.authority`). If a write reached a different provider
|
|
34087
|
+
* than the read — which a collection fan-out permits — two authorities would
|
|
34088
|
+
* decide when one camera records, and the symptom (recording silently off, or
|
|
34089
|
+
* a `bands` array clobbered by a partial write) is durable and silent. Keeping
|
|
34090
|
+
* them here means the worst case during a rollout is a 412: the switch refuses
|
|
34091
|
+
* to flip and SAYS so. **Do not move them into the collection, at any point,
|
|
34092
|
+
* for any reason.**
|
|
34093
|
+
*
|
|
34094
|
+
* ## The two batch reads
|
|
34095
|
+
*
|
|
34096
|
+
* `getAvailabilityBatch` / `getDaysWithRecordingsBatch` take `deviceIds:
|
|
34097
|
+
* number[]` with no single `deviceId`, and a device-scoped mount routes
|
|
34098
|
+
* through `getProviderForDevice(deviceId)` — there is nothing for it to route
|
|
34099
|
+
* on. They stay here, and on this cap the batch is explicitly OURS: a grid has
|
|
34100
|
+
* no per-camera picker, and a caller that wants another source's coverage asks
|
|
34101
|
+
* `recording.getAvailability` per device with that source's `provider`.
|
|
34102
|
+
*/
|
|
34103
|
+
var RecordingStatusSchema = object({
|
|
34104
|
+
deviceId: number(),
|
|
34105
|
+
enabled: boolean(),
|
|
34106
|
+
/** THE derived storage mode, from the one definition
|
|
34107
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
34108
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
34109
|
+
activeMode: RecordingStorageModeSchema,
|
|
34110
|
+
nodeId: string(),
|
|
34111
|
+
storageBytes: number()
|
|
34112
|
+
});
|
|
33804
34113
|
/**
|
|
33805
34114
|
* One camera's row in a `getAvailabilityBatch` answer.
|
|
33806
34115
|
*
|
|
33807
|
-
* `ranges` is EXACTLY what `getAvailability` returns for that camera
|
|
33808
|
-
* batch collapses the transport, not the work — plus the
|
|
33809
|
-
*
|
|
34116
|
+
* `ranges` is EXACTLY what `recording.getAvailability` returns for that camera
|
|
34117
|
+
* at OUR source — the batch collapses the transport, not the work — plus the
|
|
34118
|
+
* `read` mark the singular answer now carries too (D625):
|
|
33810
34119
|
*
|
|
33811
34120
|
* - `read: 'read'` — answered. `ranges: []` means "read, and this camera has
|
|
33812
34121
|
* no footage in the window", which is a real claim.
|
|
@@ -33838,22 +34147,6 @@ var RecordingDaysForDeviceSchema = object({
|
|
|
33838
34147
|
/** Local-midnight epochs (UTC ms) of days that have ≥1 recorded segment. */
|
|
33839
34148
|
days: array(number()).readonly()
|
|
33840
34149
|
});
|
|
33841
|
-
var RecordingManifestSchema = object({
|
|
33842
|
-
deviceId: number(),
|
|
33843
|
-
/** Local filesystem path to the master playlist; null when no recording exists for the requested range. */
|
|
33844
|
-
localMasterPath: string().nullable(),
|
|
33845
|
-
/** HTTP(S) URL to the master playlist on the recording node's playback server
|
|
33846
|
-
* (the PRIMARY candidate); null when no recording / server. Carries the
|
|
33847
|
-
* scoped playback token in its path. */
|
|
33848
|
-
playbackUrl: string().nullable(),
|
|
33849
|
-
/**
|
|
33850
|
-
* Candidate master-playlist URLs the client tries in order (LAN first, then
|
|
33851
|
-
* remote — Tailscale/Cloudflare if the operator configured extra hosts), each
|
|
33852
|
-
* carrying the same scoped token. `playbackUrl` is the first entry. Empty when
|
|
33853
|
-
* there is no recording / server.
|
|
33854
|
-
*/
|
|
33855
|
-
playbackEndpoints: array(string())
|
|
33856
|
-
});
|
|
33857
34150
|
/**
|
|
33858
34151
|
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
33859
34152
|
* across every profile and every resolvable location on this node.
|
|
@@ -34111,33 +34404,22 @@ var ReadWindowBytesResultSchema = discriminatedUnion("kind", [object({
|
|
|
34111
34404
|
* not a retry hint (retrying the same window would refuse again). */
|
|
34112
34405
|
segmentEndMs: number()
|
|
34113
34406
|
})]);
|
|
34114
|
-
var
|
|
34115
|
-
name: "recording",
|
|
34407
|
+
var recordingArchiveCapability = {
|
|
34408
|
+
name: "recording-archive",
|
|
34116
34409
|
scope: "system",
|
|
34117
34410
|
mode: "singleton",
|
|
34411
|
+
/** Moves here with the config pair — the derived Recording settings
|
|
34412
|
+
* section is a view over `getDeviceConfig`/`setDeviceConfig` (D14), and
|
|
34413
|
+
* those did not move (D625). */
|
|
34118
34414
|
exposesDeviceSettings: true,
|
|
34119
34415
|
status: {
|
|
34120
34416
|
schema: RecordingStatusSchema,
|
|
34121
34417
|
kind: "command-driven"
|
|
34122
34418
|
},
|
|
34123
34419
|
methods: {
|
|
34124
|
-
getAvailability: method(object({
|
|
34125
|
-
deviceId: number(),
|
|
34126
|
-
fromMs: number(),
|
|
34127
|
-
toMs: number(),
|
|
34128
|
-
/**
|
|
34129
|
-
* Answer for THIS profile instead of the preferred one (D433). Absent
|
|
34130
|
-
* keeps the timeline's behaviour — one bar, one profile, one set of
|
|
34131
|
-
* reads. `profilesWithFootage` on the answer says what may be asked
|
|
34132
|
-
* for.
|
|
34133
|
-
*/
|
|
34134
|
-
profile: string().optional()
|
|
34135
|
-
}), RecordingAvailabilitySchema, {
|
|
34136
|
-
kind: "query",
|
|
34137
|
-
auth: "protected"
|
|
34138
|
-
}),
|
|
34139
34420
|
/**
|
|
34140
|
-
* `getAvailability` for a SET of cameras, in one round trip
|
|
34421
|
+
* `recording.getAvailability` for a SET of cameras, in one round trip, at
|
|
34422
|
+
* OUR source.
|
|
34141
34423
|
*
|
|
34142
34424
|
* A multi-camera timeline re-asks availability for every camera in the grid
|
|
34143
34425
|
* on every day change; fanned out that is one request per camera for N
|
|
@@ -34145,6 +34427,13 @@ var recordingCapability = {
|
|
|
34145
34427
|
* `availabilityProfileFor` + `rangesIn`, run concurrently inside the
|
|
34146
34428
|
* recorder) — only the transport collapses.
|
|
34147
34429
|
*
|
|
34430
|
+
* It lives on the ARCHIVE, not on the `recording` collection, because it
|
|
34431
|
+
* takes `deviceIds` with no single `deviceId` and a device-scoped mount has
|
|
34432
|
+
* nothing to route on (D625 §10.2). The consequence is stated rather than
|
|
34433
|
+
* hidden: the batch answers for OURS. A caller that needs another source's
|
|
34434
|
+
* coverage asks `recording.getAvailability` per device, naming that
|
|
34435
|
+
* source's provider.
|
|
34436
|
+
*
|
|
34148
34437
|
* `protected` for the same reason the singular method is: every id in
|
|
34149
34438
|
* `deviceIds` is a device reference, so the F1 #3 gate refuses any camera
|
|
34150
34439
|
* outside the caller's scope — one id out of scope refuses the CALL, it
|
|
@@ -34162,20 +34451,10 @@ var recordingCapability = {
|
|
|
34162
34451
|
kind: "query",
|
|
34163
34452
|
auth: "protected"
|
|
34164
34453
|
}),
|
|
34165
|
-
/** Which calendar days in [fromMs,toMs) have ≥1 recorded segment, bucketed by
|
|
34166
|
-
* the client's local day (`tzOffsetMinutes` = minutes to add to UTC). Drives
|
|
34167
|
-
* the theater date-picker's day dots. */
|
|
34168
|
-
getDaysWithRecordings: method(object({
|
|
34169
|
-
deviceId: number(),
|
|
34170
|
-
fromMs: number(),
|
|
34171
|
-
toMs: number(),
|
|
34172
|
-
tzOffsetMinutes: number()
|
|
34173
|
-
}), RecordingDaysSchema, {
|
|
34174
|
-
kind: "query",
|
|
34175
|
-
auth: "protected"
|
|
34176
|
-
}),
|
|
34177
34454
|
/**
|
|
34178
|
-
* `getDaysWithRecordings` for a SET of cameras, in one round
|
|
34455
|
+
* `recording.getDaysWithRecordings` for a SET of cameras, in one round
|
|
34456
|
+
* trip, at OUR source. Same placement argument as
|
|
34457
|
+
* {@link getAvailabilityBatch}.
|
|
34179
34458
|
*
|
|
34180
34459
|
* The cheapest question in the product, asked once per camera per month
|
|
34181
34460
|
* change. One directory read per day per camera at the owner, unchanged;
|
|
@@ -34194,14 +34473,6 @@ var recordingCapability = {
|
|
|
34194
34473
|
kind: "query",
|
|
34195
34474
|
auth: "protected"
|
|
34196
34475
|
}),
|
|
34197
|
-
getPlaybackManifest: method(object({
|
|
34198
|
-
deviceId: number(),
|
|
34199
|
-
fromMs: number(),
|
|
34200
|
-
toMs: number()
|
|
34201
|
-
}), RecordingManifestSchema, {
|
|
34202
|
-
kind: "query",
|
|
34203
|
-
auth: "protected"
|
|
34204
|
-
}),
|
|
34205
34476
|
getStorageUsage: method(object({}), RecordingStorageUsageSchema, {
|
|
34206
34477
|
kind: "query",
|
|
34207
34478
|
auth: "admin"
|
|
@@ -34217,6 +34488,10 @@ var recordingCapability = {
|
|
|
34217
34488
|
* value (D315, D393, D590). It carries schedules and retention, no secret,
|
|
34218
34489
|
* and the per-device gate in `scope-access.ts` still applies; `setDeviceConfig`
|
|
34219
34490
|
* stays `admin`.
|
|
34491
|
+
*
|
|
34492
|
+
* It is a SINGLETON method and stays one (D625 §16.2): it is the D62
|
|
34493
|
+
* recording authority, and an authority that several providers could answer
|
|
34494
|
+
* is the "two knobs over one decision" D62 forbids.
|
|
34220
34495
|
*/
|
|
34221
34496
|
getDeviceConfig: method(object({ deviceId: number() }), RecordingConfigSchema, {
|
|
34222
34497
|
kind: "query",
|
|
@@ -34224,7 +34499,13 @@ var recordingCapability = {
|
|
|
34224
34499
|
}),
|
|
34225
34500
|
/** Locate footage at a wall-clock instant: the covering segment's window,
|
|
34226
34501
|
* or a gap with the forward nearest covered edge. Used by a feeder running
|
|
34227
|
-
* in another addon process to seek recorded footage over tRPC.
|
|
34502
|
+
* in another addon process to seek recorded footage over tRPC.
|
|
34503
|
+
*
|
|
34504
|
+
* BYTE PLANE: defined by `mfra` byte ranges over OUR own MP4 segment tree.
|
|
34505
|
+
* There is no vendor-neutral statement of it, its only callers are feeders
|
|
34506
|
+
* in other addon processes (the stream broker, the replay-clip source),
|
|
34507
|
+
* and an onboard source that ever needs bytes delegates to the
|
|
34508
|
+
* `videoclips` transport its vendor already has (D625 §9.3, §10.5). */
|
|
34228
34509
|
locateSegment: method(object({
|
|
34229
34510
|
deviceId: number(),
|
|
34230
34511
|
profile: string(),
|
|
@@ -34957,6 +35238,307 @@ var recordingExportCapability = {
|
|
|
34957
35238
|
}
|
|
34958
35239
|
};
|
|
34959
35240
|
/**
|
|
35241
|
+
* Vendor-neutral **onboard** recording + storage cap — what the CAMERA
|
|
35242
|
+
* writes to the CAMERA's own card, on the camera's own schedule.
|
|
35243
|
+
*
|
|
35244
|
+
* This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
|
|
35245
|
+
* footage ledger, our storage locations, our retention. This one has a
|
|
35246
|
+
* different authority — the camera's firmware — and per D62 it stores
|
|
35247
|
+
* nothing of its own. Every value here is read from the camera and every
|
|
35248
|
+
* write goes back to the camera; there is no CamStack-side mirror that
|
|
35249
|
+
* could disagree with the device.
|
|
35250
|
+
*
|
|
35251
|
+
* ## One shape, two firmwares
|
|
35252
|
+
*
|
|
35253
|
+
* Measured 2026-09-22 against the live fleet:
|
|
35254
|
+
*
|
|
35255
|
+
* | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
|
|
35256
|
+
* | --- | --- | --- |
|
|
35257
|
+
* | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
|
|
35258
|
+
* | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
|
|
35259
|
+
* | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
|
|
35260
|
+
* | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
|
|
35261
|
+
* | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
|
|
35262
|
+
* | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
|
|
35263
|
+
* | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
|
|
35264
|
+
* | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
|
|
35265
|
+
*
|
|
35266
|
+
* The two schedule models look different and are the same thing in
|
|
35267
|
+
* different coordinates: both answer "for this trigger, during which
|
|
35268
|
+
* weekly windows does the camera record". {@link RecordWindow} is that
|
|
35269
|
+
* question in one shape — Hikvision's ranges map straight onto it,
|
|
35270
|
+
* Reolink's mask expands into hour-aligned windows.
|
|
35271
|
+
*
|
|
35272
|
+
* ## Union, not intersection
|
|
35273
|
+
*
|
|
35274
|
+
* **The same fields exist on every camera.** What differs per device is
|
|
35275
|
+
* which VALUES that device accepts, and that is what {@link
|
|
35276
|
+
* RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
|
|
35277
|
+
* per field plus the schedule's own limits. A control a camera cannot
|
|
35278
|
+
* honour is rendered DISABLED WITH ITS REASON, never missing and never
|
|
35279
|
+
* dead: disabled must not look like broken.
|
|
35280
|
+
*
|
|
35281
|
+
* ## Refusal by name
|
|
35282
|
+
*
|
|
35283
|
+
* A write a camera cannot honour is refused with a sentence the operator
|
|
35284
|
+
* can read — never accepted and dropped. Both providers refuse through
|
|
35285
|
+
* {@link describeOnboardRefusal}, so the vocabulary is one function and
|
|
35286
|
+
* one test, not two hand-written vendor opinions.
|
|
35287
|
+
*
|
|
35288
|
+
* Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
|
|
35289
|
+
* `getOptions` advertises per-camera availability, `getStatus` (auto-
|
|
35290
|
+
* injected from `status`) reports the live values, and a single
|
|
35291
|
+
* `setSettings` mutation applies a partial change. No hand-written
|
|
35292
|
+
* settings-contribution methods.
|
|
35293
|
+
*/
|
|
35294
|
+
/**
|
|
35295
|
+
* What makes the camera start recording during a window.
|
|
35296
|
+
*
|
|
35297
|
+
* The union of both vendors' vocabularies. `continuous` is Hikvision's
|
|
35298
|
+
* `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
|
|
35299
|
+
* object-class triggers are Reolink-only today and the smart-event ones
|
|
35300
|
+
* (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
|
|
35301
|
+
* firmwares measured — a camera that cannot record on a trigger simply
|
|
35302
|
+
* does not list it in `options.schedule.triggers`, and a window naming
|
|
35303
|
+
* it is REFUSED, not dropped.
|
|
35304
|
+
*/
|
|
35305
|
+
var RecordTriggerSchema = _enum([
|
|
35306
|
+
"continuous",
|
|
35307
|
+
"motion",
|
|
35308
|
+
"person",
|
|
35309
|
+
"vehicle",
|
|
35310
|
+
"animal",
|
|
35311
|
+
"lineCrossing",
|
|
35312
|
+
"intrusion",
|
|
35313
|
+
"loitering",
|
|
35314
|
+
"alarmInput"
|
|
35315
|
+
]);
|
|
35316
|
+
/**
|
|
35317
|
+
* One weekly recording window: "on `day`, from `startMinute` to
|
|
35318
|
+
* `endMinute`, record on `trigger`".
|
|
35319
|
+
*
|
|
35320
|
+
* `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
|
|
35321
|
+
* both firmwares enumerate). Minutes are local camera time since
|
|
35322
|
+
* midnight; `endMinute` may be 1440, meaning end of day — that is
|
|
35323
|
+
* Hikvision's literal `24:00` and Reolink's 24th mask slot, and
|
|
35324
|
+
* collapsing it to 0 would turn a whole-day window into an empty one.
|
|
35325
|
+
*/
|
|
35326
|
+
var RecordWindowSchema = object({
|
|
35327
|
+
trigger: RecordTriggerSchema,
|
|
35328
|
+
day: number().int().min(0).max(6),
|
|
35329
|
+
startMinute: number().int().min(0).max(1439),
|
|
35330
|
+
endMinute: number().int().min(1).max(1440)
|
|
35331
|
+
});
|
|
35332
|
+
/** Status of one physical volume, as the camera itself describes it. */
|
|
35333
|
+
var OnboardStorageVolumeSchema = object({
|
|
35334
|
+
/** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
|
|
35335
|
+
id: string(),
|
|
35336
|
+
/** The camera's own name for it, when it gives one (`hddName`). */
|
|
35337
|
+
label: string().optional(),
|
|
35338
|
+
status: _enum([
|
|
35339
|
+
"ok",
|
|
35340
|
+
"unformatted",
|
|
35341
|
+
"error",
|
|
35342
|
+
"offline",
|
|
35343
|
+
"unknown"
|
|
35344
|
+
]),
|
|
35345
|
+
/**
|
|
35346
|
+
* Total size in MB, or **null when the camera did not say**.
|
|
35347
|
+
*
|
|
35348
|
+
* Never 0 for an unreadable value: a measurement that failed is not a
|
|
35349
|
+
* measurement (D393), and a card whose size is unknown must not be
|
|
35350
|
+
* rendered as a card of size zero.
|
|
35351
|
+
*/
|
|
35352
|
+
capacityMb: number().nullable(),
|
|
35353
|
+
/**
|
|
35354
|
+
* Free space in MB, or null when unknown.
|
|
35355
|
+
*
|
|
35356
|
+
* **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
|
|
35357
|
+
* 1439 both report exactly 11776 MB free — the fixed reserve a looping
|
|
35358
|
+
* card converges on once it has wrapped. At loop steady state the
|
|
35359
|
+
* number is identical whether the camera recorded yesterday or stopped
|
|
35360
|
+
* a month ago.
|
|
35361
|
+
*/
|
|
35362
|
+
freeMb: number().nullable(),
|
|
35363
|
+
/** True when the camera reports the volume writable (`property` RW). */
|
|
35364
|
+
writable: boolean().optional()
|
|
35365
|
+
});
|
|
35366
|
+
object({
|
|
35367
|
+
storage: discriminatedUnion("kind", [
|
|
35368
|
+
object({
|
|
35369
|
+
kind: literal("present"),
|
|
35370
|
+
volumes: array(OnboardStorageVolumeSchema)
|
|
35371
|
+
}),
|
|
35372
|
+
object({
|
|
35373
|
+
kind: literal("absent"),
|
|
35374
|
+
reason: string()
|
|
35375
|
+
}),
|
|
35376
|
+
object({
|
|
35377
|
+
kind: literal("unknown"),
|
|
35378
|
+
reason: string()
|
|
35379
|
+
})
|
|
35380
|
+
]),
|
|
35381
|
+
tracks: array(object({
|
|
35382
|
+
id: string(),
|
|
35383
|
+
enabled: boolean(),
|
|
35384
|
+
isVideo: boolean(),
|
|
35385
|
+
/** From the camera's own track description. Null when it does not say. */
|
|
35386
|
+
codec: string().nullable(),
|
|
35387
|
+
resolution: string().nullable(),
|
|
35388
|
+
/** Per-track overwrite flag, where the firmware keeps it per track. */
|
|
35389
|
+
overwriteWhenFull: boolean().nullable()
|
|
35390
|
+
})),
|
|
35391
|
+
/**
|
|
35392
|
+
* The track the write path targets — the enabled VIDEO one. Null when
|
|
35393
|
+
* no track could be identified, which is itself a refusal reason.
|
|
35394
|
+
*/
|
|
35395
|
+
primaryTrackId: string().nullable(),
|
|
35396
|
+
/** Master "record to the card at all" switch. */
|
|
35397
|
+
enabled: boolean().nullable(),
|
|
35398
|
+
overwriteWhenFull: boolean().nullable(),
|
|
35399
|
+
preRecordSec: number().nullable(),
|
|
35400
|
+
postRecordSec: number().nullable(),
|
|
35401
|
+
/** Length of one recorded file, in minutes. */
|
|
35402
|
+
segmentMinutes: number().nullable(),
|
|
35403
|
+
/** The primary track's weekly windows, flattened. */
|
|
35404
|
+
windows: array(RecordWindowSchema),
|
|
35405
|
+
/**
|
|
35406
|
+
* How many windows the camera described that CamStack could NOT read —
|
|
35407
|
+
* an unrecognised trigger, an unparseable clock, a weekday it does not
|
|
35408
|
+
* name.
|
|
35409
|
+
*
|
|
35410
|
+
* A dropped window is work the reader threw away, and a schedule that
|
|
35411
|
+
* silently shows fewer rows than the camera holds is how an operator
|
|
35412
|
+
* saves back a schedule shorter than the one they were looking at
|
|
35413
|
+
* (D391). Non-zero means the window list is INCOMPLETE and a write
|
|
35414
|
+
* that replaces it would delete what was not shown — which is why a
|
|
35415
|
+
* provider reporting a non-zero count also reports the schedule as not
|
|
35416
|
+
* writable.
|
|
35417
|
+
*/
|
|
35418
|
+
unreadableWindows: number(),
|
|
35419
|
+
/**
|
|
35420
|
+
* The camera is scheduled to record and has NO usable storage.
|
|
35421
|
+
*
|
|
35422
|
+
* A first-class fact because it is the fleet's most common silent
|
|
35423
|
+
* defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
|
|
35424
|
+
* to a card that is not there. Neither the schedule nor the storage
|
|
35425
|
+
* read says anything wrong on its own; only the pair does.
|
|
35426
|
+
*/
|
|
35427
|
+
recordingToNowhere: boolean(),
|
|
35428
|
+
lastFetchedAt: number()
|
|
35429
|
+
});
|
|
35430
|
+
/** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
|
|
35431
|
+
var RangeSchema = object({
|
|
35432
|
+
min: number(),
|
|
35433
|
+
max: number(),
|
|
35434
|
+
step: number()
|
|
35435
|
+
});
|
|
35436
|
+
/**
|
|
35437
|
+
* The values a camera actually takes for a numeric field, when they are a SET
|
|
35438
|
+
* rather than a range.
|
|
35439
|
+
*
|
|
35440
|
+
* `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
|
|
35441
|
+
* (I91DN) on 2026-09-22 by writing each value and reading it back:
|
|
35442
|
+
*
|
|
35443
|
+
* - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
|
|
35444
|
+
* camera's "no limit" — `-1` and `4294967295` both land on it);
|
|
35445
|
+
* - post-record: `5, 10, 30, 60, 120, 300, 600`.
|
|
35446
|
+
*
|
|
35447
|
+
* Neither is expressible as a step: the first has a sentinel two billion away
|
|
35448
|
+
* from its neighbours, the second doubles and then jumps. A range that tried
|
|
35449
|
+
* would forbid values the camera takes AND permit values it silently replaces
|
|
35450
|
+
* with 5 — wrong in both directions at once.
|
|
35451
|
+
*
|
|
35452
|
+
* `sentinel` names the member that is not a duration, so a surface can render
|
|
35453
|
+
* "no limit" instead of `2147483647` seconds.
|
|
35454
|
+
*/
|
|
35455
|
+
var AllowedValuesSchema = object({
|
|
35456
|
+
values: array(number()).min(1),
|
|
35457
|
+
sentinel: object({
|
|
35458
|
+
value: number(),
|
|
35459
|
+
meaning: _enum(["no-limit", "disabled"])
|
|
35460
|
+
}).optional()
|
|
35461
|
+
});
|
|
35462
|
+
/**
|
|
35463
|
+
* Per-field availability on ONE camera.
|
|
35464
|
+
*
|
|
35465
|
+
* The field exists on every camera — this says whether this one can be
|
|
35466
|
+
* read and whether it can be written, and `reason` says why not when
|
|
35467
|
+
* either is false. The UI renders the control DISABLED with the reason
|
|
35468
|
+
* rather than hiding it, so a limitation is legible instead of looking
|
|
35469
|
+
* like a missing feature.
|
|
35470
|
+
*/
|
|
35471
|
+
var OnboardFieldSupportSchema = object({
|
|
35472
|
+
readable: boolean(),
|
|
35473
|
+
writable: boolean(),
|
|
35474
|
+
/** Required whenever `readable` or `writable` is false. */
|
|
35475
|
+
reason: string().optional()
|
|
35476
|
+
});
|
|
35477
|
+
/** What this camera's schedule model can express. */
|
|
35478
|
+
var OnboardScheduleSupportSchema = object({
|
|
35479
|
+
support: OnboardFieldSupportSchema,
|
|
35480
|
+
/**
|
|
35481
|
+
* The smallest time step the camera can express, in minutes.
|
|
35482
|
+
*
|
|
35483
|
+
* Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
|
|
35484
|
+
* 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
|
|
35485
|
+
* window whose edges are not a multiple of this is REFUSED rather than
|
|
35486
|
+
* quietly rounded — rounding is how an operator's 06:30 becomes 06:00
|
|
35487
|
+
* and nothing says so.
|
|
35488
|
+
*/
|
|
35489
|
+
granularityMinutes: number(),
|
|
35490
|
+
/** Triggers this camera can record on. A window naming another is refused. */
|
|
35491
|
+
triggers: array(RecordTriggerSchema),
|
|
35492
|
+
/**
|
|
35493
|
+
* False when the camera stores ONE trigger per time range, so two
|
|
35494
|
+
* windows overlapping on the same day cannot carry different triggers.
|
|
35495
|
+
* True on Reolink, whose mask is per-trigger and independent.
|
|
35496
|
+
*/
|
|
35497
|
+
supportsOverlappingTriggers: boolean()
|
|
35498
|
+
});
|
|
35499
|
+
var RecordingOnboardOptionsSchema = object({
|
|
35500
|
+
enabled: OnboardFieldSupportSchema,
|
|
35501
|
+
overwriteWhenFull: OnboardFieldSupportSchema,
|
|
35502
|
+
preRecordSec: OnboardFieldSupportSchema,
|
|
35503
|
+
preRecordSecRange: RangeSchema.optional(),
|
|
35504
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
35505
|
+
preRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
35506
|
+
postRecordSec: OnboardFieldSupportSchema,
|
|
35507
|
+
postRecordSecRange: RangeSchema.optional(),
|
|
35508
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
35509
|
+
postRecordSecAllowed: AllowedValuesSchema.optional(),
|
|
35510
|
+
segmentMinutes: OnboardFieldSupportSchema,
|
|
35511
|
+
segmentMinutesRange: RangeSchema.optional(),
|
|
35512
|
+
/** Preferred over the range when the camera takes a SET, not a span. */
|
|
35513
|
+
segmentMinutesAllowed: AllowedValuesSchema.optional(),
|
|
35514
|
+
schedule: OnboardScheduleSupportSchema
|
|
35515
|
+
});
|
|
35516
|
+
/**
|
|
35517
|
+
* A partial change. Every field optional.
|
|
35518
|
+
*
|
|
35519
|
+
* Unlike the other `deviceConfig` caps, a provider here does **NOT**
|
|
35520
|
+
* silently ignore a field it cannot support — it refuses, by name,
|
|
35521
|
+
* through {@link describeOnboardRefusal}. Silence on a recording setting
|
|
35522
|
+
* is the failure D62 exists to prevent: the operator believes the camera
|
|
35523
|
+
* is recording the way the form says, and it is not.
|
|
35524
|
+
*/
|
|
35525
|
+
var RecordingOnboardPatchSchema = object({
|
|
35526
|
+
enabled: boolean().optional(),
|
|
35527
|
+
overwriteWhenFull: boolean().optional(),
|
|
35528
|
+
preRecordSec: number().optional(),
|
|
35529
|
+
postRecordSec: number().optional(),
|
|
35530
|
+
segmentMinutes: number().optional(),
|
|
35531
|
+
/** The complete new window set for the primary track — not a delta. */
|
|
35532
|
+
windows: array(RecordWindowSchema).optional()
|
|
35533
|
+
});
|
|
35534
|
+
DeviceType.Camera, method(object({ deviceId: number() }), RecordingOnboardOptionsSchema), method(object({
|
|
35535
|
+
deviceId: number(),
|
|
35536
|
+
settings: RecordingOnboardPatchSchema
|
|
35537
|
+
}), _void(), {
|
|
35538
|
+
kind: "mutation",
|
|
35539
|
+
auth: "admin"
|
|
35540
|
+
});
|
|
35541
|
+
/**
|
|
34960
35542
|
* A camera's own "record me NOW" LEVEL — a signal the device raises while
|
|
34961
35543
|
* something it knows about is happening (a robot vacuum cleaning, a machine
|
|
34962
35544
|
* running, a gate open) and lowers when it stops.
|
|
@@ -40439,24 +41021,6 @@ Object.freeze({
|
|
|
40439
41021
|
addonId: null,
|
|
40440
41022
|
access: "view"
|
|
40441
41023
|
},
|
|
40442
|
-
"events.getEventClipUrl": {
|
|
40443
|
-
capName: "events",
|
|
40444
|
-
capScope: "device",
|
|
40445
|
-
addonId: null,
|
|
40446
|
-
access: "view"
|
|
40447
|
-
},
|
|
40448
|
-
"events.getEvents": {
|
|
40449
|
-
capName: "events",
|
|
40450
|
-
capScope: "device",
|
|
40451
|
-
addonId: null,
|
|
40452
|
-
access: "view"
|
|
40453
|
-
},
|
|
40454
|
-
"events.getEventThumbnail": {
|
|
40455
|
-
capName: "events",
|
|
40456
|
-
capScope: "device",
|
|
40457
|
-
addonId: null,
|
|
40458
|
-
access: "view"
|
|
40459
|
-
},
|
|
40460
41024
|
"faceGallery.assignFace": {
|
|
40461
41025
|
capName: "face-gallery",
|
|
40462
41026
|
capScope: "system",
|
|
@@ -43331,224 +43895,236 @@ Object.freeze({
|
|
|
43331
43895
|
addonId: null,
|
|
43332
43896
|
access: "create"
|
|
43333
43897
|
},
|
|
43334
|
-
"recording.
|
|
43898
|
+
"recording.getAvailability": {
|
|
43335
43899
|
capName: "recording",
|
|
43336
|
-
capScope: "
|
|
43900
|
+
capScope: "device",
|
|
43337
43901
|
addonId: null,
|
|
43338
|
-
access: "
|
|
43902
|
+
access: "view"
|
|
43339
43903
|
},
|
|
43340
|
-
"recording.
|
|
43904
|
+
"recording.getDaysWithRecordings": {
|
|
43341
43905
|
capName: "recording",
|
|
43342
|
-
capScope: "
|
|
43906
|
+
capScope: "device",
|
|
43343
43907
|
addonId: null,
|
|
43344
|
-
access: "
|
|
43908
|
+
access: "view"
|
|
43345
43909
|
},
|
|
43346
|
-
"recording.
|
|
43910
|
+
"recording.getPlayback": {
|
|
43347
43911
|
capName: "recording",
|
|
43348
|
-
capScope: "
|
|
43912
|
+
capScope: "device",
|
|
43349
43913
|
addonId: null,
|
|
43350
|
-
access: "
|
|
43914
|
+
access: "view"
|
|
43351
43915
|
},
|
|
43352
|
-
"recording.
|
|
43916
|
+
"recording.getPlaybackOptions": {
|
|
43353
43917
|
capName: "recording",
|
|
43354
|
-
capScope: "
|
|
43918
|
+
capScope: "device",
|
|
43355
43919
|
addonId: null,
|
|
43356
|
-
access: "
|
|
43920
|
+
access: "view"
|
|
43357
43921
|
},
|
|
43358
|
-
"recording.
|
|
43922
|
+
"recording.listSources": {
|
|
43359
43923
|
capName: "recording",
|
|
43360
|
-
capScope: "
|
|
43924
|
+
capScope: "device",
|
|
43361
43925
|
addonId: null,
|
|
43362
43926
|
access: "view"
|
|
43363
43927
|
},
|
|
43364
|
-
"
|
|
43365
|
-
capName: "recording",
|
|
43928
|
+
"recordingArchive.applyDeviceSettingsPatch": {
|
|
43929
|
+
capName: "recording-archive",
|
|
43366
43930
|
capScope: "system",
|
|
43367
43931
|
addonId: null,
|
|
43368
|
-
access: "
|
|
43932
|
+
access: "create"
|
|
43369
43933
|
},
|
|
43370
|
-
"
|
|
43371
|
-
capName: "recording",
|
|
43934
|
+
"recordingArchive.cancelRelocateJob": {
|
|
43935
|
+
capName: "recording-archive",
|
|
43372
43936
|
capScope: "system",
|
|
43373
43937
|
addonId: null,
|
|
43374
|
-
access: "
|
|
43938
|
+
access: "create"
|
|
43375
43939
|
},
|
|
43376
|
-
"
|
|
43377
|
-
capName: "recording",
|
|
43940
|
+
"recordingArchive.cancelStorageMigrationMove": {
|
|
43941
|
+
capName: "recording-archive",
|
|
43942
|
+
capScope: "system",
|
|
43943
|
+
addonId: null,
|
|
43944
|
+
access: "create"
|
|
43945
|
+
},
|
|
43946
|
+
"recordingArchive.deleteFootprint": {
|
|
43947
|
+
capName: "recording-archive",
|
|
43948
|
+
capScope: "system",
|
|
43949
|
+
addonId: null,
|
|
43950
|
+
access: "delete"
|
|
43951
|
+
},
|
|
43952
|
+
"recordingArchive.getAvailabilityBatch": {
|
|
43953
|
+
capName: "recording-archive",
|
|
43378
43954
|
capScope: "system",
|
|
43379
43955
|
addonId: null,
|
|
43380
43956
|
access: "view"
|
|
43381
43957
|
},
|
|
43382
|
-
"
|
|
43383
|
-
capName: "recording",
|
|
43958
|
+
"recordingArchive.getDaysWithRecordingsBatch": {
|
|
43959
|
+
capName: "recording-archive",
|
|
43384
43960
|
capScope: "system",
|
|
43385
43961
|
addonId: null,
|
|
43386
43962
|
access: "view"
|
|
43387
43963
|
},
|
|
43388
|
-
"
|
|
43389
|
-
capName: "recording",
|
|
43964
|
+
"recordingArchive.getDeviceConfig": {
|
|
43965
|
+
capName: "recording-archive",
|
|
43390
43966
|
capScope: "system",
|
|
43391
43967
|
addonId: null,
|
|
43392
43968
|
access: "view"
|
|
43393
43969
|
},
|
|
43394
|
-
"
|
|
43395
|
-
capName: "recording",
|
|
43970
|
+
"recordingArchive.getDeviceLiveContribution": {
|
|
43971
|
+
capName: "recording-archive",
|
|
43396
43972
|
capScope: "system",
|
|
43397
43973
|
addonId: null,
|
|
43398
43974
|
access: "view"
|
|
43399
43975
|
},
|
|
43400
|
-
"
|
|
43401
|
-
capName: "recording",
|
|
43976
|
+
"recordingArchive.getDeviceSettingsContribution": {
|
|
43977
|
+
capName: "recording-archive",
|
|
43402
43978
|
capScope: "system",
|
|
43403
43979
|
addonId: null,
|
|
43404
43980
|
access: "view"
|
|
43405
43981
|
},
|
|
43406
|
-
"
|
|
43407
|
-
capName: "recording",
|
|
43982
|
+
"recordingArchive.getPlacement": {
|
|
43983
|
+
capName: "recording-archive",
|
|
43408
43984
|
capScope: "system",
|
|
43409
43985
|
addonId: null,
|
|
43410
43986
|
access: "view"
|
|
43411
43987
|
},
|
|
43412
|
-
"
|
|
43413
|
-
capName: "recording",
|
|
43988
|
+
"recordingArchive.getRelocateResidue": {
|
|
43989
|
+
capName: "recording-archive",
|
|
43414
43990
|
capScope: "system",
|
|
43415
43991
|
addonId: null,
|
|
43416
43992
|
access: "view"
|
|
43417
43993
|
},
|
|
43418
|
-
"
|
|
43419
|
-
capName: "recording",
|
|
43994
|
+
"recordingArchive.getStatus": {
|
|
43995
|
+
capName: "recording-archive",
|
|
43420
43996
|
capScope: "system",
|
|
43421
43997
|
addonId: null,
|
|
43422
43998
|
access: "view"
|
|
43423
43999
|
},
|
|
43424
|
-
"
|
|
43425
|
-
capName: "recording",
|
|
44000
|
+
"recordingArchive.getStorageMigrationMoveStatus": {
|
|
44001
|
+
capName: "recording-archive",
|
|
43426
44002
|
capScope: "system",
|
|
43427
44003
|
addonId: null,
|
|
43428
44004
|
access: "view"
|
|
43429
44005
|
},
|
|
43430
|
-
"
|
|
43431
|
-
capName: "recording",
|
|
44006
|
+
"recordingArchive.getStorageUsage": {
|
|
44007
|
+
capName: "recording-archive",
|
|
43432
44008
|
capScope: "system",
|
|
43433
44009
|
addonId: null,
|
|
43434
44010
|
access: "view"
|
|
43435
44011
|
},
|
|
43436
|
-
"
|
|
43437
|
-
capName: "recording",
|
|
44012
|
+
"recordingArchive.listOpsLog": {
|
|
44013
|
+
capName: "recording-archive",
|
|
43438
44014
|
capScope: "system",
|
|
43439
44015
|
addonId: null,
|
|
43440
44016
|
access: "view"
|
|
43441
44017
|
},
|
|
43442
|
-
"
|
|
43443
|
-
capName: "recording",
|
|
44018
|
+
"recordingArchive.listRelocateJobs": {
|
|
44019
|
+
capName: "recording-archive",
|
|
43444
44020
|
capScope: "system",
|
|
43445
44021
|
addonId: null,
|
|
43446
44022
|
access: "view"
|
|
43447
44023
|
},
|
|
43448
|
-
"
|
|
43449
|
-
capName: "recording",
|
|
44024
|
+
"recordingArchive.locateSegment": {
|
|
44025
|
+
capName: "recording-archive",
|
|
43450
44026
|
capScope: "system",
|
|
43451
44027
|
addonId: null,
|
|
43452
44028
|
access: "view"
|
|
43453
44029
|
},
|
|
43454
|
-
"
|
|
43455
|
-
capName: "recording",
|
|
44030
|
+
"recordingArchive.pauseForStorageMigration": {
|
|
44031
|
+
capName: "recording-archive",
|
|
43456
44032
|
capScope: "system",
|
|
43457
44033
|
addonId: null,
|
|
43458
44034
|
access: "create"
|
|
43459
44035
|
},
|
|
43460
|
-
"
|
|
43461
|
-
capName: "recording",
|
|
44036
|
+
"recordingArchive.planStorageRebalance": {
|
|
44037
|
+
capName: "recording-archive",
|
|
43462
44038
|
capScope: "system",
|
|
43463
44039
|
addonId: null,
|
|
43464
44040
|
access: "view"
|
|
43465
44041
|
},
|
|
43466
|
-
"
|
|
43467
|
-
capName: "recording",
|
|
44042
|
+
"recordingArchive.pruneFootage": {
|
|
44043
|
+
capName: "recording-archive",
|
|
43468
44044
|
capScope: "system",
|
|
43469
44045
|
addonId: null,
|
|
43470
44046
|
access: "create"
|
|
43471
44047
|
},
|
|
43472
|
-
"
|
|
43473
|
-
capName: "recording",
|
|
44048
|
+
"recordingArchive.readGopBytes": {
|
|
44049
|
+
capName: "recording-archive",
|
|
43474
44050
|
capScope: "system",
|
|
43475
44051
|
addonId: null,
|
|
43476
44052
|
access: "view"
|
|
43477
44053
|
},
|
|
43478
|
-
"
|
|
43479
|
-
capName: "recording",
|
|
44054
|
+
"recordingArchive.readSegmentBytes": {
|
|
44055
|
+
capName: "recording-archive",
|
|
43480
44056
|
capScope: "system",
|
|
43481
44057
|
addonId: null,
|
|
43482
44058
|
access: "view"
|
|
43483
44059
|
},
|
|
43484
|
-
"
|
|
43485
|
-
capName: "recording",
|
|
44060
|
+
"recordingArchive.readWindowBytes": {
|
|
44061
|
+
capName: "recording-archive",
|
|
43486
44062
|
capScope: "system",
|
|
43487
44063
|
addonId: null,
|
|
43488
44064
|
access: "view"
|
|
43489
44065
|
},
|
|
43490
|
-
"
|
|
43491
|
-
capName: "recording",
|
|
44066
|
+
"recordingArchive.reconcileLedgerAgainstDisk": {
|
|
44067
|
+
capName: "recording-archive",
|
|
43492
44068
|
capScope: "system",
|
|
43493
44069
|
addonId: null,
|
|
43494
44070
|
access: "create"
|
|
43495
44071
|
},
|
|
43496
|
-
"
|
|
43497
|
-
capName: "recording",
|
|
44072
|
+
"recordingArchive.refreshStorageLocationsForMigration": {
|
|
44073
|
+
capName: "recording-archive",
|
|
43498
44074
|
capScope: "system",
|
|
43499
44075
|
addonId: null,
|
|
43500
44076
|
access: "create"
|
|
43501
44077
|
},
|
|
43502
|
-
"
|
|
43503
|
-
capName: "recording",
|
|
44078
|
+
"recordingArchive.relocateFootage": {
|
|
44079
|
+
capName: "recording-archive",
|
|
43504
44080
|
capScope: "system",
|
|
43505
44081
|
addonId: null,
|
|
43506
44082
|
access: "create"
|
|
43507
44083
|
},
|
|
43508
|
-
"
|
|
43509
|
-
capName: "recording",
|
|
44084
|
+
"recordingArchive.renderClip": {
|
|
44085
|
+
capName: "recording-archive",
|
|
43510
44086
|
capScope: "system",
|
|
43511
44087
|
addonId: null,
|
|
43512
44088
|
access: "create"
|
|
43513
44089
|
},
|
|
43514
|
-
"
|
|
43515
|
-
capName: "recording",
|
|
44090
|
+
"recordingArchive.renderGif": {
|
|
44091
|
+
capName: "recording-archive",
|
|
43516
44092
|
capScope: "system",
|
|
43517
44093
|
addonId: null,
|
|
43518
44094
|
access: "create"
|
|
43519
44095
|
},
|
|
43520
|
-
"
|
|
43521
|
-
capName: "recording",
|
|
44096
|
+
"recordingArchive.rescanStorage": {
|
|
44097
|
+
capName: "recording-archive",
|
|
43522
44098
|
capScope: "system",
|
|
43523
44099
|
addonId: null,
|
|
43524
44100
|
access: "create"
|
|
43525
44101
|
},
|
|
43526
|
-
"
|
|
43527
|
-
capName: "recording",
|
|
44102
|
+
"recordingArchive.resumeForStorageMigration": {
|
|
44103
|
+
capName: "recording-archive",
|
|
43528
44104
|
capScope: "system",
|
|
43529
44105
|
addonId: null,
|
|
43530
44106
|
access: "create"
|
|
43531
44107
|
},
|
|
43532
|
-
"
|
|
43533
|
-
capName: "recording",
|
|
44108
|
+
"recordingArchive.setDeviceConfig": {
|
|
44109
|
+
capName: "recording-archive",
|
|
43534
44110
|
capScope: "system",
|
|
43535
44111
|
addonId: null,
|
|
43536
44112
|
access: "create"
|
|
43537
44113
|
},
|
|
43538
|
-
"
|
|
43539
|
-
capName: "recording",
|
|
44114
|
+
"recordingArchive.setDevicePlacement": {
|
|
44115
|
+
capName: "recording-archive",
|
|
43540
44116
|
capScope: "system",
|
|
43541
44117
|
addonId: null,
|
|
43542
44118
|
access: "create"
|
|
43543
44119
|
},
|
|
43544
|
-
"
|
|
43545
|
-
capName: "recording",
|
|
44120
|
+
"recordingArchive.startStorageMigrationMove": {
|
|
44121
|
+
capName: "recording-archive",
|
|
43546
44122
|
capScope: "system",
|
|
43547
44123
|
addonId: null,
|
|
43548
44124
|
access: "create"
|
|
43549
44125
|
},
|
|
43550
|
-
"
|
|
43551
|
-
capName: "recording",
|
|
44126
|
+
"recordingArchive.startStorageRebalance": {
|
|
44127
|
+
capName: "recording-archive",
|
|
43552
44128
|
capScope: "system",
|
|
43553
44129
|
addonId: null,
|
|
43554
44130
|
access: "create"
|
|
@@ -45077,6 +45653,12 @@ Object.freeze({
|
|
|
45077
45653
|
addonId: null,
|
|
45078
45654
|
access: "view"
|
|
45079
45655
|
},
|
|
45656
|
+
"videoclips.getPlaybackOptions": {
|
|
45657
|
+
capName: "videoclips",
|
|
45658
|
+
capScope: "device",
|
|
45659
|
+
addonId: null,
|
|
45660
|
+
access: "view"
|
|
45661
|
+
},
|
|
45080
45662
|
"videoclips.listClips": {
|
|
45081
45663
|
capName: "videoclips",
|
|
45082
45664
|
capScope: "device",
|
|
@@ -45089,6 +45671,12 @@ Object.freeze({
|
|
|
45089
45671
|
addonId: null,
|
|
45090
45672
|
access: "view"
|
|
45091
45673
|
},
|
|
45674
|
+
"videoclips.offerClipBytes": {
|
|
45675
|
+
capName: "videoclips",
|
|
45676
|
+
capScope: "device",
|
|
45677
|
+
addonId: null,
|
|
45678
|
+
access: "view"
|
|
45679
|
+
},
|
|
45092
45680
|
"videoclips.readClipBytes": {
|
|
45093
45681
|
capName: "videoclips",
|
|
45094
45682
|
capScope: "device",
|
|
@@ -45841,21 +46429,6 @@ Object.freeze({
|
|
|
45841
46429
|
form: "single",
|
|
45842
46430
|
optional: false
|
|
45843
46431
|
}],
|
|
45844
|
-
"events.getEventClipUrl": [{
|
|
45845
|
-
name: "deviceId",
|
|
45846
|
-
form: "single",
|
|
45847
|
-
optional: false
|
|
45848
|
-
}],
|
|
45849
|
-
"events.getEvents": [{
|
|
45850
|
-
name: "deviceId",
|
|
45851
|
-
form: "single",
|
|
45852
|
-
optional: false
|
|
45853
|
-
}],
|
|
45854
|
-
"events.getEventThumbnail": [{
|
|
45855
|
-
name: "deviceId",
|
|
45856
|
-
form: "single",
|
|
45857
|
-
optional: false
|
|
45858
|
-
}],
|
|
45859
46432
|
"faceGallery.getFaceByTrack": [{
|
|
45860
46433
|
name: "deviceId",
|
|
45861
46434
|
form: "single",
|
|
@@ -46774,107 +47347,117 @@ Object.freeze({
|
|
|
46774
47347
|
form: "single",
|
|
46775
47348
|
optional: false
|
|
46776
47349
|
}],
|
|
46777
|
-
"recording.
|
|
47350
|
+
"recording.getAvailability": [{
|
|
46778
47351
|
name: "deviceId",
|
|
46779
47352
|
form: "single",
|
|
46780
47353
|
optional: false
|
|
46781
47354
|
}],
|
|
46782
|
-
"recording.
|
|
47355
|
+
"recording.getDaysWithRecordings": [{
|
|
46783
47356
|
name: "deviceId",
|
|
46784
47357
|
form: "single",
|
|
46785
47358
|
optional: false
|
|
46786
47359
|
}],
|
|
46787
|
-
"recording.
|
|
46788
|
-
name: "
|
|
46789
|
-
form: "
|
|
47360
|
+
"recording.getPlayback": [{
|
|
47361
|
+
name: "deviceId",
|
|
47362
|
+
form: "single",
|
|
46790
47363
|
optional: false
|
|
46791
47364
|
}],
|
|
46792
|
-
"recording.
|
|
47365
|
+
"recording.getPlaybackOptions": [{
|
|
46793
47366
|
name: "deviceId",
|
|
46794
47367
|
form: "single",
|
|
46795
47368
|
optional: false
|
|
46796
47369
|
}],
|
|
46797
|
-
"recording.
|
|
46798
|
-
name: "
|
|
46799
|
-
form: "
|
|
47370
|
+
"recording.listSources": [{
|
|
47371
|
+
name: "deviceId",
|
|
47372
|
+
form: "single",
|
|
46800
47373
|
optional: false
|
|
46801
47374
|
}],
|
|
46802
|
-
"
|
|
47375
|
+
"recordingArchive.deleteFootprint": [{
|
|
46803
47376
|
name: "deviceId",
|
|
46804
47377
|
form: "single",
|
|
46805
47378
|
optional: false
|
|
46806
47379
|
}],
|
|
46807
|
-
"
|
|
47380
|
+
"recordingArchive.getAvailabilityBatch": [{
|
|
47381
|
+
name: "deviceIds",
|
|
47382
|
+
form: "array",
|
|
47383
|
+
optional: false
|
|
47384
|
+
}],
|
|
47385
|
+
"recordingArchive.getDaysWithRecordingsBatch": [{
|
|
47386
|
+
name: "deviceIds",
|
|
47387
|
+
form: "array",
|
|
47388
|
+
optional: false
|
|
47389
|
+
}],
|
|
47390
|
+
"recordingArchive.getDeviceConfig": [{
|
|
46808
47391
|
name: "deviceId",
|
|
46809
47392
|
form: "single",
|
|
46810
47393
|
optional: false
|
|
46811
47394
|
}],
|
|
46812
|
-
"
|
|
47395
|
+
"recordingArchive.listOpsLog": [{
|
|
46813
47396
|
name: "deviceId",
|
|
46814
47397
|
form: "single",
|
|
46815
47398
|
optional: true
|
|
46816
47399
|
}],
|
|
46817
|
-
"
|
|
47400
|
+
"recordingArchive.locateSegment": [{
|
|
46818
47401
|
name: "deviceId",
|
|
46819
47402
|
form: "single",
|
|
46820
47403
|
optional: false
|
|
46821
47404
|
}],
|
|
46822
|
-
"
|
|
47405
|
+
"recordingArchive.pruneFootage": [{
|
|
46823
47406
|
name: "deviceId",
|
|
46824
47407
|
form: "single",
|
|
46825
47408
|
optional: false
|
|
46826
47409
|
}],
|
|
46827
|
-
"
|
|
47410
|
+
"recordingArchive.readGopBytes": [{
|
|
46828
47411
|
name: "deviceId",
|
|
46829
47412
|
form: "single",
|
|
46830
47413
|
optional: false
|
|
46831
47414
|
}],
|
|
46832
|
-
"
|
|
47415
|
+
"recordingArchive.readSegmentBytes": [{
|
|
46833
47416
|
name: "deviceId",
|
|
46834
47417
|
form: "single",
|
|
46835
47418
|
optional: false
|
|
46836
47419
|
}],
|
|
46837
|
-
"
|
|
47420
|
+
"recordingArchive.readWindowBytes": [{
|
|
46838
47421
|
name: "deviceId",
|
|
46839
47422
|
form: "single",
|
|
46840
47423
|
optional: false
|
|
46841
47424
|
}],
|
|
46842
|
-
"
|
|
47425
|
+
"recordingArchive.reconcileLedgerAgainstDisk": [{
|
|
46843
47426
|
name: "deviceId",
|
|
46844
47427
|
form: "single",
|
|
46845
47428
|
optional: true
|
|
46846
47429
|
}],
|
|
46847
|
-
"
|
|
47430
|
+
"recordingArchive.relocateFootage": [{
|
|
46848
47431
|
name: "deviceId",
|
|
46849
47432
|
form: "single",
|
|
46850
47433
|
optional: true
|
|
46851
47434
|
}],
|
|
46852
|
-
"
|
|
47435
|
+
"recordingArchive.renderClip": [{
|
|
46853
47436
|
name: "deviceId",
|
|
46854
47437
|
form: "single",
|
|
46855
47438
|
optional: false
|
|
46856
47439
|
}],
|
|
46857
|
-
"
|
|
47440
|
+
"recordingArchive.renderGif": [{
|
|
46858
47441
|
name: "deviceId",
|
|
46859
47442
|
form: "single",
|
|
46860
47443
|
optional: false
|
|
46861
47444
|
}],
|
|
46862
|
-
"
|
|
47445
|
+
"recordingArchive.rescanStorage": [{
|
|
46863
47446
|
name: "deviceId",
|
|
46864
47447
|
form: "single",
|
|
46865
47448
|
optional: false
|
|
46866
47449
|
}],
|
|
46867
|
-
"
|
|
47450
|
+
"recordingArchive.setDeviceConfig": [{
|
|
46868
47451
|
name: "deviceId",
|
|
46869
47452
|
form: "single",
|
|
46870
47453
|
optional: false
|
|
46871
47454
|
}],
|
|
46872
|
-
"
|
|
47455
|
+
"recordingArchive.setDevicePlacement": [{
|
|
46873
47456
|
name: "deviceId",
|
|
46874
47457
|
form: "single",
|
|
46875
47458
|
optional: false
|
|
46876
47459
|
}],
|
|
46877
|
-
"
|
|
47460
|
+
"recordingArchive.startStorageMigrationMove": [{
|
|
46878
47461
|
name: "deviceId",
|
|
46879
47462
|
form: "single",
|
|
46880
47463
|
optional: true
|
|
@@ -47135,6 +47718,11 @@ Object.freeze({
|
|
|
47135
47718
|
form: "single",
|
|
47136
47719
|
optional: false
|
|
47137
47720
|
}],
|
|
47721
|
+
"videoclips.getPlaybackOptions": [{
|
|
47722
|
+
name: "deviceId",
|
|
47723
|
+
form: "single",
|
|
47724
|
+
optional: false
|
|
47725
|
+
}],
|
|
47138
47726
|
"videoclips.listClips": [{
|
|
47139
47727
|
name: "deviceId",
|
|
47140
47728
|
form: "single",
|
|
@@ -47145,6 +47733,11 @@ Object.freeze({
|
|
|
47145
47733
|
form: "single",
|
|
47146
47734
|
optional: false
|
|
47147
47735
|
}],
|
|
47736
|
+
"videoclips.offerClipBytes": [{
|
|
47737
|
+
name: "deviceId",
|
|
47738
|
+
form: "single",
|
|
47739
|
+
optional: false
|
|
47740
|
+
}],
|
|
47148
47741
|
"videoclips.readClipBytes": [{
|
|
47149
47742
|
name: "deviceId",
|
|
47150
47743
|
form: "single",
|
|
@@ -48957,6 +49550,12 @@ Object.defineProperty(exports, "CAM_PROFILE_ORDER", {
|
|
|
48957
49550
|
return CAM_PROFILE_ORDER;
|
|
48958
49551
|
}
|
|
48959
49552
|
});
|
|
49553
|
+
Object.defineProperty(exports, "CLIP_BROKER_PACED_RATES", {
|
|
49554
|
+
enumerable: true,
|
|
49555
|
+
get: function() {
|
|
49556
|
+
return CLIP_BROKER_PACED_RATES;
|
|
49557
|
+
}
|
|
49558
|
+
});
|
|
48960
49559
|
Object.defineProperty(exports, "CLIP_STILL_REASON_CODE_HEADER", {
|
|
48961
49560
|
enumerable: true,
|
|
48962
49561
|
get: function() {
|
|
@@ -49155,6 +49754,18 @@ Object.defineProperty(exports, "RECORDING_EXPORT_MAX_READ_BYTES", {
|
|
|
49155
49754
|
return RECORDING_EXPORT_MAX_READ_BYTES;
|
|
49156
49755
|
}
|
|
49157
49756
|
});
|
|
49757
|
+
Object.defineProperty(exports, "RECORDING_SOURCE_CAMSTACK", {
|
|
49758
|
+
enumerable: true,
|
|
49759
|
+
get: function() {
|
|
49760
|
+
return RECORDING_SOURCE_CAMSTACK;
|
|
49761
|
+
}
|
|
49762
|
+
});
|
|
49763
|
+
Object.defineProperty(exports, "RECORDING_SOURCE_CAMSTACK_ADDON", {
|
|
49764
|
+
enumerable: true,
|
|
49765
|
+
get: function() {
|
|
49766
|
+
return RECORDING_SOURCE_CAMSTACK_ADDON;
|
|
49767
|
+
}
|
|
49768
|
+
});
|
|
49158
49769
|
Object.defineProperty(exports, "RecordingConfigSchema", {
|
|
49159
49770
|
enumerable: true,
|
|
49160
49771
|
get: function() {
|
|
@@ -49173,6 +49784,12 @@ Object.defineProperty(exports, "RingBuffer", {
|
|
|
49173
49784
|
return RingBuffer;
|
|
49174
49785
|
}
|
|
49175
49786
|
});
|
|
49787
|
+
Object.defineProperty(exports, "VIDEOCLIPS_MAX_OFFER_BYTES", {
|
|
49788
|
+
enumerable: true,
|
|
49789
|
+
get: function() {
|
|
49790
|
+
return VIDEOCLIPS_MAX_OFFER_BYTES;
|
|
49791
|
+
}
|
|
49792
|
+
});
|
|
49176
49793
|
Object.defineProperty(exports, "VISIT_MERGE_GAP_MS", {
|
|
49177
49794
|
enumerable: true,
|
|
49178
49795
|
get: function() {
|
|
@@ -49623,6 +50240,12 @@ Object.defineProperty(exports, "record", {
|
|
|
49623
50240
|
return record;
|
|
49624
50241
|
}
|
|
49625
50242
|
});
|
|
50243
|
+
Object.defineProperty(exports, "recordingArchiveCapability", {
|
|
50244
|
+
enumerable: true,
|
|
50245
|
+
get: function() {
|
|
50246
|
+
return recordingArchiveCapability;
|
|
50247
|
+
}
|
|
50248
|
+
});
|
|
49626
50249
|
Object.defineProperty(exports, "recordingCapability", {
|
|
49627
50250
|
enumerable: true,
|
|
49628
50251
|
get: function() {
|