@camstack/addon-export-hap 1.2.175 → 1.2.176

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.
@@ -5481,7 +5481,7 @@ var ZodIssueCode = {
5481
5481
  var ZodFirstPartyTypeKind;
5482
5482
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5483
5483
  //#endregion
5484
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5484
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5485
5485
  /**
5486
5486
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5487
5487
  * window to float samples (D455).
@@ -8365,7 +8365,11 @@ var ContributionSectionSchema = object({
8365
8365
  literal(4)
8366
8366
  ]).optional(),
8367
8367
  tab: string().optional(),
8368
- location: _enum(["settings", "top-tab"]).optional(),
8368
+ location: _enum([
8369
+ "settings",
8370
+ "top-tab",
8371
+ "hero"
8372
+ ]).optional(),
8369
8373
  order: number().optional(),
8370
8374
  fields: array(any())
8371
8375
  });
@@ -14113,7 +14117,11 @@ var ConfigSectionWithValuesSchema = object({
14113
14117
  literal(4)
14114
14118
  ]).optional(),
14115
14119
  tab: string().optional(),
14116
- location: _enum(["settings", "top-tab"]).optional(),
14120
+ location: _enum([
14121
+ "settings",
14122
+ "top-tab",
14123
+ "hero"
14124
+ ]).optional(),
14117
14125
  order: number().optional(),
14118
14126
  fields: array(any())
14119
14127
  });
@@ -17887,6 +17895,52 @@ var TierStatusSchema = object({
17887
17895
  countedAt: number().nullable()
17888
17896
  });
17889
17897
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17898
+ /**
17899
+ * Why a series is orphan. `device-gone`: its device is absent from the
17900
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17901
+ * key is declared by no capability any more (a field a cap removed).
17902
+ */
17903
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17904
+ /** Rows held per stored tier. */
17905
+ var TierRowsSchema = object({
17906
+ raw: number().int(),
17907
+ "5m": number().int(),
17908
+ "1h": number().int(),
17909
+ "1d": number().int()
17910
+ });
17911
+ var OrphanSeriesSchema = object({
17912
+ seriesId: number().int(),
17913
+ deviceId: number().int(),
17914
+ key: string(),
17915
+ scope: string(),
17916
+ /** The metric's display name; `null` when its metric row is gone too. */
17917
+ displayName: string().nullable(),
17918
+ reason: DeviceHistoryOrphanReasonSchema,
17919
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17920
+ missingSince: number().nullable(),
17921
+ firstTs: number(),
17922
+ lastTs: number(),
17923
+ rows: TierRowsSchema
17924
+ });
17925
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17926
+ "not-found",
17927
+ "not-orphan",
17928
+ "failed"
17929
+ ]);
17930
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17931
+ seriesId: number().int(),
17932
+ ok: literal(true),
17933
+ deleted: TierRowsSchema
17934
+ }), object({
17935
+ seriesId: number().int(),
17936
+ ok: literal(false),
17937
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17938
+ })]);
17939
+ var OrphanListSchema = object({
17940
+ series: array(OrphanSeriesSchema).readonly(),
17941
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17942
+ truncated: boolean()
17943
+ });
17890
17944
  var DeviceHistoryStatusSchema = object({
17891
17945
  startedAt: number(),
17892
17946
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17984,7 +18038,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17984
18038
  }), object({ enabled: boolean() }), {
17985
18039
  kind: "mutation",
17986
18040
  auth: "admin"
17987
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
18041
+ }), 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() }), {
18042
+ kind: "mutation",
18043
+ auth: "admin"
18044
+ });
17988
18045
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17989
18046
  object({ state: literal("absent") }),
