@camstack/addon-export-google 0.1.108 → 0.1.110

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.
@@ -5509,7 +5509,7 @@ var ZodIssueCode = {
5509
5509
  var ZodFirstPartyTypeKind;
5510
5510
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5511
5511
  //#endregion
5512
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5512
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5513
5513
  /**
5514
5514
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5515
5515
  * window to float samples (D455).
@@ -8334,7 +8334,11 @@ var ContributionSectionSchema = object({
8334
8334
  literal(4)
8335
8335
  ]).optional(),
8336
8336
  tab: string().optional(),
8337
- location: _enum(["settings", "top-tab"]).optional(),
8337
+ location: _enum([
8338
+ "settings",
8339
+ "top-tab",
8340
+ "hero"
8341
+ ]).optional(),
8338
8342
  order: number().optional(),
8339
8343
  fields: array(any())
8340
8344
  });
@@ -13428,7 +13432,11 @@ var ConfigSectionWithValuesSchema = object({
13428
13432
  literal(4)
13429
13433
  ]).optional(),
13430
13434
  tab: string().optional(),
13431
- location: _enum(["settings", "top-tab"]).optional(),
13435
+ location: _enum([
13436
+ "settings",
13437
+ "top-tab",
13438
+ "hero"
13439
+ ]).optional(),
13432
13440
  order: number().optional(),
13433
13441
  fields: array(any())
13434
13442
  });
@@ -17202,6 +17210,52 @@ var TierStatusSchema = object({
17202
17210
  countedAt: number().nullable()
17203
17211
  });
17204
17212
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17213
+ /**
17214
+ * Why a series is orphan. `device-gone`: its device is absent from the
17215
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17216
+ * key is declared by no capability any more (a field a cap removed).
17217
+ */
17218
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17219
+ /** Rows held per stored tier. */
17220
+ var TierRowsSchema = object({
17221
+ raw: number().int(),
17222
+ "5m": number().int(),
17223
+ "1h": number().int(),
17224
+ "1d": number().int()
17225
+ });
17226
+ var OrphanSeriesSchema = object({
17227
+ seriesId: number().int(),
17228
+ deviceId: number().int(),
17229
+ key: string(),
17230
+ scope: string(),
17231
+ /** The metric's display name; `null` when its metric row is gone too. */
17232
+ displayName: string().nullable(),
17233
+ reason: DeviceHistoryOrphanReasonSchema,
17234
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17235
+ missingSince: number().nullable(),
17236
+ firstTs: number(),
17237
+ lastTs: number(),
17238
+ rows: TierRowsSchema
17239
+ });
17240
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17241
+ "not-found",
17242
+ "not-orphan",
17243
+ "failed"
17244
+ ]);
17245
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17246
+ seriesId: number().int(),
17247
+ ok: literal(true),
17248
+ deleted: TierRowsSchema
17249
+ }), object({
17250
+ seriesId: number().int(),
17251
+ ok: literal(false),
17252
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17253
+ })]);
17254
+ var OrphanListSchema = object({
17255
+ series: array(OrphanSeriesSchema).readonly(),
17256
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17257
+ truncated: boolean()
17258
+ });
17205
17259
  var DeviceHistoryStatusSchema = object({
17206
17260
  startedAt: number(),
17207
17261
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17299,7 +17353,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17299
17353
  }), object({ enabled: boolean() }), {
17300
17354
  kind: "mutation",
17301
17355
  auth: "admin"
17302
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17356
+ }), 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() }), {
17357
+ kind: "mutation",
17358
+ auth: "admin"
17359
+ });
17303
17360
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17304
17361
  object({ state: literal("absent") }),
17305
17362
  object({
@@ -47815,7 +47872,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47815
47872
  modelId: string()
47816
47873
  }),
47817
47874
  object({ kind: literal("cpu-device") }),
47818
- object({ kind: literal("coral-untouched") }),
47819
47875
  object({ kind: literal("device-disabled") }),
47820
47876
  object({ kind: literal("device-unavailable") }),
47821
47877
  object({ kind: literal("node-offline") }),
@@ -47913,11 +47969,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
47913
47969
  kind: literal("detector-store-unreadable"),
47914
47970
  error: string()
47915
47971
  }),
