@camstack/addon-model-studio 1.1.285 → 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-BWIjI_mB.mjs → MotionZonesSettings-D0BtqOwj.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BuSCnSs6.mjs → PrivacyMaskSettings-BYJj-5D1.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-D6DomEv3.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-D4_cFV_R.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-SeST1uzI.mjs → hostInit-DRhSO1r5.mjs} +3 -3
  9. package/dist/model-studio.addon.js +151 -89
  10. package/dist/model-studio.addon.mjs +151 -89
  11. package/dist/{player-overlays-DZwcDBXd.mjs → player-overlays-D92X0xJg.mjs} +19 -12
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-B15MRUZC.mjs → responsive-D-jqRXmN.mjs} +1 -1
  14. package/dist/{scene-monitor-copy-JIcLgE--.mjs → scene-monitor-copy-DMdZvxkb.mjs} +1 -1
  15. package/dist/{square-E31fCPCW.mjs → square-epfZBUKr.mjs} +1 -1
  16. package/dist/{trash-2-DBIIPVno.mjs → trash-2-Bc8klFfu.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-Dcfz5AcL.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-8XY35EWj.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,
@@ -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({
@@ -48187,7 +48244,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48187
48244
  modelId: string()
48188
48245
  }),
48189
48246
  object({ kind: literal("cpu-device") }),
48190
- object({ kind: literal("coral-untouched") }),
48191
48247
  object({ kind: literal("device-disabled") }),
48192
48248
  object({ kind: literal("device-unavailable") }),
48193
48249
  object({ kind: literal("node-offline") }),
@@ -48285,11 +48341,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48285
48341
  kind: literal("detector-store-unreadable"),
48286
48342
  error: string()
48287
48343
  }),
