@camstack/addon-provider-onvif 1.2.144 → 1.2.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +151 -89
  2. package/dist/addon.mjs +151 -89
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5434,7 +5434,7 @@ var ZodIssueCode = {
5434
5434
  var ZodFirstPartyTypeKind;
5435
5435
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5436
5436
  //#endregion
5437
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5437
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5438
5438
  /**
5439
5439
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5440
5440
  * window to float samples (D455).
@@ -8259,7 +8259,11 @@ var ContributionSectionSchema = object({
8259
8259
  literal(4)
8260
8260
  ]).optional(),
8261
8261
  tab: string().optional(),
8262
- location: _enum(["settings", "top-tab"]).optional(),
8262
+ location: _enum([
8263
+ "settings",
8264
+ "top-tab",
8265
+ "hero"
8266
+ ]).optional(),
8263
8267
  order: number().optional(),
8264
8268
  fields: array(any())
8265
8269
  });
@@ -13188,7 +13192,11 @@ var ConfigSectionWithValuesSchema = object({
13188
13192
  literal(4)
13189
13193
  ]).optional(),
13190
13194
  tab: string().optional(),
13191
- location: _enum(["settings", "top-tab"]).optional(),
13195
+ location: _enum([
13196
+ "settings",
13197
+ "top-tab",
13198
+ "hero"
13199
+ ]).optional(),
13192
13200
  order: number().optional(),
13193
13201
  fields: array(any())
13194
13202
  });
@@ -16962,6 +16970,52 @@ var TierStatusSchema = object({
16962
16970
  countedAt: number().nullable()
16963
16971
  });
16964
16972
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16973
+ /**
16974
+ * Why a series is orphan. `device-gone`: its device is absent from the
16975
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
16976
+ * key is declared by no capability any more (a field a cap removed).
16977
+ */
16978
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
16979
+ /** Rows held per stored tier. */
16980
+ var TierRowsSchema = object({
16981
+ raw: number().int(),
16982
+ "5m": number().int(),
16983
+ "1h": number().int(),
16984
+ "1d": number().int()
16985
+ });
16986
+ var OrphanSeriesSchema = object({
16987
+ seriesId: number().int(),
16988
+ deviceId: number().int(),
16989
+ key: string(),
16990
+ scope: string(),
16991
+ /** The metric's display name; `null` when its metric row is gone too. */
16992
+ displayName: string().nullable(),
16993
+ reason: DeviceHistoryOrphanReasonSchema,
16994
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
16995
+ missingSince: number().nullable(),
16996
+ firstTs: number(),
16997
+ lastTs: number(),
16998
+ rows: TierRowsSchema
16999
+ });
17000
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17001
+ "not-found",
17002
+ "not-orphan",
17003
+ "failed"
17004
+ ]);
17005
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17006
+ seriesId: number().int(),
17007
+ ok: literal(true),
17008
+ deleted: TierRowsSchema
17009
+ }), object({
17010
+ seriesId: number().int(),
17011
+ ok: literal(false),
17012
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17013
+ })]);
17014
+ var OrphanListSchema = object({
17015
+ series: array(OrphanSeriesSchema).readonly(),
17016
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17017
+ truncated: boolean()
17018
+ });
16965
17019
  var DeviceHistoryStatusSchema = object({
16966
17020
  startedAt: number(),
16967
17021
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17059,7 +17113,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17059
17113
  }), object({ enabled: boolean() }), {
17060
17114
  kind: "mutation",
17061
17115
  auth: "admin"
17062
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17116
+ }), 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() }), {
17117
+ kind: "mutation",
17118
+ auth: "admin"
17119
+ });
17063
17120
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17064
17121
  object({ state: literal("absent") }),
17065
17122
  object({
@@ -47728,7 +47785,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47728
47785
  modelId: string()
47729
47786
  }),
47730
47787
  object({ kind: literal("cpu-device") }),
47731
- object({ kind: literal("coral-untouched") }),
47732
47788
  object({ kind: literal("device-disabled") }),
47733
47789
  object({ kind: literal("device-unavailable") }),
47734
47790
  object({ kind: literal("node-offline") }),
@@ -47826,11 +47882,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
47826
47882
  kind: literal("detector-store-unreadable"),
47827
47883
  error: string()
47828
47884
  }),
