@camstack/addon-mqtt-broker 1.2.142 → 1.2.143

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.
@@ -5611,7 +5611,7 @@ var ZodIssueCode = {
5611
5611
  var ZodFirstPartyTypeKind;
5612
5612
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5613
5613
  //#endregion
5614
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5614
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5615
5615
  /**
5616
5616
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5617
5617
  * window to float samples (D455).
@@ -8691,7 +8691,11 @@ var ContributionSectionSchema = object({
8691
8691
  literal(4)
8692
8692
  ]).optional(),
8693
8693
  tab: string().optional(),
8694
- location: _enum(["settings", "top-tab"]).optional(),
8694
+ location: _enum([
8695
+ "settings",
8696
+ "top-tab",
8697
+ "hero"
8698
+ ]).optional(),
8695
8699
  order: number().optional(),
8696
8700
  fields: array(any())
8697
8701
  });
@@ -13610,7 +13614,11 @@ var ConfigSectionWithValuesSchema = object({
13610
13614
  literal(4)
13611
13615
  ]).optional(),
13612
13616
  tab: string().optional(),
13613
- location: _enum(["settings", "top-tab"]).optional(),
13617
+ location: _enum([
13618
+ "settings",
13619
+ "top-tab",
13620
+ "hero"
13621
+ ]).optional(),
13614
13622
  order: number().optional(),
13615
13623
  fields: array(any())
13616
13624
  });
@@ -17433,6 +17441,52 @@ var TierStatusSchema = object({
17433
17441
  countedAt: number().nullable()
17434
17442
  });
17435
17443
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17444
+ /**
17445
+ * Why a series is orphan. `device-gone`: its device is absent from the
17446
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17447
+ * key is declared by no capability any more (a field a cap removed).
17448
+ */
17449
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17450
+ /** Rows held per stored tier. */
17451
+ var TierRowsSchema = object({
17452
+ raw: number().int(),
17453
+ "5m": number().int(),
17454
+ "1h": number().int(),
17455
+ "1d": number().int()
17456
+ });
17457
+ var OrphanSeriesSchema = object({
17458
+ seriesId: number().int(),
17459
+ deviceId: number().int(),
17460
+ key: string(),
17461
+ scope: string(),
17462
+ /** The metric's display name; `null` when its metric row is gone too. */
17463
+ displayName: string().nullable(),
17464
+ reason: DeviceHistoryOrphanReasonSchema,
17465
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17466
+ missingSince: number().nullable(),
17467
+ firstTs: number(),
17468
+ lastTs: number(),
17469
+ rows: TierRowsSchema
17470
+ });
17471
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17472
+ "not-found",
17473
+ "not-orphan",
17474
+ "failed"
17475
+ ]);
17476
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17477
+ seriesId: number().int(),
17478
+ ok: literal(true),
17479
+ deleted: TierRowsSchema
17480
+ }), object({
17481
+ seriesId: number().int(),
17482
+ ok: literal(false),
17483
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17484
+ })]);
17485
+ var OrphanListSchema = object({
17486
+ series: array(OrphanSeriesSchema).readonly(),
17487
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17488
+ truncated: boolean()
17489
+ });
17436
17490
  var DeviceHistoryStatusSchema = object({
17437
17491
  startedAt: number(),
17438
17492
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17530,7 +17584,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17530
17584
  }), object({ enabled: boolean() }), {
17531
17585
  kind: "mutation",
17532
17586
  auth: "admin"
17533
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17587
+ }), 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() }), {
17588
+ kind: "mutation",
17589
+ auth: "admin"
17590
+ });
17534
17591
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17535
17592
  object({ state: literal("absent") }),