48288
- object({
48289
- kind: literal("coral-enabled"),
48290
- nodeId: string(),
48291
- deviceKey: string()
48292
- }),
48293
48344
  object({
48294
48345
  kind: literal("custom-pin-kept"),
48295
48346
  nodeId: string(),
@@ -54727,17 +54778,69 @@ object({
54727
54778
  });
54728
54779
  DeviceType.Sensor;
54729
54780
  /**
54730
- * Generic device-consumables capability — surfaces a device's
54731
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54732
- * descaling cycles, …) with their remaining life and an optional
54733
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54734
- * device tracks consumables can register it; the cap declares no
54735
- * 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).
54736
54793
  *
54737
54794
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54738
54795
  * provider populates it by guessing (no HA inference). The UI renders a
54739
54796
  * "No consumables reported" placeholder when `items` is empty.
54740
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
+ ]);
54741
54844
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54742
54845
  * each. */
54743
54846
  var ConsumableRemainingUnitSchema = _enum([
@@ -54757,10 +54860,14 @@ var ConsumablesStatusSchema = object({
54757
54860
  key: string().min(1),
54758
54861
  /** Display name. */
54759
54862
  label: string().min(1),
54760
- /** Remaining life % when known (0..100). */
54863
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54761
54864
  level: number().min(0).max(100).nullable(),
54762
- /** Discrete state when known (binary mode). */
54763
- 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(),
54764
54871
  /** Ms epoch of the last replace, when known. */
54765
54872
  lastResetAt: number().nullable(),
54766
54873
  /** Whether `reset()` is meaningful for this item. */
@@ -54995,8 +55102,9 @@ object({
54995
55102
  status: DeviceStatusSchema
54996
55103
  });
54997
55104
  /**
54998
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54999
- * 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).
55000
55108
  *
55001
55109
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
55002
55110
  * by any integration that exposes the same program / option surface.
@@ -55044,11 +55152,6 @@ var DishwasherAvailabilitySchema = _enum([
55044
55152
  "offline",
55045
55153
  "description-missing"
55046
55154
  ]);
55047
- var DishwasherConsumableLevelSchema = _enum([
55048
- "ok",
55049
- "low",
55050
- "empty"
55051
- ]);
55052
55155
  object({
55053
55156
  availability: DishwasherAvailabilitySchema,
55054
55157
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55081,8 +55184,6 @@ object({
55081
55184
  powerOn: boolean().nullable(),
55082
55185
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55083
55186
  powerState: string().nullable(),
55084
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55085
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55086
55187
  /**
55087
55188
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55088
55189
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -61865,60 +61966,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61865
61966
  auth: "admin",
61866
61967
  access: "delete"
61867
61968
  });
61868
- /**
61869
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61870
- * cleaning lifecycle plus a return-to-base / locate surface and an
61871
- * optional fan-speed selector.
61872
- *
61873
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61874
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61875
- * (0..100) is nullable — some vacuums don't report a battery
61876
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61877
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61878
- * tokens the hardware accepts so the UI renders only supported choices.
61879
- *
61880
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61881
- * validates it against the vacuum's own list. `locate` triggers the
61882
- * find-me chirp; `returnToBase` sends it home.
61883
- *
61884
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61885
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61886
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61887
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61888
- * only when the device has no such tank at all, and use a `TankStatus`
61889
- * with both inner fields `null` when the tank exists but its level is
61890
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61891
- * so the HA provider leaves all four `null`.
61892
- */
61893
- var VacuumStateSchema = _enum([
61894
- "idle",
61895
- "cleaning",
61896
- "paused",
61897
- "returning",
61898
- "docked",
61899
- "drying",
61900
- "error"
61901
- ]);
61902
- /**
61903
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61904
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61905
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61906
- * level is currently unknown; the OWNING field being `null` means the
61907
- * hardware has no such tank at all.
61908
- */
61909
- var TankStatusSchema = object({
61910
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61911
- level: number().min(0).max(100).nullable(),
61912
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61913
- status: _enum([
61914
- "ok",
61915
- "low",
61916
- "full"
61917
- ]).nullable()
61918
- });
61919
61969
  object({
61920
61970
  /** Lifecycle state of the vacuum. */
61921
- state: VacuumStateSchema,
61971
+ state: _enum([
61972
+ "idle",
61973
+ "cleaning",
61974
+ "paused",
61975
+ "returning",
61976
+ "docked",
61977
+ "drying",
61978
+ "error"
61979
+ ]),
61922
61980
  /** 0..100 battery percentage. Null when the device has no battery
61923
61981
  * reading. */
61924
61982
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61927,14 +61985,6 @@ object({
61927
61985
  fanSpeed: string().nullable(),
61928
61986
  /** Speed tokens the hardware accepts — drives the UI selector. */
61929
61987
  availableFanSpeeds: array(string()),
61930
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61931
- cleanWater: TankStatusSchema.nullable(),
61932
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61933
- dirtyWater: TankStatusSchema.nullable(),
61934
- /** Detergent tank. Null when the hardware has no detergent tank. */
61935
- detergent: TankStatusSchema.nullable(),
61936
- /** Dust bin. Null when the hardware has no dust bin. */
61937
- dustBin: TankStatusSchema.nullable(),
61938
61988
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61939
61989
  progressPercent: number().min(0).max(100).nullable(),
61940
61990
  /** Current error code (0 / null = no error). */
@@ -64573,6 +64623,12 @@ Object.freeze({
64573
64623
  addonId: null,
64574
64624
  access: "create"
64575
64625
  },
64626
+ "deviceHistory.deleteOrphanSeries": {
64627
+ capName: "device-history",
64628
+ capScope: "system",
64629
+ addonId: null,
64630
+ access: "delete"
64631
+ },
64576
64632
  "deviceHistory.getDeviceEnabled": {
64577
64633
  capName: "device-history",
64578
64634
  capScope: "system",
@@ -64591,6 +64647,12 @@ Object.freeze({
64591
64647
  addonId: null,
64592
64648
  access: "view"
64593
64649
  },
64650
+ "deviceHistory.listOrphanSeries": {
64651
+ capName: "device-history",
64652
+ capScope: "system",
64653
+ addonId: null,
64654
+ access: "view"
64655
+ },
64594
64656
  "deviceHistory.listSeries": {
64595
64657
  capName: "device-history",
64596
64658
  capScope: "system",
@@ -74596,7 +74658,7 @@ var STATE_SUMMARY_VARS = [
74596
74658
  ([...RULE_TEXT], [...COMBINED_ALARM]),
74597
74659
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
74598
74660
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
74599
- ([...RULE_TEXT], [...CONSUMABLE]),
74661
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
74600
74662
  ([...RULE_TEXT], [...TANK]),
74601
74663
  [...RULE_TEXT],
74602
74664
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),