@camstack/addon-model-studio 1.1.286 → 1.1.287

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-Bh-KUgfj.mjs → MotionZonesSettings-D0BtqOwj.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BbLJKLoV.mjs → PrivacyMaskSettings-BYJj-5D1.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-qruDlUP9.mjs → SceneMonitorEditor-D1kveRgB.mjs} +3 -3
  4. package/dist/_stub.js +3555 -3751
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CdxolZWr.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BzQpOYl5.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-MeghOR6t.mjs +26 -0
  7. package/dist/addon-model-studio.css +1 -1
  8. package/dist/{hostInit-C7HoBhCX.mjs → hostInit-DRhSO1r5.mjs} +3 -3
  9. package/dist/model-studio.addon.js +151 -83
  10. package/dist/model-studio.addon.mjs +151 -83
  11. package/dist/{player-overlays-BFVZeg7l.mjs → player-overlays-D92X0xJg.mjs} +19 -12
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-DCC2zJt3.mjs → responsive-D-jqRXmN.mjs} +1 -1
  14. package/dist/{scene-monitor-copy-gZOBiDdj.mjs → scene-monitor-copy-DMdZvxkb.mjs} +1 -1
  15. package/dist/{square-_l-jB_AO.mjs → square-epfZBUKr.mjs} +1 -1
  16. package/dist/{trash-2-DOwb-qnd.mjs → trash-2-Bc8klFfu.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BLWi3oEJ.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CPVxvHfW.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BliJpcti.mjs +0 -26
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.400",
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.149",
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.316",
84
+ version: "1.2.317",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -5826,7 +5826,7 @@ var ZodIssueCode = {
5826
5826
  var ZodFirstPartyTypeKind;
5827
5827
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5828
5828
  //#endregion
5829
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5829
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5830
5830
  /**
5831
5831
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5832
5832
  * window to float samples (D455).
@@ -8710,7 +8710,11 @@ var ContributionSectionSchema = object({
8710
8710
  literal(4)
8711
8711
  ]).optional(),
8712
8712
  tab: string().optional(),
8713
- location: _enum(["settings", "top-tab"]).optional(),
8713
+ location: _enum([
8714
+ "settings",
8715
+ "top-tab",
8716
+ "hero"
8717
+ ]).optional(),
8714
8718
  order: number().optional(),
8715
8719
  fields: array(any())
8716
8720
  });
@@ -13807,7 +13811,11 @@ var ConfigSectionWithValuesSchema = object({
13807
13811
  literal(4)
13808
13812
  ]).optional(),
13809
13813
  tab: string().optional(),
13810
- location: _enum(["settings", "top-tab"]).optional(),
13814
+ location: _enum([
13815
+ "settings",
13816
+ "top-tab",
13817
+ "hero"
13818
+ ]).optional(),
13811
13819
  order: number().optional(),
13812
13820
  fields: array(any())
13813
13821
  });
@@ -17609,6 +17617,52 @@ var TierStatusSchema = object({
17609
17617
  countedAt: number().nullable()
17610
17618
  });
17611
17619
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17620
+ /**
17621
+ * Why a series is orphan. `device-gone`: its device is absent from the
17622
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17623
+ * key is declared by no capability any more (a field a cap removed).
17624
+ */
17625
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17626
+ /** Rows held per stored tier. */
17627
+ var TierRowsSchema = object({
17628
+ raw: number().int(),
17629
+ "5m": number().int(),
17630
+ "1h": number().int(),
17631
+ "1d": number().int()
17632
+ });
17633
+ var OrphanSeriesSchema = object({
17634
+ seriesId: number().int(),
17635
+ deviceId: number().int(),
17636
+ key: string(),
17637
+ scope: string(),
17638
+ /** The metric's display name; `null` when its metric row is gone too. */
17639
+ displayName: string().nullable(),
17640
+ reason: DeviceHistoryOrphanReasonSchema,
17641
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17642
+ missingSince: number().nullable(),
17643
+ firstTs: number(),
17644
+ lastTs: number(),
17645
+ rows: TierRowsSchema
17646
+ });
17647
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17648
+ "not-found",
17649
+ "not-orphan",
17650
+ "failed"
17651
+ ]);
17652
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17653
+ seriesId: number().int(),
17654
+ ok: literal(true),
17655
+ deleted: TierRowsSchema
17656
+ }), object({
17657
+ seriesId: number().int(),
17658
+ ok: literal(false),
17659
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17660
+ })]);
17661
+ var OrphanListSchema = object({
17662
+ series: array(OrphanSeriesSchema).readonly(),
17663
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17664
+ truncated: boolean()
17665
+ });
17612
17666
  var DeviceHistoryStatusSchema = object({
17613
17667
  startedAt: number(),
17614
17668
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17706,7 +17760,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17706
17760
  }), object({ enabled: boolean() }), {
17707
17761
  kind: "mutation",
17708
17762
  auth: "admin"
17709
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17763
+ }), 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() }), {
17764
+ kind: "mutation",
17765
+ auth: "admin"
17766
+ });
17710
17767
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17711
17768
  object({ state: literal("absent") }),
