@camstack/addon-decoder-nodeav 1.2.127 → 1.2.129
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/index.js +271 -24
- package/dist/index.mjs +271 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5418,7 +5418,7 @@ var ZodIssueCode = {
|
|
|
5418
5418
|
var ZodFirstPartyTypeKind;
|
|
5419
5419
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5420
5420
|
//#endregion
|
|
5421
|
-
//#region ../types/dist/sleep-
|
|
5421
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5422
5422
|
/**
|
|
5423
5423
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5424
5424
|
* window to float samples (D455).
|
|
@@ -16858,7 +16858,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16858
16858
|
kind: literal("node"),
|
|
16859
16859
|
nodeId: string().min(1)
|
|
16860
16860
|
})]);
|
|
16861
|
+
/**
|
|
16862
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
16863
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
16864
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
16865
|
+
*/
|
|
16861
16866
|
var DeviceHistoryKindSchema = _enum([
|
|
16867
|
+
"gauge",
|
|
16868
|
+
"counter",
|
|
16869
|
+
"boolean",
|
|
16870
|
+
"enum"
|
|
16871
|
+
]);
|
|
16872
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
16873
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16862
16874
|
"gauge",
|
|
16863
16875
|
"counter",
|
|
16864
16876
|
"boolean"
|
|
@@ -16895,7 +16907,13 @@ var SeriesInfoSchema = object({
|
|
|
16895
16907
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
16896
16908
|
unit: string().nullable(),
|
|
16897
16909
|
displayName: string(),
|
|
16898
|
-
source: _enum([
|
|
16910
|
+
source: _enum([
|
|
16911
|
+
"cap",
|
|
16912
|
+
"addon",
|
|
16913
|
+
"derived"
|
|
16914
|
+
]),
|
|
16915
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
16916
|
+
values: array(string()).readonly().nullable(),
|
|
16899
16917
|
firstTs: number(),
|
|
16900
16918
|
lastTs: number()
|
|
16901
16919
|
});
|
|
@@ -16909,17 +16927,31 @@ var QueryPointSchema = object({
|
|
|
16909
16927
|
twMean: number().nullable(),
|
|
16910
16928
|
min: number(),
|
|
16911
16929
|
max: number(),
|
|
16912
|
-
/** `null` is unknown, never zero (D393). */
|
|
16913
|
-
last: number().nullable()
|
|
16930
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
16931
|
+
last: number().nullable(),
|
|
16932
|
+
/**
|
|
16933
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
16934
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
16935
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
16936
|
+
* every other kind, and when it cannot be known.
|
|
16937
|
+
*/
|
|
16938
|
+
delta: number().nullable(),
|
|
16939
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
16940
|
+
state: string().nullable(),
|
|
16941
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
16942
|
+
states: record(string(), number()).nullable()
|
|
16914
16943
|
});
|
|
16915
16944
|
var QuerySeriesSchema = object({
|
|
16916
16945
|
scope: string(),
|
|
16917
16946
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
16918
16947
|
before: object({
|
|
16919
16948
|
t: number(),
|
|
16920
|
-
value: number().nullable()
|
|
16949
|
+
value: number().nullable(),
|
|
16950
|
+
state: string().nullable()
|
|
16921
16951
|
}).nullable(),
|
|
16922
|
-
points: array(QueryPointSchema).readonly()
|
|
16952
|
+
points: array(QueryPointSchema).readonly(),
|
|
16953
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
16954
|
+
derivedFrom: string().nullable()
|
|
16923
16955
|
});
|
|
16924
16956
|
/** The window part of a query, shared by the device and node forms. */
|
|
16925
16957
|
var QueryWindowShape = {
|
|
@@ -16935,6 +16967,23 @@ var QueryResultSchema = object({
|
|
|
16935
16967
|
series: array(QuerySeriesSchema).readonly(),
|
|
16936
16968
|
truncated: boolean()
|
|
16937
16969
|
});
|
|
16970
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
16971
|
+
var QueryManyItemSchema = union([object({
|
|
16972
|
+
deviceId: number().int(),
|
|
16973
|
+
key: string(),
|
|
16974
|
+
scope: string().optional()
|
|
16975
|
+
}), object({
|
|
16976
|
+
forNodeId: string().min(1),
|
|
16977
|
+
key: string(),
|
|
16978
|
+
scope: string().optional()
|
|
16979
|
+
})]);
|
|
16980
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
16981
|
+
ok: literal(true),
|
|
16982
|
+
result: QueryResultSchema
|
|
16983
|
+
}), object({
|
|
16984
|
+
ok: literal(false),
|
|
16985
|
+
error: string()
|
|
16986
|
+
})]);
|
|
16938
16987
|
var TierStatusSchema = object({
|
|
16939
16988
|
tier: DeviceHistoryResolutionSchema,
|
|
16940
16989
|
/** `null` until the first background count answered. */
|
|
@@ -16990,16 +17039,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
16990
17039
|
lastRefreshAt: number().nullable()
|
|
16991
17040
|
})
|
|
16992
17041
|
});
|
|
16993
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17042
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
16994
17043
|
deviceId: number().int(),
|
|
16995
17044
|
...QueryWindowShape
|
|
16996
17045
|
}), QueryResultSchema), method(object({
|
|
16997
|
-
|
|
17046
|
+
forNodeId: string().min(1),
|
|
16998
17047
|
...QueryWindowShape
|
|
16999
17048
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17049
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17050
|
+
from: QueryWindowShape.from,
|
|
17051
|
+
to: QueryWindowShape.to,
|
|
17052
|
+
resolution: QueryWindowShape.resolution,
|
|
17053
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17054
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17000
17055
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17001
17056
|
subjectKind: _enum(["device", "node"]),
|
|
17002
|
-
kind:
|
|
17057
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17003
17058
|
unit: string().optional(),
|
|
17004
17059
|
displayName: string().min(1),
|
|
17005
17060
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40097,14 +40152,106 @@ var LogEntrySchema = object({
|
|
|
40097
40152
|
meta: record(string(), unknown()).optional(),
|
|
40098
40153
|
tags: record(string(), string()).optional()
|
|
40099
40154
|
});
|
|
40100
|
-
|
|
40101
|
-
|
|
40155
|
+
/**
|
|
40156
|
+
* A history READ against one destination (D898).
|
|
40157
|
+
*
|
|
40158
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40159
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40160
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40161
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40162
|
+
* nanosecond timestamp for Loki.
|
|
40163
|
+
*
|
|
40164
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40165
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40166
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40167
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40168
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40169
|
+
*/
|
|
40170
|
+
var LogReadQuerySchema = object({
|
|
40171
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40172
|
+
requestId: string().min(1).max(64).optional(),
|
|
40173
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40174
|
+
deviceId: number().int().optional(),
|
|
40175
|
+
/**
|
|
40176
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40177
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40178
|
+
*/
|
|
40179
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40180
|
+
/**
|
|
40181
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40182
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40183
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40184
|
+
* name as "which node's provider".
|
|
40185
|
+
*/
|
|
40186
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40187
|
+
/** Any other tag, exact match (AND). */
|
|
40188
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40189
|
+
/** Severity FLOOR: this level and above. */
|
|
40102
40190
|
level: LogLevelSchema.optional(),
|
|
40103
|
-
|
|
40104
|
-
|
|
40105
|
-
|
|
40106
|
-
|
|
40107
|
-
|
|
40191
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40192
|
+
text: string().min(1).max(200).optional(),
|
|
40193
|
+
/** Epoch ms, inclusive. */
|
|
40194
|
+
since: number().optional(),
|
|
40195
|
+
/** Epoch ms, inclusive. */
|
|
40196
|
+
until: number().optional(),
|
|
40197
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40198
|
+
before: string().min(1).max(1024).optional(),
|
|
40199
|
+
/** Newer than this cursor (exclusive). */
|
|
40200
|
+
after: string().min(1).max(1024).optional(),
|
|
40201
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40202
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40203
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40204
|
+
});
|
|
40205
|
+
var LogReadResultSchema = object({
|
|
40206
|
+
/** Newest first. */
|
|
40207
|
+
entries: array(object({
|
|
40208
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40209
|
+
id: string().optional(),
|
|
40210
|
+
/** Epoch ms. */
|
|
40211
|
+
timestamp: number(),
|
|
40212
|
+
level: LogLevelSchema,
|
|
40213
|
+
scope: string().optional(),
|
|
40214
|
+
message: string(),
|
|
40215
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40216
|
+
meta: record(string(), unknown()).optional()
|
|
40217
|
+
})),
|
|
40218
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40219
|
+
nextBefore: string().nullable(),
|
|
40220
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40221
|
+
nextAfter: string().nullable(),
|
|
40222
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40223
|
+
scannedBytes: number().int().nonnegative(),
|
|
40224
|
+
/**
|
|
40225
|
+
* True when the scan in this direction reached the end of the store.
|
|
40226
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40227
|
+
* call again with `nextBefore` to go on.
|
|
40228
|
+
*/
|
|
40229
|
+
done: boolean(),
|
|
40230
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40231
|
+
cancelled: boolean().optional()
|
|
40232
|
+
});
|
|
40233
|
+
var LogReadCapabilitiesSchema = object({
|
|
40234
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40235
|
+
readable: boolean(),
|
|
40236
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40237
|
+
reason: string().nullable(),
|
|
40238
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40239
|
+
filters: object({
|
|
40240
|
+
deviceId: boolean(),
|
|
40241
|
+
addonId: boolean(),
|
|
40242
|
+
nodeId: boolean(),
|
|
40243
|
+
tags: boolean(),
|
|
40244
|
+
level: boolean(),
|
|
40245
|
+
text: boolean(),
|
|
40246
|
+
timeRange: boolean()
|
|
40247
|
+
}),
|
|
40248
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40249
|
+
retentionDays: number().nullable()
|
|
40250
|
+
});
|
|
40251
|
+
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() }), {
|
|
40252
|
+
kind: "mutation",
|
|
40253
|
+
auth: "admin"
|
|
40254
|
+
});
|
|
40108
40255
|
/**
|
|
40109
40256
|
* `login-method` — collection cap through which auth addons contribute
|
|
40110
40257
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42660,6 +42807,33 @@ var NcRuleTargetSchema = object({
|
|
|
42660
42807
|
params: record(string(), unknown()).optional()
|
|
42661
42808
|
});
|
|
42662
42809
|
/**
|
|
42810
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
42811
|
+
*
|
|
42812
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
42813
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
42814
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
42815
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
42816
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
42817
|
+
* labelled with class and confidence ("dog 87%").
|
|
42818
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
42819
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
42820
|
+
* - `none` — no picture.
|
|
42821
|
+
*
|
|
42822
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
42823
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
42824
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
42825
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
42826
|
+
* stored kind had landed.
|
|
42827
|
+
*/
|
|
42828
|
+
var NcMediaImageSchema = _enum([
|
|
42829
|
+
"scene-boxes",
|
|
42830
|
+
"crop",
|
|
42831
|
+
"clean",
|
|
42832
|
+
"none"
|
|
42833
|
+
]);
|
|
42834
|
+
/**
|
|
42835
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42836
|
+
*
|
|
42663
42837
|
* Media attachment policy (P1 still-image subset).
|
|
42664
42838
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42665
42839
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42673,6 +42847,8 @@ var NcRuleTargetSchema = object({
|
|
|
42673
42847
|
* - `none` — no attachment.
|
|
42674
42848
|
*/
|
|
42675
42849
|
/**
|
|
42850
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42851
|
+
*
|
|
42676
42852
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42677
42853
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42678
42854
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42701,16 +42877,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42701
42877
|
*/
|
|
42702
42878
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42703
42879
|
var NcMediaPolicySchema = object({
|
|
42880
|
+
/**
|
|
42881
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
42882
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
42883
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
42884
|
+
*/
|
|
42885
|
+
image: NcMediaImageSchema.optional(),
|
|
42886
|
+
/**
|
|
42887
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
42888
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
42889
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
42890
|
+
* Replaces `zoneCrop`.
|
|
42891
|
+
*/
|
|
42892
|
+
showTriggerZone: boolean().optional(),
|
|
42893
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42704
42894
|
attach: _enum([
|
|
42705
42895
|
"best",
|
|
42706
42896
|
"best-matching",
|
|
42707
42897
|
"keyFrame",
|
|
42708
42898
|
"none"
|
|
42709
|
-
]).
|
|
42710
|
-
/**
|
|
42899
|
+
]).optional(),
|
|
42900
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42711
42901
|
frame: NcMediaFrameSchema.optional(),
|
|
42712
|
-
/**
|
|
42713
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
42902
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
42714
42903
|
zoneCrop: boolean().optional(),
|
|
42715
42904
|
/**
|
|
42716
42905
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -42882,7 +43071,9 @@ var NcRuleInputSchema = object({
|
|
|
42882
43071
|
* targets.
|
|
42883
43072
|
*/
|
|
42884
43073
|
targetUsers: array(string()).optional(),
|
|
42885
|
-
|
|
43074
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43075
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43076
|
+
media: NcMediaPolicySchema.default({}),
|
|
42886
43077
|
throttle: NcThrottleSchema.default({
|
|
42887
43078
|
cooldownSec: 60,
|
|
42888
43079
|
scope: "rule-device"
|
|
@@ -43819,13 +44010,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
43819
44010
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
43820
44011
|
unknown: array(number().int())
|
|
43821
44012
|
});
|
|
44013
|
+
/**
|
|
44014
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44015
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44016
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44017
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44018
|
+
*/
|
|
44019
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44020
|
+
ruleId: string(),
|
|
44021
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44022
|
+
ruleName: string(),
|
|
44023
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44024
|
+
deviceId: number().int(),
|
|
44025
|
+
/** The input's current name. */
|
|
44026
|
+
name: string(),
|
|
44027
|
+
/** When it was bypassed (ms epoch). */
|
|
44028
|
+
since: number(),
|
|
44029
|
+
/** Triggers from this input dropped since. */
|
|
44030
|
+
dropped: number().int().min(0)
|
|
44031
|
+
});
|
|
43822
44032
|
var NcAlarmLiveSchema = object({
|
|
43823
44033
|
state: AlarmStateSchema,
|
|
43824
44034
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
43825
44035
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
43826
44036
|
availableModes: array(AlarmArmModeSchema),
|
|
43827
44037
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
43828
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44038
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44039
|
+
/**
|
|
44040
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44041
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44042
|
+
*/
|
|
44043
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
43829
44044
|
});
|
|
43830
44045
|
var NcAlarmConfigSchema = object({
|
|
43831
44046
|
/**
|
|
@@ -57722,9 +57937,24 @@ var NpuInfoSchema = object({
|
|
|
57722
57937
|
name: string().optional(),
|
|
57723
57938
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
57724
57939
|
});
|
|
57940
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
57725
57941
|
var CoralInfoSchema = object({
|
|
57726
57942
|
type: literal("coral-edgetpu"),
|
|
57727
|
-
bus
|
|
57943
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
57944
|
+
bus: string().optional(),
|
|
57945
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
57946
|
+
count: number().int().nonnegative().optional(),
|
|
57947
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
57948
|
+
units: array(object({
|
|
57949
|
+
bus: CoralBusSchema,
|
|
57950
|
+
count: number().int().nonnegative()
|
|
57951
|
+
})).readonly().optional(),
|
|
57952
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
57953
|
+
unavailable: array(object({
|
|
57954
|
+
bus: CoralBusSchema,
|
|
57955
|
+
count: number().int().nonnegative(),
|
|
57956
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
57957
|
+
})).readonly().optional()
|
|
57728
57958
|
});
|
|
57729
57959
|
var HardwareInfoSchema = object({
|
|
57730
57960
|
platform: HardwarePlatformSchema,
|
|
@@ -65464,7 +65694,19 @@ Object.freeze({
|
|
|
65464
65694
|
addonId: null,
|
|
65465
65695
|
access: "view"
|
|
65466
65696
|
},
|
|
65467
|
-
"logDestination.
|
|
65697
|
+
"logDestination.cancelRead": {
|
|
65698
|
+
capName: "log-destination",
|
|
65699
|
+
capScope: "system",
|
|
65700
|
+
addonId: null,
|
|
65701
|
+
access: "create"
|
|
65702
|
+
},
|
|
65703
|
+
"logDestination.describeRead": {
|
|
65704
|
+
capName: "log-destination",
|
|
65705
|
+
capScope: "system",
|
|
65706
|
+
addonId: null,
|
|
65707
|
+
access: "view"
|
|
65708
|
+
},
|
|
65709
|
+
"logDestination.read": {
|
|
65468
65710
|
capName: "log-destination",
|
|
65469
65711
|
capScope: "system",
|
|
65470
65712
|
addonId: null,
|
|
@@ -71471,6 +71713,11 @@ Object.freeze({
|
|
|
71471
71713
|
form: "single",
|
|
71472
71714
|
optional: false
|
|
71473
71715
|
}],
|
|
71716
|
+
"logDestination.read": [{
|
|
71717
|
+
name: "deviceId",
|
|
71718
|
+
form: "single",
|
|
71719
|
+
optional: true
|
|
71720
|
+
}],
|
|
71474
71721
|
"mediaPlayer.getStatus": [{
|
|
71475
71722
|
name: "deviceId",
|
|
71476
71723
|
form: "single",
|
package/dist/index.mjs
CHANGED
|
@@ -5414,7 +5414,7 @@ var ZodIssueCode = {
|
|
|
5414
5414
|
var ZodFirstPartyTypeKind;
|
|
5415
5415
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5416
5416
|
//#endregion
|
|
5417
|
-
//#region ../types/dist/sleep-
|
|
5417
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5418
5418
|
/**
|
|
5419
5419
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5420
5420
|
* window to float samples (D455).
|
|
@@ -16854,7 +16854,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16854
16854
|
kind: literal("node"),
|
|
16855
16855
|
nodeId: string().min(1)
|
|
16856
16856
|
})]);
|
|
16857
|
+
/**
|
|
16858
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
16859
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
16860
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
16861
|
+
*/
|
|
16857
16862
|
var DeviceHistoryKindSchema = _enum([
|
|
16863
|
+
"gauge",
|
|
16864
|
+
"counter",
|
|
16865
|
+
"boolean",
|
|
16866
|
+
"enum"
|
|
16867
|
+
]);
|
|
16868
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
16869
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16858
16870
|
"gauge",
|
|
16859
16871
|
"counter",
|
|
16860
16872
|
"boolean"
|
|
@@ -16891,7 +16903,13 @@ var SeriesInfoSchema = object({
|
|
|
16891
16903
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
16892
16904
|
unit: string().nullable(),
|
|
16893
16905
|
displayName: string(),
|
|
16894
|
-
source: _enum([
|
|
16906
|
+
source: _enum([
|
|
16907
|
+
"cap",
|
|
16908
|
+
"addon",
|
|
16909
|
+
"derived"
|
|
16910
|
+
]),
|
|
16911
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
16912
|
+
values: array(string()).readonly().nullable(),
|
|
16895
16913
|
firstTs: number(),
|
|
16896
16914
|
lastTs: number()
|
|
16897
16915
|
});
|
|
@@ -16905,17 +16923,31 @@ var QueryPointSchema = object({
|
|
|
16905
16923
|
twMean: number().nullable(),
|
|
16906
16924
|
min: number(),
|
|
16907
16925
|
max: number(),
|
|
16908
|
-
/** `null` is unknown, never zero (D393). */
|
|
16909
|
-
last: number().nullable()
|
|
16926
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
16927
|
+
last: number().nullable(),
|
|
16928
|
+
/**
|
|
16929
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
16930
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
16931
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
16932
|
+
* every other kind, and when it cannot be known.
|
|
16933
|
+
*/
|
|
16934
|
+
delta: number().nullable(),
|
|
16935
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
16936
|
+
state: string().nullable(),
|
|
16937
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
16938
|
+
states: record(string(), number()).nullable()
|
|
16910
16939
|
});
|
|
16911
16940
|
var QuerySeriesSchema = object({
|
|
16912
16941
|
scope: string(),
|
|
16913
16942
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
16914
16943
|
before: object({
|
|
16915
16944
|
t: number(),
|
|
16916
|
-
value: number().nullable()
|
|
16945
|
+
value: number().nullable(),
|
|
16946
|
+
state: string().nullable()
|
|
16917
16947
|
}).nullable(),
|
|
16918
|
-
points: array(QueryPointSchema).readonly()
|
|
16948
|
+
points: array(QueryPointSchema).readonly(),
|
|
16949
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
16950
|
+
derivedFrom: string().nullable()
|
|
16919
16951
|
});
|
|
16920
16952
|
/** The window part of a query, shared by the device and node forms. */
|
|
16921
16953
|
var QueryWindowShape = {
|
|
@@ -16931,6 +16963,23 @@ var QueryResultSchema = object({
|
|
|
16931
16963
|
series: array(QuerySeriesSchema).readonly(),
|
|
16932
16964
|
truncated: boolean()
|
|
16933
16965
|
});
|
|
16966
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
16967
|
+
var QueryManyItemSchema = union([object({
|
|
16968
|
+
deviceId: number().int(),
|
|
16969
|
+
key: string(),
|
|
16970
|
+
scope: string().optional()
|
|
16971
|
+
}), object({
|
|
16972
|
+
forNodeId: string().min(1),
|
|
16973
|
+
key: string(),
|
|
16974
|
+
scope: string().optional()
|
|
16975
|
+
})]);
|
|
16976
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
16977
|
+
ok: literal(true),
|
|
16978
|
+
result: QueryResultSchema
|
|
16979
|
+
}), object({
|
|
16980
|
+
ok: literal(false),
|
|
16981
|
+
error: string()
|
|
16982
|
+
})]);
|
|
16934
16983
|
var TierStatusSchema = object({
|
|
16935
16984
|
tier: DeviceHistoryResolutionSchema,
|
|
16936
16985
|
/** `null` until the first background count answered. */
|
|
@@ -16986,16 +17035,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
16986
17035
|
lastRefreshAt: number().nullable()
|
|
16987
17036
|
})
|
|
16988
17037
|
});
|
|
16989
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17038
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
16990
17039
|
deviceId: number().int(),
|
|
16991
17040
|
...QueryWindowShape
|
|
16992
17041
|
}), QueryResultSchema), method(object({
|
|
16993
|
-
|
|
17042
|
+
forNodeId: string().min(1),
|
|
16994
17043
|
...QueryWindowShape
|
|
16995
17044
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17045
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17046
|
+
from: QueryWindowShape.from,
|
|
17047
|
+
to: QueryWindowShape.to,
|
|
17048
|
+
resolution: QueryWindowShape.resolution,
|
|
17049
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17050
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
16996
17051
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
16997
17052
|
subjectKind: _enum(["device", "node"]),
|
|
16998
|
-
kind:
|
|
17053
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
16999
17054
|
unit: string().optional(),
|
|
17000
17055
|
displayName: string().min(1),
|
|
17001
17056
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40093,14 +40148,106 @@ var LogEntrySchema = object({
|
|
|
40093
40148
|
meta: record(string(), unknown()).optional(),
|
|
40094
40149
|
tags: record(string(), string()).optional()
|
|
40095
40150
|
});
|
|
40096
|
-
|
|
40097
|
-
|
|
40151
|
+
/**
|
|
40152
|
+
* A history READ against one destination (D898).
|
|
40153
|
+
*
|
|
40154
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40155
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40156
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40157
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40158
|
+
* nanosecond timestamp for Loki.
|
|
40159
|
+
*
|
|
40160
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40161
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40162
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40163
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40164
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40165
|
+
*/
|
|
40166
|
+
var LogReadQuerySchema = object({
|
|
40167
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40168
|
+
requestId: string().min(1).max(64).optional(),
|
|
40169
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40170
|
+
deviceId: number().int().optional(),
|
|
40171
|
+
/**
|
|
40172
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40173
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40174
|
+
*/
|
|
40175
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40176
|
+
/**
|
|
40177
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40178
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40179
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40180
|
+
* name as "which node's provider".
|
|
40181
|
+
*/
|
|
40182
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40183
|
+
/** Any other tag, exact match (AND). */
|
|
40184
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40185
|
+
/** Severity FLOOR: this level and above. */
|
|
40098
40186
|
level: LogLevelSchema.optional(),
|
|
40099
|
-
|
|
40100
|
-
|
|
40101
|
-
|
|
40102
|
-
|
|
40103
|
-
|
|
40187
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40188
|
+
text: string().min(1).max(200).optional(),
|
|
40189
|
+
/** Epoch ms, inclusive. */
|
|
40190
|
+
since: number().optional(),
|
|
40191
|
+
/** Epoch ms, inclusive. */
|
|
40192
|
+
until: number().optional(),
|
|
40193
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40194
|
+
before: string().min(1).max(1024).optional(),
|
|
40195
|
+
/** Newer than this cursor (exclusive). */
|
|
40196
|
+
after: string().min(1).max(1024).optional(),
|
|
40197
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40198
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40199
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40200
|
+
});
|
|
40201
|
+
var LogReadResultSchema = object({
|
|
40202
|
+
/** Newest first. */
|
|
40203
|
+
entries: array(object({
|
|
40204
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40205
|
+
id: string().optional(),
|
|
40206
|
+
/** Epoch ms. */
|
|
40207
|
+
timestamp: number(),
|
|
40208
|
+
level: LogLevelSchema,
|
|
40209
|
+
scope: string().optional(),
|
|
40210
|
+
message: string(),
|
|
40211
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40212
|
+
meta: record(string(), unknown()).optional()
|
|
40213
|
+
})),
|
|
40214
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40215
|
+
nextBefore: string().nullable(),
|
|
40216
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40217
|
+
nextAfter: string().nullable(),
|
|
40218
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40219
|
+
scannedBytes: number().int().nonnegative(),
|
|
40220
|
+
/**
|
|
40221
|
+
* True when the scan in this direction reached the end of the store.
|
|
40222
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40223
|
+
* call again with `nextBefore` to go on.
|
|
40224
|
+
*/
|
|
40225
|
+
done: boolean(),
|
|
40226
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40227
|
+
cancelled: boolean().optional()
|
|
40228
|
+
});
|
|
40229
|
+
var LogReadCapabilitiesSchema = object({
|
|
40230
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40231
|
+
readable: boolean(),
|
|
40232
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40233
|
+
reason: string().nullable(),
|
|
40234
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40235
|
+
filters: object({
|
|
40236
|
+
deviceId: boolean(),
|
|
40237
|
+
addonId: boolean(),
|
|
40238
|
+
nodeId: boolean(),
|
|
40239
|
+
tags: boolean(),
|
|
40240
|
+
level: boolean(),
|
|
40241
|
+
text: boolean(),
|
|
40242
|
+
timeRange: boolean()
|
|
40243
|
+
}),
|
|
40244
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40245
|
+
retentionDays: number().nullable()
|
|
40246
|
+
});
|
|
40247
|
+
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() }), {
|
|
40248
|
+
kind: "mutation",
|
|
40249
|
+
auth: "admin"
|
|
40250
|
+
});
|
|
40104
40251
|
/**
|
|
40105
40252
|
* `login-method` — collection cap through which auth addons contribute
|
|
40106
40253
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42656,6 +42803,33 @@ var NcRuleTargetSchema = object({
|
|
|
42656
42803
|
params: record(string(), unknown()).optional()
|
|
42657
42804
|
});
|
|
42658
42805
|
/**
|
|
42806
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
42807
|
+
*
|
|
42808
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
42809
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
42810
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
42811
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
42812
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
42813
|
+
* labelled with class and confidence ("dog 87%").
|
|
42814
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
42815
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
42816
|
+
* - `none` — no picture.
|
|
42817
|
+
*
|
|
42818
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
42819
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
42820
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
42821
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
42822
|
+
* stored kind had landed.
|
|
42823
|
+
*/
|
|
42824
|
+
var NcMediaImageSchema = _enum([
|
|
42825
|
+
"scene-boxes",
|
|
42826
|
+
"crop",
|
|
42827
|
+
"clean",
|
|
42828
|
+
"none"
|
|
42829
|
+
]);
|
|
42830
|
+
/**
|
|
42831
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42832
|
+
*
|
|
42659
42833
|
* Media attachment policy (P1 still-image subset).
|
|
42660
42834
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42661
42835
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42669,6 +42843,8 @@ var NcRuleTargetSchema = object({
|
|
|
42669
42843
|
* - `none` — no attachment.
|
|
42670
42844
|
*/
|
|
42671
42845
|
/**
|
|
42846
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42847
|
+
*
|
|
42672
42848
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42673
42849
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42674
42850
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42697,16 +42873,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42697
42873
|
*/
|
|
42698
42874
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42699
42875
|
var NcMediaPolicySchema = object({
|
|
42876
|
+
/**
|
|
42877
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
42878
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
42879
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
42880
|
+
*/
|
|
42881
|
+
image: NcMediaImageSchema.optional(),
|
|
42882
|
+
/**
|
|
42883
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
42884
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
42885
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
42886
|
+
* Replaces `zoneCrop`.
|
|
42887
|
+
*/
|
|
42888
|
+
showTriggerZone: boolean().optional(),
|
|
42889
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42700
42890
|
attach: _enum([
|
|
42701
42891
|
"best",
|
|
42702
42892
|
"best-matching",
|
|
42703
42893
|
"keyFrame",
|
|
42704
42894
|
"none"
|
|
42705
|
-
]).
|
|
42706
|
-
/**
|
|
42895
|
+
]).optional(),
|
|
42896
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42707
42897
|
frame: NcMediaFrameSchema.optional(),
|
|
42708
|
-
/**
|
|
42709
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
42898
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
42710
42899
|
zoneCrop: boolean().optional(),
|
|
42711
42900
|
/**
|
|
42712
42901
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -42878,7 +43067,9 @@ var NcRuleInputSchema = object({
|
|
|
42878
43067
|
* targets.
|
|
42879
43068
|
*/
|
|
42880
43069
|
targetUsers: array(string()).optional(),
|
|
42881
|
-
|
|
43070
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43071
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43072
|
+
media: NcMediaPolicySchema.default({}),
|
|
42882
43073
|
throttle: NcThrottleSchema.default({
|
|
42883
43074
|
cooldownSec: 60,
|
|
42884
43075
|
scope: "rule-device"
|
|
@@ -43815,13 +44006,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
43815
44006
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
43816
44007
|
unknown: array(number().int())
|
|
43817
44008
|
});
|
|
44009
|
+
/**
|
|
44010
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44011
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44012
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44013
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44014
|
+
*/
|
|
44015
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44016
|
+
ruleId: string(),
|
|
44017
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44018
|
+
ruleName: string(),
|
|
44019
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44020
|
+
deviceId: number().int(),
|
|
44021
|
+
/** The input's current name. */
|
|
44022
|
+
name: string(),
|
|
44023
|
+
/** When it was bypassed (ms epoch). */
|
|
44024
|
+
since: number(),
|
|
44025
|
+
/** Triggers from this input dropped since. */
|
|
44026
|
+
dropped: number().int().min(0)
|
|
44027
|
+
});
|
|
43818
44028
|
var NcAlarmLiveSchema = object({
|
|
43819
44029
|
state: AlarmStateSchema,
|
|
43820
44030
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
43821
44031
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
43822
44032
|
availableModes: array(AlarmArmModeSchema),
|
|
43823
44033
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
43824
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44034
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44035
|
+
/**
|
|
44036
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44037
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44038
|
+
*/
|
|
44039
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
43825
44040
|
});
|
|
43826
44041
|
var NcAlarmConfigSchema = object({
|
|
43827
44042
|
/**
|
|
@@ -57718,9 +57933,24 @@ var NpuInfoSchema = object({
|
|
|
57718
57933
|
name: string().optional(),
|
|
57719
57934
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
57720
57935
|
});
|
|
57936
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
57721
57937
|
var CoralInfoSchema = object({
|
|
57722
57938
|
type: literal("coral-edgetpu"),
|
|
57723
|
-
bus
|
|
57939
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
57940
|
+
bus: string().optional(),
|
|
57941
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
57942
|
+
count: number().int().nonnegative().optional(),
|
|
57943
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
57944
|
+
units: array(object({
|
|
57945
|
+
bus: CoralBusSchema,
|
|
57946
|
+
count: number().int().nonnegative()
|
|
57947
|
+
})).readonly().optional(),
|
|
57948
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
57949
|
+
unavailable: array(object({
|
|
57950
|
+
bus: CoralBusSchema,
|
|
57951
|
+
count: number().int().nonnegative(),
|
|
57952
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
57953
|
+
})).readonly().optional()
|
|
57724
57954
|
});
|
|
57725
57955
|
var HardwareInfoSchema = object({
|
|
57726
57956
|
platform: HardwarePlatformSchema,
|
|
@@ -65460,7 +65690,19 @@ Object.freeze({
|
|
|
65460
65690
|
addonId: null,
|
|
65461
65691
|
access: "view"
|
|
65462
65692
|
},
|
|
65463
|
-
"logDestination.
|
|
65693
|
+
"logDestination.cancelRead": {
|
|
65694
|
+
capName: "log-destination",
|
|
65695
|
+
capScope: "system",
|
|
65696
|
+
addonId: null,
|
|
65697
|
+
access: "create"
|
|
65698
|
+
},
|
|
65699
|
+
"logDestination.describeRead": {
|
|
65700
|
+
capName: "log-destination",
|
|
65701
|
+
capScope: "system",
|
|
65702
|
+
addonId: null,
|
|
65703
|
+
access: "view"
|
|
65704
|
+
},
|
|
65705
|
+
"logDestination.read": {
|
|
65464
65706
|
capName: "log-destination",
|
|
65465
65707
|
capScope: "system",
|
|
65466
65708
|
addonId: null,
|
|
@@ -71467,6 +71709,11 @@ Object.freeze({
|
|
|
71467
71709
|
form: "single",
|
|
71468
71710
|
optional: false
|
|
71469
71711
|
}],
|
|
71712
|
+
"logDestination.read": [{
|
|
71713
|
+
name: "deviceId",
|
|
71714
|
+
form: "single",
|
|
71715
|
+
optional: true
|
|
71716
|
+
}],
|
|
71470
71717
|
"mediaPlayer.getStatus": [{
|
|
71471
71718
|
name: "deviceId",
|
|
71472
71719
|
form: "single",
|