@camstack/addon-training 0.1.73 → 0.1.74
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-DIgLjY4z.mjs → MotionZonesSettings-C9bkQa-A.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BY7FP9LG.mjs → PrivacyMaskSettings-Q8Q9kHuZ.mjs} +2 -2
- package/dist/{SceneMonitorEditor-CGlbBXoT.mjs → SceneMonitorEditor-DVDBQyRh.mjs} +1 -1
- package/dist/_stub.js +5701 -5589
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-51yA9etr.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-BEr-JRVK.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CSzn01SK.mjs +26 -0
- package/dist/addon-training.css +1 -1
- package/dist/{dist-BCzxvw2H.mjs → dist-CZ8OqMuN.mjs} +151 -83
- package/dist/{dist-mbttyND-.js → dist-DlBWQhNT.js} +151 -83
- package/dist/{hostInit-DIv_FZGg.mjs → hostInit-Cb-B0_my.mjs} +3 -3
- package/dist/{icons-DG9GIB-J.mjs → icons-DGnDNIHD.mjs} +615 -602
- 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-DOzstwdZ.mjs → player-overlays-CGcrSt2j.mjs} +19 -12
- 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-D5pOKYim.mjs → responsive-Dbc1rEu9.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-BZa39O_w.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-DuCpFRYX.mjs} +1 -1
- package/dist/{zoom-out-BqtOwgKe.mjs → zoom-out-DzQMgNQw.mjs} +117 -130
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDZSeqY9.mjs +0 -26
|
@@ -5564,7 +5564,7 @@ var ZodIssueCode = {
|
|
|
5564
5564
|
var ZodFirstPartyTypeKind;
|
|
5565
5565
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5566
5566
|
//#endregion
|
|
5567
|
-
//#region ../types/dist/sleep-
|
|
5567
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5568
5568
|
/**
|
|
5569
5569
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5570
5570
|
* window to float samples (D455).
|
|
@@ -8637,7 +8637,11 @@ var ContributionSectionSchema = object({
|
|
|
8637
8637
|
literal(4)
|
|
8638
8638
|
]).optional(),
|
|
8639
8639
|
tab: string().optional(),
|
|
8640
|
-
location: _enum([
|
|
8640
|
+
location: _enum([
|
|
8641
|
+
"settings",
|
|
8642
|
+
"top-tab",
|
|
8643
|
+
"hero"
|
|
8644
|
+
]).optional(),
|
|
8641
8645
|
order: number().optional(),
|
|
8642
8646
|
fields: array(any())
|
|
8643
8647
|
});
|
|
@@ -13591,7 +13595,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13591
13595
|
literal(4)
|
|
13592
13596
|
]).optional(),
|
|
13593
13597
|
tab: string().optional(),
|
|
13594
|
-
location: _enum([
|
|
13598
|
+
location: _enum([
|
|
13599
|
+
"settings",
|
|
13600
|
+
"top-tab",
|
|
13601
|
+
"hero"
|
|
13602
|
+
]).optional(),
|
|
13595
13603
|
order: number().optional(),
|
|
13596
13604
|
fields: array(any())
|
|
13597
13605
|
});
|
|
@@ -17365,6 +17373,52 @@ var TierStatusSchema = object({
|
|
|
17365
17373
|
countedAt: number().nullable()
|
|
17366
17374
|
});
|
|
17367
17375
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17376
|
+
/**
|
|
17377
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17378
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17379
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17380
|
+
*/
|
|
17381
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17382
|
+
/** Rows held per stored tier. */
|
|
17383
|
+
var TierRowsSchema = object({
|
|
17384
|
+
raw: number().int(),
|
|
17385
|
+
"5m": number().int(),
|
|
17386
|
+
"1h": number().int(),
|
|
17387
|
+
"1d": number().int()
|
|
17388
|
+
});
|
|
17389
|
+
var OrphanSeriesSchema = object({
|
|
17390
|
+
seriesId: number().int(),
|
|
17391
|
+
deviceId: number().int(),
|
|
17392
|
+
key: string(),
|
|
17393
|
+
scope: string(),
|
|
17394
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17395
|
+
displayName: string().nullable(),
|
|
17396
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17397
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17398
|
+
missingSince: number().nullable(),
|
|
17399
|
+
firstTs: number(),
|
|
17400
|
+
lastTs: number(),
|
|
17401
|
+
rows: TierRowsSchema
|
|
17402
|
+
});
|
|
17403
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17404
|
+
"not-found",
|
|
17405
|
+
"not-orphan",
|
|
17406
|
+
"failed"
|
|
17407
|
+
]);
|
|
17408
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17409
|
+
seriesId: number().int(),
|
|
17410
|
+
ok: literal(true),
|
|
17411
|
+
deleted: TierRowsSchema
|
|
17412
|
+
}), object({
|
|
17413
|
+
seriesId: number().int(),
|
|
17414
|
+
ok: literal(false),
|
|
17415
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17416
|
+
})]);
|
|
17417
|
+
var OrphanListSchema = object({
|
|
17418
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17419
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17420
|
+
truncated: boolean()
|
|
17421
|
+
});
|
|
17368
17422
|
var DeviceHistoryStatusSchema = object({
|
|
17369
17423
|
startedAt: number(),
|
|
17370
17424
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17462,7 +17516,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17462
17516
|
}), object({ enabled: boolean() }), {
|
|
17463
17517
|
kind: "mutation",
|
|
17464
17518
|
auth: "admin"
|
|
17465
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17519
|
+
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" }), method(object({}), OrphanListSchema, { auth: "admin" }), method(object({ seriesIds: array(number().int()).min(1).max(50) }), object({ results: array(OrphanDeleteEntrySchema).readonly() }), {
|
|
17520
|
+
kind: "mutation",
|
|
17521
|
+
auth: "admin"
|
|
17522
|
+
});
|
|
17466
17523
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17467
17524
|
object({ state: literal("absent") }),
|
|
17468
17525
|
object({
|
|
@@ -54471,17 +54528,69 @@ object({
|
|
|
54471
54528
|
});
|
|
54472
54529
|
DeviceType.Sensor;
|
|
54473
54530
|
/**
|
|
54474
|
-
* Generic device-consumables capability —
|
|
54475
|
-
*
|
|
54476
|
-
* descaling cycles,
|
|
54477
|
-
*
|
|
54478
|
-
*
|
|
54479
|
-
*
|
|
54531
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54532
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54533
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54534
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54535
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54536
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54537
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54538
|
+
* verbatim and says which `kind` it is.
|
|
54539
|
+
*
|
|
54540
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54541
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54542
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54480
54543
|
*
|
|
54481
54544
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54482
54545
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54483
54546
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54484
54547
|
*/
|
|
54548
|
+
/**
|
|
54549
|
+
* What an item IS, which decides which direction is bad:
|
|
54550
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54551
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54552
|
+
* salt, rinse aid); low or empty is bad.
|
|
54553
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54554
|
+
* bad.
|
|
54555
|
+
* Absent = `wear`.
|
|
54556
|
+
*/
|
|
54557
|
+
var ConsumableKindSchema = _enum([
|
|
54558
|
+
"wear",
|
|
54559
|
+
"supply",
|
|
54560
|
+
"waste"
|
|
54561
|
+
]);
|
|
54562
|
+
/**
|
|
54563
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54564
|
+
* of `kind`, which decides which direction is bad:
|
|
54565
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54566
|
+
* remaining time and a reset.
|
|
54567
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54568
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54569
|
+
* a stepped level and "refill".
|
|
54570
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54571
|
+
* that warns when full.
|
|
54572
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54573
|
+
*/
|
|
54574
|
+
var ConsumableFormSchema = _enum([
|
|
54575
|
+
"part",
|
|
54576
|
+
"tank",
|
|
54577
|
+
"product",
|
|
54578
|
+
"bin"
|
|
54579
|
+
]);
|
|
54580
|
+
/** The provider's own discrete verdict on an item. */
|
|
54581
|
+
var ConsumableStatusSchema = _enum([
|
|
54582
|
+
"ok",
|
|
54583
|
+
"low",
|
|
54584
|
+
"empty",
|
|
54585
|
+
"full",
|
|
54586
|
+
"replace"
|
|
54587
|
+
]);
|
|
54588
|
+
_enum([
|
|
54589
|
+
"ok",
|
|
54590
|
+
"low",
|
|
54591
|
+
"empty",
|
|
54592
|
+
"full"
|
|
54593
|
+
]);
|
|
54485
54594
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54486
54595
|
* each. */
|
|
54487
54596
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54501,10 +54610,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54501
54610
|
key: string().min(1),
|
|
54502
54611
|
/** Display name. */
|
|
54503
54612
|
label: string().min(1),
|
|
54504
|
-
/** Remaining life % when known (0..100). */
|
|
54613
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54505
54614
|
level: number().min(0).max(100).nullable(),
|
|
54506
|
-
/**
|
|
54507
|
-
status:
|
|
54615
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54616
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54617
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54618
|
+
kind: ConsumableKindSchema.optional(),
|
|
54619
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54620
|
+
form: ConsumableFormSchema.optional(),
|
|
54508
54621
|
/** Ms epoch of the last replace, when known. */
|
|
54509
54622
|
lastResetAt: number().nullable(),
|
|
54510
54623
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54739,8 +54852,9 @@ object({
|
|
|
54739
54852
|
status: DeviceStatusSchema
|
|
54740
54853
|
});
|
|
54741
54854
|
/**
|
|
54742
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54743
|
-
*
|
|
54855
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54856
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54857
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54744
54858
|
*
|
|
54745
54859
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54746
54860
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54788,11 +54902,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54788
54902
|
"offline",
|
|
54789
54903
|
"description-missing"
|
|
54790
54904
|
]);
|
|
54791
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54792
|
-
"ok",
|
|
54793
|
-
"low",
|
|
54794
|
-
"empty"
|
|
54795
|
-
]);
|
|
54796
54905
|
object({
|
|
54797
54906
|
availability: DishwasherAvailabilitySchema,
|
|
54798
54907
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54825,8 +54934,6 @@ object({
|
|
|
54825
54934
|
powerOn: boolean().nullable(),
|
|
54826
54935
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54827
54936
|
powerState: string().nullable(),
|
|
54828
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54829
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54830
54937
|
/**
|
|
54831
54938
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54832
54939
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61609,60 +61716,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61609
61716
|
auth: "admin",
|
|
61610
61717
|
access: "delete"
|
|
61611
61718
|
});
|
|
61612
|
-
/**
|
|
61613
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
61614
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
61615
|
-
* optional fan-speed selector.
|
|
61616
|
-
*
|
|
61617
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
61618
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
61619
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
61620
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
61621
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
61622
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
61623
|
-
*
|
|
61624
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
61625
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
61626
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
61627
|
-
*
|
|
61628
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
61629
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
61630
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
61631
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
61632
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
61633
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
61634
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
61635
|
-
* so the HA provider leaves all four `null`.
|
|
61636
|
-
*/
|
|
61637
|
-
var VacuumStateSchema = _enum([
|
|
61638
|
-
"idle",
|
|
61639
|
-
"cleaning",
|
|
61640
|
-
"paused",
|
|
61641
|
-
"returning",
|
|
61642
|
-
"docked",
|
|
61643
|
-
"drying",
|
|
61644
|
-
"error"
|
|
61645
|
-
]);
|
|
61646
|
-
/**
|
|
61647
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
61648
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
61649
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
61650
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
61651
|
-
* hardware has no such tank at all.
|
|
61652
|
-
*/
|
|
61653
|
-
var TankStatusSchema = object({
|
|
61654
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
61655
|
-
level: number().min(0).max(100).nullable(),
|
|
61656
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
61657
|
-
status: _enum([
|
|
61658
|
-
"ok",
|
|
61659
|
-
"low",
|
|
61660
|
-
"full"
|
|
61661
|
-
]).nullable()
|
|
61662
|
-
});
|
|
61663
61719
|
object({
|
|
61664
61720
|
/** Lifecycle state of the vacuum. */
|
|
61665
|
-
state:
|
|
61721
|
+
state: _enum([
|
|
61722
|
+
"idle",
|
|
61723
|
+
"cleaning",
|
|
61724
|
+
"paused",
|
|
61725
|
+
"returning",
|
|
61726
|
+
"docked",
|
|
61727
|
+
"drying",
|
|
61728
|
+
"error"
|
|
61729
|
+
]),
|
|
61666
61730
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61667
61731
|
* reading. */
|
|
61668
61732
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61671,14 +61735,6 @@ object({
|
|
|
61671
61735
|
fanSpeed: string().nullable(),
|
|
61672
61736
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61673
61737
|
availableFanSpeeds: array(string()),
|
|
61674
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
61675
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
61676
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
61677
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
61678
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
61679
|
-
detergent: TankStatusSchema.nullable(),
|
|
61680
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
61681
|
-
dustBin: TankStatusSchema.nullable(),
|
|
61682
61738
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61683
61739
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61684
61740
|
/** Current error code (0 / null = no error). */
|
|
@@ -64319,6 +64375,12 @@ Object.freeze({
|
|
|
64319
64375
|
addonId: null,
|
|
64320
64376
|
access: "create"
|
|
64321
64377
|
},
|
|
64378
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
64379
|
+
capName: "device-history",
|
|
64380
|
+
capScope: "system",
|
|
64381
|
+
addonId: null,
|
|
64382
|
+
access: "delete"
|
|
64383
|
+
},
|
|
64322
64384
|
"deviceHistory.getDeviceEnabled": {
|
|
64323
64385
|
capName: "device-history",
|
|
64324
64386
|
capScope: "system",
|
|
@@ -64337,6 +64399,12 @@ Object.freeze({
|
|
|
64337
64399
|
addonId: null,
|
|
64338
64400
|
access: "view"
|
|
64339
64401
|
},
|
|
64402
|
+
"deviceHistory.listOrphanSeries": {
|
|
64403
|
+
capName: "device-history",
|
|
64404
|
+
capScope: "system",
|
|
64405
|
+
addonId: null,
|
|
64406
|
+
access: "view"
|
|
64407
|
+
},
|
|
64340
64408
|
"deviceHistory.listSeries": {
|
|
64341
64409
|
capName: "device-history",
|
|
64342
64410
|
capScope: "system",
|
|
@@ -74342,7 +74410,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
74342
74410
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
74343
74411
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
74344
74412
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
74345
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74413
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
74346
74414
|
([...RULE_TEXT], [...TANK]),
|
|
74347
74415
|
[...RULE_TEXT],
|
|
74348
74416
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -5597,7 +5597,7 @@ var ZodIssueCode = {
|
|
|
5597
5597
|
var ZodFirstPartyTypeKind;
|
|
5598
5598
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5599
5599
|
//#endregion
|
|
5600
|
-
//#region ../types/dist/sleep-
|
|
5600
|
+
//#region ../types/dist/sleep-CUp20JkO.mjs
|
|
5601
5601
|
/**
|
|
5602
5602
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5603
5603
|
* window to float samples (D455).
|
|
@@ -8670,7 +8670,11 @@ var ContributionSectionSchema = object({
|
|
|
8670
8670
|
literal(4)
|
|
8671
8671
|
]).optional(),
|
|
8672
8672
|
tab: string().optional(),
|
|
8673
|
-
location: _enum([
|
|
8673
|
+
location: _enum([
|
|
8674
|
+
"settings",
|
|
8675
|
+
"top-tab",
|
|
8676
|
+
"hero"
|
|
8677
|
+
]).optional(),
|
|
8674
8678
|
order: number().optional(),
|
|
8675
8679
|
fields: array(any())
|
|
8676
8680
|
});
|
|
@@ -13624,7 +13628,11 @@ var ConfigSectionWithValuesSchema = object({
|
|
|
13624
13628
|
literal(4)
|
|
13625
13629
|
]).optional(),
|
|
13626
13630
|
tab: string().optional(),
|
|
13627
|
-
location: _enum([
|
|
13631
|
+
location: _enum([
|
|
13632
|
+
"settings",
|
|
13633
|
+
"top-tab",
|
|
13634
|
+
"hero"
|
|
13635
|
+
]).optional(),
|
|
13628
13636
|
order: number().optional(),
|
|
13629
13637
|
fields: array(any())
|
|
13630
13638
|
});
|
|
@@ -17398,6 +17406,52 @@ var TierStatusSchema = object({
|
|
|
17398
17406
|
countedAt: number().nullable()
|
|
17399
17407
|
});
|
|
17400
17408
|
/** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
|
|
17409
|
+
/**
|
|
17410
|
+
* Why a series is orphan. `device-gone`: its device is absent from the
|
|
17411
|
+
* successful device listings (the departure clock). `undeclared`: its `cap:`
|
|
17412
|
+
* key is declared by no capability any more (a field a cap removed).
|
|
17413
|
+
*/
|
|
17414
|
+
var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
|
|
17415
|
+
/** Rows held per stored tier. */
|
|
17416
|
+
var TierRowsSchema = object({
|
|
17417
|
+
raw: number().int(),
|
|
17418
|
+
"5m": number().int(),
|
|
17419
|
+
"1h": number().int(),
|
|
17420
|
+
"1d": number().int()
|
|
17421
|
+
});
|
|
17422
|
+
var OrphanSeriesSchema = object({
|
|
17423
|
+
seriesId: number().int(),
|
|
17424
|
+
deviceId: number().int(),
|
|
17425
|
+
key: string(),
|
|
17426
|
+
scope: string(),
|
|
17427
|
+
/** The metric's display name; `null` when its metric row is gone too. */
|
|
17428
|
+
displayName: string().nullable(),
|
|
17429
|
+
reason: DeviceHistoryOrphanReasonSchema,
|
|
17430
|
+
/** `device-gone`: since when the device has been absent; `null` otherwise. */
|
|
17431
|
+
missingSince: number().nullable(),
|
|
17432
|
+
firstTs: number(),
|
|
17433
|
+
lastTs: number(),
|
|
17434
|
+
rows: TierRowsSchema
|
|
17435
|
+
});
|
|
17436
|
+
var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
|
|
17437
|
+
"not-found",
|
|
17438
|
+
"not-orphan",
|
|
17439
|
+
"failed"
|
|
17440
|
+
]);
|
|
17441
|
+
var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
|
|
17442
|
+
seriesId: number().int(),
|
|
17443
|
+
ok: literal(true),
|
|
17444
|
+
deleted: TierRowsSchema
|
|
17445
|
+
}), object({
|
|
17446
|
+
seriesId: number().int(),
|
|
17447
|
+
ok: literal(false),
|
|
17448
|
+
reason: DeviceHistoryOrphanDeleteRefusalSchema
|
|
17449
|
+
})]);
|
|
17450
|
+
var OrphanListSchema = object({
|
|
17451
|
+
series: array(OrphanSeriesSchema).readonly(),
|
|
17452
|
+
/** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
|
|
17453
|
+
truncated: boolean()
|
|
17454
|
+
});
|
|
17401
17455
|
var DeviceHistoryStatusSchema = object({
|
|
17402
17456
|
startedAt: number(),
|
|
17403
17457
|
/** The store is declared, series loaded and the first reconcile has answered. */
|
|
@@ -17495,7 +17549,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
|
|
|
17495
17549
|
}), object({ enabled: boolean() }), {
|
|
17496
17550
|
kind: "mutation",
|
|
17497
17551
|
auth: "admin"
|
|
17498
|
-
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" })
|
|
17552
|
+
}), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" }), method(object({}), OrphanListSchema, { auth: "admin" }), method(object({ seriesIds: array(number().int()).min(1).max(50) }), object({ results: array(OrphanDeleteEntrySchema).readonly() }), {
|
|
17553
|
+
kind: "mutation",
|
|
17554
|
+
auth: "admin"
|
|
17555
|
+
});
|
|
17499
17556
|
var DeviceCaStatusSchema = discriminatedUnion("state", [
|
|
17500
17557
|
object({ state: literal("absent") }),
|
|
17501
17558
|
object({
|
|
@@ -54504,17 +54561,69 @@ object({
|
|
|
54504
54561
|
});
|
|
54505
54562
|
DeviceType.Sensor;
|
|
54506
54563
|
/**
|
|
54507
|
-
* Generic device-consumables capability —
|
|
54508
|
-
*
|
|
54509
|
-
* descaling cycles,
|
|
54510
|
-
*
|
|
54511
|
-
*
|
|
54512
|
-
*
|
|
54564
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54565
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54566
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54567
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54568
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54569
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54570
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54571
|
+
* verbatim and says which `kind` it is.
|
|
54572
|
+
*
|
|
54573
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54574
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54575
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54513
54576
|
*
|
|
54514
54577
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54515
54578
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54516
54579
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54517
54580
|
*/
|
|
54581
|
+
/**
|
|
54582
|
+
* What an item IS, which decides which direction is bad:
|
|
54583
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54584
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54585
|
+
* salt, rinse aid); low or empty is bad.
|
|
54586
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54587
|
+
* bad.
|
|
54588
|
+
* Absent = `wear`.
|
|
54589
|
+
*/
|
|
54590
|
+
var ConsumableKindSchema = _enum([
|
|
54591
|
+
"wear",
|
|
54592
|
+
"supply",
|
|
54593
|
+
"waste"
|
|
54594
|
+
]);
|
|
54595
|
+
/**
|
|
54596
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54597
|
+
* of `kind`, which decides which direction is bad:
|
|
54598
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54599
|
+
* remaining time and a reset.
|
|
54600
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54601
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54602
|
+
* a stepped level and "refill".
|
|
54603
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54604
|
+
* that warns when full.
|
|
54605
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54606
|
+
*/
|
|
54607
|
+
var ConsumableFormSchema = _enum([
|
|
54608
|
+
"part",
|
|
54609
|
+
"tank",
|
|
54610
|
+
"product",
|
|
54611
|
+
"bin"
|
|
54612
|
+
]);
|
|
54613
|
+
/** The provider's own discrete verdict on an item. */
|
|
54614
|
+
var ConsumableStatusSchema = _enum([
|
|
54615
|
+
"ok",
|
|
54616
|
+
"low",
|
|
54617
|
+
"empty",
|
|
54618
|
+
"full",
|
|
54619
|
+
"replace"
|
|
54620
|
+
]);
|
|
54621
|
+
_enum([
|
|
54622
|
+
"ok",
|
|
54623
|
+
"low",
|
|
54624
|
+
"empty",
|
|
54625
|
+
"full"
|
|
54626
|
+
]);
|
|
54518
54627
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54519
54628
|
* each. */
|
|
54520
54629
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54534,10 +54643,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54534
54643
|
key: string().min(1),
|
|
54535
54644
|
/** Display name. */
|
|
54536
54645
|
label: string().min(1),
|
|
54537
|
-
/** Remaining life % when known (0..100). */
|
|
54646
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54538
54647
|
level: number().min(0).max(100).nullable(),
|
|
54539
|
-
/**
|
|
54540
|
-
status:
|
|
54648
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54649
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54650
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54651
|
+
kind: ConsumableKindSchema.optional(),
|
|
54652
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54653
|
+
form: ConsumableFormSchema.optional(),
|
|
54541
54654
|
/** Ms epoch of the last replace, when known. */
|
|
54542
54655
|
lastResetAt: number().nullable(),
|
|
54543
54656
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54772,8 +54885,9 @@ object({
|
|
|
54772
54885
|
status: DeviceStatusSchema
|
|
54773
54886
|
});
|
|
54774
54887
|
/**
|
|
54775
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54776
|
-
*
|
|
54888
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54889
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54890
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54777
54891
|
*
|
|
54778
54892
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54779
54893
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54821,11 +54935,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54821
54935
|
"offline",
|
|
54822
54936
|
"description-missing"
|
|
54823
54937
|
]);
|
|
54824
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54825
|
-
"ok",
|
|
54826
|
-
"low",
|
|
54827
|
-
"empty"
|
|
54828
|
-
]);
|
|
54829
54938
|
object({
|
|
54830
54939
|
availability: DishwasherAvailabilitySchema,
|
|
54831
54940
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54858,8 +54967,6 @@ object({
|
|
|
54858
54967
|
powerOn: boolean().nullable(),
|
|
54859
54968
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54860
54969
|
powerState: string().nullable(),
|
|
54861
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54862
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54863
54970
|
/**
|
|
54864
54971
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54865
54972
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61642,60 +61749,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61642
61749
|
auth: "admin",
|
|
61643
61750
|
access: "delete"
|
|
61644
61751
|
});
|
|
61645
|
-
/**
|
|
61646
|
-
* Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
|
|
61647
|
-
* cleaning lifecycle plus a return-to-base / locate surface and an
|
|
61648
|
-
* optional fan-speed selector.
|
|
61649
|
-
*
|
|
61650
|
-
* State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
|
|
61651
|
-
* `paused` / `returning` / `docked` / `error`. `batteryLevel`
|
|
61652
|
-
* (0..100) is nullable — some vacuums don't report a battery
|
|
61653
|
-
* percentage. `fanSpeed` is the current speed token (provider-verbatim,
|
|
61654
|
-
* e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
|
|
61655
|
-
* tokens the hardware accepts so the UI renders only supported choices.
|
|
61656
|
-
*
|
|
61657
|
-
* The `setFanSpeed` method takes the bare `speed` token — the provider
|
|
61658
|
-
* validates it against the vacuum's own list. `locate` triggers the
|
|
61659
|
-
* find-me chirp; `returnToBase` sends it home.
|
|
61660
|
-
*
|
|
61661
|
-
* Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
|
|
61662
|
-
* `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
|
|
61663
|
-
* 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
|
|
61664
|
-
* SHOULD populate whichever tanks the hardware has — leave a field `null`
|
|
61665
|
-
* only when the device has no such tank at all, and use a `TankStatus`
|
|
61666
|
-
* with both inner fields `null` when the tank exists but its level is
|
|
61667
|
-
* currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
|
|
61668
|
-
* so the HA provider leaves all four `null`.
|
|
61669
|
-
*/
|
|
61670
|
-
var VacuumStateSchema = _enum([
|
|
61671
|
-
"idle",
|
|
61672
|
-
"cleaning",
|
|
61673
|
-
"paused",
|
|
61674
|
-
"returning",
|
|
61675
|
-
"docked",
|
|
61676
|
-
"drying",
|
|
61677
|
-
"error"
|
|
61678
|
-
]);
|
|
61679
|
-
/**
|
|
61680
|
-
* One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
|
|
61681
|
-
* detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
|
|
61682
|
-
* a discrete `status` (binary-style hardware), or both. Both `null` means the
|
|
61683
|
-
* level is currently unknown; the OWNING field being `null` means the
|
|
61684
|
-
* hardware has no such tank at all.
|
|
61685
|
-
*/
|
|
61686
|
-
var TankStatusSchema = object({
|
|
61687
|
-
/** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
|
|
61688
|
-
level: number().min(0).max(100).nullable(),
|
|
61689
|
-
/** Discrete state when the hardware is binary-mode; null otherwise. */
|
|
61690
|
-
status: _enum([
|
|
61691
|
-
"ok",
|
|
61692
|
-
"low",
|
|
61693
|
-
"full"
|
|
61694
|
-
]).nullable()
|
|
61695
|
-
});
|
|
61696
61752
|
object({
|
|
61697
61753
|
/** Lifecycle state of the vacuum. */
|
|
61698
|
-
state:
|
|
61754
|
+
state: _enum([
|
|
61755
|
+
"idle",
|
|
61756
|
+
"cleaning",
|
|
61757
|
+
"paused",
|
|
61758
|
+
"returning",
|
|
61759
|
+
"docked",
|
|
61760
|
+
"drying",
|
|
61761
|
+
"error"
|
|
61762
|
+
]),
|
|
61699
61763
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61700
61764
|
* reading. */
|
|
61701
61765
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61704,14 +61768,6 @@ object({
|
|
|
61704
61768
|
fanSpeed: string().nullable(),
|
|
61705
61769
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61706
61770
|
availableFanSpeeds: array(string()),
|
|
61707
|
-
/** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
|
|
61708
|
-
cleanWater: TankStatusSchema.nullable(),
|
|
61709
|
-
/** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
|
|
61710
|
-
dirtyWater: TankStatusSchema.nullable(),
|
|
61711
|
-
/** Detergent tank. Null when the hardware has no detergent tank. */
|
|
61712
|
-
detergent: TankStatusSchema.nullable(),
|
|
61713
|
-
/** Dust bin. Null when the hardware has no dust bin. */
|
|
61714
|
-
dustBin: TankStatusSchema.nullable(),
|
|
61715
61771
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61716
61772
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61717
61773
|
/** Current error code (0 / null = no error). */
|
|
@@ -64352,6 +64408,12 @@ Object.freeze({
|
|
|
64352
64408
|
addonId: null,
|
|
64353
64409
|
access: "create"
|
|
64354
64410
|
},
|
|
64411
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
64412
|
+
capName: "device-history",
|
|
64413
|
+
capScope: "system",
|
|
64414
|
+
addonId: null,
|
|
64415
|
+
access: "delete"
|
|
64416
|
+
},
|
|
64355
64417
|
"deviceHistory.getDeviceEnabled": {
|
|
64356
64418
|
capName: "device-history",
|
|
64357
64419
|
capScope: "system",
|
|
@@ -64370,6 +64432,12 @@ Object.freeze({
|
|
|
64370
64432
|
addonId: null,
|
|
64371
64433
|
access: "view"
|
|
64372
64434
|
},
|
|
64435
|
+
"deviceHistory.listOrphanSeries": {
|
|
64436
|
+
capName: "device-history",
|
|
64437
|
+
capScope: "system",
|
|
64438
|
+
addonId: null,
|
|
64439
|
+
access: "view"
|
|
64440
|
+
},
|
|
64373
64441
|
"deviceHistory.listSeries": {
|
|
64374
64442
|
capName: "device-history",
|
|
64375
64443
|
capScope: "system",
|
|
@@ -74375,7 +74443,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
74375
74443
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
74376
74444
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
74377
74445
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
74378
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
74446
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
74379
74447
|
([...RULE_TEXT], [...TANK]),
|
|
74380
74448
|
[...RULE_TEXT],
|
|
74381
74449
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|