@camstack/addon-provider-onvif 1.2.145 → 1.2.147

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 (3) hide show
  1. package/dist/addon.js +213 -86
  2. package/dist/addon.mjs +213 -86
  3. package/package.json +1 -1
package/dist/addon.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
  });
@@ -13188,7 +13192,11 @@ var ConfigSectionWithValuesSchema = object({
13188
13192
  literal(4)
13189
13193
  ]).optional(),
13190
13194
  tab: string().optional(),
13191
- location: _enum(["settings", "top-tab"]).optional(),
13195
+ location: _enum([
13196
+ "settings",
13197
+ "top-tab",
13198
+ "hero"
13199
+ ]).optional(),
13192
13200
  order: number().optional(),
13193
13201
  fields: array(any())
13194
13202
  });
@@ -16962,6 +16970,52 @@ var TierStatusSchema = object({
16962
16970
  countedAt: number().nullable()
16963
16971
  });
16964
16972
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16973
+ /**
16974
+ * Why a series is orphan. `device-gone`: its device is absent from the
16975
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
16976
+ * key is declared by no capability any more (a field a cap removed).
16977
+ */
16978
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
16979
+ /** Rows held per stored tier. */
16980
+ var TierRowsSchema = object({
16981
+ raw: number().int(),
16982
+ "5m": number().int(),
16983
+ "1h": number().int(),
16984
+ "1d": number().int()
16985
+ });
16986
+ var OrphanSeriesSchema = object({
16987
+ seriesId: number().int(),
16988
+ deviceId: number().int(),
16989
+ key: string(),
16990
+ scope: string(),
16991
+ /** The metric's display name; `null` when its metric row is gone too. */
16992
+ displayName: string().nullable(),
16993
+ reason: DeviceHistoryOrphanReasonSchema,
16994
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
16995
+ missingSince: number().nullable(),
16996
+ firstTs: number(),
16997
+ lastTs: number(),
16998
+ rows: TierRowsSchema
16999
+ });
17000
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17001
+ "not-found",
17002
+ "not-orphan",
17003
+ "failed"
17004
+ ]);
17005
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17006
+ seriesId: number().int(),
17007
+ ok: literal(true),
17008
+ deleted: TierRowsSchema
17009
+ }), object({
17010
+ seriesId: number().int(),
17011
+ ok: literal(false),
17012
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17013
+ })]);
17014
+ var OrphanListSchema = object({
17015
+ series: array(OrphanSeriesSchema).readonly(),
17016
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17017
+ truncated: boolean()
17018
+ });
16965
17019
  var DeviceHistoryStatusSchema = object({
16966
17020
  startedAt: number(),
16967
17021
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17059,7 +17113,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17059
17113
  }), object({ enabled: boolean() }), {
17060
17114
  kind: "mutation",
17061
17115
  auth: "admin"
17062
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17116
+ }), 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() }), {
17117
+ kind: "mutation",
17118
+ auth: "admin"
17119
+ });
17063
17120
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17064
17121
  object({ state: literal("absent") }),
