@camstack/addon-waste-collections 0.1.24 → 0.1.25

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.
@@ -5571,7 +5571,7 @@ var ZodIssueCode = {
5571
5571
  var ZodFirstPartyTypeKind;
5572
5572
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5573
5573
  //#endregion
5574
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5574
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5575
5575
  /**
5576
5576
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5577
5577
  * window to float samples (D455).
@@ -8661,7 +8661,11 @@ var ContributionSectionSchema = object({
8661
8661
  literal(4)
8662
8662
  ]).optional(),
8663
8663
  tab: string().optional(),
8664
- location: _enum(["settings", "top-tab"]).optional(),
8664
+ location: _enum([
8665
+ "settings",
8666
+ "top-tab",
8667
+ "hero"
8668
+ ]).optional(),
8665
8669
  order: number().optional(),
8666
8670
  fields: array(any())
8667
8671
  });
@@ -13602,7 +13606,11 @@ var ConfigSectionWithValuesSchema = object({
13602
13606
  literal(4)
13603
13607
  ]).optional(),
13604
13608
  tab: string().optional(),
13605
- location: _enum(["settings", "top-tab"]).optional(),
13609
+ location: _enum([
13610
+ "settings",
13611
+ "top-tab",
13612
+ "hero"
13613
+ ]).optional(),
13606
13614
  order: number().optional(),
13607
13615
  fields: array(any())
13608
13616
  });
@@ -17376,6 +17384,52 @@ var TierStatusSchema = object({
17376
17384
  countedAt: number().nullable()
17377
17385
  });
17378
17386
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17387
+ /**
17388
+ * Why a series is orphan. `device-gone`: its device is absent from the
17389
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17390
+ * key is declared by no capability any more (a field a cap removed).
17391
+ */
17392
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17393
+ /** Rows held per stored tier. */
17394
+ var TierRowsSchema = object({
17395
+ raw: number().int(),
17396
+ "5m": number().int(),
17397
+ "1h": number().int(),
17398
+ "1d": number().int()
17399
+ });
17400
+ var OrphanSeriesSchema = object({
17401
+ seriesId: number().int(),
17402
+ deviceId: number().int(),
17403
+ key: string(),
17404
+ scope: string(),
17405
+ /** The metric's display name; `null` when its metric row is gone too. */
17406
+ displayName: string().nullable(),
17407
+ reason: DeviceHistoryOrphanReasonSchema,
17408
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17409
+ missingSince: number().nullable(),
17410
+ firstTs: number(),
17411
+ lastTs: number(),
17412
+ rows: TierRowsSchema
17413
+ });
17414
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17415
+ "not-found",
17416
+ "not-orphan",
17417
+ "failed"
17418
+ ]);
17419
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17420
+ seriesId: number().int(),
17421
+ ok: literal(true),
17422
+ deleted: TierRowsSchema
17423
+ }), object({
17424
+ seriesId: number().int(),
17425
+ ok: literal(false),
17426
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17427
+ })]);
17428
+ var OrphanListSchema = object({
17429
+ series: array(OrphanSeriesSchema).readonly(),
17430
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17431
+ truncated: boolean()
17432
+ });
17379
17433
  var DeviceHistoryStatusSchema = object({
17380
17434
  startedAt: number(),
17381
17435
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17473,7 +17527,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17473
17527
  }), object({ enabled: boolean() }), {
17474
17528
  kind: "mutation",
17475
17529
  auth: "admin"
17476
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17530
+ }), 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() }), {
17531
+ kind: "mutation",
17532
+ auth: "admin"
17533
+ });
17477
17534
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17478
17535
  object({ state: literal("absent") }),
