@camstack/types 1.2.383 → 1.2.385
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 +67 -3
- package/dist/addon.mjs +67 -3
- package/dist/capabilities/alerts.cap.d.ts +20 -0
- package/dist/capabilities/device-adoption.cap.d.ts +6 -2
- package/dist/capabilities/device-manager.cap.d.ts +1 -1
- package/dist/capabilities/dishwasher.cap.d.ts +368 -18
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +69 -0
- package/dist/capabilities/osd-manager.cap.d.ts +18 -0
- package/dist/capabilities/storage-migration.cap.d.ts +14 -0
- package/dist/client.js +88 -10
- package/dist/client.mjs +88 -10
- package/dist/enums/event-category.d.ts +10 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-BvOFi6PY.mjs → event-category-DOl51-Ij.mjs} +10 -1
- package/dist/{event-category-Hoe-mqbd.js → event-category-eSqkye-K.js} +10 -1
- package/dist/generated/addon-api.d.ts +49 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +4 -4
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +598 -39
- package/dist/index.mjs +578 -40
- package/dist/interfaces/event-bus.d.ts +2 -0
- package/dist/interfaces/relocate.d.ts +25 -0
- package/dist/notification/alert-episode.d.ts +62 -0
- package/dist/{sleep--L6qY125.js → sleep-BE7_6UnC.js} +15 -4
- package/dist/{sleep-BOjuyoPC.mjs → sleep-BxjU_fJM.mjs} +15 -4
- package/dist/utils/oauth-landing.d.ts +38 -0
- package/package.json +1 -1
|
@@ -10,6 +10,11 @@ import { DeviceType } from '../device/device-type.js';
|
|
|
10
10
|
*
|
|
11
11
|
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
12
12
|
* provider refreshes the slice on an interval and eagerly after commands.
|
|
13
|
+
*
|
|
14
|
+
* UNKNOWN IS NOT OFF. Every field the appliance reports separately is
|
|
15
|
+
* nullable: `null` means "not known right now" (the appliance has not said,
|
|
16
|
+
* the link is down, or the description does not carry it) and is never
|
|
17
|
+
* rendered or exported as `false` / `0`. `availability` says why.
|
|
13
18
|
*/
|
|
14
19
|
export declare const DishwasherStateSchema: z.ZodEnum<{
|
|
15
20
|
error: "error";
|
|
@@ -20,6 +25,35 @@ export declare const DishwasherStateSchema: z.ZodEnum<{
|
|
|
20
25
|
unavailable: "unavailable";
|
|
21
26
|
}>;
|
|
22
27
|
export type DishwasherState = z.infer<typeof DishwasherStateSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* The appliance's own operation state, uncollapsed. `state` above is the coarse
|
|
30
|
+
* view for compact surfaces; this is what the appliance said.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DishwasherOperationStateSchema: z.ZodEnum<{
|
|
33
|
+
Aborting: "Aborting";
|
|
34
|
+
ActionRequired: "ActionRequired";
|
|
35
|
+
DelayedStart: "DelayedStart";
|
|
36
|
+
Error: "Error";
|
|
37
|
+
Finished: "Finished";
|
|
38
|
+
Inactive: "Inactive";
|
|
39
|
+
Pause: "Pause";
|
|
40
|
+
Ready: "Ready";
|
|
41
|
+
Run: "Run";
|
|
42
|
+
}>;
|
|
43
|
+
export type DishwasherOperationState = z.infer<typeof DishwasherOperationStateSchema>;
|
|
44
|
+
/**
|
|
45
|
+
* Why fields may be `null`:
|
|
46
|
+
* - `available` — the link is up and the description is loaded;
|
|
47
|
+
* - `offline` — the local link is down (values are unknown, not last-known);
|
|
48
|
+
* - `description-missing` — the link is up but the appliance's description could not
|
|
49
|
+
* be loaded, so its values cannot be decoded.
|
|
50
|
+
*/
|
|
51
|
+
export declare const DishwasherAvailabilitySchema: z.ZodEnum<{
|
|
52
|
+
available: "available";
|
|
53
|
+
"description-missing": "description-missing";
|
|
54
|
+
offline: "offline";
|
|
55
|
+
}>;
|
|
56
|
+
export type DishwasherAvailability = z.infer<typeof DishwasherAvailabilitySchema>;
|
|
23
57
|
export declare const DishwasherConsumableLevelSchema: z.ZodEnum<{
|
|
24
58
|
empty: "empty";
|
|
25
59
|
low: "low";
|
|
@@ -27,6 +61,11 @@ export declare const DishwasherConsumableLevelSchema: z.ZodEnum<{
|
|
|
27
61
|
}>;
|
|
28
62
|
export type DishwasherConsumableLevel = z.infer<typeof DishwasherConsumableLevelSchema>;
|
|
29
63
|
export declare const DishwasherStatusSchema: z.ZodObject<{
|
|
64
|
+
availability: z.ZodEnum<{
|
|
65
|
+
available: "available";
|
|
66
|
+
"description-missing": "description-missing";
|
|
67
|
+
offline: "offline";
|
|
68
|
+
}>;
|
|
30
69
|
state: z.ZodEnum<{
|
|
31
70
|
error: "error";
|
|
32
71
|
finished: "finished";
|
|
@@ -35,13 +74,30 @@ export declare const DishwasherStatusSchema: z.ZodObject<{
|
|
|
35
74
|
running: "running";
|
|
36
75
|
unavailable: "unavailable";
|
|
37
76
|
}>;
|
|
77
|
+
operationState: z.ZodNullable<z.ZodEnum<{
|
|
78
|
+
Aborting: "Aborting";
|
|
79
|
+
ActionRequired: "ActionRequired";
|
|
80
|
+
DelayedStart: "DelayedStart";
|
|
81
|
+
Error: "Error";
|
|
82
|
+
Finished: "Finished";
|
|
83
|
+
Inactive: "Inactive";
|
|
84
|
+
Pause: "Pause";
|
|
85
|
+
Ready: "Ready";
|
|
86
|
+
Run: "Run";
|
|
87
|
+
}>>;
|
|
38
88
|
program: z.ZodNullable<z.ZodString>;
|
|
89
|
+
selectedProgram: z.ZodNullable<z.ZodString>;
|
|
39
90
|
availablePrograms: z.ZodArray<z.ZodString>;
|
|
40
|
-
|
|
91
|
+
remainingSeconds: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
delayedStartSeconds: z.ZodNullable<z.ZodNumber>;
|
|
41
93
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
doorOpen: z.ZodBoolean
|
|
43
|
-
|
|
44
|
-
|
|
94
|
+
doorOpen: z.ZodNullable<z.ZodBoolean>;
|
|
95
|
+
doorLocked: z.ZodNullable<z.ZodBoolean>;
|
|
96
|
+
remoteStartAllowed: z.ZodNullable<z.ZodBoolean>;
|
|
97
|
+
remoteControlActive: z.ZodNullable<z.ZodBoolean>;
|
|
98
|
+
localControlActive: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
+
powerOn: z.ZodNullable<z.ZodBoolean>;
|
|
100
|
+
powerState: z.ZodNullable<z.ZodString>;
|
|
45
101
|
saltLevel: z.ZodNullable<z.ZodEnum<{
|
|
46
102
|
empty: "empty";
|
|
47
103
|
low: "low";
|
|
@@ -52,13 +108,154 @@ export declare const DishwasherStatusSchema: z.ZodObject<{
|
|
|
52
108
|
low: "low";
|
|
53
109
|
ok: "ok";
|
|
54
110
|
}>>;
|
|
55
|
-
halfLoad: z.ZodBoolean
|
|
56
|
-
hygienePlus: z.ZodBoolean
|
|
111
|
+
halfLoad: z.ZodNullable<z.ZodBoolean>;
|
|
112
|
+
hygienePlus: z.ZodNullable<z.ZodBoolean>;
|
|
113
|
+
extraDry: z.ZodNullable<z.ZodBoolean>;
|
|
114
|
+
intensiveZone: z.ZodNullable<z.ZodBoolean>;
|
|
115
|
+
varioSpeedPlus: z.ZodNullable<z.ZodBoolean>;
|
|
116
|
+
childLock: z.ZodNullable<z.ZodBoolean>;
|
|
117
|
+
activeEvents: z.ZodArray<z.ZodString>;
|
|
57
118
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
58
119
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
59
120
|
lastFetchedAt: z.ZodNumber;
|
|
60
121
|
}, z.core.$strip>;
|
|
61
122
|
export type DishwasherStatus = z.infer<typeof DishwasherStatusSchema>;
|
|
123
|
+
/** A value a program option or setting can take. */
|
|
124
|
+
export declare const DishwasherValueSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>;
|
|
125
|
+
export type DishwasherValue = z.infer<typeof DishwasherValueSchema>;
|
|
126
|
+
export declare const DishwasherAccessSchema: z.ZodEnum<{
|
|
127
|
+
none: "none";
|
|
128
|
+
read: "read";
|
|
129
|
+
readStatic: "readStatic";
|
|
130
|
+
readWrite: "readWrite";
|
|
131
|
+
writeOnly: "writeOnly";
|
|
132
|
+
}>;
|
|
133
|
+
export type DishwasherAccess = z.infer<typeof DishwasherAccessSchema>;
|
|
134
|
+
/**
|
|
135
|
+
* One option or setting the appliance declares, with the constraints its description
|
|
136
|
+
* gives. A `readWrite` descriptor that is `available` is what `setOption` accepts.
|
|
137
|
+
*/
|
|
138
|
+
export declare const DishwasherOptionDescriptorSchema: z.ZodObject<{
|
|
139
|
+
key: z.ZodString;
|
|
140
|
+
name: z.ZodString;
|
|
141
|
+
type: z.ZodEnum<{
|
|
142
|
+
boolean: "boolean";
|
|
143
|
+
enum: "enum";
|
|
144
|
+
number: "number";
|
|
145
|
+
string: "string";
|
|
146
|
+
}>;
|
|
147
|
+
access: z.ZodEnum<{
|
|
148
|
+
none: "none";
|
|
149
|
+
read: "read";
|
|
150
|
+
readStatic: "readStatic";
|
|
151
|
+
readWrite: "readWrite";
|
|
152
|
+
writeOnly: "writeOnly";
|
|
153
|
+
}>;
|
|
154
|
+
available: z.ZodBoolean;
|
|
155
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
156
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
157
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
158
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
159
|
+
enumValues: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
160
|
+
defaultValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export type DishwasherOptionDescriptor = z.infer<typeof DishwasherOptionDescriptorSchema>;
|
|
163
|
+
export declare const DishwasherProgramSchema: z.ZodObject<{
|
|
164
|
+
key: z.ZodString;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
available: z.ZodBoolean;
|
|
167
|
+
options: z.ZodArray<z.ZodObject<{
|
|
168
|
+
key: z.ZodString;
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
type: z.ZodEnum<{
|
|
171
|
+
boolean: "boolean";
|
|
172
|
+
enum: "enum";
|
|
173
|
+
number: "number";
|
|
174
|
+
string: "string";
|
|
175
|
+
}>;
|
|
176
|
+
access: z.ZodEnum<{
|
|
177
|
+
none: "none";
|
|
178
|
+
read: "read";
|
|
179
|
+
readStatic: "readStatic";
|
|
180
|
+
readWrite: "readWrite";
|
|
181
|
+
writeOnly: "writeOnly";
|
|
182
|
+
}>;
|
|
183
|
+
available: z.ZodBoolean;
|
|
184
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
185
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
186
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
187
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
188
|
+
enumValues: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
189
|
+
defaultValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
export type DishwasherProgram = z.infer<typeof DishwasherProgramSchema>;
|
|
193
|
+
export declare const DishwasherOptionsSchema: z.ZodObject<{
|
|
194
|
+
availability: z.ZodEnum<{
|
|
195
|
+
available: "available";
|
|
196
|
+
"description-missing": "description-missing";
|
|
197
|
+
offline: "offline";
|
|
198
|
+
}>;
|
|
199
|
+
supportsStart: z.ZodBoolean;
|
|
200
|
+
supportsPause: z.ZodBoolean;
|
|
201
|
+
supportsResume: z.ZodBoolean;
|
|
202
|
+
supportsStop: z.ZodBoolean;
|
|
203
|
+
supportsPower: z.ZodBoolean;
|
|
204
|
+
programs: z.ZodArray<z.ZodObject<{
|
|
205
|
+
key: z.ZodString;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
available: z.ZodBoolean;
|
|
208
|
+
options: z.ZodArray<z.ZodObject<{
|
|
209
|
+
key: z.ZodString;
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
type: z.ZodEnum<{
|
|
212
|
+
boolean: "boolean";
|
|
213
|
+
enum: "enum";
|
|
214
|
+
number: "number";
|
|
215
|
+
string: "string";
|
|
216
|
+
}>;
|
|
217
|
+
access: z.ZodEnum<{
|
|
218
|
+
none: "none";
|
|
219
|
+
read: "read";
|
|
220
|
+
readStatic: "readStatic";
|
|
221
|
+
readWrite: "readWrite";
|
|
222
|
+
writeOnly: "writeOnly";
|
|
223
|
+
}>;
|
|
224
|
+
available: z.ZodBoolean;
|
|
225
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
226
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
227
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
228
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
229
|
+
enumValues: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
230
|
+
defaultValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
options: z.ZodArray<z.ZodObject<{
|
|
234
|
+
key: z.ZodString;
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
type: z.ZodEnum<{
|
|
237
|
+
boolean: "boolean";
|
|
238
|
+
enum: "enum";
|
|
239
|
+
number: "number";
|
|
240
|
+
string: "string";
|
|
241
|
+
}>;
|
|
242
|
+
access: z.ZodEnum<{
|
|
243
|
+
none: "none";
|
|
244
|
+
read: "read";
|
|
245
|
+
readStatic: "readStatic";
|
|
246
|
+
readWrite: "readWrite";
|
|
247
|
+
writeOnly: "writeOnly";
|
|
248
|
+
}>;
|
|
249
|
+
available: z.ZodBoolean;
|
|
250
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
251
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
252
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
253
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
254
|
+
enumValues: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
255
|
+
defaultValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
}, z.core.$strip>;
|
|
258
|
+
export type DishwasherOptions = z.infer<typeof DishwasherOptionsSchema>;
|
|
62
259
|
export declare const dishwasherCapability: {
|
|
63
260
|
readonly name: 'dishwasher';
|
|
64
261
|
readonly scope: 'device';
|
|
@@ -66,15 +263,25 @@ export declare const dishwasherCapability: {
|
|
|
66
263
|
readonly mode: 'singleton';
|
|
67
264
|
readonly deviceTypes: readonly [DeviceType.Dishwasher];
|
|
68
265
|
readonly methods: {
|
|
266
|
+
/**
|
|
267
|
+
* Start a program. Without `program` the selected one starts. `options` are
|
|
268
|
+
* option feature keys; each is checked against the program's constraints.
|
|
269
|
+
*/
|
|
69
270
|
readonly start: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
70
271
|
deviceId: z.ZodNumber;
|
|
272
|
+
program: z.ZodOptional<z.ZodString>;
|
|
273
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>>;
|
|
71
274
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
72
275
|
readonly pause: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
73
276
|
deviceId: z.ZodNumber;
|
|
74
277
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
278
|
+
readonly resume: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
279
|
+
deviceId: z.ZodNumber;
|
|
280
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
75
281
|
readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
76
282
|
deviceId: z.ZodNumber;
|
|
77
283
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
284
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
78
285
|
readonly setProgram: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
79
286
|
deviceId: z.ZodNumber;
|
|
80
287
|
program: z.ZodString;
|
|
@@ -91,14 +298,108 @@ export declare const dishwasherCapability: {
|
|
|
91
298
|
deviceId: z.ZodNumber;
|
|
92
299
|
on: z.ZodBoolean;
|
|
93
300
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
301
|
+
readonly setExtraDry: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
302
|
+
deviceId: z.ZodNumber;
|
|
303
|
+
on: z.ZodBoolean;
|
|
304
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
305
|
+
readonly setIntensiveZone: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
306
|
+
deviceId: z.ZodNumber;
|
|
307
|
+
on: z.ZodBoolean;
|
|
308
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
309
|
+
readonly setVarioSpeedPlus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
310
|
+
deviceId: z.ZodNumber;
|
|
311
|
+
on: z.ZodBoolean;
|
|
312
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
313
|
+
readonly setChildLock: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
314
|
+
deviceId: z.ZodNumber;
|
|
315
|
+
on: z.ZodBoolean;
|
|
316
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
317
|
+
/**
|
|
318
|
+
* Write any option or setting by feature key. Refused when the description does
|
|
319
|
+
* not list it, it is not writable or not available now, or the value is outside
|
|
320
|
+
* its declared range / members.
|
|
321
|
+
*/
|
|
94
322
|
readonly setOption: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
95
323
|
deviceId: z.ZodNumber;
|
|
96
324
|
key: z.ZodString;
|
|
97
325
|
value: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>;
|
|
98
326
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
327
|
+
/** What this appliance can do, from its own description — the UI is derived from it. */
|
|
328
|
+
readonly getOptions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
329
|
+
deviceId: z.ZodNumber;
|
|
330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
331
|
+
availability: z.ZodEnum<{
|
|
332
|
+
available: "available";
|
|
333
|
+
"description-missing": "description-missing";
|
|
334
|
+
offline: "offline";
|
|
335
|
+
}>;
|
|
336
|
+
supportsStart: z.ZodBoolean;
|
|
337
|
+
supportsPause: z.ZodBoolean;
|
|
338
|
+
supportsResume: z.ZodBoolean;
|
|
339
|
+
supportsStop: z.ZodBoolean;
|
|
340
|
+
supportsPower: z.ZodBoolean;
|
|
341
|
+
programs: z.ZodArray<z.ZodObject<{
|
|
342
|
+
key: z.ZodString;
|
|
343
|
+
name: z.ZodString;
|
|
344
|
+
available: z.ZodBoolean;
|
|
345
|
+
options: z.ZodArray<z.ZodObject<{
|
|
346
|
+
key: z.ZodString;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
type: z.ZodEnum<{
|
|
349
|
+
boolean: "boolean";
|
|
350
|
+
enum: "enum";
|
|
351
|
+
number: "number";
|
|
352
|
+
string: "string";
|
|
353
|
+
}>;
|
|
354
|
+
access: z.ZodEnum<{
|
|
355
|
+
none: "none";
|
|
356
|
+
read: "read";
|
|
357
|
+
readStatic: "readStatic";
|
|
358
|
+
readWrite: "readWrite";
|
|
359
|
+
writeOnly: "writeOnly";
|
|
360
|
+
}>;
|
|
361
|
+
available: z.ZodBoolean;
|
|
362
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
363
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
364
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
365
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
366
|
+
enumValues: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
367
|
+
defaultValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
368
|
+
}, z.core.$strip>>;
|
|
369
|
+
}, z.core.$strip>>;
|
|
370
|
+
options: z.ZodArray<z.ZodObject<{
|
|
371
|
+
key: z.ZodString;
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
type: z.ZodEnum<{
|
|
374
|
+
boolean: "boolean";
|
|
375
|
+
enum: "enum";
|
|
376
|
+
number: "number";
|
|
377
|
+
string: "string";
|
|
378
|
+
}>;
|
|
379
|
+
access: z.ZodEnum<{
|
|
380
|
+
none: "none";
|
|
381
|
+
read: "read";
|
|
382
|
+
readStatic: "readStatic";
|
|
383
|
+
readWrite: "readWrite";
|
|
384
|
+
writeOnly: "writeOnly";
|
|
385
|
+
}>;
|
|
386
|
+
available: z.ZodBoolean;
|
|
387
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
388
|
+
min: z.ZodNullable<z.ZodNumber>;
|
|
389
|
+
max: z.ZodNullable<z.ZodNumber>;
|
|
390
|
+
step: z.ZodNullable<z.ZodNumber>;
|
|
391
|
+
enumValues: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
392
|
+
defaultValue: z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
99
395
|
};
|
|
100
396
|
readonly status: {
|
|
101
397
|
readonly schema: z.ZodObject<{
|
|
398
|
+
availability: z.ZodEnum<{
|
|
399
|
+
available: "available";
|
|
400
|
+
"description-missing": "description-missing";
|
|
401
|
+
offline: "offline";
|
|
402
|
+
}>;
|
|
102
403
|
state: z.ZodEnum<{
|
|
103
404
|
error: "error";
|
|
104
405
|
finished: "finished";
|
|
@@ -107,13 +408,30 @@ export declare const dishwasherCapability: {
|
|
|
107
408
|
running: "running";
|
|
108
409
|
unavailable: "unavailable";
|
|
109
410
|
}>;
|
|
411
|
+
operationState: z.ZodNullable<z.ZodEnum<{
|
|
412
|
+
Aborting: "Aborting";
|
|
413
|
+
ActionRequired: "ActionRequired";
|
|
414
|
+
DelayedStart: "DelayedStart";
|
|
415
|
+
Error: "Error";
|
|
416
|
+
Finished: "Finished";
|
|
417
|
+
Inactive: "Inactive";
|
|
418
|
+
Pause: "Pause";
|
|
419
|
+
Ready: "Ready";
|
|
420
|
+
Run: "Run";
|
|
421
|
+
}>>;
|
|
110
422
|
program: z.ZodNullable<z.ZodString>;
|
|
423
|
+
selectedProgram: z.ZodNullable<z.ZodString>;
|
|
111
424
|
availablePrograms: z.ZodArray<z.ZodString>;
|
|
112
|
-
|
|
425
|
+
remainingSeconds: z.ZodNullable<z.ZodNumber>;
|
|
426
|
+
delayedStartSeconds: z.ZodNullable<z.ZodNumber>;
|
|
113
427
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
114
|
-
doorOpen: z.ZodBoolean
|
|
115
|
-
|
|
116
|
-
|
|
428
|
+
doorOpen: z.ZodNullable<z.ZodBoolean>;
|
|
429
|
+
doorLocked: z.ZodNullable<z.ZodBoolean>;
|
|
430
|
+
remoteStartAllowed: z.ZodNullable<z.ZodBoolean>;
|
|
431
|
+
remoteControlActive: z.ZodNullable<z.ZodBoolean>;
|
|
432
|
+
localControlActive: z.ZodNullable<z.ZodBoolean>;
|
|
433
|
+
powerOn: z.ZodNullable<z.ZodBoolean>;
|
|
434
|
+
powerState: z.ZodNullable<z.ZodString>;
|
|
117
435
|
saltLevel: z.ZodNullable<z.ZodEnum<{
|
|
118
436
|
empty: "empty";
|
|
119
437
|
low: "low";
|
|
@@ -124,8 +442,13 @@ export declare const dishwasherCapability: {
|
|
|
124
442
|
low: "low";
|
|
125
443
|
ok: "ok";
|
|
126
444
|
}>>;
|
|
127
|
-
halfLoad: z.ZodBoolean
|
|
128
|
-
hygienePlus: z.ZodBoolean
|
|
445
|
+
halfLoad: z.ZodNullable<z.ZodBoolean>;
|
|
446
|
+
hygienePlus: z.ZodNullable<z.ZodBoolean>;
|
|
447
|
+
extraDry: z.ZodNullable<z.ZodBoolean>;
|
|
448
|
+
intensiveZone: z.ZodNullable<z.ZodBoolean>;
|
|
449
|
+
varioSpeedPlus: z.ZodNullable<z.ZodBoolean>;
|
|
450
|
+
childLock: z.ZodNullable<z.ZodBoolean>;
|
|
451
|
+
activeEvents: z.ZodArray<z.ZodString>;
|
|
129
452
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
130
453
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
131
454
|
lastFetchedAt: z.ZodNumber;
|
|
@@ -133,6 +456,11 @@ export declare const dishwasherCapability: {
|
|
|
133
456
|
readonly kind: 'poll';
|
|
134
457
|
};
|
|
135
458
|
readonly runtimeState: z.ZodObject<{
|
|
459
|
+
availability: z.ZodEnum<{
|
|
460
|
+
available: "available";
|
|
461
|
+
"description-missing": "description-missing";
|
|
462
|
+
offline: "offline";
|
|
463
|
+
}>;
|
|
136
464
|
state: z.ZodEnum<{
|
|
137
465
|
error: "error";
|
|
138
466
|
finished: "finished";
|
|
@@ -141,13 +469,30 @@ export declare const dishwasherCapability: {
|
|
|
141
469
|
running: "running";
|
|
142
470
|
unavailable: "unavailable";
|
|
143
471
|
}>;
|
|
472
|
+
operationState: z.ZodNullable<z.ZodEnum<{
|
|
473
|
+
Aborting: "Aborting";
|
|
474
|
+
ActionRequired: "ActionRequired";
|
|
475
|
+
DelayedStart: "DelayedStart";
|
|
476
|
+
Error: "Error";
|
|
477
|
+
Finished: "Finished";
|
|
478
|
+
Inactive: "Inactive";
|
|
479
|
+
Pause: "Pause";
|
|
480
|
+
Ready: "Ready";
|
|
481
|
+
Run: "Run";
|
|
482
|
+
}>>;
|
|
144
483
|
program: z.ZodNullable<z.ZodString>;
|
|
484
|
+
selectedProgram: z.ZodNullable<z.ZodString>;
|
|
145
485
|
availablePrograms: z.ZodArray<z.ZodString>;
|
|
146
|
-
|
|
486
|
+
remainingSeconds: z.ZodNullable<z.ZodNumber>;
|
|
487
|
+
delayedStartSeconds: z.ZodNullable<z.ZodNumber>;
|
|
147
488
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
148
|
-
doorOpen: z.ZodBoolean
|
|
149
|
-
|
|
150
|
-
|
|
489
|
+
doorOpen: z.ZodNullable<z.ZodBoolean>;
|
|
490
|
+
doorLocked: z.ZodNullable<z.ZodBoolean>;
|
|
491
|
+
remoteStartAllowed: z.ZodNullable<z.ZodBoolean>;
|
|
492
|
+
remoteControlActive: z.ZodNullable<z.ZodBoolean>;
|
|
493
|
+
localControlActive: z.ZodNullable<z.ZodBoolean>;
|
|
494
|
+
powerOn: z.ZodNullable<z.ZodBoolean>;
|
|
495
|
+
powerState: z.ZodNullable<z.ZodString>;
|
|
151
496
|
saltLevel: z.ZodNullable<z.ZodEnum<{
|
|
152
497
|
empty: "empty";
|
|
153
498
|
low: "low";
|
|
@@ -158,8 +503,13 @@ export declare const dishwasherCapability: {
|
|
|
158
503
|
low: "low";
|
|
159
504
|
ok: "ok";
|
|
160
505
|
}>>;
|
|
161
|
-
halfLoad: z.ZodBoolean
|
|
162
|
-
hygienePlus: z.ZodBoolean
|
|
506
|
+
halfLoad: z.ZodNullable<z.ZodBoolean>;
|
|
507
|
+
hygienePlus: z.ZodNullable<z.ZodBoolean>;
|
|
508
|
+
extraDry: z.ZodNullable<z.ZodBoolean>;
|
|
509
|
+
intensiveZone: z.ZodNullable<z.ZodBoolean>;
|
|
510
|
+
varioSpeedPlus: z.ZodNullable<z.ZodBoolean>;
|
|
511
|
+
childLock: z.ZodNullable<z.ZodBoolean>;
|
|
512
|
+
activeEvents: z.ZodArray<z.ZodString>;
|
|
163
513
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
164
514
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
165
515
|
lastFetchedAt: z.ZodNumber;
|
|
@@ -174,7 +174,7 @@ export { type DayNightMode, DayNightModeSchema, type DayNightOptions, DayNightOp
|
|
|
174
174
|
export { type DeviceDiscoveryStatus, DeviceDiscoveryStatusSchema, type DiscoveredChildDevice, DiscoveredChildDeviceSchema, type DiscoveredChildStatus, DiscoveredChildStatusSchema, deviceDiscoveryCapability, type IDeviceDiscoveryNativeProvider, type IDeviceDiscoveryProvider, } from './device-discovery.cap.js';
|
|
175
175
|
export { deviceOpsCapability, type IDeviceOpsProvider, type RawStateResult, RawStateResultSchema, } from './device-ops.cap.js';
|
|
176
176
|
export { type DeviceStatus, DeviceStatusSchema, deviceStatusCapability, type IDeviceStatusProvider, } from './device-status.cap.js';
|
|
177
|
-
export { type DishwasherConsumableLevel, DishwasherConsumableLevelSchema, type DishwasherState, DishwasherStateSchema, type DishwasherStatus, DishwasherStatusSchema, dishwasherCapability, type IDishwasherProvider, } from './dishwasher.cap.js';
|
|
177
|
+
export { type DishwasherAccess, DishwasherAccessSchema, type DishwasherAvailability, DishwasherAvailabilitySchema, type DishwasherConsumableLevel, DishwasherConsumableLevelSchema, type DishwasherOperationState, DishwasherOperationStateSchema, type DishwasherOptionDescriptor, DishwasherOptionDescriptorSchema, type DishwasherOptions, DishwasherOptionsSchema, type DishwasherProgram, DishwasherProgramSchema, type DishwasherState, DishwasherStateSchema, type DishwasherStatus, DishwasherStatusSchema, type DishwasherValue, DishwasherValueSchema, dishwasherCapability, type IDishwasherProvider, } from './dishwasher.cap.js';
|
|
178
178
|
export { type DoorbellPressEvent, DoorbellPressEventSchema, type DoorbellStatus, DoorbellStatusSchema, doorbellCapability, type IDoorbellProvider, } from './doorbell.cap.js';
|
|
179
179
|
export { type EnumSensorDateTimeFormat, EnumSensorDateTimeFormatSchema, type EnumSensorStatus, EnumSensorStatusSchema, enumSensorCapability, type IEnumSensorProvider, } from './enum-sensor.cap.js';
|
|
180
180
|
export { type EventEmitterStatus, EventEmitterStatusSchema, type EventFire, EventFireSchema, eventEmitterCapability, type IEventEmitterProvider, } from './event-emitter.cap.js';
|