@camstack/addon-mqtt-broker 1.2.141 → 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({
@@ -48024,7 +48081,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48024
48081
  modelId: string()
48025
48082
  }),
48026
48083
  object({ kind: literal("cpu-device") }),
48027
- object({ kind: literal("coral-untouched") }),
48028
48084
  object({ kind: literal("device-disabled") }),
48029
48085
  object({ kind: literal("device-unavailable") }),
48030
48086
  object({ kind: literal("node-offline") }),
@@ -48122,11 +48178,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48122
48178
  kind: literal("detector-store-unreadable"),
48123
48179
  error: string()
48124
48180
  }),
48125
- object({
48126
- kind: literal("coral-enabled"),
48127
- nodeId: string(),
48128
- deviceKey: string()
48129
- }),
48130
48181
  object({
48131
48182
  kind: literal("custom-pin-kept"),
48132
48183
  nodeId: string(),
@@ -54564,17 +54615,69 @@ object({
54564
54615
  });
54565
54616
  DeviceType.Sensor;
54566
54617
  /**
54567
- * Generic device-consumables capability — surfaces a device's
54568
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54569
- * descaling cycles, …) with their remaining life and an optional
54570
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54571
- * device tracks consumables can register it; the cap declares no
54572
- * 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).
54573
54630
  *
54574
54631
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54575
54632
  * provider populates it by guessing (no HA inference). The UI renders a
54576
54633
  * "No consumables reported" placeholder when `items` is empty.
54577
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
+ ]);
54578
54681
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54579
54682
  * each. */
54580
54683
  var ConsumableRemainingUnitSchema = _enum([
@@ -54594,10 +54697,14 @@ var ConsumablesStatusSchema = object({
54594
54697
  key: string().min(1),
54595
54698
  /** Display name. */
54596
54699
  label: string().min(1),
54597
- /** Remaining life % when known (0..100). */
54700
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54598
54701
  level: number().min(0).max(100).nullable(),
54599
- /** Discrete state when known (binary mode). */
54600
- 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(),
54601
54708
  /** Ms epoch of the last replace, when known. */
54602
54709
  lastResetAt: number().nullable(),
54603
54710
  /** Whether `reset()` is meaningful for this item. */
@@ -54832,8 +54939,9 @@ object({
54832
54939
  status: DeviceStatusSchema
54833
54940
  });
54834
54941
  /**
54835
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54836
- * 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).
54837
54945
  *
54838
54946
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54839
54947
  * by any integration that exposes the same program / option surface.
@@ -54881,11 +54989,6 @@ var DishwasherAvailabilitySchema = _enum([
54881
54989
  "offline",
54882
54990
  "description-missing"
54883
54991
  ]);
54884
- var DishwasherConsumableLevelSchema = _enum([
54885
- "ok",
54886
- "low",
54887
- "empty"
54888
- ]);
54889
54992
  object({
54890
54993
  availability: DishwasherAvailabilitySchema,
54891
54994
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54918,8 +55021,6 @@ object({
54918
55021
  powerOn: boolean().nullable(),
54919
55022
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54920
55023
  powerState: string().nullable(),
54921
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54922
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54923
55024
  /**
54924
55025
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54925
55026
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61702,60 +61803,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61702
61803
  auth: "admin",
61703
61804
  access: "delete"
61704
61805
  });
61705
- /**
61706
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61707
- * cleaning lifecycle plus a return-to-base / locate surface and an
61708
- * optional fan-speed selector.
61709
- *
61710
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61711
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61712
- * (0..100) is nullable — some vacuums don't report a battery
61713
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61714
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61715
- * tokens the hardware accepts so the UI renders only supported choices.
61716
- *
61717
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61718
- * validates it against the vacuum's own list. `locate` triggers the
61719
- * find-me chirp; `returnToBase` sends it home.
61720
- *
61721
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61722
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61723
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61724
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61725
- * only when the device has no such tank at all, and use a `TankStatus`
61726
- * with both inner fields `null` when the tank exists but its level is
61727
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61728
- * so the HA provider leaves all four `null`.
61729
- */
61730
- var VacuumStateSchema = _enum([
61731
- "idle",
61732
- "cleaning",
61733
- "paused",
61734
- "returning",
61735
- "docked",
61736
- "drying",
61737
- "error"
61738
- ]);
61739
- /**
61740
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61741
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61742
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61743
- * level is currently unknown; the OWNING field being `null` means the
61744
- * hardware has no such tank at all.
61745
- */
61746
- var TankStatusSchema = object({
61747
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61748
- level: number().min(0).max(100).nullable(),
61749
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61750
- status: _enum([
61751
- "ok",
61752
- "low",
61753
- "full"
61754
- ]).nullable()
61755
- });
61756
61806
  object({
61757
61807
  /** Lifecycle state of the vacuum. */
61758
- state: VacuumStateSchema,
61808
+ state: _enum([
61809
+ "idle",
61810
+ "cleaning",
61811
+ "paused",
61812
+ "returning",
61813
+ "docked",
61814
+ "drying",
61815
+ "error"
61816
+ ]),
61759
61817
  /** 0..100 battery percentage. Null when the device has no battery
61760
61818
  * reading. */
61761
61819
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61764,14 +61822,6 @@ object({
61764
61822
  fanSpeed: string().nullable(),
61765
61823
  /** Speed tokens the hardware accepts — drives the UI selector. */
61766
61824
  availableFanSpeeds: array(string()),
61767
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61768
- cleanWater: TankStatusSchema.nullable(),
61769
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61770
- dirtyWater: TankStatusSchema.nullable(),
61771
- /** Detergent tank. Null when the hardware has no detergent tank. */
61772
- detergent: TankStatusSchema.nullable(),
61773
- /** Dust bin. Null when the hardware has no dust bin. */
61774
- dustBin: TankStatusSchema.nullable(),
61775
61825
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61776
61826
  progressPercent: number().min(0).max(100).nullable(),
61777
61827
  /** Current error code (0 / null = no error). */
@@ -64312,6 +64362,12 @@ Object.freeze({
64312
64362
  addonId: null,
64313
64363
  access: "create"
64314
64364
  },
64365
+ "deviceHistory.deleteOrphanSeries": {
64366
+ capName: "device-history",
64367
+ capScope: "system",
64368
+ addonId: null,
64369
+ access: "delete"
64370
+ },
64315
64371
  "deviceHistory.getDeviceEnabled": {
64316
64372
  capName: "device-history",
64317
64373
  capScope: "system",
@@ -64330,6 +64386,12 @@ Object.freeze({
64330
64386
  addonId: null,
64331
64387
  access: "view"
64332
64388
  },
64389
+ "deviceHistory.listOrphanSeries": {
64390
+ capName: "device-history",
64391
+ capScope: "system",
64392
+ addonId: null,
64393
+ access: "view"
64394
+ },
64333
64395
  "deviceHistory.listSeries": {
64334
64396
  capName: "device-history",
64335
64397
  capScope: "system",
@@ -74335,7 +74397,7 @@ var STATE_SUMMARY_VARS = [
74335
74397
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74336
74398
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74337
74399
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74338
- ([...RULE_TEXT], [...CONSUMABLE]),
74400
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74339
74401
  ([...RULE_TEXT], [...TANK]),
74340
74402
  [...RULE_TEXT],
74341
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({
@@ -48017,7 +48074,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48017
48074
  modelId: string()
48018
48075
  }),
48019
48076
  object({ kind: literal("cpu-device") }),
48020
- object({ kind: literal("coral-untouched") }),
48021
48077
  object({ kind: literal("device-disabled") }),
48022
48078
  object({ kind: literal("device-unavailable") }),
48023
48079
  object({ kind: literal("node-offline") }),
@@ -48115,11 +48171,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48115
48171
  kind: literal("detector-store-unreadable"),
48116
48172
  error: string()
48117
48173
  }),
48118
- object({
48119
- kind: literal("coral-enabled"),
48120
- nodeId: string(),
48121
- deviceKey: string()
48122
- }),
48123
48174
  object({
48124
48175
  kind: literal("custom-pin-kept"),
48125
48176
  nodeId: string(),
@@ -54557,17 +54608,69 @@ object({
54557
54608
  });
54558
54609
  DeviceType.Sensor;
54559
54610
  /**
54560
- * Generic device-consumables capability — surfaces a device's
54561
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54562
- * descaling cycles, …) with their remaining life and an optional
54563
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54564
- * device tracks consumables can register it; the cap declares no
54565
- * 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).
54566
54623
  *
54567
54624
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54568
54625
  * provider populates it by guessing (no HA inference). The UI renders a
54569
54626
  * "No consumables reported" placeholder when `items` is empty.
54570
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
+ ]);
54571
54674
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54572
54675
  * each. */
54573
54676
  var ConsumableRemainingUnitSchema = _enum([
@@ -54587,10 +54690,14 @@ var ConsumablesStatusSchema = object({
54587
54690
  key: string().min(1),
54588
54691
  /** Display name. */
54589
54692
  label: string().min(1),
54590
- /** Remaining life % when known (0..100). */
54693
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54591
54694
  level: number().min(0).max(100).nullable(),
54592
- /** Discrete state when known (binary mode). */
54593
- 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(),
54594
54701
  /** Ms epoch of the last replace, when known. */
54595
54702
  lastResetAt: number().nullable(),
54596
54703
  /** Whether `reset()` is meaningful for this item. */
@@ -54825,8 +54932,9 @@ object({
54825
54932
  status: DeviceStatusSchema
54826
54933
  });
54827
54934
  /**
54828
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54829
- * 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).
54830
54938
  *
54831
54939
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54832
54940
  * by any integration that exposes the same program / option surface.
@@ -54874,11 +54982,6 @@ var DishwasherAvailabilitySchema = _enum([
54874
54982
  "offline",
54875
54983
  "description-missing"
54876
54984
  ]);
54877
- var DishwasherConsumableLevelSchema = _enum([
54878
- "ok",
54879
- "low",
54880
- "empty"
54881
- ]);
54882
54985
  object({
54883
54986
  availability: DishwasherAvailabilitySchema,
54884
54987
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54911,8 +55014,6 @@ object({
54911
55014
  powerOn: boolean().nullable(),
54912
55015
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54913
55016
  powerState: string().nullable(),
54914
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54915
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54916
55017
  /**
54917
55018
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54918
55019
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61695,60 +61796,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61695
61796
  auth: "admin",
61696
61797
  access: "delete"
61697
61798
  });
61698
- /**
61699
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61700
- * cleaning lifecycle plus a return-to-base / locate surface and an
61701
- * optional fan-speed selector.
61702
- *
61703
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61704
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61705
- * (0..100) is nullable — some vacuums don't report a battery
61706
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61707
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61708
- * tokens the hardware accepts so the UI renders only supported choices.
61709
- *
61710
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61711
- * validates it against the vacuum's own list. `locate` triggers the
61712
- * find-me chirp; `returnToBase` sends it home.
61713
- *
61714
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61715
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61716
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61717
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61718
- * only when the device has no such tank at all, and use a `TankStatus`
61719
- * with both inner fields `null` when the tank exists but its level is
61720
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61721
- * so the HA provider leaves all four `null`.
61722
- */
61723
- var VacuumStateSchema = _enum([
61724
- "idle",
61725
- "cleaning",
61726
- "paused",
61727
- "returning",
61728
- "docked",
61729
- "drying",
61730
- "error"
61731
- ]);
61732
- /**
61733
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61734
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61735
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61736
- * level is currently unknown; the OWNING field being `null` means the
61737
- * hardware has no such tank at all.
61738
- */
61739
- var TankStatusSchema = object({
61740
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61741
- level: number().min(0).max(100).nullable(),
61742
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61743
- status: _enum([
61744
- "ok",
61745
- "low",
61746
- "full"
61747
- ]).nullable()
61748
- });
61749
61799
  object({
61750
61800
  /** Lifecycle state of the vacuum. */
61751
- state: VacuumStateSchema,
61801
+ state: _enum([
61802
+ "idle",
61803
+ "cleaning",
61804
+ "paused",
61805
+ "returning",
61806
+ "docked",
61807
+ "drying",
61808
+ "error"
61809
+ ]),
61752
61810
  /** 0..100 battery percentage. Null when the device has no battery
61753
61811
  * reading. */
61754
61812
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61757,14 +61815,6 @@ object({
61757
61815
  fanSpeed: string().nullable(),
61758
61816
  /** Speed tokens the hardware accepts — drives the UI selector. */
61759
61817
  availableFanSpeeds: array(string()),
61760
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61761
- cleanWater: TankStatusSchema.nullable(),
61762
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61763
- dirtyWater: TankStatusSchema.nullable(),
61764
- /** Detergent tank. Null when the hardware has no detergent tank. */
61765
- detergent: TankStatusSchema.nullable(),
61766
- /** Dust bin. Null when the hardware has no dust bin. */
61767
- dustBin: TankStatusSchema.nullable(),
61768
61818
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61769
61819
  progressPercent: number().min(0).max(100).nullable(),
61770
61820
  /** Current error code (0 / null = no error). */
@@ -64305,6 +64355,12 @@ Object.freeze({
64305
64355
  addonId: null,
64306
64356
  access: "create"
64307
64357
  },
64358
+ "deviceHistory.deleteOrphanSeries": {
64359
+ capName: "device-history",
64360
+ capScope: "system",
64361
+ addonId: null,
64362
+ access: "delete"
64363
+ },
64308
64364
  "deviceHistory.getDeviceEnabled": {
64309
64365
  capName: "device-history",
64310
64366
  capScope: "system",
@@ -64323,6 +64379,12 @@ Object.freeze({
64323
64379
  addonId: null,
64324
64380
  access: "view"
64325
64381
  },
64382
+ "deviceHistory.listOrphanSeries": {
64383
+ capName: "device-history",
64384
+ capScope: "system",
64385
+ addonId: null,
64386
+ access: "view"
64387
+ },
64326
64388
  "deviceHistory.listSeries": {
64327
64389
  capName: "device-history",
64328
64390
  capScope: "system",
@@ -74328,7 +74390,7 @@ var STATE_SUMMARY_VARS = [
74328
74390
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74329
74391
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74330
74392
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74331
- ([...RULE_TEXT], [...CONSUMABLE]),
74393
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74332
74394
  ([...RULE_TEXT], [...TANK]),
74333
74395
  [...RULE_TEXT],
74334
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.141",
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",