@camstack/addon-training 0.1.72 → 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.
Files changed (23) hide show
  1. package/dist/{MotionZonesSettings-DtrBEodK.mjs → MotionZonesSettings-C9bkQa-A.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-DMvD-Aoa.mjs → PrivacyMaskSettings-Q8Q9kHuZ.mjs} +2 -2
  3. package/dist/{SceneMonitorEditor-DlaZqKNk.mjs → SceneMonitorEditor-DVDBQyRh.mjs} +1 -1
  4. package/dist/_stub.js +5701 -5589
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-CR71IyGN.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-BEr-JRVK.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CSzn01SK.mjs +26 -0
  7. package/dist/addon-training.css +1 -1
  8. package/dist/{dist-Ch3aUw2u.mjs → dist-CZ8OqMuN.mjs} +151 -89
  9. package/dist/{dist-F0HQ_GTW.js → dist-DlBWQhNT.js} +151 -89
  10. package/dist/{hostInit-CqN7AHWD.mjs → hostInit-Cb-B0_my.mjs} +3 -3
  11. package/dist/{icons-DG9GIB-J.mjs → icons-DGnDNIHD.mjs} +615 -602
  12. package/dist/index.js +1 -1
  13. package/dist/orchestrator/training.addon.js +1 -1
  14. package/dist/orchestrator/training.addon.mjs +1 -1
  15. package/dist/{player-overlays-_18EagGF.mjs → player-overlays-CGcrSt2j.mjs} +19 -12
  16. package/dist/providers/modal/training-modal.addon.js +1 -1
  17. package/dist/providers/modal/training-modal.addon.mjs +1 -1
  18. package/dist/remoteEntry.js +1 -1
  19. package/dist/{responsive-pyVT1YFE.mjs → responsive-Dbc1rEu9.mjs} +1 -1
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-qU7q9e7k.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-DuCpFRYX.mjs} +1 -1
  21. package/dist/{zoom-out-BqtOwgKe.mjs → zoom-out-DzQMgNQw.mjs} +117 -130
  22. package/package.json +1 -1
  23. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B4oJE-uP.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-DJFUfKvA.mjs
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(["settings", "top-tab"]).optional(),
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(["settings", "top-tab"]).optional(),
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({
@@ -47937,7 +47994,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47937
47994
  modelId: string()
47938
47995
  }),
47939
47996
  object({ kind: literal("cpu-device") }),
47940
- object({ kind: literal("coral-untouched") }),
47941
47997
  object({ kind: literal("device-disabled") }),
47942
47998
  object({ kind: literal("device-unavailable") }),
47943
47999
  object({ kind: literal("node-offline") }),
@@ -48035,11 +48091,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48035
48091
  kind: literal("detector-store-unreadable"),
48036
48092
  error: string()
48037
48093
  }),