17065
17122
  object({
@@ -49927,6 +49984,19 @@ var NodeInferenceDeviceSchema = object({
49927
49984
  /** Whether the node's live probe reports the device as usable right now. */
49928
49985
  available: boolean(),
49929
49986
  /**
49987
+ * Is the device on the node at all (D919)? `present` — the live probe
49988
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
49989
+ * its stored settings remain (unplugged, moved to another node): never
49990
+ * eligible, whatever its stored `enabled`, and forgettable with
49991
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
49992
+ * claimed (D315). Optional only for an orchestrator older than the field.
49993
+ */
49994
+ presence: _enum([
49995
+ "present",
49996
+ "absent",
49997
+ "unknown"
49998
+ ]).optional(),
49999
+ /**
49930
50000
  * Whether this device participates in dispatch. AUTO default (spec C2):
49931
50001
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
49932
50002
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50152,7 +50222,13 @@ method(object({
50152
50222
  }), object({ success: literal(true) }), {
50153
50223
  kind: "mutation",
50154
50224
  auth: "admin"
50155
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
50225
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50226
+ agentNodeId: string(),
50227
+ deviceKey: string()
50228
+ }), object({ success: literal(true) }), {
50229
+ kind: "mutation",
50230
+ auth: "admin"
50231
+ }), method(object({ agentNodeId: string() }), object({
50156
50232
  success: literal(true),
50157
50233
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50158
50234
  effectiveModelId: string().nullable(),
@@ -54366,17 +54442,69 @@ object({
54366
54442
  });
54367
54443
  DeviceType.Sensor;
54368
54444
  /**
54369
- * Generic device-consumables capability — surfaces a device's
54370
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54371
- * descaling cycles, …) with their remaining life and an optional
54372
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54373
- * device tracks consumables can register it; the cap declares no
54374
- * vocabulary of its own — the provider names each item verbatim.
54445
+ * Generic device-consumables capability — the ONE place a device reports what
54446
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54447
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54448
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54449
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54450
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54451
+ * its device tracks consumables registers it; the provider names each item
54452
+ * verbatim and says which `kind` it is.
54453
+ *
54454
+ * The admin UI renders it as ONE collapsible section directly under the
54455
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54456
+ * this cap — never drawn by a device type's hero card itself (D915).
54375
54457
  *
54376
54458
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54377
54459
  * provider populates it by guessing (no HA inference). The UI renders a
54378
54460
  * "No consumables reported" placeholder when `items` is empty.
54379
54461
  */
54462
+ /**
54463
+ * What an item IS, which decides which direction is bad:
54464
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54465
+ * - `supply` — something the device draws from (clean water, detergent,
54466
+ * salt, rinse aid); low or empty is bad.
54467
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54468
+ * bad.
54469
+ * Absent = `wear`.
54470
+ */
54471
+ var ConsumableKindSchema = _enum([
54472
+ "wear",
54473
+ "supply",
54474
+ "waste"
54475
+ ]);
54476
+ /**
54477
+ * What an item LOOKS like, which decides how a client draws it — independent
54478
+ * of `kind`, which decides which direction is bad:
54479
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54480
+ * remaining time and a reset.
54481
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54482
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54483
+ * a stepped level and "refill".
54484
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54485
+ * that warns when full.
54486
+ * Absent = derived from the kind ({@link consumableFormOf}).
54487
+ */
54488
+ var ConsumableFormSchema = _enum([
54489
+ "part",
54490
+ "tank",
54491
+ "product",
54492
+ "bin"
54493
+ ]);
54494
+ /** The provider's own discrete verdict on an item. */
54495
+ var ConsumableStatusSchema = _enum([
54496
+ "ok",
54497
+ "low",
54498
+ "empty",
54499
+ "full",
54500
+ "replace"
54501
+ ]);
54502
+ _enum([
54503
+ "ok",
54504
+ "low",
54505
+ "empty",
54506
+ "full"
54507
+ ]);
54380
54508
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54381
54509
  * each. */
54382
54510
  var ConsumableRemainingUnitSchema = _enum([
@@ -54396,10 +54524,14 @@ var ConsumablesStatusSchema = object({
54396
54524
  key: string().min(1),
54397
54525
  /** Display name. */
54398
54526
  label: string().min(1),
54399
- /** Remaining life % when known (0..100). */
54527
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54400
54528
  level: number().min(0).max(100).nullable(),
54401
- /** Discrete state when known (binary mode). */
54402
- status: _enum(["ok", "replace"]).nullable(),
54529
+ /** The provider's discrete verdict when known (binary mode). */
54530
+ status: ConsumableStatusSchema.nullable(),
54531
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54532
+ kind: ConsumableKindSchema.optional(),
54533
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54534
+ form: ConsumableFormSchema.optional(),
54403
54535
  /** Ms epoch of the last replace, when known. */
54404
54536
  lastResetAt: number().nullable(),
54405
54537
  /** Whether `reset()` is meaningful for this item. */
@@ -54634,8 +54766,9 @@ object({
54634
54766
  status: DeviceStatusSchema
54635
54767
  });
54636
54768
  /**
54637
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54638
- * consumable levels (salt, rinse aid) and common program options.
54769
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54770
+ * common program options. Salt and rinse aid are NOT here: they are items of
54771
+ * the device's `consumables` cap, like every other device's (D915).
54639
54772
  *
54640
54773
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54641
54774
  * by any integration that exposes the same program / option surface.
@@ -54683,11 +54816,6 @@ var DishwasherAvailabilitySchema = _enum([
54683
54816
  "offline",
54684
54817
  "description-missing"
54685
54818
  ]);
54686
- var DishwasherConsumableLevelSchema = _enum([
54687
- "ok",
54688
- "low",
54689
- "empty"
54690
- ]);
54691
54819
  object({
54692
54820
  availability: DishwasherAvailabilitySchema,
54693
54821
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54720,8 +54848,6 @@ object({
54720
54848
  powerOn: boolean().nullable(),
54721
54849
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54722
54850
  powerState: string().nullable(),
54723
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54724
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54725
54851
  /**
54726
54852
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54727
54853
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -56761,7 +56887,7 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
56761
56887
  enabled: boolean()
56762
56888
  }), _void(), {
56763
56889
  kind: "mutation",
56764
- auth: "admin"
56890
+ auth: "protected"
56765
56891
  }), object({
56766
56892
  deviceId: number(),
56767
56893
  enabled: boolean(),
@@ -57251,6 +57377,13 @@ var TopologyNodeSchema = object({
57251
57377
  cpuModel: string().nullable(),
57252
57378
  cpuCores: number(),
57253
57379
  memoryMB: number(),
57380
+ /**
57381
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
57382
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
57383
+ * about whether its hardware is there (a Coral delegate stays installed
57384
+ * after the stick leaves, D919); the live device set is
57385
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
57386
+ */
57254
57387
  engines: array(string()).readonly(),
57255
57388
  isHub: boolean(),
57256
57389
  isOnline: boolean(),
@@ -58215,7 +58348,28 @@ var ResolvedInferenceConfigSchema = object({
58215
58348
  format: ModelFormatSchema,
58216
58349
  reason: string()
58217
58350
  });
58218
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
58351
+ /**
58352
+ * The answer of an accelerator rescan (D919): the node's device list after
58353
+ * the re-probe, what changed, and the evidence that decided the Coral answer
58354
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
58355
+ * bus, the installed-delegate fallback, or nothing).
58356
+ */
58357
+ var AcceleratorRescanSchema = object({
58358
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
58359
+ appeared: array(string()).readonly(),
58360
+ disappeared: array(string()).readonly(),
58361
+ usbBus: _enum(["observed", "unobservable"]),
58362
+ decidedBy: _enum([
58363
+ "usb-ids",
58364
+ "pci",
58365
+ "delegate-fallback",
58366
+ "none"
58367
+ ])
58368
+ });
58369
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
58370
+ kind: "mutation",
58371
+ auth: "admin"
58372
+ });
58219
58373
  object({
58220
58374
  /** Instantaneous power draw in watts. */
58221
58375
  watts: number().optional(),
@@ -61596,60 +61750,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61596
61750
  auth: "admin",
61597
61751
  access: "delete"
61598
61752
  });
61599
- /**
61600
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61601
- * cleaning lifecycle plus a return-to-base / locate surface and an
61602
- * optional fan-speed selector.
61603
- *
61604
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61605
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61606
- * (0..100) is nullable — some vacuums don't report a battery
61607
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61608
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61609
- * tokens the hardware accepts so the UI renders only supported choices.
61610
- *
61611
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61612
- * validates it against the vacuum's own list. `locate` triggers the
61613
- * find-me chirp; `returnToBase` sends it home.
61614
- *
61615
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61616
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61617
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61618
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61619
- * only when the device has no such tank at all, and use a `TankStatus`
61620
- * with both inner fields `null` when the tank exists but its level is
61621
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61622
- * so the HA provider leaves all four `null`.
61623
- */
61624
- var VacuumStateSchema = _enum([
61625
- "idle",
61626
- "cleaning",
61627
- "paused",
61628
- "returning",
61629
- "docked",
61630
- "drying",
61631
- "error"
61632
- ]);
61633
- /**
61634
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61635
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61636
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61637
- * level is currently unknown; the OWNING field being `null` means the
61638
- * hardware has no such tank at all.
61639
- */
61640
- var TankStatusSchema = object({
61641
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61642
- level: number().min(0).max(100).nullable(),
61643
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61644
- status: _enum([
61645
- "ok",
61646
- "low",
61647
- "full"
61648
- ]).nullable()
61649
- });
61650
61753
  object({
61651
61754
  /** Lifecycle state of the vacuum. */
61652
- state: VacuumStateSchema,
61755
+ state: _enum([
61756
+ "idle",
61757
+ "cleaning",
61758
+ "paused",
61759
+ "returning",
61760
+ "docked",
61761
+ "drying",
61762
+ "error"
61763
+ ]),
61653
61764
  /** 0..100 battery percentage. Null when the device has no battery
61654
61765
  * reading. */
61655
61766
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61658,14 +61769,6 @@ object({
61658
61769
  fanSpeed: string().nullable(),
61659
61770
  /** Speed tokens the hardware accepts — drives the UI selector. */
61660
61771
  availableFanSpeeds: array(string()),
61661
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61662
- cleanWater: TankStatusSchema.nullable(),
61663
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61664
- dirtyWater: TankStatusSchema.nullable(),
61665
- /** Detergent tank. Null when the hardware has no detergent tank. */
61666
- detergent: TankStatusSchema.nullable(),
61667
- /** Dust bin. Null when the hardware has no dust bin. */
61668
- dustBin: TankStatusSchema.nullable(),
61669
61772
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61670
61773
  progressPercent: number().min(0).max(100).nullable(),
61671
61774
  /** Current error code (0 / null = no error). */
@@ -65031,6 +65134,12 @@ Object.freeze({
65031
65134
  addonId: null,
65032
65135
  access: "create"
65033
65136
  },
65137
+ "deviceHistory.deleteOrphanSeries": {
65138
+ capName: "device-history",
65139
+ capScope: "system",
65140
+ addonId: null,
65141
+ access: "delete"
65142
+ },
65034
65143
  "deviceHistory.getDeviceEnabled": {
65035
65144
  capName: "device-history",
65036
65145
  capScope: "system",
@@ -65049,6 +65158,12 @@ Object.freeze({
65049
65158
  addonId: null,
65050
65159
  access: "view"
65051
65160
  },
65161
+ "deviceHistory.listOrphanSeries": {
65162
+ capName: "device-history",
65163
+ capScope: "system",
65164
+ addonId: null,
65165
+ access: "view"
65166
+ },
65052
65167
  "deviceHistory.listSeries": {
65053
65168
  capName: "device-history",
65054
65169
  capScope: "system",
@@ -68673,6 +68788,12 @@ Object.freeze({
68673
68788
  addonId: null,
68674
68789
  access: "delete"
68675
68790
  },
68791
+ "pipelineOrchestrator.forgetInferenceDevice": {
68792
+ capName: "pipeline-orchestrator",
68793
+ capScope: "system",
68794
+ addonId: null,
68795
+ access: "delete"
68796
+ },
68676
68797
  "pipelineOrchestrator.getAgentLoad": {
68677
68798
  capName: "pipeline-orchestrator",
68678
68799
  capScope: "system",
@@ -69249,6 +69370,12 @@ Object.freeze({
69249
69370
  addonId: null,
69250
69371
  access: "view"
69251
69372
  },
69373
+ "platformProbe.rescanAccelerators": {
69374
+ capName: "platform-probe",
69375
+ capScope: "system",
69376
+ addonId: null,
69377
+ access: "create"
69378
+ },
69252
69379
  "platformProbe.resolveHwAccel": {
69253
69380
  capName: "platform-probe",
69254
69381
  capScope: "system",
@@ -75120,7 +75247,7 @@ var STATE_SUMMARY_VARS = [
75120
75247
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75121
75248
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75122
75249
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75123
- ([...RULE_TEXT], [...CONSUMABLE]),
75250
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75124
75251
  ([...RULE_TEXT], [...TANK]),
75125
75252
  [...RULE_TEXT],
75126
75253
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/dist/addon.mjs CHANGED
@@ -5435,7 +5435,7 @@ var ZodIssueCode = {
5435
5435
  var ZodFirstPartyTypeKind;
5436
5436
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5437
5437
  //#endregion
5438
- //#region ../types/dist/sleep-DJFUfKvA.mjs
5438
+ //#region ../types/dist/sleep-CUp20JkO.mjs
5439
5439
  /**
5440
5440
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5441
5441
  * window to float samples (D455).
@@ -8260,7 +8260,11 @@ var ContributionSectionSchema = object({
8260
8260
  literal(4)
8261
8261
  ]).optional(),
8262
8262
  tab: string().optional(),
8263
- location: _enum(["settings", "top-tab"]).optional(),
8263
+ location: _enum([
8264
+ "settings",
8265
+ "top-tab",
8266
+ "hero"
8267
+ ]).optional(),
8264
8268
  order: number().optional(),
8265
8269
  fields: array(any())
8266
8270
  });
@@ -13189,7 +13193,11 @@ var ConfigSectionWithValuesSchema = object({
13189
13193
  literal(4)
13190
13194
  ]).optional(),
13191
13195
  tab: string().optional(),
13192
- location: _enum(["settings", "top-tab"]).optional(),
13196
+ location: _enum([
13197
+ "settings",
13198
+ "top-tab",
13199
+ "hero"
13200
+ ]).optional(),
13193
13201
  order: number().optional(),
13194
13202
  fields: array(any())
13195
13203
  });
@@ -16963,6 +16971,52 @@ var TierStatusSchema = object({
16963
16971
  countedAt: number().nullable()
16964
16972
  });
16965
16973
  /** Operator/diagnostic view: rows per tier, last runs, refusals and drops since boot. */
16974
+ /**
16975
+ * Why a series is orphan. `device-gone`: its device is absent from the
16976
+ * successful device listings (the departure clock). `undeclared`: its `cap:`
16977
+ * key is declared by no capability any more (a field a cap removed).
16978
+ */
16979
+ var DeviceHistoryOrphanReasonSchema = _enum(["device-gone", "undeclared"]);
16980
+ /** Rows held per stored tier. */
16981
+ var TierRowsSchema = object({
16982
+ raw: number().int(),
16983
+ "5m": number().int(),
16984
+ "1h": number().int(),
16985
+ "1d": number().int()
16986
+ });
16987
+ var OrphanSeriesSchema = object({
16988
+ seriesId: number().int(),
16989
+ deviceId: number().int(),
16990
+ key: string(),
16991
+ scope: string(),
16992
+ /** The metric's display name; `null` when its metric row is gone too. */
16993
+ displayName: string().nullable(),
16994
+ reason: DeviceHistoryOrphanReasonSchema,
16995
+ /** `device-gone`: since when the device has been absent; `null` otherwise. */
16996
+ missingSince: number().nullable(),
16997
+ firstTs: number(),
16998
+ lastTs: number(),
16999
+ rows: TierRowsSchema
17000
+ });
17001
+ var DeviceHistoryOrphanDeleteRefusalSchema = _enum([
17002
+ "not-found",
17003
+ "not-orphan",
17004
+ "failed"
17005
+ ]);
17006
+ var OrphanDeleteEntrySchema = discriminatedUnion("ok", [object({
17007
+ seriesId: number().int(),
17008
+ ok: literal(true),
17009
+ deleted: TierRowsSchema
17010
+ }), object({
17011
+ seriesId: number().int(),
17012
+ ok: literal(false),
17013
+ reason: DeviceHistoryOrphanDeleteRefusalSchema
17014
+ })]);
17015
+ var OrphanListSchema = object({
17016
+ series: array(OrphanSeriesSchema).readonly(),
17017
+ /** More orphans exist than {@link DEVICE_HISTORY_ORPHAN_LIST_MAX}. */
17018
+ truncated: boolean()
17019
+ });
16966
17020
  var DeviceHistoryStatusSchema = object({
16967
17021
  startedAt: number(),
16968
17022
  /** The store is declared, series loaded and the first reconcile has answered. */
@@ -17060,7 +17114,10 @@ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly())
17060
17114
  }), object({ enabled: boolean() }), {
17061
17115
  kind: "mutation",
17062
17116
  auth: "admin"
17063
- }), method(object({}), DeviceHistoryStatusSchema, { auth: "admin" });
17117
+ }), 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() }), {
17118
+ kind: "mutation",
17119
+ auth: "admin"
17120
+ });
17064
17121
  var DeviceCaStatusSchema = discriminatedUnion("state", [
17065
17122
  object({ state: literal("absent") }),
17066
17123
  object({
@@ -49928,6 +49985,19 @@ var NodeInferenceDeviceSchema = object({
49928
49985
  /** Whether the node's live probe reports the device as usable right now. */
49929
49986
  available: boolean(),
49930
49987
  /**
49988
+ * Is the device on the node at all (D919)? `present` — the live probe
49989
+ * reported it; `absent` — the probe ANSWERED and did not report it, so only
49990
+ * its stored settings remain (unplugged, moved to another node): never
49991
+ * eligible, whatever its stored `enabled`, and forgettable with
49992
+ * `forgetInferenceDevice`; `unknown` — the probe did not answer, nothing is
49993
+ * claimed (D315). Optional only for an orchestrator older than the field.
49994
+ */
49995
+ presence: _enum([
49996
+ "present",
49997
+ "absent",
49998
+ "unknown"
49999
+ ]).optional(),
50000
+ /**
49931
50001
  * Whether this device participates in dispatch. AUTO default (spec C2):
49932
50002
  * accelerators are opt-OUT (a discovered NPU/iGPU/Coral/ANE with no stored
49933
50003
  * entry is `true`); CPU is opt-IN (`false` by default — the fallback pool,
@@ -50153,7 +50223,13 @@ method(object({
50153
50223
  }), object({ success: literal(true) }), {
50154
50224
  kind: "mutation",
50155
50225
  auth: "admin"
50156
- }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({ agentNodeId: string() }), object({
50226
+ }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50227
+ agentNodeId: string(),
50228
+ deviceKey: string()
50229
+ }), object({ success: literal(true) }), {
50230
+ kind: "mutation",
50231
+ auth: "admin"
50232
+ }), method(object({ agentNodeId: string() }), object({
50157
50233
  success: literal(true),
50158
50234
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50159
50235
  effectiveModelId: string().nullable(),
@@ -54367,17 +54443,69 @@ object({
54367
54443
  });
54368
54444
  DeviceType.Sensor;
54369
54445
  /**
54370
- * Generic device-consumables capability — surfaces a device's
54371
- * maintenance items (vacuum filters/brushes, replaceable cartridges,
54372
- * descaling cycles, …) with their remaining life and an optional
54373
- * "Replaced" reset action. Device-agnostic: any provider that knows its
54374
- * device tracks consumables can register it; the cap declares no
54375
- * vocabulary of its own — the provider names each item verbatim.
54446
+ * Generic device-consumables capability — the ONE place a device reports what
54447
+ * it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
54448
+ * descaling cycles), supplies it draws from (a vacuum's clean-water tank and
54449
+ * detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
54450
+ * water tank, a dust bin). Each item carries its remaining life or fill and an
54451
+ * optional "Replaced" reset action. Device-agnostic: any provider that knows
54452
+ * its device tracks consumables registers it; the provider names each item
54453
+ * verbatim and says which `kind` it is.
54454
+ *
54455
+ * The admin UI renders it as ONE collapsible section directly under the
54456
+ * device page's hero card (`placement: 'hero'`), for every device bound to
54457
+ * this cap — never drawn by a device type's hero card itself (D915).
54376
54458
  *
54377
54459
  * Like `childLayout`, the cap is INERT until a provider sets items: no
54378
54460
  * provider populates it by guessing (no HA inference). The UI renders a
54379
54461
  * "No consumables reported" placeholder when `items` is empty.
54380
54462
  */
54463
+ /**
54464
+ * What an item IS, which decides which direction is bad:
54465
+ * - `wear` — a part that wears out (a brush, a filter); low life is bad.
54466
+ * - `supply` — something the device draws from (clean water, detergent,
54467
+ * salt, rinse aid); low or empty is bad.
54468
+ * - `waste` — something the device fills (dirty water, a dust bin); full is
54469
+ * bad.
54470
+ * Absent = `wear`.
54471
+ */
54472
+ var ConsumableKindSchema = _enum([
54473
+ "wear",
54474
+ "supply",
54475
+ "waste"
54476
+ ]);
54477
+ /**
54478
+ * What an item LOOKS like, which decides how a client draws it — independent
54479
+ * of `kind`, which decides which direction is bad:
54480
+ * - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
54481
+ * remaining time and a reset.
54482
+ * - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
54483
+ * - `product` — something bought and refilled (detergent, salt, rinse aid):
54484
+ * a stepped level and "refill".
54485
+ * - `bin` — a container that collects waste (a dust bin): a fill gauge
54486
+ * that warns when full.
54487
+ * Absent = derived from the kind ({@link consumableFormOf}).
54488
+ */
54489
+ var ConsumableFormSchema = _enum([
54490
+ "part",
54491
+ "tank",
54492
+ "product",
54493
+ "bin"
54494
+ ]);
54495
+ /** The provider's own discrete verdict on an item. */
54496
+ var ConsumableStatusSchema = _enum([
54497
+ "ok",
54498
+ "low",
54499
+ "empty",
54500
+ "full",
54501
+ "replace"
54502
+ ]);
54503
+ _enum([
54504
+ "ok",
54505
+ "low",
54506
+ "empty",
54507
+ "full"
54508
+ ]);
54381
54509
  /** Units a remaining-life counter is reported in. Closed: the panel renders
54382
54510
  * each. */
54383
54511
  var ConsumableRemainingUnitSchema = _enum([
@@ -54397,10 +54525,14 @@ var ConsumablesStatusSchema = object({
54397
54525
  key: string().min(1),
54398
54526
  /** Display name. */
54399
54527
  label: string().min(1),
54400
- /** Remaining life % when known (0..100). */
54528
+ /** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
54401
54529
  level: number().min(0).max(100).nullable(),
54402
- /** Discrete state when known (binary mode). */
54403
- status: _enum(["ok", "replace"]).nullable(),
54530
+ /** The provider's discrete verdict when known (binary mode). */
54531
+ status: ConsumableStatusSchema.nullable(),
54532
+ /** What the item is — decides whether low or full is bad. Absent = `wear`. */
54533
+ kind: ConsumableKindSchema.optional(),
54534
+ /** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
54535
+ form: ConsumableFormSchema.optional(),
54404
54536
  /** Ms epoch of the last replace, when known. */
54405
54537
  lastResetAt: number().nullable(),
54406
54538
  /** Whether `reset()` is meaningful for this item. */
@@ -54635,8 +54767,9 @@ object({
54635
54767
  status: DeviceStatusSchema
54636
54768
  });
54637
54769
  /**
54638
- * Smart-dishwasher cap — program lifecycle, door / remote-start gates,
54639
- * consumable levels (salt, rinse aid) and common program options.
54770
+ * Smart-dishwasher cap — program lifecycle, door / remote-start gates and
54771
+ * common program options. Salt and rinse aid are NOT here: they are items of
54772
+ * the device's `consumables` cap, like every other device's (D915).
54640
54773
  *
54641
54774
  * Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
54642
54775
  * by any integration that exposes the same program / option surface.
@@ -54684,11 +54817,6 @@ var DishwasherAvailabilitySchema = _enum([
54684
54817
  "offline",
54685
54818
  "description-missing"
54686
54819
  ]);
54687
- var DishwasherConsumableLevelSchema = _enum([
54688
- "ok",
54689
- "low",
54690
- "empty"
54691
- ]);
54692
54820
  object({
54693
54821
  availability: DishwasherAvailabilitySchema,
54694
54822
  /** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
@@ -54721,8 +54849,6 @@ object({
54721
54849
  powerOn: boolean().nullable(),
54722
54850
  /** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
54723
54851
  powerState: string().nullable(),
54724
- saltLevel: DishwasherConsumableLevelSchema.nullable(),
54725
- rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54726
54852
  /**
54727
54853
  * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54728
54854
  * combined care-and-filter reminder raised); false when every such reminder reads clear; null
@@ -56762,7 +56888,7 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
56762
56888
  enabled: boolean()
56763
56889
  }), _void(), {
56764
56890
  kind: "mutation",
56765
- auth: "admin"
56891
+ auth: "protected"
56766
56892
  }), object({
56767
56893
  deviceId: number(),
56768
56894
  enabled: boolean(),
@@ -57252,6 +57378,13 @@ var TopologyNodeSchema = object({
57252
57378
  cpuModel: string().nullable(),
57253
57379
  cpuCores: number(),
57254
57380
  memoryMB: number(),
57381
+ /**
57382
+ * The inference RUNTIMES installed on the node (`pythonRuntimes`: onnx,
57383
+ * openvino, edgetpu …) — not its devices. An installed runtime says nothing
57384
+ * about whether its hardware is there (a Coral delegate stays installed
57385
+ * after the stick leaves, D919); the live device set is
57386
+ * `pipelineOrchestrator.getNodeInferenceDevices`.
57387
+ */
57255
57388
  engines: array(string()).readonly(),
57256
57389
  isHub: boolean(),
57257
57390
  isOnline: boolean(),
@@ -58216,7 +58349,28 @@ var ResolvedInferenceConfigSchema = object({
58216
58349
  format: ModelFormatSchema,
58217
58350
  reason: string()
58218
58351
  });
58219
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
58352
+ /**
58353
+ * The answer of an accelerator rescan (D919): the node's device list after
58354
+ * the re-probe, what changed, and the evidence that decided the Coral answer
58355
+ * (`usbBus` — could the USB bus be read at all; `decidedBy` — USB ids, the PCI
58356
+ * bus, the installed-delegate fallback, or nothing).
58357
+ */
58358
+ var AcceleratorRescanSchema = object({
58359
+ devices: array(InferenceDeviceDescriptorSchema).readonly(),
58360
+ appeared: array(string()).readonly(),
58361
+ disappeared: array(string()).readonly(),
58362
+ usbBus: _enum(["observed", "unobservable"]),
58363
+ decidedBy: _enum([
58364
+ "usb-ids",
58365
+ "pci",
58366
+ "delegate-fallback",
58367
+ "none"
58368
+ ])
58369
+ });
58370
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), AcceleratorRescanSchema, {
58371
+ kind: "mutation",
58372
+ auth: "admin"
58373
+ });
58220
58374
  object({
58221
58375
  /** Instantaneous power draw in watts. */
58222
58376
  watts: number().optional(),
@@ -61597,60 +61751,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61597
61751
  auth: "admin",
61598
61752
  access: "delete"
61599
61753
  });
61600
- /**
61601
- * Robot-vacuum cap. Models HA `vacuum.*` entities — anything with a
61602
- * cleaning lifecycle plus a return-to-base / locate surface and an
61603
- * optional fan-speed selector.
61604
- *
61605
- * State follows HA's canonical vacuum lifecycle: `idle` / `cleaning` /
61606
- * `paused` / `returning` / `docked` / `error`. `batteryLevel`
61607
- * (0..100) is nullable — some vacuums don't report a battery
61608
- * percentage. `fanSpeed` is the current speed token (provider-verbatim,
61609
- * e.g. `'standard'` / `'turbo'`) and `availableFanSpeeds` lists the
61610
- * tokens the hardware accepts so the UI renders only supported choices.
61611
- *
61612
- * The `setFanSpeed` method takes the bare `speed` token — the provider
61613
- * validates it against the vacuum's own list. `locate` triggers the
61614
- * find-me chirp; `returnToBase` sends it home.
61615
- *
61616
- * Consumable / waste tanks: `cleanWater` / `dirtyWater` / `detergent` /
61617
- * `dustBin` each carry a nullable `{ level (0..100 %), status ('ok' |
61618
- * 'low' | 'full') }` reading. Native providers (e.g. Dreame, Roborock)
61619
- * SHOULD populate whichever tanks the hardware has — leave a field `null`
61620
- * only when the device has no such tank at all, and use a `TankStatus`
61621
- * with both inner fields `null` when the tank exists but its level is
61622
- * currently unknown. HA `vacuum.*` entities expose no per-tank telemetry,
61623
- * so the HA provider leaves all four `null`.
61624
- */
61625
- var VacuumStateSchema = _enum([
61626
- "idle",
61627
- "cleaning",
61628
- "paused",
61629
- "returning",
61630
- "docked",
61631
- "drying",
61632
- "error"
61633
- ]);
61634
- /**
61635
- * One consumable / waste tank on a robot vacuum (clean-water, dirty-water,
61636
- * detergent or dust-bin). A tank can report a numeric fill `level` (0..100),
61637
- * a discrete `status` (binary-style hardware), or both. Both `null` means the
61638
- * level is currently unknown; the OWNING field being `null` means the
61639
- * hardware has no such tank at all.
61640
- */
61641
- var TankStatusSchema = object({
61642
- /** Numeric fill 0..100 when the hardware reports a percentage; null otherwise. */
61643
- level: number().min(0).max(100).nullable(),
61644
- /** Discrete state when the hardware is binary-mode; null otherwise. */
61645
- status: _enum([
61646
- "ok",
61647
- "low",
61648
- "full"
61649
- ]).nullable()
61650
- });
61651
61754
  object({
61652
61755
  /** Lifecycle state of the vacuum. */
61653
- state: VacuumStateSchema,
61756
+ state: _enum([
61757
+ "idle",
61758
+ "cleaning",
61759
+ "paused",
61760
+ "returning",
61761
+ "docked",
61762
+ "drying",
61763
+ "error"
61764
+ ]),
61654
61765
  /** 0..100 battery percentage. Null when the device has no battery
61655
61766
  * reading. */
61656
61767
  batteryLevel: number().min(0).max(100).nullable(),
@@ -61659,14 +61770,6 @@ object({
61659
61770
  fanSpeed: string().nullable(),
61660
61771
  /** Speed tokens the hardware accepts — drives the UI selector. */
61661
61772
  availableFanSpeeds: array(string()),
61662
- /** Clean-water (mop) tank. Null when the hardware has no clean-water tank. */
61663
- cleanWater: TankStatusSchema.nullable(),
61664
- /** Dirty-water (recovery) tank. Null when the hardware has no dirty-water tank. */
61665
- dirtyWater: TankStatusSchema.nullable(),
61666
- /** Detergent tank. Null when the hardware has no detergent tank. */
61667
- detergent: TankStatusSchema.nullable(),
61668
- /** Dust bin. Null when the hardware has no dust bin. */
61669
- dustBin: TankStatusSchema.nullable(),
61670
61773
  /** 0..100 cleaning-completion percentage of the current task, or null. */
61671
61774
  progressPercent: number().min(0).max(100).nullable(),
61672
61775
  /** Current error code (0 / null = no error). */
@@ -65032,6 +65135,12 @@ Object.freeze({
65032
65135
  addonId: null,
65033
65136
  access: "create"
65034
65137
  },
65138
+ "deviceHistory.deleteOrphanSeries": {
65139
+ capName: "device-history",
65140
+ capScope: "system",
65141
+ addonId: null,
65142
+ access: "delete"
65143
+ },
65035
65144
  "deviceHistory.getDeviceEnabled": {
65036
65145
  capName: "device-history",
65037
65146
  capScope: "system",
@@ -65050,6 +65159,12 @@ Object.freeze({
65050
65159
  addonId: null,
65051
65160
  access: "view"
65052
65161
  },
65162
+ "deviceHistory.listOrphanSeries": {
65163
+ capName: "device-history",
65164
+ capScope: "system",
65165
+ addonId: null,
65166
+ access: "view"
65167
+ },
65053
65168
  "deviceHistory.listSeries": {
65054
65169
  capName: "device-history",
65055
65170
  capScope: "system",
@@ -68674,6 +68789,12 @@ Object.freeze({
68674
68789
  addonId: null,
68675
68790
  access: "delete"
68676
68791
  },
68792
+ "pipelineOrchestrator.forgetInferenceDevice": {
68793
+ capName: "pipeline-orchestrator",
68794
+ capScope: "system",
68795
+ addonId: null,
68796
+ access: "delete"
68797
+ },
68677
68798
  "pipelineOrchestrator.getAgentLoad": {
68678
68799
  capName: "pipeline-orchestrator",
68679
68800
  capScope: "system",
@@ -69250,6 +69371,12 @@ Object.freeze({
69250
69371
  addonId: null,
69251
69372
  access: "view"
69252
69373
  },
69374
+ "platformProbe.rescanAccelerators": {
69375
+ capName: "platform-probe",
69376
+ capScope: "system",
69377
+ addonId: null,
69378
+ access: "create"
69379
+ },
69253
69380
  "platformProbe.resolveHwAccel": {
69254
69381
  capName: "platform-probe",
69255
69382
  capScope: "system",
@@ -75121,7 +75248,7 @@ var STATE_SUMMARY_VARS = [
75121
75248
  ([...RULE_TEXT], [...COMBINED_ALARM]),
75122
75249
  ([...RULE_TEXT], [...DEVICE_EVENTS]),
75123
75250
  ([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
75124
- ([...RULE_TEXT], [...CONSUMABLE]),
75251
+ ([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
75125
75252
  ([...RULE_TEXT], [...TANK]),
75126
75253
  [...RULE_TEXT],
75127
75254
  ([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.145",
3
+ "version": "1.2.147",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",