@camstack/addon-osd-manager 0.1.261 → 0.1.263

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 (19) hide show
  1. package/dist/{MotionZonesSettings-DRzVtBFW.mjs → MotionZonesSettings-BhpBJqGq.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-C7wUecND.mjs → PrivacyMaskSettings-DQj0o7MH.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BkIBeRgq.mjs → SceneMonitorEditor-BGWObfJ0.mjs} +3 -3
  4. package/dist/_stub.js +3985 -4245
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-B4ntcc3T.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BLyZFT8U.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Ccb-hwk2.mjs +26 -0
  7. package/dist/addon-osd-manager.css +1 -1
  8. package/dist/{hostInit-BEL9T-ZE.mjs → hostInit-Vk8h3J4Y.mjs} +3 -3
  9. package/dist/index.js +151 -159
  10. package/dist/index.mjs +151 -159
  11. package/dist/{player-overlays-DzjfQTb4.mjs → player-overlays-BUhJWL7S.mjs} +19 -12
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-DXxTiZk_.mjs → responsive-mW5v5lh0.mjs} +1 -1
  14. package/dist/{scene-monitor-copy-BqnDA31r.mjs → scene-monitor-copy-WlYQ_JMq.mjs} +1 -1
  15. package/dist/{square-DGRrNJim.mjs → square-eEc0ucDD.mjs} +1 -1
  16. package/dist/{trash-2-Cm4a_frA.mjs → trash-2-D5ozp5ZB.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Byjybpdl.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CXL6LzND.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CWzPWMLE.mjs +0 -26
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.398",
39
+ version: "1.2.401",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.148",
48
+ version: "1.2.150",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.315",
84
+ version: "1.2.317",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
package/dist/index.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
  });
@@ -13195,7 +13199,11 @@ var ConfigSectionWithValuesSchema = object({
13195
13199
  literal(4)
13196
13200
  ]).optional(),
13197
13201
  tab: string().optional(),
13198
- location: _enum(["settings", "top-tab"]).optional(),
13202
+ location: _enum([
13203
+ "settings",
13204
+ "top-tab",
13205
+ "hero"
13206
+ ]).optional(),
13199
13207
  order: number().optional(),
13200
13208
  fields: array(any())
13201
13209
  });
@@ -16969,6 +16977,52 @@ var TierStatusSchema = object({
16969
16977
  countedAt: number().nullable()
16970
16978
  });
16971
16979
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16980
+ /**
16981
+ * Why a series is orphan. `device-gone`: its device is absent from the
16982
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
16983
+ * key is declared by no capability any more (a field a cap removed).
16984
+ */
16985
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
16986
+ /** Rows held per stored tier. */
16987
+ var TierRowsSchema = object({
16988
+ raw: number().int(),
16989
+ "5m": number().int(),
16990
+ "1h": number().int(),
16991
+ "1d": number().int()
16992
+ });
16993
+ var OrphanSeriesSchema = object({
16994
+ seriesId: number().int(),
16995
+ deviceId: number().int(),
16996
+ key: string(),
16997
+ scope: string(),
16998
+ /** The metric's display name; `null` when its metric row is gone too. */
16999
+ displayName: string().nullable(),
17000
+ reason: DeviceHistoryOrphanReasonSchema,
17001
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17002
+ missingSince: number().nullable(),
17003
+ firstTs: number(),
17004
+ lastTs: number(),
17005
+ rows: TierRowsSchema
17006
+ });
17007
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17008
+ "not-found",
17009
+ "not-orphan",
17010
+ "failed"
17011
+ ]);
17012
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17013
+ seriesId: number().int(),
17014
+ ok: literal(true),
17015
+ deleted: TierRowsSchema
17016
+ }), object({
17017
+ seriesId: number().int(),
17018
+ ok: literal(false),
17019
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17020
+ })]);
17021
+ var OrphanListSchema = object({
17022
+ series: array(OrphanSeriesSchema).readonly(),
17023
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17024
+ truncated: boolean()
17025
+ });
16972
17026
  var DeviceHistoryStatusSchema = object({
16973
17027
  startedAt: number(),
16974
17028
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17066,7 +17120,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17066
17120
  }), object({ enabled: boolean() }), {
17067
17121
  kind: "mutation",
17068
17122
  auth: "admin"
17069
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17123
+ }), 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() }), {
17124
+ kind: "mutation",
17125
+ auth: "admin"
17126
+ });
17070
17127
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17071
17128
  object({ state: literal("absent") }),
