@camstack/addon-training 0.1.61 → 0.1.62
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-DSFRn3u7.mjs → MotionZonesSettings-BYD4vYtX.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-CJUs69K5.mjs → PrivacyMaskSettings-BIzsQTVG.mjs} +2 -2
- package/dist/{SceneMonitorEditor-BjEBJhp2.mjs → SceneMonitorEditor-CnU0WfHZ.mjs} +1 -1
- package/dist/_stub.js +10 -10
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-B9bxvWW7.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CerRxYN4.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BTskGj2K.mjs +26 -0
- package/dist/{dist-Bw72X0Lw.js → dist-D4JlXYdi.js} +255 -23
- package/dist/{dist-BrdzZGWE.mjs → dist-cb89Kr5k.mjs} +255 -23
- package/dist/{hostInit-Bi_brUZe.mjs → hostInit-f6pcodUU.mjs} +3 -3
- package/dist/index.js +1 -1
- package/dist/orchestrator/training.addon.js +1 -1
- package/dist/orchestrator/training.addon.mjs +1 -1
- package/dist/{player-overlays-DfEn3UiJ.mjs → player-overlays-saWxwbq-.mjs} +1 -1
- package/dist/providers/modal/training-modal.addon.js +1 -1
- package/dist/providers/modal/training-modal.addon.mjs +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-KcnxmMOF.mjs → responsive-C-kjtT6v.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-764ClezD.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-DcBJVR_p.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BRYzagHC.mjs +0 -26
|
@@ -5547,7 +5547,7 @@ var ZodIssueCode = {
|
|
|
5547
5547
|
var ZodFirstPartyTypeKind;
|
|
5548
5548
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5549
5549
|
//#endregion
|
|
5550
|
-
//#region ../types/dist/sleep-
|
|
5550
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5551
5551
|
/**
|
|
5552
5552
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5553
5553
|
* window to float samples (D455).
|
|
@@ -17234,7 +17234,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
17234
17234
|
kind: literal("node"),
|
|
17235
17235
|
nodeId: string().min(1)
|
|
17236
17236
|
})]);
|
|
17237
|
+
/**
|
|
17238
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
17239
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
17240
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
17241
|
+
*/
|
|
17237
17242
|
var DeviceHistoryKindSchema = _enum([
|
|
17243
|
+
"gauge",
|
|
17244
|
+
"counter",
|
|
17245
|
+
"boolean",
|
|
17246
|
+
"enum"
|
|
17247
|
+
]);
|
|
17248
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
17249
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
17238
17250
|
"gauge",
|
|
17239
17251
|
"counter",
|
|
17240
17252
|
"boolean"
|
|
@@ -17271,7 +17283,13 @@ var SeriesInfoSchema = object({
|
|
|
17271
17283
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
17272
17284
|
unit: string().nullable(),
|
|
17273
17285
|
displayName: string(),
|
|
17274
|
-
source: _enum([
|
|
17286
|
+
source: _enum([
|
|
17287
|
+
"cap",
|
|
17288
|
+
"addon",
|
|
17289
|
+
"derived"
|
|
17290
|
+
]),
|
|
17291
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
17292
|
+
values: array(string()).readonly().nullable(),
|
|
17275
17293
|
firstTs: number(),
|
|
17276
17294
|
lastTs: number()
|
|
17277
17295
|
});
|
|
@@ -17285,17 +17303,31 @@ var QueryPointSchema = object({
|
|
|
17285
17303
|
twMean: number().nullable(),
|
|
17286
17304
|
min: number(),
|
|
17287
17305
|
max: number(),
|
|
17288
|
-
/** `null` is unknown, never zero (D393). */
|
|
17289
|
-
last: number().nullable()
|
|
17306
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
17307
|
+
last: number().nullable(),
|
|
17308
|
+
/**
|
|
17309
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
17310
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
17311
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
17312
|
+
* every other kind, and when it cannot be known.
|
|
17313
|
+
*/
|
|
17314
|
+
delta: number().nullable(),
|
|
17315
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
17316
|
+
state: string().nullable(),
|
|
17317
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
17318
|
+
states: record(string(), number()).nullable()
|
|
17290
17319
|
});
|
|
17291
17320
|
var QuerySeriesSchema = object({
|
|
17292
17321
|
scope: string(),
|
|
17293
17322
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
17294
17323
|
before: object({
|
|
17295
17324
|
t: number(),
|
|
17296
|
-
value: number().nullable()
|
|
17325
|
+
value: number().nullable(),
|
|
17326
|
+
state: string().nullable()
|
|
17297
17327
|
}).nullable(),
|
|
17298
|
-
points: array(QueryPointSchema).readonly()
|
|
17328
|
+
points: array(QueryPointSchema).readonly(),
|
|
17329
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
17330
|
+
derivedFrom: string().nullable()
|
|
17299
17331
|
});
|
|
17300
17332
|
/** The window part of a query, shared by the device and node forms. */
|
|
17301
17333
|
var QueryWindowShape = {
|
|
@@ -17311,6 +17343,23 @@ var QueryResultSchema = object({
|
|
|
17311
17343
|
series: array(QuerySeriesSchema).readonly(),
|
|
17312
17344
|
truncated: boolean()
|
|
17313
17345
|
});
|
|
17346
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
17347
|
+
var QueryManyItemSchema = union([object({
|
|
17348
|
+
deviceId: number().int(),
|
|
17349
|
+
key: string(),
|
|
17350
|
+
scope: string().optional()
|
|
17351
|
+
}), object({
|
|
17352
|
+
forNodeId: string().min(1),
|
|
17353
|
+
key: string(),
|
|
17354
|
+
scope: string().optional()
|
|
17355
|
+
})]);
|
|
17356
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
17357
|
+
ok: literal(true),
|
|
17358
|
+
result: QueryResultSchema
|
|
17359
|
+
}), object({
|
|
17360
|
+
ok: literal(false),
|
|
17361
|
+
error: string()
|
|
17362
|
+
})]);
|
|
17314
17363
|
var TierStatusSchema = object({
|
|
17315
17364
|
tier: DeviceHistoryResolutionSchema,
|
|
17316
17365
|
/** `null` until the first background count answered. */
|
|
@@ -17366,16 +17415,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
17366
17415
|
lastRefreshAt: number().nullable()
|
|
17367
17416
|
})
|
|
17368
17417
|
});
|
|
17369
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17418
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
17370
17419
|
deviceId: number().int(),
|
|
17371
17420
|
...QueryWindowShape
|
|
17372
17421
|
}), QueryResultSchema), method(object({
|
|
17373
|
-
|
|
17422
|
+
forNodeId: string().min(1),
|
|
17374
17423
|
...QueryWindowShape
|
|
17375
17424
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17425
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17426
|
+
from: QueryWindowShape.from,
|
|
17427
|
+
to: QueryWindowShape.to,
|
|
17428
|
+
resolution: QueryWindowShape.resolution,
|
|
17429
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17430
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
17376
17431
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
17377
17432
|
subjectKind: _enum(["device", "node"]),
|
|
17378
|
-
kind:
|
|
17433
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
17379
17434
|
unit: string().optional(),
|
|
17380
17435
|
displayName: string().min(1),
|
|
17381
17436
|
ingest: _enum(["points", "buckets"])
|
|
@@ -40392,14 +40447,106 @@ var LogEntrySchema = object({
|
|
|
40392
40447
|
meta: record(string(), unknown()).optional(),
|
|
40393
40448
|
tags: record(string(), string()).optional()
|
|
40394
40449
|
});
|
|
40395
|
-
|
|
40396
|
-
|
|
40450
|
+
/**
|
|
40451
|
+
* A history READ against one destination (D898).
|
|
40452
|
+
*
|
|
40453
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40454
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40455
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40456
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40457
|
+
* nanosecond timestamp for Loki.
|
|
40458
|
+
*
|
|
40459
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40460
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40461
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40462
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40463
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40464
|
+
*/
|
|
40465
|
+
var LogReadQuerySchema = object({
|
|
40466
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40467
|
+
requestId: string().min(1).max(64).optional(),
|
|
40468
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40469
|
+
deviceId: number().int().optional(),
|
|
40470
|
+
/**
|
|
40471
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40472
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40473
|
+
*/
|
|
40474
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40475
|
+
/**
|
|
40476
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40477
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40478
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40479
|
+
* name as "which node's provider".
|
|
40480
|
+
*/
|
|
40481
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40482
|
+
/** Any other tag, exact match (AND). */
|
|
40483
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40484
|
+
/** Severity FLOOR: this level and above. */
|
|
40397
40485
|
level: LogLevelSchema.optional(),
|
|
40398
|
-
|
|
40399
|
-
|
|
40400
|
-
|
|
40401
|
-
|
|
40402
|
-
|
|
40486
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40487
|
+
text: string().min(1).max(200).optional(),
|
|
40488
|
+
/** Epoch ms, inclusive. */
|
|
40489
|
+
since: number().optional(),
|
|
40490
|
+
/** Epoch ms, inclusive. */
|
|
40491
|
+
until: number().optional(),
|
|
40492
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40493
|
+
before: string().min(1).max(1024).optional(),
|
|
40494
|
+
/** Newer than this cursor (exclusive). */
|
|
40495
|
+
after: string().min(1).max(1024).optional(),
|
|
40496
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40497
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40498
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40499
|
+
});
|
|
40500
|
+
var LogReadResultSchema = object({
|
|
40501
|
+
/** Newest first. */
|
|
40502
|
+
entries: array(object({
|
|
40503
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40504
|
+
id: string().optional(),
|
|
40505
|
+
/** Epoch ms. */
|
|
40506
|
+
timestamp: number(),
|
|
40507
|
+
level: LogLevelSchema,
|
|
40508
|
+
scope: string().optional(),
|
|
40509
|
+
message: string(),
|
|
40510
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40511
|
+
meta: record(string(), unknown()).optional()
|
|
40512
|
+
})),
|
|
40513
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40514
|
+
nextBefore: string().nullable(),
|
|
40515
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40516
|
+
nextAfter: string().nullable(),
|
|
40517
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40518
|
+
scannedBytes: number().int().nonnegative(),
|
|
40519
|
+
/**
|
|
40520
|
+
* True when the scan in this direction reached the end of the store.
|
|
40521
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40522
|
+
* call again with `nextBefore` to go on.
|
|
40523
|
+
*/
|
|
40524
|
+
done: boolean(),
|
|
40525
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40526
|
+
cancelled: boolean().optional()
|
|
40527
|
+
});
|
|
40528
|
+
var LogReadCapabilitiesSchema = object({
|
|
40529
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40530
|
+
readable: boolean(),
|
|
40531
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40532
|
+
reason: string().nullable(),
|
|
40533
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40534
|
+
filters: object({
|
|
40535
|
+
deviceId: boolean(),
|
|
40536
|
+
addonId: boolean(),
|
|
40537
|
+
nodeId: boolean(),
|
|
40538
|
+
tags: boolean(),
|
|
40539
|
+
level: boolean(),
|
|
40540
|
+
text: boolean(),
|
|
40541
|
+
timeRange: boolean()
|
|
40542
|
+
}),
|
|
40543
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40544
|
+
retentionDays: number().nullable()
|
|
40545
|
+
});
|
|
40546
|
+
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() }), {
|
|
40547
|
+
kind: "mutation",
|
|
40548
|
+
auth: "admin"
|
|
40549
|
+
});
|
|
40403
40550
|
/**
|
|
40404
40551
|
* `login-method` — collection cap through which auth addons contribute
|
|
40405
40552
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42955,6 +43102,33 @@ var NcRuleTargetSchema = object({
|
|
|
42955
43102
|
params: record(string(), unknown()).optional()
|
|
42956
43103
|
});
|
|
42957
43104
|
/**
|
|
43105
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
43106
|
+
*
|
|
43107
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
43108
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
43109
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
43110
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
43111
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
43112
|
+
* labelled with class and confidence ("dog 87%").
|
|
43113
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
43114
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
43115
|
+
* - `none` — no picture.
|
|
43116
|
+
*
|
|
43117
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
43118
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
43119
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
43120
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
43121
|
+
* stored kind had landed.
|
|
43122
|
+
*/
|
|
43123
|
+
var NcMediaImageSchema = _enum([
|
|
43124
|
+
"scene-boxes",
|
|
43125
|
+
"crop",
|
|
43126
|
+
"clean",
|
|
43127
|
+
"none"
|
|
43128
|
+
]);
|
|
43129
|
+
/**
|
|
43130
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43131
|
+
*
|
|
42958
43132
|
* Media attachment policy (P1 still-image subset).
|
|
42959
43133
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42960
43134
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42968,6 +43142,8 @@ var NcRuleTargetSchema = object({
|
|
|
42968
43142
|
* - `none` — no attachment.
|
|
42969
43143
|
*/
|
|
42970
43144
|
/**
|
|
43145
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
43146
|
+
*
|
|
42971
43147
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42972
43148
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42973
43149
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42996,16 +43172,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42996
43172
|
*/
|
|
42997
43173
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42998
43174
|
var NcMediaPolicySchema = object({
|
|
43175
|
+
/**
|
|
43176
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
43177
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
43178
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
43179
|
+
*/
|
|
43180
|
+
image: NcMediaImageSchema.optional(),
|
|
43181
|
+
/**
|
|
43182
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
43183
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
43184
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
43185
|
+
* Replaces `zoneCrop`.
|
|
43186
|
+
*/
|
|
43187
|
+
showTriggerZone: boolean().optional(),
|
|
43188
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42999
43189
|
attach: _enum([
|
|
43000
43190
|
"best",
|
|
43001
43191
|
"best-matching",
|
|
43002
43192
|
"keyFrame",
|
|
43003
43193
|
"none"
|
|
43004
|
-
]).
|
|
43005
|
-
/**
|
|
43194
|
+
]).optional(),
|
|
43195
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
43006
43196
|
frame: NcMediaFrameSchema.optional(),
|
|
43007
|
-
/**
|
|
43008
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
43197
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
43009
43198
|
zoneCrop: boolean().optional(),
|
|
43010
43199
|
/**
|
|
43011
43200
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -43177,7 +43366,9 @@ var NcRuleInputSchema = object({
|
|
|
43177
43366
|
* targets.
|
|
43178
43367
|
*/
|
|
43179
43368
|
targetUsers: array(string()).optional(),
|
|
43180
|
-
|
|
43369
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
43370
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
43371
|
+
media: NcMediaPolicySchema.default({}),
|
|
43181
43372
|
throttle: NcThrottleSchema.default({
|
|
43182
43373
|
cooldownSec: 60,
|
|
43183
43374
|
scope: "rule-device"
|
|
@@ -44114,13 +44305,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
44114
44305
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
44115
44306
|
unknown: array(number().int())
|
|
44116
44307
|
});
|
|
44308
|
+
/**
|
|
44309
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
44310
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
44311
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
44312
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
44313
|
+
*/
|
|
44314
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
44315
|
+
ruleId: string(),
|
|
44316
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
44317
|
+
ruleName: string(),
|
|
44318
|
+
/** The input: the sensor of the match, else its camera. */
|
|
44319
|
+
deviceId: number().int(),
|
|
44320
|
+
/** The input's current name. */
|
|
44321
|
+
name: string(),
|
|
44322
|
+
/** When it was bypassed (ms epoch). */
|
|
44323
|
+
since: number(),
|
|
44324
|
+
/** Triggers from this input dropped since. */
|
|
44325
|
+
dropped: number().int().min(0)
|
|
44326
|
+
});
|
|
44117
44327
|
var NcAlarmLiveSchema = object({
|
|
44118
44328
|
state: AlarmStateSchema,
|
|
44119
44329
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
44120
44330
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
44121
44331
|
availableModes: array(AlarmArmModeSchema),
|
|
44122
44332
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
44123
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
44333
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
44334
|
+
/**
|
|
44335
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
44336
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
44337
|
+
*/
|
|
44338
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
44124
44339
|
});
|
|
44125
44340
|
var NcAlarmConfigSchema = object({
|
|
44126
44341
|
/**
|
|
@@ -65859,7 +66074,19 @@ Object.freeze({
|
|
|
65859
66074
|
addonId: null,
|
|
65860
66075
|
access: "view"
|
|
65861
66076
|
},
|
|
65862
|
-
"logDestination.
|
|
66077
|
+
"logDestination.cancelRead": {
|
|
66078
|
+
capName: "log-destination",
|
|
66079
|
+
capScope: "system",
|
|
66080
|
+
addonId: null,
|
|
66081
|
+
access: "create"
|
|
66082
|
+
},
|
|
66083
|
+
"logDestination.describeRead": {
|
|
66084
|
+
capName: "log-destination",
|
|
66085
|
+
capScope: "system",
|
|
66086
|
+
addonId: null,
|
|
66087
|
+
access: "view"
|
|
66088
|
+
},
|
|
66089
|
+
"logDestination.read": {
|
|
65863
66090
|
capName: "log-destination",
|
|
65864
66091
|
capScope: "system",
|
|
65865
66092
|
addonId: null,
|
|
@@ -71866,6 +72093,11 @@ Object.freeze({
|
|
|
71866
72093
|
form: "single",
|
|
71867
72094
|
optional: false
|
|
71868
72095
|
}],
|
|
72096
|
+
"logDestination.read": [{
|
|
72097
|
+
name: "deviceId",
|
|
72098
|
+
form: "single",
|
|
72099
|
+
optional: true
|
|
72100
|
+
}],
|
|
71869
72101
|
"mediaPlayer.getStatus": [{
|
|
71870
72102
|
name: "deviceId",
|
|
71871
72103
|
form: "single",
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.388",
|
|
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.138",
|
|
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.305",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dist-
|
|
2
|
+
require("./dist-D4JlXYdi.js");
|
|
3
3
|
const require_orchestrator_training_addon = require("./orchestrator/training.addon.js");
|
|
4
4
|
const require_providers_modal_training_modal_addon = require("./providers/modal/training-modal.addon.js");
|
|
5
5
|
//#region src/providers/fake/fake-provider.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
2
|
+
const require_dist = require("../dist-D4JlXYdi.js");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
node_path = require_dist.__toESM(node_path);
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as addonPagesSourceCapability, i as TrainingResultSchema, l as BaseAddon, m as defineRecordKinds, n as TrainingJobSchema, o as parseTrainingEventLine, r as TrainingJobSpecSchema, s as trainingCapability, t as TRAINING_JOB_SCHEMA, u as RECORD_MAX_DATA_BYTES } from "../dist-
|
|
1
|
+
import { a as addonPagesSourceCapability, i as TrainingResultSchema, l as BaseAddon, m as defineRecordKinds, n as TrainingJobSchema, o as parseTrainingEventLine, r as TrainingJobSpecSchema, s as trainingCapability, t as TRAINING_JOB_SCHEMA, u as RECORD_MAX_DATA_BYTES } from "../dist-cb89Kr5k.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { createReadStream } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as e, u as t, w as n, y as r } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-CEvdvp1T.mjs";
|
|
2
2
|
import { n as i, r as a, t as o } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
|
|
3
3
|
import { n as s, t as c } from "./chevron-right-cA8Hucbi.mjs";
|
|
4
|
-
import { h as l } from "./responsive-
|
|
4
|
+
import { h as l } from "./responsive-C-kjtT6v.mjs";
|
|
5
5
|
//#region ../ui-library/src/composites/widget-panel.tsx
|
|
6
6
|
n();
|
|
7
7
|
function u({ title: e, icon: t, headerRight: n, collapsible: l = !1, defaultOpen: u = !0, bodyClassName: d = "p-3", children: f }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../../dist-
|
|
2
|
+
const require_dist = require("../../dist-D4JlXYdi.js");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
node_path = require_dist.__toESM(node_path, 1);
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as object, S as number, T as string, _ as isSecretClear, b as toSecretFieldView, c as trainingProviderCapability, d as SECRET_CLEAR, f as arrayItemFieldPath, g as globalSecretScope, h as entryBody, l as BaseAddon, p as defineEntryKind, v as isSecretMarker, w as record, x as boolean, y as settingsArrayAdoptsFrom } from "../../dist-
|
|
1
|
+
import { C as object, S as number, T as string, _ as isSecretClear, b as toSecretFieldView, c as trainingProviderCapability, d as SECRET_CLEAR, f as arrayItemFieldPath, g as globalSecretScope, h as entryBody, l as BaseAddon, p as defineEntryKind, v as isSecretMarker, w as record, x as boolean, y as settingsArrayAdoptsFrom } from "../../dist-cb89Kr5k.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path, { dirname, posix } from "node:path";
|
|
4
4
|
import { createHash, createPrivateKey, createPublicKey, createSign, randomBytes, randomUUID } from "node:crypto";
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-DcBJVR_p.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as e, d as t, g as n, l as r, n as i, u as a, w as o, y as s } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-CEvdvp1T.mjs";
|
|
2
2
|
import "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
|
|
3
|
-
import { y as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { y as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BTskGj2K.mjs";
|
|
4
4
|
//#region ../ui-library/src/lib/shared-context.ts
|
|
5
5
|
o();
|
|
6
6
|
function l(e, t) {
|
|
@@ -2762,7 +2762,7 @@ async function or(e) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
2764
|
async function sr() {
|
|
2765
|
-
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-
|
|
2765
|
+
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CerRxYN4.mjs")).catch((e) => {
|
|
2766
2766
|
throw ir = void 0, e;
|
|
2767
2767
|
}), ir;
|
|
2768
2768
|
}
|
package/package.json
CHANGED