47829
- object({
47830
- kind: literal("coral-enabled"),
47831
- nodeId: string(),
47832
- deviceKey: string()
47833
- }),
47834
47885
  object({
47835
47886
  kind: literal("custom-pin-kept"),
47836
47887
  nodeId: string(),
@@ -54372,17 +54423,69 @@ object({
54372
54423
  });
54373
54424
  DeviceType.Sensor;
54374
54425
  /**
54375
- * Generic device-consumables capability — surfaces a device's
54376
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54377
- * descaling cycles, …) with their remaining life and an optional
54378
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54379
- * device tracks consumables can register it; the cap declares no
54380
- * vocabulary of its own — the provider names each item verbatim.
54426
+ * Generic device-consumables capability — the ONE place a device reports what
54427
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54428
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54429
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54430
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54431
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54432
+ * its device tracks consumables registers it; the provider names each item
54433
+ * verbatim and says which `kind` it is.
54434
+ *
54435
+ * The admin UI renders it as ONE collapsible section directly under the
54436
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54437
+ * this cap — never drawn by a device type's hero card itself (D915).
54381
54438
  *
54382
54439
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54383
54440
  * provider populates it by guessing (no HA inference). The UI renders a
54384
54441
  * "No consumables reported" placeholder when `items` is empty.
54385
54442
  */
54443
+ /**
54444
+ * What an item IS, which decides which direction is bad:
54445
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54446
+ * - `supply` — something the device draws from (clean water, detergent,
54447
+ * salt, rinse aid); low or empty is bad.
54448
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54449
+ * bad.
54450
+ * Absent = `wear`.
54451
+ */
54452
+ var ConsumableKindSchema = _enum([
54453
+ "wear",
54454
+ "supply",
54455
+ "waste"
54456
+ ]);
54457
+ /**
54458
+ * What an item LOOKS like, which decides how a client draws it — independent
54459
+ * of `kind`, which decides which direction is bad:
54460
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54461
+ * remaining time and a reset.
54462
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54463
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54464
+ * a stepped level and "refill".
54465
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54466
+ * that warns when full.
54467
+ * Absent = derived from the kind ({@link consumableFormOf}).
54468
+ */
54469
+ var ConsumableFormSchema = _enum([
54470
+ "part",
54471
+ "tank",
54472
+ "product",
54473
+ "bin"
54474
+ ]);
54475
+ /** The provider's own discrete verdict on an item. */
54476
+ var ConsumableStatusSchema = _enum([
54477
+ "ok",
54478
+ "low",
54479
+ "empty",
54480
+ "full",
54481
+ "replace"
54482
+ ]);
54483
+ _enum([
54484
+ "ok",
54485
+ "low",
54486
+ "empty",
54487
+ "full"
54488
+ ]);
54386
54489
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54387
54490
  * each. */
54388
54491
  var ConsumableRemainingUnitSchema = _enum([
@@ -54402,10 +54505,14 @@ var ConsumablesStatusSchema = object({
54402
54505
  key: string().min(1),
54403
54506
  /** Display name. */
54404
54507
  label: string().min(1),
54405
- /** Remaining life % when known (0..100). */
54508
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54406
54509
  level: number().min(0).max(100).nullable(),
54407
- /** Discrete state when known (binary mode). */
54408
- status: _enum(["ok", "replace"]).nullable(),
54510
+ /** The provider's discrete verdict when known (binary mode). */
54511
+ status: ConsumableStatusSchema.nullable(),
54512
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54513
+ kind: ConsumableKindSchema.optional(),
54514
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54515
+ form: ConsumableFormSchema.optional(),
54409
54516
  /** Ms epoch of the last replace, when known. */
54410
54517
  lastResetAt: number().nullable(),
54411
54518
  /** Whether `reset()` is meaningful for this item. */
@@ -54640,8 +54747,9 @@ object({
54640
54747
  status: DeviceStatusSchema
54641
54748
  });
54642
54749
  /**
54643
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54644
- * consumable levels (salt, rinse aid) and common program options.
54750
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54751
+ * common program options. Salt and rinse aid are NOT here: they are items of
54752
+ * the device's `consumables` cap, like every other device's (D915).
54645
54753
  *
54646
54754
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54647
54755
  * by any integration that exposes the same program / option surface.
@@ -54689,11 +54797,6 @@ var DishwasherAvailabilitySchema = _enum([
54689
54797
  "offline",
54690
54798
  "description-missing"
54691
54799
  ]);
54692
- var DishwasherConsumableLevelSchema = _enum([
54693
- "ok",
54694
- "low",
54695
- "empty"
54696
- ]);
54697
54800
  object({
54698
54801
  availability: DishwasherAvailabilitySchema,
54699
54802
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54726,8 +54829,6 @@ object({
54726
54829
  powerOn: boolean().nullable(),
54727
54830
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54728
54831
  powerState: string().nullable(),
54729
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54730
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54731
54832
  /**
54732
54833
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54733
54834
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61602,60 +61703,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61602
61703
  auth: "admin",
61603
61704
  access: "delete"
61604
61705
  });
61605
- /**
61606
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61607
- * cleaning lifecycle plus a return-to-base / locate surface and an
61608
- * optional fan-speed selector.
61609
- *
61610
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61611
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61612
- * (0..100) is nullable — some vacuums don't report a battery
61613
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61614
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61615
- * tokens the hardware accepts so the UI renders only supported choices.
61616
- *
61617
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61618
- * validates it against the vacuum's own list. `locate` triggers the
61619
- * find-me chirp; `returnToBase` sends it home.
61620
- *
61621
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61622
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61623
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61624
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61625
- * only when the device has no such tank at all, and use a `TankStatus`
61626
- * with both inner fields `null` when the tank exists but its level is
61627
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61628
- * so the HA provider leaves all four `null`.
61629
- */
61630
- var VacuumStateSchema = _enum([
61631
- "idle",
61632
- "cleaning",
61633
- "paused",
61634
- "returning",
61635
- "docked",
61636
- "drying",
61637
- "error"
61638
- ]);
61639
- /**
61640
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61641
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61642
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61643
- * level is currently unknown; the OWNING field being `null` means the
61644
- * hardware has no such tank at all.
61645
- */
61646
- var TankStatusSchema = object({
61647
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61648
- level: number().min(0).max(100).nullable(),
61649
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61650
- status: _enum([
61651
- "ok",
61652
- "low",
61653
- "full"
61654
- ]).nullable()
61655
- });
61656
61706
  object({
61657
61707
  /** Lifecycle state of the vacuum. */
61658
- state: VacuumStateSchema,
61708
+ state: _enum([
61709
+ "idle",
61710
+ "cleaning",
61711
+ "paused",
61712
+ "returning",
61713
+ "docked",
61714
+ "drying",
61715
+ "error"
61716
+ ]),
61659
61717
  /** 0..100 battery percentage. Null when the device has no battery
61660
61718
  * reading. */
61661
61719
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61664,14 +61722,6 @@ object({
61664
61722
  fanSpeed: string().nullable(),
61665
61723
  /** Speed tokens the hardware accepts — drives the UI selector. */
61666
61724
  availableFanSpeeds: array(string()),
61667
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61668
- cleanWater: TankStatusSchema.nullable(),
61669
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61670
- dirtyWater: TankStatusSchema.nullable(),
61671
- /** Detergent tank. Null when the hardware has no detergent tank. */
61672
- detergent: TankStatusSchema.nullable(),
61673
- /** Dust bin. Null when the hardware has no dust bin. */
61674
- dustBin: TankStatusSchema.nullable(),
61675
61725
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61676
61726
  progressPercent: number().min(0).max(100).nullable(),
61677
61727
  /** Current error code (0 / null = no error). */
@@ -65037,6 +65087,12 @@ Object.freeze({
65037
65087
  addonId: null,
65038
65088
  access: "create"
65039
65089
  },
65090
+ "deviceHistory.deleteOrphanSeries": {
65091
+ capName: "device-history",
65092
+ capScope: "system",
65093
+ addonId: null,
65094
+ access: "delete"
65095
+ },
65040
65096
  "deviceHistory.getDeviceEnabled": {
65041
65097
  capName: "device-history",
65042
65098
  capScope: "system",
@@ -65055,6 +65111,12 @@ Object.freeze({
65055
65111
  addonId: null,
65056
65112
  access: "view"
65057
65113
  },
65114
+ "deviceHistory.listOrphanSeries": {
65115
+ capName: "device-history",
65116
+ capScope: "system",
65117
+ addonId: null,
65118
+ access: "view"
65119
+ },
65058
65120
  "deviceHistory.listSeries": {
65059
65121
  capName: "device-history",
65060
65122
  capScope: "system",
@@ -75126,7 +75188,7 @@ var STATE_SUMMARY_VARS = [
75126
75188
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75127
75189
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75128
75190
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75129
- ([...RULE_TEXT], [...CONSUMABLE]),
75191
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75130
75192
  ([...RULE_TEXT], [...TANK]),
75131
75193
  [...RULE_TEXT],
75132
75194
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/dist/addon.mjs CHANGED
@@ -5435,7 +5435,7 @@ var ZodIssueCode = {
5435
5435
  var ZodFirstPartyTypeKind;
5436
5436
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5437
5437
  //#endregion
5438
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5438
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5439
5439
  /**
5440
5440
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5441
5441
  * window to float samples (D455).
@@ -8260,7 +8260,11 @@ var ContributionSectionSchema = object({
8260
8260
  literal(4)
8261
8261
  ]).optional(),
8262
8262
  tab: string().optional(),
8263
- location: _enum(["settings", "top-tab"]).optional(),
8263
+ location: _enum([
8264
+ "settings",
8265
+ "top-tab",
8266
+ "hero"
8267
+ ]).optional(),
8264
8268
  order: number().optional(),
8265
8269
  fields: array(any())
8266
8270
  });
@@ -13189,7 +13193,11 @@ var ConfigSectionWithValuesSchema = object({
13189
13193
  literal(4)
13190
13194
  ]).optional(),
13191
13195
  tab: string().optional(),
13192
- location: _enum(["settings", "top-tab"]).optional(),
13196
+ location: _enum([
13197
+ "settings",
13198
+ "top-tab",
13199
+ "hero"
13200
+ ]).optional(),
13193
13201
  order: number().optional(),
13194
13202
  fields: array(any())
13195
13203
  });
@@ -16963,6 +16971,52 @@ var TierStatusSchema = object({
16963
16971
  countedAt: number().nullable()
16964
16972
  });
16965
16973
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16974
+ /**
16975
+ * Why a series is orphan. `device-gone`: its device is absent from the
16976
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
16977
+ * key is declared by no capability any more (a field a cap removed).
16978
+ */
16979
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
16980
+ /** Rows held per stored tier. */
16981
+ var TierRowsSchema = object({
16982
+ raw: number().int(),
16983
+ "5m": number().int(),
16984
+ "1h": number().int(),
16985
+ "1d": number().int()
16986
+ });
16987
+ var OrphanSeriesSchema = object({
16988
+ seriesId: number().int(),
16989
+ deviceId: number().int(),
16990
+ key: string(),
16991
+ scope: string(),
16992
+ /** The metric's display name; `null` when its metric row is gone too. */
16993
+ displayName: string().nullable(),
16994
+ reason: DeviceHistoryOrphanReasonSchema,
16995
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
16996
+ missingSince: number().nullable(),
16997
+ firstTs: number(),
16998
+ lastTs: number(),
16999
+ rows: TierRowsSchema
17000
+ });
17001
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17002
+ "not-found",
17003
+ "not-orphan",
17004
+ "failed"
17005
+ ]);
17006
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17007
+ seriesId: number().int(),
17008
+ ok: literal(true),
17009
+ deleted: TierRowsSchema
17010
+ }), object({
17011
+ seriesId: number().int(),
17012
+ ok: literal(false),
17013
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17014
+ })]);
17015
+ var OrphanListSchema = object({
17016
+ series: array(OrphanSeriesSchema).readonly(),
17017
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17018
+ truncated: boolean()
17019
+ });
16966
17020
  var DeviceHistoryStatusSchema = object({
16967
17021
  startedAt: number(),
16968
17022
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17060,7 +17114,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17060
17114
  }), object({ enabled: boolean() }), {
17061
17115
  kind: "mutation",
17062
17116
  auth: "admin"
17063
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17117
+ }), 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() }), {
17118
+ kind: "mutation",
17119
+ auth: "admin"
17120
+ });
17064
17121
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17065
17122
  object({ state: literal("absent") }),
17066
17123
  object({
@@ -47729,7 +47786,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47729
47786
  modelId: string()
47730
47787
  }),
47731
47788
  object({ kind: literal("cpu-device") }),
47732
- object({ kind: literal("coral-untouched") }),
47733
47789
  object({ kind: literal("device-disabled") }),
47734
47790
  object({ kind: literal("device-unavailable") }),
47735
47791
  object({ kind: literal("node-offline") }),
@@ -47827,11 +47883,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
47827
47883
  kind: literal("detector-store-unreadable"),
47828
47884
  error: string()
47829
47885
  }),
47830
- object({
47831
- kind: literal("coral-enabled"),
47832
- nodeId: string(),
47833
- deviceKey: string()
47834
- }),
47835
47886
  object({
47836
47887
  kind: literal("custom-pin-kept"),
47837
47888
  nodeId: string(),
@@ -54373,17 +54424,69 @@ object({
54373
54424
  });
54374
54425
  DeviceType.Sensor;
54375
54426
  /**
54376
- * Generic device-consumables capability — surfaces a device's
54377
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54378
- * descaling cycles, …) with their remaining life and an optional
54379
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54380
- * device tracks consumables can register it; the cap declares no
54381
- * vocabulary of its own — the provider names each item verbatim.
54427
+ * Generic device-consumables capability — the ONE place a device reports what
54428
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54429
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54430
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54431
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54432
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54433
+ * its device tracks consumables registers it; the provider names each item
54434
+ * verbatim and says which `kind` it is.
54435
+ *
54436
+ * The admin UI renders it as ONE collapsible section directly under the
54437
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54438
+ * this cap — never drawn by a device type's hero card itself (D915).
54382
54439
  *
54383
54440
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54384
54441
  * provider populates it by guessing (no HA inference). The UI renders a
54385
54442
  * "No consumables reported" placeholder when `items` is empty.
54386
54443
  */
54444
+ /**
54445
+ * What an item IS, which decides which direction is bad:
54446
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54447
+ * - `supply` — something the device draws from (clean water, detergent,
54448
+ * salt, rinse aid); low or empty is bad.
54449
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54450
+ * bad.
54451
+ * Absent = `wear`.
54452
+ */
54453
+ var ConsumableKindSchema = _enum([
54454
+ "wear",
54455
+ "supply",
54456
+ "waste"
54457
+ ]);
54458
+ /**
54459
+ * What an item LOOKS like, which decides how a client draws it — independent
54460
+ * of `kind`, which decides which direction is bad:
54461
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54462
+ * remaining time and a reset.
54463
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54464
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54465
+ * a stepped level and "refill".
54466
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54467
+ * that warns when full.
54468
+ * Absent = derived from the kind ({@link consumableFormOf}).
54469
+ */
54470
+ var ConsumableFormSchema = _enum([
54471
+ "part",
54472
+ "tank",
54473
+ "product",
54474
+ "bin"
54475
+ ]);
54476
+ /** The provider's own discrete verdict on an item. */
54477
+ var ConsumableStatusSchema = _enum([
54478
+ "ok",
54479
+ "low",
54480
+ "empty",
54481
+ "full",
54482
+ "replace"
54483
+ ]);
54484
+ _enum([
54485
+ "ok",
54486
+ "low",
54487
+ "empty",
54488
+ "full"
54489
+ ]);
54387
54490
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54388
54491
  * each. */
54389
54492
  var ConsumableRemainingUnitSchema = _enum([
@@ -54403,10 +54506,14 @@ var ConsumablesStatusSchema = object({
54403
54506
  key: string().min(1),
54404
54507
  /** Display name. */
54405
54508
  label: string().min(1),
54406
- /** Remaining life % when known (0..100). */
54509
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54407
54510
  level: number().min(0).max(100).nullable(),
54408
- /** Discrete state when known (binary mode). */
54409
- status: _enum(["ok", "replace"]).nullable(),
54511
+ /** The provider's discrete verdict when known (binary mode). */
54512
+ status: ConsumableStatusSchema.nullable(),
54513
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54514
+ kind: ConsumableKindSchema.optional(),
54515
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54516
+ form: ConsumableFormSchema.optional(),
54410
54517
  /** Ms epoch of the last replace, when known. */
54411
54518
  lastResetAt: number().nullable(),
54412
54519
  /** Whether `reset()` is meaningful for this item. */
@@ -54641,8 +54748,9 @@ object({
54641
54748
  status: DeviceStatusSchema
54642
54749
  });
54643
54750
  /**
54644
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54645
- * consumable levels (salt, rinse aid) and common program options.
54751
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54752
+ * common program options. Salt and rinse aid are NOT here: they are items of
54753
+ * the device's `consumables` cap, like every other device's (D915).
54646
54754
  *
54647
54755
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54648
54756
  * by any integration that exposes the same program / option surface.
@@ -54690,11 +54798,6 @@ var DishwasherAvailabilitySchema = _enum([
54690
54798
  "offline",
54691
54799
  "description-missing"
54692
54800
  ]);
54693
- var DishwasherConsumableLevelSchema = _enum([
54694
- "ok",
54695
- "low",
54696
- "empty"
54697
- ]);
54698
54801
  object({
54699
54802
  availability: DishwasherAvailabilitySchema,
54700
54803
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54727,8 +54830,6 @@ object({
54727
54830
  powerOn: boolean().nullable(),
54728
54831
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54729
54832
  powerState: string().nullable(),
54730
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54731
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54732
54833
  /**
54733
54834
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54734
54835
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61603,60 +61704,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61603
61704
  auth: "admin",
61604
61705
  access: "delete"
61605
61706
  });
61606
- /**
61607
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61608
- * cleaning lifecycle plus a return-to-base / locate surface and an
61609
- * optional fan-speed selector.
61610
- *
61611
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61612
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61613
- * (0..100) is nullable — some vacuums don't report a battery
61614
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61615
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61616
- * tokens the hardware accepts so the UI renders only supported choices.
61617
- *
61618
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61619
- * validates it against the vacuum's own list. `locate` triggers the
61620
- * find-me chirp; `returnToBase` sends it home.
61621
- *
61622
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61623
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61624
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61625
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61626
- * only when the device has no such tank at all, and use a `TankStatus`
61627
- * with both inner fields `null` when the tank exists but its level is
61628
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61629
- * so the HA provider leaves all four `null`.
61630
- */
61631
- var VacuumStateSchema = _enum([
61632
- "idle",
61633
- "cleaning",
61634
- "paused",
61635
- "returning",
61636
- "docked",
61637
- "drying",
61638
- "error"
61639
- ]);
61640
- /**
61641
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61642
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61643
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61644
- * level is currently unknown; the OWNING field being `null` means the
61645
- * hardware has no such tank at all.
61646
- */
61647
- var TankStatusSchema = object({
61648
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61649
- level: number().min(0).max(100).nullable(),
61650
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61651
- status: _enum([
61652
- "ok",
61653
- "low",
61654
- "full"
61655
- ]).nullable()
61656
- });
61657
61707
  object({
61658
61708
  /** Lifecycle state of the vacuum. */
61659
- state: VacuumStateSchema,
61709
+ state: _enum([
61710
+ "idle",
61711
+ "cleaning",
61712
+ "paused",
61713
+ "returning",
61714
+ "docked",
61715
+ "drying",
61716
+ "error"
61717
+ ]),
61660
61718
  /** 0..100 battery percentage. Null when the device has no battery
61661
61719
  * reading. */
61662
61720
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61665,14 +61723,6 @@ object({
61665
61723
  fanSpeed: string().nullable(),
61666
61724
  /** Speed tokens the hardware accepts — drives the UI selector. */
61667
61725
  availableFanSpeeds: array(string()),
61668
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61669
- cleanWater: TankStatusSchema.nullable(),
61670
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61671
- dirtyWater: TankStatusSchema.nullable(),
61672
- /** Detergent tank. Null when the hardware has no detergent tank. */
61673
- detergent: TankStatusSchema.nullable(),
61674
- /** Dust bin. Null when the hardware has no dust bin. */
61675
- dustBin: TankStatusSchema.nullable(),
61676
61726
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61677
61727
  progressPercent: number().min(0).max(100).nullable(),
61678
61728
  /** Current error code (0 / null = no error). */
@@ -65038,6 +65088,12 @@ Object.freeze({
65038
65088
  addonId: null,
65039
65089
  access: "create"
65040
65090
  },
65091
+ "deviceHistory.deleteOrphanSeries": {
65092
+ capName: "device-history",
65093
+ capScope: "system",
65094
+ addonId: null,
65095
+ access: "delete"
65096
+ },
65041
65097
  "deviceHistory.getDeviceEnabled": {
65042
65098
  capName: "device-history",
65043
65099
  capScope: "system",
@@ -65056,6 +65112,12 @@ Object.freeze({
65056
65112
  addonId: null,
65057
65113
  access: "view"
65058
65114
  },
65115
+ "deviceHistory.listOrphanSeries": {
65116
+ capName: "device-history",
65117
+ capScope: "system",
65118
+ addonId: null,
65119
+ access: "view"
65120
+ },
65059
65121
  "deviceHistory.listSeries": {
65060
65122
  capName: "device-history",
65061
65123
  capScope: "system",
@@ -75127,7 +75189,7 @@ var STATE_SUMMARY_VARS = [
75127
75189
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75128
75190
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75129
75191
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75130
- ([...RULE_TEXT], [...CONSUMABLE]),
75192
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75131
75193
  ([...RULE_TEXT], [...TANK]),
75132
75194
  [...RULE_TEXT],
75133
75195
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.144",
3
+ "version": "1.2.146",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",