17479
17536
  object({
@@ -54492,17 +54549,69 @@ object({
54492
54549
  });
54493
54550
  DeviceType.Sensor;
54494
54551
  /**
54495
- * Generic device-consumables capability — surfaces a device's
54496
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54497
- * descaling cycles, …) with their remaining life and an optional
54498
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54499
- * device tracks consumables can register it; the cap declares no
54500
- * vocabulary of its own — the provider names each item verbatim.
54552
+ * Generic device-consumables capability — the ONE place a device reports what
54553
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54554
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54555
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54556
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54557
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54558
+ * its device tracks consumables registers it; the provider names each item
54559
+ * verbatim and says which `kind` it is.
54560
+ *
54561
+ * The admin UI renders it as ONE collapsible section directly under the
54562
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54563
+ * this cap — never drawn by a device type's hero card itself (D915).
54501
54564
  *
54502
54565
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54503
54566
  * provider populates it by guessing (no HA inference). The UI renders a
54504
54567
  * "No consumables reported" placeholder when `items` is empty.
54505
54568
  */
54569
+ /**
54570
+ * What an item IS, which decides which direction is bad:
54571
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54572
+ * - `supply` — something the device draws from (clean water, detergent,
54573
+ * salt, rinse aid); low or empty is bad.
54574
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54575
+ * bad.
54576
+ * Absent = `wear`.
54577
+ */
54578
+ var ConsumableKindSchema = _enum([
54579
+ "wear",
54580
+ "supply",
54581
+ "waste"
54582
+ ]);
54583
+ /**
54584
+ * What an item LOOKS like, which decides how a client draws it — independent
54585
+ * of `kind`, which decides which direction is bad:
54586
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54587
+ * remaining time and a reset.
54588
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54589
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54590
+ * a stepped level and "refill".
54591
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54592
+ * that warns when full.
54593
+ * Absent = derived from the kind ({@link consumableFormOf}).
54594
+ */
54595
+ var ConsumableFormSchema = _enum([
54596
+ "part",
54597
+ "tank",
54598
+ "product",
54599
+ "bin"
54600
+ ]);
54601
+ /** The provider's own discrete verdict on an item. */
54602
+ var ConsumableStatusSchema = _enum([
54603
+ "ok",
54604
+ "low",
54605
+ "empty",
54606
+ "full",
54607
+ "replace"
54608
+ ]);
54609
+ _enum([
54610
+ "ok",
54611
+ "low",
54612
+ "empty",
54613
+ "full"
54614
+ ]);
54506
54615
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54507
54616
  * each. */
54508
54617
  var ConsumableRemainingUnitSchema = _enum([
@@ -54522,10 +54631,14 @@ var ConsumablesStatusSchema = object({
54522
54631
  key: string().min(1),
54523
54632
  /** Display name. */
54524
54633
  label: string().min(1),
54525
- /** Remaining life % when known (0..100). */
54634
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54526
54635
  level: number().min(0).max(100).nullable(),
54527
- /** Discrete state when known (binary mode). */
54528
- status: _enum(["ok", "replace"]).nullable(),
54636
+ /** The provider's discrete verdict when known (binary mode). */
54637
+ status: ConsumableStatusSchema.nullable(),
54638
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54639
+ kind: ConsumableKindSchema.optional(),
54640
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54641
+ form: ConsumableFormSchema.optional(),
54529
54642
  /** Ms epoch of the last replace, when known. */
54530
54643
  lastResetAt: number().nullable(),
54531
54644
  /** Whether `reset()` is meaningful for this item. */
@@ -54760,8 +54873,9 @@ object({
54760
54873
  status: DeviceStatusSchema
54761
54874
  });
54762
54875
  /**
54763
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54764
- * consumable levels (salt, rinse aid) and common program options.
54876
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54877
+ * common program options. Salt and rinse aid are NOT here: they are items of
54878
+ * the device's `consumables` cap, like every other device's (D915).
54765
54879
  *
54766
54880
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54767
54881
  * by any integration that exposes the same program / option surface.
@@ -54809,11 +54923,6 @@ var DishwasherAvailabilitySchema = _enum([
54809
54923
  "offline",
54810
54924
  "description-missing"
54811
54925
  ]);
54812
- var DishwasherConsumableLevelSchema = _enum([
54813
- "ok",
54814
- "low",
54815
- "empty"
54816
- ]);
54817
54926
  object({
54818
54927
  availability: DishwasherAvailabilitySchema,
54819
54928
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54846,8 +54955,6 @@ object({
54846
54955
  powerOn: boolean().nullable(),
54847
54956
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54848
54957
  powerState: string().nullable(),
54849
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54850
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54851
54958
  /**
54852
54959
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54853
54960
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61630,60 +61737,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61630
61737
  auth: "admin",
61631
61738
  access: "delete"
61632
61739
  });
61633
- /**
61634
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61635
- * cleaning lifecycle plus a return-to-base / locate surface and an
61636
- * optional fan-speed selector.
61637
- *
61638
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61639
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61640
- * (0..100) is nullable — some vacuums don't report a battery
61641
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61642
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61643
- * tokens the hardware accepts so the UI renders only supported choices.
61644
- *
61645
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61646
- * validates it against the vacuum's own list. `locate` triggers the
61647
- * find-me chirp; `returnToBase` sends it home.
61648
- *
61649
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61650
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61651
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61652
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61653
- * only when the device has no such tank at all, and use a `TankStatus`
61654
- * with both inner fields `null` when the tank exists but its level is
61655
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61656
- * so the HA provider leaves all four `null`.
61657
- */
61658
- var VacuumStateSchema = _enum([
61659
- "idle",
61660
- "cleaning",
61661
- "paused",
61662
- "returning",
61663
- "docked",
61664
- "drying",
61665
- "error"
61666
- ]);
61667
- /**
61668
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61669
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61670
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61671
- * level is currently unknown; the OWNING field being `null` means the
61672
- * hardware has no such tank at all.
61673
- */
61674
- var TankStatusSchema = object({
61675
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61676
- level: number().min(0).max(100).nullable(),
61677
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61678
- status: _enum([
61679
- "ok",
61680
- "low",
61681
- "full"
61682
- ]).nullable()
61683
- });
61684
61740
  object({
61685
61741
  /** Lifecycle state of the vacuum. */
61686
- state: VacuumStateSchema,
61742
+ state: _enum([
61743
+ "idle",
61744
+ "cleaning",
61745
+ "paused",
61746
+ "returning",
61747
+ "docked",
61748
+ "drying",
61749
+ "error"
61750
+ ]),
61687
61751
  /** 0..100 battery percentage. Null when the device has no battery
61688
61752
  * reading. */
61689
61753
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61692,14 +61756,6 @@ object({
61692
61756
  fanSpeed: string().nullable(),
61693
61757
  /** Speed tokens the hardware accepts — drives the UI selector. */
61694
61758
  availableFanSpeeds: array(string()),
61695
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61696
- cleanWater: TankStatusSchema.nullable(),
61697
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61698
- dirtyWater: TankStatusSchema.nullable(),
61699
- /** Detergent tank. Null when the hardware has no detergent tank. */
61700
- detergent: TankStatusSchema.nullable(),
61701
- /** Dust bin. Null when the hardware has no dust bin. */
61702
- dustBin: TankStatusSchema.nullable(),
61703
61759
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61704
61760
  progressPercent: number().min(0).max(100).nullable(),
61705
61761
  /** Current error code (0 / null = no error). */
@@ -64240,6 +64296,12 @@ Object.freeze({
64240
64296
  addonId: null,
64241
64297
  access: "create"
64242
64298
  },
64299
+ "deviceHistory.deleteOrphanSeries": {
64300
+ capName: "device-history",
64301
+ capScope: "system",
64302
+ addonId: null,
64303
+ access: "delete"
64304
+ },
64243
64305
  "deviceHistory.getDeviceEnabled": {
64244
64306
  capName: "device-history",
64245
64307
  capScope: "system",
@@ -64258,6 +64320,12 @@ Object.freeze({
64258
64320
  addonId: null,
64259
64321
  access: "view"
64260
64322
  },
64323
+ "deviceHistory.listOrphanSeries": {
64324
+ capName: "device-history",
64325
+ capScope: "system",
64326
+ addonId: null,
64327
+ access: "view"
64328
+ },
64261
64329
  "deviceHistory.listSeries": {
64262
64330
  capName: "device-history",
64263
64331
  capScope: "system",
@@ -74263,7 +74331,7 @@ var STATE_SUMMARY_VARS = [
74263
74331
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74264
74332
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74265
74333
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74266
- ([...RULE_TEXT], [...CONSUMABLE]),
74334
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74267
74335
  ([...RULE_TEXT], [...TANK]),
74268
74336
  [...RULE_TEXT],
74269
74337
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -5567,7 +5567,7 @@ var ZodIssueCode = {
5567
5567
  var ZodFirstPartyTypeKind;
5568
5568
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5569
5569
  //#endregion
5570
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5570
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5571
5571
  /**
5572
5572
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5573
5573
  * window to float samples (D455).
@@ -8657,7 +8657,11 @@ var ContributionSectionSchema = object({
8657
8657
  literal(4)
8658
8658
  ]).optional(),
8659
8659
  tab: string().optional(),
8660
- location: _enum(["settings", "top-tab"]).optional(),
8660
+ location: _enum([
8661
+ "settings",
8662
+ "top-tab",
8663
+ "hero"
8664
+ ]).optional(),
8661
8665
  order: number().optional(),
8662
8666
  fields: array(any())
8663
8667
  });
@@ -13598,7 +13602,11 @@ var ConfigSectionWithValuesSchema = object({
13598
13602
  literal(4)
13599
13603
  ]).optional(),
13600
13604
  tab: string().optional(),
13601
- location: _enum(["settings", "top-tab"]).optional(),
13605
+ location: _enum([
13606
+ "settings",
13607
+ "top-tab",
13608
+ "hero"
13609
+ ]).optional(),
13602
13610
  order: number().optional(),
13603
13611
  fields: array(any())
13604
13612
  });
@@ -17372,6 +17380,52 @@ var TierStatusSchema = object({
17372
17380
  countedAt: number().nullable()
17373
17381
  });
17374
17382
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17383
+ /**
17384
+ * Why a series is orphan. `device-gone`: its device is absent from the
17385
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17386
+ * key is declared by no capability any more (a field a cap removed).
17387
+ */
17388
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17389
+ /** Rows held per stored tier. */
17390
+ var TierRowsSchema = object({
17391
+ raw: number().int(),
17392
+ "5m": number().int(),
17393
+ "1h": number().int(),
17394
+ "1d": number().int()
17395
+ });
17396
+ var OrphanSeriesSchema = object({
17397
+ seriesId: number().int(),
17398
+ deviceId: number().int(),
17399
+ key: string(),
17400
+ scope: string(),
17401
+ /** The metric's display name; `null` when its metric row is gone too. */
17402
+ displayName: string().nullable(),
17403
+ reason: DeviceHistoryOrphanReasonSchema,
17404
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17405
+ missingSince: number().nullable(),
17406
+ firstTs: number(),
17407
+ lastTs: number(),
17408
+ rows: TierRowsSchema
17409
+ });
17410
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17411
+ "not-found",
17412
+ "not-orphan",
17413
+ "failed"
17414
+ ]);
17415
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17416
+ seriesId: number().int(),
17417
+ ok: literal(true),
17418
+ deleted: TierRowsSchema
17419
+ }), object({
17420
+ seriesId: number().int(),
17421
+ ok: literal(false),
17422
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17423
+ })]);
17424
+ var OrphanListSchema = object({
17425
+ series: array(OrphanSeriesSchema).readonly(),
17426
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17427
+ truncated: boolean()
17428
+ });
17375
17429
  var DeviceHistoryStatusSchema = object({
17376
17430
  startedAt: number(),
17377
17431
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17469,7 +17523,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17469
17523
  }), object({ enabled: boolean() }), {
17470
17524
  kind: "mutation",
17471
17525
  auth: "admin"
17472
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17526
+ }), 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() }), {
17527
+ kind: "mutation",
17528
+ auth: "admin"
17529
+ });
17473
17530
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17474
17531
  object({ state: literal("absent") }),
17475
17532
  object({
@@ -54488,17 +54545,69 @@ object({
54488
54545
  });
54489
54546
  DeviceType.Sensor;
54490
54547
  /**
54491
- * Generic device-consumables capability — surfaces a device's
54492
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54493
- * descaling cycles, …) with their remaining life and an optional
54494
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54495
- * device tracks consumables can register it; the cap declares no
54496
- * vocabulary of its own — the provider names each item verbatim.
54548
+ * Generic device-consumables capability — the ONE place a device reports what
54549
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54550
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54551
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54552
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54553
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54554
+ * its device tracks consumables registers it; the provider names each item
54555
+ * verbatim and says which `kind` it is.
54556
+ *
54557
+ * The admin UI renders it as ONE collapsible section directly under the
54558
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54559
+ * this cap — never drawn by a device type's hero card itself (D915).
54497
54560
  *
54498
54561
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54499
54562
  * provider populates it by guessing (no HA inference). The UI renders a
54500
54563
  * "No consumables reported" placeholder when `items` is empty.
54501
54564
  */
54565
+ /**
54566
+ * What an item IS, which decides which direction is bad:
54567
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54568
+ * - `supply` — something the device draws from (clean water, detergent,
54569
+ * salt, rinse aid); low or empty is bad.
54570
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54571
+ * bad.
54572
+ * Absent = `wear`.
54573
+ */
54574
+ var ConsumableKindSchema = _enum([
54575
+ "wear",
54576
+ "supply",
54577
+ "waste"
54578
+ ]);
54579
+ /**
54580
+ * What an item LOOKS like, which decides how a client draws it — independent
54581
+ * of `kind`, which decides which direction is bad:
54582
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54583
+ * remaining time and a reset.
54584
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54585
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54586
+ * a stepped level and "refill".
54587
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54588
+ * that warns when full.
54589
+ * Absent = derived from the kind ({@link consumableFormOf}).
54590
+ */
54591
+ var ConsumableFormSchema = _enum([
54592
+ "part",
54593
+ "tank",
54594
+ "product",
54595
+ "bin"
54596
+ ]);
54597
+ /** The provider's own discrete verdict on an item. */
54598
+ var ConsumableStatusSchema = _enum([
54599
+ "ok",
54600
+ "low",
54601
+ "empty",
54602
+ "full",
54603
+ "replace"
54604
+ ]);
54605
+ _enum([
54606
+ "ok",
54607
+ "low",
54608
+ "empty",
54609
+ "full"
54610
+ ]);
54502
54611
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54503
54612
  * each. */
54504
54613
  var ConsumableRemainingUnitSchema = _enum([
@@ -54518,10 +54627,14 @@ var ConsumablesStatusSchema = object({
54518
54627
  key: string().min(1),
54519
54628
  /** Display name. */
54520
54629
  label: string().min(1),
54521
- /** Remaining life % when known (0..100). */
54630
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54522
54631
  level: number().min(0).max(100).nullable(),
54523
- /** Discrete state when known (binary mode). */
54524
- status: _enum(["ok", "replace"]).nullable(),
54632
+ /** The provider's discrete verdict when known (binary mode). */
54633
+ status: ConsumableStatusSchema.nullable(),
54634
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54635
+ kind: ConsumableKindSchema.optional(),
54636
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54637
+ form: ConsumableFormSchema.optional(),
54525
54638
  /** Ms epoch of the last replace, when known. */
54526
54639
  lastResetAt: number().nullable(),
54527
54640
  /** Whether `reset()` is meaningful for this item. */
@@ -54756,8 +54869,9 @@ object({
54756
54869
  status: DeviceStatusSchema
54757
54870
  });
54758
54871
  /**
54759
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54760
- * consumable levels (salt, rinse aid) and common program options.
54872
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54873
+ * common program options. Salt and rinse aid are NOT here: they are items of
54874
+ * the device's `consumables` cap, like every other device's (D915).
54761
54875
  *
54762
54876
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54763
54877
  * by any integration that exposes the same program / option surface.
@@ -54805,11 +54919,6 @@ var DishwasherAvailabilitySchema = _enum([
54805
54919
  "offline",
54806
54920
  "description-missing"
54807
54921
  ]);
54808
- var DishwasherConsumableLevelSchema = _enum([
54809
- "ok",
54810
- "low",
54811
- "empty"
54812
- ]);
54813
54922
  object({
54814
54923
  availability: DishwasherAvailabilitySchema,
54815
54924
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54842,8 +54951,6 @@ object({
54842
54951
  powerOn: boolean().nullable(),
54843
54952
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54844
54953
  powerState: string().nullable(),
54845
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54846
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54847
54954
  /**
54848
54955
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54849
54956
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61626,60 +61733,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61626
61733
  auth: "admin",
61627
61734
  access: "delete"
61628
61735
  });
61629
- /**
61630
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61631
- * cleaning lifecycle plus a return-to-base / locate surface and an
61632
- * optional fan-speed selector.
61633
- *
61634
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61635
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61636
- * (0..100) is nullable — some vacuums don't report a battery
61637
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61638
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61639
- * tokens the hardware accepts so the UI renders only supported choices.
61640
- *
61641
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61642
- * validates it against the vacuum's own list. `locate` triggers the
61643
- * find-me chirp; `returnToBase` sends it home.
61644
- *
61645
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61646
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61647
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61648
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61649
- * only when the device has no such tank at all, and use a `TankStatus`
61650
- * with both inner fields `null` when the tank exists but its level is
61651
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61652
- * so the HA provider leaves all four `null`.
61653
- */
61654
- var VacuumStateSchema = _enum([
61655
- "idle",
61656
- "cleaning",
61657
- "paused",
61658
- "returning",
61659
- "docked",
61660
- "drying",
61661
- "error"
61662
- ]);
61663
- /**
61664
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61665
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61666
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61667
- * level is currently unknown; the OWNING field being `null` means the
61668
- * hardware has no such tank at all.
61669
- */
61670
- var TankStatusSchema = object({
61671
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61672
- level: number().min(0).max(100).nullable(),
61673
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61674
- status: _enum([
61675
- "ok",
61676
- "low",
61677
- "full"
61678
- ]).nullable()
61679
- });
61680
61736
  object({
61681
61737
  /** Lifecycle state of the vacuum. */
61682
- state: VacuumStateSchema,
61738
+ state: _enum([
61739
+ "idle",
61740
+ "cleaning",
61741
+ "paused",
61742
+ "returning",
61743
+ "docked",
61744
+ "drying",
61745
+ "error"
61746
+ ]),
61683
61747
  /** 0..100 battery percentage. Null when the device has no battery
61684
61748
  * reading. */
61685
61749
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61688,14 +61752,6 @@ object({
61688
61752
  fanSpeed: string().nullable(),
61689
61753
  /** Speed tokens the hardware accepts — drives the UI selector. */
61690
61754
  availableFanSpeeds: array(string()),
61691
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61692
- cleanWater: TankStatusSchema.nullable(),
61693
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61694
- dirtyWater: TankStatusSchema.nullable(),
61695
- /** Detergent tank. Null when the hardware has no detergent tank. */
61696
- detergent: TankStatusSchema.nullable(),
61697
- /** Dust bin. Null when the hardware has no dust bin. */
61698
- dustBin: TankStatusSchema.nullable(),
61699
61755
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61700
61756
  progressPercent: number().min(0).max(100).nullable(),
61701
61757
  /** Current error code (0 / null = no error). */
@@ -64236,6 +64292,12 @@ Object.freeze({
64236
64292
  addonId: null,
64237
64293
  access: "create"
64238
64294
  },
64295
+ "deviceHistory.deleteOrphanSeries": {
64296
+ capName: "device-history",
64297
+ capScope: "system",
64298
+ addonId: null,
64299
+ access: "delete"
64300
+ },
64239
64301
  "deviceHistory.getDeviceEnabled": {
64240
64302
  capName: "device-history",
64241
64303
  capScope: "system",
@@ -64254,6 +64316,12 @@ Object.freeze({
64254
64316
  addonId: null,
64255
64317
  access: "view"
64256
64318
  },
64319
+ "deviceHistory.listOrphanSeries": {
64320
+ capName: "device-history",
64321
+ capScope: "system",
64322
+ addonId: null,
64323
+ access: "view"
64324
+ },
64257
64325
  "deviceHistory.listSeries": {
64258
64326
  capName: "device-history",
64259
64327
  capScope: "system",
@@ -74259,7 +74327,7 @@ var STATE_SUMMARY_VARS = [
74259
74327
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74260
74328
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74261
74329
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74262
- ([...RULE_TEXT], [...CONSUMABLE]),
74330
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74263
74331
  ([...RULE_TEXT], [...TANK]),
74264
74332
  [...RULE_TEXT],
74265
74333
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-waste-collections",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Waste collection schedules via the vendored HACS waste_collection_schedule Python core — full source catalog as calendar-source.",
5
5
  "keywords": [
6
6
  "camstack",