@camstack/addon-provider-onvif 1.2.145 → 1.2.146
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.
- package/dist/addon.js +151 -83
- package/dist/addon.mjs +151 -83
- 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-
|
|
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([
|
|
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([
|
|
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({
|
|
@@ -54366,17 +54423,69 @@ object({
|
|
|
54366
54423
|
});
|
|
54367
54424
|
DeviceType.Sensor;
|
|
54368
54425
|
/**
|
|
54369
|
-
* Generic device-consumables capability —
|
|
54370
|
-
*
|
|
54371
|
-
* descaling cycles,
|
|
54372
|
-
*
|
|
54373
|
-
*
|
|
54374
|
-
*
|
|
54426
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54427
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54428
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54429
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54430
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54431
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54432
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54433
|
+
* verbatim and says which `kind` it is.
|
|
54434
|
+
*
|
|
54435
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54436
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54437
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54375
54438
|
*
|
|
54376
54439
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54377
54440
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54378
54441
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54379
54442
|
*/
|
|
54443
|
+
/**
|
|
54444
|
+
* What an item IS, which decides which direction is bad:
|
|
54445
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54446
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54447
|
+
* salt, rinse aid); low or empty is bad.
|
|
54448
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54449
|
+
* bad.
|
|
54450
|
+
* Absent = `wear`.
|
|
54451
|
+
*/
|
|
54452
|
+
var ConsumableKindSchema = _enum([
|
|
54453
|
+
"wear",
|
|
54454
|
+
"supply",
|
|
54455
|
+
"waste"
|
|
54456
|
+
]);
|
|
54457
|
+
/**
|
|
54458
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54459
|
+
* of `kind`, which decides which direction is bad:
|
|
54460
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54461
|
+
* remaining time and a reset.
|
|
54462
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54463
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54464
|
+
* a stepped level and "refill".
|
|
54465
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54466
|
+
* that warns when full.
|
|
54467
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54468
|
+
*/
|
|
54469
|
+
var ConsumableFormSchema = _enum([
|
|
54470
|
+
"part",
|
|
54471
|
+
"tank",
|
|
54472
|
+
"product",
|
|
54473
|
+
"bin"
|
|
54474
|
+
]);
|
|
54475
|
+
/** The provider's own discrete verdict on an item. */
|
|
54476
|
+
var ConsumableStatusSchema = _enum([
|
|
54477
|
+
"ok",
|
|
54478
|
+
"low",
|
|
54479
|
+
"empty",
|
|
54480
|
+
"full",
|
|
54481
|
+
"replace"
|
|
54482
|
+
]);
|
|
54483
|
+
_enum([
|
|
54484
|
+
"ok",
|
|
54485
|
+
"low",
|
|
54486
|
+
"empty",
|
|
54487
|
+
"full"
|
|
54488
|
+
]);
|
|
54380
54489
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54381
54490
|
* each. */
|
|
54382
54491
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54396,10 +54505,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54396
54505
|
key: string().min(1),
|
|
54397
54506
|
/** Display name. */
|
|
54398
54507
|
label: string().min(1),
|
|
54399
|
-
/** Remaining life % when known (0..100). */
|
|
54508
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54400
54509
|
level: number().min(0).max(100).nullable(),
|
|
54401
|
-
/**
|
|
54402
|
-
status:
|
|
54510
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54511
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54512
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54513
|
+
kind: ConsumableKindSchema.optional(),
|
|
54514
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54515
|
+
form: ConsumableFormSchema.optional(),
|
|
54403
54516
|
/** Ms epoch of the last replace, when known. */
|
|
54404
54517
|
lastResetAt: number().nullable(),
|
|
54405
54518
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54634,8 +54747,9 @@ object({
|
|
|
54634
54747
|
status: DeviceStatusSchema
|
|
54635
54748
|
});
|
|
54636
54749
|
/**
|
|
54637
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54638
|
-
*
|
|
54750
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54751
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54752
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54639
54753
|
*
|
|
54640
54754
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54641
54755
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54683,11 +54797,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54683
54797
|
"offline",
|
|
54684
54798
|
"description-missing"
|
|
54685
54799
|
]);
|
|
54686
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54687
|
-
"ok",
|
|
54688
|
-
"low",
|
|
54689
|
-
"empty"
|
|
54690
|
-
]);
|
|
54691
54800
|
object({
|
|
54692
54801
|
availability: DishwasherAvailabilitySchema,
|
|
54693
54802
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54720,8 +54829,6 @@ object({
|
|
|
54720
54829
|
powerOn: boolean().nullable(),
|
|
54721
54830
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54722
54831
|
powerState: string().nullable(),
|
|
54723
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54724
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54725
54832
|
/**
|
|
54726
54833
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54727
54834
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61596,60 +61703,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61596
61703
|
auth: "admin",
|
|
61597
61704
|
access: "delete"
|
|
61598
61705
|
});
|
|
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
61706
|
object({
|
|
61651
61707
|
/** Lifecycle state of the vacuum. */
|
|
61652
|
-
state:
|
|
61708
|
+
state: _enum([
|
|
61709
|
+
"idle",
|
|
61710
|
+
"cleaning",
|
|
61711
|
+
"paused",
|
|
61712
|
+
"returning",
|
|
61713
|
+
"docked",
|
|
61714
|
+
"drying",
|
|
61715
|
+
"error"
|
|
61716
|
+
]),
|
|
61653
61717
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61654
61718
|
* reading. */
|
|
61655
61719
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61658,14 +61722,6 @@ object({
|
|
|
61658
61722
|
fanSpeed: string().nullable(),
|
|
61659
61723
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61660
61724
|
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
61725
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61670
61726
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61671
61727
|
/** Current error code (0 / null = no error). */
|
|
@@ -65031,6 +65087,12 @@ Object.freeze({
|
|
|
65031
65087
|
addonId: null,
|
|
65032
65088
|
access: "create"
|
|
65033
65089
|
},
|
|
65090
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
65091
|
+
capName: "device-history",
|
|
65092
|
+
capScope: "system",
|
|
65093
|
+
addonId: null,
|
|
65094
|
+
access: "delete"
|
|
65095
|
+
},
|
|
65034
65096
|
"deviceHistory.getDeviceEnabled": {
|
|
65035
65097
|
capName: "device-history",
|
|
65036
65098
|
capScope: "system",
|
|
@@ -65049,6 +65111,12 @@ Object.freeze({
|
|
|
65049
65111
|
addonId: null,
|
|
65050
65112
|
access: "view"
|
|
65051
65113
|
},
|
|
65114
|
+
"deviceHistory.listOrphanSeries": {
|
|
65115
|
+
capName: "device-history",
|
|
65116
|
+
capScope: "system",
|
|
65117
|
+
addonId: null,
|
|
65118
|
+
access: "view"
|
|
65119
|
+
},
|
|
65052
65120
|
"deviceHistory.listSeries": {
|
|
65053
65121
|
capName: "device-history",
|
|
65054
65122
|
capScope: "system",
|
|
@@ -75120,7 +75188,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
75120
75188
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
75121
75189
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
75122
75190
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
75123
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
75191
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
75124
75192
|
([...RULE_TEXT], [...TANK]),
|
|
75125
75193
|
[...RULE_TEXT],
|
|
75126
75194
|
([...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-
|
|
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([
|
|
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([
|
|
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({
|
|
@@ -54367,17 +54424,69 @@ object({
|
|
|
54367
54424
|
});
|
|
54368
54425
|
DeviceType.Sensor;
|
|
54369
54426
|
/**
|
|
54370
|
-
* Generic device-consumables capability —
|
|
54371
|
-
*
|
|
54372
|
-
* descaling cycles,
|
|
54373
|
-
*
|
|
54374
|
-
*
|
|
54375
|
-
*
|
|
54427
|
+
* Generic device-consumables capability — the ONE place a device reports what
|
|
54428
|
+
* it uses up or fills: wear parts (vacuum filters/brushes, cartridges,
|
|
54429
|
+
* descaling cycles), supplies it draws from (a vacuum's clean-water tank and
|
|
54430
|
+
* detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty
|
|
54431
|
+
* water tank, a dust bin). Each item carries its remaining life or fill and an
|
|
54432
|
+
* optional "Replaced" reset action. Device-agnostic: any provider that knows
|
|
54433
|
+
* its device tracks consumables registers it; the provider names each item
|
|
54434
|
+
* verbatim and says which `kind` it is.
|
|
54435
|
+
*
|
|
54436
|
+
* The admin UI renders it as ONE collapsible section directly under the
|
|
54437
|
+
* device page's hero card (`placement: 'hero'`), for every device bound to
|
|
54438
|
+
* this cap — never drawn by a device type's hero card itself (D915).
|
|
54376
54439
|
*
|
|
54377
54440
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
54378
54441
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
54379
54442
|
* "No consumables reported" placeholder when `items` is empty.
|
|
54380
54443
|
*/
|
|
54444
|
+
/**
|
|
54445
|
+
* What an item IS, which decides which direction is bad:
|
|
54446
|
+
* - `wear` — a part that wears out (a brush, a filter); low life is bad.
|
|
54447
|
+
* - `supply` — something the device draws from (clean water, detergent,
|
|
54448
|
+
* salt, rinse aid); low or empty is bad.
|
|
54449
|
+
* - `waste` — something the device fills (dirty water, a dust bin); full is
|
|
54450
|
+
* bad.
|
|
54451
|
+
* Absent = `wear`.
|
|
54452
|
+
*/
|
|
54453
|
+
var ConsumableKindSchema = _enum([
|
|
54454
|
+
"wear",
|
|
54455
|
+
"supply",
|
|
54456
|
+
"waste"
|
|
54457
|
+
]);
|
|
54458
|
+
/**
|
|
54459
|
+
* What an item LOOKS like, which decides how a client draws it — independent
|
|
54460
|
+
* of `kind`, which decides which direction is bad:
|
|
54461
|
+
* - `part` — a part that wears (a brush, a filter, a mop pad): a wear bar,
|
|
54462
|
+
* remaining time and a reset.
|
|
54463
|
+
* - `tank` — a container of liquid (clean water, dirty water): a fill gauge.
|
|
54464
|
+
* - `product` — something bought and refilled (detergent, salt, rinse aid):
|
|
54465
|
+
* a stepped level and "refill".
|
|
54466
|
+
* - `bin` — a container that collects waste (a dust bin): a fill gauge
|
|
54467
|
+
* that warns when full.
|
|
54468
|
+
* Absent = derived from the kind ({@link consumableFormOf}).
|
|
54469
|
+
*/
|
|
54470
|
+
var ConsumableFormSchema = _enum([
|
|
54471
|
+
"part",
|
|
54472
|
+
"tank",
|
|
54473
|
+
"product",
|
|
54474
|
+
"bin"
|
|
54475
|
+
]);
|
|
54476
|
+
/** The provider's own discrete verdict on an item. */
|
|
54477
|
+
var ConsumableStatusSchema = _enum([
|
|
54478
|
+
"ok",
|
|
54479
|
+
"low",
|
|
54480
|
+
"empty",
|
|
54481
|
+
"full",
|
|
54482
|
+
"replace"
|
|
54483
|
+
]);
|
|
54484
|
+
_enum([
|
|
54485
|
+
"ok",
|
|
54486
|
+
"low",
|
|
54487
|
+
"empty",
|
|
54488
|
+
"full"
|
|
54489
|
+
]);
|
|
54381
54490
|
/** Units a remaining-life counter is reported in. Closed: the panel renders
|
|
54382
54491
|
* each. */
|
|
54383
54492
|
var ConsumableRemainingUnitSchema = _enum([
|
|
@@ -54397,10 +54506,14 @@ var ConsumablesStatusSchema = object({
|
|
|
54397
54506
|
key: string().min(1),
|
|
54398
54507
|
/** Display name. */
|
|
54399
54508
|
label: string().min(1),
|
|
54400
|
-
/** Remaining life % when known (0..100). */
|
|
54509
|
+
/** Remaining life % (`wear`) or fill % (`supply`, `waste`) when known (0..100). */
|
|
54401
54510
|
level: number().min(0).max(100).nullable(),
|
|
54402
|
-
/**
|
|
54403
|
-
status:
|
|
54511
|
+
/** The provider's discrete verdict when known (binary mode). */
|
|
54512
|
+
status: ConsumableStatusSchema.nullable(),
|
|
54513
|
+
/** What the item is — decides whether low or full is bad. Absent = `wear`. */
|
|
54514
|
+
kind: ConsumableKindSchema.optional(),
|
|
54515
|
+
/** How the item is drawn (part, tank, product, bin). Absent = derived from `kind`. */
|
|
54516
|
+
form: ConsumableFormSchema.optional(),
|
|
54404
54517
|
/** Ms epoch of the last replace, when known. */
|
|
54405
54518
|
lastResetAt: number().nullable(),
|
|
54406
54519
|
/** Whether `reset()` is meaningful for this item. */
|
|
@@ -54635,8 +54748,9 @@ object({
|
|
|
54635
54748
|
status: DeviceStatusSchema
|
|
54636
54749
|
});
|
|
54637
54750
|
/**
|
|
54638
|
-
* Smart-dishwasher cap — program lifecycle, door / remote-start gates
|
|
54639
|
-
*
|
|
54751
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates and
|
|
54752
|
+
* common program options. Salt and rinse aid are NOT here: they are items of
|
|
54753
|
+
* the device's `consumables` cap, like every other device's (D915).
|
|
54640
54754
|
*
|
|
54641
54755
|
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54642
54756
|
* by any integration that exposes the same program / option surface.
|
|
@@ -54684,11 +54798,6 @@ var DishwasherAvailabilitySchema = _enum([
|
|
|
54684
54798
|
"offline",
|
|
54685
54799
|
"description-missing"
|
|
54686
54800
|
]);
|
|
54687
|
-
var DishwasherConsumableLevelSchema = _enum([
|
|
54688
|
-
"ok",
|
|
54689
|
-
"low",
|
|
54690
|
-
"empty"
|
|
54691
|
-
]);
|
|
54692
54801
|
object({
|
|
54693
54802
|
availability: DishwasherAvailabilitySchema,
|
|
54694
54803
|
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
@@ -54721,8 +54830,6 @@ object({
|
|
|
54721
54830
|
powerOn: boolean().nullable(),
|
|
54722
54831
|
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
54723
54832
|
powerState: string().nullable(),
|
|
54724
|
-
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54725
|
-
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54726
54833
|
/**
|
|
54727
54834
|
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54728
54835
|
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
@@ -61597,60 +61704,17 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61597
61704
|
auth: "admin",
|
|
61598
61705
|
access: "delete"
|
|
61599
61706
|
});
|
|
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
61707
|
object({
|
|
61652
61708
|
/** Lifecycle state of the vacuum. */
|
|
61653
|
-
state:
|
|
61709
|
+
state: _enum([
|
|
61710
|
+
"idle",
|
|
61711
|
+
"cleaning",
|
|
61712
|
+
"paused",
|
|
61713
|
+
"returning",
|
|
61714
|
+
"docked",
|
|
61715
|
+
"drying",
|
|
61716
|
+
"error"
|
|
61717
|
+
]),
|
|
61654
61718
|
/** 0..100 battery percentage. Null when the device has no battery
|
|
61655
61719
|
* reading. */
|
|
61656
61720
|
batteryLevel: number().min(0).max(100).nullable(),
|
|
@@ -61659,14 +61723,6 @@ object({
|
|
|
61659
61723
|
fanSpeed: string().nullable(),
|
|
61660
61724
|
/** Speed tokens the hardware accepts — drives the UI selector. */
|
|
61661
61725
|
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
61726
|
/** 0..100 cleaning-completion percentage of the current task, or null. */
|
|
61671
61727
|
progressPercent: number().min(0).max(100).nullable(),
|
|
61672
61728
|
/** Current error code (0 / null = no error). */
|
|
@@ -65032,6 +65088,12 @@ Object.freeze({
|
|
|
65032
65088
|
addonId: null,
|
|
65033
65089
|
access: "create"
|
|
65034
65090
|
},
|
|
65091
|
+
"deviceHistory.deleteOrphanSeries": {
|
|
65092
|
+
capName: "device-history",
|
|
65093
|
+
capScope: "system",
|
|
65094
|
+
addonId: null,
|
|
65095
|
+
access: "delete"
|
|
65096
|
+
},
|
|
65035
65097
|
"deviceHistory.getDeviceEnabled": {
|
|
65036
65098
|
capName: "device-history",
|
|
65037
65099
|
capScope: "system",
|
|
@@ -65050,6 +65112,12 @@ Object.freeze({
|
|
|
65050
65112
|
addonId: null,
|
|
65051
65113
|
access: "view"
|
|
65052
65114
|
},
|
|
65115
|
+
"deviceHistory.listOrphanSeries": {
|
|
65116
|
+
capName: "device-history",
|
|
65117
|
+
capScope: "system",
|
|
65118
|
+
addonId: null,
|
|
65119
|
+
access: "view"
|
|
65120
|
+
},
|
|
65053
65121
|
"deviceHistory.listSeries": {
|
|
65054
65122
|
capName: "device-history",
|
|
65055
65123
|
capScope: "system",
|
|
@@ -75121,7 +75189,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
75121
75189
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
75122
75190
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
75123
75191
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
75124
|
-
([...RULE_TEXT], [...CONSUMABLE]),
|
|
75192
|
+
([...RULE_TEXT], [...CONSUMABLE, ...TANK]),
|
|
75125
75193
|
([...RULE_TEXT], [...TANK]),
|
|
75126
75194
|
[...RULE_TEXT],
|
|
75127
75195
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|