@camstack/addon-model-studio 1.1.157 → 1.1.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MotionZonesSettings-B9Zjys3U.mjs +310 -0
- package/dist/{PrivacyMaskSettings-_L0_gbnd.mjs → PrivacyMaskSettings-B3Vsieem.mjs} +26 -26
- package/dist/{SceneMonitorEditor-Bjy20GEe.mjs → SceneMonitorEditor-CRZWTPz1.mjs} +295 -295
- package/dist/_stub.js +213 -213
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-C2DPZC4T.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-JG0cnfpo.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-cAfFVRZp.mjs +26 -0
- package/dist/addon-model-studio.css +1 -1
- package/dist/{responsive-CUUZlkGG.mjs → cap-error-DVLb2gz5.mjs} +8 -8
- package/dist/{hostInit-C4sQnoPJ.mjs → hostInit-CUgIY8_E.mjs} +2 -2
- package/dist/model-studio.addon.js +339 -14
- package/dist/model-studio.addon.mjs +339 -14
- package/dist/{player-overlays-D-ofIMHF.mjs → player-overlays-DkECelrR.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{scene-monitor-copy-BfygBFBK.mjs → scene-monitor-copy-DHChGsSk.mjs} +1 -1
- package/dist/{square-aQfMfsN9.mjs → square-DPy2M0xs.mjs} +1 -1
- package/dist/{trash-2-BlOtOXBm.mjs → trash-2-G09-iWOp.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-gMWb9LVs.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DNIKrWko.mjs} +1 -1
- package/package.json +1 -1
- package/dist/MotionZonesSettings-Cz150rLo.mjs +0 -310
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DgRfZh1N.mjs +0 -26
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.235",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.191",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
|
@@ -5884,7 +5884,7 @@ var ZodIssueCode = {
|
|
|
5884
5884
|
var ZodFirstPartyTypeKind;
|
|
5885
5885
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5886
5886
|
//#endregion
|
|
5887
|
-
//#region ../types/dist/sleep-
|
|
5887
|
+
//#region ../types/dist/sleep-7AN_Txmu.mjs
|
|
5888
5888
|
/**
|
|
5889
5889
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5890
5890
|
* window to float samples (D455).
|
|
@@ -14678,6 +14678,8 @@ method(object({
|
|
|
14678
14678
|
deviceId: number(),
|
|
14679
14679
|
capName: string(),
|
|
14680
14680
|
wrapperAddonId: string(),
|
|
14681
|
+
/** The `ClipSource.source` id to toggle. Absent = all of the addon's. */
|
|
14682
|
+
sourceId: string().optional(),
|
|
14681
14683
|
active: boolean()
|
|
14682
14684
|
}), _void(), {
|
|
14683
14685
|
kind: "mutation",
|
|
@@ -23261,10 +23263,9 @@ var ServerBootModeSchema = _enum([
|
|
|
23261
23263
|
* - `idle` / `checking` / `staging` — steady / in-flight registry work.
|
|
23262
23264
|
* - `pending-restart` — a version is staged and the node has NOT yet
|
|
23263
23265
|
* restarted onto it (still running the OLD version).
|
|
23264
|
-
* - `awaiting-confirmation` —
|
|
23265
|
-
*
|
|
23266
|
-
*
|
|
23267
|
-
* manually restarted, or the probation boot auto-rolls-back.
|
|
23266
|
+
* - `awaiting-confirmation` — RETIRED with the probation boot (single-copy
|
|
23267
|
+
* collapse, 2026-07-18). Kept in the enum so an older client still parses;
|
|
23268
|
+
* no provider emits it.
|
|
23268
23269
|
*/
|
|
23269
23270
|
var ServerUpdateStateSchema = _enum([
|
|
23270
23271
|
"idle",
|
|
@@ -23353,12 +23354,35 @@ var ServerRollbackInfoSchema = object({
|
|
|
23353
23354
|
var ServerPackageStatusSchema = object({
|
|
23354
23355
|
/** Root package name (`@camstack/server` on the hub). */
|
|
23355
23356
|
packageName: string(),
|
|
23356
|
-
/**
|
|
23357
|
+
/**
|
|
23358
|
+
* Version of the code THIS PROCESS loaded — captured once, at boot, from the
|
|
23359
|
+
* package.json of the copy the code was loaded from, and never re-read. A
|
|
23360
|
+
* copy replaced on disk under a live process must not move this number;
|
|
23361
|
+
* that divergence is what `installedVersion` is for. Before 2026-09-20 this
|
|
23362
|
+
* was a lazy disk read that would have followed such a swap silently.
|
|
23363
|
+
*/
|
|
23357
23364
|
runningVersion: string().nullable(),
|
|
23358
23365
|
/** Node.js runtime version the node's process runs on (`process.versions.node`). */
|
|
23359
23366
|
nodeRuntimeVersion: string().nullable(),
|
|
23360
23367
|
/** Active data-dir root version; null when booted from seed/workspace. */
|
|
23361
23368
|
activeVersion: string().nullable(),
|
|
23369
|
+
/**
|
|
23370
|
+
* Version of the root package in the data-root `current/` copy RIGHT NOW —
|
|
23371
|
+
* what the next boot would load if nothing is staged. Normally equal to
|
|
23372
|
+
* `runningVersion`; differs only when the copy on disk changed under the
|
|
23373
|
+
* live process. `null` when there is no data-root copy (baked seed or
|
|
23374
|
+
* workspace boot). Optional for version skew: an older provider omits it.
|
|
23375
|
+
*/
|
|
23376
|
+
installedVersion: string().nullable().optional(),
|
|
23377
|
+
/**
|
|
23378
|
+
* True when the code that would run after a restart is NOT the code running
|
|
23379
|
+
* now: a version is staged (`pendingVersion`), or `installedVersion` differs
|
|
23380
|
+
* from `runningVersion`. Derived on every read, never stored. This is the
|
|
23381
|
+
* one field that lets an operator or a script say "1.2.353 is installed and
|
|
23382
|
+
* will run after a restart" instead of reading it off a number that means
|
|
23383
|
+
* "installed". Optional for version skew.
|
|
23384
|
+
*/
|
|
23385
|
+
restartRequired: boolean().optional(),
|
|
23362
23386
|
/** N-1 version kept for rollback; null when no previous version exists. */
|
|
23363
23387
|
previousVersion: string().nullable(),
|
|
23364
23388
|
/** Version of the immutable baked seed closure (image fallback). */
|
|
@@ -23393,19 +23417,71 @@ var ServerPackageStatusSchema = object({
|
|
|
23393
23417
|
});
|
|
23394
23418
|
var ServerUpdateCheckResultSchema = object({
|
|
23395
23419
|
packageName: string(),
|
|
23420
|
+
/** Same meaning as on the status payload: what THIS process loaded. */
|
|
23396
23421
|
runningVersion: string().nullable(),
|
|
23397
23422
|
latestVersion: string().nullable(),
|
|
23423
|
+
/**
|
|
23424
|
+
* `latestVersion` is newer than `runningVersion` AND is not the version
|
|
23425
|
+
* already staged on this node. A staged-and-waiting version is not "an
|
|
23426
|
+
* update available" — applying it again is refused (`already-staged`), and
|
|
23427
|
+
* a button that announced "updating…" on this boolean then got refused
|
|
23428
|
+
* would be lying. It is reported through `pendingVersion` instead.
|
|
23429
|
+
*/
|
|
23398
23430
|
updateAvailable: boolean(),
|
|
23399
23431
|
checkedAtMs: number(),
|
|
23400
23432
|
/** Non-null when the registry lookup failed (offline, bad registry, …). */
|
|
23401
|
-
error: string().nullable()
|
|
23433
|
+
error: string().nullable(),
|
|
23434
|
+
/**
|
|
23435
|
+
* Version staged on this node and awaiting its restart, when one is. Before
|
|
23436
|
+
* 2026-09-20 a check answered `{runningVersion, updateAvailable:false}` for a
|
|
23437
|
+
* node whose staged closure had never booted, and the caller had no way to
|
|
23438
|
+
* see the difference. Optional for version skew.
|
|
23439
|
+
*/
|
|
23440
|
+
pendingVersion: string().nullable().optional(),
|
|
23441
|
+
/** See the status payload: staged, or installed-on-disk ≠ running. Optional for skew. */
|
|
23442
|
+
restartRequired: boolean().optional()
|
|
23402
23443
|
});
|
|
23444
|
+
/**
|
|
23445
|
+
* What an action DID — the discriminant `accepted` cannot carry. Before
|
|
23446
|
+
* 2026-09-20 `applyServerUpdate` answered `accepted:false` both for a refusal
|
|
23447
|
+
* where nothing was wrong (already current, already staged) and for a staging
|
|
23448
|
+
* install that died on `npm error code ECONNRESET`; the only difference was
|
|
23449
|
+
* prose in `message`, and an operator restarted a container on the strength of
|
|
23450
|
+
* it, booting the previous version.
|
|
23451
|
+
*
|
|
23452
|
+
* - `staged` — the closure is installed and validated; the node
|
|
23453
|
+
* restarts to apply it (`restarting:true`). NOTHING
|
|
23454
|
+
* runs the new code until that restart completes.
|
|
23455
|
+
* - `restart-scheduled` — a plain, version-preserving restart was accepted.
|
|
23456
|
+
* - `already-current` — the target IS the running version; nothing done.
|
|
23457
|
+
* - `refused` — dropped by a gate; `reason` names which.
|
|
23458
|
+
* - `failed` — attempted and did not land; `error` says why.
|
|
23459
|
+
*/
|
|
23460
|
+
var ServerUpdateOutcomeSchema = _enum([
|
|
23461
|
+
"staged",
|
|
23462
|
+
"restart-scheduled",
|
|
23463
|
+
"already-current",
|
|
23464
|
+
"refused",
|
|
23465
|
+
"failed"
|
|
23466
|
+
]);
|
|
23403
23467
|
var ServerUpdateActionResultSchema = object({
|
|
23404
23468
|
accepted: boolean(),
|
|
23405
23469
|
targetVersion: string().nullable(),
|
|
23406
23470
|
/** True when a graceful restart was scheduled to apply the change. */
|
|
23407
23471
|
restarting: boolean(),
|
|
23408
|
-
message: string()
|
|
23472
|
+
message: string(),
|
|
23473
|
+
/** See {@link ServerUpdateOutcomeSchema}. Optional for version skew. */
|
|
23474
|
+
outcome: ServerUpdateOutcomeSchema.optional(),
|
|
23475
|
+
/**
|
|
23476
|
+
* Stable, greppable cause for `refused` / `failed` (the engine's
|
|
23477
|
+
* `UpdateRefusalReason`, `staging-failed`, …). `null` on success.
|
|
23478
|
+
*/
|
|
23479
|
+
reason: string().nullable().optional(),
|
|
23480
|
+
/**
|
|
23481
|
+
* The failure itself, verbatim enough to act on (the npm output for a
|
|
23482
|
+
* staging install). Non-null only for `failed`.
|
|
23483
|
+
*/
|
|
23484
|
+
error: string().nullable().optional()
|
|
23409
23485
|
});
|
|
23410
23486
|
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
23411
23487
|
kind: "mutation",
|
|
@@ -24588,29 +24664,267 @@ var ClipSchema = object({
|
|
|
24588
24664
|
holes: array(object({
|
|
24589
24665
|
startMs: number(),
|
|
24590
24666
|
endMs: number()
|
|
24591
|
-
})).optional()
|
|
24667
|
+
})).optional(),
|
|
24668
|
+
/**
|
|
24669
|
+
* A URL that MAY produce this clip's still, asked only for rows actually on
|
|
24670
|
+
* screen. The opposite of {@link ClipSchema.thumbnail}: that one is VOUCHED
|
|
24671
|
+
* (a JPEG is already on disk), this one is an offer. The route answers 200
|
|
24672
|
+
* with the image, or 204 with `x-camstack-reason` when it could not mint one
|
|
24673
|
+
* — a surface latches that refusal to the instant rather than retrying.
|
|
24674
|
+
*
|
|
24675
|
+
* Never both: a clip with a vouched `thumbnail` needs no mint.
|
|
24676
|
+
*/
|
|
24677
|
+
thumbnailMint: string().optional(),
|
|
24678
|
+
/**
|
|
24679
|
+
* Why no still will be produced for this clip RIGHT NOW — set when the
|
|
24680
|
+
* provider already knows, so the surface draws the glyph and the reason
|
|
24681
|
+
* instead of firing a mint that cannot succeed.
|
|
24682
|
+
*
|
|
24683
|
+
* `sleeping` — a standalone battery camera; a read would be a wake (D549 4).
|
|
24684
|
+
* `camera-refused` — the camera answered the CoverPreview with a refusal.
|
|
24685
|
+
* `no-keyframe` — the window holds no decodable I-frame (an event that sits
|
|
24686
|
+
* inside no file is the measured case).
|
|
24687
|
+
* `unsupported` — this source cannot mint stills at all.
|
|
24688
|
+
*/
|
|
24689
|
+
thumbnailUnavailable: object({ reason: _enum([
|
|
24690
|
+
"sleeping",
|
|
24691
|
+
"camera-refused",
|
|
24692
|
+
"no-keyframe",
|
|
24693
|
+
"unsupported"
|
|
24694
|
+
]) }).optional(),
|
|
24695
|
+
/**
|
|
24696
|
+
* When the catalog this row came from was last CONFIRMED against the device.
|
|
24697
|
+
* Absent means "this row was read live". A persisted catalog served while a
|
|
24698
|
+
* camera sleeps carries the age it really has — a cached list is never drawn
|
|
24699
|
+
* as current (D549 13).
|
|
24700
|
+
*/
|
|
24701
|
+
catalogAsOf: number().optional(),
|
|
24702
|
+
/**
|
|
24703
|
+
* The camera's OWN type strings for this clip, all of them, unmapped
|
|
24704
|
+
* (`md`, `people`, `dog_cat`, `sched`, …). Kept beside {@link labels}
|
|
24705
|
+
* because a firmware inventing a type must not vanish: the mapping into our
|
|
24706
|
+
* filter vocabulary is lossy on purpose and this is the lossless copy
|
|
24707
|
+
* (D549 20).
|
|
24708
|
+
*/
|
|
24709
|
+
nativeTypes: array(string()).optional(),
|
|
24710
|
+
/**
|
|
24711
|
+
* What the subject DID — `crossline`, `intrude`, `loitering`. A behaviour
|
|
24712
|
+
* travels BESIDE a class, never instead of one, and the class filter ignores
|
|
24713
|
+
* it: "a person crossed a line" is still a person (D549 20).
|
|
24714
|
+
*/
|
|
24715
|
+
behaviours: array(string()).optional(),
|
|
24716
|
+
/**
|
|
24717
|
+
* The same recording as two files — the sub twin (what the row and its
|
|
24718
|
+
* thumbnail are) and its main twin, matched at listing time so a quality
|
|
24719
|
+
* change never re-searches the camera (D549 15). `getClipPlayback`'s
|
|
24720
|
+
* `profile` picks between them: `low | mid` → sub, `high` → main.
|
|
24721
|
+
*/
|
|
24722
|
+
streams: object({
|
|
24723
|
+
sub: object({
|
|
24724
|
+
id: string(),
|
|
24725
|
+
bytes: number().optional()
|
|
24726
|
+
}).optional(),
|
|
24727
|
+
main: object({
|
|
24728
|
+
id: string(),
|
|
24729
|
+
bytes: number().optional()
|
|
24730
|
+
}).optional()
|
|
24731
|
+
}).optional(),
|
|
24732
|
+
/** The camera says it holds a sub-stream copy of this recording. */
|
|
24733
|
+
supportSub: boolean().optional(),
|
|
24734
|
+
/**
|
|
24735
|
+
* Whether this row has bytes behind it. ABSENT means yes — every clip that
|
|
24736
|
+
* IS a file is playable, and only a source that lists EVENTS can produce a
|
|
24737
|
+
* row with nothing to play (the measured case: 1 of 29 hub events on 3628
|
|
24738
|
+
* fell inside no file). Such a row is shown, never dropped and never offered
|
|
24739
|
+
* as playable-then-failing (D549 19).
|
|
24740
|
+
*/
|
|
24741
|
+
playable: boolean().optional(),
|
|
24742
|
+
/** Why {@link playable} is false, verbatim (`no-file-for-window`). */
|
|
24743
|
+
unplayableReason: string().optional()
|
|
24592
24744
|
});
|
|
24593
24745
|
var ClipPlaybackSchema = object({
|
|
24594
|
-
/**
|
|
24746
|
+
/**
|
|
24747
|
+
* A media URL through the hub data-plane. {@link ClipPlaybackSchema.format}
|
|
24748
|
+
* says what kind — an HLS master playlist for a recording-derived clip, a
|
|
24749
|
+
* progressive MP4 for a native file the vendor addon muxed and serves with
|
|
24750
|
+
* `Range`. The URL is NOT a credential: both planes are registered
|
|
24751
|
+
* `access: 'authenticated'` and the hub's `/addon/<id>/<prefix>` proxy takes
|
|
24752
|
+
* the session cookie, so nothing is appended to it (D549 22).
|
|
24753
|
+
*/
|
|
24595
24754
|
playbackUrl: string(),
|
|
24755
|
+
/**
|
|
24756
|
+
* How to play {@link playbackUrl}. Absent means `hls` — the shape every
|
|
24757
|
+
* existing consumer already assumes. A player that branches on this is the
|
|
24758
|
+
* one change a native clip needs; a player that ignores it will hand an MP4
|
|
24759
|
+
* to hls.js and fail parsing it as a manifest.
|
|
24760
|
+
*/
|
|
24761
|
+
format: _enum(["hls", "mp4"]).optional(),
|
|
24762
|
+
/**
|
|
24763
|
+
* Which twin was actually served. A clip that holds only one stream answers
|
|
24764
|
+
* with the one it has, and the surface SAYS so — a missing main twin is
|
|
24765
|
+
* never served silently as if it were the asked-for quality (D549 15).
|
|
24766
|
+
*/
|
|
24767
|
+
served: CamProfileSchema.optional(),
|
|
24596
24768
|
/** Optional LAN/remote alternates for the same clip. */
|
|
24597
24769
|
playbackEndpoints: array(string()).optional(),
|
|
24598
24770
|
token: string().optional()
|
|
24599
24771
|
});
|
|
24772
|
+
/**
|
|
24773
|
+
* Why a source cannot answer right now — per SOURCE, never fleet-wide.
|
|
24774
|
+
*
|
|
24775
|
+
* `ok` is the only state whose clip list may be read as complete. The other
|
|
24776
|
+
* three exist because an empty list from a sleeping camera reads as "this
|
|
24777
|
+
* camera has no recordings", which is the defect this whole line of work is
|
|
24778
|
+
* about: a battery camera nobody woke (`sleeping`), a camera that could not be
|
|
24779
|
+
* reached at all (`unreachable`, also what a provider that THREW reports), a
|
|
24780
|
+
* camera whose SD card is not mounted (`no-storage`, measured on 640 —
|
|
24781
|
+
* `HddInfo mount 0`, honestly nothing to list rather than "no clips"), and a
|
|
24782
|
+
* camera whose OWN index disagrees with its OWN calendar (`index-empty`,
|
|
24783
|
+
* measured on 618: the calendar marks 3–20 September, days 6–20 list zero
|
|
24784
|
+
* files on both streams and both filters, with 177 GB free). That last one is
|
|
24785
|
+
* a defect ON THE CAMERA, and the only honest thing a provider can do is say
|
|
24786
|
+
* which days it asked for and got nothing — "no clips" would be a lie about a
|
|
24787
|
+
* card that is full of them.
|
|
24788
|
+
*/
|
|
24789
|
+
var ClipSourceAvailabilitySchema = object({
|
|
24790
|
+
state: _enum([
|
|
24791
|
+
"ok",
|
|
24792
|
+
"sleeping",
|
|
24793
|
+
"unreachable",
|
|
24794
|
+
"no-storage",
|
|
24795
|
+
"index-empty"
|
|
24796
|
+
]),
|
|
24797
|
+
/** Free text, shown verbatim. Names the camera's own refusal when there is one. */
|
|
24798
|
+
reason: string().optional(),
|
|
24799
|
+
/** When this source's catalog was last CONFIRMED. A cached list is never
|
|
24800
|
+
* drawn as current: the surface shows the age whenever it is older than the
|
|
24801
|
+
* refresh interval. */
|
|
24802
|
+
catalogAsOf: number().optional()
|
|
24803
|
+
});
|
|
24804
|
+
/**
|
|
24805
|
+
* One SOURCE of clips for a camera — a row of the picker, and the namespace
|
|
24806
|
+
* every clip id from it is prefixed with (`analytics`,
|
|
24807
|
+
* `native:reolink:onboard`, `hksv`, …).
|
|
24808
|
+
*
|
|
24809
|
+
* A provider lists the sources IT serves for that device, and answers for each
|
|
24810
|
+
* of them whether it can answer at all. A provider with nothing to offer on a
|
|
24811
|
+
* camera returns `[]` — it is not that camera's business.
|
|
24812
|
+
*/
|
|
24813
|
+
var ClipSourceSchema = object({
|
|
24814
|
+
/** The value this source stamps on {@link ClipSchema.source}, and the prefix
|
|
24815
|
+
* of every clip id it mints. `getClipPlayback` routes on it. */
|
|
24816
|
+
source: string(),
|
|
24817
|
+
/** Operator-facing name of the source ("CamStack recordings", "SD card"). */
|
|
24818
|
+
label: string(),
|
|
24819
|
+
/**
|
|
24820
|
+
* The addon that SERVES this row.
|
|
24821
|
+
*
|
|
24822
|
+
* A surface cannot otherwise resolve a source to who answers it, and the
|
|
24823
|
+
* alternative — a `native:reolink:* → provider-reolink` table inside the
|
|
24824
|
+
* widget — is a second authority on provider identity living in the one
|
|
24825
|
+
* package with no business knowing it, wrong the day a third source appears
|
|
24826
|
+
* (D557). One addon may serve SEVERAL sources: `addon-provider-reolink`
|
|
24827
|
+
* answers a hub child with both `native:reolink:onboard` and
|
|
24828
|
+
* `native:reolink:hub`, which is why the per-device switch is keyed by
|
|
24829
|
+
* SOURCE and not by this (D555).
|
|
24830
|
+
*
|
|
24831
|
+
* Optional for version skew only. The collection dispatcher stamps it from
|
|
24832
|
+
* the registry, so a row that travelled through the fan-out carries the
|
|
24833
|
+
* authoritative id whatever the provider filled in.
|
|
24834
|
+
*/
|
|
24835
|
+
addonId: string().optional(),
|
|
24836
|
+
/**
|
|
24837
|
+
* Which API this source resolved to FOR THIS CAMERA, when it has a choice.
|
|
24838
|
+
*
|
|
24839
|
+
* A source may cover one store through more than one surface — the Reolink
|
|
24840
|
+
* provider reads a hub child through the parent's event log and a standalone
|
|
24841
|
+
* through its own file list, because that is what each camera answers. The
|
|
24842
|
+
* CHOICE is the provider's, made from what the camera is, and is never a row
|
|
24843
|
+
* the operator has to understand; but it is REPORTED, because a source that
|
|
24844
|
+
* silently reads a different API on two cameras and then behaves differently
|
|
24845
|
+
* is the thing nobody can debug later. Absent when the source has only one
|
|
24846
|
+
* way to read its store.
|
|
24847
|
+
*/
|
|
24848
|
+
via: string().optional(),
|
|
24849
|
+
availability: ClipSourceAvailabilitySchema,
|
|
24850
|
+
/**
|
|
24851
|
+
* The operator switched this source OFF for this camera.
|
|
24852
|
+
*
|
|
24853
|
+
* Deliberately NOT a member of {@link ClipSourceAvailabilitySchema}'s
|
|
24854
|
+
* vocabulary. That enum models what the source CAN do — a sleeping camera, an
|
|
24855
|
+
* unmounted card, an index that disagrees with its own calendar — and a
|
|
24856
|
+
* switched-off source could answer perfectly well; the operator decided it
|
|
24857
|
+
* should not. Folding the choice in is how `disabled` and `broken` stop being
|
|
24858
|
+
* distinguishable, which is the D62 rule this repo has already paid for twice:
|
|
24859
|
+
* an off switch is REPORTED off (`CameraStatus.switchedOff`, the same word),
|
|
24860
|
+
* and disabled must never look like broken. It is also what lets every
|
|
24861
|
+
* exhaustive consumer of the availability enum keep compiling.
|
|
24862
|
+
*
|
|
24863
|
+
* A switched-off source contributes NO clips (`listClips` never calls it) and
|
|
24864
|
+
* its row carries no `catalogAsOf`: nothing confirms a catalog it is not
|
|
24865
|
+
* allowed to serve, and a frozen age that can only grow draws a stalling
|
|
24866
|
+
* source rather than an off switch.
|
|
24867
|
+
*
|
|
24868
|
+
* The row survives BECAUSE it is the control the operator switches the source
|
|
24869
|
+
* back on from — D554 decision 4's rule ("a source that cannot answer
|
|
24870
|
+
* produces a ROW, not an absence") applied to the one case D556 carved out of
|
|
24871
|
+
* it, and D557's own kept property ("a source is never hidden, only its
|
|
24872
|
+
* rows"). Absent means on.
|
|
24873
|
+
*
|
|
24874
|
+
* A provider never sets this — like {@link ClipSourceSchema.addonId} it is
|
|
24875
|
+
* stamped by the collection dispatcher, which holds the registry's projection
|
|
24876
|
+
* of the persisted authority (D556) and is the only place that knows it.
|
|
24877
|
+
*/
|
|
24878
|
+
switchedOff: boolean().optional()
|
|
24879
|
+
});
|
|
24600
24880
|
DeviceType.Camera, method(object({
|
|
24601
24881
|
deviceId: number(),
|
|
24602
24882
|
since: number(),
|
|
24603
24883
|
until: number(),
|
|
24604
|
-
limit: number().int().positive().optional()
|
|
24884
|
+
limit: number().int().positive().optional(),
|
|
24885
|
+
/**
|
|
24886
|
+
* WHICH provider to ask — the `addonId` a {@link ClipSourceSchema} row
|
|
24887
|
+
* carries, never a source id and never a list.
|
|
24888
|
+
*
|
|
24889
|
+
* Absent means the device's BOUND provider, which is CamStack on every
|
|
24890
|
+
* camera today because that is what `deviceManager.getBindings`
|
|
24891
|
+
* answers with. A provider the device is not bound to is refused by
|
|
24892
|
+
* name rather than answered by another one (D552's
|
|
24893
|
+
* `rejectUnresolvedAddonPin` rule).
|
|
24894
|
+
*
|
|
24895
|
+
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
24896
|
+
* assumed the answer was a fan-out over everything a camera has. The
|
|
24897
|
+
* operator settled otherwise on 2026-09-20 — *"il get videoclips
|
|
24898
|
+
* prendere un provider opzionale, di default va su camstack"*,
|
|
24899
|
+
* *"l'utilizzatore è uno solo"* — so the list is asked of one provider
|
|
24900
|
+
* at a time and there is nothing to filter out of it.
|
|
24901
|
+
*/
|
|
24902
|
+
provider: string().optional()
|
|
24605
24903
|
}), array(ClipSchema).readonly(), {
|
|
24606
24904
|
kind: "query",
|
|
24607
|
-
auth: "
|
|
24905
|
+
auth: "protected"
|
|
24906
|
+
}), method(object({ deviceId: number() }), array(ClipSourceSchema).readonly(), {
|
|
24907
|
+
kind: "query",
|
|
24908
|
+
auth: "protected"
|
|
24608
24909
|
}), method(object({
|
|
24609
24910
|
deviceId: number(),
|
|
24610
|
-
clipId: string()
|
|
24911
|
+
clipId: string(),
|
|
24912
|
+
/**
|
|
24913
|
+
* Which twin to serve, on the ONE quality scale the system already has
|
|
24914
|
+
* (`CamProfileSchema`). `low | mid` → the sub file, `high` → the main
|
|
24915
|
+
* twin; both ids are already on the row so this never re-searches the
|
|
24916
|
+
* camera. Absent means the provider's own default (the sub file, which
|
|
24917
|
+
* every source is measured to hold).
|
|
24918
|
+
*
|
|
24919
|
+
* `auto` is deliberately NOT accepted here: a stored file has no
|
|
24920
|
+
* broker session, so the adaptive tier cannot be resolved for it. The
|
|
24921
|
+
* viewer resolves `auto` to a profile the same way live does, before
|
|
24922
|
+
* it calls (D549 15).
|
|
24923
|
+
*/
|
|
24924
|
+
profile: CamProfileSchema.optional()
|
|
24611
24925
|
}), ClipPlaybackSchema, {
|
|
24612
24926
|
kind: "query",
|
|
24613
|
-
auth: "
|
|
24927
|
+
auth: "protected"
|
|
24614
24928
|
});
|
|
24615
24929
|
/**
|
|
24616
24930
|
* Optional client-side hints sent at session creation to help the provider
|
|
@@ -38581,6 +38895,12 @@ Object.freeze({
|
|
|
38581
38895
|
addonId: null,
|
|
38582
38896
|
access: "view"
|
|
38583
38897
|
},
|
|
38898
|
+
"videoclips.listSources": {
|
|
38899
|
+
capName: "videoclips",
|
|
38900
|
+
capScope: "device",
|
|
38901
|
+
addonId: null,
|
|
38902
|
+
access: "view"
|
|
38903
|
+
},
|
|
38584
38904
|
"viewerUi.getStaticDir": {
|
|
38585
38905
|
capName: "viewer-ui",
|
|
38586
38906
|
capScope: "system",
|
|
@@ -40589,6 +40909,11 @@ Object.freeze({
|
|
|
40589
40909
|
form: "single",
|
|
40590
40910
|
optional: false
|
|
40591
40911
|
}],
|
|
40912
|
+
"videoclips.listSources": [{
|
|
40913
|
+
name: "deviceId",
|
|
40914
|
+
form: "single",
|
|
40915
|
+
optional: false
|
|
40916
|
+
}],
|
|
40592
40917
|
"waterHeater.setAway": [{
|
|
40593
40918
|
name: "deviceId",
|
|
40594
40919
|
form: "single",
|