48038
- object({
48039
- kind: literal("coral-enabled"),
48040
- nodeId: string(),
48041
- deviceKey: string()
48042
- }),
48043
48094
  object({
48044
48095
  kind: literal("custom-pin-kept"),
48045
48096
  nodeId: string(),
@@ -54477,17 +54528,69 @@ object({
54477
54528
  });
54478
54529
  DeviceType.Sensor;
54479
54530
  /**
54480
- * Generic device-consumables capability — surfaces a device's
54481
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54482
- * descaling cycles, …) with their remaining life and an optional
54483
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54484
- * device tracks consumables can register it; the cap declares no
54485
- * vocabulary of its own — the provider names each item verbatim.
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).
54486
54543
  *
54487
54544
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54488
54545
  * provider populates it by guessing (no HA inference). The UI renders a
54489
54546
  * "No consumables reported" placeholder when `items` is empty.
54490
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
+ ]);
54491
54594
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54492
54595
  * each. */
54493
54596
  var ConsumableRemainingUnitSchema = _enum([
@@ -54507,10 +54610,14 @@ var ConsumablesStatusSchema = object({
54507
54610
  key: string().min(1),
54508
54611
  /** Display name. */
54509
54612
  label: string().min(1),
54510
- /** Remaining life % when known (0..100). */
54613
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54511
54614
  level: number().min(0).max(100).nullable(),
54512
- /** Discrete state when known (binary mode). */
54513
- status: _enum(["ok", "replace"]).nullable(),
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(),
54514
54621
  /** Ms epoch of the last replace, when known. */
54515
54622
  lastResetAt: number().nullable(),
54516
54623
  /** Whether `reset()` is meaningful for this item. */
@@ -54745,8 +54852,9 @@ object({
54745
54852
  status: DeviceStatusSchema
54746
54853
  });
54747
54854
  /**
54748
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54749
- * consumable levels (salt, rinse aid) and common program options.
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).
54750
54858
  *
54751
54859
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54752
54860
  * by any integration that exposes the same program / option surface.
@@ -54794,11 +54902,6 @@ var DishwasherAvailabilitySchema = _enum([
54794
54902
  "offline",
54795
54903
  "description-missing"
54796
54904
  ]);
54797
- var DishwasherConsumableLevelSchema = _enum([
54798
- "ok",
54799
- "low",
54800
- "empty"
54801
- ]);
54802
54905
  object({
54803
54906
  availability: DishwasherAvailabilitySchema,
54804
54907
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54831,8 +54934,6 @@ object({
54831
54934
  powerOn: boolean().nullable(),
54832
54935
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54833
54936
  powerState: string().nullable(),
54834
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54835
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54836
54937
  /**
54837
54938
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54838
54939
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61615,60 +61716,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61615
61716
  auth: "admin",
61616
61717
  access: "delete"
61617
61718
  });
61618
- /**
61619
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61620
- * cleaning lifecycle plus a return-to-base / locate surface and an
61621
- * optional fan-speed selector.
61622
- *
61623
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61624
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61625
- * (0..100) is nullable — some vacuums don't report a battery
61626
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61627
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61628
- * tokens the hardware accepts so the UI renders only supported choices.
61629
- *
61630
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61631
- * validates it against the vacuum's own list. `locate` triggers the
61632
- * find-me chirp; `returnToBase` sends it home.
61633
- *
61634
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61635
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61636
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61637
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61638
- * only when the device has no such tank at all, and use a `TankStatus`
61639
- * with both inner fields `null` when the tank exists but its level is
61640
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61641
- * so the HA provider leaves all four `null`.
61642
- */
61643
- var VacuumStateSchema = _enum([
61644
- "idle",
61645
- "cleaning",
61646
- "paused",
61647
- "returning",
61648
- "docked",
61649
- "drying",
61650
- "error"
61651
- ]);
61652
- /**
61653
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61654
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61655
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61656
- * level is currently unknown; the OWNING field being `null` means the
61657
- * hardware has no such tank at all.
61658
- */
61659
- var TankStatusSchema = object({
61660
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61661
- level: number().min(0).max(100).nullable(),
61662
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61663
- status: _enum([
61664
- "ok",
61665
- "low",
61666
- "full"
61667
- ]).nullable()
61668
- });
61669
61719
  object({
61670
61720
  /** Lifecycle state of the vacuum. */
61671
- state: VacuumStateSchema,
61721
+ state: _enum([
61722
+ "idle",
61723
+ "cleaning",
61724
+ "paused",
61725
+ "returning",
61726
+ "docked",
61727
+ "drying",
61728
+ "error"
61729
+ ]),
61672
61730
  /** 0..100 battery percentage. Null when the device has no battery
61673
61731
  * reading. */
61674
61732
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61677,14 +61735,6 @@ object({
61677
61735
  fanSpeed: string().nullable(),
61678
61736
  /** Speed tokens the hardware accepts — drives the UI selector. */
61679
61737
  availableFanSpeeds: array(string()),
61680
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61681
- cleanWater: TankStatusSchema.nullable(),
61682
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61683
- dirtyWater: TankStatusSchema.nullable(),
61684
- /** Detergent tank. Null when the hardware has no detergent tank. */
61685
- detergent: TankStatusSchema.nullable(),
61686
- /** Dust bin. Null when the hardware has no dust bin. */
61687
- dustBin: TankStatusSchema.nullable(),
61688
61738
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61689
61739
  progressPercent: number().min(0).max(100).nullable(),
61690
61740
  /** Current error code (0 / null = no error). */
@@ -64325,6 +64375,12 @@ Object.freeze({
64325
64375
  addonId: null,
64326
64376
  access: "create"
64327
64377
  },
64378
+ "deviceHistory.deleteOrphanSeries": {
64379
+ capName: "device-history",
64380
+ capScope: "system",
64381
+ addonId: null,
64382
+ access: "delete"
64383
+ },
64328
64384
  "deviceHistory.getDeviceEnabled": {
64329
64385
  capName: "device-history",
64330
64386
  capScope: "system",
@@ -64343,6 +64399,12 @@ Object.freeze({
64343
64399
  addonId: null,
64344
64400
  access: "view"
64345
64401
  },
64402
+ "deviceHistory.listOrphanSeries": {
64403
+ capName: "device-history",
64404
+ capScope: "system",
64405
+ addonId: null,
64406
+ access: "view"
64407
+ },
64346
64408
  "deviceHistory.listSeries": {
64347
64409
  capName: "device-history",
64348
64410
  capScope: "system",
@@ -74348,7 +74410,7 @@ var STATE_SUMMARY_VARS = [
74348
74410
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74349
74411
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74350
74412
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74351
- ([...RULE_TEXT], [...CONSUMABLE]),
74413
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74352
74414
  ([...RULE_TEXT], [...TANK]),
74353
74415
  [...RULE_TEXT],
74354
74416
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),