@camstack/addon-provider-hikvision 1.2.153 → 1.2.155
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 +340 -36
- package/dist/addon.mjs +340 -36
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -34,7 +34,7 @@ let node_os = require("node:os");
|
|
|
34
34
|
let node_net = require("node:net");
|
|
35
35
|
let node_http = require("node:http");
|
|
36
36
|
let node_https = require("node:https");
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -113,9 +113,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
113
113
|
/**
|
|
114
114
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
115
115
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
116
|
-
* alert centre turns it into one
|
|
116
|
+
* alert centre turns it into one critical alert.
|
|
117
117
|
*/
|
|
118
118
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
119
|
+
/**
|
|
120
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
121
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
122
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
123
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
124
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
125
|
+
* event may be dropped (D8, D11).
|
|
126
|
+
*/
|
|
127
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
119
128
|
EventCategory["AddonError"] = "addon.error";
|
|
120
129
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
121
130
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5440,7 +5449,7 @@ var ZodIssueCode = {
|
|
|
5440
5449
|
var ZodFirstPartyTypeKind;
|
|
5441
5450
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5442
5451
|
//#endregion
|
|
5443
|
-
//#region ../types/dist/sleep-
|
|
5452
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5444
5453
|
/**
|
|
5445
5454
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5446
5455
|
* window to float samples (D455).
|
|
@@ -13520,7 +13529,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13520
13529
|
]);
|
|
13521
13530
|
var AlertActionSchema = object({
|
|
13522
13531
|
label: string(),
|
|
13523
|
-
href: string().optional()
|
|
13532
|
+
href: string().optional(),
|
|
13533
|
+
/**
|
|
13534
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13535
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13536
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13537
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13538
|
+
*/
|
|
13539
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13524
13540
|
});
|
|
13525
13541
|
var AlertStatusSchema = _enum([
|
|
13526
13542
|
"active",
|
|
@@ -18014,7 +18030,11 @@ var deviceDiscoveryCapability = {
|
|
|
18014
18030
|
};
|
|
18015
18031
|
/**
|
|
18016
18032
|
* `device-adoption` — generic discovery + adoption surface,
|
|
18017
|
-
* system-scoped
|
|
18033
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
18034
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
18035
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
18036
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
18037
|
+
* successor to `ha-discovery`:
|
|
18018
18038
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
18019
18039
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
18020
18040
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -42364,6 +42384,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42364
42384
|
"server-updated",
|
|
42365
42385
|
"export-completed",
|
|
42366
42386
|
"backup-completed",
|
|
42387
|
+
"alert-critical",
|
|
42388
|
+
"alert-error",
|
|
42389
|
+
"alert-critical-resolved",
|
|
42367
42390
|
"camera-online",
|
|
42368
42391
|
"camera-offline",
|
|
42369
42392
|
"camera-disabled",
|
|
@@ -51544,7 +51567,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51544
51567
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51545
51568
|
kind: "mutation",
|
|
51546
51569
|
auth: "admin"
|
|
51547
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51570
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51571
|
+
clear: boolean(),
|
|
51572
|
+
repointLocationId: string().optional()
|
|
51573
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51548
51574
|
kind: "mutation",
|
|
51549
51575
|
auth: "admin"
|
|
51550
51576
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -56218,6 +56244,11 @@ onStatusChanged: { data: object({
|
|
|
56218
56244
|
*
|
|
56219
56245
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
56220
56246
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
56247
|
+
*
|
|
56248
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
56249
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
56250
|
+
* the link is down, or the description does not carry it) and is never
|
|
56251
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
56221
56252
|
*/
|
|
56222
56253
|
var DishwasherStateSchema = _enum([
|
|
56223
56254
|
"idle",
|
|
@@ -56227,35 +56258,155 @@ var DishwasherStateSchema = _enum([
|
|
|
56227
56258
|
"error",
|
|
56228
56259
|
"unavailable"
|
|
56229
56260
|
]);
|
|
56261
|
+
/**
|
|
56262
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
56263
|
+
* view for compact surfaces; this is what the appliance said.
|
|
56264
|
+
*/
|
|
56265
|
+
var DishwasherOperationStateSchema = _enum([
|
|
56266
|
+
"Inactive",
|
|
56267
|
+
"Ready",
|
|
56268
|
+
"DelayedStart",
|
|
56269
|
+
"Run",
|
|
56270
|
+
"Pause",
|
|
56271
|
+
"ActionRequired",
|
|
56272
|
+
"Finished",
|
|
56273
|
+
"Error",
|
|
56274
|
+
"Aborting"
|
|
56275
|
+
]);
|
|
56276
|
+
/**
|
|
56277
|
+
* Why fields may be `null`:
|
|
56278
|
+
* - `available` — the link is up and the description is loaded;
|
|
56279
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
56280
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
56281
|
+
* be loaded, so its values cannot be decoded.
|
|
56282
|
+
*/
|
|
56283
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
56284
|
+
"available",
|
|
56285
|
+
"offline",
|
|
56286
|
+
"description-missing"
|
|
56287
|
+
]);
|
|
56230
56288
|
var DishwasherConsumableLevelSchema = _enum([
|
|
56231
56289
|
"ok",
|
|
56232
56290
|
"low",
|
|
56233
56291
|
"empty"
|
|
56234
56292
|
]);
|
|
56235
56293
|
var DishwasherStatusSchema = object({
|
|
56294
|
+
availability: DishwasherAvailabilitySchema,
|
|
56295
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
56236
56296
|
state: DishwasherStateSchema,
|
|
56237
|
-
/**
|
|
56297
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
56298
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
56299
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
56238
56300
|
program: string().nullable(),
|
|
56239
|
-
/**
|
|
56301
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
56302
|
+
selectedProgram: string().nullable(),
|
|
56303
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
56240
56304
|
availablePrograms: array(string()),
|
|
56241
|
-
/**
|
|
56242
|
-
|
|
56305
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
56306
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
56307
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
56308
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
56243
56309
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
56244
56310
|
progressPercent: number().min(0).max(100).nullable(),
|
|
56245
|
-
/** True when the door is reported open. */
|
|
56246
|
-
doorOpen: boolean(),
|
|
56247
|
-
/** True when
|
|
56248
|
-
|
|
56249
|
-
/**
|
|
56250
|
-
|
|
56311
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
56312
|
+
doorOpen: boolean().nullable(),
|
|
56313
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
56314
|
+
doorLocked: boolean().nullable(),
|
|
56315
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
56316
|
+
remoteStartAllowed: boolean().nullable(),
|
|
56317
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
56318
|
+
remoteControlActive: boolean().nullable(),
|
|
56319
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
56320
|
+
localControlActive: boolean().nullable(),
|
|
56321
|
+
/** Main power / switched-on state; null when not known. */
|
|
56322
|
+
powerOn: boolean().nullable(),
|
|
56323
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56324
|
+
powerState: string().nullable(),
|
|
56251
56325
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56252
56326
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56253
|
-
|
|
56254
|
-
|
|
56327
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56328
|
+
halfLoad: boolean().nullable(),
|
|
56329
|
+
hygienePlus: boolean().nullable(),
|
|
56330
|
+
/** Extra dry option when the appliance exposes it. */
|
|
56331
|
+
extraDry: boolean().nullable(),
|
|
56332
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
56333
|
+
intensiveZone: boolean().nullable(),
|
|
56334
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
56335
|
+
varioSpeedPlus: boolean().nullable(),
|
|
56336
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
56337
|
+
childLock: boolean().nullable(),
|
|
56338
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
56339
|
+
activeEvents: array(string()),
|
|
56340
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
56255
56341
|
errorCode: number().nullable(),
|
|
56342
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
56256
56343
|
errorLabel: string().nullable(),
|
|
56344
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
56257
56345
|
lastFetchedAt: number()
|
|
56258
56346
|
});
|
|
56347
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56348
|
+
/** A value a program option or setting can take. */
|
|
56349
|
+
var DishwasherValueSchema = union([
|
|
56350
|
+
boolean(),
|
|
56351
|
+
string(),
|
|
56352
|
+
number()
|
|
56353
|
+
]);
|
|
56354
|
+
var DishwasherAccessSchema = _enum([
|
|
56355
|
+
"none",
|
|
56356
|
+
"read",
|
|
56357
|
+
"readWrite",
|
|
56358
|
+
"writeOnly",
|
|
56359
|
+
"readStatic"
|
|
56360
|
+
]);
|
|
56361
|
+
/**
|
|
56362
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56363
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56364
|
+
*/
|
|
56365
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56366
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56367
|
+
key: string(),
|
|
56368
|
+
/** Last segment of the key, for display. */
|
|
56369
|
+
name: string(),
|
|
56370
|
+
type: _enum([
|
|
56371
|
+
"boolean",
|
|
56372
|
+
"number",
|
|
56373
|
+
"enum",
|
|
56374
|
+
"string"
|
|
56375
|
+
]),
|
|
56376
|
+
access: DishwasherAccessSchema,
|
|
56377
|
+
/** The appliance reports this entity as currently available. */
|
|
56378
|
+
available: boolean(),
|
|
56379
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56380
|
+
unit: string().nullable(),
|
|
56381
|
+
min: number().nullable(),
|
|
56382
|
+
max: number().nullable(),
|
|
56383
|
+
step: number().nullable(),
|
|
56384
|
+
/** Allowed members of an enum; null for other types. */
|
|
56385
|
+
enumValues: array(string()).nullable(),
|
|
56386
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56387
|
+
});
|
|
56388
|
+
var DishwasherProgramSchema = object({
|
|
56389
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56390
|
+
key: string(),
|
|
56391
|
+
name: string(),
|
|
56392
|
+
/** The appliance currently offers this program. */
|
|
56393
|
+
available: boolean(),
|
|
56394
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56395
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56396
|
+
});
|
|
56397
|
+
var DishwasherOptionsSchema = object({
|
|
56398
|
+
availability: DishwasherAvailabilitySchema,
|
|
56399
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56400
|
+
supportsStart: boolean(),
|
|
56401
|
+
supportsPause: boolean(),
|
|
56402
|
+
supportsResume: boolean(),
|
|
56403
|
+
supportsStop: boolean(),
|
|
56404
|
+
supportsPower: boolean(),
|
|
56405
|
+
/** Every program the description lists, with its options. */
|
|
56406
|
+
programs: array(DishwasherProgramSchema),
|
|
56407
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56408
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56409
|
+
});
|
|
56259
56410
|
var dishwasherCapability = {
|
|
56260
56411
|
name: "dishwasher",
|
|
56261
56412
|
scope: "device",
|
|
@@ -56263,58 +56414,102 @@ var dishwasherCapability = {
|
|
|
56263
56414
|
mode: "singleton",
|
|
56264
56415
|
deviceTypes: [DeviceType.Dishwasher],
|
|
56265
56416
|
methods: {
|
|
56266
|
-
|
|
56417
|
+
/**
|
|
56418
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56419
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56420
|
+
*/
|
|
56421
|
+
start: method(object({
|
|
56422
|
+
deviceId: DeviceIdSchema,
|
|
56423
|
+
program: string().min(1).optional(),
|
|
56424
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56425
|
+
}), _void(), {
|
|
56267
56426
|
kind: "mutation",
|
|
56268
56427
|
auth: "protected"
|
|
56269
56428
|
}),
|
|
56270
|
-
pause: method(object({ deviceId:
|
|
56429
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56271
56430
|
kind: "mutation",
|
|
56272
56431
|
auth: "protected"
|
|
56273
56432
|
}),
|
|
56274
|
-
|
|
56433
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56275
56434
|
kind: "mutation",
|
|
56276
56435
|
auth: "protected"
|
|
56277
56436
|
}),
|
|
56437
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56438
|
+
kind: "mutation",
|
|
56439
|
+
auth: "protected"
|
|
56440
|
+
}),
|
|
56441
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
56278
56442
|
setProgram: method(object({
|
|
56279
|
-
deviceId:
|
|
56443
|
+
deviceId: DeviceIdSchema,
|
|
56280
56444
|
program: string().min(1)
|
|
56281
56445
|
}), _void(), {
|
|
56282
56446
|
kind: "mutation",
|
|
56283
56447
|
auth: "protected"
|
|
56284
56448
|
}),
|
|
56285
56449
|
setPower: method(object({
|
|
56286
|
-
deviceId:
|
|
56450
|
+
deviceId: DeviceIdSchema,
|
|
56287
56451
|
on: boolean()
|
|
56288
56452
|
}), _void(), {
|
|
56289
56453
|
kind: "mutation",
|
|
56290
56454
|
auth: "protected"
|
|
56291
56455
|
}),
|
|
56292
56456
|
setHalfLoad: method(object({
|
|
56293
|
-
deviceId:
|
|
56457
|
+
deviceId: DeviceIdSchema,
|
|
56294
56458
|
on: boolean()
|
|
56295
56459
|
}), _void(), {
|
|
56296
56460
|
kind: "mutation",
|
|
56297
56461
|
auth: "protected"
|
|
56298
56462
|
}),
|
|
56299
56463
|
setHygienePlus: method(object({
|
|
56300
|
-
deviceId:
|
|
56464
|
+
deviceId: DeviceIdSchema,
|
|
56465
|
+
on: boolean()
|
|
56466
|
+
}), _void(), {
|
|
56467
|
+
kind: "mutation",
|
|
56468
|
+
auth: "protected"
|
|
56469
|
+
}),
|
|
56470
|
+
setExtraDry: method(object({
|
|
56471
|
+
deviceId: DeviceIdSchema,
|
|
56472
|
+
on: boolean()
|
|
56473
|
+
}), _void(), {
|
|
56474
|
+
kind: "mutation",
|
|
56475
|
+
auth: "protected"
|
|
56476
|
+
}),
|
|
56477
|
+
setIntensiveZone: method(object({
|
|
56478
|
+
deviceId: DeviceIdSchema,
|
|
56479
|
+
on: boolean()
|
|
56480
|
+
}), _void(), {
|
|
56481
|
+
kind: "mutation",
|
|
56482
|
+
auth: "protected"
|
|
56483
|
+
}),
|
|
56484
|
+
setVarioSpeedPlus: method(object({
|
|
56485
|
+
deviceId: DeviceIdSchema,
|
|
56486
|
+
on: boolean()
|
|
56487
|
+
}), _void(), {
|
|
56488
|
+
kind: "mutation",
|
|
56489
|
+
auth: "protected"
|
|
56490
|
+
}),
|
|
56491
|
+
setChildLock: method(object({
|
|
56492
|
+
deviceId: DeviceIdSchema,
|
|
56301
56493
|
on: boolean()
|
|
56302
56494
|
}), _void(), {
|
|
56303
56495
|
kind: "mutation",
|
|
56304
56496
|
auth: "protected"
|
|
56305
56497
|
}),
|
|
56498
|
+
/**
|
|
56499
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56500
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56501
|
+
* its declared range / members.
|
|
56502
|
+
*/
|
|
56306
56503
|
setOption: method(object({
|
|
56307
|
-
deviceId:
|
|
56504
|
+
deviceId: DeviceIdSchema,
|
|
56308
56505
|
key: string().min(1),
|
|
56309
|
-
value:
|
|
56310
|
-
boolean(),
|
|
56311
|
-
string(),
|
|
56312
|
-
number()
|
|
56313
|
-
])
|
|
56506
|
+
value: DishwasherValueSchema
|
|
56314
56507
|
}), _void(), {
|
|
56315
56508
|
kind: "mutation",
|
|
56316
56509
|
auth: "protected"
|
|
56317
|
-
})
|
|
56510
|
+
}),
|
|
56511
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56512
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
56318
56513
|
},
|
|
56319
56514
|
status: {
|
|
56320
56515
|
schema: DishwasherStatusSchema,
|
|
@@ -70843,6 +71038,12 @@ Object.freeze({
|
|
|
70843
71038
|
addonId: null,
|
|
70844
71039
|
access: "view"
|
|
70845
71040
|
},
|
|
71041
|
+
"dishwasher.getOptions": {
|
|
71042
|
+
capName: "dishwasher",
|
|
71043
|
+
capScope: "device",
|
|
71044
|
+
addonId: null,
|
|
71045
|
+
access: "view"
|
|
71046
|
+
},
|
|
70846
71047
|
"dishwasher.getStatus": {
|
|
70847
71048
|
capName: "dishwasher",
|
|
70848
71049
|
capScope: "device",
|
|
@@ -70855,6 +71056,24 @@ Object.freeze({
|
|
|
70855
71056
|
addonId: null,
|
|
70856
71057
|
access: "create"
|
|
70857
71058
|
},
|
|
71059
|
+
"dishwasher.resume": {
|
|
71060
|
+
capName: "dishwasher",
|
|
71061
|
+
capScope: "device",
|
|
71062
|
+
addonId: null,
|
|
71063
|
+
access: "create"
|
|
71064
|
+
},
|
|
71065
|
+
"dishwasher.setChildLock": {
|
|
71066
|
+
capName: "dishwasher",
|
|
71067
|
+
capScope: "device",
|
|
71068
|
+
addonId: null,
|
|
71069
|
+
access: "create"
|
|
71070
|
+
},
|
|
71071
|
+
"dishwasher.setExtraDry": {
|
|
71072
|
+
capName: "dishwasher",
|
|
71073
|
+
capScope: "device",
|
|
71074
|
+
addonId: null,
|
|
71075
|
+
access: "create"
|
|
71076
|
+
},
|
|
70858
71077
|
"dishwasher.setHalfLoad": {
|
|
70859
71078
|
capName: "dishwasher",
|
|
70860
71079
|
capScope: "device",
|
|
@@ -70867,6 +71086,12 @@ Object.freeze({
|
|
|
70867
71086
|
addonId: null,
|
|
70868
71087
|
access: "create"
|
|
70869
71088
|
},
|
|
71089
|
+
"dishwasher.setIntensiveZone": {
|
|
71090
|
+
capName: "dishwasher",
|
|
71091
|
+
capScope: "device",
|
|
71092
|
+
addonId: null,
|
|
71093
|
+
access: "create"
|
|
71094
|
+
},
|
|
70870
71095
|
"dishwasher.setOption": {
|
|
70871
71096
|
capName: "dishwasher",
|
|
70872
71097
|
capScope: "device",
|
|
@@ -70885,6 +71110,12 @@ Object.freeze({
|
|
|
70885
71110
|
addonId: null,
|
|
70886
71111
|
access: "create"
|
|
70887
71112
|
},
|
|
71113
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
71114
|
+
capName: "dishwasher",
|
|
71115
|
+
capScope: "device",
|
|
71116
|
+
addonId: null,
|
|
71117
|
+
access: "create"
|
|
71118
|
+
},
|
|
70888
71119
|
"dishwasher.start": {
|
|
70889
71120
|
capName: "dishwasher",
|
|
70890
71121
|
capScope: "device",
|
|
@@ -75331,6 +75562,12 @@ Object.freeze({
|
|
|
75331
75562
|
addonId: null,
|
|
75332
75563
|
access: "view"
|
|
75333
75564
|
},
|
|
75565
|
+
"storageMigration.moverClearance": {
|
|
75566
|
+
capName: "storage-migration",
|
|
75567
|
+
capScope: "system",
|
|
75568
|
+
addonId: null,
|
|
75569
|
+
access: "view"
|
|
75570
|
+
},
|
|
75334
75571
|
"storageMigration.movers": {
|
|
75335
75572
|
capName: "storage-migration",
|
|
75336
75573
|
capScope: "system",
|
|
@@ -77742,6 +77979,11 @@ Object.freeze({
|
|
|
77742
77979
|
form: "single",
|
|
77743
77980
|
optional: false
|
|
77744
77981
|
}],
|
|
77982
|
+
"dishwasher.getOptions": [{
|
|
77983
|
+
name: "deviceId",
|
|
77984
|
+
form: "single",
|
|
77985
|
+
optional: false
|
|
77986
|
+
}],
|
|
77745
77987
|
"dishwasher.getStatus": [{
|
|
77746
77988
|
name: "deviceId",
|
|
77747
77989
|
form: "single",
|
|
@@ -77752,6 +77994,21 @@ Object.freeze({
|
|
|
77752
77994
|
form: "single",
|
|
77753
77995
|
optional: false
|
|
77754
77996
|
}],
|
|
77997
|
+
"dishwasher.resume": [{
|
|
77998
|
+
name: "deviceId",
|
|
77999
|
+
form: "single",
|
|
78000
|
+
optional: false
|
|
78001
|
+
}],
|
|
78002
|
+
"dishwasher.setChildLock": [{
|
|
78003
|
+
name: "deviceId",
|
|
78004
|
+
form: "single",
|
|
78005
|
+
optional: false
|
|
78006
|
+
}],
|
|
78007
|
+
"dishwasher.setExtraDry": [{
|
|
78008
|
+
name: "deviceId",
|
|
78009
|
+
form: "single",
|
|
78010
|
+
optional: false
|
|
78011
|
+
}],
|
|
77755
78012
|
"dishwasher.setHalfLoad": [{
|
|
77756
78013
|
name: "deviceId",
|
|
77757
78014
|
form: "single",
|
|
@@ -77762,6 +78019,11 @@ Object.freeze({
|
|
|
77762
78019
|
form: "single",
|
|
77763
78020
|
optional: false
|
|
77764
78021
|
}],
|
|
78022
|
+
"dishwasher.setIntensiveZone": [{
|
|
78023
|
+
name: "deviceId",
|
|
78024
|
+
form: "single",
|
|
78025
|
+
optional: false
|
|
78026
|
+
}],
|
|
77765
78027
|
"dishwasher.setOption": [{
|
|
77766
78028
|
name: "deviceId",
|
|
77767
78029
|
form: "single",
|
|
@@ -77777,6 +78039,11 @@ Object.freeze({
|
|
|
77777
78039
|
form: "single",
|
|
77778
78040
|
optional: false
|
|
77779
78041
|
}],
|
|
78042
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
78043
|
+
name: "deviceId",
|
|
78044
|
+
form: "single",
|
|
78045
|
+
optional: false
|
|
78046
|
+
}],
|
|
77780
78047
|
"dishwasher.start": [{
|
|
77781
78048
|
name: "deviceId",
|
|
77782
78049
|
form: "single",
|
|
@@ -79818,6 +80085,9 @@ new Map(Object.entries({
|
|
|
79818
80085
|
"wrapper-update-available": "system",
|
|
79819
80086
|
"backup-completed": "system",
|
|
79820
80087
|
"export-completed": "system",
|
|
80088
|
+
"alert-critical": "system",
|
|
80089
|
+
"alert-error": "system",
|
|
80090
|
+
"alert-critical-resolved": "system",
|
|
79821
80091
|
"storage-location-low": "system",
|
|
79822
80092
|
"storage-location-critical": "system",
|
|
79823
80093
|
"storage-location-ok": "system",
|
|
@@ -79942,6 +80212,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79942
80212
|
"storage-location-ok"
|
|
79943
80213
|
]
|
|
79944
80214
|
},
|
|
80215
|
+
{
|
|
80216
|
+
id: "alerts",
|
|
80217
|
+
family: "system",
|
|
80218
|
+
label: "Alerts",
|
|
80219
|
+
kinds: [
|
|
80220
|
+
"alert-critical",
|
|
80221
|
+
"alert-error",
|
|
80222
|
+
"alert-critical-resolved"
|
|
80223
|
+
]
|
|
80224
|
+
},
|
|
79945
80225
|
{
|
|
79946
80226
|
id: "alarm",
|
|
79947
80227
|
family: "alarm",
|
|
@@ -79986,6 +80266,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
79986
80266
|
return [[descriptor.kind, field]];
|
|
79987
80267
|
})));
|
|
79988
80268
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
80269
|
+
object({
|
|
80270
|
+
phase: _enum(["raised", "resolved"]),
|
|
80271
|
+
episodeId: string().min(1),
|
|
80272
|
+
alertId: string().min(1),
|
|
80273
|
+
severity: AlertSeveritySchema,
|
|
80274
|
+
category: string(),
|
|
80275
|
+
title: string(),
|
|
80276
|
+
message: string(),
|
|
80277
|
+
sourceType: string().optional(),
|
|
80278
|
+
sourceId: string().optional(),
|
|
80279
|
+
nodeId: string().optional(),
|
|
80280
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
80281
|
+
actionUrl: string().optional(),
|
|
80282
|
+
at: number()
|
|
80283
|
+
});
|
|
79989
80284
|
var RULE_BODY_ONLY = ["body"];
|
|
79990
80285
|
var RULE_TEXT = ["title", "body"];
|
|
79991
80286
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -79995,6 +80290,11 @@ var TANK = [
|
|
|
79995
80290
|
"device-tank-full",
|
|
79996
80291
|
"device-tank-normal"
|
|
79997
80292
|
];
|
|
80293
|
+
var ALERT_EPISODE = [
|
|
80294
|
+
"alert-critical",
|
|
80295
|
+
"alert-error",
|
|
80296
|
+
"alert-critical-resolved"
|
|
80297
|
+
];
|
|
79998
80298
|
var UPDATES = [
|
|
79999
80299
|
"addon-update-available",
|
|
80000
80300
|
"server-update-available",
|
|
@@ -80187,14 +80487,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
80187
80487
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80188
80488
|
([...RULE_TEXT], [...TANK]),
|
|
80189
80489
|
[...RULE_TEXT],
|
|
80190
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
80191
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
80192
|
-
[...RULE_TEXT],
|
|
80490
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
80491
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
80193
80492
|
[...RULE_TEXT],
|
|
80194
80493
|
[...RULE_TEXT],
|
|
80195
80494
|
[...RULE_TEXT],
|
|
80196
80495
|
[...RULE_TEXT],
|
|
80197
80496
|
[...RULE_TEXT],
|
|
80497
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80198
80498
|
[...RULE_TEXT],
|
|
80199
80499
|
[...RULE_TEXT],
|
|
80200
80500
|
[...RULE_TEXT],
|
|
@@ -80212,7 +80512,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
80212
80512
|
[...RULE_TEXT],
|
|
80213
80513
|
[...RULE_TEXT],
|
|
80214
80514
|
[...RULE_TEXT],
|
|
80215
|
-
[...RULE_TEXT],
|
|
80515
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80516
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80517
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80518
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80519
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80216
80520
|
[...RULE_TEXT],
|
|
80217
80521
|
[...RULE_TEXT],
|
|
80218
80522
|
[...RULE_TEXT],
|
package/dist/addon.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { Agent as Agent$1, request as request$1 } from "node:https";
|
|
|
13
13
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
14
14
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region ../types/dist/event-category-
|
|
16
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
17
17
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
18
18
|
EventCategory["SystemBoot"] = "system.boot";
|
|
19
19
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -92,9 +92,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
92
92
|
/**
|
|
93
93
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
94
94
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
95
|
-
* alert centre turns it into one
|
|
95
|
+
* alert centre turns it into one critical alert.
|
|
96
96
|
*/
|
|
97
97
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
98
|
+
/**
|
|
99
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
100
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
101
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
102
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
103
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
104
|
+
* event may be dropped (D8, D11).
|
|
105
|
+
*/
|
|
106
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
98
107
|
EventCategory["AddonError"] = "addon.error";
|
|
99
108
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
100
109
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5419,7 +5428,7 @@ var ZodIssueCode = {
|
|
|
5419
5428
|
var ZodFirstPartyTypeKind;
|
|
5420
5429
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5421
5430
|
//#endregion
|
|
5422
|
-
//#region ../types/dist/sleep-
|
|
5431
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5423
5432
|
/**
|
|
5424
5433
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5425
5434
|
* window to float samples (D455).
|
|
@@ -13499,7 +13508,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13499
13508
|
]);
|
|
13500
13509
|
var AlertActionSchema = object({
|
|
13501
13510
|
label: string(),
|
|
13502
|
-
href: string().optional()
|
|
13511
|
+
href: string().optional(),
|
|
13512
|
+
/**
|
|
13513
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13514
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13515
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13516
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13517
|
+
*/
|
|
13518
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13503
13519
|
});
|
|
13504
13520
|
var AlertStatusSchema = _enum([
|
|
13505
13521
|
"active",
|
|
@@ -17993,7 +18009,11 @@ var deviceDiscoveryCapability = {
|
|
|
17993
18009
|
};
|
|
17994
18010
|
/**
|
|
17995
18011
|
* `device-adoption` — generic discovery + adoption surface,
|
|
17996
|
-
* system-scoped
|
|
18012
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
18013
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
18014
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
18015
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
18016
|
+
* successor to `ha-discovery`:
|
|
17997
18017
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
17998
18018
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
17999
18019
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -42343,6 +42363,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42343
42363
|
"server-updated",
|
|
42344
42364
|
"export-completed",
|
|
42345
42365
|
"backup-completed",
|
|
42366
|
+
"alert-critical",
|
|
42367
|
+
"alert-error",
|
|
42368
|
+
"alert-critical-resolved",
|
|
42346
42369
|
"camera-online",
|
|
42347
42370
|
"camera-offline",
|
|
42348
42371
|
"camera-disabled",
|
|
@@ -51523,7 +51546,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51523
51546
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51524
51547
|
kind: "mutation",
|
|
51525
51548
|
auth: "admin"
|
|
51526
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51549
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51550
|
+
clear: boolean(),
|
|
51551
|
+
repointLocationId: string().optional()
|
|
51552
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51527
51553
|
kind: "mutation",
|
|
51528
51554
|
auth: "admin"
|
|
51529
51555
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -56197,6 +56223,11 @@ onStatusChanged: { data: object({
|
|
|
56197
56223
|
*
|
|
56198
56224
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
56199
56225
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
56226
|
+
*
|
|
56227
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
56228
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
56229
|
+
* the link is down, or the description does not carry it) and is never
|
|
56230
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
56200
56231
|
*/
|
|
56201
56232
|
var DishwasherStateSchema = _enum([
|
|
56202
56233
|
"idle",
|
|
@@ -56206,35 +56237,155 @@ var DishwasherStateSchema = _enum([
|
|
|
56206
56237
|
"error",
|
|
56207
56238
|
"unavailable"
|
|
56208
56239
|
]);
|
|
56240
|
+
/**
|
|
56241
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
56242
|
+
* view for compact surfaces; this is what the appliance said.
|
|
56243
|
+
*/
|
|
56244
|
+
var DishwasherOperationStateSchema = _enum([
|
|
56245
|
+
"Inactive",
|
|
56246
|
+
"Ready",
|
|
56247
|
+
"DelayedStart",
|
|
56248
|
+
"Run",
|
|
56249
|
+
"Pause",
|
|
56250
|
+
"ActionRequired",
|
|
56251
|
+
"Finished",
|
|
56252
|
+
"Error",
|
|
56253
|
+
"Aborting"
|
|
56254
|
+
]);
|
|
56255
|
+
/**
|
|
56256
|
+
* Why fields may be `null`:
|
|
56257
|
+
* - `available` — the link is up and the description is loaded;
|
|
56258
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
56259
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
56260
|
+
* be loaded, so its values cannot be decoded.
|
|
56261
|
+
*/
|
|
56262
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
56263
|
+
"available",
|
|
56264
|
+
"offline",
|
|
56265
|
+
"description-missing"
|
|
56266
|
+
]);
|
|
56209
56267
|
var DishwasherConsumableLevelSchema = _enum([
|
|
56210
56268
|
"ok",
|
|
56211
56269
|
"low",
|
|
56212
56270
|
"empty"
|
|
56213
56271
|
]);
|
|
56214
56272
|
var DishwasherStatusSchema = object({
|
|
56273
|
+
availability: DishwasherAvailabilitySchema,
|
|
56274
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
56215
56275
|
state: DishwasherStateSchema,
|
|
56216
|
-
/**
|
|
56276
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
56277
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
56278
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
56217
56279
|
program: string().nullable(),
|
|
56218
|
-
/**
|
|
56280
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
56281
|
+
selectedProgram: string().nullable(),
|
|
56282
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
56219
56283
|
availablePrograms: array(string()),
|
|
56220
|
-
/**
|
|
56221
|
-
|
|
56284
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
56285
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
56286
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
56287
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
56222
56288
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
56223
56289
|
progressPercent: number().min(0).max(100).nullable(),
|
|
56224
|
-
/** True when the door is reported open. */
|
|
56225
|
-
doorOpen: boolean(),
|
|
56226
|
-
/** True when
|
|
56227
|
-
|
|
56228
|
-
/**
|
|
56229
|
-
|
|
56290
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
56291
|
+
doorOpen: boolean().nullable(),
|
|
56292
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
56293
|
+
doorLocked: boolean().nullable(),
|
|
56294
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
56295
|
+
remoteStartAllowed: boolean().nullable(),
|
|
56296
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
56297
|
+
remoteControlActive: boolean().nullable(),
|
|
56298
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
56299
|
+
localControlActive: boolean().nullable(),
|
|
56300
|
+
/** Main power / switched-on state; null when not known. */
|
|
56301
|
+
powerOn: boolean().nullable(),
|
|
56302
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56303
|
+
powerState: string().nullable(),
|
|
56230
56304
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56231
56305
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56232
|
-
|
|
56233
|
-
|
|
56306
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56307
|
+
halfLoad: boolean().nullable(),
|
|
56308
|
+
hygienePlus: boolean().nullable(),
|
|
56309
|
+
/** Extra dry option when the appliance exposes it. */
|
|
56310
|
+
extraDry: boolean().nullable(),
|
|
56311
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
56312
|
+
intensiveZone: boolean().nullable(),
|
|
56313
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
56314
|
+
varioSpeedPlus: boolean().nullable(),
|
|
56315
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
56316
|
+
childLock: boolean().nullable(),
|
|
56317
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
56318
|
+
activeEvents: array(string()),
|
|
56319
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
56234
56320
|
errorCode: number().nullable(),
|
|
56321
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
56235
56322
|
errorLabel: string().nullable(),
|
|
56323
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
56236
56324
|
lastFetchedAt: number()
|
|
56237
56325
|
});
|
|
56326
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56327
|
+
/** A value a program option or setting can take. */
|
|
56328
|
+
var DishwasherValueSchema = union([
|
|
56329
|
+
boolean(),
|
|
56330
|
+
string(),
|
|
56331
|
+
number()
|
|
56332
|
+
]);
|
|
56333
|
+
var DishwasherAccessSchema = _enum([
|
|
56334
|
+
"none",
|
|
56335
|
+
"read",
|
|
56336
|
+
"readWrite",
|
|
56337
|
+
"writeOnly",
|
|
56338
|
+
"readStatic"
|
|
56339
|
+
]);
|
|
56340
|
+
/**
|
|
56341
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56342
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56343
|
+
*/
|
|
56344
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56345
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56346
|
+
key: string(),
|
|
56347
|
+
/** Last segment of the key, for display. */
|
|
56348
|
+
name: string(),
|
|
56349
|
+
type: _enum([
|
|
56350
|
+
"boolean",
|
|
56351
|
+
"number",
|
|
56352
|
+
"enum",
|
|
56353
|
+
"string"
|
|
56354
|
+
]),
|
|
56355
|
+
access: DishwasherAccessSchema,
|
|
56356
|
+
/** The appliance reports this entity as currently available. */
|
|
56357
|
+
available: boolean(),
|
|
56358
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56359
|
+
unit: string().nullable(),
|
|
56360
|
+
min: number().nullable(),
|
|
56361
|
+
max: number().nullable(),
|
|
56362
|
+
step: number().nullable(),
|
|
56363
|
+
/** Allowed members of an enum; null for other types. */
|
|
56364
|
+
enumValues: array(string()).nullable(),
|
|
56365
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56366
|
+
});
|
|
56367
|
+
var DishwasherProgramSchema = object({
|
|
56368
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56369
|
+
key: string(),
|
|
56370
|
+
name: string(),
|
|
56371
|
+
/** The appliance currently offers this program. */
|
|
56372
|
+
available: boolean(),
|
|
56373
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56374
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56375
|
+
});
|
|
56376
|
+
var DishwasherOptionsSchema = object({
|
|
56377
|
+
availability: DishwasherAvailabilitySchema,
|
|
56378
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56379
|
+
supportsStart: boolean(),
|
|
56380
|
+
supportsPause: boolean(),
|
|
56381
|
+
supportsResume: boolean(),
|
|
56382
|
+
supportsStop: boolean(),
|
|
56383
|
+
supportsPower: boolean(),
|
|
56384
|
+
/** Every program the description lists, with its options. */
|
|
56385
|
+
programs: array(DishwasherProgramSchema),
|
|
56386
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56387
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56388
|
+
});
|
|
56238
56389
|
var dishwasherCapability = {
|
|
56239
56390
|
name: "dishwasher",
|
|
56240
56391
|
scope: "device",
|
|
@@ -56242,58 +56393,102 @@ var dishwasherCapability = {
|
|
|
56242
56393
|
mode: "singleton",
|
|
56243
56394
|
deviceTypes: [DeviceType.Dishwasher],
|
|
56244
56395
|
methods: {
|
|
56245
|
-
|
|
56396
|
+
/**
|
|
56397
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56398
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56399
|
+
*/
|
|
56400
|
+
start: method(object({
|
|
56401
|
+
deviceId: DeviceIdSchema,
|
|
56402
|
+
program: string().min(1).optional(),
|
|
56403
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56404
|
+
}), _void(), {
|
|
56246
56405
|
kind: "mutation",
|
|
56247
56406
|
auth: "protected"
|
|
56248
56407
|
}),
|
|
56249
|
-
pause: method(object({ deviceId:
|
|
56408
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56250
56409
|
kind: "mutation",
|
|
56251
56410
|
auth: "protected"
|
|
56252
56411
|
}),
|
|
56253
|
-
|
|
56412
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56254
56413
|
kind: "mutation",
|
|
56255
56414
|
auth: "protected"
|
|
56256
56415
|
}),
|
|
56416
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56417
|
+
kind: "mutation",
|
|
56418
|
+
auth: "protected"
|
|
56419
|
+
}),
|
|
56420
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
56257
56421
|
setProgram: method(object({
|
|
56258
|
-
deviceId:
|
|
56422
|
+
deviceId: DeviceIdSchema,
|
|
56259
56423
|
program: string().min(1)
|
|
56260
56424
|
}), _void(), {
|
|
56261
56425
|
kind: "mutation",
|
|
56262
56426
|
auth: "protected"
|
|
56263
56427
|
}),
|
|
56264
56428
|
setPower: method(object({
|
|
56265
|
-
deviceId:
|
|
56429
|
+
deviceId: DeviceIdSchema,
|
|
56266
56430
|
on: boolean()
|
|
56267
56431
|
}), _void(), {
|
|
56268
56432
|
kind: "mutation",
|
|
56269
56433
|
auth: "protected"
|
|
56270
56434
|
}),
|
|
56271
56435
|
setHalfLoad: method(object({
|
|
56272
|
-
deviceId:
|
|
56436
|
+
deviceId: DeviceIdSchema,
|
|
56273
56437
|
on: boolean()
|
|
56274
56438
|
}), _void(), {
|
|
56275
56439
|
kind: "mutation",
|
|
56276
56440
|
auth: "protected"
|
|
56277
56441
|
}),
|
|
56278
56442
|
setHygienePlus: method(object({
|
|
56279
|
-
deviceId:
|
|
56443
|
+
deviceId: DeviceIdSchema,
|
|
56444
|
+
on: boolean()
|
|
56445
|
+
}), _void(), {
|
|
56446
|
+
kind: "mutation",
|
|
56447
|
+
auth: "protected"
|
|
56448
|
+
}),
|
|
56449
|
+
setExtraDry: method(object({
|
|
56450
|
+
deviceId: DeviceIdSchema,
|
|
56451
|
+
on: boolean()
|
|
56452
|
+
}), _void(), {
|
|
56453
|
+
kind: "mutation",
|
|
56454
|
+
auth: "protected"
|
|
56455
|
+
}),
|
|
56456
|
+
setIntensiveZone: method(object({
|
|
56457
|
+
deviceId: DeviceIdSchema,
|
|
56458
|
+
on: boolean()
|
|
56459
|
+
}), _void(), {
|
|
56460
|
+
kind: "mutation",
|
|
56461
|
+
auth: "protected"
|
|
56462
|
+
}),
|
|
56463
|
+
setVarioSpeedPlus: method(object({
|
|
56464
|
+
deviceId: DeviceIdSchema,
|
|
56465
|
+
on: boolean()
|
|
56466
|
+
}), _void(), {
|
|
56467
|
+
kind: "mutation",
|
|
56468
|
+
auth: "protected"
|
|
56469
|
+
}),
|
|
56470
|
+
setChildLock: method(object({
|
|
56471
|
+
deviceId: DeviceIdSchema,
|
|
56280
56472
|
on: boolean()
|
|
56281
56473
|
}), _void(), {
|
|
56282
56474
|
kind: "mutation",
|
|
56283
56475
|
auth: "protected"
|
|
56284
56476
|
}),
|
|
56477
|
+
/**
|
|
56478
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56479
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56480
|
+
* its declared range / members.
|
|
56481
|
+
*/
|
|
56285
56482
|
setOption: method(object({
|
|
56286
|
-
deviceId:
|
|
56483
|
+
deviceId: DeviceIdSchema,
|
|
56287
56484
|
key: string().min(1),
|
|
56288
|
-
value:
|
|
56289
|
-
boolean(),
|
|
56290
|
-
string(),
|
|
56291
|
-
number()
|
|
56292
|
-
])
|
|
56485
|
+
value: DishwasherValueSchema
|
|
56293
56486
|
}), _void(), {
|
|
56294
56487
|
kind: "mutation",
|
|
56295
56488
|
auth: "protected"
|
|
56296
|
-
})
|
|
56489
|
+
}),
|
|
56490
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56491
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
56297
56492
|
},
|
|
56298
56493
|
status: {
|
|
56299
56494
|
schema: DishwasherStatusSchema,
|
|
@@ -70822,6 +71017,12 @@ Object.freeze({
|
|
|
70822
71017
|
addonId: null,
|
|
70823
71018
|
access: "view"
|
|
70824
71019
|
},
|
|
71020
|
+
"dishwasher.getOptions": {
|
|
71021
|
+
capName: "dishwasher",
|
|
71022
|
+
capScope: "device",
|
|
71023
|
+
addonId: null,
|
|
71024
|
+
access: "view"
|
|
71025
|
+
},
|
|
70825
71026
|
"dishwasher.getStatus": {
|
|
70826
71027
|
capName: "dishwasher",
|
|
70827
71028
|
capScope: "device",
|
|
@@ -70834,6 +71035,24 @@ Object.freeze({
|
|
|
70834
71035
|
addonId: null,
|
|
70835
71036
|
access: "create"
|
|
70836
71037
|
},
|
|
71038
|
+
"dishwasher.resume": {
|
|
71039
|
+
capName: "dishwasher",
|
|
71040
|
+
capScope: "device",
|
|
71041
|
+
addonId: null,
|
|
71042
|
+
access: "create"
|
|
71043
|
+
},
|
|
71044
|
+
"dishwasher.setChildLock": {
|
|
71045
|
+
capName: "dishwasher",
|
|
71046
|
+
capScope: "device",
|
|
71047
|
+
addonId: null,
|
|
71048
|
+
access: "create"
|
|
71049
|
+
},
|
|
71050
|
+
"dishwasher.setExtraDry": {
|
|
71051
|
+
capName: "dishwasher",
|
|
71052
|
+
capScope: "device",
|
|
71053
|
+
addonId: null,
|
|
71054
|
+
access: "create"
|
|
71055
|
+
},
|
|
70837
71056
|
"dishwasher.setHalfLoad": {
|
|
70838
71057
|
capName: "dishwasher",
|
|
70839
71058
|
capScope: "device",
|
|
@@ -70846,6 +71065,12 @@ Object.freeze({
|
|
|
70846
71065
|
addonId: null,
|
|
70847
71066
|
access: "create"
|
|
70848
71067
|
},
|
|
71068
|
+
"dishwasher.setIntensiveZone": {
|
|
71069
|
+
capName: "dishwasher",
|
|
71070
|
+
capScope: "device",
|
|
71071
|
+
addonId: null,
|
|
71072
|
+
access: "create"
|
|
71073
|
+
},
|
|
70849
71074
|
"dishwasher.setOption": {
|
|
70850
71075
|
capName: "dishwasher",
|
|
70851
71076
|
capScope: "device",
|
|
@@ -70864,6 +71089,12 @@ Object.freeze({
|
|
|
70864
71089
|
addonId: null,
|
|
70865
71090
|
access: "create"
|
|
70866
71091
|
},
|
|
71092
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
71093
|
+
capName: "dishwasher",
|
|
71094
|
+
capScope: "device",
|
|
71095
|
+
addonId: null,
|
|
71096
|
+
access: "create"
|
|
71097
|
+
},
|
|
70867
71098
|
"dishwasher.start": {
|
|
70868
71099
|
capName: "dishwasher",
|
|
70869
71100
|
capScope: "device",
|
|
@@ -75310,6 +75541,12 @@ Object.freeze({
|
|
|
75310
75541
|
addonId: null,
|
|
75311
75542
|
access: "view"
|
|
75312
75543
|
},
|
|
75544
|
+
"storageMigration.moverClearance": {
|
|
75545
|
+
capName: "storage-migration",
|
|
75546
|
+
capScope: "system",
|
|
75547
|
+
addonId: null,
|
|
75548
|
+
access: "view"
|
|
75549
|
+
},
|
|
75313
75550
|
"storageMigration.movers": {
|
|
75314
75551
|
capName: "storage-migration",
|
|
75315
75552
|
capScope: "system",
|
|
@@ -77721,6 +77958,11 @@ Object.freeze({
|
|
|
77721
77958
|
form: "single",
|
|
77722
77959
|
optional: false
|
|
77723
77960
|
}],
|
|
77961
|
+
"dishwasher.getOptions": [{
|
|
77962
|
+
name: "deviceId",
|
|
77963
|
+
form: "single",
|
|
77964
|
+
optional: false
|
|
77965
|
+
}],
|
|
77724
77966
|
"dishwasher.getStatus": [{
|
|
77725
77967
|
name: "deviceId",
|
|
77726
77968
|
form: "single",
|
|
@@ -77731,6 +77973,21 @@ Object.freeze({
|
|
|
77731
77973
|
form: "single",
|
|
77732
77974
|
optional: false
|
|
77733
77975
|
}],
|
|
77976
|
+
"dishwasher.resume": [{
|
|
77977
|
+
name: "deviceId",
|
|
77978
|
+
form: "single",
|
|
77979
|
+
optional: false
|
|
77980
|
+
}],
|
|
77981
|
+
"dishwasher.setChildLock": [{
|
|
77982
|
+
name: "deviceId",
|
|
77983
|
+
form: "single",
|
|
77984
|
+
optional: false
|
|
77985
|
+
}],
|
|
77986
|
+
"dishwasher.setExtraDry": [{
|
|
77987
|
+
name: "deviceId",
|
|
77988
|
+
form: "single",
|
|
77989
|
+
optional: false
|
|
77990
|
+
}],
|
|
77734
77991
|
"dishwasher.setHalfLoad": [{
|
|
77735
77992
|
name: "deviceId",
|
|
77736
77993
|
form: "single",
|
|
@@ -77741,6 +77998,11 @@ Object.freeze({
|
|
|
77741
77998
|
form: "single",
|
|
77742
77999
|
optional: false
|
|
77743
78000
|
}],
|
|
78001
|
+
"dishwasher.setIntensiveZone": [{
|
|
78002
|
+
name: "deviceId",
|
|
78003
|
+
form: "single",
|
|
78004
|
+
optional: false
|
|
78005
|
+
}],
|
|
77744
78006
|
"dishwasher.setOption": [{
|
|
77745
78007
|
name: "deviceId",
|
|
77746
78008
|
form: "single",
|
|
@@ -77756,6 +78018,11 @@ Object.freeze({
|
|
|
77756
78018
|
form: "single",
|
|
77757
78019
|
optional: false
|
|
77758
78020
|
}],
|
|
78021
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
78022
|
+
name: "deviceId",
|
|
78023
|
+
form: "single",
|
|
78024
|
+
optional: false
|
|
78025
|
+
}],
|
|
77759
78026
|
"dishwasher.start": [{
|
|
77760
78027
|
name: "deviceId",
|
|
77761
78028
|
form: "single",
|
|
@@ -79797,6 +80064,9 @@ new Map(Object.entries({
|
|
|
79797
80064
|
"wrapper-update-available": "system",
|
|
79798
80065
|
"backup-completed": "system",
|
|
79799
80066
|
"export-completed": "system",
|
|
80067
|
+
"alert-critical": "system",
|
|
80068
|
+
"alert-error": "system",
|
|
80069
|
+
"alert-critical-resolved": "system",
|
|
79800
80070
|
"storage-location-low": "system",
|
|
79801
80071
|
"storage-location-critical": "system",
|
|
79802
80072
|
"storage-location-ok": "system",
|
|
@@ -79921,6 +80191,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79921
80191
|
"storage-location-ok"
|
|
79922
80192
|
]
|
|
79923
80193
|
},
|
|
80194
|
+
{
|
|
80195
|
+
id: "alerts",
|
|
80196
|
+
family: "system",
|
|
80197
|
+
label: "Alerts",
|
|
80198
|
+
kinds: [
|
|
80199
|
+
"alert-critical",
|
|
80200
|
+
"alert-error",
|
|
80201
|
+
"alert-critical-resolved"
|
|
80202
|
+
]
|
|
80203
|
+
},
|
|
79924
80204
|
{
|
|
79925
80205
|
id: "alarm",
|
|
79926
80206
|
family: "alarm",
|
|
@@ -79965,6 +80245,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
79965
80245
|
return [[descriptor.kind, field]];
|
|
79966
80246
|
})));
|
|
79967
80247
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
80248
|
+
object({
|
|
80249
|
+
phase: _enum(["raised", "resolved"]),
|
|
80250
|
+
episodeId: string().min(1),
|
|
80251
|
+
alertId: string().min(1),
|
|
80252
|
+
severity: AlertSeveritySchema,
|
|
80253
|
+
category: string(),
|
|
80254
|
+
title: string(),
|
|
80255
|
+
message: string(),
|
|
80256
|
+
sourceType: string().optional(),
|
|
80257
|
+
sourceId: string().optional(),
|
|
80258
|
+
nodeId: string().optional(),
|
|
80259
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
80260
|
+
actionUrl: string().optional(),
|
|
80261
|
+
at: number()
|
|
80262
|
+
});
|
|
79968
80263
|
var RULE_BODY_ONLY = ["body"];
|
|
79969
80264
|
var RULE_TEXT = ["title", "body"];
|
|
79970
80265
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -79974,6 +80269,11 @@ var TANK = [
|
|
|
79974
80269
|
"device-tank-full",
|
|
79975
80270
|
"device-tank-normal"
|
|
79976
80271
|
];
|
|
80272
|
+
var ALERT_EPISODE = [
|
|
80273
|
+
"alert-critical",
|
|
80274
|
+
"alert-error",
|
|
80275
|
+
"alert-critical-resolved"
|
|
80276
|
+
];
|
|
79977
80277
|
var UPDATES = [
|
|
79978
80278
|
"addon-update-available",
|
|
79979
80279
|
"server-update-available",
|
|
@@ -80166,14 +80466,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
80166
80466
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
80167
80467
|
([...RULE_TEXT], [...TANK]),
|
|
80168
80468
|
[...RULE_TEXT],
|
|
80169
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
80170
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
80171
|
-
[...RULE_TEXT],
|
|
80469
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
80470
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
80172
80471
|
[...RULE_TEXT],
|
|
80173
80472
|
[...RULE_TEXT],
|
|
80174
80473
|
[...RULE_TEXT],
|
|
80175
80474
|
[...RULE_TEXT],
|
|
80176
80475
|
[...RULE_TEXT],
|
|
80476
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80177
80477
|
[...RULE_TEXT],
|
|
80178
80478
|
[...RULE_TEXT],
|
|
80179
80479
|
[...RULE_TEXT],
|
|
@@ -80191,7 +80491,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
80191
80491
|
[...RULE_TEXT],
|
|
80192
80492
|
[...RULE_TEXT],
|
|
80193
80493
|
[...RULE_TEXT],
|
|
80194
|
-
[...RULE_TEXT],
|
|
80494
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80495
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80496
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80497
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80498
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
80195
80499
|
[...RULE_TEXT],
|
|
80196
80500
|
[...RULE_TEXT],
|
|
80197
80501
|
[...RULE_TEXT],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.155",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|