@camstack/addon-model-studio 1.1.160 → 1.1.162
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-DIQ8WQL_.mjs → MotionZonesSettings-C47Zqn55.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-CkwY1O7I.mjs → PrivacyMaskSettings-BUmdbsMw.mjs} +4 -4
- package/dist/{SceneMonitorEditor-CiIMWyUb.mjs → SceneMonitorEditor-DSHQUq3Y.mjs} +3 -3
- package/dist/_stub.js +10 -10
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Dl57Gf_x.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-Bd6QJpb_.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D4KJgqEs.mjs +26 -0
- package/dist/{cap-error-DHkvpvpc.mjs → cap-error-i6FGZD6b.mjs} +1 -1
- package/dist/{hostInit-Dw6HUDk0.mjs → hostInit-B95GtUTZ.mjs} +2 -2
- package/dist/model-studio.addon.js +272 -17
- package/dist/model-studio.addon.mjs +272 -17
- package/dist/{player-overlays-DdDSY-tk.mjs → player-overlays-DPqDpmFF.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{scene-monitor-copy-BKbPs3_1.mjs → scene-monitor-copy-DjjNBBS2.mjs} +1 -1
- package/dist/{square-BWowq2yB.mjs → square-CRs9IoKQ.mjs} +1 -1
- package/dist/{trash-2-B6STAYa8.mjs → trash-2-B3zUNiUt.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DodCXtYd.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-7ce5CXQ5.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-DtTWe8FC.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-BVhJDJka.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).
|
|
@@ -7514,6 +7514,18 @@ function systemMethod(input, output, options) {
|
|
|
7514
7514
|
systemOnly: true
|
|
7515
7515
|
};
|
|
7516
7516
|
}
|
|
7517
|
+
/**
|
|
7518
|
+
* A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
|
|
7519
|
+
* on `InferProvider`. The `providerOptional: true` literal is what
|
|
7520
|
+
* `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
|
|
7521
|
+
* for when this is the honest answer and when it is a soft stub.
|
|
7522
|
+
*/
|
|
7523
|
+
function optionalMethod(input, output, options) {
|
|
7524
|
+
return {
|
|
7525
|
+
...method(input, output, options),
|
|
7526
|
+
providerOptional: true
|
|
7527
|
+
};
|
|
7528
|
+
}
|
|
7517
7529
|
var StaticDirOutputSchema$1 = object({ staticDir: string() });
|
|
7518
7530
|
var VersionOutputSchema$1 = object({ version: string() });
|
|
7519
7531
|
method(_void(), StaticDirOutputSchema$1, { auth: "admin" }), method(_void(), VersionOutputSchema$1, { auth: "admin" });
|
|
@@ -24820,6 +24832,59 @@ var ClipPlaybackSchema = object({
|
|
|
24820
24832
|
* which days it asked for and got nothing — "no clips" would be a lie about a
|
|
24821
24833
|
* card that is full of them.
|
|
24822
24834
|
*/
|
|
24835
|
+
/**
|
|
24836
|
+
* The operator's authorisation to WAKE a sleeping camera for one clip read.
|
|
24837
|
+
*
|
|
24838
|
+
* ONE value, absent by default, and it is a `force`-shaped operator signal in
|
|
24839
|
+
* exactly the sense `snapshot-wake-gate.ts` uses the word: *"`snapshot.getSnapshot`'s
|
|
24840
|
+
* `force` flag, and nothing else… a background caller must never set it…
|
|
24841
|
+
* Stale but honest beats woken"*. A scheduler, a retry, a reconcile and a
|
|
24842
|
+
* prefetch never set it; a surface sets it only behind the same confirm the
|
|
24843
|
+
* "Wake and refresh" gesture uses, and it is refused below 15 % battery
|
|
24844
|
+
* exactly as that gesture is.
|
|
24845
|
+
*
|
|
24846
|
+
* The gate is decided BEFORE `getApi()`, because on UDP the login IS the wake
|
|
24847
|
+
* (D549) — a read that opened a session and then checked would have woken the
|
|
24848
|
+
* camera to find out it was not allowed to.
|
|
24849
|
+
*
|
|
24850
|
+
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
24851
|
+
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
24852
|
+
* it was proposed, it is free on the battery, and the operator declined it on
|
|
24853
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."*,
|
|
24854
|
+
* D558 "Considered and not taken").
|
|
24855
|
+
*/
|
|
24856
|
+
var ClipWakeSchema = _enum(["authorised"]);
|
|
24857
|
+
/**
|
|
24858
|
+
* A clip's finished bytes, inline — the twin of `recordingExport.readExportBytes`.
|
|
24859
|
+
*
|
|
24860
|
+
* `bytes` is the DECODED length, so nobody infers it from the base64 length,
|
|
24861
|
+
* and `served` says which twin the caller actually got.
|
|
24862
|
+
*/
|
|
24863
|
+
var ClipBytesSchema = object({
|
|
24864
|
+
base64: string(),
|
|
24865
|
+
contentType: string(),
|
|
24866
|
+
/** Suggested filename, extension included. */
|
|
24867
|
+
name: string(),
|
|
24868
|
+
bytes: number().int().nonnegative(),
|
|
24869
|
+
/**
|
|
24870
|
+
* Which twin was actually served — the same contract
|
|
24871
|
+
* {@link ClipPlaybackSchema.served} carries, and REQUIRED here because the
|
|
24872
|
+
* export record persists it: a row read a week later must say the same thing
|
|
24873
|
+
* the panel said at the moment of the tap. A missing main twin is never
|
|
24874
|
+
* served silently as if it were the asked-for quality (D549 15).
|
|
24875
|
+
*/
|
|
24876
|
+
served: CamProfileSchema,
|
|
24877
|
+
/**
|
|
24878
|
+
* The DECODED duration of the delivered file, when the fetch measured one.
|
|
24879
|
+
*
|
|
24880
|
+
* A clip fetch verifies its own completion against the catalog row and
|
|
24881
|
+
* retries a materially short pass (D568); this is that measurement, carried
|
|
24882
|
+
* so a consumer can say the same thing rather than re-deriving it. Absent
|
|
24883
|
+
* when the producer did not measure — never zero, which would say the file
|
|
24884
|
+
* is empty.
|
|
24885
|
+
*/
|
|
24886
|
+
durationMs: number().positive().optional()
|
|
24887
|
+
});
|
|
24823
24888
|
var ClipSourceAvailabilitySchema = object({
|
|
24824
24889
|
state: _enum([
|
|
24825
24890
|
"ok",
|
|
@@ -24876,22 +24941,40 @@ DeviceType.Camera, method(object({
|
|
|
24876
24941
|
limit: number().int().positive().optional(),
|
|
24877
24942
|
/**
|
|
24878
24943
|
* WHICH provider to ask — the `addonId` a {@link ClipSourceSchema} row
|
|
24879
|
-
* carries, never a source id and never a list.
|
|
24880
|
-
*
|
|
24881
|
-
*
|
|
24882
|
-
*
|
|
24883
|
-
*
|
|
24884
|
-
*
|
|
24885
|
-
*
|
|
24944
|
+
* carries, never a source id and never a list. **Required** (D554 amended).
|
|
24945
|
+
*
|
|
24946
|
+
* A provider the device is not bound to is refused by name rather than
|
|
24947
|
+
* answered by another one (D552's `rejectUnresolvedAddonPin` rule).
|
|
24948
|
+
*
|
|
24949
|
+
* It was optional, documented as "absent means the device's BOUND
|
|
24950
|
+
* provider, which is CamStack on every camera". No code implemented
|
|
24951
|
+
* that. Measured on the live hub 2026-09-20 — device 592, bound to
|
|
24952
|
+
* `recorder` AND `provider-reolink` — a bare call with `limit: 3`
|
|
24953
|
+
* answered SIX rows, three from each source, merged newest-first:
|
|
24954
|
+
* `device-collection-dispatch.ts` simply left the fan-out un-narrowed,
|
|
24955
|
+
* so absence bought the union this method exists not to be, and
|
|
24956
|
+
* `limit` meant `limit × sources`.
|
|
24957
|
+
*
|
|
24958
|
+
* There is nothing to restore the default to. `getBindings` answers a
|
|
24959
|
+
* collection cap with a DERIVED, PLURAL set (D554 amended, step 0);
|
|
24960
|
+
* `setWrapperActive` — the singleton authority that could name one —
|
|
24961
|
+
* throws for a collection cap by design. Naming CamStack here instead
|
|
24962
|
+
* would privilege one addon by id inside a surface whose premise is
|
|
24963
|
+
* that sources are peers, and would be wrong on the first camera with
|
|
24964
|
+
* no recorder binding. So absence is REFUSED, in the schema, where the
|
|
24965
|
+
* generated types make it unomittable rather than merely discouraged.
|
|
24966
|
+
*
|
|
24967
|
+
* The default belongs to the SURFACE, which has the `listSources` rows
|
|
24968
|
+
* and can say which one it picked (D569 § 1–3; the viewer already
|
|
24969
|
+
* always sends this).
|
|
24886
24970
|
*
|
|
24887
24971
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
24888
24972
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
24889
|
-
* operator settled otherwise on 2026-09-20 — *"
|
|
24890
|
-
*
|
|
24891
|
-
*
|
|
24892
|
-
* at a time and there is nothing to filter out of it.
|
|
24973
|
+
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
24974
|
+
* solo"* — so the list is asked of one provider at a time and there is
|
|
24975
|
+
* nothing to filter out of it.
|
|
24893
24976
|
*/
|
|
24894
|
-
provider: string().
|
|
24977
|
+
provider: string().min(1)
|
|
24895
24978
|
}), array(ClipSchema).readonly(), {
|
|
24896
24979
|
kind: "query",
|
|
24897
24980
|
auth: "protected"
|
|
@@ -24917,6 +25000,33 @@ DeviceType.Camera, method(object({
|
|
|
24917
25000
|
}), ClipPlaybackSchema, {
|
|
24918
25001
|
kind: "query",
|
|
24919
25002
|
auth: "protected"
|
|
25003
|
+
}), optionalMethod(object({
|
|
25004
|
+
deviceId: number(),
|
|
25005
|
+
clipId: string().min(1),
|
|
25006
|
+
/**
|
|
25007
|
+
* Which twin to fetch, on the mapping D549 15 already fixed:
|
|
25008
|
+
* `low | mid` → the sub file, `high` → the main twin. `auto` is not
|
|
25009
|
+
* accepted here for the same reason it is not accepted by
|
|
25010
|
+
* `getClipPlayback` — a stored file has no broker session, so the
|
|
25011
|
+
* adaptive tier cannot be resolved for it.
|
|
25012
|
+
*/
|
|
25013
|
+
profile: CamProfileSchema.optional(),
|
|
25014
|
+
/**
|
|
25015
|
+
* The CALLER's byte bound, so an over-size clip is refused before it is
|
|
25016
|
+
* read and encoded rather than after. Capped by
|
|
25017
|
+
* {@link VIDEOCLIPS_MAX_READ_BYTES} whatever is passed; absent means
|
|
25018
|
+
* that ceiling.
|
|
25019
|
+
*/
|
|
25020
|
+
maxBytes: number().int().positive().optional(),
|
|
25021
|
+
/**
|
|
25022
|
+
* The operator's authorisation to wake a sleeping camera for this
|
|
25023
|
+
* read. Absent — the default — means a sleeping standalone battery
|
|
25024
|
+
* camera is REFUSED by name, before any session is opened.
|
|
25025
|
+
*/
|
|
25026
|
+
wake: ClipWakeSchema.optional()
|
|
25027
|
+
}), ClipBytesSchema, {
|
|
25028
|
+
kind: "query",
|
|
25029
|
+
auth: "protected"
|
|
24920
25030
|
});
|
|
24921
25031
|
/**
|
|
24922
25032
|
* Optional client-side hints sent at session creation to help the provider
|
|
@@ -30849,13 +30959,101 @@ var ExportStateSchema = _enum([
|
|
|
30849
30959
|
"expired",
|
|
30850
30960
|
"deleted"
|
|
30851
30961
|
]);
|
|
30852
|
-
/**
|
|
30962
|
+
/**
|
|
30963
|
+
* WHAT an export is — the authority, as opposed to the four top-level fields
|
|
30964
|
+
* the Library sorts and labels on (D558 § 2.2).
|
|
30965
|
+
*
|
|
30966
|
+
* Read it through {@link exportSubjectOf}, never off the record directly: the
|
|
30967
|
+
* field is optional for the history rows written before it existed, and that
|
|
30968
|
+
* absence has exactly one interpreter.
|
|
30969
|
+
*/
|
|
30970
|
+
var ExportSubjectSchema = discriminatedUnion("kind", [object({
|
|
30971
|
+
kind: literal("footage"),
|
|
30972
|
+
deviceId: number(),
|
|
30973
|
+
profiles: array(string()).min(1),
|
|
30974
|
+
fromMs: number(),
|
|
30975
|
+
toMs: number()
|
|
30976
|
+
}), object({
|
|
30977
|
+
kind: literal("clip"),
|
|
30978
|
+
deviceId: number(),
|
|
30979
|
+
provider: string().min(1),
|
|
30980
|
+
source: string().min(1),
|
|
30981
|
+
sourceLabel: string().min(1),
|
|
30982
|
+
clipId: string().min(1),
|
|
30983
|
+
/**
|
|
30984
|
+
* WHERE IN THE CATALOG to confirm this clip — the day window the surface was
|
|
30985
|
+
* already listing when the operator picked the segment.
|
|
30986
|
+
*
|
|
30987
|
+
* It is **not** a time range control and it never becomes one: the record's
|
|
30988
|
+
* `fromMs`/`toMs` come from the catalog ROW and from nothing a caller
|
|
30989
|
+
* supplied (D558 § 5.4.3), and a window that does not contain the clip is a
|
|
30990
|
+
* `catalog-miss`, not a silently wider search. It exists because
|
|
30991
|
+
* `videoclips.listClips` takes `since`/`until` and has no by-handle twin:
|
|
30992
|
+
* the catalog check D558 asks for is literally that call, and a call needs a
|
|
30993
|
+
* window. The surface has one — `ClipsBrowser`'s `dayWindow`, one local
|
|
30994
|
+
* wall-clock day, which is also the only width measured to be cheap (one
|
|
30995
|
+
* day on 592 lists 171 clips in 712 ms, a busy day 546 in 2.0 s; twenty days
|
|
30996
|
+
* of one child's events took 3.6–5.4 s).
|
|
30997
|
+
*/
|
|
30998
|
+
catalogWindow: object({
|
|
30999
|
+
sinceMs: number(),
|
|
31000
|
+
untilMs: number()
|
|
31001
|
+
}),
|
|
31002
|
+
profile: _enum([
|
|
31003
|
+
"high",
|
|
31004
|
+
"mid",
|
|
31005
|
+
"low"
|
|
31006
|
+
]),
|
|
31007
|
+
/**
|
|
31008
|
+
* The operator's authorisation to wake a sleeping camera for this export.
|
|
31009
|
+
* ONE definition, in the cap that owns the clip read ({@link ClipWakeSchema}),
|
|
31010
|
+
* because the gate that honours it is the clip provider's sleep gate — a
|
|
31011
|
+
* second enum here would be a second contract. Absent by default; never
|
|
31012
|
+
* settable by a scheduler or a retry.
|
|
31013
|
+
*
|
|
31014
|
+
* **One authorised yes is ONE wake.** A failed clip export is retried only by
|
|
31015
|
+
* an operator act that asks again; a queued job that outlived its wake fails
|
|
31016
|
+
* with a reason rather than waking on its turn; and this subject carries
|
|
31017
|
+
* exactly one profile precisely so one tap is never two fetches (D558 § 5.2).
|
|
31018
|
+
*/
|
|
31019
|
+
wake: ClipWakeSchema.optional()
|
|
31020
|
+
})]);
|
|
31021
|
+
/**
|
|
31022
|
+
* One export job / history row.
|
|
31023
|
+
*
|
|
31024
|
+
* **`subject` is the AUTHORITY on what was exported. `deviceId`, `profile`,
|
|
31025
|
+
* `fromMs` and `toMs` are its PROJECTION** — kept top-level because the whole
|
|
31026
|
+
* Library sorts and labels on them (`library-items.ts` orders an export by
|
|
31027
|
+
* `fromMs`; `export-format.ts` draws `rangeLabel` from the pair), and a row
|
|
31028
|
+
* that did not fill them would sort under the epoch and render a blank range.
|
|
31029
|
+
* Write to the subject and read from the projection and the two will disagree;
|
|
31030
|
+
* the projection is derived at creation and never edited afterwards.
|
|
31031
|
+
*
|
|
31032
|
+
* And they mean DIFFERENT FACTS for the two kinds, which is the part a reader
|
|
31033
|
+
* who knows only the recording export will get wrong:
|
|
31034
|
+
*
|
|
31035
|
+
* | field | `kind:'footage'` | `kind:'clip'` |
|
|
31036
|
+
* | --- | --- | --- |
|
|
31037
|
+
* | `fromMs`/`toMs` | the stretch the operator ASKED for | the camera's own boundaries, always `clip.timeRange`, never anything a caller supplied |
|
|
31038
|
+
* | `profile` | the stream rendered | the twin actually SERVED (`subject.profile` is the one asked for) |
|
|
31039
|
+
*
|
|
31040
|
+
* Same type, different fact — the shape this repo keeps getting wrong (D385's
|
|
31041
|
+
* two authorities, D224's second copy).
|
|
31042
|
+
*/
|
|
30853
31043
|
var ExportRecordSchema = object({
|
|
30854
31044
|
id: string(),
|
|
30855
31045
|
deviceId: number(),
|
|
30856
31046
|
profile: string(),
|
|
30857
31047
|
fromMs: number(),
|
|
30858
31048
|
toMs: number(),
|
|
31049
|
+
/**
|
|
31050
|
+
* What this export IS. Optional ONLY for the rows written before D558: the
|
|
31051
|
+
* store parses every row through this schema on every read, so a required
|
|
31052
|
+
* field would make the export AUDIT — which is the whole reason rows survive
|
|
31053
|
+
* file deletion — unreadable in one release. Absence means `footage`, and
|
|
31054
|
+
* {@link exportSubjectOf} is the one place that says so.
|
|
31055
|
+
*/
|
|
31056
|
+
subject: ExportSubjectSchema.optional(),
|
|
30859
31057
|
options: ExportOptionsSchema,
|
|
30860
31058
|
state: ExportStateSchema,
|
|
30861
31059
|
/** 0–100 while rendering; null otherwise. */
|
|
@@ -30872,6 +31070,18 @@ var ExportRecordSchema = object({
|
|
|
30872
31070
|
/** Failure reason when state is 'failed'; null otherwise. */
|
|
30873
31071
|
error: string().nullable()
|
|
30874
31072
|
});
|
|
31073
|
+
_enum([
|
|
31074
|
+
"catalog-miss",
|
|
31075
|
+
"catalog-unreachable",
|
|
31076
|
+
"no-file-for-window",
|
|
31077
|
+
"clip-in-progress",
|
|
31078
|
+
"unsupported-option",
|
|
31079
|
+
"sleeping",
|
|
31080
|
+
"camera-refused",
|
|
31081
|
+
"fetch-failed",
|
|
31082
|
+
"too-large-to-transfer",
|
|
31083
|
+
"wake-expired"
|
|
31084
|
+
]);
|
|
30875
31085
|
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
30876
31086
|
var ExportDownloadSchema = object({
|
|
30877
31087
|
url: string(),
|
|
@@ -30890,16 +31100,50 @@ var ExportBytesSchema = object({
|
|
|
30890
31100
|
name: string(),
|
|
30891
31101
|
bytes: number().int().nonnegative()
|
|
30892
31102
|
});
|
|
31103
|
+
/** Canonical `profiles[]`, falling back to the legacy singular `profile`. */
|
|
31104
|
+
function resolveExportProfiles(input) {
|
|
31105
|
+
if (input.profiles !== void 0 && input.profiles.length > 0) return [...input.profiles];
|
|
31106
|
+
if (typeof input.profile === "string" && input.profile.length > 0) return [input.profile];
|
|
31107
|
+
return [];
|
|
31108
|
+
}
|
|
30893
31109
|
method(object({
|
|
30894
31110
|
deviceId: number(),
|
|
30895
31111
|
/** @deprecated Prefer `profiles`. Kept so timelapse/notifiers keep working. */
|
|
30896
31112
|
profile: string().optional(),
|
|
30897
31113
|
profiles: array(string()).min(1).optional(),
|
|
30898
|
-
|
|
30899
|
-
|
|
31114
|
+
/** Footage only — a clip's boundaries are the camera's. */
|
|
31115
|
+
fromMs: number().optional(),
|
|
31116
|
+
toMs: number().optional(),
|
|
31117
|
+
/** What to export. Absent means the legacy flat footage request. */
|
|
31118
|
+
subject: ExportSubjectSchema.optional(),
|
|
30900
31119
|
options: ExportOptionsSchema
|
|
30901
31120
|
}).superRefine((v, ctx) => {
|
|
30902
|
-
if (
|
|
31121
|
+
if (v.subject?.kind === "clip") {
|
|
31122
|
+
if (v.subject.deviceId !== v.deviceId) ctx.addIssue({
|
|
31123
|
+
code: ZodIssueCode.custom,
|
|
31124
|
+
message: `subject.deviceId (${v.subject.deviceId}) must equal deviceId (${v.deviceId}) — the top-level field is what per-device scope enforcement reads`,
|
|
31125
|
+
path: ["subject", "deviceId"]
|
|
31126
|
+
});
|
|
31127
|
+
if (v.fromMs !== void 0 || v.toMs !== void 0) ctx.addIssue({
|
|
31128
|
+
code: ZodIssueCode.custom,
|
|
31129
|
+
message: "a clip export asks for no time range: the camera chose the boundaries and they are read from the catalog row",
|
|
31130
|
+
path: ["fromMs"]
|
|
31131
|
+
});
|
|
31132
|
+
return;
|
|
31133
|
+
}
|
|
31134
|
+
if (v.subject?.kind === "footage" && v.subject.deviceId !== v.deviceId) ctx.addIssue({
|
|
31135
|
+
code: ZodIssueCode.custom,
|
|
31136
|
+
message: `subject.deviceId (${v.subject.deviceId}) must equal deviceId (${v.deviceId})`,
|
|
31137
|
+
path: ["subject", "deviceId"]
|
|
31138
|
+
});
|
|
31139
|
+
const fromMs = v.subject?.kind === "footage" ? v.subject.fromMs : v.fromMs;
|
|
31140
|
+
const toMs = v.subject?.kind === "footage" ? v.subject.toMs : v.toMs;
|
|
31141
|
+
if (typeof fromMs !== "number" || typeof toMs !== "number") ctx.addIssue({
|
|
31142
|
+
code: ZodIssueCode.custom,
|
|
31143
|
+
message: "a footage export needs fromMs and toMs",
|
|
31144
|
+
path: ["fromMs"]
|
|
31145
|
+
});
|
|
31146
|
+
if ((v.subject?.kind === "footage" ? [...v.subject.profiles] : resolveExportProfiles(v)).length < 1) ctx.addIssue({
|
|
30903
31147
|
code: ZodIssueCode.custom,
|
|
30904
31148
|
message: "pass profiles[] (min 1) or legacy profile",
|
|
30905
31149
|
path: ["profiles"]
|
|
@@ -38899,6 +39143,12 @@ Object.freeze({
|
|
|
38899
39143
|
addonId: null,
|
|
38900
39144
|
access: "view"
|
|
38901
39145
|
},
|
|
39146
|
+
"videoclips.readClipBytes": {
|
|
39147
|
+
capName: "videoclips",
|
|
39148
|
+
capScope: "device",
|
|
39149
|
+
addonId: null,
|
|
39150
|
+
access: "view"
|
|
39151
|
+
},
|
|
38902
39152
|
"viewerUi.getStaticDir": {
|
|
38903
39153
|
capName: "viewer-ui",
|
|
38904
39154
|
capScope: "system",
|
|
@@ -40917,6 +41167,11 @@ Object.freeze({
|
|
|
40917
41167
|
form: "single",
|
|
40918
41168
|
optional: false
|
|
40919
41169
|
}],
|
|
41170
|
+
"videoclips.readClipBytes": [{
|
|
41171
|
+
name: "deviceId",
|
|
41172
|
+
form: "single",
|
|
41173
|
+
optional: false
|
|
41174
|
+
}],
|
|
40920
41175
|
"waterHeater.setAway": [{
|
|
40921
41176
|
name: "deviceId",
|
|
40922
41177
|
form: "single",
|