17072
17129
  object({
@@ -48190,7 +48247,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48190
48247
  modelId: string()
48191
48248
  }),
48192
48249
  object({ kind: literal("cpu-device") }),
48193
- object({ kind: literal("coral-untouched") }),
48194
48250
  object({ kind: literal("device-disabled") }),
48195
48251
  object({ kind: literal("device-unavailable") }),
48196
48252
  object({ kind: literal("node-offline") }),
@@ -48288,11 +48344,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48288
48344
  kind: literal("detector-store-unreadable"),
48289
48345
  error: string()
48290
48346
  }),
48291
- object({
48292
- kind: literal("coral-enabled"),
48293
- nodeId: string(),
48294
- deviceKey: string()
48295
- }),
48296
48347
  object({
48297
48348
  kind: literal("custom-pin-kept"),
48298
48349
  nodeId: string(),
@@ -54730,17 +54781,69 @@ object({
54730
54781
  });
54731
54782
  DeviceType.Sensor;
54732
54783
  /**
54733
- * Generic device-consumables capability — surfaces a device's
54734
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54735
- * descaling cycles, …) with their remaining life and an optional
54736
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54737
- * device tracks consumables can register it; the cap declares no
54738
- * vocabulary of its own — the provider names each item verbatim.
54784
+ * Generic device-consumables capability — the ONE place a device reports what
54785
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54786
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54787
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54788
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54789
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54790
+ * its device tracks consumables registers it; the provider names each item
54791
+ * verbatim and says which `kind` it is.
54792
+ *
54793
+ * The admin UI renders it as ONE collapsible section directly under the
54794
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54795
+ * this cap — never drawn by a device type's hero card itself (D915).
54739
54796
  *
54740
54797
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54741
54798
  * provider populates it by guessing (no HA inference). The UI renders a
54742
54799
  * "No consumables reported" placeholder when `items` is empty.
54743
54800
  */
54801
+ /**
54802
+ * What an item IS, which decides which direction is bad:
54803
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54804
+ * - `supply` — something the device draws from (clean water, detergent,
54805
+ * salt, rinse aid); low or empty is bad.
54806
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54807
+ * bad.
54808
+ * Absent = `wear`.
54809
+ */
54810
+ var ConsumableKindSchema = _enum([
54811
+ "wear",
54812
+ "supply",
54813
+ "waste"
54814
+ ]);
54815
+ /**
54816
+ * What an item LOOKS like, which decides how a client draws it — independent
54817
+ * of `kind`, which decides which direction is bad:
54818
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54819
+ * remaining time and a reset.
54820
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54821
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54822
+ * a stepped level and "refill".
54823
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54824
+ * that warns when full.
54825
+ * Absent = derived from the kind ({@link consumableFormOf}).
54826
+ */
54827
+ var ConsumableFormSchema = _enum([
54828
+ "part",
54829
+ "tank",
54830
+ "product",
54831
+ "bin"
54832
+ ]);
54833
+ /** The provider's own discrete verdict on an item. */
54834
+ var ConsumableStatusSchema = _enum([
54835
+ "ok",
54836
+ "low",
54837
+ "empty",
54838
+ "full",
54839
+ "replace"
54840
+ ]);
54841
+ _enum([
54842
+ "ok",
54843
+ "low",
54844
+ "empty",
54845
+ "full"
54846
+ ]);
54744
54847
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54745
54848
  * each. */
54746
54849
  var ConsumableRemainingUnitSchema = _enum([
@@ -54760,10 +54863,14 @@ var ConsumablesStatusSchema = object({
54760
54863
  key: string().min(1),
54761
54864
  /** Display name. */
54762
54865
  label: string().min(1),
54763
- /** Remaining life % when known (0..100). */
54866
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54764
54867
  level: number().min(0).max(100).nullable(),
54765
- /** Discrete state when known (binary mode). */
54766
- status: _enum(["ok", "replace"]).nullable(),
54868
+ /** The provider's discrete verdict when known (binary mode). */
54869
+ status: ConsumableStatusSchema.nullable(),
54870
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54871
+ kind: ConsumableKindSchema.optional(),
54872
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54873
+ form: ConsumableFormSchema.optional(),
54767
54874
  /** Ms epoch of the last replace, when known. */
54768
54875
  lastResetAt: number().nullable(),
54769
54876
  /** Whether `reset()` is meaningful for this item. */
@@ -54998,8 +55105,9 @@ object({
54998
55105
  status: DeviceStatusSchema
54999
55106
  });
55000
55107
  /**
55001
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
55002
- * consumable levels (salt, rinse aid) and common program options.
55108
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
55109
+ * common program options. Salt and rinse aid are NOT here: they are items of
55110
+ * the device's `consumables` cap, like every other device's (D915).
55003
55111
  *
55004
55112
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
55005
55113
  * by any integration that exposes the same program / option surface.
@@ -55047,11 +55155,6 @@ var DishwasherAvailabilitySchema = _enum([
55047
55155
  "offline",
55048
55156
  "description-missing"
55049
55157
  ]);
55050
- var DishwasherConsumableLevelSchema = _enum([
55051
- "ok",
55052
- "low",
55053
- "empty"
55054
- ]);
55055
55158
  object({
55056
55159
  availability: DishwasherAvailabilitySchema,
55057
55160
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55084,8 +55187,6 @@ object({
55084
55187
  powerOn: boolean().nullable(),
55085
55188
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55086
55189
  powerState: string().nullable(),
55087
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55088
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55089
55190
  /**
55090
55191
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55091
55192
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61930,60 +62031,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61930
62031
  auth: "admin",
61931
62032
  access: "delete"
61932
62033
  });
61933
- /**
61934
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61935
- * cleaning lifecycle plus a return-to-base / locate surface and an
61936
- * optional fan-speed selector.
61937
- *
61938
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61939
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61940
- * (0..100) is nullable — some vacuums don't report a battery
61941
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61942
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61943
- * tokens the hardware accepts so the UI renders only supported choices.
61944
- *
61945
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61946
- * validates it against the vacuum's own list. `locate` triggers the
61947
- * find-me chirp; `returnToBase` sends it home.
61948
- *
61949
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61950
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61951
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61952
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61953
- * only when the device has no such tank at all, and use a `TankStatus`
61954
- * with both inner fields `null` when the tank exists but its level is
61955
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61956
- * so the HA provider leaves all four `null`.
61957
- */
61958
- var VacuumStateSchema = _enum([
61959
- "idle",
61960
- "cleaning",
61961
- "paused",
61962
- "returning",
61963
- "docked",
61964
- "drying",
61965
- "error"
61966
- ]);
61967
- /**
61968
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61969
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61970
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61971
- * level is currently unknown; the OWNING field being `null` means the
61972
- * hardware has no such tank at all.
61973
- */
61974
- var TankStatusSchema = object({
61975
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61976
- level: number().min(0).max(100).nullable(),
61977
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61978
- status: _enum([
61979
- "ok",
61980
- "low",
61981
- "full"
61982
- ]).nullable()
61983
- });
61984
62034
  object({
61985
62035
  /** Lifecycle state of the vacuum. */
61986
- state: VacuumStateSchema,
62036
+ state: _enum([
62037
+ "idle",
62038
+ "cleaning",
62039
+ "paused",
62040
+ "returning",
62041
+ "docked",
62042
+ "drying",
62043
+ "error"
62044
+ ]),
61987
62045
  /** 0..100 battery percentage. Null when the device has no battery
61988
62046
  * reading. */
61989
62047
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61992,14 +62050,6 @@ object({
61992
62050
  fanSpeed: string().nullable(),
61993
62051
  /** Speed tokens the hardware accepts — drives the UI selector. */
61994
62052
  availableFanSpeeds: array(string()),
61995
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61996
- cleanWater: TankStatusSchema.nullable(),
61997
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61998
- dirtyWater: TankStatusSchema.nullable(),
61999
- /** Detergent tank. Null when the hardware has no detergent tank. */
62000
- detergent: TankStatusSchema.nullable(),
62001
- /** Dust bin. Null when the hardware has no dust bin. */
62002
- dustBin: TankStatusSchema.nullable(),
62003
62053
  /** 0..100 cleaning-completion percentage of the current task, or null. */
62004
62054
  progressPercent: number().min(0).max(100).nullable(),
62005
62055
  /** Current error code (0 / null = no error). */
@@ -64856,6 +64906,12 @@ Object.freeze({
64856
64906
  addonId: null,
64857
64907
  access: "create"
64858
64908
  },
64909
+ "deviceHistory.deleteOrphanSeries": {
64910
+ capName: "device-history",
64911
+ capScope: "system",
64912
+ addonId: null,
64913
+ access: "delete"
64914
+ },
64859
64915
  "deviceHistory.getDeviceEnabled": {
64860
64916
  capName: "device-history",
64861
64917
  capScope: "system",
@@ -64874,6 +64930,12 @@ Object.freeze({
64874
64930
  addonId: null,
64875
64931
  access: "view"
64876
64932
  },
64933
+ "deviceHistory.listOrphanSeries": {
64934
+ capName: "device-history",
64935
+ capScope: "system",
64936
+ addonId: null,
64937
+ access: "view"
64938
+ },
64877
64939
  "deviceHistory.listSeries": {
64878
64940
  capName: "device-history",
64879
64941
  capScope: "system",
@@ -74959,7 +75021,7 @@ var STATE_SUMMARY_VARS = [
74959
75021
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74960
75022
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74961
75023
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74962
- ([...RULE_TEXT], [...CONSUMABLE]),
75024
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74963
75025
  ([...RULE_TEXT], [...TANK]),
74964
75026
  [...RULE_TEXT],
74965
75027
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -77284,24 +77346,6 @@ var CAP_STATE_LEAVES = Object.freeze({
77284
77346
  "path": "powerState",
77285
77347
  "valueType": "string"
77286
77348
  },
77287
- {
77288
- "path": "saltLevel",
77289
- "valueType": "enum",
77290
- "enumValues": [
77291
- "ok",
77292
- "low",
77293
- "empty"
77294
- ]
77295
- },
77296
- {
77297
- "path": "rinseAidLevel",
77298
- "valueType": "enum",
77299
- "enumValues": [
77300
- "ok",
77301
- "low",
77302
- "empty"
77303
- ]
77304
- },
77305
77349
  {
77306
77350
  "path": "filterCleaningDue",
77307
77351
  "valueType": "boolean"
@@ -78327,58 +78371,6 @@ var CAP_STATE_LEAVES = Object.freeze({
78327
78371
  "path": "fanSpeed",
78328
78372
  "valueType": "string"
78329
78373
  },
78330
- {
78331
- "path": "cleanWater.level",
78332
- "valueType": "number"
78333
- },
78334
- {
78335
- "path": "cleanWater.status",
78336
- "valueType": "enum",
78337
- "enumValues": [
78338
- "ok",
78339
- "low",
78340
- "full"
78341
- ]
78342
- },
78343
- {
78344
- "path": "dirtyWater.level",
78345
- "valueType": "number"
78346
- },
78347
- {
78348
- "path": "dirtyWater.status",
78349
- "valueType": "enum",
78350
- "enumValues": [
78351
- "ok",
78352
- "low",
78353
- "full"
78354
- ]
78355
- },
78356
- {
78357
- "path": "detergent.level",
78358
- "valueType": "number"
78359
- },
78360
- {
78361
- "path": "detergent.status",
78362
- "valueType": "enum",
78363
- "enumValues": [
78364
- "ok",
78365
- "low",
78366
- "full"
78367
- ]
78368
- },
78369
- {
78370
- "path": "dustBin.level",
78371
- "valueType": "number"
78372
- },
78373
- {
78374
- "path": "dustBin.status",
78375
- "valueType": "enum",
78376
- "enumValues": [
78377
- "ok",
78378
- "low",
78379
- "full"
78380
- ]
78381
- },
78382
78374
  {
78383
78375
  "path": "progressPercent",
78384
78376
  "valueType": "number"