17536
17593
  object({
@@ -54558,17 +54615,69 @@ object({
54558
54615
  });
54559
54616
  DeviceType.Sensor;
54560
54617
  /**
54561
- * Generic device-consumables capability — surfaces a device's
54562
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54563
- * descaling cycles, …) with their remaining life and an optional
54564
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54565
- * device tracks consumables can register it; the cap declares no
54566
- * vocabulary of its own — the provider names each item verbatim.
54618
+ * Generic device-consumables capability — the ONE place a device reports what
54619
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54620
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54621
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54622
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54623
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54624
+ * its device tracks consumables registers it; the provider names each item
54625
+ * verbatim and says which `kind` it is.
54626
+ *
54627
+ * The admin UI renders it as ONE collapsible section directly under the
54628
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54629
+ * this cap — never drawn by a device type's hero card itself (D915).
54567
54630
  *
54568
54631
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54569
54632
  * provider populates it by guessing (no HA inference). The UI renders a
54570
54633
  * "No consumables reported" placeholder when `items` is empty.
54571
54634
  */
54635
+ /**
54636
+ * What an item IS, which decides which direction is bad:
54637
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54638
+ * - `supply` — something the device draws from (clean water, detergent,
54639
+ * salt, rinse aid); low or empty is bad.
54640
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54641
+ * bad.
54642
+ * Absent = `wear`.
54643
+ */
54644
+ var ConsumableKindSchema = _enum([
54645
+ "wear",
54646
+ "supply",
54647
+ "waste"
54648
+ ]);
54649
+ /**
54650
+ * What an item LOOKS like, which decides how a client draws it — independent
54651
+ * of `kind`, which decides which direction is bad:
54652
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54653
+ * remaining time and a reset.
54654
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54655
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54656
+ * a stepped level and "refill".
54657
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54658
+ * that warns when full.
54659
+ * Absent = derived from the kind ({@link consumableFormOf}).
54660
+ */
54661
+ var ConsumableFormSchema = _enum([
54662
+ "part",
54663
+ "tank",
54664
+ "product",
54665
+ "bin"
54666
+ ]);
54667
+ /** The provider's own discrete verdict on an item. */
54668
+ var ConsumableStatusSchema = _enum([
54669
+ "ok",
54670
+ "low",
54671
+ "empty",
54672
+ "full",
54673
+ "replace"
54674
+ ]);
54675
+ _enum([
54676
+ "ok",
54677
+ "low",
54678
+ "empty",
54679
+ "full"
54680
+ ]);
54572
54681
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54573
54682
  * each. */
54574
54683
  var ConsumableRemainingUnitSchema = _enum([
@@ -54588,10 +54697,14 @@ var ConsumablesStatusSchema = object({
54588
54697
  key: string().min(1),
54589
54698
  /** Display name. */
54590
54699
  label: string().min(1),
54591
- /** Remaining life % when known (0..100). */
54700
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54592
54701
  level: number().min(0).max(100).nullable(),
54593
- /** Discrete state when known (binary mode). */
54594
- status: _enum(["ok", "replace"]).nullable(),
54702
+ /** The provider's discrete verdict when known (binary mode). */
54703
+ status: ConsumableStatusSchema.nullable(),
54704
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54705
+ kind: ConsumableKindSchema.optional(),
54706
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54707
+ form: ConsumableFormSchema.optional(),
54595
54708
  /** Ms epoch of the last replace, when known. */
54596
54709
  lastResetAt: number().nullable(),
54597
54710
  /** Whether `reset()` is meaningful for this item. */
@@ -54826,8 +54939,9 @@ object({
54826
54939
  status: DeviceStatusSchema
54827
54940
  });
54828
54941
  /**
54829
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54830
- * consumable levels (salt, rinse aid) and common program options.
54942
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54943
+ * common program options. Salt and rinse aid are NOT here: they are items of
54944
+ * the device's `consumables` cap, like every other device's (D915).
54831
54945
  *
54832
54946
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54833
54947
  * by any integration that exposes the same program / option surface.
@@ -54875,11 +54989,6 @@ var DishwasherAvailabilitySchema = _enum([
54875
54989
  "offline",
54876
54990
  "description-missing"
54877
54991
  ]);
54878
- var DishwasherConsumableLevelSchema = _enum([
54879
- "ok",
54880
- "low",
54881
- "empty"
54882
- ]);
54883
54992
  object({
54884
54993
  availability: DishwasherAvailabilitySchema,
54885
54994
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54912,8 +55021,6 @@ object({
54912
55021
  powerOn: boolean().nullable(),
54913
55022
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54914
55023
  powerState: string().nullable(),
54915
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54916
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54917
55024
  /**
54918
55025
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54919
55026
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61696,60 +61803,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61696
61803
  auth: "admin",
61697
61804
  access: "delete"
61698
61805
  });
61699
- /**
61700
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61701
- * cleaning lifecycle plus a return-to-base / locate surface and an
61702
- * optional fan-speed selector.
61703
- *
61704
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61705
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61706
- * (0..100) is nullable — some vacuums don't report a battery
61707
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61708
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61709
- * tokens the hardware accepts so the UI renders only supported choices.
61710
- *
61711
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61712
- * validates it against the vacuum's own list. `locate` triggers the
61713
- * find-me chirp; `returnToBase` sends it home.
61714
- *
61715
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61716
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61717
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61718
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61719
- * only when the device has no such tank at all, and use a `TankStatus`
61720
- * with both inner fields `null` when the tank exists but its level is
61721
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61722
- * so the HA provider leaves all four `null`.
61723
- */
61724
- var VacuumStateSchema = _enum([
61725
- "idle",
61726
- "cleaning",
61727
- "paused",
61728
- "returning",
61729
- "docked",
61730
- "drying",
61731
- "error"
61732
- ]);
61733
- /**
61734
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61735
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61736
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61737
- * level is currently unknown; the OWNING field being `null` means the
61738
- * hardware has no such tank at all.
61739
- */
61740
- var TankStatusSchema = object({
61741
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61742
- level: number().min(0).max(100).nullable(),
61743
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61744
- status: _enum([
61745
- "ok",
61746
- "low",
61747
- "full"
61748
- ]).nullable()
61749
- });
61750
61806
  object({
61751
61807
  /** Lifecycle state of the vacuum. */
61752
- state: VacuumStateSchema,
61808
+ state: _enum([
61809
+ "idle",
61810
+ "cleaning",
61811
+ "paused",
61812
+ "returning",
61813
+ "docked",
61814
+ "drying",
61815
+ "error"
61816
+ ]),
61753
61817
  /** 0..100 battery percentage. Null when the device has no battery
61754
61818
  * reading. */
61755
61819
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61758,14 +61822,6 @@ object({
61758
61822
  fanSpeed: string().nullable(),
61759
61823
  /** Speed tokens the hardware accepts — drives the UI selector. */
61760
61824
  availableFanSpeeds: array(string()),
61761
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61762
- cleanWater: TankStatusSchema.nullable(),
61763
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61764
- dirtyWater: TankStatusSchema.nullable(),
61765
- /** Detergent tank. Null when the hardware has no detergent tank. */
61766
- detergent: TankStatusSchema.nullable(),
61767
- /** Dust bin. Null when the hardware has no dust bin. */
61768
- dustBin: TankStatusSchema.nullable(),
61769
61825
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61770
61826
  progressPercent: number().min(0).max(100).nullable(),
61771
61827
  /** Current error code (0 / null = no error). */
@@ -64306,6 +64362,12 @@ Object.freeze({
64306
64362
  addonId: null,
64307
64363
  access: "create"
64308
64364
  },
64365
+ "deviceHistory.deleteOrphanSeries": {
64366
+ capName: "device-history",
64367
+ capScope: "system",
64368
+ addonId: null,
64369
+ access: "delete"
64370
+ },
64309
64371
  "deviceHistory.getDeviceEnabled": {
64310
64372
  capName: "device-history",
64311
64373
  capScope: "system",
@@ -64324,6 +64386,12 @@ Object.freeze({
64324
64386
  addonId: null,
64325
64387
  access: "view"
64326
64388
  },
64389
+ "deviceHistory.listOrphanSeries": {
64390
+ capName: "device-history",
64391
+ capScope: "system",
64392
+ addonId: null,
64393
+ access: "view"
64394
+ },
64327
64395
  "deviceHistory.listSeries": {
64328
64396
  capName: "device-history",
64329
64397
  capScope: "system",
@@ -74329,7 +74397,7 @@ var STATE_SUMMARY_VARS = [
74329
74397
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74330
74398
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74331
74399
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74332
- ([...RULE_TEXT], [...CONSUMABLE]),
74400
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74333
74401
  ([...RULE_TEXT], [...TANK]),
74334
74402
  [...RULE_TEXT],
74335
74403
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -5604,7 +5604,7 @@ var ZodIssueCode = {
5604
5604
  var ZodFirstPartyTypeKind;
5605
5605
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5606
5606
  //#endregion
5607
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5607
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5608
5608
  /**
5609
5609
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5610
5610
  * window to float samples (D455).
@@ -8684,7 +8684,11 @@ var ContributionSectionSchema = object({
8684
8684
  literal(4)
8685
8685
  ]).optional(),
8686
8686
  tab: string().optional(),
8687
- location: _enum(["settings", "top-tab"]).optional(),
8687
+ location: _enum([
8688
+ "settings",
8689
+ "top-tab",
8690
+ "hero"
8691
+ ]).optional(),
8688
8692
  order: number().optional(),
8689
8693
  fields: array(any())
8690
8694
  });
@@ -13603,7 +13607,11 @@ var ConfigSectionWithValuesSchema = object({
13603
13607
  literal(4)
13604
13608
  ]).optional(),
13605
13609
  tab: string().optional(),
13606
- location: _enum(["settings", "top-tab"]).optional(),
13610
+ location: _enum([
13611
+ "settings",
13612
+ "top-tab",
13613
+ "hero"
13614
+ ]).optional(),
13607
13615
  order: number().optional(),
13608
13616
  fields: array(any())
13609
13617
  });
@@ -17426,6 +17434,52 @@ var TierStatusSchema = object({
17426
17434
  countedAt: number().nullable()
17427
17435
  });
17428
17436
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17437
+ /**
17438
+ * Why a series is orphan. `device-gone`: its device is absent from the
17439
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17440
+ * key is declared by no capability any more (a field a cap removed).
17441
+ */
17442
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17443
+ /** Rows held per stored tier. */
17444
+ var TierRowsSchema = object({
17445
+ raw: number().int(),
17446
+ "5m": number().int(),
17447
+ "1h": number().int(),
17448
+ "1d": number().int()
17449
+ });
17450
+ var OrphanSeriesSchema = object({
17451
+ seriesId: number().int(),
17452
+ deviceId: number().int(),
17453
+ key: string(),
17454
+ scope: string(),
17455
+ /** The metric's display name; `null` when its metric row is gone too. */
17456
+ displayName: string().nullable(),
17457
+ reason: DeviceHistoryOrphanReasonSchema,
17458
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17459
+ missingSince: number().nullable(),
17460
+ firstTs: number(),
17461
+ lastTs: number(),
17462
+ rows: TierRowsSchema
17463
+ });
17464
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17465
+ "not-found",
17466
+ "not-orphan",
17467
+ "failed"
17468
+ ]);
17469
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17470
+ seriesId: number().int(),
17471
+ ok: literal(true),
17472
+ deleted: TierRowsSchema
17473
+ }), object({
17474
+ seriesId: number().int(),
17475
+ ok: literal(false),
17476
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17477
+ })]);
17478
+ var OrphanListSchema = object({
17479
+ series: array(OrphanSeriesSchema).readonly(),
17480
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17481
+ truncated: boolean()
17482
+ });
17429
17483
  var DeviceHistoryStatusSchema = object({
17430
17484
  startedAt: number(),
17431
17485
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17523,7 +17577,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17523
17577
  }), object({ enabled: boolean() }), {
17524
17578
  kind: "mutation",
17525
17579
  auth: "admin"
17526
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17580
+ }), 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() }), {
17581
+ kind: "mutation",
17582
+ auth: "admin"
17583
+ });
17527
17584
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17528
17585
  object({ state: literal("absent") }),
17529
17586
  object({
@@ -54551,17 +54608,69 @@ object({
54551
54608
  });
54552
54609
  DeviceType.Sensor;
54553
54610
  /**
54554
- * Generic device-consumables capability — surfaces a device's
54555
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54556
- * descaling cycles, …) with their remaining life and an optional
54557
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54558
- * device tracks consumables can register it; the cap declares no
54559
- * vocabulary of its own — the provider names each item verbatim.
54611
+ * Generic device-consumables capability — the ONE place a device reports what
54612
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54613
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54614
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54615
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54616
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54617
+ * its device tracks consumables registers it; the provider names each item
54618
+ * verbatim and says which `kind` it is.
54619
+ *
54620
+ * The admin UI renders it as ONE collapsible section directly under the
54621
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54622
+ * this cap — never drawn by a device type's hero card itself (D915).
54560
54623
  *
54561
54624
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54562
54625
  * provider populates it by guessing (no HA inference). The UI renders a
54563
54626
  * "No consumables reported" placeholder when `items` is empty.
54564
54627
  */
54628
+ /**
54629
+ * What an item IS, which decides which direction is bad:
54630
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54631
+ * - `supply` — something the device draws from (clean water, detergent,
54632
+ * salt, rinse aid); low or empty is bad.
54633
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54634
+ * bad.
54635
+ * Absent = `wear`.
54636
+ */
54637
+ var ConsumableKindSchema = _enum([
54638
+ "wear",
54639
+ "supply",
54640
+ "waste"
54641
+ ]);
54642
+ /**
54643
+ * What an item LOOKS like, which decides how a client draws it — independent
54644
+ * of `kind`, which decides which direction is bad:
54645
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54646
+ * remaining time and a reset.
54647
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54648
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54649
+ * a stepped level and "refill".
54650
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54651
+ * that warns when full.
54652
+ * Absent = derived from the kind ({@link consumableFormOf}).
54653
+ */
54654
+ var ConsumableFormSchema = _enum([
54655
+ "part",
54656
+ "tank",
54657
+ "product",
54658
+ "bin"
54659
+ ]);
54660
+ /** The provider's own discrete verdict on an item. */
54661
+ var ConsumableStatusSchema = _enum([
54662
+ "ok",
54663
+ "low",
54664
+ "empty",
54665
+ "full",
54666
+ "replace"
54667
+ ]);
54668
+ _enum([
54669
+ "ok",
54670
+ "low",
54671
+ "empty",
54672
+ "full"
54673
+ ]);
54565
54674
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54566
54675
  * each. */
54567
54676
  var ConsumableRemainingUnitSchema = _enum([
@@ -54581,10 +54690,14 @@ var ConsumablesStatusSchema = object({
54581
54690
  key: string().min(1),
54582
54691
  /** Display name. */
54583
54692
  label: string().min(1),
54584
- /** Remaining life % when known (0..100). */
54693
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54585
54694
  level: number().min(0).max(100).nullable(),
54586
- /** Discrete state when known (binary mode). */
54587
- status: _enum(["ok", "replace"]).nullable(),
54695
+ /** The provider's discrete verdict when known (binary mode). */
54696
+ status: ConsumableStatusSchema.nullable(),
54697
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54698
+ kind: ConsumableKindSchema.optional(),
54699
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54700
+ form: ConsumableFormSchema.optional(),
54588
54701
  /** Ms epoch of the last replace, when known. */
54589
54702
  lastResetAt: number().nullable(),
54590
54703
  /** Whether `reset()` is meaningful for this item. */
@@ -54819,8 +54932,9 @@ object({
54819
54932
  status: DeviceStatusSchema
54820
54933
  });
54821
54934
  /**
54822
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54823
- * consumable levels (salt, rinse aid) and common program options.
54935
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54936
+ * common program options. Salt and rinse aid are NOT here: they are items of
54937
+ * the device's `consumables` cap, like every other device's (D915).
54824
54938
  *
54825
54939
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54826
54940
  * by any integration that exposes the same program / option surface.
@@ -54868,11 +54982,6 @@ var DishwasherAvailabilitySchema = _enum([
54868
54982
  "offline",
54869
54983
  "description-missing"
54870
54984
  ]);
54871
- var DishwasherConsumableLevelSchema = _enum([
54872
- "ok",
54873
- "low",
54874
- "empty"
54875
- ]);
54876
54985
  object({
54877
54986
  availability: DishwasherAvailabilitySchema,
54878
54987
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54905,8 +55014,6 @@ object({
54905
55014
  powerOn: boolean().nullable(),
54906
55015
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54907
55016
  powerState: string().nullable(),
54908
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54909
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54910
55017
  /**
54911
55018
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54912
55019
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61689,60 +61796,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61689
61796
  auth: "admin",
61690
61797
  access: "delete"
61691
61798
  });
61692
- /**
61693
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61694
- * cleaning lifecycle plus a return-to-base / locate surface and an
61695
- * optional fan-speed selector.
61696
- *
61697
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61698
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61699
- * (0..100) is nullable — some vacuums don't report a battery
61700
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61701
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61702
- * tokens the hardware accepts so the UI renders only supported choices.
61703
- *
61704
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61705
- * validates it against the vacuum's own list. `locate` triggers the
61706
- * find-me chirp; `returnToBase` sends it home.
61707
- *
61708
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61709
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61710
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61711
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61712
- * only when the device has no such tank at all, and use a `TankStatus`
61713
- * with both inner fields `null` when the tank exists but its level is
61714
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61715
- * so the HA provider leaves all four `null`.
61716
- */
61717
- var VacuumStateSchema = _enum([
61718
- "idle",
61719
- "cleaning",
61720
- "paused",
61721
- "returning",
61722
- "docked",
61723
- "drying",
61724
- "error"
61725
- ]);
61726
- /**
61727
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61728
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61729
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61730
- * level is currently unknown; the OWNING field being `null` means the
61731
- * hardware has no such tank at all.
61732
- */
61733
- var TankStatusSchema = object({
61734
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61735
- level: number().min(0).max(100).nullable(),
61736
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61737
- status: _enum([
61738
- "ok",
61739
- "low",
61740
- "full"
61741
- ]).nullable()
61742
- });
61743
61799
  object({
61744
61800
  /** Lifecycle state of the vacuum. */
61745
- state: VacuumStateSchema,
61801
+ state: _enum([
61802
+ "idle",
61803
+ "cleaning",
61804
+ "paused",
61805
+ "returning",
61806
+ "docked",
61807
+ "drying",
61808
+ "error"
61809
+ ]),
61746
61810
  /** 0..100 battery percentage. Null when the device has no battery
61747
61811
  * reading. */
61748
61812
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61751,14 +61815,6 @@ object({
61751
61815
  fanSpeed: string().nullable(),
61752
61816
  /** Speed tokens the hardware accepts — drives the UI selector. */
61753
61817
  availableFanSpeeds: array(string()),
61754
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61755
- cleanWater: TankStatusSchema.nullable(),
61756
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61757
- dirtyWater: TankStatusSchema.nullable(),
61758
- /** Detergent tank. Null when the hardware has no detergent tank. */
61759
- detergent: TankStatusSchema.nullable(),
61760
- /** Dust bin. Null when the hardware has no dust bin. */
61761
- dustBin: TankStatusSchema.nullable(),
61762
61818
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61763
61819
  progressPercent: number().min(0).max(100).nullable(),
61764
61820
  /** Current error code (0 / null = no error). */
@@ -64299,6 +64355,12 @@ Object.freeze({
64299
64355
  addonId: null,
64300
64356
  access: "create"
64301
64357
  },
64358
+ "deviceHistory.deleteOrphanSeries": {
64359
+ capName: "device-history",
64360
+ capScope: "system",
64361
+ addonId: null,
64362
+ access: "delete"
64363
+ },
64302
64364
  "deviceHistory.getDeviceEnabled": {
64303
64365
  capName: "device-history",
64304
64366
  capScope: "system",
@@ -64317,6 +64379,12 @@ Object.freeze({
64317
64379
  addonId: null,
64318
64380
  access: "view"
64319
64381
  },
64382
+ "deviceHistory.listOrphanSeries": {
64383
+ capName: "device-history",
64384
+ capScope: "system",
64385
+ addonId: null,
64386
+ access: "view"
64387
+ },
64320
64388
  "deviceHistory.listSeries": {
64321
64389
  capName: "device-history",
64322
64390
  capScope: "system",
@@ -74322,7 +74390,7 @@ var STATE_SUMMARY_VARS = [
74322
74390
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74323
74391
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74324
74392
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74325
- ([...RULE_TEXT], [...CONSUMABLE]),
74393
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74326
74394
  ([...RULE_TEXT], [...TANK]),
74327
74395
  [...RULE_TEXT],
74328
74396
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.142",
3
+ "version": "1.2.143",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",