@camstack/addon-smtp-nodemailer 1.2.137 → 1.2.139

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.
@@ -5468,7 +5468,7 @@ var ZodIssueCode = {
5468
5468
  var ZodFirstPartyTypeKind;
5469
5469
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5470
5470
  //#endregion
5471
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5471
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5472
5472
  /**
5473
5473
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5474
5474
  * window to float samples (D455).
@@ -8293,7 +8293,11 @@ var ContributionSectionSchema = object({
8293
8293
  literal(4)
8294
8294
  ]).optional(),
8295
8295
  tab: string().optional(),
8296
- location: _enum(["settings", "top-tab"]).optional(),
8296
+ location: _enum([
8297
+ "settings",
8298
+ "top-tab",
8299
+ "hero"
8300
+ ]).optional(),
8297
8301
  order: number().optional(),
8298
8302
  fields: array(any())
8299
8303
  });
@@ -13212,7 +13216,11 @@ var ConfigSectionWithValuesSchema = object({
13212
13216
  literal(4)
13213
13217
  ]).optional(),
13214
13218
  tab: string().optional(),
13215
- location: _enum(["settings", "top-tab"]).optional(),
13219
+ location: _enum([
13220
+ "settings",
13221
+ "top-tab",
13222
+ "hero"
13223
+ ]).optional(),
13216
13224
  order: number().optional(),
13217
13225
  fields: array(any())
13218
13226
  });
@@ -16986,6 +16994,52 @@ var TierStatusSchema = object({
16986
16994
  countedAt: number().nullable()
16987
16995
  });
16988
16996
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16997
+ /**
16998
+ * Why a series is orphan. `device-gone`: its device is absent from the
16999
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17000
+ * key is declared by no capability any more (a field a cap removed).
17001
+ */
17002
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17003
+ /** Rows held per stored tier. */
17004
+ var TierRowsSchema = object({
17005
+ raw: number().int(),
17006
+ "5m": number().int(),
17007
+ "1h": number().int(),
17008
+ "1d": number().int()
17009
+ });
17010
+ var OrphanSeriesSchema = object({
17011
+ seriesId: number().int(),
17012
+ deviceId: number().int(),
17013
+ key: string(),
17014
+ scope: string(),
17015
+ /** The metric's display name; `null` when its metric row is gone too. */
17016
+ displayName: string().nullable(),
17017
+ reason: DeviceHistoryOrphanReasonSchema,
17018
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17019
+ missingSince: number().nullable(),
17020
+ firstTs: number(),
17021
+ lastTs: number(),
17022
+ rows: TierRowsSchema
17023
+ });
17024
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17025
+ "not-found",
17026
+ "not-orphan",
17027
+ "failed"
17028
+ ]);
17029
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17030
+ seriesId: number().int(),
17031
+ ok: literal(true),
17032
+ deleted: TierRowsSchema
17033
+ }), object({
17034
+ seriesId: number().int(),
17035
+ ok: literal(false),
17036
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17037
+ })]);
17038
+ var OrphanListSchema = object({
17039
+ series: array(OrphanSeriesSchema).readonly(),
17040
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17041
+ truncated: boolean()
17042
+ });
16989
17043
  var DeviceHistoryStatusSchema = object({
16990
17044
  startedAt: number(),
16991
17045
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17083,7 +17137,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17083
17137
  }), object({ enabled: boolean() }), {
17084
17138
  kind: "mutation",
17085
17139
  auth: "admin"
17086
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17140
+ }), 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() }), {
17141
+ kind: "mutation",
17142
+ auth: "admin"
17143
+ });
17087
17144
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17088
17145
  object({ state: literal("absent") }),
17089
17146
  object({
@@ -47558,7 +47615,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47558
47615
  modelId: string()
47559
47616
  }),
47560
47617
  object({ kind: literal("cpu-device") }),
