@camstack/types 1.2.534 → 1.2.536
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 +18 -3
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/automation/action.d.ts +105 -0
- package/dist/automation/index.d.ts +1 -0
- package/dist/automation/recipe.d.ts +450 -6
- package/dist/automation/scheduler.d.ts +208 -0
- package/dist/automation/step-condition.d.ts +19 -0
- package/dist/automation/step-runner.d.ts +50 -5
- package/dist/automation/trace.d.ts +129 -0
- package/dist/capabilities/action-source.cap.d.ts +52 -0
- package/dist/capabilities/actions.cap.d.ts +406 -0
- package/dist/capabilities/core-blocks.cap.d.ts +3782 -120
- package/dist/capabilities/device-manager.cap.d.ts +96 -0
- package/dist/capabilities/fan-presets.cap.d.ts +312 -0
- package/dist/capabilities/heat-pump-control.cap.d.ts +83 -0
- package/dist/capabilities/heat-pump-status.cap.d.ts +517 -0
- package/dist/capabilities/hero-layout.cap.d.ts +58 -0
- package/dist/capabilities/index.d.ts +6 -2
- package/dist/capabilities/schedulers.cap.d.ts +458 -0
- package/dist/capabilities/timed-run.cap.d.ts +5 -0
- package/dist/client.js +26 -0
- package/dist/client.mjs +26 -0
- package/dist/{composition-BjHGoicU.js → composition-BxalDSTt.js} +1 -1
- package/dist/{composition-CXCX78IR.mjs → composition-C6TZGqUb.mjs} +1 -1
- package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +4 -0
- package/dist/device/device-type.d.ts +5 -1
- package/dist/device/hero/build-hero-model.d.ts +2 -0
- package/dist/device/hero/climate-view.d.ts +4 -0
- package/dist/device/hero/hero-contributions-heat-pump.d.ts +2 -0
- package/dist/device/hero/hero-fragment.d.ts +4 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-model.d.ts +82 -1
- package/dist/device/hero/hero-row.d.ts +38 -2
- package/dist/device/hero/hero-scene.d.ts +4 -1
- package/dist/device/hero/index.d.ts +1 -1
- package/dist/{device-type-BaYa0UGS.js → device-type-BfvqqzRp.js} +4 -0
- package/dist/{device-type-CbDhVwFP.mjs → device-type-DTTZKB2I.mjs} +4 -0
- package/dist/expression/device-template.d.ts +80 -19
- package/dist/generated/addon-api.d.ts +134 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +5 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +2 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2021 -293
- package/dist/index.mjs +1996 -294
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-DhZXJtPH.js → sleep-CCAQ_PEp.js} +201 -5
- package/dist/{sleep-CkinsFFb.mjs → sleep-DnVqHJc4.mjs} +201 -5
- package/package.json +1 -1
|
@@ -121,10 +121,64 @@ export declare function normalizeStepTargets<A extends AutomationAction>(steps:
|
|
|
121
121
|
/**
|
|
122
122
|
* The steps an internal Action may contain: cap and wait, and nothing that can
|
|
123
123
|
* call back into an Action — so an Action can never reach itself (no cycles).
|
|
124
|
+
* This is the LEAF shape: no condition of its own.
|
|
124
125
|
*/
|
|
126
|
+
export declare const LeafActionStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"wait">;
|
|
128
|
+
seconds: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
kind: z.ZodLiteral<"cap">;
|
|
131
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
+
kind: z.ZodLiteral<"devices">;
|
|
134
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
kind: z.ZodLiteral<"domain">;
|
|
137
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
138
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
kind: z.ZodLiteral<"var">;
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
}, z.core.$strip>], "kind">>;
|
|
143
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
144
|
+
$var: z.ZodString;
|
|
145
|
+
}, z.core.$strip>]>>;
|
|
146
|
+
cap: z.ZodString;
|
|
147
|
+
method: z.ZodString;
|
|
148
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
149
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
150
|
+
}, z.core.$strip>], "kind">;
|
|
151
|
+
/** How many steps one `else` list holds. */
|
|
152
|
+
export declare const STEP_ELSE_MAX = 10;
|
|
125
153
|
export declare const ActionStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
154
|
kind: z.ZodLiteral<"wait">;
|
|
127
155
|
seconds: z.ZodNumber;
|
|
156
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
157
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"wait">;
|
|
159
|
+
seconds: z.ZodNumber;
|
|
160
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"cap">;
|
|
162
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
163
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
164
|
+
kind: z.ZodLiteral<"devices">;
|
|
165
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
kind: z.ZodLiteral<"domain">;
|
|
168
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
169
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
kind: z.ZodLiteral<"var">;
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
}, z.core.$strip>], "kind">>;
|
|
174
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
175
|
+
$var: z.ZodString;
|
|
176
|
+
}, z.core.$strip>]>>;
|
|
177
|
+
cap: z.ZodString;
|
|
178
|
+
method: z.ZodString;
|
|
179
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
180
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
181
|
+
}, z.core.$strip>], "kind">>>;
|
|
128
182
|
}, z.core.$strip>, z.ZodObject<{
|
|
129
183
|
kind: z.ZodLiteral<"cap">;
|
|
130
184
|
actionId: z.ZodOptional<z.ZodString>;
|
|
@@ -146,11 +200,63 @@ export declare const ActionStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
146
200
|
method: z.ZodString;
|
|
147
201
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
148
202
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
203
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
204
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
205
|
+
kind: z.ZodLiteral<"wait">;
|
|
206
|
+
seconds: z.ZodNumber;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
kind: z.ZodLiteral<"cap">;
|
|
209
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
210
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
kind: z.ZodLiteral<"devices">;
|
|
212
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
kind: z.ZodLiteral<"domain">;
|
|
215
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
216
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
kind: z.ZodLiteral<"var">;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
}, z.core.$strip>], "kind">>;
|
|
221
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
222
|
+
$var: z.ZodString;
|
|
223
|
+
}, z.core.$strip>]>>;
|
|
224
|
+
cap: z.ZodString;
|
|
225
|
+
method: z.ZodString;
|
|
226
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
227
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
228
|
+
}, z.core.$strip>], "kind">>>;
|
|
149
229
|
}, z.core.$strip>], "kind">;
|
|
150
230
|
export type ActionStep = z.infer<typeof ActionStepSchema>;
|
|
151
231
|
export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
152
232
|
kind: z.ZodLiteral<"wait">;
|
|
153
233
|
seconds: z.ZodNumber;
|
|
234
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
235
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
236
|
+
kind: z.ZodLiteral<"wait">;
|
|
237
|
+
seconds: z.ZodNumber;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"cap">;
|
|
240
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
242
|
+
kind: z.ZodLiteral<"devices">;
|
|
243
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
+
kind: z.ZodLiteral<"domain">;
|
|
246
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
247
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
+
kind: z.ZodLiteral<"var">;
|
|
250
|
+
name: z.ZodString;
|
|
251
|
+
}, z.core.$strip>], "kind">>;
|
|
252
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
253
|
+
$var: z.ZodString;
|
|
254
|
+
}, z.core.$strip>]>>;
|
|
255
|
+
cap: z.ZodString;
|
|
256
|
+
method: z.ZodString;
|
|
257
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
258
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
259
|
+
}, z.core.$strip>], "kind">>>;
|
|
154
260
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
261
|
kind: z.ZodLiteral<"cap">;
|
|
156
262
|
actionId: z.ZodOptional<z.ZodString>;
|
|
@@ -172,6 +278,32 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
172
278
|
method: z.ZodString;
|
|
173
279
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
174
280
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
281
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
282
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
283
|
+
kind: z.ZodLiteral<"wait">;
|
|
284
|
+
seconds: z.ZodNumber;
|
|
285
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
286
|
+
kind: z.ZodLiteral<"cap">;
|
|
287
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
288
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
+
kind: z.ZodLiteral<"devices">;
|
|
290
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
291
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
kind: z.ZodLiteral<"domain">;
|
|
293
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
294
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
+
kind: z.ZodLiteral<"var">;
|
|
297
|
+
name: z.ZodString;
|
|
298
|
+
}, z.core.$strip>], "kind">>;
|
|
299
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
300
|
+
$var: z.ZodString;
|
|
301
|
+
}, z.core.$strip>]>>;
|
|
302
|
+
cap: z.ZodString;
|
|
303
|
+
method: z.ZodString;
|
|
304
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
305
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
306
|
+
}, z.core.$strip>], "kind">>>;
|
|
175
307
|
}, z.core.$strip>, z.ZodObject<{
|
|
176
308
|
kind: z.ZodLiteral<"action">;
|
|
177
309
|
actionId: z.ZodString;
|
|
@@ -217,6 +349,32 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
|
|
|
217
349
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
218
350
|
kind: z.ZodLiteral<"wait">;
|
|
219
351
|
seconds: z.ZodNumber;
|
|
352
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
353
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
354
|
+
kind: z.ZodLiteral<"wait">;
|
|
355
|
+
seconds: z.ZodNumber;
|
|
356
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
357
|
+
kind: z.ZodLiteral<"cap">;
|
|
358
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
359
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
360
|
+
kind: z.ZodLiteral<"devices">;
|
|
361
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
362
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
|
+
kind: z.ZodLiteral<"domain">;
|
|
364
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
365
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
kind: z.ZodLiteral<"var">;
|
|
368
|
+
name: z.ZodString;
|
|
369
|
+
}, z.core.$strip>], "kind">>;
|
|
370
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
371
|
+
$var: z.ZodString;
|
|
372
|
+
}, z.core.$strip>]>>;
|
|
373
|
+
cap: z.ZodString;
|
|
374
|
+
method: z.ZodString;
|
|
375
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
376
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
377
|
+
}, z.core.$strip>], "kind">>>;
|
|
220
378
|
}, z.core.$strip>, z.ZodObject<{
|
|
221
379
|
kind: z.ZodLiteral<"cap">;
|
|
222
380
|
actionId: z.ZodOptional<z.ZodString>;
|
|
@@ -238,6 +396,32 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
|
|
|
238
396
|
method: z.ZodString;
|
|
239
397
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
240
398
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
399
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
400
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
401
|
+
kind: z.ZodLiteral<"wait">;
|
|
402
|
+
seconds: z.ZodNumber;
|
|
403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
+
kind: z.ZodLiteral<"cap">;
|
|
405
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
406
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
407
|
+
kind: z.ZodLiteral<"devices">;
|
|
408
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
409
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
410
|
+
kind: z.ZodLiteral<"domain">;
|
|
411
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
412
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
413
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
414
|
+
kind: z.ZodLiteral<"var">;
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
}, z.core.$strip>], "kind">>;
|
|
417
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
418
|
+
$var: z.ZodString;
|
|
419
|
+
}, z.core.$strip>]>>;
|
|
420
|
+
cap: z.ZodString;
|
|
421
|
+
method: z.ZodString;
|
|
422
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
423
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
424
|
+
}, z.core.$strip>], "kind">>>;
|
|
241
425
|
}, z.core.$strip>, z.ZodObject<{
|
|
242
426
|
kind: z.ZodLiteral<"action">;
|
|
243
427
|
actionId: z.ZodString;
|
|
@@ -306,6 +490,32 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
|
|
|
306
490
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
307
491
|
kind: z.ZodLiteral<"wait">;
|
|
308
492
|
seconds: z.ZodNumber;
|
|
493
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
494
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
495
|
+
kind: z.ZodLiteral<"wait">;
|
|
496
|
+
seconds: z.ZodNumber;
|
|
497
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
498
|
+
kind: z.ZodLiteral<"cap">;
|
|
499
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
500
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
501
|
+
kind: z.ZodLiteral<"devices">;
|
|
502
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
503
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
504
|
+
kind: z.ZodLiteral<"domain">;
|
|
505
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
506
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
508
|
+
kind: z.ZodLiteral<"var">;
|
|
509
|
+
name: z.ZodString;
|
|
510
|
+
}, z.core.$strip>], "kind">>;
|
|
511
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
512
|
+
$var: z.ZodString;
|
|
513
|
+
}, z.core.$strip>]>>;
|
|
514
|
+
cap: z.ZodString;
|
|
515
|
+
method: z.ZodString;
|
|
516
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
517
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
518
|
+
}, z.core.$strip>], "kind">>>;
|
|
309
519
|
}, z.core.$strip>, z.ZodObject<{
|
|
310
520
|
kind: z.ZodLiteral<"cap">;
|
|
311
521
|
actionId: z.ZodOptional<z.ZodString>;
|
|
@@ -327,6 +537,32 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
|
|
|
327
537
|
method: z.ZodString;
|
|
328
538
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
329
539
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
540
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
541
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
542
|
+
kind: z.ZodLiteral<"wait">;
|
|
543
|
+
seconds: z.ZodNumber;
|
|
544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
545
|
+
kind: z.ZodLiteral<"cap">;
|
|
546
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
547
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
548
|
+
kind: z.ZodLiteral<"devices">;
|
|
549
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
550
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
551
|
+
kind: z.ZodLiteral<"domain">;
|
|
552
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
553
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
555
|
+
kind: z.ZodLiteral<"var">;
|
|
556
|
+
name: z.ZodString;
|
|
557
|
+
}, z.core.$strip>], "kind">>;
|
|
558
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
559
|
+
$var: z.ZodString;
|
|
560
|
+
}, z.core.$strip>]>>;
|
|
561
|
+
cap: z.ZodString;
|
|
562
|
+
method: z.ZodString;
|
|
563
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
564
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
565
|
+
}, z.core.$strip>], "kind">>>;
|
|
330
566
|
}, z.core.$strip>, z.ZodObject<{
|
|
331
567
|
kind: z.ZodLiteral<"action">;
|
|
332
568
|
actionId: z.ZodString;
|
|
@@ -364,6 +600,32 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
364
600
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
365
601
|
kind: z.ZodLiteral<"wait">;
|
|
366
602
|
seconds: z.ZodNumber;
|
|
603
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
604
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
605
|
+
kind: z.ZodLiteral<"wait">;
|
|
606
|
+
seconds: z.ZodNumber;
|
|
607
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
608
|
+
kind: z.ZodLiteral<"cap">;
|
|
609
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
610
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
611
|
+
kind: z.ZodLiteral<"devices">;
|
|
612
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
614
|
+
kind: z.ZodLiteral<"domain">;
|
|
615
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
616
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
617
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
618
|
+
kind: z.ZodLiteral<"var">;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
}, z.core.$strip>], "kind">>;
|
|
621
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
622
|
+
$var: z.ZodString;
|
|
623
|
+
}, z.core.$strip>]>>;
|
|
624
|
+
cap: z.ZodString;
|
|
625
|
+
method: z.ZodString;
|
|
626
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
627
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
628
|
+
}, z.core.$strip>], "kind">>>;
|
|
367
629
|
}, z.core.$strip>, z.ZodObject<{
|
|
368
630
|
kind: z.ZodLiteral<"cap">;
|
|
369
631
|
actionId: z.ZodOptional<z.ZodString>;
|
|
@@ -385,6 +647,32 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
385
647
|
method: z.ZodString;
|
|
386
648
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
387
649
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
650
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
651
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
652
|
+
kind: z.ZodLiteral<"wait">;
|
|
653
|
+
seconds: z.ZodNumber;
|
|
654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
+
kind: z.ZodLiteral<"cap">;
|
|
656
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
657
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
658
|
+
kind: z.ZodLiteral<"devices">;
|
|
659
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
661
|
+
kind: z.ZodLiteral<"domain">;
|
|
662
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
663
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
664
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
665
|
+
kind: z.ZodLiteral<"var">;
|
|
666
|
+
name: z.ZodString;
|
|
667
|
+
}, z.core.$strip>], "kind">>;
|
|
668
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
669
|
+
$var: z.ZodString;
|
|
670
|
+
}, z.core.$strip>]>>;
|
|
671
|
+
cap: z.ZodString;
|
|
672
|
+
method: z.ZodString;
|
|
673
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
674
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
675
|
+
}, z.core.$strip>], "kind">>>;
|
|
388
676
|
}, z.core.$strip>, z.ZodObject<{
|
|
389
677
|
kind: z.ZodLiteral<"action">;
|
|
390
678
|
actionId: z.ZodString;
|
|
@@ -450,6 +738,32 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
450
738
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
451
739
|
kind: z.ZodLiteral<"wait">;
|
|
452
740
|
seconds: z.ZodNumber;
|
|
741
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
742
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
743
|
+
kind: z.ZodLiteral<"wait">;
|
|
744
|
+
seconds: z.ZodNumber;
|
|
745
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
746
|
+
kind: z.ZodLiteral<"cap">;
|
|
747
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
748
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
749
|
+
kind: z.ZodLiteral<"devices">;
|
|
750
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
751
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
752
|
+
kind: z.ZodLiteral<"domain">;
|
|
753
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
754
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
755
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
756
|
+
kind: z.ZodLiteral<"var">;
|
|
757
|
+
name: z.ZodString;
|
|
758
|
+
}, z.core.$strip>], "kind">>;
|
|
759
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
760
|
+
$var: z.ZodString;
|
|
761
|
+
}, z.core.$strip>]>>;
|
|
762
|
+
cap: z.ZodString;
|
|
763
|
+
method: z.ZodString;
|
|
764
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
765
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
766
|
+
}, z.core.$strip>], "kind">>>;
|
|
453
767
|
}, z.core.$strip>, z.ZodObject<{
|
|
454
768
|
kind: z.ZodLiteral<"cap">;
|
|
455
769
|
actionId: z.ZodOptional<z.ZodString>;
|
|
@@ -471,6 +785,32 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
471
785
|
method: z.ZodString;
|
|
472
786
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
473
787
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
788
|
+
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
789
|
+
else: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
790
|
+
kind: z.ZodLiteral<"wait">;
|
|
791
|
+
seconds: z.ZodNumber;
|
|
792
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
793
|
+
kind: z.ZodLiteral<"cap">;
|
|
794
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
795
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
796
|
+
kind: z.ZodLiteral<"devices">;
|
|
797
|
+
ids: z.ZodArray<z.ZodNumber>;
|
|
798
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
799
|
+
kind: z.ZodLiteral<"domain">;
|
|
800
|
+
deviceType: z.ZodOptional<z.ZodEnum<typeof import("../index.js").DeviceType>>;
|
|
801
|
+
roomId: z.ZodOptional<z.ZodString>;
|
|
802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
803
|
+
kind: z.ZodLiteral<"var">;
|
|
804
|
+
name: z.ZodString;
|
|
805
|
+
}, z.core.$strip>], "kind">>;
|
|
806
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
807
|
+
$var: z.ZodString;
|
|
808
|
+
}, z.core.$strip>]>>;
|
|
809
|
+
cap: z.ZodString;
|
|
810
|
+
method: z.ZodString;
|
|
811
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
812
|
+
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
813
|
+
}, z.core.$strip>], "kind">>>;
|
|
474
814
|
}, z.core.$strip>, z.ZodObject<{
|
|
475
815
|
kind: z.ZodLiteral<"action">;
|
|
476
816
|
actionId: z.ZodString;
|
|
@@ -497,6 +837,35 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
497
837
|
}, z.core.$strip>, z.ZodTransform<{
|
|
498
838
|
when: AutomationWhen;
|
|
499
839
|
actions: ({
|
|
840
|
+
kind: "wait";
|
|
841
|
+
seconds: number;
|
|
842
|
+
if?: AutomationWhen | undefined;
|
|
843
|
+
else?: ({
|
|
844
|
+
kind: "cap";
|
|
845
|
+
actionId?: string | undefined;
|
|
846
|
+
target?: {
|
|
847
|
+
kind: "devices";
|
|
848
|
+
ids: number[];
|
|
849
|
+
} | {
|
|
850
|
+
kind: "domain";
|
|
851
|
+
deviceType?: import("../index.js").DeviceType | undefined;
|
|
852
|
+
roomId?: string | undefined;
|
|
853
|
+
} | {
|
|
854
|
+
kind: "var";
|
|
855
|
+
name: string;
|
|
856
|
+
} | undefined;
|
|
857
|
+
deviceId?: number | number[] | {
|
|
858
|
+
$var: string;
|
|
859
|
+
} | undefined;
|
|
860
|
+
cap: string;
|
|
861
|
+
method: string;
|
|
862
|
+
args?: Record<string, unknown> | undefined;
|
|
863
|
+
argUnits?: Record<string, string> | undefined;
|
|
864
|
+
} | {
|
|
865
|
+
kind: "wait";
|
|
866
|
+
seconds: number;
|
|
867
|
+
})[] | undefined;
|
|
868
|
+
} | {
|
|
500
869
|
kind: "cap";
|
|
501
870
|
actionId?: string | undefined;
|
|
502
871
|
target?: {
|
|
@@ -517,9 +886,32 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
517
886
|
method: string;
|
|
518
887
|
args?: Record<string, unknown> | undefined;
|
|
519
888
|
argUnits?: Record<string, string> | undefined;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
889
|
+
if?: AutomationWhen | undefined;
|
|
890
|
+
else?: ({
|
|
891
|
+
kind: "cap";
|
|
892
|
+
actionId?: string | undefined;
|
|
893
|
+
target?: {
|
|
894
|
+
kind: "devices";
|
|
895
|
+
ids: number[];
|
|
896
|
+
} | {
|
|
897
|
+
kind: "domain";
|
|
898
|
+
deviceType?: import("../index.js").DeviceType | undefined;
|
|
899
|
+
roomId?: string | undefined;
|
|
900
|
+
} | {
|
|
901
|
+
kind: "var";
|
|
902
|
+
name: string;
|
|
903
|
+
} | undefined;
|
|
904
|
+
deviceId?: number | number[] | {
|
|
905
|
+
$var: string;
|
|
906
|
+
} | undefined;
|
|
907
|
+
cap: string;
|
|
908
|
+
method: string;
|
|
909
|
+
args?: Record<string, unknown> | undefined;
|
|
910
|
+
argUnits?: Record<string, string> | undefined;
|
|
911
|
+
} | {
|
|
912
|
+
kind: "wait";
|
|
913
|
+
seconds: number;
|
|
914
|
+
})[] | undefined;
|
|
523
915
|
} | {
|
|
524
916
|
kind: "action";
|
|
525
917
|
actionId: string;
|
|
@@ -580,6 +972,35 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
580
972
|
})[];
|
|
581
973
|
conditions?: import("./legacy-recipe.js").LegacyCondition | undefined;
|
|
582
974
|
actions: ({
|
|
975
|
+
kind: "wait";
|
|
976
|
+
seconds: number;
|
|
977
|
+
if?: AutomationWhen | undefined;
|
|
978
|
+
else?: ({
|
|
979
|
+
kind: "cap";
|
|
980
|
+
actionId?: string | undefined;
|
|
981
|
+
target?: {
|
|
982
|
+
kind: "devices";
|
|
983
|
+
ids: number[];
|
|
984
|
+
} | {
|
|
985
|
+
kind: "domain";
|
|
986
|
+
deviceType?: import("../index.js").DeviceType | undefined;
|
|
987
|
+
roomId?: string | undefined;
|
|
988
|
+
} | {
|
|
989
|
+
kind: "var";
|
|
990
|
+
name: string;
|
|
991
|
+
} | undefined;
|
|
992
|
+
deviceId?: number | number[] | {
|
|
993
|
+
$var: string;
|
|
994
|
+
} | undefined;
|
|
995
|
+
cap: string;
|
|
996
|
+
method: string;
|
|
997
|
+
args?: Record<string, unknown> | undefined;
|
|
998
|
+
argUnits?: Record<string, string> | undefined;
|
|
999
|
+
} | {
|
|
1000
|
+
kind: "wait";
|
|
1001
|
+
seconds: number;
|
|
1002
|
+
})[] | undefined;
|
|
1003
|
+
} | {
|
|
583
1004
|
kind: "cap";
|
|
584
1005
|
actionId?: string | undefined;
|
|
585
1006
|
target?: {
|
|
@@ -600,9 +1021,32 @@ export declare const AutomationRecipeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
600
1021
|
method: string;
|
|
601
1022
|
args?: Record<string, unknown> | undefined;
|
|
602
1023
|
argUnits?: Record<string, string> | undefined;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
1024
|
+
if?: AutomationWhen | undefined;
|
|
1025
|
+
else?: ({
|
|
1026
|
+
kind: "cap";
|
|
1027
|
+
actionId?: string | undefined;
|
|
1028
|
+
target?: {
|
|
1029
|
+
kind: "devices";
|
|
1030
|
+
ids: number[];
|
|
1031
|
+
} | {
|
|
1032
|
+
kind: "domain";
|
|
1033
|
+
deviceType?: import("../index.js").DeviceType | undefined;
|
|
1034
|
+
roomId?: string | undefined;
|
|
1035
|
+
} | {
|
|
1036
|
+
kind: "var";
|
|
1037
|
+
name: string;
|
|
1038
|
+
} | undefined;
|
|
1039
|
+
deviceId?: number | number[] | {
|
|
1040
|
+
$var: string;
|
|
1041
|
+
} | undefined;
|
|
1042
|
+
cap: string;
|
|
1043
|
+
method: string;
|
|
1044
|
+
args?: Record<string, unknown> | undefined;
|
|
1045
|
+
argUnits?: Record<string, string> | undefined;
|
|
1046
|
+
} | {
|
|
1047
|
+
kind: "wait";
|
|
1048
|
+
seconds: number;
|
|
1049
|
+
})[] | undefined;
|
|
606
1050
|
} | {
|
|
607
1051
|
kind: "action";
|
|
608
1052
|
actionId: string;
|