@camstack/addon-import-alexa 0.2.129 → 0.2.130
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
|
@@ -38,7 +38,7 @@ let node_os = require("node:os");
|
|
|
38
38
|
let node_fs = require("node:fs");
|
|
39
39
|
let node_path = require("node:path");
|
|
40
40
|
node_path = __toESM(node_path);
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -117,9 +117,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
117
117
|
/**
|
|
118
118
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
119
119
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
120
|
-
* alert centre turns it into one
|
|
120
|
+
* alert centre turns it into one critical alert.
|
|
121
121
|
*/
|
|
122
122
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
123
|
+
/**
|
|
124
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
125
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
126
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
127
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
128
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
129
|
+
* event may be dropped (D8, D11).
|
|
130
|
+
*/
|
|
131
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
123
132
|
EventCategory["AddonError"] = "addon.error";
|
|
124
133
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
125
134
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5577,7 +5586,7 @@ var ZodIssueCode = {
|
|
|
5577
5586
|
var ZodFirstPartyTypeKind;
|
|
5578
5587
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5579
5588
|
//#endregion
|
|
5580
|
-
//#region ../types/dist/sleep-
|
|
5589
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5581
5590
|
/**
|
|
5582
5591
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5583
5592
|
* window to float samples (D455).
|
|
@@ -13676,7 +13685,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13676
13685
|
]);
|
|
13677
13686
|
var AlertActionSchema = object({
|
|
13678
13687
|
label: string(),
|
|
13679
|
-
href: string().optional()
|
|
13688
|
+
href: string().optional(),
|
|
13689
|
+
/**
|
|
13690
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13691
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13692
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13693
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13694
|
+
*/
|
|
13695
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13680
13696
|
});
|
|
13681
13697
|
var AlertStatusSchema = _enum([
|
|
13682
13698
|
"active",
|
|
@@ -42458,6 +42474,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42458
42474
|
"server-updated",
|
|
42459
42475
|
"export-completed",
|
|
42460
42476
|
"backup-completed",
|
|
42477
|
+
"alert-critical",
|
|
42478
|
+
"alert-error",
|
|
42479
|
+
"alert-critical-resolved",
|
|
42461
42480
|
"camera-online",
|
|
42462
42481
|
"camera-offline",
|
|
42463
42482
|
"camera-disabled",
|
|
@@ -51534,7 +51553,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51534
51553
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51535
51554
|
kind: "mutation",
|
|
51536
51555
|
auth: "admin"
|
|
51537
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51556
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51557
|
+
clear: boolean(),
|
|
51558
|
+
repointLocationId: string().optional()
|
|
51559
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51538
51560
|
kind: "mutation",
|
|
51539
51561
|
auth: "admin"
|
|
51540
51562
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -55807,6 +55829,11 @@ onStatusChanged: { data: object({
|
|
|
55807
55829
|
*
|
|
55808
55830
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55809
55831
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55832
|
+
*
|
|
55833
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55834
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55835
|
+
* the link is down, or the description does not carry it) and is never
|
|
55836
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55810
55837
|
*/
|
|
55811
55838
|
var DishwasherStateSchema = _enum([
|
|
55812
55839
|
"idle",
|
|
@@ -55816,43 +55843,155 @@ var DishwasherStateSchema = _enum([
|
|
|
55816
55843
|
"error",
|
|
55817
55844
|
"unavailable"
|
|
55818
55845
|
]);
|
|
55846
|
+
/**
|
|
55847
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55848
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55849
|
+
*/
|
|
55850
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55851
|
+
"Inactive",
|
|
55852
|
+
"Ready",
|
|
55853
|
+
"DelayedStart",
|
|
55854
|
+
"Run",
|
|
55855
|
+
"Pause",
|
|
55856
|
+
"ActionRequired",
|
|
55857
|
+
"Finished",
|
|
55858
|
+
"Error",
|
|
55859
|
+
"Aborting"
|
|
55860
|
+
]);
|
|
55861
|
+
/**
|
|
55862
|
+
* Why fields may be `null`:
|
|
55863
|
+
* - `available` — the link is up and the description is loaded;
|
|
55864
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55865
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55866
|
+
* be loaded, so its values cannot be decoded.
|
|
55867
|
+
*/
|
|
55868
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55869
|
+
"available",
|
|
55870
|
+
"offline",
|
|
55871
|
+
"description-missing"
|
|
55872
|
+
]);
|
|
55819
55873
|
var DishwasherConsumableLevelSchema = _enum([
|
|
55820
55874
|
"ok",
|
|
55821
55875
|
"low",
|
|
55822
55876
|
"empty"
|
|
55823
55877
|
]);
|
|
55824
55878
|
var DishwasherStatusSchema = object({
|
|
55879
|
+
availability: DishwasherAvailabilitySchema,
|
|
55880
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55825
55881
|
state: DishwasherStateSchema,
|
|
55826
|
-
/**
|
|
55882
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55883
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55884
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55827
55885
|
program: string().nullable(),
|
|
55828
|
-
/**
|
|
55886
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55887
|
+
selectedProgram: string().nullable(),
|
|
55888
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55829
55889
|
availablePrograms: array(string()),
|
|
55830
|
-
/**
|
|
55831
|
-
|
|
55890
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55891
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55892
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55893
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55832
55894
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
55833
55895
|
progressPercent: number().min(0).max(100).nullable(),
|
|
55834
|
-
/** True when the door is reported open. */
|
|
55835
|
-
doorOpen: boolean(),
|
|
55836
|
-
/** True when
|
|
55837
|
-
|
|
55838
|
-
/**
|
|
55839
|
-
|
|
55896
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55897
|
+
doorOpen: boolean().nullable(),
|
|
55898
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55899
|
+
doorLocked: boolean().nullable(),
|
|
55900
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55901
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55902
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55903
|
+
remoteControlActive: boolean().nullable(),
|
|
55904
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
55905
|
+
localControlActive: boolean().nullable(),
|
|
55906
|
+
/** Main power / switched-on state; null when not known. */
|
|
55907
|
+
powerOn: boolean().nullable(),
|
|
55908
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55909
|
+
powerState: string().nullable(),
|
|
55840
55910
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55841
55911
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55842
|
-
|
|
55843
|
-
|
|
55912
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
55913
|
+
halfLoad: boolean().nullable(),
|
|
55914
|
+
hygienePlus: boolean().nullable(),
|
|
55844
55915
|
/** Extra dry option when the appliance exposes it. */
|
|
55845
|
-
extraDry: boolean(),
|
|
55916
|
+
extraDry: boolean().nullable(),
|
|
55846
55917
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55847
|
-
intensiveZone: boolean(),
|
|
55918
|
+
intensiveZone: boolean().nullable(),
|
|
55848
55919
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55849
|
-
varioSpeedPlus: boolean(),
|
|
55850
|
-
/** Child lock (controls disabled on the appliance). */
|
|
55851
|
-
childLock: boolean(),
|
|
55920
|
+
varioSpeedPlus: boolean().nullable(),
|
|
55921
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
55922
|
+
childLock: boolean().nullable(),
|
|
55923
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
55924
|
+
activeEvents: array(string()),
|
|
55925
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55852
55926
|
errorCode: number().nullable(),
|
|
55927
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55853
55928
|
errorLabel: string().nullable(),
|
|
55929
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55854
55930
|
lastFetchedAt: number()
|
|
55855
55931
|
});
|
|
55932
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
55933
|
+
/** A value a program option or setting can take. */
|
|
55934
|
+
var DishwasherValueSchema = union([
|
|
55935
|
+
boolean(),
|
|
55936
|
+
string(),
|
|
55937
|
+
number()
|
|
55938
|
+
]);
|
|
55939
|
+
var DishwasherAccessSchema = _enum([
|
|
55940
|
+
"none",
|
|
55941
|
+
"read",
|
|
55942
|
+
"readWrite",
|
|
55943
|
+
"writeOnly",
|
|
55944
|
+
"readStatic"
|
|
55945
|
+
]);
|
|
55946
|
+
/**
|
|
55947
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
55948
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
55949
|
+
*/
|
|
55950
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
55951
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
55952
|
+
key: string(),
|
|
55953
|
+
/** Last segment of the key, for display. */
|
|
55954
|
+
name: string(),
|
|
55955
|
+
type: _enum([
|
|
55956
|
+
"boolean",
|
|
55957
|
+
"number",
|
|
55958
|
+
"enum",
|
|
55959
|
+
"string"
|
|
55960
|
+
]),
|
|
55961
|
+
access: DishwasherAccessSchema,
|
|
55962
|
+
/** The appliance reports this entity as currently available. */
|
|
55963
|
+
available: boolean(),
|
|
55964
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
55965
|
+
unit: string().nullable(),
|
|
55966
|
+
min: number().nullable(),
|
|
55967
|
+
max: number().nullable(),
|
|
55968
|
+
step: number().nullable(),
|
|
55969
|
+
/** Allowed members of an enum; null for other types. */
|
|
55970
|
+
enumValues: array(string()).nullable(),
|
|
55971
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
55972
|
+
});
|
|
55973
|
+
var DishwasherProgramSchema = object({
|
|
55974
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
55975
|
+
key: string(),
|
|
55976
|
+
name: string(),
|
|
55977
|
+
/** The appliance currently offers this program. */
|
|
55978
|
+
available: boolean(),
|
|
55979
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
55980
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55981
|
+
});
|
|
55982
|
+
var DishwasherOptionsSchema = object({
|
|
55983
|
+
availability: DishwasherAvailabilitySchema,
|
|
55984
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
55985
|
+
supportsStart: boolean(),
|
|
55986
|
+
supportsPause: boolean(),
|
|
55987
|
+
supportsResume: boolean(),
|
|
55988
|
+
supportsStop: boolean(),
|
|
55989
|
+
supportsPower: boolean(),
|
|
55990
|
+
/** Every program the description lists, with its options. */
|
|
55991
|
+
programs: array(DishwasherProgramSchema),
|
|
55992
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
55993
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55994
|
+
});
|
|
55856
55995
|
var dishwasherCapability = {
|
|
55857
55996
|
name: "dishwasher",
|
|
55858
55997
|
scope: "device",
|
|
@@ -55860,86 +55999,102 @@ var dishwasherCapability = {
|
|
|
55860
55999
|
mode: "singleton",
|
|
55861
56000
|
deviceTypes: [DeviceType.Dishwasher],
|
|
55862
56001
|
methods: {
|
|
55863
|
-
|
|
56002
|
+
/**
|
|
56003
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56004
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56005
|
+
*/
|
|
56006
|
+
start: method(object({
|
|
56007
|
+
deviceId: DeviceIdSchema,
|
|
56008
|
+
program: string().min(1).optional(),
|
|
56009
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56010
|
+
}), _void(), {
|
|
55864
56011
|
kind: "mutation",
|
|
55865
56012
|
auth: "protected"
|
|
55866
56013
|
}),
|
|
55867
|
-
pause: method(object({ deviceId:
|
|
56014
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55868
56015
|
kind: "mutation",
|
|
55869
56016
|
auth: "protected"
|
|
55870
56017
|
}),
|
|
55871
|
-
|
|
56018
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56019
|
+
kind: "mutation",
|
|
56020
|
+
auth: "protected"
|
|
56021
|
+
}),
|
|
56022
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55872
56023
|
kind: "mutation",
|
|
55873
56024
|
auth: "protected"
|
|
55874
56025
|
}),
|
|
56026
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
55875
56027
|
setProgram: method(object({
|
|
55876
|
-
deviceId:
|
|
56028
|
+
deviceId: DeviceIdSchema,
|
|
55877
56029
|
program: string().min(1)
|
|
55878
56030
|
}), _void(), {
|
|
55879
56031
|
kind: "mutation",
|
|
55880
56032
|
auth: "protected"
|
|
55881
56033
|
}),
|
|
55882
56034
|
setPower: method(object({
|
|
55883
|
-
deviceId:
|
|
56035
|
+
deviceId: DeviceIdSchema,
|
|
55884
56036
|
on: boolean()
|
|
55885
56037
|
}), _void(), {
|
|
55886
56038
|
kind: "mutation",
|
|
55887
56039
|
auth: "protected"
|
|
55888
56040
|
}),
|
|
55889
56041
|
setHalfLoad: method(object({
|
|
55890
|
-
deviceId:
|
|
56042
|
+
deviceId: DeviceIdSchema,
|
|
55891
56043
|
on: boolean()
|
|
55892
56044
|
}), _void(), {
|
|
55893
56045
|
kind: "mutation",
|
|
55894
56046
|
auth: "protected"
|
|
55895
56047
|
}),
|
|
55896
56048
|
setHygienePlus: method(object({
|
|
55897
|
-
deviceId:
|
|
56049
|
+
deviceId: DeviceIdSchema,
|
|
55898
56050
|
on: boolean()
|
|
55899
56051
|
}), _void(), {
|
|
55900
56052
|
kind: "mutation",
|
|
55901
56053
|
auth: "protected"
|
|
55902
56054
|
}),
|
|
55903
56055
|
setExtraDry: method(object({
|
|
55904
|
-
deviceId:
|
|
56056
|
+
deviceId: DeviceIdSchema,
|
|
55905
56057
|
on: boolean()
|
|
55906
56058
|
}), _void(), {
|
|
55907
56059
|
kind: "mutation",
|
|
55908
56060
|
auth: "protected"
|
|
55909
56061
|
}),
|
|
55910
56062
|
setIntensiveZone: method(object({
|
|
55911
|
-
deviceId:
|
|
56063
|
+
deviceId: DeviceIdSchema,
|
|
55912
56064
|
on: boolean()
|
|
55913
56065
|
}), _void(), {
|
|
55914
56066
|
kind: "mutation",
|
|
55915
56067
|
auth: "protected"
|
|
55916
56068
|
}),
|
|
55917
56069
|
setVarioSpeedPlus: method(object({
|
|
55918
|
-
deviceId:
|
|
56070
|
+
deviceId: DeviceIdSchema,
|
|
55919
56071
|
on: boolean()
|
|
55920
56072
|
}), _void(), {
|
|
55921
56073
|
kind: "mutation",
|
|
55922
56074
|
auth: "protected"
|
|
55923
56075
|
}),
|
|
55924
56076
|
setChildLock: method(object({
|
|
55925
|
-
deviceId:
|
|
56077
|
+
deviceId: DeviceIdSchema,
|
|
55926
56078
|
on: boolean()
|
|
55927
56079
|
}), _void(), {
|
|
55928
56080
|
kind: "mutation",
|
|
55929
56081
|
auth: "protected"
|
|
55930
56082
|
}),
|
|
56083
|
+
/**
|
|
56084
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56085
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56086
|
+
* its declared range / members.
|
|
56087
|
+
*/
|
|
55931
56088
|
setOption: method(object({
|
|
55932
|
-
deviceId:
|
|
56089
|
+
deviceId: DeviceIdSchema,
|
|
55933
56090
|
key: string().min(1),
|
|
55934
|
-
value:
|
|
55935
|
-
boolean(),
|
|
55936
|
-
string(),
|
|
55937
|
-
number()
|
|
55938
|
-
])
|
|
56091
|
+
value: DishwasherValueSchema
|
|
55939
56092
|
}), _void(), {
|
|
55940
56093
|
kind: "mutation",
|
|
55941
56094
|
auth: "protected"
|
|
55942
|
-
})
|
|
56095
|
+
}),
|
|
56096
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56097
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
55943
56098
|
},
|
|
55944
56099
|
status: {
|
|
55945
56100
|
schema: DishwasherStatusSchema,
|
|
@@ -69888,6 +70043,12 @@ Object.freeze({
|
|
|
69888
70043
|
addonId: null,
|
|
69889
70044
|
access: "view"
|
|
69890
70045
|
},
|
|
70046
|
+
"dishwasher.getOptions": {
|
|
70047
|
+
capName: "dishwasher",
|
|
70048
|
+
capScope: "device",
|
|
70049
|
+
addonId: null,
|
|
70050
|
+
access: "view"
|
|
70051
|
+
},
|
|
69891
70052
|
"dishwasher.getStatus": {
|
|
69892
70053
|
capName: "dishwasher",
|
|
69893
70054
|
capScope: "device",
|
|
@@ -69900,6 +70061,12 @@ Object.freeze({
|
|
|
69900
70061
|
addonId: null,
|
|
69901
70062
|
access: "create"
|
|
69902
70063
|
},
|
|
70064
|
+
"dishwasher.resume": {
|
|
70065
|
+
capName: "dishwasher",
|
|
70066
|
+
capScope: "device",
|
|
70067
|
+
addonId: null,
|
|
70068
|
+
access: "create"
|
|
70069
|
+
},
|
|
69903
70070
|
"dishwasher.setChildLock": {
|
|
69904
70071
|
capName: "dishwasher",
|
|
69905
70072
|
capScope: "device",
|
|
@@ -74400,6 +74567,12 @@ Object.freeze({
|
|
|
74400
74567
|
addonId: null,
|
|
74401
74568
|
access: "view"
|
|
74402
74569
|
},
|
|
74570
|
+
"storageMigration.moverClearance": {
|
|
74571
|
+
capName: "storage-migration",
|
|
74572
|
+
capScope: "system",
|
|
74573
|
+
addonId: null,
|
|
74574
|
+
access: "view"
|
|
74575
|
+
},
|
|
74403
74576
|
"storageMigration.movers": {
|
|
74404
74577
|
capName: "storage-migration",
|
|
74405
74578
|
capScope: "system",
|
|
@@ -76593,6 +76766,11 @@ Object.freeze({
|
|
|
76593
76766
|
form: "single",
|
|
76594
76767
|
optional: false
|
|
76595
76768
|
}],
|
|
76769
|
+
"dishwasher.getOptions": [{
|
|
76770
|
+
name: "deviceId",
|
|
76771
|
+
form: "single",
|
|
76772
|
+
optional: false
|
|
76773
|
+
}],
|
|
76596
76774
|
"dishwasher.getStatus": [{
|
|
76597
76775
|
name: "deviceId",
|
|
76598
76776
|
form: "single",
|
|
@@ -76603,6 +76781,11 @@ Object.freeze({
|
|
|
76603
76781
|
form: "single",
|
|
76604
76782
|
optional: false
|
|
76605
76783
|
}],
|
|
76784
|
+
"dishwasher.resume": [{
|
|
76785
|
+
name: "deviceId",
|
|
76786
|
+
form: "single",
|
|
76787
|
+
optional: false
|
|
76788
|
+
}],
|
|
76606
76789
|
"dishwasher.setChildLock": [{
|
|
76607
76790
|
name: "deviceId",
|
|
76608
76791
|
form: "single",
|
|
@@ -78689,6 +78872,9 @@ new Map(Object.entries({
|
|
|
78689
78872
|
"wrapper-update-available": "system",
|
|
78690
78873
|
"backup-completed": "system",
|
|
78691
78874
|
"export-completed": "system",
|
|
78875
|
+
"alert-critical": "system",
|
|
78876
|
+
"alert-error": "system",
|
|
78877
|
+
"alert-critical-resolved": "system",
|
|
78692
78878
|
"storage-location-low": "system",
|
|
78693
78879
|
"storage-location-critical": "system",
|
|
78694
78880
|
"storage-location-ok": "system",
|
|
@@ -78813,6 +78999,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78813
78999
|
"storage-location-ok"
|
|
78814
79000
|
]
|
|
78815
79001
|
},
|
|
79002
|
+
{
|
|
79003
|
+
id: "alerts",
|
|
79004
|
+
family: "system",
|
|
79005
|
+
label: "Alerts",
|
|
79006
|
+
kinds: [
|
|
79007
|
+
"alert-critical",
|
|
79008
|
+
"alert-error",
|
|
79009
|
+
"alert-critical-resolved"
|
|
79010
|
+
]
|
|
79011
|
+
},
|
|
78816
79012
|
{
|
|
78817
79013
|
id: "alarm",
|
|
78818
79014
|
family: "alarm",
|
|
@@ -78857,6 +79053,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
78857
79053
|
return [[descriptor.kind, field]];
|
|
78858
79054
|
})));
|
|
78859
79055
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
79056
|
+
object({
|
|
79057
|
+
phase: _enum(["raised", "resolved"]),
|
|
79058
|
+
episodeId: string().min(1),
|
|
79059
|
+
alertId: string().min(1),
|
|
79060
|
+
severity: AlertSeveritySchema,
|
|
79061
|
+
category: string(),
|
|
79062
|
+
title: string(),
|
|
79063
|
+
message: string(),
|
|
79064
|
+
sourceType: string().optional(),
|
|
79065
|
+
sourceId: string().optional(),
|
|
79066
|
+
nodeId: string().optional(),
|
|
79067
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
79068
|
+
actionUrl: string().optional(),
|
|
79069
|
+
at: number()
|
|
79070
|
+
});
|
|
78860
79071
|
var RULE_BODY_ONLY = ["body"];
|
|
78861
79072
|
var RULE_TEXT = ["title", "body"];
|
|
78862
79073
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -78866,6 +79077,11 @@ var TANK = [
|
|
|
78866
79077
|
"device-tank-full",
|
|
78867
79078
|
"device-tank-normal"
|
|
78868
79079
|
];
|
|
79080
|
+
var ALERT_EPISODE = [
|
|
79081
|
+
"alert-critical",
|
|
79082
|
+
"alert-error",
|
|
79083
|
+
"alert-critical-resolved"
|
|
79084
|
+
];
|
|
78869
79085
|
var UPDATES = [
|
|
78870
79086
|
"addon-update-available",
|
|
78871
79087
|
"server-update-available",
|
|
@@ -79058,14 +79274,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
79058
79274
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79059
79275
|
([...RULE_TEXT], [...TANK]),
|
|
79060
79276
|
[...RULE_TEXT],
|
|
79061
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79062
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79063
|
-
[...RULE_TEXT],
|
|
79277
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79278
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79064
79279
|
[...RULE_TEXT],
|
|
79065
79280
|
[...RULE_TEXT],
|
|
79066
79281
|
[...RULE_TEXT],
|
|
79067
79282
|
[...RULE_TEXT],
|
|
79068
79283
|
[...RULE_TEXT],
|
|
79284
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79069
79285
|
[...RULE_TEXT],
|
|
79070
79286
|
[...RULE_TEXT],
|
|
79071
79287
|
[...RULE_TEXT],
|
|
@@ -79083,7 +79299,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
79083
79299
|
[...RULE_TEXT],
|
|
79084
79300
|
[...RULE_TEXT],
|
|
79085
79301
|
[...RULE_TEXT],
|
|
79086
|
-
[...RULE_TEXT],
|
|
79302
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79303
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79304
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79305
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79306
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79087
79307
|
[...RULE_TEXT],
|
|
79088
79308
|
[...RULE_TEXT],
|
|
79089
79309
|
[...RULE_TEXT],
|
package/dist/addon.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
39
39
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region ../types/dist/event-category-
|
|
41
|
+
//#region ../types/dist/event-category-DOl51-Ij.mjs
|
|
42
42
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
43
43
|
EventCategory["SystemBoot"] = "system.boot";
|
|
44
44
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -117,9 +117,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
117
117
|
/**
|
|
118
118
|
* The node's one-shot runner boot check (D877): planned runners against the
|
|
119
119
|
* process service, `degraded` when any is failed, refused or missing. The
|
|
120
|
-
* alert centre turns it into one
|
|
120
|
+
* alert centre turns it into one critical alert.
|
|
121
121
|
*/
|
|
122
122
|
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
123
|
+
/**
|
|
124
|
+
* An alert EPISODE opened or closed, emitted by the alert centre for alerts
|
|
125
|
+
* of severity `critical` or `error` (`AlertEpisodePayload`). The alert
|
|
126
|
+
* centre sends no notification of its own: Notification Center turns this
|
|
127
|
+
* into the `alert-critical` / `alert-error` / `alert-critical-resolved`
|
|
128
|
+
* system-event kinds, and reconciles from the alerts store because a bus
|
|
129
|
+
* event may be dropped (D8, D11).
|
|
130
|
+
*/
|
|
131
|
+
EventCategory["AlertEpisode"] = "alert.episode";
|
|
123
132
|
EventCategory["AddonError"] = "addon.error";
|
|
124
133
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
125
134
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5577,7 +5586,7 @@ var ZodIssueCode = {
|
|
|
5577
5586
|
var ZodFirstPartyTypeKind;
|
|
5578
5587
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5579
5588
|
//#endregion
|
|
5580
|
-
//#region ../types/dist/sleep-
|
|
5589
|
+
//#region ../types/dist/sleep-BxjU_fJM.mjs
|
|
5581
5590
|
/**
|
|
5582
5591
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5583
5592
|
* window to float samples (D455).
|
|
@@ -13676,7 +13685,14 @@ var AlertSeveritySchema = _enum([
|
|
|
13676
13685
|
]);
|
|
13677
13686
|
var AlertActionSchema = object({
|
|
13678
13687
|
label: string(),
|
|
13679
|
-
href: string().optional()
|
|
13688
|
+
href: string().optional(),
|
|
13689
|
+
/**
|
|
13690
|
+
* How `href` is followed. Absent / `app`: an admin-ui route (client-side).
|
|
13691
|
+
* `server`: a route the HUB serves (an addon HTTP route such as an OAuth
|
|
13692
|
+
* start) — the browser must leave the SPA with a full navigation, because
|
|
13693
|
+
* the SPA has no such route and would bounce to the home page.
|
|
13694
|
+
*/
|
|
13695
|
+
navigation: _enum(["app", "server"]).optional()
|
|
13680
13696
|
});
|
|
13681
13697
|
var AlertStatusSchema = _enum([
|
|
13682
13698
|
"active",
|
|
@@ -42458,6 +42474,9 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42458
42474
|
"server-updated",
|
|
42459
42475
|
"export-completed",
|
|
42460
42476
|
"backup-completed",
|
|
42477
|
+
"alert-critical",
|
|
42478
|
+
"alert-error",
|
|
42479
|
+
"alert-critical-resolved",
|
|
42461
42480
|
"camera-online",
|
|
42462
42481
|
"camera-offline",
|
|
42463
42482
|
"camera-disabled",
|
|
@@ -51534,7 +51553,10 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
51534
51553
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
51535
51554
|
kind: "mutation",
|
|
51536
51555
|
auth: "admin"
|
|
51537
|
-
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({
|
|
51556
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({ locationIds: array(string()).readonly() }), object({
|
|
51557
|
+
clear: boolean(),
|
|
51558
|
+
repointLocationId: string().optional()
|
|
51559
|
+
}), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
51538
51560
|
kind: "mutation",
|
|
51539
51561
|
auth: "admin"
|
|
51540
51562
|
}), method(StorageCleanupInputSchema, object({ jobId: string() }), {
|
|
@@ -55807,6 +55829,11 @@ onStatusChanged: { data: object({
|
|
|
55807
55829
|
*
|
|
55808
55830
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
55809
55831
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
55832
|
+
*
|
|
55833
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
55834
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
55835
|
+
* the link is down, or the description does not carry it) and is never
|
|
55836
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
55810
55837
|
*/
|
|
55811
55838
|
var DishwasherStateSchema = _enum([
|
|
55812
55839
|
"idle",
|
|
@@ -55816,43 +55843,155 @@ var DishwasherStateSchema = _enum([
|
|
|
55816
55843
|
"error",
|
|
55817
55844
|
"unavailable"
|
|
55818
55845
|
]);
|
|
55846
|
+
/**
|
|
55847
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
55848
|
+
* view for compact surfaces; this is what the appliance said.
|
|
55849
|
+
*/
|
|
55850
|
+
var DishwasherOperationStateSchema = _enum([
|
|
55851
|
+
"Inactive",
|
|
55852
|
+
"Ready",
|
|
55853
|
+
"DelayedStart",
|
|
55854
|
+
"Run",
|
|
55855
|
+
"Pause",
|
|
55856
|
+
"ActionRequired",
|
|
55857
|
+
"Finished",
|
|
55858
|
+
"Error",
|
|
55859
|
+
"Aborting"
|
|
55860
|
+
]);
|
|
55861
|
+
/**
|
|
55862
|
+
* Why fields may be `null`:
|
|
55863
|
+
* - `available` — the link is up and the description is loaded;
|
|
55864
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
55865
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
55866
|
+
* be loaded, so its values cannot be decoded.
|
|
55867
|
+
*/
|
|
55868
|
+
var DishwasherAvailabilitySchema = _enum([
|
|
55869
|
+
"available",
|
|
55870
|
+
"offline",
|
|
55871
|
+
"description-missing"
|
|
55872
|
+
]);
|
|
55819
55873
|
var DishwasherConsumableLevelSchema = _enum([
|
|
55820
55874
|
"ok",
|
|
55821
55875
|
"low",
|
|
55822
55876
|
"empty"
|
|
55823
55877
|
]);
|
|
55824
55878
|
var DishwasherStatusSchema = object({
|
|
55879
|
+
availability: DishwasherAvailabilitySchema,
|
|
55880
|
+
/** Coarse state for compact surfaces; `unavailable` whenever the appliance state is not known. */
|
|
55825
55881
|
state: DishwasherStateSchema,
|
|
55826
|
-
/**
|
|
55882
|
+
/** The appliance's operation state as reported; null when not known. */
|
|
55883
|
+
operationState: DishwasherOperationStateSchema.nullable(),
|
|
55884
|
+
/** Feature key of the ACTIVE (running) program, or null when none runs / not known. */
|
|
55827
55885
|
program: string().nullable(),
|
|
55828
|
-
/**
|
|
55886
|
+
/** Feature key of the SELECTED program (what Start would run), or null when none / not known. */
|
|
55887
|
+
selectedProgram: string().nullable(),
|
|
55888
|
+
/** Feature keys of the programs the appliance currently offers — drives the UI selector. */
|
|
55829
55889
|
availablePrograms: array(string()),
|
|
55830
|
-
/**
|
|
55831
|
-
|
|
55890
|
+
/** Seconds remaining on the active cycle, or null when not running / not known. */
|
|
55891
|
+
remainingSeconds: number().int().nonnegative().nullable(),
|
|
55892
|
+
/** Seconds the delayed start is set to (time until the cycle starts), or null. */
|
|
55893
|
+
delayedStartSeconds: number().int().nonnegative().nullable(),
|
|
55832
55894
|
/** Cycle completion 0..100, or null when not applicable. */
|
|
55833
55895
|
progressPercent: number().min(0).max(100).nullable(),
|
|
55834
|
-
/** True when the door is reported open. */
|
|
55835
|
-
doorOpen: boolean(),
|
|
55836
|
-
/** True when
|
|
55837
|
-
|
|
55838
|
-
/**
|
|
55839
|
-
|
|
55896
|
+
/** True when the door is reported open; null when the door state is not known. */
|
|
55897
|
+
doorOpen: boolean().nullable(),
|
|
55898
|
+
/** True when the door is latched (locked) during a cycle; null when not reported. */
|
|
55899
|
+
doorLocked: boolean().nullable(),
|
|
55900
|
+
/** True when remote start is allowed (door closed, power on, etc.); null when not known. */
|
|
55901
|
+
remoteStartAllowed: boolean().nullable(),
|
|
55902
|
+
/** True when the appliance accepts remote control now; null when not known. */
|
|
55903
|
+
remoteControlActive: boolean().nullable(),
|
|
55904
|
+
/** True while somebody operates the appliance at its panel; null when not reported. */
|
|
55905
|
+
localControlActive: boolean().nullable(),
|
|
55906
|
+
/** Main power / switched-on state; null when not known. */
|
|
55907
|
+
powerOn: boolean().nullable(),
|
|
55908
|
+
/** The raw power state (`On`, `Off`, `Standby`, …); null when not known. */
|
|
55909
|
+
powerState: string().nullable(),
|
|
55840
55910
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55841
55911
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
55842
|
-
|
|
55843
|
-
|
|
55912
|
+
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
55913
|
+
halfLoad: boolean().nullable(),
|
|
55914
|
+
hygienePlus: boolean().nullable(),
|
|
55844
55915
|
/** Extra dry option when the appliance exposes it. */
|
|
55845
|
-
extraDry: boolean(),
|
|
55916
|
+
extraDry: boolean().nullable(),
|
|
55846
55917
|
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
55847
|
-
intensiveZone: boolean(),
|
|
55918
|
+
intensiveZone: boolean().nullable(),
|
|
55848
55919
|
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
55849
|
-
varioSpeedPlus: boolean(),
|
|
55850
|
-
/** Child lock (controls disabled on the appliance). */
|
|
55851
|
-
childLock: boolean(),
|
|
55920
|
+
varioSpeedPlus: boolean().nullable(),
|
|
55921
|
+
/** Child lock (controls disabled on the appliance); null when not known. */
|
|
55922
|
+
childLock: boolean().nullable(),
|
|
55923
|
+
/** Feature keys of the events currently raised (salt low, rinse aid low, program finished, …). */
|
|
55924
|
+
activeEvents: array(string()),
|
|
55925
|
+
/** Numeric error code when the appliance reports one; null otherwise. */
|
|
55852
55926
|
errorCode: number().nullable(),
|
|
55927
|
+
/** Name of the raised alert-level event while the appliance is in error; null otherwise. */
|
|
55853
55928
|
errorLabel: string().nullable(),
|
|
55929
|
+
/** Ms epoch of the last value received from the appliance; 0 = never. */
|
|
55854
55930
|
lastFetchedAt: number()
|
|
55855
55931
|
});
|
|
55932
|
+
var DeviceIdSchema = number().int().nonnegative();
|
|
55933
|
+
/** A value a program option or setting can take. */
|
|
55934
|
+
var DishwasherValueSchema = union([
|
|
55935
|
+
boolean(),
|
|
55936
|
+
string(),
|
|
55937
|
+
number()
|
|
55938
|
+
]);
|
|
55939
|
+
var DishwasherAccessSchema = _enum([
|
|
55940
|
+
"none",
|
|
55941
|
+
"read",
|
|
55942
|
+
"readWrite",
|
|
55943
|
+
"writeOnly",
|
|
55944
|
+
"readStatic"
|
|
55945
|
+
]);
|
|
55946
|
+
/**
|
|
55947
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
55948
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
55949
|
+
*/
|
|
55950
|
+
var DishwasherOptionDescriptorSchema = object({
|
|
55951
|
+
/** Feature key (`Dishcare.Dishwasher.Option.ExtraDry`). */
|
|
55952
|
+
key: string(),
|
|
55953
|
+
/** Last segment of the key, for display. */
|
|
55954
|
+
name: string(),
|
|
55955
|
+
type: _enum([
|
|
55956
|
+
"boolean",
|
|
55957
|
+
"number",
|
|
55958
|
+
"enum",
|
|
55959
|
+
"string"
|
|
55960
|
+
]),
|
|
55961
|
+
access: DishwasherAccessSchema,
|
|
55962
|
+
/** The appliance reports this entity as currently available. */
|
|
55963
|
+
available: boolean(),
|
|
55964
|
+
/** Unit the description declares for a number; null when it declares none. */
|
|
55965
|
+
unit: string().nullable(),
|
|
55966
|
+
min: number().nullable(),
|
|
55967
|
+
max: number().nullable(),
|
|
55968
|
+
step: number().nullable(),
|
|
55969
|
+
/** Allowed members of an enum; null for other types. */
|
|
55970
|
+
enumValues: array(string()).nullable(),
|
|
55971
|
+
defaultValue: DishwasherValueSchema.nullable()
|
|
55972
|
+
});
|
|
55973
|
+
var DishwasherProgramSchema = object({
|
|
55974
|
+
/** Feature key (`Dishcare.Dishwasher.Program.Eco50`) — what `setProgram` / `start` take. */
|
|
55975
|
+
key: string(),
|
|
55976
|
+
name: string(),
|
|
55977
|
+
/** The appliance currently offers this program. */
|
|
55978
|
+
available: boolean(),
|
|
55979
|
+
/** The options this program lists, with the program-level access / availability / default. */
|
|
55980
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55981
|
+
});
|
|
55982
|
+
var DishwasherOptionsSchema = object({
|
|
55983
|
+
availability: DishwasherAvailabilitySchema,
|
|
55984
|
+
/** What the appliance can be told to do, from the commands its description declares. */
|
|
55985
|
+
supportsStart: boolean(),
|
|
55986
|
+
supportsPause: boolean(),
|
|
55987
|
+
supportsResume: boolean(),
|
|
55988
|
+
supportsStop: boolean(),
|
|
55989
|
+
supportsPower: boolean(),
|
|
55990
|
+
/** Every program the description lists, with its options. */
|
|
55991
|
+
programs: array(DishwasherProgramSchema),
|
|
55992
|
+
/** Every option and setting entity the description lists (programs reference these by key). */
|
|
55993
|
+
options: array(DishwasherOptionDescriptorSchema)
|
|
55994
|
+
});
|
|
55856
55995
|
var dishwasherCapability = {
|
|
55857
55996
|
name: "dishwasher",
|
|
55858
55997
|
scope: "device",
|
|
@@ -55860,86 +55999,102 @@ var dishwasherCapability = {
|
|
|
55860
55999
|
mode: "singleton",
|
|
55861
56000
|
deviceTypes: [DeviceType.Dishwasher],
|
|
55862
56001
|
methods: {
|
|
55863
|
-
|
|
56002
|
+
/**
|
|
56003
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
56004
|
+
* option feature keys; each is checked against the program's constraints.
|
|
56005
|
+
*/
|
|
56006
|
+
start: method(object({
|
|
56007
|
+
deviceId: DeviceIdSchema,
|
|
56008
|
+
program: string().min(1).optional(),
|
|
56009
|
+
options: record(string(), DishwasherValueSchema).optional()
|
|
56010
|
+
}), _void(), {
|
|
55864
56011
|
kind: "mutation",
|
|
55865
56012
|
auth: "protected"
|
|
55866
56013
|
}),
|
|
55867
|
-
pause: method(object({ deviceId:
|
|
56014
|
+
pause: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55868
56015
|
kind: "mutation",
|
|
55869
56016
|
auth: "protected"
|
|
55870
56017
|
}),
|
|
55871
|
-
|
|
56018
|
+
resume: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
56019
|
+
kind: "mutation",
|
|
56020
|
+
auth: "protected"
|
|
56021
|
+
}),
|
|
56022
|
+
stop: method(object({ deviceId: DeviceIdSchema }), _void(), {
|
|
55872
56023
|
kind: "mutation",
|
|
55873
56024
|
auth: "protected"
|
|
55874
56025
|
}),
|
|
56026
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
55875
56027
|
setProgram: method(object({
|
|
55876
|
-
deviceId:
|
|
56028
|
+
deviceId: DeviceIdSchema,
|
|
55877
56029
|
program: string().min(1)
|
|
55878
56030
|
}), _void(), {
|
|
55879
56031
|
kind: "mutation",
|
|
55880
56032
|
auth: "protected"
|
|
55881
56033
|
}),
|
|
55882
56034
|
setPower: method(object({
|
|
55883
|
-
deviceId:
|
|
56035
|
+
deviceId: DeviceIdSchema,
|
|
55884
56036
|
on: boolean()
|
|
55885
56037
|
}), _void(), {
|
|
55886
56038
|
kind: "mutation",
|
|
55887
56039
|
auth: "protected"
|
|
55888
56040
|
}),
|
|
55889
56041
|
setHalfLoad: method(object({
|
|
55890
|
-
deviceId:
|
|
56042
|
+
deviceId: DeviceIdSchema,
|
|
55891
56043
|
on: boolean()
|
|
55892
56044
|
}), _void(), {
|
|
55893
56045
|
kind: "mutation",
|
|
55894
56046
|
auth: "protected"
|
|
55895
56047
|
}),
|
|
55896
56048
|
setHygienePlus: method(object({
|
|
55897
|
-
deviceId:
|
|
56049
|
+
deviceId: DeviceIdSchema,
|
|
55898
56050
|
on: boolean()
|
|
55899
56051
|
}), _void(), {
|
|
55900
56052
|
kind: "mutation",
|
|
55901
56053
|
auth: "protected"
|
|
55902
56054
|
}),
|
|
55903
56055
|
setExtraDry: method(object({
|
|
55904
|
-
deviceId:
|
|
56056
|
+
deviceId: DeviceIdSchema,
|
|
55905
56057
|
on: boolean()
|
|
55906
56058
|
}), _void(), {
|
|
55907
56059
|
kind: "mutation",
|
|
55908
56060
|
auth: "protected"
|
|
55909
56061
|
}),
|
|
55910
56062
|
setIntensiveZone: method(object({
|
|
55911
|
-
deviceId:
|
|
56063
|
+
deviceId: DeviceIdSchema,
|
|
55912
56064
|
on: boolean()
|
|
55913
56065
|
}), _void(), {
|
|
55914
56066
|
kind: "mutation",
|
|
55915
56067
|
auth: "protected"
|
|
55916
56068
|
}),
|
|
55917
56069
|
setVarioSpeedPlus: method(object({
|
|
55918
|
-
deviceId:
|
|
56070
|
+
deviceId: DeviceIdSchema,
|
|
55919
56071
|
on: boolean()
|
|
55920
56072
|
}), _void(), {
|
|
55921
56073
|
kind: "mutation",
|
|
55922
56074
|
auth: "protected"
|
|
55923
56075
|
}),
|
|
55924
56076
|
setChildLock: method(object({
|
|
55925
|
-
deviceId:
|
|
56077
|
+
deviceId: DeviceIdSchema,
|
|
55926
56078
|
on: boolean()
|
|
55927
56079
|
}), _void(), {
|
|
55928
56080
|
kind: "mutation",
|
|
55929
56081
|
auth: "protected"
|
|
55930
56082
|
}),
|
|
56083
|
+
/**
|
|
56084
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
56085
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
56086
|
+
* its declared range / members.
|
|
56087
|
+
*/
|
|
55931
56088
|
setOption: method(object({
|
|
55932
|
-
deviceId:
|
|
56089
|
+
deviceId: DeviceIdSchema,
|
|
55933
56090
|
key: string().min(1),
|
|
55934
|
-
value:
|
|
55935
|
-
boolean(),
|
|
55936
|
-
string(),
|
|
55937
|
-
number()
|
|
55938
|
-
])
|
|
56091
|
+
value: DishwasherValueSchema
|
|
55939
56092
|
}), _void(), {
|
|
55940
56093
|
kind: "mutation",
|
|
55941
56094
|
auth: "protected"
|
|
55942
|
-
})
|
|
56095
|
+
}),
|
|
56096
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
56097
|
+
getOptions: method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" })
|
|
55943
56098
|
},
|
|
55944
56099
|
status: {
|
|
55945
56100
|
schema: DishwasherStatusSchema,
|
|
@@ -69888,6 +70043,12 @@ Object.freeze({
|
|
|
69888
70043
|
addonId: null,
|
|
69889
70044
|
access: "view"
|
|
69890
70045
|
},
|
|
70046
|
+
"dishwasher.getOptions": {
|
|
70047
|
+
capName: "dishwasher",
|
|
70048
|
+
capScope: "device",
|
|
70049
|
+
addonId: null,
|
|
70050
|
+
access: "view"
|
|
70051
|
+
},
|
|
69891
70052
|
"dishwasher.getStatus": {
|
|
69892
70053
|
capName: "dishwasher",
|
|
69893
70054
|
capScope: "device",
|
|
@@ -69900,6 +70061,12 @@ Object.freeze({
|
|
|
69900
70061
|
addonId: null,
|
|
69901
70062
|
access: "create"
|
|
69902
70063
|
},
|
|
70064
|
+
"dishwasher.resume": {
|
|
70065
|
+
capName: "dishwasher",
|
|
70066
|
+
capScope: "device",
|
|
70067
|
+
addonId: null,
|
|
70068
|
+
access: "create"
|
|
70069
|
+
},
|
|
69903
70070
|
"dishwasher.setChildLock": {
|
|
69904
70071
|
capName: "dishwasher",
|
|
69905
70072
|
capScope: "device",
|
|
@@ -74400,6 +74567,12 @@ Object.freeze({
|
|
|
74400
74567
|
addonId: null,
|
|
74401
74568
|
access: "view"
|
|
74402
74569
|
},
|
|
74570
|
+
"storageMigration.moverClearance": {
|
|
74571
|
+
capName: "storage-migration",
|
|
74572
|
+
capScope: "system",
|
|
74573
|
+
addonId: null,
|
|
74574
|
+
access: "view"
|
|
74575
|
+
},
|
|
74403
74576
|
"storageMigration.movers": {
|
|
74404
74577
|
capName: "storage-migration",
|
|
74405
74578
|
capScope: "system",
|
|
@@ -76593,6 +76766,11 @@ Object.freeze({
|
|
|
76593
76766
|
form: "single",
|
|
76594
76767
|
optional: false
|
|
76595
76768
|
}],
|
|
76769
|
+
"dishwasher.getOptions": [{
|
|
76770
|
+
name: "deviceId",
|
|
76771
|
+
form: "single",
|
|
76772
|
+
optional: false
|
|
76773
|
+
}],
|
|
76596
76774
|
"dishwasher.getStatus": [{
|
|
76597
76775
|
name: "deviceId",
|
|
76598
76776
|
form: "single",
|
|
@@ -76603,6 +76781,11 @@ Object.freeze({
|
|
|
76603
76781
|
form: "single",
|
|
76604
76782
|
optional: false
|
|
76605
76783
|
}],
|
|
76784
|
+
"dishwasher.resume": [{
|
|
76785
|
+
name: "deviceId",
|
|
76786
|
+
form: "single",
|
|
76787
|
+
optional: false
|
|
76788
|
+
}],
|
|
76606
76789
|
"dishwasher.setChildLock": [{
|
|
76607
76790
|
name: "deviceId",
|
|
76608
76791
|
form: "single",
|
|
@@ -78689,6 +78872,9 @@ new Map(Object.entries({
|
|
|
78689
78872
|
"wrapper-update-available": "system",
|
|
78690
78873
|
"backup-completed": "system",
|
|
78691
78874
|
"export-completed": "system",
|
|
78875
|
+
"alert-critical": "system",
|
|
78876
|
+
"alert-error": "system",
|
|
78877
|
+
"alert-critical-resolved": "system",
|
|
78692
78878
|
"storage-location-low": "system",
|
|
78693
78879
|
"storage-location-critical": "system",
|
|
78694
78880
|
"storage-location-ok": "system",
|
|
@@ -78813,6 +78999,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
78813
78999
|
"storage-location-ok"
|
|
78814
79000
|
]
|
|
78815
79001
|
},
|
|
79002
|
+
{
|
|
79003
|
+
id: "alerts",
|
|
79004
|
+
family: "system",
|
|
79005
|
+
label: "Alerts",
|
|
79006
|
+
kinds: [
|
|
79007
|
+
"alert-critical",
|
|
79008
|
+
"alert-error",
|
|
79009
|
+
"alert-critical-resolved"
|
|
79010
|
+
]
|
|
79011
|
+
},
|
|
78816
79012
|
{
|
|
78817
79013
|
id: "alarm",
|
|
78818
79014
|
family: "alarm",
|
|
@@ -78857,6 +79053,21 @@ var NC_SENSOR_RAISED_FIELD_BY_KIND = Object.freeze(Object.fromEntries(Object.ent
|
|
|
78857
79053
|
return [[descriptor.kind, field]];
|
|
78858
79054
|
})));
|
|
78859
79055
|
Object.freeze(Object.keys(NC_SENSOR_RAISED_FIELD_BY_KIND));
|
|
79056
|
+
object({
|
|
79057
|
+
phase: _enum(["raised", "resolved"]),
|
|
79058
|
+
episodeId: string().min(1),
|
|
79059
|
+
alertId: string().min(1),
|
|
79060
|
+
severity: AlertSeveritySchema,
|
|
79061
|
+
category: string(),
|
|
79062
|
+
title: string(),
|
|
79063
|
+
message: string(),
|
|
79064
|
+
sourceType: string().optional(),
|
|
79065
|
+
sourceId: string().optional(),
|
|
79066
|
+
nodeId: string().optional(),
|
|
79067
|
+
/** The alert's own action link (where the operator acts on it), when it has one. */
|
|
79068
|
+
actionUrl: string().optional(),
|
|
79069
|
+
at: number()
|
|
79070
|
+
});
|
|
78860
79071
|
var RULE_BODY_ONLY = ["body"];
|
|
78861
79072
|
var RULE_TEXT = ["title", "body"];
|
|
78862
79073
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
@@ -78866,6 +79077,11 @@ var TANK = [
|
|
|
78866
79077
|
"device-tank-full",
|
|
78867
79078
|
"device-tank-normal"
|
|
78868
79079
|
];
|
|
79080
|
+
var ALERT_EPISODE = [
|
|
79081
|
+
"alert-critical",
|
|
79082
|
+
"alert-error",
|
|
79083
|
+
"alert-critical-resolved"
|
|
79084
|
+
];
|
|
78869
79085
|
var UPDATES = [
|
|
78870
79086
|
"addon-update-available",
|
|
78871
79087
|
"server-update-available",
|
|
@@ -79058,14 +79274,14 @@ var STATE_SUMMARY_VARS = [
|
|
|
79058
79274
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79059
79275
|
([...RULE_TEXT], [...TANK]),
|
|
79060
79276
|
[...RULE_TEXT],
|
|
79061
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79062
|
-
([...RULE_TEXT], [...UPDATES]),
|
|
79063
|
-
[...RULE_TEXT],
|
|
79277
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79278
|
+
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79064
79279
|
[...RULE_TEXT],
|
|
79065
79280
|
[...RULE_TEXT],
|
|
79066
79281
|
[...RULE_TEXT],
|
|
79067
79282
|
[...RULE_TEXT],
|
|
79068
79283
|
[...RULE_TEXT],
|
|
79284
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79069
79285
|
[...RULE_TEXT],
|
|
79070
79286
|
[...RULE_TEXT],
|
|
79071
79287
|
[...RULE_TEXT],
|
|
@@ -79083,7 +79299,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
79083
79299
|
[...RULE_TEXT],
|
|
79084
79300
|
[...RULE_TEXT],
|
|
79085
79301
|
[...RULE_TEXT],
|
|
79086
|
-
[...RULE_TEXT],
|
|
79302
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79303
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79304
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79305
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79306
|
+
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
79087
79307
|
[...RULE_TEXT],
|
|
79088
79308
|
[...RULE_TEXT],
|
|
79089
79309
|
[...RULE_TEXT],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.130",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|