47561
- object({ kind: literal("coral-untouched") }),
47562
47618
  object({ kind: literal("device-disabled") }),
47563
47619
  object({ kind: literal("device-unavailable") }),
47564
47620
  object({ kind: literal("node-offline") }),
@@ -47656,11 +47712,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
47656
47712
  kind: literal("detector-store-unreadable"),
47657
47713
  error: string()
47658
47714
  }),
47659
- object({
47660
- kind: literal("coral-enabled"),
47661
- nodeId: string(),
47662
- deviceKey: string()
47663
- }),
47664
47715
  object({
47665
47716
  kind: literal("custom-pin-kept"),
47666
47717
  nodeId: string(),
@@ -54111,17 +54162,69 @@ object({
54111
54162
  });
54112
54163
  DeviceType.Sensor;
54113
54164
  /**
54114
- * Generic device-consumables capability — surfaces a device's
54115
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54116
- * descaling cycles, …) with their remaining life and an optional
54117
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54118
- * device tracks consumables can register it; the cap declares no
54119
- * vocabulary of its own — the provider names each item verbatim.
54165
+ * Generic device-consumables capability — the ONE place a device reports what
54166
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54167
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54168
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54169
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54170
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54171
+ * its device tracks consumables registers it; the provider names each item
54172
+ * verbatim and says which `kind` it is.
54173
+ *
54174
+ * The admin UI renders it as ONE collapsible section directly under the
54175
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54176
+ * this cap — never drawn by a device type's hero card itself (D915).
54120
54177
  *
54121
54178
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54122
54179
  * provider populates it by guessing (no HA inference). The UI renders a
54123
54180
  * "No consumables reported" placeholder when `items` is empty.
54124
54181
  */
54182
+ /**
54183
+ * What an item IS, which decides which direction is bad:
54184
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54185
+ * - `supply` — something the device draws from (clean water, detergent,
54186
+ * salt, rinse aid); low or empty is bad.
54187
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54188
+ * bad.
54189
+ * Absent = `wear`.
54190
+ */
54191
+ var ConsumableKindSchema = _enum([
54192
+ "wear",
54193
+ "supply",
54194
+ "waste"
54195
+ ]);
54196
+ /**
54197
+ * What an item LOOKS like, which decides how a client draws it — independent
54198
+ * of `kind`, which decides which direction is bad:
54199
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54200
+ * remaining time and a reset.
54201
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54202
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54203
+ * a stepped level and "refill".
54204
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54205
+ * that warns when full.
54206
+ * Absent = derived from the kind ({@link consumableFormOf}).
54207
+ */
54208
+ var ConsumableFormSchema = _enum([
54209
+ "part",
54210
+ "tank",
54211
+ "product",
54212
+ "bin"
54213
+ ]);
54214
+ /** The provider's own discrete verdict on an item. */
54215
+ var ConsumableStatusSchema = _enum([
54216
+ "ok",
54217
+ "low",
54218
+ "empty",
54219
+ "full",
54220
+ "replace"
54221
+ ]);
54222
+ _enum([
54223
+ "ok",
54224
+ "low",
54225
+ "empty",
54226
+ "full"
54227
+ ]);
54125
54228
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54126
54229
  * each. */
54127
54230
  var ConsumableRemainingUnitSchema = _enum([
@@ -54141,10 +54244,14 @@ var ConsumablesStatusSchema = object({
54141
54244
  key: string().min(1),
54142
54245
  /** Display name. */
54143
54246
  label: string().min(1),
54144
- /** Remaining life % when known (0..100). */
54247
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54145
54248
  level: number().min(0).max(100).nullable(),
54146
- /** Discrete state when known (binary mode). */
54147
- status: _enum(["ok", "replace"]).nullable(),
54249
+ /** The provider's discrete verdict when known (binary mode). */
54250
+ status: ConsumableStatusSchema.nullable(),
54251
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54252
+ kind: ConsumableKindSchema.optional(),
54253
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54254
+ form: ConsumableFormSchema.optional(),
54148
54255
  /** Ms epoch of the last replace, when known. */
54149
54256
  lastResetAt: number().nullable(),
54150
54257
  /** Whether `reset()` is meaningful for this item. */
@@ -54379,8 +54486,9 @@ object({
54379
54486
  status: DeviceStatusSchema
54380
54487
  });
54381
54488
  /**
54382
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54383
- * consumable levels (salt, rinse aid) and common program options.
54489
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54490
+ * common program options. Salt and rinse aid are NOT here: they are items of
54491
+ * the device's `consumables` cap, like every other device's (D915).
54384
54492
  *
54385
54493
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54386
54494
  * by any integration that exposes the same program / option surface.
@@ -54428,11 +54536,6 @@ var DishwasherAvailabilitySchema = _enum([
54428
54536
  "offline",
54429
54537
  "description-missing"
54430
54538
  ]);
54431
- var DishwasherConsumableLevelSchema = _enum([
54432
- "ok",
54433
- "low",
54434
- "empty"
54435
- ]);
54436
54539
  object({
54437
54540
  availability: DishwasherAvailabilitySchema,
54438
54541
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54465,8 +54568,6 @@ object({
54465
54568
  powerOn: boolean().nullable(),
54466
54569
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54467
54570
  powerState: string().nullable(),
54468
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54469
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54470
54571
  /**
54471
54572
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54472
54573
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61249,60 +61350,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61249
61350
  auth: "admin",
61250
61351
  access: "delete"
61251
61352
  });
61252
- /**
61253
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61254
- * cleaning lifecycle plus a return-to-base / locate surface and an
61255
- * optional fan-speed selector.
61256
- *
61257
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61258
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61259
- * (0..100) is nullable — some vacuums don't report a battery
61260
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61261
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61262
- * tokens the hardware accepts so the UI renders only supported choices.
61263
- *
61264
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61265
- * validates it against the vacuum's own list. `locate` triggers the
61266
- * find-me chirp; `returnToBase` sends it home.
61267
- *
61268
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61269
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61270
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61271
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61272
- * only when the device has no such tank at all, and use a `TankStatus`
61273
- * with both inner fields `null` when the tank exists but its level is
61274
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61275
- * so the HA provider leaves all four `null`.
61276
- */
61277
- var VacuumStateSchema = _enum([
61278
- "idle",
61279
- "cleaning",
61280
- "paused",
61281
- "returning",
61282
- "docked",
61283
- "drying",
61284
- "error"
61285
- ]);
61286
- /**
61287
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61288
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61289
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61290
- * level is currently unknown; the OWNING field being `null` means the
61291
- * hardware has no such tank at all.
61292
- */
61293
- var TankStatusSchema = object({
61294
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61295
- level: number().min(0).max(100).nullable(),
61296
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61297
- status: _enum([
61298
- "ok",
61299
- "low",
61300
- "full"
61301
- ]).nullable()
61302
- });
61303
61353
  object({
61304
61354
  /** Lifecycle state of the vacuum. */
61305
- state: VacuumStateSchema,
61355
+ state: _enum([
61356
+ "idle",
61357
+ "cleaning",
61358
+ "paused",
61359
+ "returning",
61360
+ "docked",
61361
+ "drying",
61362
+ "error"
61363
+ ]),
61306
61364
  /** 0..100 battery percentage. Null when the device has no battery
61307
61365
  * reading. */
61308
61366
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61311,14 +61369,6 @@ object({
61311
61369
  fanSpeed: string().nullable(),
61312
61370
  /** Speed tokens the hardware accepts — drives the UI selector. */
61313
61371
  availableFanSpeeds: array(string()),
61314
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61315
- cleanWater: TankStatusSchema.nullable(),
61316
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61317
- dirtyWater: TankStatusSchema.nullable(),
61318
- /** Detergent tank. Null when the hardware has no detergent tank. */
61319
- detergent: TankStatusSchema.nullable(),
61320
- /** Dust bin. Null when the hardware has no dust bin. */
61321
- dustBin: TankStatusSchema.nullable(),
61322
61372
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61323
61373
  progressPercent: number().min(0).max(100).nullable(),
61324
61374
  /** Current error code (0 / null = no error). */
@@ -63859,6 +63909,12 @@ Object.freeze({
63859
63909
  addonId: null,
63860
63910
  access: "create"
63861
63911
  },
63912
+ "deviceHistory.deleteOrphanSeries": {
63913
+ capName: "device-history",
63914
+ capScope: "system",
63915
+ addonId: null,
63916
+ access: "delete"
63917
+ },
63862
63918
  "deviceHistory.getDeviceEnabled": {
63863
63919
  capName: "device-history",
63864
63920
  capScope: "system",
@@ -63877,6 +63933,12 @@ Object.freeze({
63877
63933
  addonId: null,
63878
63934
  access: "view"
63879
63935
  },
63936
+ "deviceHistory.listOrphanSeries": {
63937
+ capName: "device-history",
63938
+ capScope: "system",
63939
+ addonId: null,
63940
+ access: "view"
63941
+ },
63880
63942
  "deviceHistory.listSeries": {
63881
63943
  capName: "device-history",
63882
63944
  capScope: "system",
@@ -73882,7 +73944,7 @@ var STATE_SUMMARY_VARS = [
73882
73944
  ([...RULE_TEXT], [...COMBINED_ALARM]),
73883
73945
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
73884
73946
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
73885
- ([...RULE_TEXT], [...CONSUMABLE]),
73947
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
73886
73948
  ([...RULE_TEXT], [...TANK]),
73887
73949
  [...RULE_TEXT],
73888
73950
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -5466,7 +5466,7 @@ var ZodIssueCode = {
5466
5466
  var ZodFirstPartyTypeKind;
5467
5467
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5468
5468
  //#endregion
5469
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5469
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5470
5470
  /**
5471
5471
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5472
5472
  * window to float samples (D455).
@@ -8291,7 +8291,11 @@ var ContributionSectionSchema = object({
8291
8291
  literal(4)
8292
8292
  ]).optional(),
8293
8293
  tab: string().optional(),
8294
- location: _enum(["settings", "top-tab"]).optional(),
8294
+ location: _enum([
8295
+ "settings",
8296
+ "top-tab",
8297
+ "hero"
8298
+ ]).optional(),
8295
8299
  order: number().optional(),
8296
8300
  fields: array(any())
8297
8301
  });
@@ -13210,7 +13214,11 @@ var ConfigSectionWithValuesSchema = object({
13210
13214
  literal(4)
13211
13215
  ]).optional(),
13212
13216
  tab: string().optional(),
13213
- location: _enum(["settings", "top-tab"]).optional(),
13217
+ location: _enum([
13218
+ "settings",
13219
+ "top-tab",
13220
+ "hero"
13221
+ ]).optional(),
13214
13222
  order: number().optional(),
13215
13223
  fields: array(any())
13216
13224
  });
@@ -16984,6 +16992,52 @@ var TierStatusSchema = object({
16984
16992
  countedAt: number().nullable()
16985
16993
  });
16986
16994
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16995
+ /**
16996
+ * Why a series is orphan. `device-gone`: its device is absent from the
16997
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
16998
+ * key is declared by no capability any more (a field a cap removed).
16999
+ */
17000
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17001
+ /** Rows held per stored tier. */
17002
+ var TierRowsSchema = object({
17003
+ raw: number().int(),
17004
+ "5m": number().int(),
17005
+ "1h": number().int(),
17006
+ "1d": number().int()
17007
+ });
17008
+ var OrphanSeriesSchema = object({
17009
+ seriesId: number().int(),
17010
+ deviceId: number().int(),
17011
+ key: string(),
17012
+ scope: string(),
17013
+ /** The metric's display name; `null` when its metric row is gone too. */
17014
+ displayName: string().nullable(),
17015
+ reason: DeviceHistoryOrphanReasonSchema,
17016
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17017
+ missingSince: number().nullable(),
17018
+ firstTs: number(),
17019
+ lastTs: number(),
17020
+ rows: TierRowsSchema
17021
+ });
17022
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17023
+ "not-found",
17024
+ "not-orphan",
17025
+ "failed"
17026
+ ]);
17027
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17028
+ seriesId: number().int(),
17029
+ ok: literal(true),
17030
+ deleted: TierRowsSchema
17031
+ }), object({
17032
+ seriesId: number().int(),
17033
+ ok: literal(false),
17034
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17035
+ })]);
17036
+ var OrphanListSchema = object({
17037
+ series: array(OrphanSeriesSchema).readonly(),
17038
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17039
+ truncated: boolean()
17040
+ });
16987
17041
  var DeviceHistoryStatusSchema = object({
16988
17042
  startedAt: number(),
16989
17043
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17081,7 +17135,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17081
17135
  }), object({ enabled: boolean() }), {
17082
17136
  kind: "mutation",
17083
17137
  auth: "admin"
17084
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17138
+ }), 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() }), {
17139
+ kind: "mutation",
17140
+ auth: "admin"
17141
+ });
17085
17142
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17086
17143
  object({ state: literal("absent") }),
17087
17144
  object({
@@ -47556,7 +47613,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47556
47613
  modelId: string()
47557
47614
  }),
47558
47615
  object({ kind: literal("cpu-device") }),
47559
- object({ kind: literal("coral-untouched") }),
47560
47616
  object({ kind: literal("device-disabled") }),
47561
47617
  object({ kind: literal("device-unavailable") }),
47562
47618
  object({ kind: literal("node-offline") }),
@@ -47654,11 +47710,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
47654
47710
  kind: literal("detector-store-unreadable"),
47655
47711
  error: string()
47656
47712
  }),
47657
- object({
47658
- kind: literal("coral-enabled"),
47659
- nodeId: string(),
47660
- deviceKey: string()
47661
- }),
47662
47713
  object({
47663
47714
  kind: literal("custom-pin-kept"),
47664
47715
  nodeId: string(),
@@ -54109,17 +54160,69 @@ object({
54109
54160
  });
54110
54161
  DeviceType.Sensor;
54111
54162
  /**
54112
- * Generic device-consumables capability — surfaces a device's
54113
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54114
- * descaling cycles, …) with their remaining life and an optional
54115
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54116
- * device tracks consumables can register it; the cap declares no
54117
- * vocabulary of its own — the provider names each item verbatim.
54163
+ * Generic device-consumables capability — the ONE place a device reports what
54164
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54165
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54166
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54167
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54168
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54169
+ * its device tracks consumables registers it; the provider names each item
54170
+ * verbatim and says which `kind` it is.
54171
+ *
54172
+ * The admin UI renders it as ONE collapsible section directly under the
54173
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54174
+ * this cap — never drawn by a device type's hero card itself (D915).
54118
54175
  *
54119
54176
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54120
54177
  * provider populates it by guessing (no HA inference). The UI renders a
54121
54178
  * "No consumables reported" placeholder when `items` is empty.
54122
54179
  */
54180
+ /**
54181
+ * What an item IS, which decides which direction is bad:
54182
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54183
+ * - `supply` — something the device draws from (clean water, detergent,
54184
+ * salt, rinse aid); low or empty is bad.
54185
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54186
+ * bad.
54187
+ * Absent = `wear`.
54188
+ */
54189
+ var ConsumableKindSchema = _enum([
54190
+ "wear",
54191
+ "supply",
54192
+ "waste"
54193
+ ]);
54194
+ /**
54195
+ * What an item LOOKS like, which decides how a client draws it — independent
54196
+ * of `kind`, which decides which direction is bad:
54197
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54198
+ * remaining time and a reset.
54199
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54200
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54201
+ * a stepped level and "refill".
54202
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54203
+ * that warns when full.
54204
+ * Absent = derived from the kind ({@link consumableFormOf}).
54205
+ */
54206
+ var ConsumableFormSchema = _enum([
54207
+ "part",
54208
+ "tank",
54209
+ "product",
54210
+ "bin"
54211
+ ]);
54212
+ /** The provider's own discrete verdict on an item. */
54213
+ var ConsumableStatusSchema = _enum([
54214
+ "ok",
54215
+ "low",
54216
+ "empty",
54217
+ "full",
54218
+ "replace"
54219
+ ]);
54220
+ _enum([
54221
+ "ok",
54222
+ "low",
54223
+ "empty",
54224
+ "full"
54225
+ ]);
54123
54226
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54124
54227
  * each. */
54125
54228
  var ConsumableRemainingUnitSchema = _enum([
@@ -54139,10 +54242,14 @@ var ConsumablesStatusSchema = object({
54139
54242
  key: string().min(1),
54140
54243
  /** Display name. */
54141
54244
  label: string().min(1),
54142
- /** Remaining life % when known (0..100). */
54245
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54143
54246
  level: number().min(0).max(100).nullable(),
54144
- /** Discrete state when known (binary mode). */
54145
- status: _enum(["ok", "replace"]).nullable(),
54247
+ /** The provider's discrete verdict when known (binary mode). */
54248
+ status: ConsumableStatusSchema.nullable(),
54249
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54250
+ kind: ConsumableKindSchema.optional(),
54251
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54252
+ form: ConsumableFormSchema.optional(),
54146
54253
  /** Ms epoch of the last replace, when known. */
54147
54254
  lastResetAt: number().nullable(),
54148
54255
  /** Whether `reset()` is meaningful for this item. */
@@ -54377,8 +54484,9 @@ object({
54377
54484
  status: DeviceStatusSchema
54378
54485
  });
54379
54486
  /**
54380
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54381
- * consumable levels (salt, rinse aid) and common program options.
54487
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54488
+ * common program options. Salt and rinse aid are NOT here: they are items of
54489
+ * the device's `consumables` cap, like every other device's (D915).
54382
54490
  *
54383
54491
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54384
54492
  * by any integration that exposes the same program / option surface.
@@ -54426,11 +54534,6 @@ var DishwasherAvailabilitySchema = _enum([
54426
54534
  "offline",
54427
54535
  "description-missing"
54428
54536
  ]);
54429
- var DishwasherConsumableLevelSchema = _enum([
54430
- "ok",
54431
- "low",
54432
- "empty"
54433
- ]);
54434
54537
  object({
54435
54538
  availability: DishwasherAvailabilitySchema,
54436
54539
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54463,8 +54566,6 @@ object({
54463
54566
  powerOn: boolean().nullable(),
54464
54567
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54465
54568
  powerState: string().nullable(),
54466
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54467
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54468
54569
  /**
54469
54570
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54470
54571
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61247,60 +61348,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61247
61348
  auth: "admin",
61248
61349
  access: "delete"
61249
61350
  });
61250
- /**
61251
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61252
- * cleaning lifecycle plus a return-to-base / locate surface and an
61253
- * optional fan-speed selector.
61254
- *
61255
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61256
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61257
- * (0..100) is nullable — some vacuums don't report a battery
61258
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61259
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61260
- * tokens the hardware accepts so the UI renders only supported choices.
61261
- *
61262
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61263
- * validates it against the vacuum's own list. `locate` triggers the
61264
- * find-me chirp; `returnToBase` sends it home.
61265
- *
61266
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61267
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61268
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61269
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61270
- * only when the device has no such tank at all, and use a `TankStatus`
61271
- * with both inner fields `null` when the tank exists but its level is
61272
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61273
- * so the HA provider leaves all four `null`.
61274
- */
61275
- var VacuumStateSchema = _enum([
61276
- "idle",
61277
- "cleaning",
61278
- "paused",
61279
- "returning",
61280
- "docked",
61281
- "drying",
61282
- "error"
61283
- ]);
61284
- /**
61285
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61286
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61287
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61288
- * level is currently unknown; the OWNING field being `null` means the
61289
- * hardware has no such tank at all.
61290
- */
61291
- var TankStatusSchema = object({
61292
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61293
- level: number().min(0).max(100).nullable(),
61294
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61295
- status: _enum([
61296
- "ok",
61297
- "low",
61298
- "full"
61299
- ]).nullable()
61300
- });
61301
61351
  object({
61302
61352
  /** Lifecycle state of the vacuum. */
61303
- state: VacuumStateSchema,
61353
+ state: _enum([
61354
+ "idle",
61355
+ "cleaning",
61356
+ "paused",
61357
+ "returning",
61358
+ "docked",
61359
+ "drying",
61360
+ "error"
61361
+ ]),
61304
61362
  /** 0..100 battery percentage. Null when the device has no battery
61305
61363
  * reading. */
61306
61364
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61309,14 +61367,6 @@ object({
61309
61367
  fanSpeed: string().nullable(),
61310
61368
  /** Speed tokens the hardware accepts — drives the UI selector. */
61311
61369
  availableFanSpeeds: array(string()),
61312
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61313
- cleanWater: TankStatusSchema.nullable(),
61314
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61315
- dirtyWater: TankStatusSchema.nullable(),
61316
- /** Detergent tank. Null when the hardware has no detergent tank. */
61317
- detergent: TankStatusSchema.nullable(),
61318
- /** Dust bin. Null when the hardware has no dust bin. */
61319
- dustBin: TankStatusSchema.nullable(),
61320
61370
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61321
61371
  progressPercent: number().min(0).max(100).nullable(),
61322
61372
  /** Current error code (0 / null = no error). */
@@ -63857,6 +63907,12 @@ Object.freeze({
63857
63907
  addonId: null,
63858
63908
  access: "create"
63859
63909
  },
63910
+ "deviceHistory.deleteOrphanSeries": {
63911
+ capName: "device-history",
63912
+ capScope: "system",
63913
+ addonId: null,
63914
+ access: "delete"
63915
+ },
63860
63916
  "deviceHistory.getDeviceEnabled": {
63861
63917
  capName: "device-history",
63862
63918
  capScope: "system",
@@ -63875,6 +63931,12 @@ Object.freeze({
63875
63931
  addonId: null,
63876
63932
  access: "view"
63877
63933
  },
63934
+ "deviceHistory.listOrphanSeries": {
63935
+ capName: "device-history",
63936
+ capScope: "system",
63937
+ addonId: null,
63938
+ access: "view"
63939
+ },
63878
63940
  "deviceHistory.listSeries": {
63879
63941
  capName: "device-history",
63880
63942
  capScope: "system",
@@ -73880,7 +73942,7 @@ var STATE_SUMMARY_VARS = [
73880
73942
  ([...RULE_TEXT], [...COMBINED_ALARM]),
73881
73943
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
73882
73944
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
73883
- ([...RULE_TEXT], [...CONSUMABLE]),
73945
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
73884
73946
  ([...RULE_TEXT], [...TANK]),
73885
73947
  [...RULE_TEXT],
73886
73948
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-smtp-nodemailer",
3
- "version": "1.2.137",
3
+ "version": "1.2.139",
4
4
  "description": "SMTP email provider addon for CamStack — wraps `nodemailer` and registers a `smtp-provider` cap collection entry. Used by notifier addons.",
5
5
  "keywords": [
6
6
  "camstack",