@camstack/addon-export-hap 1.2.175 → 1.2.177

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.
@@ -5481,7 +5481,7 @@ var ZodIssueCode = {
5481
5481
  var ZodFirstPartyTypeKind;
5482
5482
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5483
5483
  //#endregion
5484
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5484
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5485
5485
  /**
5486
5486
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5487
5487
  * window to float samples (D455).
@@ -8365,7 +8365,11 @@ var ContributionSectionSchema = object({
8365
8365
  literal(4)
8366
8366
  ]).optional(),
8367
8367
  tab: string().optional(),
8368
- location: _enum(["settings", "top-tab"]).optional(),
8368
+ location: _enum([
8369
+ "settings",
8370
+ "top-tab",
8371
+ "hero"
8372
+ ]).optional(),
8369
8373
  order: number().optional(),
8370
8374
  fields: array(any())
8371
8375
  });
@@ -14113,7 +14117,11 @@ var ConfigSectionWithValuesSchema = object({
14113
14117
  literal(4)
14114
14118
  ]).optional(),
14115
14119
  tab: string().optional(),
14116
- location: _enum(["settings", "top-tab"]).optional(),
14120
+ location: _enum([
14121
+ "settings",
14122
+ "top-tab",
14123
+ "hero"
14124
+ ]).optional(),
14117
14125
  order: number().optional(),
14118
14126
  fields: array(any())
14119
14127
  });
@@ -17887,6 +17895,52 @@ var TierStatusSchema = object({
17887
17895
  countedAt: number().nullable()
17888
17896
  });
17889
17897
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17898
+ /**
17899
+ * Why a series is orphan. `device-gone`: its device is absent from the
17900
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17901
+ * key is declared by no capability any more (a field a cap removed).
17902
+ */
17903
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17904
+ /** Rows held per stored tier. */
17905
+ var TierRowsSchema = object({
17906
+ raw: number().int(),
17907
+ "5m": number().int(),
17908
+ "1h": number().int(),
17909
+ "1d": number().int()
17910
+ });
17911
+ var OrphanSeriesSchema = object({
17912
+ seriesId: number().int(),
17913
+ deviceId: number().int(),
17914
+ key: string(),
17915
+ scope: string(),
17916
+ /** The metric's display name; `null` when its metric row is gone too. */
17917
+ displayName: string().nullable(),
17918
+ reason: DeviceHistoryOrphanReasonSchema,
17919
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17920
+ missingSince: number().nullable(),
17921
+ firstTs: number(),
17922
+ lastTs: number(),
17923
+ rows: TierRowsSchema
17924
+ });
17925
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17926
+ "not-found",
17927
+ "not-orphan",
17928
+ "failed"
17929
+ ]);
17930
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17931
+ seriesId: number().int(),
17932
+ ok: literal(true),
17933
+ deleted: TierRowsSchema
17934
+ }), object({
17935
+ seriesId: number().int(),
17936
+ ok: literal(false),
17937
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17938
+ })]);
17939
+ var OrphanListSchema = object({
17940
+ series: array(OrphanSeriesSchema).readonly(),
17941
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17942
+ truncated: boolean()
17943
+ });
17890
17944
  var DeviceHistoryStatusSchema = object({
17891
17945
  startedAt: number(),
17892
17946
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17984,7 +18038,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17984
18038
  }), object({ enabled: boolean() }), {
17985
18039
  kind: "mutation",
17986
18040
  auth: "admin"
17987
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
18041
+ }), 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() }), {
18042
+ kind: "mutation",
18043
+ auth: "admin"
18044
+ });
17988
18045
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17989
18046
  object({ state: literal("absent") }),
