@camstack/addon-model-studio 1.1.274 → 1.1.276
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-D5MWmul3.mjs → MotionZonesSettings-CQEso2vT.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-C3Wr7iyO.mjs → PrivacyMaskSettings-C-mMaUGA.mjs} +4 -4
- package/dist/{SceneMonitorEditor-C1_f1Q-S.mjs → SceneMonitorEditor-LnQ-6quj.mjs} +3 -3
- package/dist/_stub.js +4810 -4499
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BmHFCtbY.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-ChjhO5KK.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BdTOHQUu.mjs +26 -0
- package/dist/addon-model-studio.css +1 -1
- package/dist/{hostInit-DXmGI4M9.mjs → hostInit-D288E1LO.mjs} +3 -3
- package/dist/model-studio.addon.js +271 -24
- package/dist/model-studio.addon.mjs +271 -24
- package/dist/{player-overlays-CBnRP2P1.mjs → player-overlays-BohfqnRd.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-E8SO15pe.mjs → responsive-WIC3o3h1.mjs} +1 -1
- package/dist/{scene-monitor-copy-CwqpqS1B.mjs → scene-monitor-copy-Bx30ux7A.mjs} +1 -1
- package/dist/{square-CLaS5lbJ.mjs → square-BVzUxgJo.mjs} +1 -1
- package/dist/{trash-2-BRMfSpae.mjs → trash-2-CDE5YzKr.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DQeUkSxv.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CqwHTOnO.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-CNZj-X83.mjs +0 -26
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.389",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/sdk": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.139",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.306",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
|
@@ -5809,7 +5809,7 @@ var ZodIssueCode = {
|
|
|
5809
5809
|
var ZodFirstPartyTypeKind;
|
|
5810
5810
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5811
5811
|
//#endregion
|
|
5812
|
-
//#region ../types/dist/sleep-
|
|
5812
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5813
5813
|
/**
|
|
5814
5814
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5815
5815
|
* window to float samples (D455).
|
|
@@ -17467,7 +17467,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17467
17467
|
kind: literal("node"),
|
|
17468
17468
|
nodeId: string().min(1)
|
|
17469
17469
|
})]);
|
|
17470
|
+
/**
|
|
17471
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17472
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17473
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17474
|
+
*/
|
|
17470
17475
|
var DeviceHistoryKindSchema = _enum([
|
|
17476
|
+
"gauge",
|
|
17477
|
+
"counter",
|
|
17478
|
+
"boolean",
|
|
17479
|
+
"enum"
|
|
17480
|
+
]);
|
|
17481
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17482
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17471
17483
|
"gauge",
|
|
17472
17484
|
"counter",
|
|
17473
17485
|
"boolean"
|
|
@@ -17504,7 +17516,13 @@ var SeriesInfoSchema = object({
|
|
|
17504
17516
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17505
17517
|
unit: string().nullable(),
|
|
17506
17518
|
displayName: string(),
|
|
17507
|
-
source: _enum([
|
|
17519
|
+
source: _enum([
|
|
17520
|
+
"cap",
|
|
17521
|
+
"addon",
|
|
17522
|
+
"derived"
|
|
17523
|
+
]),
|
|
17524
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17525
|
+
values: array(string()).readonly().nullable(),
|
|
17508
17526
|
firstTs: number(),
|
|
17509
17527
|
lastTs: number()
|
|
17510
17528
|
});
|
|
@@ -17518,17 +17536,31 @@ var QueryPointSchema = object({
|
|
|
17518
17536
|
twMean: number().nullable(),
|
|
17519
17537
|
min: number(),
|
|
17520
17538
|
max: number(),
|
|
17521
|
-
/** `null` is unknown, never zero (D393). */
|
|
17522
|
-
last: number().nullable()
|
|
17539
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17540
|
+
last: number().nullable(),
|
|
17541
|
+
/**
|
|
17542
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17543
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17544
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17545
|
+
* every other kind, and when it cannot be known.
|
|
17546
|
+
*/
|
|
17547
|
+
delta: number().nullable(),
|
|
17548
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17549
|
+
state: string().nullable(),
|
|
17550
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17551
|
+
states: record(string(), number()).nullable()
|
|
17523
17552
|
});
|
|
17524
17553
|
var QuerySeriesSchema = object({
|
|
17525
17554
|
scope: string(),
|
|
17526
17555
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17527
17556
|
before: object({
|
|
17528
17557
|
t: number(),
|
|
17529
|
-
value: number().nullable()
|
|
17558
|
+
value: number().nullable(),
|
|
17559
|
+
state: string().nullable()
|
|
17530
17560
|
}).nullable(),
|
|
17531
|
-
points: array(QueryPointSchema).readonly()
|
|
17561
|
+
points: array(QueryPointSchema).readonly(),
|
|
17562
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17563
|
+
derivedFrom: string().nullable()
|
|
17532
17564
|
});
|
|
17533
17565
|
/** The window part of a query, shared by the device and node forms. */
|
|
17534
17566
|
var QueryWindowShape = {
|
|
@@ -17544,6 +17576,23 @@ var QueryResultSchema = object({
|
|
|
17544
17576
|
series: array(QuerySeriesSchema).readonly(),
|
|
17545
17577
|
truncated: boolean()
|
|
17546
17578
|
});
|
|
17579
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17580
|
+
var QueryManyItemSchema = union([object({
|
|
17581
|
+
deviceId: number().int(),
|
|
17582
|
+
key: string(),
|
|
17583
|
+
scope: string().optional()
|
|
17584
|
+
}), object({
|
|
17585
|
+
forNodeId: string().min(1),
|
|
17586
|
+
key: string(),
|
|
17587
|
+
scope: string().optional()
|
|
17588
|
+
})]);
|
|
17589
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17590
|
+
ok: literal(true),
|
|
17591
|
+
result: QueryResultSchema
|
|
17592
|
+
}), object({
|
|
17593
|
+
ok: literal(false),
|
|
17594
|
+
error: string()
|
|
17595
|
+
})]);
|
|
17547
17596
|
var TierStatusSchema = object({
|
|
17548
17597
|
tier: DeviceHistoryResolutionSchema,
|
|
17549
17598
|
/** `null` until the first background count answered. */
|
|
@@ -17599,16 +17648,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17599
17648
|
lastRefreshAt: number().nullable()
|
|
17600
17649
|
})
|
|
17601
17650
|
});
|
|
17602
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17651
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17603
17652
|
deviceId: number().int(),
|
|
17604
17653
|
...QueryWindowShape
|
|
17605
17654
|
}), QueryResultSchema), method(object({
|
|
17606
|
-
|
|
17655
|
+
forNodeId: string().min(1),
|
|
17607
17656
|
...QueryWindowShape
|
|
17608
17657
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17658
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17659
|
+
from: QueryWindowShape.from,
|
|
17660
|
+
to: QueryWindowShape.to,
|
|
17661
|
+
resolution: QueryWindowShape.resolution,
|
|
17662
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17663
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17609
17664
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17610
17665
|
subjectKind: _enum(["device", "node"]),
|
|
17611
|
-
kind:
|
|
17666
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17612
17667
|
unit: string().optional(),
|
|
17613
17668
|
displayName: string().min(1),
|
|
17614
17669
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40625,14 +40680,106 @@ var LogEntrySchema = object({
|
|
|
40625
40680
|
meta: record(string(), unknown()).optional(),
|
|
40626
40681
|
tags: record(string(), string()).optional()
|
|
40627
40682
|
});
|
|
40628
|
-
|
|
40629
|
-
|
|
40683
|
+
/**
|
|
40684
|
+
* A history READ against one destination (D898).
|
|
40685
|
+
*
|
|
40686
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40687
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40688
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40689
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40690
|
+
* nanosecond timestamp for Loki.
|
|
40691
|
+
*
|
|
40692
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40693
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40694
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40695
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40696
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40697
|
+
*/
|
|
40698
|
+
var LogReadQuerySchema = object({
|
|
40699
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40700
|
+
requestId: string().min(1).max(64).optional(),
|
|
40701
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40702
|
+
deviceId: number().int().optional(),
|
|
40703
|
+
/**
|
|
40704
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40705
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40706
|
+
*/
|
|
40707
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40708
|
+
/**
|
|
40709
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40710
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40711
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40712
|
+
* name as "which node's provider".
|
|
40713
|
+
*/
|
|
40714
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40715
|
+
/** Any other tag, exact match (AND). */
|
|
40716
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40717
|
+
/** Severity FLOOR: this level and above. */
|
|
40630
40718
|
level: LogLevelSchema.optional(),
|
|
40631
|
-
|
|
40632
|
-
|
|
40633
|
-
|
|
40634
|
-
|
|
40635
|
-
|
|
40719
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40720
|
+
text: string().min(1).max(200).optional(),
|
|
40721
|
+
/** Epoch ms, inclusive. */
|
|
40722
|
+
since: number().optional(),
|
|
40723
|
+
/** Epoch ms, inclusive. */
|
|
40724
|
+
until: number().optional(),
|
|
40725
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40726
|
+
before: string().min(1).max(1024).optional(),
|
|
40727
|
+
/** Newer than this cursor (exclusive). */
|
|
40728
|
+
after: string().min(1).max(1024).optional(),
|
|
40729
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40730
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40731
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40732
|
+
});
|
|
40733
|
+
var LogReadResultSchema = object({
|
|
40734
|
+
/** Newest first. */
|
|
40735
|
+
entries: array(object({
|
|
40736
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40737
|
+
id: string().optional(),
|
|
40738
|
+
/** Epoch ms. */
|
|
40739
|
+
timestamp: number(),
|
|
40740
|
+
level: LogLevelSchema,
|
|
40741
|
+
scope: string().optional(),
|
|
40742
|
+
message: string(),
|
|
40743
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40744
|
+
meta: record(string(), unknown()).optional()
|
|
40745
|
+
})),
|
|
40746
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40747
|
+
nextBefore: string().nullable(),
|
|
40748
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40749
|
+
nextAfter: string().nullable(),
|
|
40750
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40751
|
+
scannedBytes: number().int().nonnegative(),
|
|
40752
|
+
/**
|
|
40753
|
+
* True when the scan in this direction reached the end of the store.
|
|
40754
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40755
|
+
* call again with `nextBefore` to go on.
|
|
40756
|
+
*/
|
|
40757
|
+
done: boolean(),
|
|
40758
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40759
|
+
cancelled: boolean().optional()
|
|
40760
|
+
});
|
|
40761
|
+
var LogReadCapabilitiesSchema = object({
|
|
40762
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40763
|
+
readable: boolean(),
|
|
40764
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40765
|
+
reason: string().nullable(),
|
|
40766
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40767
|
+
filters: object({
|
|
40768
|
+
deviceId: boolean(),
|
|
40769
|
+
addonId: boolean(),
|
|
40770
|
+
nodeId: boolean(),
|
|
40771
|
+
tags: boolean(),
|
|
40772
|
+
level: boolean(),
|
|
40773
|
+
text: boolean(),
|
|
40774
|
+
timeRange: boolean()
|
|
40775
|
+
}),
|
|
40776
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40777
|
+
retentionDays: number().nullable()
|
|
40778
|
+
});
|
|
40779
|
+
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() }), {
|
|
40780
|
+
kind: "mutation",
|
|
40781
|
+
auth: "admin"
|
|
40782
|
+
});
|
|
40636
40783
|
/**
|
|
40637
40784
|
* `login-method` — collection cap through which auth addons contribute
|
|
40638
40785
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -43194,6 +43341,33 @@ var NcRuleTargetSchema = object({
|
|
|
43194
43341
|
params: record(string(), unknown()).optional()
|
|
43195
43342
|
});
|
|
43196
43343
|
/**
|
|
43344
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43345
|
+
*
|
|
43346
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43347
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43348
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43349
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43350
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43351
|
+
* labelled with class and confidence ("dog 87%").
|
|
43352
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43353
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43354
|
+
* - `none` — no picture.
|
|
43355
|
+
*
|
|
43356
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43357
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43358
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43359
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43360
|
+
* stored kind had landed.
|
|
43361
|
+
*/
|
|
43362
|
+
var NcMediaImageSchema = _enum([
|
|
43363
|
+
"scene-boxes",
|
|
43364
|
+
"crop",
|
|
43365
|
+
"clean",
|
|
43366
|
+
"none"
|
|
43367
|
+
]);
|
|
43368
|
+
/**
|
|
43369
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43370
|
+
*
|
|
43197
43371
|
* Media attachment policy (P1 still-image subset).
|
|
43198
43372
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
43199
43373
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -43207,6 +43381,8 @@ var NcRuleTargetSchema = object({
|
|
|
43207
43381
|
* - `none` — no attachment.
|
|
43208
43382
|
*/
|
|
43209
43383
|
/**
|
|
43384
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43385
|
+
*
|
|
43210
43386
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
43211
43387
|
* conflate it with the selection strategy and betray the request: asking for
|
|
43212
43388
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -43235,16 +43411,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
43235
43411
|
*/
|
|
43236
43412
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
43237
43413
|
var NcMediaPolicySchema = object({
|
|
43414
|
+
/**
|
|
43415
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43416
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43417
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43418
|
+
*/
|
|
43419
|
+
image: NcMediaImageSchema.optional(),
|
|
43420
|
+
/**
|
|
43421
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43422
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43423
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43424
|
+
* Replaces `zoneCrop`.
|
|
43425
|
+
*/
|
|
43426
|
+
showTriggerZone: boolean().optional(),
|
|
43427
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43238
43428
|
attach: _enum([
|
|
43239
43429
|
"best",
|
|
43240
43430
|
"best-matching",
|
|
43241
43431
|
"keyFrame",
|
|
43242
43432
|
"none"
|
|
43243
|
-
]).
|
|
43244
|
-
/**
|
|
43433
|
+
]).optional(),
|
|
43434
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43245
43435
|
frame: NcMediaFrameSchema.optional(),
|
|
43246
|
-
/**
|
|
43247
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43436
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43248
43437
|
zoneCrop: boolean().optional(),
|
|
43249
43438
|
/**
|
|
43250
43439
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43416,7 +43605,9 @@ var NcRuleInputSchema = object({
|
|
|
43416
43605
|
* targets.
|
|
43417
43606
|
*/
|
|
43418
43607
|
targetUsers: array(string()).optional(),
|
|
43419
|
-
|
|
43608
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43609
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43610
|
+
media: NcMediaPolicySchema.default({}),
|
|
43420
43611
|
throttle: NcThrottleSchema.default({
|
|
43421
43612
|
cooldownSec: 60,
|
|
43422
43613
|
scope: "rule-device"
|
|
@@ -44353,13 +44544,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44353
44544
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44354
44545
|
unknown: array(number().int())
|
|
44355
44546
|
});
|
|
44547
|
+
/**
|
|
44548
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44549
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44550
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44551
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44552
|
+
*/
|
|
44553
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44554
|
+
ruleId: string(),
|
|
44555
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44556
|
+
ruleName: string(),
|
|
44557
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44558
|
+
deviceId: number().int(),
|
|
44559
|
+
/** The input's current name. */
|
|
44560
|
+
name: string(),
|
|
44561
|
+
/** When it was bypassed (ms epoch). */
|
|
44562
|
+
since: number(),
|
|
44563
|
+
/** Triggers from this input dropped since. */
|
|
44564
|
+
dropped: number().int().min(0)
|
|
44565
|
+
});
|
|
44356
44566
|
var NcAlarmLiveSchema = object({
|
|
44357
44567
|
state: AlarmStateSchema,
|
|
44358
44568
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44359
44569
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44360
44570
|
availableModes: array(AlarmArmModeSchema),
|
|
44361
44571
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44362
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44572
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44573
|
+
/**
|
|
44574
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44575
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44576
|
+
*/
|
|
44577
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44363
44578
|
});
|
|
44364
44579
|
var NcAlarmConfigSchema = object({
|
|
44365
44580
|
/**
|
|
@@ -58256,9 +58471,24 @@ var NpuInfoSchema = object({
|
|
|
58256
58471
|
name: string().optional(),
|
|
58257
58472
|
generation: _enum(["xdna1", "xdna2"]).optional()
|
|
58258
58473
|
});
|
|
58474
|
+
var CoralBusSchema = _enum(["usb", "pci"]);
|
|
58259
58475
|
var CoralInfoSchema = object({
|
|
58260
58476
|
type: literal("coral-edgetpu"),
|
|
58261
|
-
bus
|
|
58477
|
+
/** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
|
|
58478
|
+
bus: string().optional(),
|
|
58479
|
+
/** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
|
|
58480
|
+
count: number().int().nonnegative().optional(),
|
|
58481
|
+
/** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
|
|
58482
|
+
units: array(object({
|
|
58483
|
+
bus: CoralBusSchema,
|
|
58484
|
+
count: number().int().nonnegative()
|
|
58485
|
+
})).readonly().optional(),
|
|
58486
|
+
/** Present-but-unusable units, each with its typed reason (never "absent"). */
|
|
58487
|
+
unavailable: array(object({
|
|
58488
|
+
bus: CoralBusSchema,
|
|
58489
|
+
count: number().int().nonnegative(),
|
|
58490
|
+
reason: _enum(["driver-missing", "device-not-accessible"])
|
|
58491
|
+
})).readonly().optional()
|
|
58262
58492
|
});
|
|
58263
58493
|
var HardwareInfoSchema = object({
|
|
58264
58494
|
platform: HardwarePlatformSchema,
|
|
@@ -66096,7 +66326,19 @@ Object.freeze({
|
|
|
66096
66326
|
addonId: null,
|
|
66097
66327
|
access: "view"
|
|
66098
66328
|
},
|
|
66099
|
-
"logDestination.
|
|
66329
|
+
"logDestination.cancelRead": {
|
|
66330
|
+
capName: "log-destination",
|
|
66331
|
+
capScope: "system",
|
|
66332
|
+
addonId: null,
|
|
66333
|
+
access: "create"
|
|
66334
|
+
},
|
|
66335
|
+
"logDestination.describeRead": {
|
|
66336
|
+
capName: "log-destination",
|
|
66337
|
+
capScope: "system",
|
|
66338
|
+
addonId: null,
|
|
66339
|
+
access: "view"
|
|
66340
|
+
},
|
|
66341
|
+
"logDestination.read": {
|
|
66100
66342
|
capName: "log-destination",
|
|
66101
66343
|
capScope: "system",
|
|
66102
66344
|
addonId: null,
|
|
@@ -72103,6 +72345,11 @@ Object.freeze({
|
|
|
72103
72345
|
form: "single",
|
|
72104
72346
|
optional: false
|
|
72105
72347
|
}],
|
|
72348
|
+
"logDestination.read": [{
|
|
72349
|
+
name: "deviceId",
|
|
72350
|
+
form: "single",
|
|
72351
|
+
optional: true
|
|
72352
|
+
}],
|
|
72106
72353
|
"mediaPlayer.getStatus": [{
|
|
72107
72354
|
name: "deviceId",
|
|
72108
72355
|
form: "single",
|