@camstack/addon-osd-manager 0.1.250 → 0.1.251
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-CuVGpqin.mjs → MotionZonesSettings-Dt-Q9Ivx.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-DpPryOCL.mjs → PrivacyMaskSettings-Bn2xsfmP.mjs} +4 -4
- package/dist/{SceneMonitorEditor-CXYKPMh5.mjs → SceneMonitorEditor-DX0x6K6Q.mjs} +3 -3
- package/dist/_stub.js +33 -23
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CrojrVmU.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BDroCUxK.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Du370Kwi.mjs +26 -0
- package/dist/{hostInit-Dv8vQoH1.mjs → hostInit-D9Cw09jV.mjs} +3 -3
- package/dist/index.js +275 -33
- package/dist/index.mjs +275 -33
- package/dist/{player-overlays-B7TjrFms.mjs → player-overlays-DVBaEcfL.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-DoJ7-xFA.mjs → responsive-gE0QNPjl.mjs} +1 -1
- package/dist/{scene-monitor-copy-Cyi7io8H.mjs → scene-monitor-copy-DGVsUCFs.mjs} +1 -1
- package/dist/{square-CSXpu5JD.mjs → square-DawJOW8W.mjs} +1 -1
- package/dist/{trash-2-DeIekKzZ.mjs → trash-2-D78jZMte.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-C1MytOf_.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DfmaA8KI.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-8VQRbAFi.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -5417,7 +5417,7 @@ var ZodIssueCode = {
|
|
|
5417
5417
|
var ZodFirstPartyTypeKind;
|
|
5418
5418
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5419
5419
|
//#endregion
|
|
5420
|
-
//#region ../types/dist/sleep-
|
|
5420
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5421
5421
|
/**
|
|
5422
5422
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5423
5423
|
* window to float samples (D455).
|
|
@@ -16827,7 +16827,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16827
16827
|
kind: literal("node"),
|
|
16828
16828
|
nodeId: string().min(1)
|
|
16829
16829
|
})]);
|
|
16830
|
+
/**
|
|
16831
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
16832
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
16833
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
16834
|
+
*/
|
|
16830
16835
|
var DeviceHistoryKindSchema = _enum([
|
|
16836
|
+
"gauge",
|
|
16837
|
+
"counter",
|
|
16838
|
+
"boolean",
|
|
16839
|
+
"enum"
|
|
16840
|
+
]);
|
|
16841
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
16842
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16831
16843
|
"gauge",
|
|
16832
16844
|
"counter",
|
|
16833
16845
|
"boolean"
|
|
@@ -16864,7 +16876,13 @@ var SeriesInfoSchema = object({
|
|
|
16864
16876
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
16865
16877
|
unit: string().nullable(),
|
|
16866
16878
|
displayName: string(),
|
|
16867
|
-
source: _enum([
|
|
16879
|
+
source: _enum([
|
|
16880
|
+
"cap",
|
|
16881
|
+
"addon",
|
|
16882
|
+
"derived"
|
|
16883
|
+
]),
|
|
16884
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
16885
|
+
values: array(string()).readonly().nullable(),
|
|
16868
16886
|
firstTs: number(),
|
|
16869
16887
|
lastTs: number()
|
|
16870
16888
|
});
|
|
@@ -16878,17 +16896,31 @@ var QueryPointSchema = object({
|
|
|
16878
16896
|
twMean: number().nullable(),
|
|
16879
16897
|
min: number(),
|
|
16880
16898
|
max: number(),
|
|
16881
|
-
/** `null` is unknown, never zero (D393). */
|
|
16882
|
-
last: number().nullable()
|
|
16899
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
16900
|
+
last: number().nullable(),
|
|
16901
|
+
/**
|
|
16902
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
16903
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
16904
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
16905
|
+
* every other kind, and when it cannot be known.
|
|
16906
|
+
*/
|
|
16907
|
+
delta: number().nullable(),
|
|
16908
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
16909
|
+
state: string().nullable(),
|
|
16910
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
16911
|
+
states: record(string(), number()).nullable()
|
|
16883
16912
|
});
|
|
16884
16913
|
var QuerySeriesSchema = object({
|
|
16885
16914
|
scope: string(),
|
|
16886
16915
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
16887
16916
|
before: object({
|
|
16888
16917
|
t: number(),
|
|
16889
|
-
value: number().nullable()
|
|
16918
|
+
value: number().nullable(),
|
|
16919
|
+
state: string().nullable()
|
|
16890
16920
|
}).nullable(),
|
|
16891
|
-
points: array(QueryPointSchema).readonly()
|
|
16921
|
+
points: array(QueryPointSchema).readonly(),
|
|
16922
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
16923
|
+
derivedFrom: string().nullable()
|
|
16892
16924
|
});
|
|
16893
16925
|
/** The window part of a query, shared by the device and node forms. */
|
|
16894
16926
|
var QueryWindowShape = {
|
|
@@ -16904,6 +16936,23 @@ var QueryResultSchema = object({
|
|
|
16904
16936
|
series: array(QuerySeriesSchema).readonly(),
|
|
16905
16937
|
truncated: boolean()
|
|
16906
16938
|
});
|
|
16939
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
16940
|
+
var QueryManyItemSchema = union([object({
|
|
16941
|
+
deviceId: number().int(),
|
|
16942
|
+
key: string(),
|
|
16943
|
+
scope: string().optional()
|
|
16944
|
+
}), object({
|
|
16945
|
+
forNodeId: string().min(1),
|
|
16946
|
+
key: string(),
|
|
16947
|
+
scope: string().optional()
|
|
16948
|
+
})]);
|
|
16949
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
16950
|
+
ok: literal(true),
|
|
16951
|
+
result: QueryResultSchema
|
|
16952
|
+
}), object({
|
|
16953
|
+
ok: literal(false),
|
|
16954
|
+
error: string()
|
|
16955
|
+
})]);
|
|
16907
16956
|
var TierStatusSchema = object({
|
|
16908
16957
|
tier: DeviceHistoryResolutionSchema,
|
|
16909
16958
|
/** `null` until the first background count answered. */
|
|
@@ -16959,16 +17008,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
16959
17008
|
lastRefreshAt: number().nullable()
|
|
16960
17009
|
})
|
|
16961
17010
|
});
|
|
16962
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17011
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
16963
17012
|
deviceId: number().int(),
|
|
16964
17013
|
...QueryWindowShape
|
|
16965
17014
|
}), QueryResultSchema), method(object({
|
|
16966
|
-
|
|
17015
|
+
forNodeId: string().min(1),
|
|
16967
17016
|
...QueryWindowShape
|
|
16968
17017
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17018
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17019
|
+
from: QueryWindowShape.from,
|
|
17020
|
+
to: QueryWindowShape.to,
|
|
17021
|
+
resolution: QueryWindowShape.resolution,
|
|
17022
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17023
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
16969
17024
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
16970
17025
|
subjectKind: _enum(["device", "node"]),
|
|
16971
|
-
kind:
|
|
17026
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
16972
17027
|
unit: string().optional(),
|
|
16973
17028
|
displayName: string().min(1),
|
|
16974
17029
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40030,14 +40085,106 @@ var LogEntrySchema = object({
|
|
|
40030
40085
|
meta: record(string(), unknown()).optional(),
|
|
40031
40086
|
tags: record(string(), string()).optional()
|
|
40032
40087
|
});
|
|
40033
|
-
|
|
40034
|
-
|
|
40088
|
+
/**
|
|
40089
|
+
* A history READ against one destination (D898).
|
|
40090
|
+
*
|
|
40091
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40092
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40093
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40094
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40095
|
+
* nanosecond timestamp for Loki.
|
|
40096
|
+
*
|
|
40097
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40098
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40099
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40100
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40101
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40102
|
+
*/
|
|
40103
|
+
var LogReadQuerySchema = object({
|
|
40104
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40105
|
+
requestId: string().min(1).max(64).optional(),
|
|
40106
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40107
|
+
deviceId: number().int().optional(),
|
|
40108
|
+
/**
|
|
40109
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40110
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40111
|
+
*/
|
|
40112
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40113
|
+
/**
|
|
40114
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40115
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40116
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40117
|
+
* name as "which node's provider".
|
|
40118
|
+
*/
|
|
40119
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40120
|
+
/** Any other tag, exact match (AND). */
|
|
40121
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40122
|
+
/** Severity FLOOR: this level and above. */
|
|
40035
40123
|
level: LogLevelSchema.optional(),
|
|
40036
|
-
|
|
40037
|
-
|
|
40038
|
-
|
|
40039
|
-
|
|
40040
|
-
|
|
40124
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40125
|
+
text: string().min(1).max(200).optional(),
|
|
40126
|
+
/** Epoch ms, inclusive. */
|
|
40127
|
+
since: number().optional(),
|
|
40128
|
+
/** Epoch ms, inclusive. */
|
|
40129
|
+
until: number().optional(),
|
|
40130
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40131
|
+
before: string().min(1).max(1024).optional(),
|
|
40132
|
+
/** Newer than this cursor (exclusive). */
|
|
40133
|
+
after: string().min(1).max(1024).optional(),
|
|
40134
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40135
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40136
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40137
|
+
});
|
|
40138
|
+
var LogReadResultSchema = object({
|
|
40139
|
+
/** Newest first. */
|
|
40140
|
+
entries: array(object({
|
|
40141
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40142
|
+
id: string().optional(),
|
|
40143
|
+
/** Epoch ms. */
|
|
40144
|
+
timestamp: number(),
|
|
40145
|
+
level: LogLevelSchema,
|
|
40146
|
+
scope: string().optional(),
|
|
40147
|
+
message: string(),
|
|
40148
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40149
|
+
meta: record(string(), unknown()).optional()
|
|
40150
|
+
})),
|
|
40151
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40152
|
+
nextBefore: string().nullable(),
|
|
40153
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40154
|
+
nextAfter: string().nullable(),
|
|
40155
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40156
|
+
scannedBytes: number().int().nonnegative(),
|
|
40157
|
+
/**
|
|
40158
|
+
* True when the scan in this direction reached the end of the store.
|
|
40159
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40160
|
+
* call again with `nextBefore` to go on.
|
|
40161
|
+
*/
|
|
40162
|
+
done: boolean(),
|
|
40163
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40164
|
+
cancelled: boolean().optional()
|
|
40165
|
+
});
|
|
40166
|
+
var LogReadCapabilitiesSchema = object({
|
|
40167
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40168
|
+
readable: boolean(),
|
|
40169
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40170
|
+
reason: string().nullable(),
|
|
40171
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40172
|
+
filters: object({
|
|
40173
|
+
deviceId: boolean(),
|
|
40174
|
+
addonId: boolean(),
|
|
40175
|
+
nodeId: boolean(),
|
|
40176
|
+
tags: boolean(),
|
|
40177
|
+
level: boolean(),
|
|
40178
|
+
text: boolean(),
|
|
40179
|
+
timeRange: boolean()
|
|
40180
|
+
}),
|
|
40181
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40182
|
+
retentionDays: number().nullable()
|
|
40183
|
+
});
|
|
40184
|
+
method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
|
|
40185
|
+
kind: "mutation",
|
|
40186
|
+
auth: "admin"
|
|
40187
|
+
});
|
|
40041
40188
|
/**
|
|
40042
40189
|
* `login-method` — collection cap through which auth addons contribute
|
|
40043
40190
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42593,6 +42740,33 @@ var NcRuleTargetSchema = object({
|
|
|
42593
42740
|
params: record(string(), unknown()).optional()
|
|
42594
42741
|
});
|
|
42595
42742
|
/**
|
|
42743
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
42744
|
+
*
|
|
42745
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
42746
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
42747
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
42748
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
42749
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
42750
|
+
* labelled with class and confidence ("dog 87%").
|
|
42751
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
42752
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
42753
|
+
* - `none` — no picture.
|
|
42754
|
+
*
|
|
42755
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
42756
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
42757
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
42758
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
42759
|
+
* stored kind had landed.
|
|
42760
|
+
*/
|
|
42761
|
+
var NcMediaImageSchema = _enum([
|
|
42762
|
+
"scene-boxes",
|
|
42763
|
+
"crop",
|
|
42764
|
+
"clean",
|
|
42765
|
+
"none"
|
|
42766
|
+
]);
|
|
42767
|
+
/**
|
|
42768
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42769
|
+
*
|
|
42596
42770
|
* Media attachment policy (P1 still-image subset).
|
|
42597
42771
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42598
42772
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42606,6 +42780,8 @@ var NcRuleTargetSchema = object({
|
|
|
42606
42780
|
* - `none` — no attachment.
|
|
42607
42781
|
*/
|
|
42608
42782
|
/**
|
|
42783
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42784
|
+
*
|
|
42609
42785
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42610
42786
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42611
42787
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42634,16 +42810,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42634
42810
|
*/
|
|
42635
42811
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42636
42812
|
var NcMediaPolicySchema = object({
|
|
42813
|
+
/**
|
|
42814
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
42815
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
42816
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
42817
|
+
*/
|
|
42818
|
+
image: NcMediaImageSchema.optional(),
|
|
42819
|
+
/**
|
|
42820
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
42821
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
42822
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
42823
|
+
* Replaces `zoneCrop`.
|
|
42824
|
+
*/
|
|
42825
|
+
showTriggerZone: boolean().optional(),
|
|
42826
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42637
42827
|
attach: _enum([
|
|
42638
42828
|
"best",
|
|
42639
42829
|
"best-matching",
|
|
42640
42830
|
"keyFrame",
|
|
42641
42831
|
"none"
|
|
42642
|
-
]).
|
|
42643
|
-
/**
|
|
42832
|
+
]).optional(),
|
|
42833
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42644
42834
|
frame: NcMediaFrameSchema.optional(),
|
|
42645
|
-
/**
|
|
42646
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
42835
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
42647
42836
|
zoneCrop: boolean().optional(),
|
|
42648
42837
|
/**
|
|
42649
42838
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -42815,7 +43004,9 @@ var NcRuleInputSchema = object({
|
|
|
42815
43004
|
* targets.
|
|
42816
43005
|
*/
|
|
42817
43006
|
targetUsers: array(string()).optional(),
|
|
42818
|
-
|
|
43007
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43008
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43009
|
+
media: NcMediaPolicySchema.default({}),
|
|
42819
43010
|
throttle: NcThrottleSchema.default({
|
|
42820
43011
|
cooldownSec: 60,
|
|
42821
43012
|
scope: "rule-device"
|
|
@@ -44332,13 +44523,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44332
44523
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44333
44524
|
unknown: array(number().int())
|
|
44334
44525
|
});
|
|
44526
|
+
/**
|
|
44527
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44528
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44529
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44530
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44531
|
+
*/
|
|
44532
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44533
|
+
ruleId: string(),
|
|
44534
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44535
|
+
ruleName: string(),
|
|
44536
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44537
|
+
deviceId: number().int(),
|
|
44538
|
+
/** The input's current name. */
|
|
44539
|
+
name: string(),
|
|
44540
|
+
/** When it was bypassed (ms epoch). */
|
|
44541
|
+
since: number(),
|
|
44542
|
+
/** Triggers from this input dropped since. */
|
|
44543
|
+
dropped: number().int().min(0)
|
|
44544
|
+
});
|
|
44335
44545
|
var NcAlarmLiveSchema = object({
|
|
44336
44546
|
state: AlarmStateSchema,
|
|
44337
44547
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44338
44548
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44339
44549
|
availableModes: array(AlarmArmModeSchema),
|
|
44340
44550
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44341
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44551
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44552
|
+
/**
|
|
44553
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44554
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44555
|
+
*/
|
|
44556
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44342
44557
|
});
|
|
44343
44558
|
var NcAlarmConfigSchema = object({
|
|
44344
44559
|
/**
|
|
@@ -66355,7 +66570,19 @@ Object.freeze({
|
|
|
66355
66570
|
addonId: null,
|
|
66356
66571
|
access: "view"
|
|
66357
66572
|
},
|
|
66358
|
-
"logDestination.
|
|
66573
|
+
"logDestination.cancelRead": {
|
|
66574
|
+
capName: "log-destination",
|
|
66575
|
+
capScope: "system",
|
|
66576
|
+
addonId: null,
|
|
66577
|
+
access: "create"
|
|
66578
|
+
},
|
|
66579
|
+
"logDestination.describeRead": {
|
|
66580
|
+
capName: "log-destination",
|
|
66581
|
+
capScope: "system",
|
|
66582
|
+
addonId: null,
|
|
66583
|
+
access: "view"
|
|
66584
|
+
},
|
|
66585
|
+
"logDestination.read": {
|
|
66359
66586
|
capName: "log-destination",
|
|
66360
66587
|
capScope: "system",
|
|
66361
66588
|
addonId: null,
|
|
@@ -72362,6 +72589,11 @@ Object.freeze({
|
|
|
72362
72589
|
form: "single",
|
|
72363
72590
|
optional: false
|
|
72364
72591
|
}],
|
|
72592
|
+
"logDestination.read": [{
|
|
72593
|
+
name: "deviceId",
|
|
72594
|
+
form: "single",
|
|
72595
|
+
optional: true
|
|
72596
|
+
}],
|
|
72365
72597
|
"mediaPlayer.getStatus": [{
|
|
72366
72598
|
name: "deviceId",
|
|
72367
72599
|
form: "single",
|
|
@@ -75949,6 +76181,10 @@ Object.freeze({
|
|
|
75949
76181
|
"resolution": "auto",
|
|
75950
76182
|
"maxPoints": 1e3
|
|
75951
76183
|
},
|
|
76184
|
+
"queryMany": {
|
|
76185
|
+
"resolution": "auto",
|
|
76186
|
+
"maxPoints": 1e3
|
|
76187
|
+
},
|
|
75952
76188
|
"queryNode": {
|
|
75953
76189
|
"resolution": "auto",
|
|
75954
76190
|
"maxPoints": 1e3
|
|
@@ -76007,7 +76243,7 @@ Object.freeze({
|
|
|
76007
76243
|
"createRule": { "rule": { "__nested__": {
|
|
76008
76244
|
"enabled": true,
|
|
76009
76245
|
"conditions": {},
|
|
76010
|
-
"media": {
|
|
76246
|
+
"media": {},
|
|
76011
76247
|
"throttle": {
|
|
76012
76248
|
"cooldownSec": 60,
|
|
76013
76249
|
"scope": "rule-device"
|
|
@@ -76018,7 +76254,7 @@ Object.freeze({
|
|
|
76018
76254
|
"previewStateSummary": { "rule": { "__nested__": {
|
|
76019
76255
|
"enabled": true,
|
|
76020
76256
|
"conditions": {},
|
|
76021
|
-
"media": {
|
|
76257
|
+
"media": {},
|
|
76022
76258
|
"throttle": {
|
|
76023
76259
|
"cooldownSec": 60,
|
|
76024
76260
|
"scope": "rule-device"
|
|
@@ -76029,7 +76265,7 @@ Object.freeze({
|
|
|
76029
76265
|
"rule": { "__nested__": {
|
|
76030
76266
|
"enabled": true,
|
|
76031
76267
|
"conditions": {},
|
|
76032
|
-
"media": {
|
|
76268
|
+
"media": {},
|
|
76033
76269
|
"throttle": {
|
|
76034
76270
|
"cooldownSec": 60,
|
|
76035
76271
|
"scope": "rule-device"
|
|
@@ -76222,7 +76458,6 @@ Object.freeze({
|
|
|
76222
76458
|
],
|
|
76223
76459
|
"load-contribution": ["list"],
|
|
76224
76460
|
"log-channels": ["list"],
|
|
76225
|
-
"log-destination": ["query"],
|
|
76226
76461
|
"login-method": ["getLoginMethods"],
|
|
76227
76462
|
"mqtt-broker": ["listBrokers"],
|
|
76228
76463
|
"network-access": ["listEndpoints"],
|
|
@@ -76244,12 +76479,19 @@ Object.freeze({
|
|
|
76244
76479
|
"user-passkeys": ["listPasskeys"],
|
|
76245
76480
|
"videoclips": ["listClips", "listSources"]
|
|
76246
76481
|
});
|
|
76247
|
-
Object.freeze({
|
|
76248
|
-
"
|
|
76249
|
-
|
|
76250
|
-
|
|
76251
|
-
|
|
76252
|
-
]
|
|
76482
|
+
Object.freeze({
|
|
76483
|
+
"log-destination": [
|
|
76484
|
+
"cancelRead",
|
|
76485
|
+
"describeRead",
|
|
76486
|
+
"read"
|
|
76487
|
+
],
|
|
76488
|
+
"videoclips": [
|
|
76489
|
+
"dialClipStream",
|
|
76490
|
+
"getPlaybackOptions",
|
|
76491
|
+
"offerClipBytes",
|
|
76492
|
+
"readClipBytes"
|
|
76493
|
+
]
|
|
76494
|
+
});
|
|
76253
76495
|
Object.freeze({ "doorbell": "lastPressedAt" });
|
|
76254
76496
|
/** cap name -> the bindable leaves of its runtime state (absent: none). */
|
|
76255
76497
|
var CAP_STATE_LEAVES = Object.freeze({
|