17990
18047
  object({
@@ -50739,6 +50796,19 @@ var NodeInferenceDeviceSchema = object({
50739
50796
  /** Whether the node's live probe reports the device as usable right now. */
50740
50797
  available: boolean(),
50741
50798
  /**
50799
+ * Is the device on the node at all (D919)? `present` — the live probe
50800
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
50801
+ * its stored settings remain (unplugged, moved to another node): never
50802
+ * eligible, whatever its stored `enabled`, and forgettable with
50803
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
50804
+ * claimed (D315). Optional only for an orchestrator older than the field.
50805
+ */
50806
+ presence: _enum([
50807
+ "present",
50808
+ "absent",
50809
+ "unknown"
50810
+ ]).optional(),
50811
+ /**
50742
50812
  * Whether this device participates in dispatch. AUTO default (spec C2):
50743
50813
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
50744
50814
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50964,7 +51034,13 @@ method(object({
50964
51034
  }), object({ success: literal(true) }), {
50965
51035
  kind: "mutation",
50966
51036
  auth: "admin"
50967
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
51037
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51038
+ agentNodeId: string(),
51039
+ deviceKey: string()
51040
+ }), object({ success: literal(true) }), {
51041
+ kind: "mutation",
51042
+ auth: "admin"
51043
+ }), method(object({ agentNodeId: string() }), object({
50968
51044
  success: literal(true),
50969
51045
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50970
51046
  effectiveModelId: string().nullable(),
@@ -55275,17 +55351,69 @@ object({
55275
55351
  });
55276
55352
  DeviceType.Sensor;
55277
55353
  /**
55278
- * Generic device-consumables capability — surfaces a device's
55279
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
55280
- * descaling cycles, …) with their remaining life and an optional
55281
- * "Replaced" reset action. Device-agnostic: any provider that knows its
55282
- * device tracks consumables can register it; the cap declares no
55283
- * vocabulary of its own — the provider names each item verbatim.
55354
+ * Generic device-consumables capability — the ONE place a device reports what
55355
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
55356
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
55357
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
55358
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
55359
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
55360
+ * its device tracks consumables registers it; the provider names each item
55361
+ * verbatim and says which `kind` it is.
55362
+ *
55363
+ * The admin UI renders it as ONE collapsible section directly under the
55364
+ * device page's hero card (`placement: 'hero'`), for every device bound to
55365
+ * this cap — never drawn by a device type's hero card itself (D915).
55284
55366
  *
55285
55367
  * Like `childLayout`, the cap is INERT until a provider sets items: no
55286
55368
  * provider populates it by guessing (no HA inference). The UI renders a
55287
55369
  * "No consumables reported" placeholder when `items` is empty.
55288
55370
  */
55371
+ /**
55372
+ * What an item IS, which decides which direction is bad:
55373
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
55374
+ * - `supply` — something the device draws from (clean water, detergent,
55375
+ * salt, rinse aid); low or empty is bad.
55376
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
55377
+ * bad.
55378
+ * Absent = `wear`.
55379
+ */
55380
+ var ConsumableKindSchema = _enum([
55381
+ "wear",
55382
+ "supply",
55383
+ "waste"
55384
+ ]);
55385
+ /**
55386
+ * What an item LOOKS like, which decides how a client draws it — independent
55387
+ * of `kind`, which decides which direction is bad:
55388
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
55389
+ * remaining time and a reset.
55390
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
55391
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
55392
+ * a stepped level and "refill".
55393
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
55394
+ * that warns when full.
55395
+ * Absent = derived from the kind ({@link consumableFormOf}).
55396
+ */
55397
+ var ConsumableFormSchema = _enum([
55398
+ "part",
55399
+ "tank",
55400
+ "product",
55401
+ "bin"
55402
+ ]);
55403
+ /** The provider's own discrete verdict on an item. */
55404
+ var ConsumableStatusSchema = _enum([
55405
+ "ok",
55406
+ "low",
55407
+ "empty",
55408
+ "full",
55409
+ "replace"
55410
+ ]);
55411
+ _enum([
55412
+ "ok",
55413
+ "low",
55414
+ "empty",
55415
+ "full"
55416
+ ]);
55289
55417
  /** Units a remaining-life counter is reported in. Closed: the panel renders
55290
55418
  * each. */
55291
55419
  var ConsumableRemainingUnitSchema = _enum([
@@ -55305,10 +55433,14 @@ var ConsumablesStatusSchema = object({
55305
55433
  key: string().min(1),
55306
55434
  /** Display name. */
55307
55435
  label: string().min(1),
55308
- /** Remaining life % when known (0..100). */
55436
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
55309
55437
  level: number().min(0).max(100).nullable(),
55310
- /** Discrete state when known (binary mode). */
55311
- status: _enum(["ok", "replace"]).nullable(),
55438
+ /** The provider's discrete verdict when known (binary mode). */
55439
+ status: ConsumableStatusSchema.nullable(),
55440
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
55441
+ kind: ConsumableKindSchema.optional(),
55442
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
55443
+ form: ConsumableFormSchema.optional(),
55312
55444
  /** Ms epoch of the last replace, when known. */
55313
55445
  lastResetAt: number().nullable(),
55314
55446
  /** Whether `reset()` is meaningful for this item. */
@@ -55555,8 +55687,9 @@ object({
55555
55687
  status: DeviceStatusSchema
55556
55688
  });
55557
55689
  /**
55558
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
55559
- * consumable levels (salt, rinse aid) and common program options.
55690
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
55691
+ * common program options. Salt and rinse aid are NOT here: they are items of
55692
+ * the device's `consumables` cap, like every other device's (D915).
55560
55693
  *
55561
55694
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
55562
55695
  * by any integration that exposes the same program / option surface.
@@ -55604,11 +55737,6 @@ var DishwasherAvailabilitySchema = _enum([
55604
55737
  "offline",
55605
55738
  "description-missing"
55606
55739
  ]);
55607
- var DishwasherConsumableLevelSchema = _enum([
55608
- "ok",
55609
- "low",
55610
- "empty"
55611
- ]);
55612
55740
  object({
55613
55741
  availability: DishwasherAvailabilitySchema,
55614
55742
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55641,8 +55769,6 @@ object({
55641
55769
  powerOn: boolean().nullable(),
55642
55770
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55643
55771
  powerState: string().nullable(),
55644
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55645
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55646
55772
  /**
55647
55773
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55648
55774
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -57698,7 +57824,7 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
57698
57824
  enabled: boolean()
57699
57825
  }), _void(), {
57700
57826
  kind: "mutation",
57701
- auth: "admin"
57827
+ auth: "protected"
57702
57828
  }), object({
57703
57829
  deviceId: number(),
57704
57830
  enabled: boolean(),
@@ -58188,6 +58314,13 @@ var TopologyNodeSchema = object({
58188
58314
  cpuModel: string().nullable(),
58189
58315
  cpuCores: number(),
58190
58316
  memoryMB: number(),
58317
+ /**
58318
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
58319
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
58320
+ * about whether its hardware is there (a Coral delegate stays installed
58321
+ * after the stick leaves, D919); the live device set is
58322
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
58323
+ */
58191
58324
  engines: array(string()).readonly(),
58192
58325
  isHub: boolean(),
58193
58326
  isOnline: boolean(),
@@ -59152,7 +59285,28 @@ var ResolvedInferenceConfigSchema = object({
59152
59285
  format: ModelFormatSchema,
59153
59286
  reason: string()
59154
59287
  });
59155
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
59288
+ /**
59289
+ * The answer of an accelerator rescan (D919): the node's device list after
59290
+ * the re-probe, what changed, and the evidence that decided the Coral answer
59291
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
59292
+ * bus, the installed-delegate fallback, or nothing).
59293
+ */
59294
+ var AcceleratorRescanSchema = object({
59295
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
59296
+ appeared: array(string()).readonly(),
59297
+ disappeared: array(string()).readonly(),
59298
+ usbBus: _enum(["observed", "unobservable"]),
59299
+ decidedBy: _enum([
59300
+ "usb-ids",
59301
+ "pci",
59302
+ "delegate-fallback",
59303
+ "none"
59304
+ ])
59305
+ });
59306
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
59307
+ kind: "mutation",
59308
+ auth: "admin"
59309
+ });
59156
59310
  object({
59157
59311
  /** Instantaneous power draw in watts. */
59158
59312
  watts: number().optional(),
@@ -62466,60 +62620,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62466
62620
  auth: "admin",
62467
62621
  access: "delete"
62468
62622
  });
62469
- /**
62470
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
62471
- * cleaning lifecycle plus a return-to-base / locate surface and an
62472
- * optional fan-speed selector.
62473
- *
62474
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
62475
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
62476
- * (0..100) is nullable — some vacuums don't report a battery
62477
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
62478
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
62479
- * tokens the hardware accepts so the UI renders only supported choices.
62480
- *
62481
- * The `setFanSpeed` method takes the bare `speed` token — the provider
62482
- * validates it against the vacuum's own list. `locate` triggers the
62483
- * find-me chirp; `returnToBase` sends it home.
62484
- *
62485
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
62486
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
62487
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
62488
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
62489
- * only when the device has no such tank at all, and use a `TankStatus`
62490
- * with both inner fields `null` when the tank exists but its level is
62491
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
62492
- * so the HA provider leaves all four `null`.
62493
- */
62494
- var VacuumStateSchema = _enum([
62495
- "idle",
62496
- "cleaning",
62497
- "paused",
62498
- "returning",
62499
- "docked",
62500
- "drying",
62501
- "error"
62502
- ]);
62503
- /**
62504
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
62505
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
62506
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
62507
- * level is currently unknown; the OWNING field being `null` means the
62508
- * hardware has no such tank at all.
62509
- */
62510
- var TankStatusSchema = object({
62511
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
62512
- level: number().min(0).max(100).nullable(),
62513
- /** Discrete state when the hardware is binary-mode; null otherwise. */
62514
- status: _enum([
62515
- "ok",
62516
- "low",
62517
- "full"
62518
- ]).nullable()
62519
- });
62520
62623
  object({
62521
62624
  /** Lifecycle state of the vacuum. */
62522
- state: VacuumStateSchema,
62625
+ state: _enum([
62626
+ "idle",
62627
+ "cleaning",
62628
+ "paused",
62629
+ "returning",
62630
+ "docked",
62631
+ "drying",
62632
+ "error"
62633
+ ]),
62523
62634
  /** 0..100 battery percentage. Null when the device has no battery
62524
62635
  * reading. */
62525
62636
  batteryLevel: number().min(0).max(100).nullable(),
@@ -62528,14 +62639,6 @@ object({
62528
62639
  fanSpeed: string().nullable(),
62529
62640
  /** Speed tokens the hardware accepts — drives the UI selector. */
62530
62641
  availableFanSpeeds: array(string()),
62531
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
62532
- cleanWater: TankStatusSchema.nullable(),
62533
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
62534
- dirtyWater: TankStatusSchema.nullable(),
62535
- /** Detergent tank. Null when the hardware has no detergent tank. */
62536
- detergent: TankStatusSchema.nullable(),
62537
- /** Dust bin. Null when the hardware has no dust bin. */
62538
- dustBin: TankStatusSchema.nullable(),
62539
62642
  /** 0..100 cleaning-completion percentage of the current task, or null. */
62540
62643
  progressPercent: number().min(0).max(100).nullable(),
62541
62644
  /** Current error code (0 / null = no error). */
@@ -65076,6 +65179,12 @@ Object.freeze({
65076
65179
  addonId: null,
65077
65180
  access: "create"
65078
65181
  },
65182
+ "deviceHistory.deleteOrphanSeries": {
65183
+ capName: "device-history",
65184
+ capScope: "system",
65185
+ addonId: null,
65186
+ access: "delete"
65187
+ },
65079
65188
  "deviceHistory.getDeviceEnabled": {
65080
65189
  capName: "device-history",
65081
65190
  capScope: "system",
@@ -65094,6 +65203,12 @@ Object.freeze({
65094
65203
  addonId: null,
65095
65204
  access: "view"
65096
65205
  },
65206
+ "deviceHistory.listOrphanSeries": {
65207
+ capName: "device-history",
65208
+ capScope: "system",
65209
+ addonId: null,
65210
+ access: "view"
65211
+ },
65097
65212
  "deviceHistory.listSeries": {
65098
65213
  capName: "device-history",
65099
65214
  capScope: "system",
@@ -68718,6 +68833,12 @@ Object.freeze({
68718
68833
  addonId: null,
68719
68834
  access: "delete"
68720
68835
  },
68836
+ "pipelineOrchestrator.forgetInferenceDevice": {
68837
+ capName: "pipeline-orchestrator",
68838
+ capScope: "system",
68839
+ addonId: null,
68840
+ access: "delete"
68841
+ },
68721
68842
  "pipelineOrchestrator.getAgentLoad": {
68722
68843
  capName: "pipeline-orchestrator",
68723
68844
  capScope: "system",
@@ -69294,6 +69415,12 @@ Object.freeze({
69294
69415
  addonId: null,
69295
69416
  access: "view"
69296
69417
  },
69418
+ "platformProbe.rescanAccelerators": {
69419
+ capName: "platform-probe",
69420
+ capScope: "system",
69421
+ addonId: null,
69422
+ access: "create"
69423
+ },
69297
69424
  "platformProbe.resolveHwAccel": {
69298
69425
  capName: "platform-probe",
69299
69426
  capScope: "system",
@@ -75099,7 +75226,7 @@ var STATE_SUMMARY_VARS = [
75099
75226
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75100
75227
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75101
75228
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75102
- ([...RULE_TEXT], [...CONSUMABLE]),
75229
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75103
75230
  ([...RULE_TEXT], [...TANK]),
75104
75231
  [...RULE_TEXT],
75105
75232
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
@@ -5471,7 +5471,7 @@ var ZodIssueCode = {
5471
5471
  var ZodFirstPartyTypeKind;
5472
5472
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5473
5473
  //#endregion
5474
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5474
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5475
5475
  /**
5476
5476
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5477
5477
  * window to float samples (D455).
@@ -8355,7 +8355,11 @@ var ContributionSectionSchema = object({
8355
8355
  literal(4)
8356
8356
  ]).optional(),
8357
8357
  tab: string().optional(),
8358
- location: _enum(["settings", "top-tab"]).optional(),
8358
+ location: _enum([
8359
+ "settings",
8360
+ "top-tab",
8361
+ "hero"
8362
+ ]).optional(),
8359
8363
  order: number().optional(),
8360
8364
  fields: array(any())
8361
8365
  });
@@ -14103,7 +14107,11 @@ var ConfigSectionWithValuesSchema = object({
14103
14107
  literal(4)
14104
14108
  ]).optional(),
14105
14109
  tab: string().optional(),
14106
- location: _enum(["settings", "top-tab"]).optional(),
14110
+ location: _enum([
14111
+ "settings",
14112
+ "top-tab",
14113
+ "hero"
14114
+ ]).optional(),
14107
14115
  order: number().optional(),
14108
14116
  fields: array(any())
14109
14117
  });
@@ -17877,6 +17885,52 @@ var TierStatusSchema = object({
17877
17885
  countedAt: number().nullable()
17878
17886
  });
17879
17887
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
17888
+ /**
17889
+ * Why a series is orphan. `device-gone`: its device is absent from the
17890
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
17891
+ * key is declared by no capability any more (a field a cap removed).
17892
+ */
17893
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
17894
+ /** Rows held per stored tier. */
17895
+ var TierRowsSchema = object({
17896
+ raw: number().int(),
17897
+ "5m": number().int(),
17898
+ "1h": number().int(),
17899
+ "1d": number().int()
17900
+ });
17901
+ var OrphanSeriesSchema = object({
17902
+ seriesId: number().int(),
17903
+ deviceId: number().int(),
17904
+ key: string(),
17905
+ scope: string(),
17906
+ /** The metric's display name; `null` when its metric row is gone too. */
17907
+ displayName: string().nullable(),
17908
+ reason: DeviceHistoryOrphanReasonSchema,
17909
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
17910
+ missingSince: number().nullable(),
17911
+ firstTs: number(),
17912
+ lastTs: number(),
17913
+ rows: TierRowsSchema
17914
+ });
17915
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17916
+ "not-found",
17917
+ "not-orphan",
17918
+ "failed"
17919
+ ]);
17920
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17921
+ seriesId: number().int(),
17922
+ ok: literal(true),
17923
+ deleted: TierRowsSchema
17924
+ }), object({
17925
+ seriesId: number().int(),
17926
+ ok: literal(false),
17927
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17928
+ })]);
17929
+ var OrphanListSchema = object({
17930
+ series: array(OrphanSeriesSchema).readonly(),
17931
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17932
+ truncated: boolean()
17933
+ });
17880
17934
  var DeviceHistoryStatusSchema = object({
17881
17935
  startedAt: number(),
17882
17936
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17974,7 +18028,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17974
18028
  }), object({ enabled: boolean() }), {
17975
18029
  kind: "mutation",
17976
18030
  auth: "admin"
17977
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
18031
+ }), 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() }), {
18032
+ kind: "mutation",
18033
+ auth: "admin"
18034
+ });
17978
18035
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17979
18036
  object({ state: literal("absent") }),
17980
18037
  object({
@@ -50729,6 +50786,19 @@ var NodeInferenceDeviceSchema = object({
50729
50786
  /** Whether the node's live probe reports the device as usable right now. */
50730
50787
  available: boolean(),
50731
50788
  /**
50789
+ * Is the device on the node at all (D919)? `present` — the live probe
50790
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
50791
+ * its stored settings remain (unplugged, moved to another node): never
50792
+ * eligible, whatever its stored `enabled`, and forgettable with
50793
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
50794
+ * claimed (D315). Optional only for an orchestrator older than the field.
50795
+ */
50796
+ presence: _enum([
50797
+ "present",
50798
+ "absent",
50799
+ "unknown"
50800
+ ]).optional(),
50801
+ /**
50732
50802
  * Whether this device participates in dispatch. AUTO default (spec C2):
50733
50803
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
50734
50804
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50954,7 +51024,13 @@ method(object({
50954
51024
  }), object({ success: literal(true) }), {
50955
51025
  kind: "mutation",
50956
51026
  auth: "admin"
50957
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
51027
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
51028
+ agentNodeId: string(),
51029
+ deviceKey: string()
51030
+ }), object({ success: literal(true) }), {
51031
+ kind: "mutation",
51032
+ auth: "admin"
51033
+ }), method(object({ agentNodeId: string() }), object({
50958
51034
  success: literal(true),
50959
51035
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50960
51036
  effectiveModelId: string().nullable(),
@@ -55265,17 +55341,69 @@ object({
55265
55341
  });
55266
55342
  DeviceType.Sensor;
55267
55343
  /**
55268
- * Generic device-consumables capability — surfaces a device's
55269
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
55270
- * descaling cycles, …) with their remaining life and an optional
55271
- * "Replaced" reset action. Device-agnostic: any provider that knows its
55272
- * device tracks consumables can register it; the cap declares no
55273
- * vocabulary of its own — the provider names each item verbatim.
55344
+ * Generic device-consumables capability — the ONE place a device reports what
55345
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
55346
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
55347
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
55348
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
55349
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
55350
+ * its device tracks consumables registers it; the provider names each item
55351
+ * verbatim and says which `kind` it is.
55352
+ *
55353
+ * The admin UI renders it as ONE collapsible section directly under the
55354
+ * device page's hero card (`placement: 'hero'`), for every device bound to
55355
+ * this cap — never drawn by a device type's hero card itself (D915).
55274
55356
  *
55275
55357
  * Like `childLayout`, the cap is INERT until a provider sets items: no
55276
55358
  * provider populates it by guessing (no HA inference). The UI renders a
55277
55359
  * "No consumables reported" placeholder when `items` is empty.
55278
55360
  */
55361
+ /**
55362
+ * What an item IS, which decides which direction is bad:
55363
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
55364
+ * - `supply` — something the device draws from (clean water, detergent,
55365
+ * salt, rinse aid); low or empty is bad.
55366
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
55367
+ * bad.
55368
+ * Absent = `wear`.
55369
+ */
55370
+ var ConsumableKindSchema = _enum([
55371
+ "wear",
55372
+ "supply",
55373
+ "waste"
55374
+ ]);
55375
+ /**
55376
+ * What an item LOOKS like, which decides how a client draws it — independent
55377
+ * of `kind`, which decides which direction is bad:
55378
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
55379
+ * remaining time and a reset.
55380
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
55381
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
55382
+ * a stepped level and "refill".
55383
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
55384
+ * that warns when full.
55385
+ * Absent = derived from the kind ({@link consumableFormOf}).
55386
+ */
55387
+ var ConsumableFormSchema = _enum([
55388
+ "part",
55389
+ "tank",
55390
+ "product",
55391
+ "bin"
55392
+ ]);
55393
+ /** The provider's own discrete verdict on an item. */
55394
+ var ConsumableStatusSchema = _enum([
55395
+ "ok",
55396
+ "low",
55397
+ "empty",
55398
+ "full",
55399
+ "replace"
55400
+ ]);
55401
+ _enum([
55402
+ "ok",
55403
+ "low",
55404
+ "empty",
55405
+ "full"
55406
+ ]);
55279
55407
  /** Units a remaining-life counter is reported in. Closed: the panel renders
55280
55408
  * each. */
55281
55409
  var ConsumableRemainingUnitSchema = _enum([
@@ -55295,10 +55423,14 @@ var ConsumablesStatusSchema = object({
55295
55423
  key: string().min(1),
55296
55424
  /** Display name. */
55297
55425
  label: string().min(1),
55298
- /** Remaining life % when known (0..100). */
55426
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
55299
55427
  level: number().min(0).max(100).nullable(),
55300
- /** Discrete state when known (binary mode). */
55301
- status: _enum(["ok", "replace"]).nullable(),
55428
+ /** The provider's discrete verdict when known (binary mode). */
55429
+ status: ConsumableStatusSchema.nullable(),
55430
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
55431
+ kind: ConsumableKindSchema.optional(),
55432
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
55433
+ form: ConsumableFormSchema.optional(),
55302
55434
  /** Ms epoch of the last replace, when known. */
55303
55435
  lastResetAt: number().nullable(),
55304
55436
  /** Whether `reset()` is meaningful for this item. */
@@ -55545,8 +55677,9 @@ object({
55545
55677
  status: DeviceStatusSchema
55546
55678
  });
55547
55679
  /**
55548
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
55549
- * consumable levels (salt, rinse aid) and common program options.
55680
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
55681
+ * common program options. Salt and rinse aid are NOT here: they are items of
55682
+ * the device's `consumables` cap, like every other device's (D915).
55550
55683
  *
55551
55684
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
55552
55685
  * by any integration that exposes the same program / option surface.
@@ -55594,11 +55727,6 @@ var DishwasherAvailabilitySchema = _enum([
55594
55727
  "offline",
55595
55728
  "description-missing"
55596
55729
  ]);
55597
- var DishwasherConsumableLevelSchema = _enum([
55598
- "ok",
55599
- "low",
55600
- "empty"
55601
- ]);
55602
55730
  object({
55603
55731
  availability: DishwasherAvailabilitySchema,
55604
55732
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -55631,8 +55759,6 @@ object({
55631
55759
  powerOn: boolean().nullable(),
55632
55760
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
55633
55761
  powerState: string().nullable(),
55634
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
55635
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55636
55762
  /**
55637
55763
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55638
55764
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -57688,7 +57814,7 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
57688
57814
  enabled: boolean()
57689
57815
  }), _void(), {
57690
57816
  kind: "mutation",
57691
- auth: "admin"
57817
+ auth: "protected"
57692
57818
  }), object({
57693
57819
  deviceId: number(),
57694
57820
  enabled: boolean(),
@@ -58178,6 +58304,13 @@ var TopologyNodeSchema = object({
58178
58304
  cpuModel: string().nullable(),
58179
58305
  cpuCores: number(),
58180
58306
  memoryMB: number(),
58307
+ /**
58308
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
58309
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
58310
+ * about whether its hardware is there (a Coral delegate stays installed
58311
+ * after the stick leaves, D919); the live device set is
58312
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
58313
+ */
58181
58314
  engines: array(string()).readonly(),
58182
58315
  isHub: boolean(),
58183
58316
  isOnline: boolean(),
@@ -59142,7 +59275,28 @@ var ResolvedInferenceConfigSchema = object({
59142
59275
  format: ModelFormatSchema,
59143
59276
  reason: string()
59144
59277
  });
59145
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
59278
+ /**
59279
+ * The answer of an accelerator rescan (D919): the node's device list after
59280
+ * the re-probe, what changed, and the evidence that decided the Coral answer
59281
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
59282
+ * bus, the installed-delegate fallback, or nothing).
59283
+ */
59284
+ var AcceleratorRescanSchema = object({
59285
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
59286
+ appeared: array(string()).readonly(),
59287
+ disappeared: array(string()).readonly(),
59288
+ usbBus: _enum(["observed", "unobservable"]),
59289
+ decidedBy: _enum([
59290
+ "usb-ids",
59291
+ "pci",
59292
+ "delegate-fallback",
59293
+ "none"
59294
+ ])
59295
+ });
59296
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
59297
+ kind: "mutation",
59298
+ auth: "admin"
59299
+ });
59146
59300
  object({
59147
59301
  /** Instantaneous power draw in watts. */
59148
59302
  watts: number().optional(),
@@ -62456,60 +62610,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62456
62610
  auth: "admin",
62457
62611
  access: "delete"
62458
62612
  });
62459
- /**
62460
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
62461
- * cleaning lifecycle plus a return-to-base / locate surface and an
62462
- * optional fan-speed selector.
62463
- *
62464
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
62465
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
62466
- * (0..100) is nullable — some vacuums don't report a battery
62467
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
62468
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
62469
- * tokens the hardware accepts so the UI renders only supported choices.
62470
- *
62471
- * The `setFanSpeed` method takes the bare `speed` token — the provider
62472
- * validates it against the vacuum's own list. `locate` triggers the
62473
- * find-me chirp; `returnToBase` sends it home.
62474
- *
62475
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
62476
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
62477
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
62478
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
62479
- * only when the device has no such tank at all, and use a `TankStatus`
62480
- * with both inner fields `null` when the tank exists but its level is
62481
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
62482
- * so the HA provider leaves all four `null`.
62483
- */
62484
- var VacuumStateSchema = _enum([
62485
- "idle",
62486
- "cleaning",
62487
- "paused",
62488
- "returning",
62489
- "docked",
62490
- "drying",
62491
- "error"
62492
- ]);
62493
- /**
62494
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
62495
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
62496
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
62497
- * level is currently unknown; the OWNING field being `null` means the
62498
- * hardware has no such tank at all.
62499
- */
62500
- var TankStatusSchema = object({
62501
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
62502
- level: number().min(0).max(100).nullable(),
62503
- /** Discrete state when the hardware is binary-mode; null otherwise. */
62504
- status: _enum([
62505
- "ok",
62506
- "low",
62507
- "full"
62508
- ]).nullable()
62509
- });
62510
62613
  object({
62511
62614
  /** Lifecycle state of the vacuum. */
62512
- state: VacuumStateSchema,
62615
+ state: _enum([
62616
+ "idle",
62617
+ "cleaning",
62618
+ "paused",
62619
+ "returning",
62620
+ "docked",
62621
+ "drying",
62622
+ "error"
62623
+ ]),
62513
62624
  /** 0..100 battery percentage. Null when the device has no battery
62514
62625
  * reading. */
62515
62626
  batteryLevel: number().min(0).max(100).nullable(),
@@ -62518,14 +62629,6 @@ object({
62518
62629
  fanSpeed: string().nullable(),
62519
62630
  /** Speed tokens the hardware accepts — drives the UI selector. */
62520
62631
  availableFanSpeeds: array(string()),
62521
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
62522
- cleanWater: TankStatusSchema.nullable(),
62523
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
62524
- dirtyWater: TankStatusSchema.nullable(),
62525
- /** Detergent tank. Null when the hardware has no detergent tank. */
62526
- detergent: TankStatusSchema.nullable(),
62527
- /** Dust bin. Null when the hardware has no dust bin. */
62528
- dustBin: TankStatusSchema.nullable(),
62529
62632
  /** 0..100 cleaning-completion percentage of the current task, or null. */
62530
62633
  progressPercent: number().min(0).max(100).nullable(),
62531
62634
  /** Current error code (0 / null = no error). */
@@ -65066,6 +65169,12 @@ Object.freeze({
65066
65169
  addonId: null,
65067
65170
  access: "create"
65068
65171
  },
65172
+ "deviceHistory.deleteOrphanSeries": {
65173
+ capName: "device-history",
65174
+ capScope: "system",
65175
+ addonId: null,
65176
+ access: "delete"
65177
+ },
65069
65178
  "deviceHistory.getDeviceEnabled": {
65070
65179
  capName: "device-history",
65071
65180
  capScope: "system",
@@ -65084,6 +65193,12 @@ Object.freeze({
65084
65193
  addonId: null,
65085
65194
  access: "view"
65086
65195
  },
65196
+ "deviceHistory.listOrphanSeries": {
65197
+ capName: "device-history",
65198
+ capScope: "system",
65199
+ addonId: null,
65200
+ access: "view"
65201
+ },
65087
65202
  "deviceHistory.listSeries": {
65088
65203
  capName: "device-history",
65089
65204
  capScope: "system",
@@ -68708,6 +68823,12 @@ Object.freeze({
68708
68823
  addonId: null,
68709
68824
  access: "delete"
68710
68825
  },
68826
+ "pipelineOrchestrator.forgetInferenceDevice": {
68827
+ capName: "pipeline-orchestrator",
68828
+ capScope: "system",
68829
+ addonId: null,
68830
+ access: "delete"
68831
+ },
68711
68832
  "pipelineOrchestrator.getAgentLoad": {
68712
68833
  capName: "pipeline-orchestrator",
68713
68834
  capScope: "system",
@@ -69284,6 +69405,12 @@ Object.freeze({
69284
69405
  addonId: null,
69285
69406
  access: "view"
69286
69407
  },
69408
+ "platformProbe.rescanAccelerators": {
69409
+ capName: "platform-probe",
69410
+ capScope: "system",
69411
+ addonId: null,
69412
+ access: "create"
69413
+ },
69287
69414
  "platformProbe.resolveHwAccel": {
69288
69415
  capName: "platform-probe",
69289
69416
  capScope: "system",
@@ -75089,7 +75216,7 @@ var STATE_SUMMARY_VARS = [
75089
75216
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75090
75217
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75091
75218
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75092
- ([...RULE_TEXT], [...CONSUMABLE]),
75219
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75093
75220
  ([...RULE_TEXT], [...TANK]),
75094
75221
  [...RULE_TEXT],
75095
75222
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.175",
3
+ "version": "1.2.177",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",