47916
- object({
47917
- kind: literal("coral-enabled"),
47918
- nodeId: string(),
47919
- deviceKey: string()
47920
- }),
47921
47972
  object({
47922
47973
  kind: literal("custom-pin-kept"),
47923
47974
  nodeId: string(),
@@ -54367,17 +54418,69 @@ object({
54367
54418
  });
54368
54419
  DeviceType.Sensor;
54369
54420
  /**
54370
- * Generic device-consumables capability — surfaces a device's
54371
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54372
- * descaling cycles, …) with their remaining life and an optional
54373
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54374
- * device tracks consumables can register it; the cap declares no
54375
- * vocabulary of its own — the provider names each item verbatim.
54421
+ * Generic device-consumables capability — the ONE place a device reports what
54422
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54423
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54424
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54425
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54426
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54427
+ * its device tracks consumables registers it; the provider names each item
54428
+ * verbatim and says which `kind` it is.
54429
+ *
54430
+ * The admin UI renders it as ONE collapsible section directly under the
54431
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54432
+ * this cap — never drawn by a device type's hero card itself (D915).
54376
54433
  *
54377
54434
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54378
54435
  * provider populates it by guessing (no HA inference). The UI renders a
54379
54436
  * "No consumables reported" placeholder when `items` is empty.
54380
54437
  */
54438
+ /**
54439
+ * What an item IS, which decides which direction is bad:
54440
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54441
+ * - `supply` — something the device draws from (clean water, detergent,
54442
+ * salt, rinse aid); low or empty is bad.
54443
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54444
+ * bad.
54445
+ * Absent = `wear`.
54446
+ */
54447
+ var ConsumableKindSchema = _enum([
54448
+ "wear",
54449
+ "supply",
54450
+ "waste"
54451
+ ]);
54452
+ /**
54453
+ * What an item LOOKS like, which decides how a client draws it — independent
54454
+ * of `kind`, which decides which direction is bad:
54455
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54456
+ * remaining time and a reset.
54457
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54458
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54459
+ * a stepped level and "refill".
54460
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54461
+ * that warns when full.
54462
+ * Absent = derived from the kind ({@link consumableFormOf}).
54463
+ */
54464
+ var ConsumableFormSchema = _enum([
54465
+ "part",
54466
+ "tank",
54467
+ "product",
54468
+ "bin"
54469
+ ]);
54470
+ /** The provider's own discrete verdict on an item. */
54471
+ var ConsumableStatusSchema = _enum([
54472
+ "ok",
54473
+ "low",
54474
+ "empty",
54475
+ "full",
54476
+ "replace"
54477
+ ]);
54478
+ _enum([
54479
+ "ok",
54480
+ "low",
54481
+ "empty",
54482
+ "full"
54483
+ ]);
54381
54484
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54382
54485
  * each. */
54383
54486
  var ConsumableRemainingUnitSchema = _enum([
@@ -54397,10 +54500,14 @@ var ConsumablesStatusSchema = object({
54397
54500
  key: string().min(1),
54398
54501
  /** Display name. */
54399
54502
  label: string().min(1),
54400
- /** Remaining life % when known (0..100). */
54503
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54401
54504
  level: number().min(0).max(100).nullable(),
54402
- /** Discrete state when known (binary mode). */
54403
- status: _enum(["ok", "replace"]).nullable(),
54505
+ /** The provider's discrete verdict when known (binary mode). */
54506
+ status: ConsumableStatusSchema.nullable(),
54507
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54508
+ kind: ConsumableKindSchema.optional(),
54509
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54510
+ form: ConsumableFormSchema.optional(),
54404
54511
  /** Ms epoch of the last replace, when known. */
54405
54512
  lastResetAt: number().nullable(),
54406
54513
  /** Whether `reset()` is meaningful for this item. */
@@ -54635,8 +54742,9 @@ object({
54635
54742
  status: DeviceStatusSchema
54636
54743
  });
54637
54744
  /**
54638
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54639
- * consumable levels (salt, rinse aid) and common program options.
54745
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54746
+ * common program options. Salt and rinse aid are NOT here: they are items of
54747
+ * the device's `consumables` cap, like every other device's (D915).
54640
54748
  *
54641
54749
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54642
54750
  * by any integration that exposes the same program / option surface.
@@ -54684,11 +54792,6 @@ var DishwasherAvailabilitySchema = _enum([
54684
54792
  "offline",
54685
54793
  "description-missing"
54686
54794
  ]);
54687
- var DishwasherConsumableLevelSchema = _enum([
54688
- "ok",
54689
- "low",
54690
- "empty"
54691
- ]);
54692
54795
  object({
54693
54796
  availability: DishwasherAvailabilitySchema,
54694
54797
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54721,8 +54824,6 @@ object({
54721
54824
  powerOn: boolean().nullable(),
54722
54825
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54723
54826
  powerState: string().nullable(),
54724
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54725
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54726
54827
  /**
54727
54828
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54728
54829
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61512,60 +61613,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61512
61613
  auth: "admin",
61513
61614
  access: "delete"
61514
61615
  });
61515
- /**
61516
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61517
- * cleaning lifecycle plus a return-to-base / locate surface and an
61518
- * optional fan-speed selector.
61519
- *
61520
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61521
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61522
- * (0..100) is nullable — some vacuums don't report a battery
61523
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61524
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61525
- * tokens the hardware accepts so the UI renders only supported choices.
61526
- *
61527
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61528
- * validates it against the vacuum's own list. `locate` triggers the
61529
- * find-me chirp; `returnToBase` sends it home.
61530
- *
61531
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61532
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61533
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61534
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61535
- * only when the device has no such tank at all, and use a `TankStatus`
61536
- * with both inner fields `null` when the tank exists but its level is
61537
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61538
- * so the HA provider leaves all four `null`.
61539
- */
61540
- var VacuumStateSchema = _enum([
61541
- "idle",
61542
- "cleaning",
61543
- "paused",
61544
- "returning",
61545
- "docked",
61546
- "drying",
61547
- "error"
61548
- ]);
61549
- /**
61550
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61551
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61552
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61553
- * level is currently unknown; the OWNING field being `null` means the
61554
- * hardware has no such tank at all.
61555
- */
61556
- var TankStatusSchema = object({
61557
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61558
- level: number().min(0).max(100).nullable(),
61559
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61560
- status: _enum([
61561
- "ok",
61562
- "low",
61563
- "full"
61564
- ]).nullable()
61565
- });
61566
61616
  object({
61567
61617
  /** Lifecycle state of the vacuum. */
61568
- state: VacuumStateSchema,
61618
+ state: _enum([
61619
+ "idle",
61620
+ "cleaning",
61621
+ "paused",
61622
+ "returning",
61623
+ "docked",
61624
+ "drying",
61625
+ "error"
61626
+ ]),
61569
61627
  /** 0..100 battery percentage. Null when the device has no battery
61570
61628
  * reading. */
61571
61629
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61574,14 +61632,6 @@ object({
61574
61632
  fanSpeed: string().nullable(),
61575
61633
  /** Speed tokens the hardware accepts — drives the UI selector. */
61576
61634
  availableFanSpeeds: array(string()),
61577
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61578
- cleanWater: TankStatusSchema.nullable(),
61579
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61580
- dirtyWater: TankStatusSchema.nullable(),
61581
- /** Detergent tank. Null when the hardware has no detergent tank. */
61582
- detergent: TankStatusSchema.nullable(),
61583
- /** Dust bin. Null when the hardware has no dust bin. */
61584
- dustBin: TankStatusSchema.nullable(),
61585
61635
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61586
61636
  progressPercent: number().min(0).max(100).nullable(),
61587
61637
  /** Current error code (0 / null = no error). */
@@ -64122,6 +64172,12 @@ Object.freeze({
64122
64172
  addonId: null,
64123
64173
  access: "create"
64124
64174
  },
64175
+ "deviceHistory.deleteOrphanSeries": {
64176
+ capName: "device-history",
64177
+ capScope: "system",
64178
+ addonId: null,
64179
+ access: "delete"
64180
+ },
64125
64181
  "deviceHistory.getDeviceEnabled": {
64126
64182
  capName: "device-history",
64127
64183
  capScope: "system",
@@ -64140,6 +64196,12 @@ Object.freeze({
64140
64196
  addonId: null,
64141
64197
  access: "view"
64142
64198
  },
64199
+ "deviceHistory.listOrphanSeries": {
64200
+ capName: "device-history",
64201
+ capScope: "system",
64202
+ addonId: null,
64203
+ access: "view"
64204
+ },
64143
64205
  "deviceHistory.listSeries": {
64144
64206
  capName: "device-history",
64145
64207
  capScope: "system",
@@ -74145,7 +74207,7 @@ var STATE_SUMMARY_VARS = [
74145
74207
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74146
74208
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74147
74209
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74148
- ([...RULE_TEXT], [...CONSUMABLE]),
74210
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74149
74211
  ([...RULE_TEXT], [...TANK]),
74150
74212
  [...RULE_TEXT],
74151
74213
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -5505,7 +5505,7 @@ var ZodIssueCode = {
5505
5505
  var ZodFirstPartyTypeKind;
5506
5506
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5507
5507
  //#endregion
5508
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5508
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5509
5509
  /**
5510
5510
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5511
5511
  * window to float samples (D455).
@@ -8330,7 +8330,11 @@ var ContributionSectionSchema = object({
8330
8330
  literal(4)
8331
8331
  ]).optional(),
8332
8332
  tab: string().optional(),
8333
- location: _enum(["settings", "top-tab"]).optional(),
8333
+ location: _enum([
8334
+ "settings",
8335
+ "top-tab",
8336
+ "hero"
8337
+ ]).optional(),
8334
8338
  order: number().optional(),
8335
8339
  fields: array(any())
8336
8340
  });
@@ -13424,7 +13428,11 @@ var ConfigSectionWithValuesSchema = object({
13424
13428
  literal(4)
13425
13429
  ]).optional(),
13426
13430
  tab: string().optional(),
13427
- location: _enum(["settings", "top-tab"]).optional(),
13431
+ location: _enum([
13432
+ "settings",
13433
+ "top-tab",
13434
+ "hero"
13435
+ ]).optional(),
13428
13436
  order: number().optional(),
13429
13437
  fields: array(any())
13430
13438
  });
@@ -17198,6 +17206,52 @@ var TierStatusSchema = object({
17198
17206
  countedAt: number().nullable()
17199
17207
  });
17200
17208
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17209
+ /**
17210
+ * Why a series is orphan. `device-gone`: its device is absent from the
17211
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17212
+ * key is declared by no capability any more (a field a cap removed).
17213
+ */
17214
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17215
+ /** Rows held per stored tier. */
17216
+ var TierRowsSchema = object({
17217
+ raw: number().int(),
17218
+ "5m": number().int(),
17219
+ "1h": number().int(),
17220
+ "1d": number().int()
17221
+ });
17222
+ var OrphanSeriesSchema = object({
17223
+ seriesId: number().int(),
17224
+ deviceId: number().int(),
17225
+ key: string(),
17226
+ scope: string(),
17227
+ /** The metric's display name; `null` when its metric row is gone too. */
17228
+ displayName: string().nullable(),
17229
+ reason: DeviceHistoryOrphanReasonSchema,
17230
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17231
+ missingSince: number().nullable(),
17232
+ firstTs: number(),
17233
+ lastTs: number(),
17234
+ rows: TierRowsSchema
17235
+ });
17236
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17237
+ "not-found",
17238
+ "not-orphan",
17239
+ "failed"
17240
+ ]);
17241
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17242
+ seriesId: number().int(),
17243
+ ok: literal(true),
17244
+ deleted: TierRowsSchema
17245
+ }), object({
17246
+ seriesId: number().int(),
17247
+ ok: literal(false),
17248
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17249
+ })]);
17250
+ var OrphanListSchema = object({
17251
+ series: array(OrphanSeriesSchema).readonly(),
17252
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17253
+ truncated: boolean()
17254
+ });
17201
17255
  var DeviceHistoryStatusSchema = object({
17202
17256
  startedAt: number(),
17203
17257
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17295,7 +17349,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17295
17349
  }), object({ enabled: boolean() }), {
17296
17350
  kind: "mutation",
17297
17351
  auth: "admin"
17298
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17352
+ }), 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() }), {
17353
+ kind: "mutation",
17354
+ auth: "admin"
17355
+ });
17299
17356
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17300
17357
  object({ state: literal("absent") }),
17301
17358
  object({
@@ -47811,7 +47868,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47811
47868
  modelId: string()
47812
47869
  }),
47813
47870
  object({ kind: literal("cpu-device") }),
47814
- object({ kind: literal("coral-untouched") }),
47815
47871
  object({ kind: literal("device-disabled") }),
47816
47872
  object({ kind: literal("device-unavailable") }),
47817
47873
  object({ kind: literal("node-offline") }),
@@ -47909,11 +47965,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
47909
47965
  kind: literal("detector-store-unreadable"),
47910
47966
  error: string()
47911
47967
  }),
47912
- object({
47913
- kind: literal("coral-enabled"),
47914
- nodeId: string(),
47915
- deviceKey: string()
47916
- }),
47917
47968
  object({
47918
47969
  kind: literal("custom-pin-kept"),
47919
47970
  nodeId: string(),
@@ -54363,17 +54414,69 @@ object({
54363
54414
  });
54364
54415
  DeviceType.Sensor;
54365
54416
  /**
54366
- * Generic device-consumables capability — surfaces a device's
54367
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54368
- * descaling cycles, …) with their remaining life and an optional
54369
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54370
- * device tracks consumables can register it; the cap declares no
54371
- * vocabulary of its own — the provider names each item verbatim.
54417
+ * Generic device-consumables capability — the ONE place a device reports what
54418
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54419
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54420
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54421
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54422
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54423
+ * its device tracks consumables registers it; the provider names each item
54424
+ * verbatim and says which `kind` it is.
54425
+ *
54426
+ * The admin UI renders it as ONE collapsible section directly under the
54427
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54428
+ * this cap — never drawn by a device type's hero card itself (D915).
54372
54429
  *
54373
54430
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54374
54431
  * provider populates it by guessing (no HA inference). The UI renders a
54375
54432
  * "No consumables reported" placeholder when `items` is empty.
54376
54433
  */
54434
+ /**
54435
+ * What an item IS, which decides which direction is bad:
54436
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54437
+ * - `supply` — something the device draws from (clean water, detergent,
54438
+ * salt, rinse aid); low or empty is bad.
54439
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54440
+ * bad.
54441
+ * Absent = `wear`.
54442
+ */
54443
+ var ConsumableKindSchema = _enum([
54444
+ "wear",
54445
+ "supply",
54446
+ "waste"
54447
+ ]);
54448
+ /**
54449
+ * What an item LOOKS like, which decides how a client draws it — independent
54450
+ * of `kind`, which decides which direction is bad:
54451
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54452
+ * remaining time and a reset.
54453
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54454
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54455
+ * a stepped level and "refill".
54456
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54457
+ * that warns when full.
54458
+ * Absent = derived from the kind ({@link consumableFormOf}).
54459
+ */
54460
+ var ConsumableFormSchema = _enum([
54461
+ "part",
54462
+ "tank",
54463
+ "product",
54464
+ "bin"
54465
+ ]);
54466
+ /** The provider's own discrete verdict on an item. */
54467
+ var ConsumableStatusSchema = _enum([
54468
+ "ok",
54469
+ "low",
54470
+ "empty",
54471
+ "full",
54472
+ "replace"
54473
+ ]);
54474
+ _enum([
54475
+ "ok",
54476
+ "low",
54477
+ "empty",
54478
+ "full"
54479
+ ]);
54377
54480
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54378
54481
  * each. */
54379
54482
  var ConsumableRemainingUnitSchema = _enum([
@@ -54393,10 +54496,14 @@ var ConsumablesStatusSchema = object({
54393
54496
  key: string().min(1),
54394
54497
  /** Display name. */
54395
54498
  label: string().min(1),
54396
- /** Remaining life % when known (0..100). */
54499
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54397
54500
  level: number().min(0).max(100).nullable(),
54398
- /** Discrete state when known (binary mode). */
54399
- status: _enum(["ok", "replace"]).nullable(),
54501
+ /** The provider's discrete verdict when known (binary mode). */
54502
+ status: ConsumableStatusSchema.nullable(),
54503
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54504
+ kind: ConsumableKindSchema.optional(),
54505
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54506
+ form: ConsumableFormSchema.optional(),
54400
54507
  /** Ms epoch of the last replace, when known. */
54401
54508
  lastResetAt: number().nullable(),
54402
54509
  /** Whether `reset()` is meaningful for this item. */
@@ -54631,8 +54738,9 @@ object({
54631
54738
  status: DeviceStatusSchema
54632
54739
  });
54633
54740
  /**
54634
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54635
- * consumable levels (salt, rinse aid) and common program options.
54741
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54742
+ * common program options. Salt and rinse aid are NOT here: they are items of
54743
+ * the device's `consumables` cap, like every other device's (D915).
54636
54744
  *
54637
54745
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54638
54746
  * by any integration that exposes the same program / option surface.
@@ -54680,11 +54788,6 @@ var DishwasherAvailabilitySchema = _enum([
54680
54788
  "offline",
54681
54789
  "description-missing"
54682
54790
  ]);
54683
- var DishwasherConsumableLevelSchema = _enum([
54684
- "ok",
54685
- "low",
54686
- "empty"
54687
- ]);
54688
54791
  object({
54689
54792
  availability: DishwasherAvailabilitySchema,
54690
54793
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54717,8 +54820,6 @@ object({
54717
54820
  powerOn: boolean().nullable(),
54718
54821
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54719
54822
  powerState: string().nullable(),
54720
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54721
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54722
54823
  /**
54723
54824
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54724
54825
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61508,60 +61609,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61508
61609
  auth: "admin",
61509
61610
  access: "delete"
61510
61611
  });
61511
- /**
61512
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61513
- * cleaning lifecycle plus a return-to-base / locate surface and an
61514
- * optional fan-speed selector.
61515
- *
61516
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61517
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61518
- * (0..100) is nullable — some vacuums don't report a battery
61519
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61520
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61521
- * tokens the hardware accepts so the UI renders only supported choices.
61522
- *
61523
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61524
- * validates it against the vacuum's own list. `locate` triggers the
61525
- * find-me chirp; `returnToBase` sends it home.
61526
- *
61527
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61528
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61529
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61530
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61531
- * only when the device has no such tank at all, and use a `TankStatus`
61532
- * with both inner fields `null` when the tank exists but its level is
61533
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61534
- * so the HA provider leaves all four `null`.
61535
- */
61536
- var VacuumStateSchema = _enum([
61537
- "idle",
61538
- "cleaning",
61539
- "paused",
61540
- "returning",
61541
- "docked",
61542
- "drying",
61543
- "error"
61544
- ]);
61545
- /**
61546
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61547
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61548
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61549
- * level is currently unknown; the OWNING field being `null` means the
61550
- * hardware has no such tank at all.
61551
- */
61552
- var TankStatusSchema = object({
61553
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61554
- level: number().min(0).max(100).nullable(),
61555
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61556
- status: _enum([
61557
- "ok",
61558
- "low",
61559
- "full"
61560
- ]).nullable()
61561
- });
61562
61612
  object({
61563
61613
  /** Lifecycle state of the vacuum. */
61564
- state: VacuumStateSchema,
61614
+ state: _enum([
61615
+ "idle",
61616
+ "cleaning",
61617
+ "paused",
61618
+ "returning",
61619
+ "docked",
61620
+ "drying",
61621
+ "error"
61622
+ ]),
61565
61623
  /** 0..100 battery percentage. Null when the device has no battery
61566
61624
  * reading. */
61567
61625
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61570,14 +61628,6 @@ object({
61570
61628
  fanSpeed: string().nullable(),
61571
61629
  /** Speed tokens the hardware accepts — drives the UI selector. */
61572
61630
  availableFanSpeeds: array(string()),
61573
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61574
- cleanWater: TankStatusSchema.nullable(),
61575
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61576
- dirtyWater: TankStatusSchema.nullable(),
61577
- /** Detergent tank. Null when the hardware has no detergent tank. */
61578
- detergent: TankStatusSchema.nullable(),
61579
- /** Dust bin. Null when the hardware has no dust bin. */
61580
- dustBin: TankStatusSchema.nullable(),
61581
61631
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61582
61632
  progressPercent: number().min(0).max(100).nullable(),
61583
61633
  /** Current error code (0 / null = no error). */
@@ -64118,6 +64168,12 @@ Object.freeze({
64118
64168
  addonId: null,
64119
64169
  access: "create"
64120
64170
  },
64171
+ "deviceHistory.deleteOrphanSeries": {
64172
+ capName: "device-history",
64173
+ capScope: "system",
64174
+ addonId: null,
64175
+ access: "delete"
64176
+ },
64121
64177
  "deviceHistory.getDeviceEnabled": {
64122
64178
  capName: "device-history",
64123
64179
  capScope: "system",
@@ -64136,6 +64192,12 @@ Object.freeze({
64136
64192
  addonId: null,
64137
64193
  access: "view"
64138
64194
  },
64195
+ "deviceHistory.listOrphanSeries": {
64196
+ capName: "device-history",
64197
+ capScope: "system",
64198
+ addonId: null,
64199
+ access: "view"
64200
+ },
64139
64201
  "deviceHistory.listSeries": {
64140
64202
  capName: "device-history",
64141
64203
  capScope: "system",
@@ -74141,7 +74203,7 @@ var STATE_SUMMARY_VARS = [
74141
74203
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74142
74204
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74143
74205
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74144
- ([...RULE_TEXT], [...CONSUMABLE]),
74206
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74145
74207
  ([...RULE_TEXT], [...TANK]),
74146
74208
  [...RULE_TEXT],
74147
74209
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.108",
3
+ "version": "0.1.110",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",