@camstack/types 1.2.548 → 1.2.550
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/CHANGELOG.md +33 -0
- package/dist/addon/addon-instance.d.ts +24 -0
- package/dist/addon/build-addon-route-provider.d.ts +2 -0
- package/dist/addon.js +5 -5
- package/dist/addon.mjs +5 -5
- package/dist/automation/index.d.ts +4 -3
- package/dist/automation/recipe.d.ts +12105 -604
- package/dist/automation/scheduler.d.ts +7 -0
- package/dist/automation/step-runner.d.ts +70 -0
- package/dist/automation/trace.d.ts +252 -145
- package/dist/automation/wait-until.d.ts +32 -0
- package/dist/automation/when-site.d.ts +1 -1
- package/dist/capabilities/accessories.cap.d.ts +1 -1
- package/dist/capabilities/actions.cap.d.ts +1 -178
- package/dist/capabilities/addon-routes.cap.d.ts +3 -0
- package/dist/capabilities/battery.cap.d.ts +2 -2
- package/dist/capabilities/capability-definition.d.ts +47 -1
- package/dist/capabilities/climate-control.cap.d.ts +8 -1
- package/dist/capabilities/core-blocks.cap.d.ts +119 -8723
- package/dist/capabilities/customize-catalog.d.ts +3 -1
- package/dist/capabilities/customize-spec.d.ts +26 -2
- package/dist/capabilities/device-manager.cap.d.ts +6 -0
- package/dist/capabilities/event-emitter.cap.d.ts +99 -3
- package/dist/capabilities/event-vocabulary.d.ts +99 -0
- package/dist/capabilities/fan-control.cap.d.ts +248 -0
- package/dist/capabilities/fan-presets.cap.d.ts +172 -536
- package/dist/capabilities/group-active.cap.d.ts +1 -1
- package/dist/capabilities/group-commands.cap.d.ts +1 -1
- package/dist/capabilities/group-status.cap.d.ts +1 -1
- package/dist/capabilities/heating-valve.cap.d.ts +1 -1
- package/dist/capabilities/hero-layout.cap.d.ts +2 -0
- package/dist/capabilities/humidifier.cap.d.ts +5 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +5 -4
- package/dist/capabilities/media-player.cap.d.ts +7 -0
- package/dist/capabilities/oauth-integration.cap.d.ts +8 -0
- package/dist/capabilities/pet-fountain.cap.d.ts +5 -0
- package/dist/capabilities/power-meter.cap.d.ts +5 -5
- package/dist/capabilities/power-source.cap.d.ts +5 -0
- package/dist/capabilities/running-state.cap.d.ts +2 -2
- package/dist/capabilities/schedulers.cap.d.ts +1 -178
- package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
- package/dist/capabilities/switch.cap.d.ts +1 -1
- package/dist/capabilities/temperature-sensor.cap.d.ts +1 -1
- package/dist/capabilities/timed-run.cap.d.ts +19 -5
- package/dist/capabilities/user-management.cap.d.ts +4 -0
- package/dist/capabilities/water-heater.cap.d.ts +7 -0
- package/dist/client.js +7 -11
- package/dist/client.mjs +7 -11
- package/dist/{composed-stable-id-DrGLxjVF.js → composed-stable-id-CDNLq7Y8.js} +27 -10
- package/dist/{composed-stable-id-DFNyOFzz.mjs → composed-stable-id-CPp3votu.mjs} +27 -10
- package/dist/composition/composition-report.d.ts +6 -0
- package/dist/composition/evaluate-field.d.ts +7 -0
- package/dist/composition/field-kinds.d.ts +12 -1
- package/dist/composition/helpers/index.d.ts +1 -1
- package/dist/composition/helpers/source-pick.d.ts +0 -5
- package/dist/composition/power-source-link.d.ts +15 -0
- package/dist/composition/state-fields.d.ts +2 -0
- package/dist/composition/validate-composition.d.ts +15 -1
- package/dist/device/base-device-provider.d.ts +13 -0
- package/dist/device/device-control-resolution.d.ts +1 -33
- package/dist/device/device-kind.d.ts +36 -0
- package/dist/device/device-management.d.ts +3 -0
- package/dist/device/device-type.d.ts +27 -10
- package/dist/device/hero/hero-fragment.d.ts +2 -0
- package/dist/device/hero/hero-layout.d.ts +1 -3
- package/dist/device/hero/hero-look.d.ts +18 -12
- package/dist/device/hero/hero-scene.d.ts +9 -3
- package/dist/device/index.d.ts +2 -1
- package/dist/device/power-switch.d.ts +82 -0
- package/dist/device/schema-fields.d.ts +10 -1
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +257 -8
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/{implemented-methods-M5aguGon.mjs → implemented-methods-5YMDeE3f.mjs} +1 -1
- package/dist/{implemented-methods-8AU92riC.js → implemented-methods-Cj65uy2F.js} +1 -1
- package/dist/index.d.ts +11 -6
- package/dist/index.js +2386 -494
- package/dist/index.mjs +2312 -488
- package/dist/interfaces/addon-routes.d.ts +13 -0
- package/dist/interfaces/config-ui.d.ts +15 -24
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-D_NpiLFP.mjs → sleep-D0roI_CZ.mjs} +50 -1
- package/dist/{sleep-vzHEmsrO.js → sleep-dcR4vBFG.js} +50 -1
- package/package.json +1 -1
|
@@ -2,12 +2,15 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DeviceType } from '../device/device-type.js';
|
|
3
3
|
import { type InferProvider } from './capability-definition.js';
|
|
4
4
|
/**
|
|
5
|
-
* fan-presets — named settings the operator
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* fan-presets — named settings the operator keeps for a fan ("Night": speed
|
|
6
|
+
* 25 %, horizontal sweep off, angle 30°). A preset is a DESIRED fan-control
|
|
7
|
+
* state (D1034): the fields it names, nothing else. Applying it calls the
|
|
8
|
+
* fan's own `fan-control` methods — `setPreset`, `setPercentage`,
|
|
9
|
+
* `setDirection`, `setOscillationAxis` — and an axis the operator linked in
|
|
10
|
+
* Customize reaches its sibling device through that link, never through a
|
|
11
|
+
* step the preset stores. Every field is reported (applied / failed / not-run
|
|
12
|
+
* / refused), so a caller tells "applied" from "the speed was set but the
|
|
13
|
+
* angle was refused" without parsing text.
|
|
11
14
|
*
|
|
12
15
|
* It is a Customize `config` extension of a fan: the presets are the
|
|
13
16
|
* operator's, stored per device (D865), and the editor is derived from the
|
|
@@ -16,96 +19,73 @@ import { type InferProvider } from './capability-definition.js';
|
|
|
16
19
|
* (a scene, a switch, a button) offer it.
|
|
17
20
|
*/
|
|
18
21
|
export declare const FAN_PRESETS_MAX = 12;
|
|
19
|
-
|
|
22
|
+
/** One axis as a preset wants it; an absent field is left as it is. */
|
|
23
|
+
export declare const FanPresetAxisSchema: z.ZodObject<{
|
|
24
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type FanPresetAxis = z.infer<typeof FanPresetAxisSchema>;
|
|
30
|
+
/** The fan-control state a preset sets; an absent field is left as it is. */
|
|
31
|
+
export declare const FanPresetStateSchema: z.ZodObject<{
|
|
32
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
34
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
forward: "forward";
|
|
36
|
+
reverse: "reverse";
|
|
37
|
+
}>>;
|
|
38
|
+
oscillationAxes: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
horizontal: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
vertical: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type FanPresetState = z.infer<typeof FanPresetStateSchema>;
|
|
20
54
|
export declare const FanPresetSchema: z.ZodObject<{
|
|
21
55
|
id: z.ZodString;
|
|
22
56
|
name: z.ZodString;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, z.core.$strip
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
$var: z.ZodString;
|
|
46
|
-
}, z.core.$strip>]>>;
|
|
47
|
-
cap: z.ZodString;
|
|
48
|
-
method: z.ZodString;
|
|
49
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
50
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51
|
-
}, z.core.$strip>], "kind">>>;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"cap">;
|
|
54
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
55
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
|
-
kind: z.ZodLiteral<"devices">;
|
|
57
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
kind: z.ZodLiteral<"domain">;
|
|
60
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
61
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
kind: z.ZodLiteral<"var">;
|
|
64
|
-
name: z.ZodString;
|
|
65
|
-
}, z.core.$strip>], "kind">>;
|
|
66
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
67
|
-
$var: z.ZodString;
|
|
68
|
-
}, z.core.$strip>]>>;
|
|
69
|
-
cap: z.ZodString;
|
|
70
|
-
method: z.ZodString;
|
|
71
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
72
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
73
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
74
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
-
kind: z.ZodLiteral<"wait">;
|
|
76
|
-
seconds: z.ZodNumber;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
kind: z.ZodLiteral<"cap">;
|
|
79
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
80
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
-
kind: z.ZodLiteral<"devices">;
|
|
82
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
kind: z.ZodLiteral<"domain">;
|
|
85
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
86
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
kind: z.ZodLiteral<"var">;
|
|
89
|
-
name: z.ZodString;
|
|
90
|
-
}, z.core.$strip>], "kind">>;
|
|
91
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
92
|
-
$var: z.ZodString;
|
|
93
|
-
}, z.core.$strip>]>>;
|
|
94
|
-
cap: z.ZodString;
|
|
95
|
-
method: z.ZodString;
|
|
96
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
97
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
98
|
-
}, z.core.$strip>], "kind">>>;
|
|
99
|
-
}, z.core.$strip>], "kind">>;
|
|
57
|
+
state: z.ZodObject<{
|
|
58
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
60
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
forward: "forward";
|
|
62
|
+
reverse: "reverse";
|
|
63
|
+
}>>;
|
|
64
|
+
oscillationAxes: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
horizontal: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
vertical: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
100
79
|
}, z.core.$strip>;
|
|
101
80
|
export type FanPreset = z.infer<typeof FanPresetSchema>;
|
|
102
|
-
export declare const FAN_PRESETS_REFUSALS: readonly [
|
|
81
|
+
export declare const FAN_PRESETS_REFUSALS: readonly [
|
|
82
|
+
/** A preset that sets nothing. */
|
|
83
|
+
'empty-state', 'duplicate-name', 'duplicate-id', 'too-many', 'not-a-fan'];
|
|
103
84
|
export declare const FanPresetsRefusalSchema: z.ZodEnum<{
|
|
104
|
-
"bad-target": "bad-target";
|
|
105
85
|
"duplicate-id": "duplicate-id";
|
|
106
86
|
"duplicate-name": "duplicate-name";
|
|
87
|
+
"empty-state": "empty-state";
|
|
107
88
|
"not-a-fan": "not-a-fan";
|
|
108
|
-
"not-sibling": "not-sibling";
|
|
109
89
|
"too-many": "too-many";
|
|
110
90
|
}>;
|
|
111
91
|
export type FanPresetsRefusal = z.infer<typeof FanPresetsRefusalSchema>;
|
|
@@ -115,56 +95,49 @@ export declare const FanPresetsSetResultSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
115
95
|
}, z.core.$strip>, z.ZodObject<{
|
|
116
96
|
status: z.ZodLiteral<"refused">;
|
|
117
97
|
reason: z.ZodEnum<{
|
|
118
|
-
"bad-target": "bad-target";
|
|
119
98
|
"duplicate-id": "duplicate-id";
|
|
120
99
|
"duplicate-name": "duplicate-name";
|
|
100
|
+
"empty-state": "empty-state";
|
|
121
101
|
"not-a-fan": "not-a-fan";
|
|
122
|
-
"not-sibling": "not-sibling";
|
|
123
102
|
"too-many": "too-many";
|
|
124
103
|
}>;
|
|
125
104
|
detail: z.ZodString;
|
|
126
105
|
}, z.core.$strip>], "status">;
|
|
127
106
|
export type FanPresetsSetResult = z.infer<typeof FanPresetsSetResultSchema>;
|
|
128
|
-
export declare const
|
|
129
|
-
|
|
107
|
+
export declare const FanPresetFieldResultSchema: z.ZodObject<{
|
|
108
|
+
field: z.ZodString;
|
|
130
109
|
outcome: z.ZodEnum<{
|
|
131
110
|
applied: "applied";
|
|
132
111
|
failed: "failed";
|
|
133
112
|
"not-run": "not-run";
|
|
134
113
|
refused: "refused";
|
|
135
114
|
}>;
|
|
136
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
cap: z.ZodOptional<z.ZodString>;
|
|
138
|
-
method: z.ZodOptional<z.ZodString>;
|
|
139
115
|
message: z.ZodOptional<z.ZodString>;
|
|
140
116
|
}, z.core.$strip>;
|
|
141
|
-
export type
|
|
117
|
+
export type FanPresetFieldResult = z.infer<typeof FanPresetFieldResultSchema>;
|
|
142
118
|
export declare const FanPresetApplyResultSchema: z.ZodObject<{
|
|
143
119
|
status: z.ZodEnum<{
|
|
144
120
|
applied: "applied";
|
|
145
121
|
partial: "partial";
|
|
146
122
|
refused: "refused";
|
|
147
123
|
}>;
|
|
148
|
-
|
|
149
|
-
|
|
124
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
125
|
+
field: z.ZodString;
|
|
150
126
|
outcome: z.ZodEnum<{
|
|
151
127
|
applied: "applied";
|
|
152
128
|
failed: "failed";
|
|
153
129
|
"not-run": "not-run";
|
|
154
130
|
refused: "refused";
|
|
155
131
|
}>;
|
|
156
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
157
|
-
cap: z.ZodOptional<z.ZodString>;
|
|
158
|
-
method: z.ZodOptional<z.ZodString>;
|
|
159
132
|
message: z.ZodOptional<z.ZodString>;
|
|
160
133
|
}, z.core.$strip>>;
|
|
161
134
|
}, z.core.$strip>;
|
|
162
135
|
export type FanPresetApplyResult = z.infer<typeof FanPresetApplyResultSchema>;
|
|
163
|
-
/** The fan
|
|
164
|
-
export declare const FAN_CAPTURE_FIELDS: readonly ['speed', '
|
|
136
|
+
/** The fan-control fields a capture may take. */
|
|
137
|
+
export declare const FAN_CAPTURE_FIELDS: readonly ['speed', 'direction', 'preset', 'oscillationAxes'];
|
|
165
138
|
export declare const FanCaptureFieldSchema: z.ZodEnum<{
|
|
166
139
|
direction: "direction";
|
|
167
|
-
|
|
140
|
+
oscillationAxes: "oscillationAxes";
|
|
168
141
|
preset: "preset";
|
|
169
142
|
speed: "speed";
|
|
170
143
|
}>;
|
|
@@ -174,109 +147,29 @@ export declare const FanCaptureOmissionSchema: z.ZodObject<{
|
|
|
174
147
|
reason: z.ZodString;
|
|
175
148
|
}, z.core.$strip>;
|
|
176
149
|
export type FanCaptureOmission = z.infer<typeof FanCaptureOmissionSchema>;
|
|
177
|
-
/** Where a proposed step belongs in the review list. */
|
|
178
|
-
export declare const FAN_CAPTURE_GROUPS: readonly ['fan', 'oscillation', 'angles'];
|
|
179
|
-
export declare const FanCaptureGroupSchema: z.ZodEnum<{
|
|
180
|
-
angles: "angles";
|
|
181
|
-
fan: "fan";
|
|
182
|
-
oscillation: "oscillation";
|
|
183
|
-
}>;
|
|
184
|
-
export type FanCaptureGroup = z.infer<typeof FanCaptureGroupSchema>;
|
|
185
|
-
export declare const FanCaptureItemSchema: z.ZodObject<{
|
|
186
|
-
group: z.ZodEnum<{
|
|
187
|
-
angles: "angles";
|
|
188
|
-
fan: "fan";
|
|
189
|
-
oscillation: "oscillation";
|
|
190
|
-
}>;
|
|
191
|
-
label: z.ZodString;
|
|
192
|
-
}, z.core.$strip>;
|
|
193
|
-
export type FanCaptureItem = z.infer<typeof FanCaptureItemSchema>;
|
|
194
150
|
export declare const FanPresetCaptureResultSchema: z.ZodObject<{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}, z.core.$strip
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
$var: z.ZodString;
|
|
218
|
-
}, z.core.$strip>]>>;
|
|
219
|
-
cap: z.ZodString;
|
|
220
|
-
method: z.ZodString;
|
|
221
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
222
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
223
|
-
}, z.core.$strip>], "kind">>>;
|
|
224
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
225
|
-
kind: z.ZodLiteral<"cap">;
|
|
226
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
227
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
228
|
-
kind: z.ZodLiteral<"devices">;
|
|
229
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
230
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
-
kind: z.ZodLiteral<"domain">;
|
|
232
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
233
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
234
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
-
kind: z.ZodLiteral<"var">;
|
|
236
|
-
name: z.ZodString;
|
|
237
|
-
}, z.core.$strip>], "kind">>;
|
|
238
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
239
|
-
$var: z.ZodString;
|
|
240
|
-
}, z.core.$strip>]>>;
|
|
241
|
-
cap: z.ZodString;
|
|
242
|
-
method: z.ZodString;
|
|
243
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
244
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
245
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
246
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
-
kind: z.ZodLiteral<"wait">;
|
|
248
|
-
seconds: z.ZodNumber;
|
|
249
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
-
kind: z.ZodLiteral<"cap">;
|
|
251
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
252
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
|
-
kind: z.ZodLiteral<"devices">;
|
|
254
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
255
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
-
kind: z.ZodLiteral<"domain">;
|
|
257
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
258
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
259
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
260
|
-
kind: z.ZodLiteral<"var">;
|
|
261
|
-
name: z.ZodString;
|
|
262
|
-
}, z.core.$strip>], "kind">>;
|
|
263
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
264
|
-
$var: z.ZodString;
|
|
265
|
-
}, z.core.$strip>]>>;
|
|
266
|
-
cap: z.ZodString;
|
|
267
|
-
method: z.ZodString;
|
|
268
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
269
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
270
|
-
}, z.core.$strip>], "kind">>>;
|
|
271
|
-
}, z.core.$strip>], "kind">>;
|
|
272
|
-
items: z.ZodArray<z.ZodObject<{
|
|
273
|
-
group: z.ZodEnum<{
|
|
274
|
-
angles: "angles";
|
|
275
|
-
fan: "fan";
|
|
276
|
-
oscillation: "oscillation";
|
|
277
|
-
}>;
|
|
278
|
-
label: z.ZodString;
|
|
279
|
-
}, z.core.$strip>>;
|
|
151
|
+
state: z.ZodObject<{
|
|
152
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
154
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
forward: "forward";
|
|
156
|
+
reverse: "reverse";
|
|
157
|
+
}>>;
|
|
158
|
+
oscillationAxes: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
horizontal: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
vertical: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
280
173
|
omitted: z.ZodArray<z.ZodObject<{
|
|
281
174
|
what: z.ZodString;
|
|
282
175
|
reason: z.ZodString;
|
|
@@ -293,166 +186,56 @@ export declare const fanPresetsCapability: {
|
|
|
293
186
|
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
294
187
|
id: z.ZodString;
|
|
295
188
|
name: z.ZodString;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
}, z.core.$strip
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
$var: z.ZodString;
|
|
319
|
-
}, z.core.$strip>]>>;
|
|
320
|
-
cap: z.ZodString;
|
|
321
|
-
method: z.ZodString;
|
|
322
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
323
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
324
|
-
}, z.core.$strip>], "kind">>>;
|
|
325
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
326
|
-
kind: z.ZodLiteral<"cap">;
|
|
327
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
328
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
329
|
-
kind: z.ZodLiteral<"devices">;
|
|
330
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
331
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
332
|
-
kind: z.ZodLiteral<"domain">;
|
|
333
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
334
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
335
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
336
|
-
kind: z.ZodLiteral<"var">;
|
|
337
|
-
name: z.ZodString;
|
|
338
|
-
}, z.core.$strip>], "kind">>;
|
|
339
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
340
|
-
$var: z.ZodString;
|
|
341
|
-
}, z.core.$strip>]>>;
|
|
342
|
-
cap: z.ZodString;
|
|
343
|
-
method: z.ZodString;
|
|
344
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
345
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
346
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
347
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
348
|
-
kind: z.ZodLiteral<"wait">;
|
|
349
|
-
seconds: z.ZodNumber;
|
|
350
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
351
|
-
kind: z.ZodLiteral<"cap">;
|
|
352
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
353
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
354
|
-
kind: z.ZodLiteral<"devices">;
|
|
355
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
356
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
357
|
-
kind: z.ZodLiteral<"domain">;
|
|
358
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
359
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
360
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
361
|
-
kind: z.ZodLiteral<"var">;
|
|
362
|
-
name: z.ZodString;
|
|
363
|
-
}, z.core.$strip>], "kind">>;
|
|
364
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
365
|
-
$var: z.ZodString;
|
|
366
|
-
}, z.core.$strip>]>>;
|
|
367
|
-
cap: z.ZodString;
|
|
368
|
-
method: z.ZodString;
|
|
369
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
370
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
371
|
-
}, z.core.$strip>], "kind">>>;
|
|
372
|
-
}, z.core.$strip>], "kind">>;
|
|
189
|
+
state: z.ZodObject<{
|
|
190
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
192
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
193
|
+
forward: "forward";
|
|
194
|
+
reverse: "reverse";
|
|
195
|
+
}>>;
|
|
196
|
+
oscillationAxes: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
horizontal: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
vertical: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
}, z.core.$strip>>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
}, z.core.$strip>;
|
|
373
211
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
374
212
|
readonly setPresets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
375
213
|
deviceId: z.ZodNumber;
|
|
376
214
|
presets: z.ZodArray<z.ZodObject<{
|
|
377
215
|
id: z.ZodString;
|
|
378
216
|
name: z.ZodString;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}, z.core.$strip
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
$var: z.ZodString;
|
|
402
|
-
}, z.core.$strip>]>>;
|
|
403
|
-
cap: z.ZodString;
|
|
404
|
-
method: z.ZodString;
|
|
405
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
406
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
407
|
-
}, z.core.$strip>], "kind">>>;
|
|
408
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
409
|
-
kind: z.ZodLiteral<"cap">;
|
|
410
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
411
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
412
|
-
kind: z.ZodLiteral<"devices">;
|
|
413
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
414
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
415
|
-
kind: z.ZodLiteral<"domain">;
|
|
416
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
417
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
418
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
419
|
-
kind: z.ZodLiteral<"var">;
|
|
420
|
-
name: z.ZodString;
|
|
421
|
-
}, z.core.$strip>], "kind">>;
|
|
422
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
423
|
-
$var: z.ZodString;
|
|
424
|
-
}, z.core.$strip>]>>;
|
|
425
|
-
cap: z.ZodString;
|
|
426
|
-
method: z.ZodString;
|
|
427
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
428
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
429
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
430
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
431
|
-
kind: z.ZodLiteral<"wait">;
|
|
432
|
-
seconds: z.ZodNumber;
|
|
433
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
-
kind: z.ZodLiteral<"cap">;
|
|
435
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
436
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
437
|
-
kind: z.ZodLiteral<"devices">;
|
|
438
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
439
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
440
|
-
kind: z.ZodLiteral<"domain">;
|
|
441
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
442
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
443
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
444
|
-
kind: z.ZodLiteral<"var">;
|
|
445
|
-
name: z.ZodString;
|
|
446
|
-
}, z.core.$strip>], "kind">>;
|
|
447
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
448
|
-
$var: z.ZodString;
|
|
449
|
-
}, z.core.$strip>]>>;
|
|
450
|
-
cap: z.ZodString;
|
|
451
|
-
method: z.ZodString;
|
|
452
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
453
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
454
|
-
}, z.core.$strip>], "kind">>>;
|
|
455
|
-
}, z.core.$strip>], "kind">>;
|
|
217
|
+
state: z.ZodObject<{
|
|
218
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
220
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
forward: "forward";
|
|
222
|
+
reverse: "reverse";
|
|
223
|
+
}>>;
|
|
224
|
+
oscillationAxes: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
horizontal: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
vertical: z.ZodOptional<z.ZodObject<{
|
|
232
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strip>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
}, z.core.$strip>;
|
|
456
239
|
}, z.core.$strip>>;
|
|
457
240
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
241
|
status: z.ZodLiteral<"saved">;
|
|
@@ -460,11 +243,10 @@ export declare const fanPresetsCapability: {
|
|
|
460
243
|
}, z.core.$strip>, z.ZodObject<{
|
|
461
244
|
status: z.ZodLiteral<"refused">;
|
|
462
245
|
reason: z.ZodEnum<{
|
|
463
|
-
"bad-target": "bad-target";
|
|
464
246
|
"duplicate-id": "duplicate-id";
|
|
465
247
|
"duplicate-name": "duplicate-name";
|
|
248
|
+
"empty-state": "empty-state";
|
|
466
249
|
"not-a-fan": "not-a-fan";
|
|
467
|
-
"not-sibling": "not-sibling";
|
|
468
250
|
"too-many": "too-many";
|
|
469
251
|
}>;
|
|
470
252
|
detail: z.ZodString;
|
|
@@ -478,200 +260,54 @@ export declare const fanPresetsCapability: {
|
|
|
478
260
|
partial: "partial";
|
|
479
261
|
refused: "refused";
|
|
480
262
|
}>;
|
|
481
|
-
|
|
482
|
-
|
|
263
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
264
|
+
field: z.ZodString;
|
|
483
265
|
outcome: z.ZodEnum<{
|
|
484
266
|
applied: "applied";
|
|
485
267
|
failed: "failed";
|
|
486
268
|
"not-run": "not-run";
|
|
487
269
|
refused: "refused";
|
|
488
270
|
}>;
|
|
489
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
490
|
-
cap: z.ZodOptional<z.ZodString>;
|
|
491
|
-
method: z.ZodOptional<z.ZodString>;
|
|
492
271
|
message: z.ZodOptional<z.ZodString>;
|
|
493
272
|
}, z.core.$strip>>;
|
|
494
273
|
}, z.core.$strip>, "mutation">;
|
|
495
274
|
/**
|
|
496
|
-
*
|
|
497
|
-
* `fields` (all when absent)
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
* oscillation, fixed angles, fan fields, speed last. A reading that is
|
|
501
|
-
* unknown is left out and named in `omitted`, never captured as 0. Nothing
|
|
502
|
-
* is saved.
|
|
275
|
+
* The fan's CURRENT fan-control state as a preset: the fields named in
|
|
276
|
+
* `fields` (all when absent), read from its merged slice — a field linked
|
|
277
|
+
* in Customize reads its link. A reading that is unknown is left out and
|
|
278
|
+
* named in `omitted`, never captured as 0. Nothing is saved.
|
|
503
279
|
*/
|
|
504
280
|
readonly capturePreset: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
505
281
|
deviceId: z.ZodNumber;
|
|
506
282
|
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
507
283
|
direction: "direction";
|
|
508
|
-
|
|
284
|
+
oscillationAxes: "oscillationAxes";
|
|
509
285
|
preset: "preset";
|
|
510
286
|
speed: "speed";
|
|
511
287
|
}>>>;
|
|
512
|
-
steps: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
513
|
-
kind: z.ZodLiteral<"wait">;
|
|
514
|
-
seconds: z.ZodNumber;
|
|
515
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
516
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
517
|
-
kind: z.ZodLiteral<"wait">;
|
|
518
|
-
seconds: z.ZodNumber;
|
|
519
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
-
kind: z.ZodLiteral<"cap">;
|
|
521
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
522
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
523
|
-
kind: z.ZodLiteral<"devices">;
|
|
524
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
525
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
526
|
-
kind: z.ZodLiteral<"domain">;
|
|
527
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
528
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
529
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
530
|
-
kind: z.ZodLiteral<"var">;
|
|
531
|
-
name: z.ZodString;
|
|
532
|
-
}, z.core.$strip>], "kind">>;
|
|
533
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
534
|
-
$var: z.ZodString;
|
|
535
|
-
}, z.core.$strip>]>>;
|
|
536
|
-
cap: z.ZodString;
|
|
537
|
-
method: z.ZodString;
|
|
538
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
539
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
540
|
-
}, z.core.$strip>], "kind">>>;
|
|
541
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
542
|
-
kind: z.ZodLiteral<"cap">;
|
|
543
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
544
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
545
|
-
kind: z.ZodLiteral<"devices">;
|
|
546
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
547
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
-
kind: z.ZodLiteral<"domain">;
|
|
549
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
550
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
551
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
552
|
-
kind: z.ZodLiteral<"var">;
|
|
553
|
-
name: z.ZodString;
|
|
554
|
-
}, z.core.$strip>], "kind">>;
|
|
555
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
556
|
-
$var: z.ZodString;
|
|
557
|
-
}, z.core.$strip>]>>;
|
|
558
|
-
cap: z.ZodString;
|
|
559
|
-
method: z.ZodString;
|
|
560
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
561
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
562
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
563
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
564
|
-
kind: z.ZodLiteral<"wait">;
|
|
565
|
-
seconds: z.ZodNumber;
|
|
566
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
567
|
-
kind: z.ZodLiteral<"cap">;
|
|
568
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
569
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
570
|
-
kind: z.ZodLiteral<"devices">;
|
|
571
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
572
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
573
|
-
kind: z.ZodLiteral<"domain">;
|
|
574
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
575
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
576
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
577
|
-
kind: z.ZodLiteral<"var">;
|
|
578
|
-
name: z.ZodString;
|
|
579
|
-
}, z.core.$strip>], "kind">>;
|
|
580
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
581
|
-
$var: z.ZodString;
|
|
582
|
-
}, z.core.$strip>]>>;
|
|
583
|
-
cap: z.ZodString;
|
|
584
|
-
method: z.ZodString;
|
|
585
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
586
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
587
|
-
}, z.core.$strip>], "kind">>>;
|
|
588
|
-
}, z.core.$strip>], "kind">>>;
|
|
589
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
}, z.core.$strip
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
$var: z.ZodString;
|
|
613
|
-
}, z.core.$strip>]>>;
|
|
614
|
-
cap: z.ZodString;
|
|
615
|
-
method: z.ZodString;
|
|
616
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
617
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
618
|
-
}, z.core.$strip>], "kind">>>;
|
|
619
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
-
kind: z.ZodLiteral<"cap">;
|
|
621
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
622
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
623
|
-
kind: z.ZodLiteral<"devices">;
|
|
624
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
625
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
626
|
-
kind: z.ZodLiteral<"domain">;
|
|
627
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
628
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
629
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
-
kind: z.ZodLiteral<"var">;
|
|
631
|
-
name: z.ZodString;
|
|
632
|
-
}, z.core.$strip>], "kind">>;
|
|
633
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
634
|
-
$var: z.ZodString;
|
|
635
|
-
}, z.core.$strip>]>>;
|
|
636
|
-
cap: z.ZodString;
|
|
637
|
-
method: z.ZodString;
|
|
638
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
639
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
640
|
-
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
641
|
-
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
642
|
-
kind: z.ZodLiteral<"wait">;
|
|
643
|
-
seconds: z.ZodNumber;
|
|
644
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
645
|
-
kind: z.ZodLiteral<"cap">;
|
|
646
|
-
actionId: z.ZodOptional<z.ZodString>;
|
|
647
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
648
|
-
kind: z.ZodLiteral<"devices">;
|
|
649
|
-
ids: z.ZodArray<z.ZodNumber>;
|
|
650
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
651
|
-
kind: z.ZodLiteral<"domain">;
|
|
652
|
-
deviceType: z.ZodOptional<z.ZodEnum<typeof DeviceType>>;
|
|
653
|
-
roomId: z.ZodOptional<z.ZodString>;
|
|
654
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
-
kind: z.ZodLiteral<"var">;
|
|
656
|
-
name: z.ZodString;
|
|
657
|
-
}, z.core.$strip>], "kind">>;
|
|
658
|
-
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
659
|
-
$var: z.ZodString;
|
|
660
|
-
}, z.core.$strip>]>>;
|
|
661
|
-
cap: z.ZodString;
|
|
662
|
-
method: z.ZodString;
|
|
663
|
-
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
664
|
-
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
665
|
-
}, z.core.$strip>], "kind">>>;
|
|
666
|
-
}, z.core.$strip>], "kind">>;
|
|
667
|
-
items: z.ZodArray<z.ZodObject<{
|
|
668
|
-
group: z.ZodEnum<{
|
|
669
|
-
angles: "angles";
|
|
670
|
-
fan: "fan";
|
|
671
|
-
oscillation: "oscillation";
|
|
672
|
-
}>;
|
|
673
|
-
label: z.ZodString;
|
|
674
|
-
}, z.core.$strip>>;
|
|
289
|
+
state: z.ZodObject<{
|
|
290
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
preset: z.ZodOptional<z.ZodString>;
|
|
292
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
293
|
+
forward: "forward";
|
|
294
|
+
reverse: "reverse";
|
|
295
|
+
}>>;
|
|
296
|
+
oscillationAxes: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
horizontal: z.ZodOptional<z.ZodObject<{
|
|
298
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
299
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
vertical: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
oscillating: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
sweepFrom: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
sweepTo: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
675
311
|
omitted: z.ZodArray<z.ZodObject<{
|
|
676
312
|
what: z.ZodString;
|
|
677
313
|
reason: z.ZodString;
|