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