17712
17769
  object({
@@ -54721,17 +54778,69 @@ object({
54721
54778
  });
54722
54779
  DeviceType.Sensor;
54723
54780
  /**
54724
- * Generic device-consumables capability — surfaces a device's
54725
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54726
- * descaling cycles, …) with their remaining life and an optional
54727
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54728
- * device tracks consumables can register it; the cap declares no
54729
- * vocabulary of its own — the provider names each item verbatim.
54781
+ * Generic device-consumables capability — the ONE place a device reports what
54782
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54783
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54784
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54785
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54786
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54787
+ * its device tracks consumables registers it; the provider names each item
54788
+ * verbatim and says which `kind` it is.
54789
+ *
54790
+ * The admin UI renders it as ONE collapsible section directly under the
54791
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54792
+ * this cap — never drawn by a device type's hero card itself (D915).
54730
54793
  *
54731
54794
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54732
54795
  * provider populates it by guessing (no HA inference). The UI renders a
54733
54796
  * "No consumables reported" placeholder when `items` is empty.
54734
54797
  */
54798
+ /**
54799
+ * What an item IS, which decides which direction is bad:
54800
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54801
+ * - `supply` — something the device draws from (clean water, detergent,
54802
+ * salt, rinse aid); low or empty is bad.
54803
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54804
+ * bad.
54805
+ * Absent = `wear`.
54806
+ */
54807
+ var ConsumableKindSchema = _enum([
54808
+ "wear",
54809
+ "supply",
54810
+ "waste"
54811
+ ]);
54812
+ /**
54813
+ * What an item LOOKS like, which decides how a client draws it — independent
54814
+ * of `kind`, which decides which direction is bad:
54815
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54816
+ * remaining time and a reset.
54817
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54818
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54819
+ * a stepped level and "refill".
54820
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54821
+ * that warns when full.
54822
+ * Absent = derived from the kind ({@link consumableFormOf}).
54823
+ */
54824
+ var ConsumableFormSchema = _enum([
54825
+ "part",
54826
+ "tank",
54827
+ "product",
54828
+ "bin"
54829
+ ]);
54830
+ /** The provider's own discrete verdict on an item. */
54831
+ var ConsumableStatusSchema = _enum([
54832
+ "ok",
54833
+ "low",
54834
+ "empty",
54835
+ "full",
54836
+ "replace"
54837
+ ]);
54838
+ _enum([
54839
+ "ok",
54840
+ "low",
54841
+ "empty",
54842
+ "full"
54843
+ ]);
54735
54844
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54736
54845
  * each. */
54737
54846
  var ConsumableRemainingUnitSchema = _enum([
@@ -54751,10 +54860,14 @@ var ConsumablesStatusSchema = object({
54751
54860
  key: string().min(1),
54752
54861
  /** Display name. */
54753
54862
  label: string().min(1),
54754
- /** Remaining life % when known (0..100). */
54863
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54755
54864
  level: number().min(0).max(100).nullable(),
54756
- /** Discrete state when known (binary mode). */
54757
- status: _enum(["ok", "replace"]).nullable(),
54865
+ /** The provider's discrete verdict when known (binary mode). */
54866
+ status: ConsumableStatusSchema.nullable(),
54867
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54868
+ kind: ConsumableKindSchema.optional(),
54869
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54870
+ form: ConsumableFormSchema.optional(),
54758
54871
  /** Ms epoch of the last replace, when known. */
54759
54872
  lastResetAt: number().nullable(),
54760
54873
  /** Whether `reset()` is meaningful for this item. */
@@ -54989,8 +55102,9 @@ object({
54989
55102
  status: DeviceStatusSchema
54990
55103
  });
54991
55104
  /**
54992
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54993
- * consumable levels (salt, rinse aid) and common program options.
55105
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
55106
+ * common program options. Salt and rinse aid are NOT here: they are items of
55107
+ * the device's `consumables` cap, like every other device's (D915).
54994
55108
  *
54995
55109
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54996
55110
  * by any integration that exposes the same program / option surface.
@@ -55038,11 +55152,6 @@ var DishwasherAvailabilitySchema = _enum([
55038
55152
  "offline",
55039
55153
  "description-missing"
55040
55154
  ]);
55041
- var DishwasherConsumableLevelSchema = _enum([
55042
- "ok",
55043
- "low",
55044
- "empty"
55045
- ]);
55046
55155
  object({
55047
55156
  availability: DishwasherAvailabilitySchema,
55048
55157
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55075,8 +55184,6 @@ object({
55075
55184
  powerOn: boolean().nullable(),
55076
55185
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55077
55186
  powerState: string().nullable(),
55078
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55079
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55080
55187
  /**
55081
55188
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55082
55189
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61859,60 +61966,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61859
61966
  auth: "admin",
61860
61967
  access: "delete"
61861
61968
  });
61862
- /**
61863
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61864
- * cleaning lifecycle plus a return-to-base / locate surface and an
61865
- * optional fan-speed selector.
61866
- *
61867
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61868
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61869
- * (0..100) is nullable — some vacuums don't report a battery
61870
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61871
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61872
- * tokens the hardware accepts so the UI renders only supported choices.
61873
- *
61874
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61875
- * validates it against the vacuum's own list. `locate` triggers the
61876
- * find-me chirp; `returnToBase` sends it home.
61877
- *
61878
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61879
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61880
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61881
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61882
- * only when the device has no such tank at all, and use a `TankStatus`
61883
- * with both inner fields `null` when the tank exists but its level is
61884
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61885
- * so the HA provider leaves all four `null`.
61886
- */
61887
- var VacuumStateSchema = _enum([
61888
- "idle",
61889
- "cleaning",
61890
- "paused",
61891
- "returning",
61892
- "docked",
61893
- "drying",
61894
- "error"
61895
- ]);
61896
- /**
61897
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61898
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61899
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61900
- * level is currently unknown; the OWNING field being `null` means the
61901
- * hardware has no such tank at all.
61902
- */
61903
- var TankStatusSchema = object({
61904
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61905
- level: number().min(0).max(100).nullable(),
61906
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61907
- status: _enum([
61908
- "ok",
61909
- "low",
61910
- "full"
61911
- ]).nullable()
61912
- });
61913
61969
  object({
61914
61970
  /** Lifecycle state of the vacuum. */
61915
- state: VacuumStateSchema,
61971
+ state: _enum([
61972
+ "idle",
61973
+ "cleaning",
61974
+ "paused",
61975
+ "returning",
61976
+ "docked",
61977
+ "drying",
61978
+ "error"
61979
+ ]),
61916
61980
  /** 0..100 battery percentage. Null when the device has no battery
61917
61981
  * reading. */
61918
61982
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61921,14 +61985,6 @@ object({
61921
61985
  fanSpeed: string().nullable(),
61922
61986
  /** Speed tokens the hardware accepts — drives the UI selector. */
61923
61987
  availableFanSpeeds: array(string()),
61924
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61925
- cleanWater: TankStatusSchema.nullable(),
61926
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61927
- dirtyWater: TankStatusSchema.nullable(),
61928
- /** Detergent tank. Null when the hardware has no detergent tank. */
61929
- detergent: TankStatusSchema.nullable(),
61930
- /** Dust bin. Null when the hardware has no dust bin. */
61931
- dustBin: TankStatusSchema.nullable(),
61932
61988
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61933
61989
  progressPercent: number().min(0).max(100).nullable(),
61934
61990
  /** Current error code (0 / null = no error). */
@@ -64567,6 +64623,12 @@ Object.freeze({
64567
64623
  addonId: null,
64568
64624
  access: "create"
64569
64625
  },
64626
+ "deviceHistory.deleteOrphanSeries": {
64627
+ capName: "device-history",
64628
+ capScope: "system",
64629
+ addonId: null,
64630
+ access: "delete"
64631
+ },
64570
64632
  "deviceHistory.getDeviceEnabled": {
64571
64633
  capName: "device-history",
64572
64634
  capScope: "system",
@@ -64585,6 +64647,12 @@ Object.freeze({
64585
64647
  addonId: null,
64586
64648
  access: "view"
64587
64649
  },
64650
+ "deviceHistory.listOrphanSeries": {
64651
+ capName: "device-history",
64652
+ capScope: "system",
64653
+ addonId: null,
64654
+ access: "view"
64655
+ },
64588
64656
  "deviceHistory.listSeries": {
64589
64657
  capName: "device-history",
64590
64658
  capScope: "system",
@@ -74590,7 +74658,7 @@ var STATE_SUMMARY_VARS = [
74590
74658
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74591
74659
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74592
74660
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74593
- ([...RULE_TEXT], [...CONSUMABLE]),
74661
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74594
74662
  ([...RULE_TEXT], [...TANK]),
74595
74663
  [...RULE_TEXT],
74596
74664
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),