@camstack/types 1.2.555 → 1.2.557
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 +21 -0
- package/dist/addon/fake-addon-context.d.ts +3 -0
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/audit/device-transition.d.ts +53 -0
- package/dist/automation/action.d.ts +24 -54
- package/dist/automation/draft/draft-json.d.ts +1 -1
- package/dist/automation/draft/index.d.ts +0 -1
- package/dist/automation/index.d.ts +3 -2
- package/dist/automation/normalize-units.d.ts +3 -3
- package/dist/automation/offered.d.ts +18 -0
- package/dist/automation/recipe.d.ts +1156 -2598
- package/dist/automation/scheduler.d.ts +48 -108
- package/dist/automation/step-runner.d.ts +7 -0
- package/dist/capabilities/action-source.cap.d.ts +12 -27
- package/dist/capabilities/actions.cap.d.ts +84 -189
- package/dist/capabilities/device-export.cap.d.ts +36 -1
- package/dist/capabilities/hero-layout.cap.d.ts +92 -0
- package/dist/capabilities/index.d.ts +3 -3
- package/dist/capabilities/notification-rules.cap.d.ts +237 -0
- package/dist/capabilities/osd-manager.cap.d.ts +96 -0
- package/dist/capabilities/remote.cap.d.ts +2 -2
- package/dist/capabilities/scene-monitor.cap.d.ts +1 -1
- package/dist/capabilities/schedulers.cap.d.ts +96 -216
- package/dist/client.d.ts +1 -1
- package/dist/client.js +96 -11
- package/dist/client.mjs +95 -12
- package/dist/device/cap-vocabulary/action-index.d.ts +32 -0
- package/dist/device/cap-vocabulary/index.d.ts +2 -2
- package/dist/device/device-do-actions.d.ts +3 -105
- package/dist/device/export-name.d.ts +65 -0
- package/dist/device/hero/hero-contribution-kit.d.ts +3 -0
- package/dist/device/hero/hero-fragment.d.ts +3 -0
- package/dist/device/hero/hero-measurement.d.ts +76 -0
- package/dist/device/hero/hero-model.d.ts +91 -0
- package/dist/device/hero/hero-row.d.ts +67 -1
- package/dist/device/hero/index.d.ts +1 -0
- package/dist/enums/event-category.d.ts +9 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-78tcBemo.mjs → event-category-Dv-Gcv1f.mjs} +9 -0
- package/dist/{event-category-BC4RRerT.js → event-category-Ps2LC8dN.js} +9 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +2412 -2143
- package/dist/index.mjs +2374 -2127
- package/dist/notification/alarm-steps.d.ts +18 -0
- package/dist/notification/system-event-families.d.ts +5 -0
- package/dist/notification/system-event-filters.d.ts +1 -1
- package/dist/remote/remote-config.d.ts +5 -5
- package/dist/{sleep-4qch9WKa.js → sleep-1RkA30Y1.js} +102 -1
- package/dist/{sleep-Ba1dJYDo.mjs → sleep-DyIxjZZt.mjs} +79 -2
- package/dist/testing.js +3 -3
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
|
@@ -170,9 +170,8 @@ export declare const SchedulerPointSchema: z.ZodObject<{
|
|
|
170
170
|
kind: z.ZodLiteral<"wait">;
|
|
171
171
|
seconds: z.ZodNumber;
|
|
172
172
|
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
-
kind: z.ZodLiteral<"
|
|
174
|
-
|
|
175
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
|
+
kind: z.ZodLiteral<"command">;
|
|
174
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
176
175
|
kind: z.ZodLiteral<"devices">;
|
|
177
176
|
ids: z.ZodArray<z.ZodNumber>;
|
|
178
177
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -182,19 +181,14 @@ export declare const SchedulerPointSchema: z.ZodObject<{
|
|
|
182
181
|
}, z.core.$strip>, z.ZodObject<{
|
|
183
182
|
kind: z.ZodLiteral<"var">;
|
|
184
183
|
name: z.ZodString;
|
|
185
|
-
}, z.core.$strip>], "kind"
|
|
186
|
-
|
|
187
|
-
$var: z.ZodString;
|
|
188
|
-
}, z.core.$strip>]>>;
|
|
189
|
-
cap: z.ZodString;
|
|
190
|
-
method: z.ZodString;
|
|
184
|
+
}, z.core.$strip>], "kind">;
|
|
185
|
+
actionId: z.ZodString;
|
|
191
186
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
192
187
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
193
188
|
}, z.core.$strip>], "kind">>>;
|
|
194
189
|
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
-
kind: z.ZodLiteral<"
|
|
196
|
-
|
|
197
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"command">;
|
|
191
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
192
|
kind: z.ZodLiteral<"devices">;
|
|
199
193
|
ids: z.ZodArray<z.ZodNumber>;
|
|
200
194
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -204,12 +198,8 @@ export declare const SchedulerPointSchema: z.ZodObject<{
|
|
|
204
198
|
}, z.core.$strip>, z.ZodObject<{
|
|
205
199
|
kind: z.ZodLiteral<"var">;
|
|
206
200
|
name: z.ZodString;
|
|
207
|
-
}, z.core.$strip>], "kind"
|
|
208
|
-
|
|
209
|
-
$var: z.ZodString;
|
|
210
|
-
}, z.core.$strip>]>>;
|
|
211
|
-
cap: z.ZodString;
|
|
212
|
-
method: z.ZodString;
|
|
201
|
+
}, z.core.$strip>], "kind">;
|
|
202
|
+
actionId: z.ZodString;
|
|
213
203
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
214
204
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
215
205
|
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
@@ -217,9 +207,8 @@ export declare const SchedulerPointSchema: z.ZodObject<{
|
|
|
217
207
|
kind: z.ZodLiteral<"wait">;
|
|
218
208
|
seconds: z.ZodNumber;
|
|
219
209
|
}, z.core.$strip>, z.ZodObject<{
|
|
220
|
-
kind: z.ZodLiteral<"
|
|
221
|
-
|
|
222
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
210
|
+
kind: z.ZodLiteral<"command">;
|
|
211
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
223
212
|
kind: z.ZodLiteral<"devices">;
|
|
224
213
|
ids: z.ZodArray<z.ZodNumber>;
|
|
225
214
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -229,12 +218,8 @@ export declare const SchedulerPointSchema: z.ZodObject<{
|
|
|
229
218
|
}, z.core.$strip>, z.ZodObject<{
|
|
230
219
|
kind: z.ZodLiteral<"var">;
|
|
231
220
|
name: z.ZodString;
|
|
232
|
-
}, z.core.$strip>], "kind"
|
|
233
|
-
|
|
234
|
-
$var: z.ZodString;
|
|
235
|
-
}, z.core.$strip>]>>;
|
|
236
|
-
cap: z.ZodString;
|
|
237
|
-
method: z.ZodString;
|
|
221
|
+
}, z.core.$strip>], "kind">;
|
|
222
|
+
actionId: z.ZodString;
|
|
238
223
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
239
224
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
240
225
|
}, z.core.$strip>], "kind">>>;
|
|
@@ -333,9 +318,8 @@ export declare const SchedulerProfileSchema: z.ZodObject<{
|
|
|
333
318
|
kind: z.ZodLiteral<"wait">;
|
|
334
319
|
seconds: z.ZodNumber;
|
|
335
320
|
}, z.core.$strip>, z.ZodObject<{
|
|
336
|
-
kind: z.ZodLiteral<"
|
|
337
|
-
|
|
338
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
321
|
+
kind: z.ZodLiteral<"command">;
|
|
322
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
339
323
|
kind: z.ZodLiteral<"devices">;
|
|
340
324
|
ids: z.ZodArray<z.ZodNumber>;
|
|
341
325
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -345,19 +329,14 @@ export declare const SchedulerProfileSchema: z.ZodObject<{
|
|
|
345
329
|
}, z.core.$strip>, z.ZodObject<{
|
|
346
330
|
kind: z.ZodLiteral<"var">;
|
|
347
331
|
name: z.ZodString;
|
|
348
|
-
}, z.core.$strip>], "kind"
|
|
349
|
-
|
|
350
|
-
$var: z.ZodString;
|
|
351
|
-
}, z.core.$strip>]>>;
|
|
352
|
-
cap: z.ZodString;
|
|
353
|
-
method: z.ZodString;
|
|
332
|
+
}, z.core.$strip>], "kind">;
|
|
333
|
+
actionId: z.ZodString;
|
|
354
334
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
355
335
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
356
336
|
}, z.core.$strip>], "kind">>>;
|
|
357
337
|
}, z.core.$strip>, z.ZodObject<{
|
|
358
|
-
kind: z.ZodLiteral<"
|
|
359
|
-
|
|
360
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
338
|
+
kind: z.ZodLiteral<"command">;
|
|
339
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
361
340
|
kind: z.ZodLiteral<"devices">;
|
|
362
341
|
ids: z.ZodArray<z.ZodNumber>;
|
|
363
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -367,12 +346,8 @@ export declare const SchedulerProfileSchema: z.ZodObject<{
|
|
|
367
346
|
}, z.core.$strip>, z.ZodObject<{
|
|
368
347
|
kind: z.ZodLiteral<"var">;
|
|
369
348
|
name: z.ZodString;
|
|
370
|
-
}, z.core.$strip>], "kind"
|
|
371
|
-
|
|
372
|
-
$var: z.ZodString;
|
|
373
|
-
}, z.core.$strip>]>>;
|
|
374
|
-
cap: z.ZodString;
|
|
375
|
-
method: z.ZodString;
|
|
349
|
+
}, z.core.$strip>], "kind">;
|
|
350
|
+
actionId: z.ZodString;
|
|
376
351
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
377
352
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
378
353
|
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
@@ -380,9 +355,8 @@ export declare const SchedulerProfileSchema: z.ZodObject<{
|
|
|
380
355
|
kind: z.ZodLiteral<"wait">;
|
|
381
356
|
seconds: z.ZodNumber;
|
|
382
357
|
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
-
kind: z.ZodLiteral<"
|
|
384
|
-
|
|
385
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
358
|
+
kind: z.ZodLiteral<"command">;
|
|
359
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
386
360
|
kind: z.ZodLiteral<"devices">;
|
|
387
361
|
ids: z.ZodArray<z.ZodNumber>;
|
|
388
362
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -392,12 +366,8 @@ export declare const SchedulerProfileSchema: z.ZodObject<{
|
|
|
392
366
|
}, z.core.$strip>, z.ZodObject<{
|
|
393
367
|
kind: z.ZodLiteral<"var">;
|
|
394
368
|
name: z.ZodString;
|
|
395
|
-
}, z.core.$strip>], "kind"
|
|
396
|
-
|
|
397
|
-
$var: z.ZodString;
|
|
398
|
-
}, z.core.$strip>]>>;
|
|
399
|
-
cap: z.ZodString;
|
|
400
|
-
method: z.ZodString;
|
|
369
|
+
}, z.core.$strip>], "kind">;
|
|
370
|
+
actionId: z.ZodString;
|
|
401
371
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
402
372
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
403
373
|
}, z.core.$strip>], "kind">>>;
|
|
@@ -504,9 +474,8 @@ export declare const SchedulerInputSchema: z.ZodObject<{
|
|
|
504
474
|
kind: z.ZodLiteral<"wait">;
|
|
505
475
|
seconds: z.ZodNumber;
|
|
506
476
|
}, z.core.$strip>, z.ZodObject<{
|
|
507
|
-
kind: z.ZodLiteral<"
|
|
508
|
-
|
|
509
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
477
|
+
kind: z.ZodLiteral<"command">;
|
|
478
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
510
479
|
kind: z.ZodLiteral<"devices">;
|
|
511
480
|
ids: z.ZodArray<z.ZodNumber>;
|
|
512
481
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -516,19 +485,14 @@ export declare const SchedulerInputSchema: z.ZodObject<{
|
|
|
516
485
|
}, z.core.$strip>, z.ZodObject<{
|
|
517
486
|
kind: z.ZodLiteral<"var">;
|
|
518
487
|
name: z.ZodString;
|
|
519
|
-
}, z.core.$strip>], "kind"
|
|
520
|
-
|
|
521
|
-
$var: z.ZodString;
|
|
522
|
-
}, z.core.$strip>]>>;
|
|
523
|
-
cap: z.ZodString;
|
|
524
|
-
method: z.ZodString;
|
|
488
|
+
}, z.core.$strip>], "kind">;
|
|
489
|
+
actionId: z.ZodString;
|
|
525
490
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
526
491
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
527
492
|
}, z.core.$strip>], "kind">>>;
|
|
528
493
|
}, z.core.$strip>, z.ZodObject<{
|
|
529
|
-
kind: z.ZodLiteral<"
|
|
530
|
-
|
|
531
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
494
|
+
kind: z.ZodLiteral<"command">;
|
|
495
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
532
496
|
kind: z.ZodLiteral<"devices">;
|
|
533
497
|
ids: z.ZodArray<z.ZodNumber>;
|
|
534
498
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -538,12 +502,8 @@ export declare const SchedulerInputSchema: z.ZodObject<{
|
|
|
538
502
|
}, z.core.$strip>, z.ZodObject<{
|
|
539
503
|
kind: z.ZodLiteral<"var">;
|
|
540
504
|
name: z.ZodString;
|
|
541
|
-
}, z.core.$strip>], "kind"
|
|
542
|
-
|
|
543
|
-
$var: z.ZodString;
|
|
544
|
-
}, z.core.$strip>]>>;
|
|
545
|
-
cap: z.ZodString;
|
|
546
|
-
method: z.ZodString;
|
|
505
|
+
}, z.core.$strip>], "kind">;
|
|
506
|
+
actionId: z.ZodString;
|
|
547
507
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
548
508
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
549
509
|
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
@@ -551,9 +511,8 @@ export declare const SchedulerInputSchema: z.ZodObject<{
|
|
|
551
511
|
kind: z.ZodLiteral<"wait">;
|
|
552
512
|
seconds: z.ZodNumber;
|
|
553
513
|
}, z.core.$strip>, z.ZodObject<{
|
|
554
|
-
kind: z.ZodLiteral<"
|
|
555
|
-
|
|
556
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<"command">;
|
|
515
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
557
516
|
kind: z.ZodLiteral<"devices">;
|
|
558
517
|
ids: z.ZodArray<z.ZodNumber>;
|
|
559
518
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -563,12 +522,8 @@ export declare const SchedulerInputSchema: z.ZodObject<{
|
|
|
563
522
|
}, z.core.$strip>, z.ZodObject<{
|
|
564
523
|
kind: z.ZodLiteral<"var">;
|
|
565
524
|
name: z.ZodString;
|
|
566
|
-
}, z.core.$strip>], "kind"
|
|
567
|
-
|
|
568
|
-
$var: z.ZodString;
|
|
569
|
-
}, z.core.$strip>]>>;
|
|
570
|
-
cap: z.ZodString;
|
|
571
|
-
method: z.ZodString;
|
|
525
|
+
}, z.core.$strip>], "kind">;
|
|
526
|
+
actionId: z.ZodString;
|
|
572
527
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
573
528
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
574
529
|
}, z.core.$strip>], "kind">>>;
|
|
@@ -675,9 +630,8 @@ export declare const SchedulerSchema: z.ZodObject<{
|
|
|
675
630
|
kind: z.ZodLiteral<"wait">;
|
|
676
631
|
seconds: z.ZodNumber;
|
|
677
632
|
}, z.core.$strip>, z.ZodObject<{
|
|
678
|
-
kind: z.ZodLiteral<"
|
|
679
|
-
|
|
680
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
633
|
+
kind: z.ZodLiteral<"command">;
|
|
634
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
681
635
|
kind: z.ZodLiteral<"devices">;
|
|
682
636
|
ids: z.ZodArray<z.ZodNumber>;
|
|
683
637
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -687,19 +641,14 @@ export declare const SchedulerSchema: z.ZodObject<{
|
|
|
687
641
|
}, z.core.$strip>, z.ZodObject<{
|
|
688
642
|
kind: z.ZodLiteral<"var">;
|
|
689
643
|
name: z.ZodString;
|
|
690
|
-
}, z.core.$strip>], "kind"
|
|
691
|
-
|
|
692
|
-
$var: z.ZodString;
|
|
693
|
-
}, z.core.$strip>]>>;
|
|
694
|
-
cap: z.ZodString;
|
|
695
|
-
method: z.ZodString;
|
|
644
|
+
}, z.core.$strip>], "kind">;
|
|
645
|
+
actionId: z.ZodString;
|
|
696
646
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
697
647
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
698
648
|
}, z.core.$strip>], "kind">>>;
|
|
699
649
|
}, z.core.$strip>, z.ZodObject<{
|
|
700
|
-
kind: z.ZodLiteral<"
|
|
701
|
-
|
|
702
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
650
|
+
kind: z.ZodLiteral<"command">;
|
|
651
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
703
652
|
kind: z.ZodLiteral<"devices">;
|
|
704
653
|
ids: z.ZodArray<z.ZodNumber>;
|
|
705
654
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -709,12 +658,8 @@ export declare const SchedulerSchema: z.ZodObject<{
|
|
|
709
658
|
}, z.core.$strip>, z.ZodObject<{
|
|
710
659
|
kind: z.ZodLiteral<"var">;
|
|
711
660
|
name: z.ZodString;
|
|
712
|
-
}, z.core.$strip>], "kind"
|
|
713
|
-
|
|
714
|
-
$var: z.ZodString;
|
|
715
|
-
}, z.core.$strip>]>>;
|
|
716
|
-
cap: z.ZodString;
|
|
717
|
-
method: z.ZodString;
|
|
661
|
+
}, z.core.$strip>], "kind">;
|
|
662
|
+
actionId: z.ZodString;
|
|
718
663
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
719
664
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
720
665
|
if: z.ZodOptional<z.ZodType<AutomationWhen, unknown, z.core.$ZodTypeInternals<AutomationWhen, unknown>>>;
|
|
@@ -722,9 +667,8 @@ export declare const SchedulerSchema: z.ZodObject<{
|
|
|
722
667
|
kind: z.ZodLiteral<"wait">;
|
|
723
668
|
seconds: z.ZodNumber;
|
|
724
669
|
}, z.core.$strip>, z.ZodObject<{
|
|
725
|
-
kind: z.ZodLiteral<"
|
|
726
|
-
|
|
727
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
670
|
+
kind: z.ZodLiteral<"command">;
|
|
671
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
728
672
|
kind: z.ZodLiteral<"devices">;
|
|
729
673
|
ids: z.ZodArray<z.ZodNumber>;
|
|
730
674
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -734,12 +678,8 @@ export declare const SchedulerSchema: z.ZodObject<{
|
|
|
734
678
|
}, z.core.$strip>, z.ZodObject<{
|
|
735
679
|
kind: z.ZodLiteral<"var">;
|
|
736
680
|
name: z.ZodString;
|
|
737
|
-
}, z.core.$strip>], "kind"
|
|
738
|
-
|
|
739
|
-
$var: z.ZodString;
|
|
740
|
-
}, z.core.$strip>]>>;
|
|
741
|
-
cap: z.ZodString;
|
|
742
|
-
method: z.ZodString;
|
|
681
|
+
}, z.core.$strip>], "kind">;
|
|
682
|
+
actionId: z.ZodString;
|
|
743
683
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
744
684
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
745
685
|
}, z.core.$strip>], "kind">>>;
|
|
@@ -214,6 +214,13 @@ export interface ActionStepDeps {
|
|
|
214
214
|
/** The action / automation the steps belong to, for the log line of an empty target. */
|
|
215
215
|
readonly owner?: string;
|
|
216
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* What a command step's trace shows before it runs. It never throws: an action
|
|
219
|
+
* id the vocabulary no longer knows (renamed, removed) leaves the cap and method
|
|
220
|
+
* out, and the step fails when it RUNS, traced and logged with its device —
|
|
221
|
+
* building the run must not take the steps around it down with it.
|
|
222
|
+
*/
|
|
223
|
+
export declare function commandStepMeta(target: ActionTarget, actionId: string): StepMeta;
|
|
217
224
|
/**
|
|
218
225
|
* Run `work` for every device, `concurrency` at a time. EVERY device is tried
|
|
219
226
|
* (one refusing device must not leave the others undone); each outcome goes to
|
|
@@ -39,9 +39,8 @@ export declare const actionSourceCapability: {
|
|
|
39
39
|
kind: z.ZodLiteral<"wait">;
|
|
40
40
|
seconds: z.ZodNumber;
|
|
41
41
|
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
kind: z.ZodLiteral<"
|
|
43
|
-
|
|
44
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
kind: z.ZodLiteral<"command">;
|
|
43
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
44
|
kind: z.ZodLiteral<"devices">;
|
|
46
45
|
ids: z.ZodArray<z.ZodNumber>;
|
|
47
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -51,19 +50,14 @@ export declare const actionSourceCapability: {
|
|
|
51
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
52
51
|
kind: z.ZodLiteral<"var">;
|
|
53
52
|
name: z.ZodString;
|
|
54
|
-
}, z.core.$strip>], "kind"
|
|
55
|
-
|
|
56
|
-
$var: z.ZodString;
|
|
57
|
-
}, z.core.$strip>]>>;
|
|
58
|
-
cap: z.ZodString;
|
|
59
|
-
method: z.ZodString;
|
|
53
|
+
}, z.core.$strip>], "kind">;
|
|
54
|
+
actionId: z.ZodString;
|
|
60
55
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
61
56
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
62
57
|
}, z.core.$strip>], "kind">>>;
|
|
63
58
|
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
kind: z.ZodLiteral<"
|
|
65
|
-
|
|
66
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"command">;
|
|
60
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
61
|
kind: z.ZodLiteral<"devices">;
|
|
68
62
|
ids: z.ZodArray<z.ZodNumber>;
|
|
69
63
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -73,12 +67,8 @@ export declare const actionSourceCapability: {
|
|
|
73
67
|
}, z.core.$strip>, z.ZodObject<{
|
|
74
68
|
kind: z.ZodLiteral<"var">;
|
|
75
69
|
name: z.ZodString;
|
|
76
|
-
}, z.core.$strip>], "kind"
|
|
77
|
-
|
|
78
|
-
$var: z.ZodString;
|
|
79
|
-
}, z.core.$strip>]>>;
|
|
80
|
-
cap: z.ZodString;
|
|
81
|
-
method: z.ZodString;
|
|
70
|
+
}, z.core.$strip>], "kind">;
|
|
71
|
+
actionId: z.ZodString;
|
|
82
72
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
73
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
84
74
|
if: z.ZodOptional<z.ZodType<import("../index.js").AutomationWhen, unknown, z.core.$ZodTypeInternals<import("../index.js").AutomationWhen, unknown>>>;
|
|
@@ -86,9 +76,8 @@ export declare const actionSourceCapability: {
|
|
|
86
76
|
kind: z.ZodLiteral<"wait">;
|
|
87
77
|
seconds: z.ZodNumber;
|
|
88
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
kind: z.ZodLiteral<"
|
|
90
|
-
|
|
91
|
-
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
|
+
kind: z.ZodLiteral<"command">;
|
|
80
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
81
|
kind: z.ZodLiteral<"devices">;
|
|
93
82
|
ids: z.ZodArray<z.ZodNumber>;
|
|
94
83
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -98,12 +87,8 @@ export declare const actionSourceCapability: {
|
|
|
98
87
|
}, z.core.$strip>, z.ZodObject<{
|
|
99
88
|
kind: z.ZodLiteral<"var">;
|
|
100
89
|
name: z.ZodString;
|
|
101
|
-
}, z.core.$strip>], "kind"
|
|
102
|
-
|
|
103
|
-
$var: z.ZodString;
|
|
104
|
-
}, z.core.$strip>]>>;
|
|
105
|
-
cap: z.ZodString;
|
|
106
|
-
method: z.ZodString;
|
|
90
|
+
}, z.core.$strip>], "kind">;
|
|
91
|
+
actionId: z.ZodString;
|
|
107
92
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
108
93
|
argUnits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
109
94
|
}, z.core.$strip>], "kind">>>;
|