@camstack/types 1.2.384 → 1.2.386
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 +51 -3
- package/dist/addon.mjs +51 -3
- package/dist/auth/credential-scope.d.ts +230 -0
- package/dist/capabilities/alerts.cap.d.ts +20 -0
- package/dist/capabilities/dishwasher.cap.d.ts +352 -30
- 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 +175 -106
- package/dist/client.mjs +175 -106
- 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 +21 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- 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 +3 -0
- package/dist/index.js +839 -243
- package/dist/index.mjs +805 -244
- 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-REHQvLV6.js → sleep-BE7_6UnC.js} +3 -1
- package/dist/{sleep-BegKjwUu.mjs → sleep-BxjU_fJM.mjs} +3 -1
- 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,17 +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
|
|
57
|
-
extraDry: z.ZodBoolean
|
|
58
|
-
intensiveZone: z.ZodBoolean
|
|
59
|
-
varioSpeedPlus: z.ZodBoolean
|
|
60
|
-
childLock: 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>;
|
|
61
118
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
62
119
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
63
120
|
lastFetchedAt: z.ZodNumber;
|
|
64
121
|
}, z.core.$strip>;
|
|
65
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>;
|
|
66
259
|
export declare const dishwasherCapability: {
|
|
67
260
|
readonly name: 'dishwasher';
|
|
68
261
|
readonly scope: 'device';
|
|
@@ -70,15 +263,25 @@ export declare const dishwasherCapability: {
|
|
|
70
263
|
readonly mode: 'singleton';
|
|
71
264
|
readonly deviceTypes: readonly [DeviceType.Dishwasher];
|
|
72
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
|
+
*/
|
|
73
270
|
readonly start: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
74
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]>>>;
|
|
75
274
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
76
275
|
readonly pause: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
77
276
|
deviceId: z.ZodNumber;
|
|
78
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">;
|
|
79
281
|
readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
80
282
|
deviceId: z.ZodNumber;
|
|
81
283
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
284
|
+
/** Select (not start) a program; refused when the appliance does not offer it. */
|
|
82
285
|
readonly setProgram: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
83
286
|
deviceId: z.ZodNumber;
|
|
84
287
|
program: z.ZodString;
|
|
@@ -111,14 +314,92 @@ export declare const dishwasherCapability: {
|
|
|
111
314
|
deviceId: z.ZodNumber;
|
|
112
315
|
on: z.ZodBoolean;
|
|
113
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
|
+
*/
|
|
114
322
|
readonly setOption: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
115
323
|
deviceId: z.ZodNumber;
|
|
116
324
|
key: z.ZodString;
|
|
117
325
|
value: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>;
|
|
118
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>;
|
|
119
395
|
};
|
|
120
396
|
readonly status: {
|
|
121
397
|
readonly schema: z.ZodObject<{
|
|
398
|
+
availability: z.ZodEnum<{
|
|
399
|
+
available: "available";
|
|
400
|
+
"description-missing": "description-missing";
|
|
401
|
+
offline: "offline";
|
|
402
|
+
}>;
|
|
122
403
|
state: z.ZodEnum<{
|
|
123
404
|
error: "error";
|
|
124
405
|
finished: "finished";
|
|
@@ -127,13 +408,30 @@ export declare const dishwasherCapability: {
|
|
|
127
408
|
running: "running";
|
|
128
409
|
unavailable: "unavailable";
|
|
129
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
|
+
}>>;
|
|
130
422
|
program: z.ZodNullable<z.ZodString>;
|
|
423
|
+
selectedProgram: z.ZodNullable<z.ZodString>;
|
|
131
424
|
availablePrograms: z.ZodArray<z.ZodString>;
|
|
132
|
-
|
|
425
|
+
remainingSeconds: z.ZodNullable<z.ZodNumber>;
|
|
426
|
+
delayedStartSeconds: z.ZodNullable<z.ZodNumber>;
|
|
133
427
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
134
|
-
doorOpen: z.ZodBoolean
|
|
135
|
-
|
|
136
|
-
|
|
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>;
|
|
137
435
|
saltLevel: z.ZodNullable<z.ZodEnum<{
|
|
138
436
|
empty: "empty";
|
|
139
437
|
low: "low";
|
|
@@ -144,12 +442,13 @@ export declare const dishwasherCapability: {
|
|
|
144
442
|
low: "low";
|
|
145
443
|
ok: "ok";
|
|
146
444
|
}>>;
|
|
147
|
-
halfLoad: z.ZodBoolean
|
|
148
|
-
hygienePlus: z.ZodBoolean
|
|
149
|
-
extraDry: z.ZodBoolean
|
|
150
|
-
intensiveZone: z.ZodBoolean
|
|
151
|
-
varioSpeedPlus: z.ZodBoolean
|
|
152
|
-
childLock: 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>;
|
|
153
452
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
154
453
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
155
454
|
lastFetchedAt: z.ZodNumber;
|
|
@@ -157,6 +456,11 @@ export declare const dishwasherCapability: {
|
|
|
157
456
|
readonly kind: 'poll';
|
|
158
457
|
};
|
|
159
458
|
readonly runtimeState: z.ZodObject<{
|
|
459
|
+
availability: z.ZodEnum<{
|
|
460
|
+
available: "available";
|
|
461
|
+
"description-missing": "description-missing";
|
|
462
|
+
offline: "offline";
|
|
463
|
+
}>;
|
|
160
464
|
state: z.ZodEnum<{
|
|
161
465
|
error: "error";
|
|
162
466
|
finished: "finished";
|
|
@@ -165,13 +469,30 @@ export declare const dishwasherCapability: {
|
|
|
165
469
|
running: "running";
|
|
166
470
|
unavailable: "unavailable";
|
|
167
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
|
+
}>>;
|
|
168
483
|
program: z.ZodNullable<z.ZodString>;
|
|
484
|
+
selectedProgram: z.ZodNullable<z.ZodString>;
|
|
169
485
|
availablePrograms: z.ZodArray<z.ZodString>;
|
|
170
|
-
|
|
486
|
+
remainingSeconds: z.ZodNullable<z.ZodNumber>;
|
|
487
|
+
delayedStartSeconds: z.ZodNullable<z.ZodNumber>;
|
|
171
488
|
progressPercent: z.ZodNullable<z.ZodNumber>;
|
|
172
|
-
doorOpen: z.ZodBoolean
|
|
173
|
-
|
|
174
|
-
|
|
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>;
|
|
175
496
|
saltLevel: z.ZodNullable<z.ZodEnum<{
|
|
176
497
|
empty: "empty";
|
|
177
498
|
low: "low";
|
|
@@ -182,12 +503,13 @@ export declare const dishwasherCapability: {
|
|
|
182
503
|
low: "low";
|
|
183
504
|
ok: "ok";
|
|
184
505
|
}>>;
|
|
185
|
-
halfLoad: z.ZodBoolean
|
|
186
|
-
hygienePlus: z.ZodBoolean
|
|
187
|
-
extraDry: z.ZodBoolean
|
|
188
|
-
intensiveZone: z.ZodBoolean
|
|
189
|
-
varioSpeedPlus: z.ZodBoolean
|
|
190
|
-
childLock: 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>;
|
|
191
513
|
errorCode: z.ZodNullable<z.ZodNumber>;
|
|
192
514
|
errorLabel: z.ZodNullable<z.ZodString>;
|
|
193
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';
|