17990
18047
  object({
@@ -55275,17 +55332,69 @@ object({
55275
55332
  });
55276
55333
  DeviceType.Sensor;
55277
55334
  /**
55278
- * Generic device-consumables capability — surfaces a device's
55279
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
55280
- * descaling cycles, …) with their remaining life and an optional
55281
- * "Replaced" reset action. Device-agnostic: any provider that knows its
55282
- * device tracks consumables can register it; the cap declares no
55283
- * vocabulary of its own — the provider names each item verbatim.
55335
+ * Generic device-consumables capability — the ONE place a device reports what
55336
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
55337
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
55338
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
55339
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
55340
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
55341
+ * its device tracks consumables registers it; the provider names each item
55342
+ * verbatim and says which `kind` it is.
55343
+ *
55344
+ * The admin UI renders it as ONE collapsible section directly under the
55345
+ * device page's hero card (`placement: 'hero'`), for every device bound to
55346
+ * this cap — never drawn by a device type's hero card itself (D915).
55284
55347
  *
55285
55348
  * Like `childLayout`, the cap is INERT until a provider sets items: no
55286
55349
  * provider populates it by guessing (no HA inference). The UI renders a
55287
55350
  * "No consumables reported" placeholder when `items` is empty.
55288
55351
  */
55352
+ /**
55353
+ * What an item IS, which decides which direction is bad:
55354
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
55355
+ * - `supply` — something the device draws from (clean water, detergent,
55356
+ * salt, rinse aid); low or empty is bad.
55357
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
55358
+ * bad.
55359
+ * Absent = `wear`.
55360
+ */
55361
+ var ConsumableKindSchema = _enum([
55362
+ "wear",
55363
+ "supply",
55364
+ "waste"
55365
+ ]);
55366
+ /**
55367
+ * What an item LOOKS like, which decides how a client draws it — independent
55368
+ * of `kind`, which decides which direction is bad:
55369
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
55370
+ * remaining time and a reset.
55371
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
55372
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
55373
+ * a stepped level and "refill".
55374
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
55375
+ * that warns when full.
55376
+ * Absent = derived from the kind ({@link consumableFormOf}).
55377
+ */
55378
+ var ConsumableFormSchema = _enum([
55379
+ "part",
55380
+ "tank",
55381
+ "product",
55382
+ "bin"
55383
+ ]);
55384
+ /** The provider's own discrete verdict on an item. */
55385
+ var ConsumableStatusSchema = _enum([
55386
+ "ok",
55387
+ "low",
55388
+ "empty",
55389
+ "full",
55390
+ "replace"
55391
+ ]);
55392
+ _enum([
55393
+ "ok",
55394
+ "low",
55395
+ "empty",
55396
+ "full"
55397
+ ]);
55289
55398
  /** Units a remaining-life counter is reported in. Closed: the panel renders
55290
55399
  * each. */
55291
55400
  var ConsumableRemainingUnitSchema = _enum([
@@ -55305,10 +55414,14 @@ var ConsumablesStatusSchema = object({
55305
55414
  key: string().min(1),
55306
55415
  /** Display name. */
55307
55416
  label: string().min(1),
55308
- /** Remaining life % when known (0..100). */
55417
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
55309
55418
  level: number().min(0).max(100).nullable(),
55310
- /** Discrete state when known (binary mode). */
55311
- status: _enum(["ok", "replace"]).nullable(),
55419
+ /** The provider's discrete verdict when known (binary mode). */
55420
+ status: ConsumableStatusSchema.nullable(),
55421
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
55422
+ kind: ConsumableKindSchema.optional(),
55423
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
55424
+ form: ConsumableFormSchema.optional(),
55312
55425
  /** Ms epoch of the last replace, when known. */
55313
55426
  lastResetAt: number().nullable(),
55314
55427
  /** Whether `reset()` is meaningful for this item. */
@@ -55555,8 +55668,9 @@ object({
55555
55668
  status: DeviceStatusSchema
55556
55669
  });
55557
55670
  /**
55558
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
55559
- * consumable levels (salt, rinse aid) and common program options.
55671
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
55672
+ * common program options. Salt and rinse aid are NOT here: they are items of
55673
+ * the device's `consumables` cap, like every other device's (D915).
55560
55674
  *
55561
55675
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
55562
55676
  * by any integration that exposes the same program / option surface.
@@ -55604,11 +55718,6 @@ var DishwasherAvailabilitySchema = _enum([
55604
55718
  "offline",
55605
55719
  "description-missing"
55606
55720
  ]);
55607
- var DishwasherConsumableLevelSchema = _enum([
55608
- "ok",
55609
- "low",
55610
- "empty"
55611
- ]);
55612
55721
  object({
55613
55722
  availability: DishwasherAvailabilitySchema,
55614
55723
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55641,8 +55750,6 @@ object({
55641
55750
  powerOn: boolean().nullable(),
55642
55751
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55643
55752
  powerState: string().nullable(),
55644
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55645
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55646
55753
  /**
55647
55754
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55648
55755
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -62466,60 +62573,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62466
62573
  auth: "admin",
62467
62574
  access: "delete"
62468
62575
  });
62469
- /**
62470
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
62471
- * cleaning lifecycle plus a return-to-base / locate surface and an
62472
- * optional fan-speed selector.
62473
- *
62474
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
62475
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
62476
- * (0..100) is nullable — some vacuums don't report a battery
62477
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
62478
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
62479
- * tokens the hardware accepts so the UI renders only supported choices.
62480
- *
62481
- * The `setFanSpeed` method takes the bare `speed` token — the provider
62482
- * validates it against the vacuum's own list. `locate` triggers the
62483
- * find-me chirp; `returnToBase` sends it home.
62484
- *
62485
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
62486
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
62487
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
62488
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
62489
- * only when the device has no such tank at all, and use a `TankStatus`
62490
- * with both inner fields `null` when the tank exists but its level is
62491
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
62492
- * so the HA provider leaves all four `null`.
62493
- */
62494
- var VacuumStateSchema = _enum([
62495
- "idle",
62496
- "cleaning",
62497
- "paused",
62498
- "returning",
62499
- "docked",
62500
- "drying",
62501
- "error"
62502
- ]);
62503
- /**
62504
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
62505
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
62506
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
62507
- * level is currently unknown; the OWNING field being `null` means the
62508
- * hardware has no such tank at all.
62509
- */
62510
- var TankStatusSchema = object({
62511
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
62512
- level: number().min(0).max(100).nullable(),
62513
- /** Discrete state when the hardware is binary-mode; null otherwise. */
62514
- status: _enum([
62515
- "ok",
62516
- "low",
62517
- "full"
62518
- ]).nullable()
62519
- });
62520
62576
  object({
62521
62577
  /** Lifecycle state of the vacuum. */
62522
- state: VacuumStateSchema,
62578
+ state: _enum([
62579
+ "idle",
62580
+ "cleaning",
62581
+ "paused",
62582
+ "returning",
62583
+ "docked",
62584
+ "drying",
62585
+ "error"
62586
+ ]),
62523
62587
  /** 0..100 battery percentage. Null when the device has no battery
62524
62588
  * reading. */
62525
62589
  batteryLevel: number().min(0).max(100).nullable(),
@@ -62528,14 +62592,6 @@ object({
62528
62592
  fanSpeed: string().nullable(),
62529
62593
  /** Speed tokens the hardware accepts — drives the UI selector. */
62530
62594
  availableFanSpeeds: array(string()),
62531
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
62532
- cleanWater: TankStatusSchema.nullable(),
62533
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
62534
- dirtyWater: TankStatusSchema.nullable(),
62535
- /** Detergent tank. Null when the hardware has no detergent tank. */
62536
- detergent: TankStatusSchema.nullable(),
62537
- /** Dust bin. Null when the hardware has no dust bin. */
62538
- dustBin: TankStatusSchema.nullable(),
62539
62595
  /** 0..100 cleaning-completion percentage of the current task, or null. */
62540
62596
  progressPercent: number().min(0).max(100).nullable(),
62541
62597
  /** Current error code (0 / null = no error). */
@@ -65076,6 +65132,12 @@ Object.freeze({
65076
65132
  addonId: null,
65077
65133
  access: "create"
65078
65134
  },
65135
+ "deviceHistory.deleteOrphanSeries": {
65136
+ capName: "device-history",
65137
+ capScope: "system",
65138
+ addonId: null,
65139
+ access: "delete"
65140
+ },
65079
65141
  "deviceHistory.getDeviceEnabled": {
65080
65142
  capName: "device-history",
65081
65143
  capScope: "system",
@@ -65094,6 +65156,12 @@ Object.freeze({
65094
65156
  addonId: null,
65095
65157
  access: "view"
65096
65158
  },
65159
+ "deviceHistory.listOrphanSeries": {
65160
+ capName: "device-history",
65161
+ capScope: "system",
65162
+ addonId: null,
65163
+ access: "view"
65164
+ },
65097
65165
  "deviceHistory.listSeries": {
65098
65166
  capName: "device-history",
65099
65167
  capScope: "system",
@@ -75099,7 +75167,7 @@ var STATE_SUMMARY_VARS = [
75099
75167
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75100
75168
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75101
75169
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75102
- ([...RULE_TEXT], [...CONSUMABLE]),
75170
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75103
75171
  ([...RULE_TEXT], [...TANK]),
75104
75172
  [...RULE_TEXT],
75105
75173
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -5471,7 +5471,7 @@ var ZodIssueCode = {
5471
5471
  var ZodFirstPartyTypeKind;
5472
5472
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5473
5473
  //#endregion
5474
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5474
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5475
5475
  /**
5476
5476
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5477
5477
  * window to float samples (D455).
@@ -8355,7 +8355,11 @@ var ContributionSectionSchema = object({
8355
8355
  literal(4)
8356
8356
  ]).optional(),
8357
8357
  tab: string().optional(),
8358
- location: _enum(["settings", "top-tab"]).optional(),
8358
+ location: _enum([
8359
+ "settings",
8360
+ "top-tab",
8361
+ "hero"
8362
+ ]).optional(),
8359
8363
  order: number().optional(),
8360
8364
  fields: array(any())
8361
8365
  });
@@ -14103,7 +14107,11 @@ var ConfigSectionWithValuesSchema = object({
14103
14107
  literal(4)
14104
14108
  ]).optional(),
14105
14109
  tab: string().optional(),
14106
- location: _enum(["settings", "top-tab"]).optional(),
14110
+ location: _enum([
14111
+ "settings",
14112
+ "top-tab",
14113
+ "hero"
14114
+ ]).optional(),
14107
14115
  order: number().optional(),
14108
14116
  fields: array(any())
14109
14117
  });
@@ -17877,6 +17885,52 @@ var TierStatusSchema = object({
17877
17885
  countedAt: number().nullable()
17878
17886
  });
17879
17887
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17888
+ /**
17889
+ * Why a series is orphan. `device-gone`: its device is absent from the
17890
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17891
+ * key is declared by no capability any more (a field a cap removed).
17892
+ */
17893
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17894
+ /** Rows held per stored tier. */
17895
+ var TierRowsSchema = object({
17896
+ raw: number().int(),
17897
+ "5m": number().int(),
17898
+ "1h": number().int(),
17899
+ "1d": number().int()
17900
+ });
17901
+ var OrphanSeriesSchema = object({
17902
+ seriesId: number().int(),
17903
+ deviceId: number().int(),
17904
+ key: string(),
17905
+ scope: string(),
17906
+ /** The metric's display name; `null` when its metric row is gone too. */
17907
+ displayName: string().nullable(),
17908
+ reason: DeviceHistoryOrphanReasonSchema,
17909
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17910
+ missingSince: number().nullable(),
17911
+ firstTs: number(),
17912
+ lastTs: number(),
17913
+ rows: TierRowsSchema
17914
+ });
17915
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17916
+ "not-found",
17917
+ "not-orphan",
17918
+ "failed"
17919
+ ]);
17920
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17921
+ seriesId: number().int(),
17922
+ ok: literal(true),
17923
+ deleted: TierRowsSchema
17924
+ }), object({
17925
+ seriesId: number().int(),
17926
+ ok: literal(false),
17927
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17928
+ })]);
17929
+ var OrphanListSchema = object({
17930
+ series: array(OrphanSeriesSchema).readonly(),
17931
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17932
+ truncated: boolean()
17933
+ });
17880
17934
  var DeviceHistoryStatusSchema = object({
17881
17935
  startedAt: number(),
17882
17936
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17974,7 +18028,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17974
18028
  }), object({ enabled: boolean() }), {
17975
18029
  kind: "mutation",
17976
18030
  auth: "admin"
17977
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
18031
+ }), 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() }), {
18032
+ kind: "mutation",
18033
+ auth: "admin"
18034
+ });
17978
18035
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17979
18036
  object({ state: literal("absent") }),
17980
18037
  object({
@@ -55265,17 +55322,69 @@ object({
55265
55322
  });
55266
55323
  DeviceType.Sensor;
55267
55324
  /**
55268
- * Generic device-consumables capability — surfaces a device's
55269
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
55270
- * descaling cycles, …) with their remaining life and an optional
55271
- * "Replaced" reset action. Device-agnostic: any provider that knows its
55272
- * device tracks consumables can register it; the cap declares no
55273
- * vocabulary of its own — the provider names each item verbatim.
55325
+ * Generic device-consumables capability — the ONE place a device reports what
55326
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
55327
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
55328
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
55329
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
55330
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
55331
+ * its device tracks consumables registers it; the provider names each item
55332
+ * verbatim and says which `kind` it is.
55333
+ *
55334
+ * The admin UI renders it as ONE collapsible section directly under the
55335
+ * device page's hero card (`placement: 'hero'`), for every device bound to
55336
+ * this cap — never drawn by a device type's hero card itself (D915).
55274
55337
  *
55275
55338
  * Like `childLayout`, the cap is INERT until a provider sets items: no
55276
55339
  * provider populates it by guessing (no HA inference). The UI renders a
55277
55340
  * "No consumables reported" placeholder when `items` is empty.
55278
55341
  */
55342
+ /**
55343
+ * What an item IS, which decides which direction is bad:
55344
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
55345
+ * - `supply` — something the device draws from (clean water, detergent,
55346
+ * salt, rinse aid); low or empty is bad.
55347
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
55348
+ * bad.
55349
+ * Absent = `wear`.
55350
+ */
55351
+ var ConsumableKindSchema = _enum([
55352
+ "wear",
55353
+ "supply",
55354
+ "waste"
55355
+ ]);
55356
+ /**
55357
+ * What an item LOOKS like, which decides how a client draws it — independent
55358
+ * of `kind`, which decides which direction is bad:
55359
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
55360
+ * remaining time and a reset.
55361
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
55362
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
55363
+ * a stepped level and "refill".
55364
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
55365
+ * that warns when full.
55366
+ * Absent = derived from the kind ({@link consumableFormOf}).
55367
+ */
55368
+ var ConsumableFormSchema = _enum([
55369
+ "part",
55370
+ "tank",
55371
+ "product",
55372
+ "bin"
55373
+ ]);
55374
+ /** The provider's own discrete verdict on an item. */
55375
+ var ConsumableStatusSchema = _enum([
55376
+ "ok",
55377
+ "low",
55378
+ "empty",
55379
+ "full",
55380
+ "replace"
55381
+ ]);
55382
+ _enum([
55383
+ "ok",
55384
+ "low",
55385
+ "empty",
55386
+ "full"
55387
+ ]);
55279
55388
  /** Units a remaining-life counter is reported in. Closed: the panel renders
55280
55389
  * each. */
55281
55390
  var ConsumableRemainingUnitSchema = _enum([
@@ -55295,10 +55404,14 @@ var ConsumablesStatusSchema = object({
55295
55404
  key: string().min(1),
55296
55405
  /** Display name. */
55297
55406
  label: string().min(1),
55298
- /** Remaining life % when known (0..100). */
55407
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
55299
55408
  level: number().min(0).max(100).nullable(),
55300
- /** Discrete state when known (binary mode). */
55301
- status: _enum(["ok", "replace"]).nullable(),
55409
+ /** The provider's discrete verdict when known (binary mode). */
55410
+ status: ConsumableStatusSchema.nullable(),
55411
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
55412
+ kind: ConsumableKindSchema.optional(),
55413
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
55414
+ form: ConsumableFormSchema.optional(),
55302
55415
  /** Ms epoch of the last replace, when known. */
55303
55416
  lastResetAt: number().nullable(),
55304
55417
  /** Whether `reset()` is meaningful for this item. */
@@ -55545,8 +55658,9 @@ object({
55545
55658
  status: DeviceStatusSchema
55546
55659
  });
55547
55660
  /**
55548
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
55549
- * consumable levels (salt, rinse aid) and common program options.
55661
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
55662
+ * common program options. Salt and rinse aid are NOT here: they are items of
55663
+ * the device's `consumables` cap, like every other device's (D915).
55550
55664
  *
55551
55665
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
55552
55666
  * by any integration that exposes the same program / option surface.
@@ -55594,11 +55708,6 @@ var DishwasherAvailabilitySchema = _enum([
55594
55708
  "offline",
55595
55709
  "description-missing"
55596
55710
  ]);
55597
- var DishwasherConsumableLevelSchema = _enum([
55598
- "ok",
55599
- "low",
55600
- "empty"
55601
- ]);
55602
55711
  object({
55603
55712
  availability: DishwasherAvailabilitySchema,
55604
55713
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55631,8 +55740,6 @@ object({
55631
55740
  powerOn: boolean().nullable(),
55632
55741
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55633
55742
  powerState: string().nullable(),
55634
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55635
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55636
55743
  /**
55637
55744
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55638
55745
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -62456,60 +62563,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62456
62563
  auth: "admin",
62457
62564
  access: "delete"
62458
62565
  });
62459
- /**
62460
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
62461
- * cleaning lifecycle plus a return-to-base / locate surface and an
62462
- * optional fan-speed selector.
62463
- *
62464
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
62465
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
62466
- * (0..100) is nullable — some vacuums don't report a battery
62467
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
62468
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
62469
- * tokens the hardware accepts so the UI renders only supported choices.
62470
- *
62471
- * The `setFanSpeed` method takes the bare `speed` token — the provider
62472
- * validates it against the vacuum's own list. `locate` triggers the
62473
- * find-me chirp; `returnToBase` sends it home.
62474
- *
62475
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
62476
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
62477
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
62478
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
62479
- * only when the device has no such tank at all, and use a `TankStatus`
62480
- * with both inner fields `null` when the tank exists but its level is
62481
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
62482
- * so the HA provider leaves all four `null`.
62483
- */
62484
- var VacuumStateSchema = _enum([
62485
- "idle",
62486
- "cleaning",
62487
- "paused",
62488
- "returning",
62489
- "docked",
62490
- "drying",
62491
- "error"
62492
- ]);
62493
- /**
62494
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
62495
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
62496
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
62497
- * level is currently unknown; the OWNING field being `null` means the
62498
- * hardware has no such tank at all.
62499
- */
62500
- var TankStatusSchema = object({
62501
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
62502
- level: number().min(0).max(100).nullable(),
62503
- /** Discrete state when the hardware is binary-mode; null otherwise. */
62504
- status: _enum([
62505
- "ok",
62506
- "low",
62507
- "full"
62508
- ]).nullable()
62509
- });
62510
62566
  object({
62511
62567
  /** Lifecycle state of the vacuum. */
62512
- state: VacuumStateSchema,
62568
+ state: _enum([
62569
+ "idle",
62570
+ "cleaning",
62571
+ "paused",
62572
+ "returning",
62573
+ "docked",
62574
+ "drying",
62575
+ "error"
62576
+ ]),
62513
62577
  /** 0..100 battery percentage. Null when the device has no battery
62514
62578
  * reading. */
62515
62579
  batteryLevel: number().min(0).max(100).nullable(),
@@ -62518,14 +62582,6 @@ object({
62518
62582
  fanSpeed: string().nullable(),
62519
62583
  /** Speed tokens the hardware accepts — drives the UI selector. */
62520
62584
  availableFanSpeeds: array(string()),
62521
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
62522
- cleanWater: TankStatusSchema.nullable(),
62523
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
62524
- dirtyWater: TankStatusSchema.nullable(),
62525
- /** Detergent tank. Null when the hardware has no detergent tank. */
62526
- detergent: TankStatusSchema.nullable(),
62527
- /** Dust bin. Null when the hardware has no dust bin. */
62528
- dustBin: TankStatusSchema.nullable(),
62529
62585
  /** 0..100 cleaning-completion percentage of the current task, or null. */
62530
62586
  progressPercent: number().min(0).max(100).nullable(),
62531
62587
  /** Current error code (0 / null = no error). */
@@ -65066,6 +65122,12 @@ Object.freeze({
65066
65122
  addonId: null,
65067
65123
  access: "create"
65068
65124
  },
65125
+ "deviceHistory.deleteOrphanSeries": {
65126
+ capName: "device-history",
65127
+ capScope: "system",
65128
+ addonId: null,
65129
+ access: "delete"
65130
+ },
65069
65131
  "deviceHistory.getDeviceEnabled": {
65070
65132
  capName: "device-history",
65071
65133
  capScope: "system",
@@ -65084,6 +65146,12 @@ Object.freeze({
65084
65146
  addonId: null,
65085
65147
  access: "view"
65086
65148
  },
65149
+ "deviceHistory.listOrphanSeries": {
65150
+ capName: "device-history",
65151
+ capScope: "system",
65152
+ addonId: null,
65153
+ access: "view"
65154
+ },
65087
65155
  "deviceHistory.listSeries": {
65088
65156
  capName: "device-history",
65089
65157
  capScope: "system",
@@ -75089,7 +75157,7 @@ var STATE_SUMMARY_VARS = [
75089
75157
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75090
75158
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75091
75159
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75092
- ([...RULE_TEXT], [...CONSUMABLE]),
75160
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75093
75161
  ([...RULE_TEXT], [...TANK]),
75094
75162
  [...RULE_TEXT],
75095
75163
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.175",
3
+ "version": "1.2.176",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",