@camstack/addon-provider-petkit 0.2.128 → 0.2.129
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 +264 -44
- package/dist/addon.mjs +264 -44
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1101,7 +1101,7 @@ var Nodepetkit = class {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
};
|
|
1103
1103
|
//#endregion
|
|
1104
|
-
//#region ../types/dist/event-category-
|
|
1104
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
1105
1105
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
1106
1106
|
EventCategory["SystemBoot"] = "system.boot";
|
|
1107
1107
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1180,9 +1180,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1180
1180
|
/**
|
|
1181
1181
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
1182
1182
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
1183
|
-
* alert centre turns it into one
|
|
1183
|
+
* alert centre turns it into one critical alert.
|
|
1184
1184
|
*/
|
|
1185
1185
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
1186
|
+
/**
|
|
1187
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
1188
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
1189
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
1190
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
1191
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
1192
|
+
* event may be dropped (D8, D11).
|
|
1193
|
+
*/
|
|
1194
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
1186
1195
|
EventCategory["AddonError"] = "addon.error";
|
|
1187
1196
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
1188
1197
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -6507,7 +6516,7 @@ var ZodIssueCode = {
|
|
|
6507
6516
|
var ZodFirstPartyTypeKind;
|
|
6508
6517
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6509
6518
|
//#endregion
|
|
6510
|
-
//#region ../types/dist/sleep-
|
|
6519
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
6511
6520
|
/**
|
|
6512
6521
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6513
6522
|
* window to float samples (D455).
|
|
@@ -14270,7 +14279,14 @@ var AlertSeveritySchema = _enum([
|
|
|
14270
14279
|
]);
|
|
14271
14280
|
var AlertActionSchema = object({
|
|
14272
14281
|
label: string(),
|
|
14273
|
-
href: string().optional()
|
|
14282
|
+
href: string().optional(),
|
|
14283
|
+
/**
|
|
14284
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
14285
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
14286
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
14287
|
+
* the SPA has no such route and would bounce to the home page.
|
|
14288
|
+
*/
|
|
14289
|
+
navigation: _enum(["app", "server"]).optional()
|
|
14274
14290
|
});
|
|
14275
14291
|
var AlertStatusSchema = _enum([
|
|
14276
14292
|
"active",
|
|
@@ -43003,6 +43019,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
43003
43019
|
"server-updated",
|
|
43004
43020
|
"export-completed",
|
|
43005
43021
|
"backup-completed",
|
|
43022
|
+
"alert-critical",
|
|
43023
|
+
"alert-error",
|
|
43024
|
+
"alert-critical-resolved",
|
|
43006
43025
|
"camera-online",
|
|
43007
43026
|
"camera-offline",
|
|
43008
43027
|
"camera-disabled",
|
|
@@ -52079,7 +52098,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
52079
52098
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
52080
52099
|
kind: "mutation",
|
|
52081
52100
|
auth: "admin"
|
|
52082
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
52101
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
52102
|
+
clear: boolean(),
|
|
52103
|
+
repointLocationId: string().optional()
|
|
52104
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
52083
52105
|
kind: "mutation",
|
|
52084
52106
|
auth: "admin"
|
|
52085
52107
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -56343,6 +56365,11 @@ onStatusChanged: { data: object({
|
|
|
56343
56365
|
*
|
|
56344
56366
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
56345
56367
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
56368
|
+
*
|
|
56369
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
56370
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
56371
|
+
* the link is down, or the description does not carry it) and is never
|
|
56372
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
56346
56373
|
*/
|
|
56347
56374
|
var DishwasherStateSchema = _enum([
|
|
56348
56375
|
"idle",
|
|
@@ -56352,43 +56379,155 @@ var DishwasherStateSchema = _enum([
|
|
|
56352
56379
|
"error",
|
|
56353
56380
|
"unavailable"
|
|
56354
56381
|
]);
|
|
56382
|
+
/**
|
|
56383
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
56384
|
+
* view for compact surfaces; this is what the appliance said.
|
|
56385
|
+
*/
|
|
56386
|
+
var DishwasherOperationStateSchema = _enum([
|
|
56387
|
+
"Inactive",
|
|
56388
|
+
"Ready",
|
|
56389
|
+
"DelayedStart",
|
|
56390
|
+
"Run",
|
|
56391
|
+
"Pause",
|
|
56392
|
+
"ActionRequired",
|
|
56393
|
+
"Finished",
|
|
56394
|
+
"Error",
|
|
56395
|
+
"Aborting"
|
|
56396
|
+
]);
|
|
56397
|
+
/**
|
|
56398
|
+
* Why fields may be `null`:
|
|
56399
|
+
* - `available` — the link is up and the description is loaded;
|
|
56400
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
56401
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
56402
|
+
* be loaded, so its values cannot be decoded.
|
|
56403
|
+
*/
|
|
56404
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
56405
|
+
"available",
|
|
56406
|
+
"offline",
|
|
56407
|
+
"description-missing"
|
|
56408
|
+
]);
|
|
56355
56409
|
var DishwasherConsumableLevelSchema = _enum([
|
|
56356
56410
|
"ok",
|
|
56357
56411
|
"low",
|
|
56358
56412
|
"empty"
|
|
56359
56413
|
]);
|
|
56360
56414
|
var DishwasherStatusSchema = object({
|
|
56415
|
+
availability: DishwasherAvailabilitySchema,
|
|
56416
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
56361
56417
|
state: DishwasherStateSchema,
|
|
56362
|
-
/**
|
|
56418
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
56419
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
56420
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
56363
56421
|
program: string().nullable(),
|
|
56364
|
-
/**
|
|
56422
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
56423
|
+
selectedProgram: string().nullable(),
|
|
56424
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
56365
56425
|
availablePrograms: array(string()),
|
|
56366
|
-
/**
|
|
56367
|
-
|
|
56426
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
56427
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
56428
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
56429
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
56368
56430
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
56369
56431
|
progressPercent: number().min(0).max(100).nullable(),
|
|
56370
|
-
/** True when the door is reported open. */
|
|
56371
|
-
doorOpen: boolean(),
|
|
56372
|
-
/** True when
|
|
56373
|
-
|
|
56374
|
-
/**
|
|
56375
|
-
|
|
56432
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
56433
|
+
doorOpen: boolean().nullable(),
|
|
56434
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
56435
|
+
doorLocked: boolean().nullable(),
|
|
56436
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
56437
|
+
remoteStartAllowed: boolean().nullable(),
|
|
56438
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
56439
|
+
remoteControlActive: boolean().nullable(),
|
|
56440
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
56441
|
+
localControlActive: boolean().nullable(),
|
|
56442
|
+
/** Main power / switched-on state; null when not known. */
|
|
56443
|
+
powerOn: boolean().nullable(),
|
|
56444
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56445
|
+
powerState: string().nullable(),
|
|
56376
56446
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56377
56447
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56378
|
-
|
|
56379
|
-
|
|
56448
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56449
|
+
halfLoad: boolean().nullable(),
|
|
56450
|
+
hygienePlus: boolean().nullable(),
|
|
56380
56451
|
/** Extra dry option when the appliance exposes it. */
|
|
56381
|
-
extraDry: boolean(),
|
|
56452
|
+
extraDry: boolean().nullable(),
|
|
56382
56453
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
56383
|
-
intensiveZone: boolean(),
|
|
56454
|
+
intensiveZone: boolean().nullable(),
|
|
56384
56455
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
56385
|
-
varioSpeedPlus: boolean(),
|
|
56386
|
-
/** Child lock (controls disabled on the appliance). */
|
|
56387
|
-
childLock: boolean(),
|
|
56456
|
+
varioSpeedPlus: boolean().nullable(),
|
|
56457
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
56458
|
+
childLock: boolean().nullable(),
|
|
56459
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
56460
|
+
activeEvents: array(string()),
|
|
56461
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
56388
56462
|
errorCode: number().nullable(),
|
|
56463
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
56389
56464
|
errorLabel: string().nullable(),
|
|
56465
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
56390
56466
|
lastFetchedAt: number()
|
|
56391
56467
|
});
|
|
56468
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56469
|
+
/** A value a program option or setting can take. */
|
|
56470
|
+
var DishwasherValueSchema = union([
|
|
56471
|
+
boolean(),
|
|
56472
|
+
string(),
|
|
56473
|
+
number()
|
|
56474
|
+
]);
|
|
56475
|
+
var DishwasherAccessSchema = _enum([
|
|
56476
|
+
"none",
|
|
56477
|
+
"read",
|
|
56478
|
+
"readWrite",
|
|
56479
|
+
"writeOnly",
|
|
56480
|
+
"readStatic"
|
|
56481
|
+
]);
|
|
56482
|
+
/**
|
|
56483
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56484
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56485
|
+
*/
|
|
56486
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56487
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56488
|
+
key: string(),
|
|
56489
|
+
/** Last segment of the key, for display. */
|
|
56490
|
+
name: string(),
|
|
56491
|
+
type: _enum([
|
|
56492
|
+
"boolean",
|
|
56493
|
+
"number",
|
|
56494
|
+
"enum",
|
|
56495
|
+
"string"
|
|
56496
|
+
]),
|
|
56497
|
+
access: DishwasherAccessSchema,
|
|
56498
|
+
/** The appliance reports this entity as currently available. */
|
|
56499
|
+
available: boolean(),
|
|
56500
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56501
|
+
unit: string().nullable(),
|
|
56502
|
+
min: number().nullable(),
|
|
56503
|
+
max: number().nullable(),
|
|
56504
|
+
step: number().nullable(),
|
|
56505
|
+
/** Allowed members of an enum; null for other types. */
|
|
56506
|
+
enumValues: array(string()).nullable(),
|
|
56507
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56508
|
+
});
|
|
56509
|
+
var DishwasherProgramSchema = object({
|
|
56510
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56511
|
+
key: string(),
|
|
56512
|
+
name: string(),
|
|
56513
|
+
/** The appliance currently offers this program. */
|
|
56514
|
+
available: boolean(),
|
|
56515
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56516
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56517
|
+
});
|
|
56518
|
+
var DishwasherOptionsSchema = object({
|
|
56519
|
+
availability: DishwasherAvailabilitySchema,
|
|
56520
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56521
|
+
supportsStart: boolean(),
|
|
56522
|
+
supportsPause: boolean(),
|
|
56523
|
+
supportsResume: boolean(),
|
|
56524
|
+
supportsStop: boolean(),
|
|
56525
|
+
supportsPower: boolean(),
|
|
56526
|
+
/** Every program the description lists, with its options. */
|
|
56527
|
+
programs: array(DishwasherProgramSchema),
|
|
56528
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56529
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56530
|
+
});
|
|
56392
56531
|
var dishwasherCapability = {
|
|
56393
56532
|
name: "dishwasher",
|
|
56394
56533
|
scope: "device",
|
|
@@ -56396,86 +56535,102 @@ var dishwasherCapability = {
|
|
|
56396
56535
|
mode: "singleton",
|
|
56397
56536
|
deviceTypes: [DeviceType.Dishwasher],
|
|
56398
56537
|
methods: {
|
|
56399
|
-
|
|
56538
|
+
/**
|
|
56539
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56540
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56541
|
+
*/
|
|
56542
|
+
start: method(object({
|
|
56543
|
+
deviceId: DeviceIdSchema,
|
|
56544
|
+
program: string().min(1).optional(),
|
|
56545
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56546
|
+
}), _void(), {
|
|
56400
56547
|
kind: "mutation",
|
|
56401
56548
|
auth: "protected"
|
|
56402
56549
|
}),
|
|
56403
|
-
pause: method(object({ deviceId:
|
|
56550
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56404
56551
|
kind: "mutation",
|
|
56405
56552
|
auth: "protected"
|
|
56406
56553
|
}),
|
|
56407
|
-
|
|
56554
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56555
|
+
kind: "mutation",
|
|
56556
|
+
auth: "protected"
|
|
56557
|
+
}),
|
|
56558
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56408
56559
|
kind: "mutation",
|
|
56409
56560
|
auth: "protected"
|
|
56410
56561
|
}),
|
|
56562
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
56411
56563
|
setProgram: method(object({
|
|
56412
|
-
deviceId:
|
|
56564
|
+
deviceId: DeviceIdSchema,
|
|
56413
56565
|
program: string().min(1)
|
|
56414
56566
|
}), _void(), {
|
|
56415
56567
|
kind: "mutation",
|
|
56416
56568
|
auth: "protected"
|
|
56417
56569
|
}),
|
|
56418
56570
|
setPower: method(object({
|
|
56419
|
-
deviceId:
|
|
56571
|
+
deviceId: DeviceIdSchema,
|
|
56420
56572
|
on: boolean()
|
|
56421
56573
|
}), _void(), {
|
|
56422
56574
|
kind: "mutation",
|
|
56423
56575
|
auth: "protected"
|
|
56424
56576
|
}),
|
|
56425
56577
|
setHalfLoad: method(object({
|
|
56426
|
-
deviceId:
|
|
56578
|
+
deviceId: DeviceIdSchema,
|
|
56427
56579
|
on: boolean()
|
|
56428
56580
|
}), _void(), {
|
|
56429
56581
|
kind: "mutation",
|
|
56430
56582
|
auth: "protected"
|
|
56431
56583
|
}),
|
|
56432
56584
|
setHygienePlus: method(object({
|
|
56433
|
-
deviceId:
|
|
56585
|
+
deviceId: DeviceIdSchema,
|
|
56434
56586
|
on: boolean()
|
|
56435
56587
|
}), _void(), {
|
|
56436
56588
|
kind: "mutation",
|
|
56437
56589
|
auth: "protected"
|
|
56438
56590
|
}),
|
|
56439
56591
|
setExtraDry: method(object({
|
|
56440
|
-
deviceId:
|
|
56592
|
+
deviceId: DeviceIdSchema,
|
|
56441
56593
|
on: boolean()
|
|
56442
56594
|
}), _void(), {
|
|
56443
56595
|
kind: "mutation",
|
|
56444
56596
|
auth: "protected"
|
|
56445
56597
|
}),
|
|
56446
56598
|
setIntensiveZone: method(object({
|
|
56447
|
-
deviceId:
|
|
56599
|
+
deviceId: DeviceIdSchema,
|
|
56448
56600
|
on: boolean()
|
|
56449
56601
|
}), _void(), {
|
|
56450
56602
|
kind: "mutation",
|
|
56451
56603
|
auth: "protected"
|
|
56452
56604
|
}),
|
|
56453
56605
|
setVarioSpeedPlus: method(object({
|
|
56454
|
-
deviceId:
|
|
56606
|
+
deviceId: DeviceIdSchema,
|
|
56455
56607
|
on: boolean()
|
|
56456
56608
|
}), _void(), {
|
|
56457
56609
|
kind: "mutation",
|
|
56458
56610
|
auth: "protected"
|
|
56459
56611
|
}),
|
|
56460
56612
|
setChildLock: method(object({
|
|
56461
|
-
deviceId:
|
|
56613
|
+
deviceId: DeviceIdSchema,
|
|
56462
56614
|
on: boolean()
|
|
56463
56615
|
}), _void(), {
|
|
56464
56616
|
kind: "mutation",
|
|
56465
56617
|
auth: "protected"
|
|
56466
56618
|
}),
|
|
56619
|
+
/**
|
|
56620
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56621
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56622
|
+
* its declared range / members.
|
|
56623
|
+
*/
|
|
56467
56624
|
setOption: method(object({
|
|
56468
|
-
deviceId:
|
|
56625
|
+
deviceId: DeviceIdSchema,
|
|
56469
56626
|
key: string().min(1),
|
|
56470
|
-
value:
|
|
56471
|
-
boolean(),
|
|
56472
|
-
string(),
|
|
56473
|
-
number()
|
|
56474
|
-
])
|
|
56627
|
+
value: DishwasherValueSchema
|
|
56475
56628
|
}), _void(), {
|
|
56476
56629
|
kind: "mutation",
|
|
56477
56630
|
auth: "protected"
|
|
56478
|
-
})
|
|
56631
|
+
}),
|
|
56632
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56633
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
56479
56634
|
},
|
|
56480
56635
|
status: {
|
|
56481
56636
|
schema: DishwasherStatusSchema,
|
|
@@ -70424,6 +70579,12 @@ Object.freeze({
|
|
|
70424
70579
|
addonId: null,
|
|
70425
70580
|
access: "view"
|
|
70426
70581
|
},
|
|
70582
|
+
"dishwasher.getOptions": {
|
|
70583
|
+
capName: "dishwasher",
|
|
70584
|
+
capScope: "device",
|
|
70585
|
+
addonId: null,
|
|
70586
|
+
access: "view"
|
|
70587
|
+
},
|
|
70427
70588
|
"dishwasher.getStatus": {
|
|
70428
70589
|
capName: "dishwasher",
|
|
70429
70590
|
capScope: "device",
|
|
@@ -70436,6 +70597,12 @@ Object.freeze({
|
|
|
70436
70597
|
addonId: null,
|
|
70437
70598
|
access: "create"
|
|
70438
70599
|
},
|
|
70600
|
+
"dishwasher.resume": {
|
|
70601
|
+
capName: "dishwasher",
|
|
70602
|
+
capScope: "device",
|
|
70603
|
+
addonId: null,
|
|
70604
|
+
access: "create"
|
|
70605
|
+
},
|
|
70439
70606
|
"dishwasher.setChildLock": {
|
|
70440
70607
|
capName: "dishwasher",
|
|
70441
70608
|
capScope: "device",
|
|
@@ -74936,6 +75103,12 @@ Object.freeze({
|
|
|
74936
75103
|
addonId: null,
|
|
74937
75104
|
access: "view"
|
|
74938
75105
|
},
|
|
75106
|
+
"storageMigration.moverClearance": {
|
|
75107
|
+
capName: "storage-migration",
|
|
75108
|
+
capScope: "system",
|
|
75109
|
+
addonId: null,
|
|
75110
|
+
access: "view"
|
|
75111
|
+
},
|
|
74939
75112
|
"storageMigration.movers": {
|
|
74940
75113
|
capName: "storage-migration",
|
|
74941
75114
|
capScope: "system",
|
|
@@ -77129,6 +77302,11 @@ Object.freeze({
|
|
|
77129
77302
|
form: "single",
|
|
77130
77303
|
optional: false
|
|
77131
77304
|
}],
|
|
77305
|
+
"dishwasher.getOptions": [{
|
|
77306
|
+
name: "deviceId",
|
|
77307
|
+
form: "single",
|
|
77308
|
+
optional: false
|
|
77309
|
+
}],
|
|
77132
77310
|
"dishwasher.getStatus": [{
|
|
77133
77311
|
name: "deviceId",
|
|
77134
77312
|
form: "single",
|
|
@@ -77139,6 +77317,11 @@ Object.freeze({
|
|
|
77139
77317
|
form: "single",
|
|
77140
77318
|
optional: false
|
|
77141
77319
|
}],
|
|
77320
|
+
"dishwasher.resume": [{
|
|
77321
|
+
name: "deviceId",
|
|
77322
|
+
form: "single",
|
|
77323
|
+
optional: false
|
|
77324
|
+
}],
|
|
77142
77325
|
"dishwasher.setChildLock": [{
|
|
77143
77326
|
name: "deviceId",
|
|
77144
77327
|
form: "single",
|
|
@@ -79225,6 +79408,9 @@ new Map(Object.entries({
|
|
|
79225
79408
|
"wrapper-update-available": "system",
|
|
79226
79409
|
"backup-completed": "system",
|
|
79227
79410
|
"export-completed": "system",
|
|
79411
|
+
"alert-critical": "system",
|
|
79412
|
+
"alert-error": "system",
|
|
79413
|
+
"alert-critical-resolved": "system",
|
|
79228
79414
|
"storage-location-low": "system",
|
|
79229
79415
|
"storage-location-critical": "system",
|
|
79230
79416
|
"storage-location-ok": "system",
|
|
@@ -79349,6 +79535,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79349
79535
|
"storage-location-ok"
|
|
79350
79536
|
]
|
|
79351
79537
|
},
|
|
79538
|
+
{
|
|
79539
|
+
id: "alerts",
|
|
79540
|
+
family: "system",
|
|
79541
|
+
label: "Alerts",
|
|
79542
|
+
kinds: [
|
|
79543
|
+
"alert-critical",
|
|
79544
|
+
"alert-error",
|
|
79545
|
+
"alert-critical-resolved"
|
|
79546
|
+
]
|
|
79547
|
+
},
|
|
79352
79548
|
{
|
|
79353
79549
|
id: "alarm",
|
|
79354
79550
|
family: "alarm",
|
|
@@ -79393,6 +79589,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
79393
79589
|
return [[descriptor.kind, field]];
|
|
79394
79590
|
})));
|
|
79395
79591
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
79592
|
+
object({
|
|
79593
|
+
phase: _enum(["raised", "resolved"]),
|
|
79594
|
+
episodeId: string().min(1),
|
|
79595
|
+
alertId: string().min(1),
|
|
79596
|
+
severity: AlertSeveritySchema,
|
|
79597
|
+
category: string(),
|
|
79598
|
+
title: string(),
|
|
79599
|
+
message: string(),
|
|
79600
|
+
sourceType: string().optional(),
|
|
79601
|
+
sourceId: string().optional(),
|
|
79602
|
+
nodeId: string().optional(),
|
|
79603
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
79604
|
+
actionUrl: string().optional(),
|
|
79605
|
+
at: number()
|
|
79606
|
+
});
|
|
79396
79607
|
var RULE_BODY_ONLY = ["body"];
|
|
79397
79608
|
var RULE_TEXT = ["title", "body"];
|
|
79398
79609
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -79402,6 +79613,11 @@ var TANK = [
|
|
|
79402
79613
|
"device-tank-full",
|
|
79403
79614
|
"device-tank-normal"
|
|
79404
79615
|
];
|
|
79616
|
+
var ALERT_EPISODE = [
|
|
79617
|
+
"alert-critical",
|
|
79618
|
+
"alert-error",
|
|
79619
|
+
"alert-critical-resolved"
|
|
79620
|
+
];
|
|
79405
79621
|
var UPDATES = [
|
|
79406
79622
|
"addon-update-available",
|
|
79407
79623
|
"server-update-available",
|
|
@@ -79594,14 +79810,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
79594
79810
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79595
79811
|
([...RULE_TEXT], [...TANK]),
|
|
79596
79812
|
[...RULE_TEXT],
|
|
79597
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79598
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79599
|
-
[...RULE_TEXT],
|
|
79813
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79814
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79600
79815
|
[...RULE_TEXT],
|
|
79601
79816
|
[...RULE_TEXT],
|
|
79602
79817
|
[...RULE_TEXT],
|
|
79603
79818
|
[...RULE_TEXT],
|
|
79604
79819
|
[...RULE_TEXT],
|
|
79820
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79605
79821
|
[...RULE_TEXT],
|
|
79606
79822
|
[...RULE_TEXT],
|
|
79607
79823
|
[...RULE_TEXT],
|
|
@@ -79619,7 +79835,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
79619
79835
|
[...RULE_TEXT],
|
|
79620
79836
|
[...RULE_TEXT],
|
|
79621
79837
|
[...RULE_TEXT],
|
|
79622
|
-
[...RULE_TEXT],
|
|
79838
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79839
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79840
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79841
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79842
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79623
79843
|
[...RULE_TEXT],
|
|
79624
79844
|
[...RULE_TEXT],
|
|
79625
79845
|
[...RULE_TEXT],
|
package/dist/addon.mjs
CHANGED
|
@@ -1100,7 +1100,7 @@ var Nodepetkit = class {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
};
|
|
1102
1102
|
//#endregion
|
|
1103
|
-
//#region ../types/dist/event-category-
|
|
1103
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
1104
1104
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
1105
1105
|
EventCategory["SystemBoot"] = "system.boot";
|
|
1106
1106
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1179,9 +1179,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1179
1179
|
/**
|
|
1180
1180
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
1181
1181
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
1182
|
-
* alert centre turns it into one
|
|
1182
|
+
* alert centre turns it into one critical alert.
|
|
1183
1183
|
*/
|
|
1184
1184
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
1185
|
+
/**
|
|
1186
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
1187
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
1188
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
1189
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
1190
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
1191
|
+
* event may be dropped (D8, D11).
|
|
1192
|
+
*/
|
|
1193
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
1185
1194
|
EventCategory["AddonError"] = "addon.error";
|
|
1186
1195
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
1187
1196
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -6506,7 +6515,7 @@ var ZodIssueCode = {
|
|
|
6506
6515
|
var ZodFirstPartyTypeKind;
|
|
6507
6516
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6508
6517
|
//#endregion
|
|
6509
|
-
//#region ../types/dist/sleep-
|
|
6518
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
6510
6519
|
/**
|
|
6511
6520
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6512
6521
|
* window to float samples (D455).
|
|
@@ -14269,7 +14278,14 @@ var AlertSeveritySchema = _enum([
|
|
|
14269
14278
|
]);
|
|
14270
14279
|
var AlertActionSchema = object({
|
|
14271
14280
|
label: string(),
|
|
14272
|
-
href: string().optional()
|
|
14281
|
+
href: string().optional(),
|
|
14282
|
+
/**
|
|
14283
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
14284
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
14285
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
14286
|
+
* the SPA has no such route and would bounce to the home page.
|
|
14287
|
+
*/
|
|
14288
|
+
navigation: _enum(["app", "server"]).optional()
|
|
14273
14289
|
});
|
|
14274
14290
|
var AlertStatusSchema = _enum([
|
|
14275
14291
|
"active",
|
|
@@ -43002,6 +43018,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
43002
43018
|
"server-updated",
|
|
43003
43019
|
"export-completed",
|
|
43004
43020
|
"backup-completed",
|
|
43021
|
+
"alert-critical",
|
|
43022
|
+
"alert-error",
|
|
43023
|
+
"alert-critical-resolved",
|
|
43005
43024
|
"camera-online",
|
|
43006
43025
|
"camera-offline",
|
|
43007
43026
|
"camera-disabled",
|
|
@@ -52078,7 +52097,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
52078
52097
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
52079
52098
|
kind: "mutation",
|
|
52080
52099
|
auth: "admin"
|
|
52081
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
52100
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
52101
|
+
clear: boolean(),
|
|
52102
|
+
repointLocationId: string().optional()
|
|
52103
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
52082
52104
|
kind: "mutation",
|
|
52083
52105
|
auth: "admin"
|
|
52084
52106
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -56342,6 +56364,11 @@ onStatusChanged: { data: object({
|
|
|
56342
56364
|
*
|
|
56343
56365
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
56344
56366
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
56367
|
+
*
|
|
56368
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
56369
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
56370
|
+
* the link is down, or the description does not carry it) and is never
|
|
56371
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
56345
56372
|
*/
|
|
56346
56373
|
var DishwasherStateSchema = _enum([
|
|
56347
56374
|
"idle",
|
|
@@ -56351,43 +56378,155 @@ var DishwasherStateSchema = _enum([
|
|
|
56351
56378
|
"error",
|
|
56352
56379
|
"unavailable"
|
|
56353
56380
|
]);
|
|
56381
|
+
/**
|
|
56382
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
56383
|
+
* view for compact surfaces; this is what the appliance said.
|
|
56384
|
+
*/
|
|
56385
|
+
var DishwasherOperationStateSchema = _enum([
|
|
56386
|
+
"Inactive",
|
|
56387
|
+
"Ready",
|
|
56388
|
+
"DelayedStart",
|
|
56389
|
+
"Run",
|
|
56390
|
+
"Pause",
|
|
56391
|
+
"ActionRequired",
|
|
56392
|
+
"Finished",
|
|
56393
|
+
"Error",
|
|
56394
|
+
"Aborting"
|
|
56395
|
+
]);
|
|
56396
|
+
/**
|
|
56397
|
+
* Why fields may be `null`:
|
|
56398
|
+
* - `available` — the link is up and the description is loaded;
|
|
56399
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
56400
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
56401
|
+
* be loaded, so its values cannot be decoded.
|
|
56402
|
+
*/
|
|
56403
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
56404
|
+
"available",
|
|
56405
|
+
"offline",
|
|
56406
|
+
"description-missing"
|
|
56407
|
+
]);
|
|
56354
56408
|
var DishwasherConsumableLevelSchema = _enum([
|
|
56355
56409
|
"ok",
|
|
56356
56410
|
"low",
|
|
56357
56411
|
"empty"
|
|
56358
56412
|
]);
|
|
56359
56413
|
var DishwasherStatusSchema = object({
|
|
56414
|
+
availability: DishwasherAvailabilitySchema,
|
|
56415
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
56360
56416
|
state: DishwasherStateSchema,
|
|
56361
|
-
/**
|
|
56417
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
56418
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
56419
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
56362
56420
|
program: string().nullable(),
|
|
56363
|
-
/**
|
|
56421
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
56422
|
+
selectedProgram: string().nullable(),
|
|
56423
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
56364
56424
|
availablePrograms: array(string()),
|
|
56365
|
-
/**
|
|
56366
|
-
|
|
56425
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
56426
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
56427
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
56428
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
56367
56429
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
56368
56430
|
progressPercent: number().min(0).max(100).nullable(),
|
|
56369
|
-
/** True when the door is reported open. */
|
|
56370
|
-
doorOpen: boolean(),
|
|
56371
|
-
/** True when
|
|
56372
|
-
|
|
56373
|
-
/**
|
|
56374
|
-
|
|
56431
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
56432
|
+
doorOpen: boolean().nullable(),
|
|
56433
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
56434
|
+
doorLocked: boolean().nullable(),
|
|
56435
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
56436
|
+
remoteStartAllowed: boolean().nullable(),
|
|
56437
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
56438
|
+
remoteControlActive: boolean().nullable(),
|
|
56439
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
56440
|
+
localControlActive: boolean().nullable(),
|
|
56441
|
+
/** Main power / switched-on state; null when not known. */
|
|
56442
|
+
powerOn: boolean().nullable(),
|
|
56443
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
56444
|
+
powerState: string().nullable(),
|
|
56375
56445
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56376
56446
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
56377
|
-
|
|
56378
|
-
|
|
56447
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
56448
|
+
halfLoad: boolean().nullable(),
|
|
56449
|
+
hygienePlus: boolean().nullable(),
|
|
56379
56450
|
/** Extra dry option when the appliance exposes it. */
|
|
56380
|
-
extraDry: boolean(),
|
|
56451
|
+
extraDry: boolean().nullable(),
|
|
56381
56452
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
56382
|
-
intensiveZone: boolean(),
|
|
56453
|
+
intensiveZone: boolean().nullable(),
|
|
56383
56454
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
56384
|
-
varioSpeedPlus: boolean(),
|
|
56385
|
-
/** Child lock (controls disabled on the appliance). */
|
|
56386
|
-
childLock: boolean(),
|
|
56455
|
+
varioSpeedPlus: boolean().nullable(),
|
|
56456
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
56457
|
+
childLock: boolean().nullable(),
|
|
56458
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
56459
|
+
activeEvents: array(string()),
|
|
56460
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
56387
56461
|
errorCode: number().nullable(),
|
|
56462
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
56388
56463
|
errorLabel: string().nullable(),
|
|
56464
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
56389
56465
|
lastFetchedAt: number()
|
|
56390
56466
|
});
|
|
56467
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
56468
|
+
/** A value a program option or setting can take. */
|
|
56469
|
+
var DishwasherValueSchema = union([
|
|
56470
|
+
boolean(),
|
|
56471
|
+
string(),
|
|
56472
|
+
number()
|
|
56473
|
+
]);
|
|
56474
|
+
var DishwasherAccessSchema = _enum([
|
|
56475
|
+
"none",
|
|
56476
|
+
"read",
|
|
56477
|
+
"readWrite",
|
|
56478
|
+
"writeOnly",
|
|
56479
|
+
"readStatic"
|
|
56480
|
+
]);
|
|
56481
|
+
/**
|
|
56482
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
56483
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
56484
|
+
*/
|
|
56485
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
56486
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
56487
|
+
key: string(),
|
|
56488
|
+
/** Last segment of the key, for display. */
|
|
56489
|
+
name: string(),
|
|
56490
|
+
type: _enum([
|
|
56491
|
+
"boolean",
|
|
56492
|
+
"number",
|
|
56493
|
+
"enum",
|
|
56494
|
+
"string"
|
|
56495
|
+
]),
|
|
56496
|
+
access: DishwasherAccessSchema,
|
|
56497
|
+
/** The appliance reports this entity as currently available. */
|
|
56498
|
+
available: boolean(),
|
|
56499
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
56500
|
+
unit: string().nullable(),
|
|
56501
|
+
min: number().nullable(),
|
|
56502
|
+
max: number().nullable(),
|
|
56503
|
+
step: number().nullable(),
|
|
56504
|
+
/** Allowed members of an enum; null for other types. */
|
|
56505
|
+
enumValues: array(string()).nullable(),
|
|
56506
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
56507
|
+
});
|
|
56508
|
+
var DishwasherProgramSchema = object({
|
|
56509
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
56510
|
+
key: string(),
|
|
56511
|
+
name: string(),
|
|
56512
|
+
/** The appliance currently offers this program. */
|
|
56513
|
+
available: boolean(),
|
|
56514
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
56515
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56516
|
+
});
|
|
56517
|
+
var DishwasherOptionsSchema = object({
|
|
56518
|
+
availability: DishwasherAvailabilitySchema,
|
|
56519
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
56520
|
+
supportsStart: boolean(),
|
|
56521
|
+
supportsPause: boolean(),
|
|
56522
|
+
supportsResume: boolean(),
|
|
56523
|
+
supportsStop: boolean(),
|
|
56524
|
+
supportsPower: boolean(),
|
|
56525
|
+
/** Every program the description lists, with its options. */
|
|
56526
|
+
programs: array(DishwasherProgramSchema),
|
|
56527
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
56528
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
56529
|
+
});
|
|
56391
56530
|
var dishwasherCapability = {
|
|
56392
56531
|
name: "dishwasher",
|
|
56393
56532
|
scope: "device",
|
|
@@ -56395,86 +56534,102 @@ var dishwasherCapability = {
|
|
|
56395
56534
|
mode: "singleton",
|
|
56396
56535
|
deviceTypes: [DeviceType.Dishwasher],
|
|
56397
56536
|
methods: {
|
|
56398
|
-
|
|
56537
|
+
/**
|
|
56538
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56539
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56540
|
+
*/
|
|
56541
|
+
start: method(object({
|
|
56542
|
+
deviceId: DeviceIdSchema,
|
|
56543
|
+
program: string().min(1).optional(),
|
|
56544
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56545
|
+
}), _void(), {
|
|
56399
56546
|
kind: "mutation",
|
|
56400
56547
|
auth: "protected"
|
|
56401
56548
|
}),
|
|
56402
|
-
pause: method(object({ deviceId:
|
|
56549
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56403
56550
|
kind: "mutation",
|
|
56404
56551
|
auth: "protected"
|
|
56405
56552
|
}),
|
|
56406
|
-
|
|
56553
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56554
|
+
kind: "mutation",
|
|
56555
|
+
auth: "protected"
|
|
56556
|
+
}),
|
|
56557
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56407
56558
|
kind: "mutation",
|
|
56408
56559
|
auth: "protected"
|
|
56409
56560
|
}),
|
|
56561
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
56410
56562
|
setProgram: method(object({
|
|
56411
|
-
deviceId:
|
|
56563
|
+
deviceId: DeviceIdSchema,
|
|
56412
56564
|
program: string().min(1)
|
|
56413
56565
|
}), _void(), {
|
|
56414
56566
|
kind: "mutation",
|
|
56415
56567
|
auth: "protected"
|
|
56416
56568
|
}),
|
|
56417
56569
|
setPower: method(object({
|
|
56418
|
-
deviceId:
|
|
56570
|
+
deviceId: DeviceIdSchema,
|
|
56419
56571
|
on: boolean()
|
|
56420
56572
|
}), _void(), {
|
|
56421
56573
|
kind: "mutation",
|
|
56422
56574
|
auth: "protected"
|
|
56423
56575
|
}),
|
|
56424
56576
|
setHalfLoad: method(object({
|
|
56425
|
-
deviceId:
|
|
56577
|
+
deviceId: DeviceIdSchema,
|
|
56426
56578
|
on: boolean()
|
|
56427
56579
|
}), _void(), {
|
|
56428
56580
|
kind: "mutation",
|
|
56429
56581
|
auth: "protected"
|
|
56430
56582
|
}),
|
|
56431
56583
|
setHygienePlus: method(object({
|
|
56432
|
-
deviceId:
|
|
56584
|
+
deviceId: DeviceIdSchema,
|
|
56433
56585
|
on: boolean()
|
|
56434
56586
|
}), _void(), {
|
|
56435
56587
|
kind: "mutation",
|
|
56436
56588
|
auth: "protected"
|
|
56437
56589
|
}),
|
|
56438
56590
|
setExtraDry: method(object({
|
|
56439
|
-
deviceId:
|
|
56591
|
+
deviceId: DeviceIdSchema,
|
|
56440
56592
|
on: boolean()
|
|
56441
56593
|
}), _void(), {
|
|
56442
56594
|
kind: "mutation",
|
|
56443
56595
|
auth: "protected"
|
|
56444
56596
|
}),
|
|
56445
56597
|
setIntensiveZone: method(object({
|
|
56446
|
-
deviceId:
|
|
56598
|
+
deviceId: DeviceIdSchema,
|
|
56447
56599
|
on: boolean()
|
|
56448
56600
|
}), _void(), {
|
|
56449
56601
|
kind: "mutation",
|
|
56450
56602
|
auth: "protected"
|
|
56451
56603
|
}),
|
|
56452
56604
|
setVarioSpeedPlus: method(object({
|
|
56453
|
-
deviceId:
|
|
56605
|
+
deviceId: DeviceIdSchema,
|
|
56454
56606
|
on: boolean()
|
|
56455
56607
|
}), _void(), {
|
|
56456
56608
|
kind: "mutation",
|
|
56457
56609
|
auth: "protected"
|
|
56458
56610
|
}),
|
|
56459
56611
|
setChildLock: method(object({
|
|
56460
|
-
deviceId:
|
|
56612
|
+
deviceId: DeviceIdSchema,
|
|
56461
56613
|
on: boolean()
|
|
56462
56614
|
}), _void(), {
|
|
56463
56615
|
kind: "mutation",
|
|
56464
56616
|
auth: "protected"
|
|
56465
56617
|
}),
|
|
56618
|
+
/**
|
|
56619
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56620
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56621
|
+
* its declared range / members.
|
|
56622
|
+
*/
|
|
56466
56623
|
setOption: method(object({
|
|
56467
|
-
deviceId:
|
|
56624
|
+
deviceId: DeviceIdSchema,
|
|
56468
56625
|
key: string().min(1),
|
|
56469
|
-
value:
|
|
56470
|
-
boolean(),
|
|
56471
|
-
string(),
|
|
56472
|
-
number()
|
|
56473
|
-
])
|
|
56626
|
+
value: DishwasherValueSchema
|
|
56474
56627
|
}), _void(), {
|
|
56475
56628
|
kind: "mutation",
|
|
56476
56629
|
auth: "protected"
|
|
56477
|
-
})
|
|
56630
|
+
}),
|
|
56631
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56632
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
56478
56633
|
},
|
|
56479
56634
|
status: {
|
|
56480
56635
|
schema: DishwasherStatusSchema,
|
|
@@ -70423,6 +70578,12 @@ Object.freeze({
|
|
|
70423
70578
|
addonId: null,
|
|
70424
70579
|
access: "view"
|
|
70425
70580
|
},
|
|
70581
|
+
"dishwasher.getOptions": {
|
|
70582
|
+
capName: "dishwasher",
|
|
70583
|
+
capScope: "device",
|
|
70584
|
+
addonId: null,
|
|
70585
|
+
access: "view"
|
|
70586
|
+
},
|
|
70426
70587
|
"dishwasher.getStatus": {
|
|
70427
70588
|
capName: "dishwasher",
|
|
70428
70589
|
capScope: "device",
|
|
@@ -70435,6 +70596,12 @@ Object.freeze({
|
|
|
70435
70596
|
addonId: null,
|
|
70436
70597
|
access: "create"
|
|
70437
70598
|
},
|
|
70599
|
+
"dishwasher.resume": {
|
|
70600
|
+
capName: "dishwasher",
|
|
70601
|
+
capScope: "device",
|
|
70602
|
+
addonId: null,
|
|
70603
|
+
access: "create"
|
|
70604
|
+
},
|
|
70438
70605
|
"dishwasher.setChildLock": {
|
|
70439
70606
|
capName: "dishwasher",
|
|
70440
70607
|
capScope: "device",
|
|
@@ -74935,6 +75102,12 @@ Object.freeze({
|
|
|
74935
75102
|
addonId: null,
|
|
74936
75103
|
access: "view"
|
|
74937
75104
|
},
|
|
75105
|
+
"storageMigration.moverClearance": {
|
|
75106
|
+
capName: "storage-migration",
|
|
75107
|
+
capScope: "system",
|
|
75108
|
+
addonId: null,
|
|
75109
|
+
access: "view"
|
|
75110
|
+
},
|
|
74938
75111
|
"storageMigration.movers": {
|
|
74939
75112
|
capName: "storage-migration",
|
|
74940
75113
|
capScope: "system",
|
|
@@ -77128,6 +77301,11 @@ Object.freeze({
|
|
|
77128
77301
|
form: "single",
|
|
77129
77302
|
optional: false
|
|
77130
77303
|
}],
|
|
77304
|
+
"dishwasher.getOptions": [{
|
|
77305
|
+
name: "deviceId",
|
|
77306
|
+
form: "single",
|
|
77307
|
+
optional: false
|
|
77308
|
+
}],
|
|
77131
77309
|
"dishwasher.getStatus": [{
|
|
77132
77310
|
name: "deviceId",
|
|
77133
77311
|
form: "single",
|
|
@@ -77138,6 +77316,11 @@ Object.freeze({
|
|
|
77138
77316
|
form: "single",
|
|
77139
77317
|
optional: false
|
|
77140
77318
|
}],
|
|
77319
|
+
"dishwasher.resume": [{
|
|
77320
|
+
name: "deviceId",
|
|
77321
|
+
form: "single",
|
|
77322
|
+
optional: false
|
|
77323
|
+
}],
|
|
77141
77324
|
"dishwasher.setChildLock": [{
|
|
77142
77325
|
name: "deviceId",
|
|
77143
77326
|
form: "single",
|
|
@@ -79224,6 +79407,9 @@ new Map(Object.entries({
|
|
|
79224
79407
|
"wrapper-update-available": "system",
|
|
79225
79408
|
"backup-completed": "system",
|
|
79226
79409
|
"export-completed": "system",
|
|
79410
|
+
"alert-critical": "system",
|
|
79411
|
+
"alert-error": "system",
|
|
79412
|
+
"alert-critical-resolved": "system",
|
|
79227
79413
|
"storage-location-low": "system",
|
|
79228
79414
|
"storage-location-critical": "system",
|
|
79229
79415
|
"storage-location-ok": "system",
|
|
@@ -79348,6 +79534,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79348
79534
|
"storage-location-ok"
|
|
79349
79535
|
]
|
|
79350
79536
|
},
|
|
79537
|
+
{
|
|
79538
|
+
id: "alerts",
|
|
79539
|
+
family: "system",
|
|
79540
|
+
label: "Alerts",
|
|
79541
|
+
kinds: [
|
|
79542
|
+
"alert-critical",
|
|
79543
|
+
"alert-error",
|
|
79544
|
+
"alert-critical-resolved"
|
|
79545
|
+
]
|
|
79546
|
+
},
|
|
79351
79547
|
{
|
|
79352
79548
|
id: "alarm",
|
|
79353
79549
|
family: "alarm",
|
|
@@ -79392,6 +79588,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
79392
79588
|
return [[descriptor.kind, field]];
|
|
79393
79589
|
})));
|
|
79394
79590
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
79591
|
+
object({
|
|
79592
|
+
phase: _enum(["raised", "resolved"]),
|
|
79593
|
+
episodeId: string().min(1),
|
|
79594
|
+
alertId: string().min(1),
|
|
79595
|
+
severity: AlertSeveritySchema,
|
|
79596
|
+
category: string(),
|
|
79597
|
+
title: string(),
|
|
79598
|
+
message: string(),
|
|
79599
|
+
sourceType: string().optional(),
|
|
79600
|
+
sourceId: string().optional(),
|
|
79601
|
+
nodeId: string().optional(),
|
|
79602
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
79603
|
+
actionUrl: string().optional(),
|
|
79604
|
+
at: number()
|
|
79605
|
+
});
|
|
79395
79606
|
var RULE_BODY_ONLY = ["body"];
|
|
79396
79607
|
var RULE_TEXT = ["title", "body"];
|
|
79397
79608
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -79401,6 +79612,11 @@ var TANK = [
|
|
|
79401
79612
|
"device-tank-full",
|
|
79402
79613
|
"device-tank-normal"
|
|
79403
79614
|
];
|
|
79615
|
+
var ALERT_EPISODE = [
|
|
79616
|
+
"alert-critical",
|
|
79617
|
+
"alert-error",
|
|
79618
|
+
"alert-critical-resolved"
|
|
79619
|
+
];
|
|
79404
79620
|
var UPDATES = [
|
|
79405
79621
|
"addon-update-available",
|
|
79406
79622
|
"server-update-available",
|
|
@@ -79593,14 +79809,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
79593
79809
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79594
79810
|
([...RULE_TEXT], [...TANK]),
|
|
79595
79811
|
[...RULE_TEXT],
|
|
79596
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79597
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79598
|
-
[...RULE_TEXT],
|
|
79812
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79813
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79599
79814
|
[...RULE_TEXT],
|
|
79600
79815
|
[...RULE_TEXT],
|
|
79601
79816
|
[...RULE_TEXT],
|
|
79602
79817
|
[...RULE_TEXT],
|
|
79603
79818
|
[...RULE_TEXT],
|
|
79819
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79604
79820
|
[...RULE_TEXT],
|
|
79605
79821
|
[...RULE_TEXT],
|
|
79606
79822
|
[...RULE_TEXT],
|
|
@@ -79618,7 +79834,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
79618
79834
|
[...RULE_TEXT],
|
|
79619
79835
|
[...RULE_TEXT],
|
|
79620
79836
|
[...RULE_TEXT],
|
|
79621
|
-
[...RULE_TEXT],
|
|
79837
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79838
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79839
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79840
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79841
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79622
79842
|
[...RULE_TEXT],
|
|
79623
79843
|
[...RULE_TEXT],
|
|
79624
79844
|
[...RULE_TEXT],
|
package/package.json
CHANGED