@camstack/types 1.2.565 → 1.2.567
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 +14 -0
- package/dist/automation/recipe.d.ts +156 -3
- package/dist/automation/template-link.d.ts +871 -9
- package/dist/automation/when.d.ts +98 -6
- package/dist/index.js +855 -546
- package/dist/index.mjs +844 -547
- package/dist/template/automation-template.d.ts +1230 -189
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.567] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Remote: the source last sent by an infrared remote is no longer kept as state
|
|
15
|
+
|
|
16
|
+
## [1.2.566] - 2026-11-14
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Automation templates: a group row can hold groups, so the Buttons → devices template takes several events and several actions per button (automations made from the old shape must be recreated)
|
|
21
|
+
- Automation templates: an optional time-window input and a gate binding wrap an automation's condition as all[time-is, original] only when filled
|
|
22
|
+
- The Buttons template's When and Actions are the automation's own triggers and steps, copied verbatim; a button's action can target every device of a type or room
|
|
23
|
+
|
|
10
24
|
## [1.2.565] - 2026-11-14
|
|
11
25
|
|
|
12
26
|
### Changed
|
|
@@ -236,7 +236,7 @@ export declare const STEP_NEST_MAX = 2;
|
|
|
236
236
|
* A plain step: a flow step with no condition of its own and no step inside
|
|
237
237
|
* it. The second (last) level of nesting holds these only.
|
|
238
238
|
*/
|
|
239
|
-
declare const AutomationBranchStepSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
239
|
+
export declare const AutomationBranchStepSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
240
240
|
kind: z.ZodLiteral<"wait">;
|
|
241
241
|
seconds: z.ZodNumber;
|
|
242
242
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -8448,7 +8448,114 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
|
|
|
8448
8448
|
}, z.core.$strip>, z.ZodObject<{
|
|
8449
8449
|
actionId: z.ZodString;
|
|
8450
8450
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8451
|
-
}, z.core.$strip
|
|
8451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8452
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
8453
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8454
|
+
kind: z.ZodLiteral<"clock">;
|
|
8455
|
+
hh: z.ZodNumber;
|
|
8456
|
+
mm: z.ZodNumber;
|
|
8457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8458
|
+
kind: z.ZodLiteral<"sun">;
|
|
8459
|
+
event: z.ZodEnum<{
|
|
8460
|
+
dawn: "dawn";
|
|
8461
|
+
dusk: "dusk";
|
|
8462
|
+
sunrise: "sunrise";
|
|
8463
|
+
sunset: "sunset";
|
|
8464
|
+
}>;
|
|
8465
|
+
offsetMin: z.ZodNumber;
|
|
8466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8467
|
+
kind: z.ZodLiteral<"date">;
|
|
8468
|
+
local: z.ZodString;
|
|
8469
|
+
}, z.core.$strip>], "kind">;
|
|
8470
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8471
|
+
kind: z.ZodLiteral<"clock">;
|
|
8472
|
+
hh: z.ZodNumber;
|
|
8473
|
+
mm: z.ZodNumber;
|
|
8474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8475
|
+
kind: z.ZodLiteral<"sun">;
|
|
8476
|
+
event: z.ZodEnum<{
|
|
8477
|
+
dawn: "dawn";
|
|
8478
|
+
dusk: "dusk";
|
|
8479
|
+
sunrise: "sunrise";
|
|
8480
|
+
sunset: "sunset";
|
|
8481
|
+
}>;
|
|
8482
|
+
offsetMin: z.ZodNumber;
|
|
8483
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8484
|
+
kind: z.ZodLiteral<"date">;
|
|
8485
|
+
local: z.ZodString;
|
|
8486
|
+
}, z.core.$strip>], "kind">;
|
|
8487
|
+
}, z.core.$strip>>;
|
|
8488
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8489
|
+
fri: "fri";
|
|
8490
|
+
mon: "mon";
|
|
8491
|
+
sat: "sat";
|
|
8492
|
+
sun: "sun";
|
|
8493
|
+
thu: "thu";
|
|
8494
|
+
tue: "tue";
|
|
8495
|
+
wed: "wed";
|
|
8496
|
+
}>>>;
|
|
8497
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
8498
|
+
eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8499
|
+
sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8500
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8501
|
+
"double-press": "double-press";
|
|
8502
|
+
"long-press": "long-press";
|
|
8503
|
+
"long-press-start": "long-press-start";
|
|
8504
|
+
other: "other";
|
|
8505
|
+
press: "press";
|
|
8506
|
+
release: "release";
|
|
8507
|
+
repeat: "repeat";
|
|
8508
|
+
}>>>;
|
|
8509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8510
|
+
actionId: z.ZodString;
|
|
8511
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8513
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
8514
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8515
|
+
kind: z.ZodLiteral<"clock">;
|
|
8516
|
+
hh: z.ZodNumber;
|
|
8517
|
+
mm: z.ZodNumber;
|
|
8518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8519
|
+
kind: z.ZodLiteral<"sun">;
|
|
8520
|
+
event: z.ZodEnum<{
|
|
8521
|
+
dawn: "dawn";
|
|
8522
|
+
dusk: "dusk";
|
|
8523
|
+
sunrise: "sunrise";
|
|
8524
|
+
sunset: "sunset";
|
|
8525
|
+
}>;
|
|
8526
|
+
offsetMin: z.ZodNumber;
|
|
8527
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8528
|
+
kind: z.ZodLiteral<"date">;
|
|
8529
|
+
local: z.ZodString;
|
|
8530
|
+
}, z.core.$strip>], "kind">;
|
|
8531
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8532
|
+
kind: z.ZodLiteral<"clock">;
|
|
8533
|
+
hh: z.ZodNumber;
|
|
8534
|
+
mm: z.ZodNumber;
|
|
8535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8536
|
+
kind: z.ZodLiteral<"sun">;
|
|
8537
|
+
event: z.ZodEnum<{
|
|
8538
|
+
dawn: "dawn";
|
|
8539
|
+
dusk: "dusk";
|
|
8540
|
+
sunrise: "sunrise";
|
|
8541
|
+
sunset: "sunset";
|
|
8542
|
+
}>;
|
|
8543
|
+
offsetMin: z.ZodNumber;
|
|
8544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8545
|
+
kind: z.ZodLiteral<"date">;
|
|
8546
|
+
local: z.ZodString;
|
|
8547
|
+
}, z.core.$strip>], "kind">;
|
|
8548
|
+
}, z.core.$strip>>;
|
|
8549
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8550
|
+
fri: "fri";
|
|
8551
|
+
mon: "mon";
|
|
8552
|
+
sat: "sat";
|
|
8553
|
+
sun: "sun";
|
|
8554
|
+
thu: "thu";
|
|
8555
|
+
tue: "tue";
|
|
8556
|
+
wed: "wed";
|
|
8557
|
+
}>>>;
|
|
8558
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
8452
8559
|
eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8453
8560
|
sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8454
8561
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -8463,7 +8570,53 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
|
|
|
8463
8570
|
}, z.core.$strip>, z.ZodObject<{
|
|
8464
8571
|
actionId: z.ZodString;
|
|
8465
8572
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8466
|
-
}, z.core.$strip
|
|
8573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8574
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
8575
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8576
|
+
kind: z.ZodLiteral<"clock">;
|
|
8577
|
+
hh: z.ZodNumber;
|
|
8578
|
+
mm: z.ZodNumber;
|
|
8579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8580
|
+
kind: z.ZodLiteral<"sun">;
|
|
8581
|
+
event: z.ZodEnum<{
|
|
8582
|
+
dawn: "dawn";
|
|
8583
|
+
dusk: "dusk";
|
|
8584
|
+
sunrise: "sunrise";
|
|
8585
|
+
sunset: "sunset";
|
|
8586
|
+
}>;
|
|
8587
|
+
offsetMin: z.ZodNumber;
|
|
8588
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8589
|
+
kind: z.ZodLiteral<"date">;
|
|
8590
|
+
local: z.ZodString;
|
|
8591
|
+
}, z.core.$strip>], "kind">;
|
|
8592
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8593
|
+
kind: z.ZodLiteral<"clock">;
|
|
8594
|
+
hh: z.ZodNumber;
|
|
8595
|
+
mm: z.ZodNumber;
|
|
8596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8597
|
+
kind: z.ZodLiteral<"sun">;
|
|
8598
|
+
event: z.ZodEnum<{
|
|
8599
|
+
dawn: "dawn";
|
|
8600
|
+
dusk: "dusk";
|
|
8601
|
+
sunrise: "sunrise";
|
|
8602
|
+
sunset: "sunset";
|
|
8603
|
+
}>;
|
|
8604
|
+
offsetMin: z.ZodNumber;
|
|
8605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8606
|
+
kind: z.ZodLiteral<"date">;
|
|
8607
|
+
local: z.ZodString;
|
|
8608
|
+
}, z.core.$strip>], "kind">;
|
|
8609
|
+
}, z.core.$strip>>;
|
|
8610
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8611
|
+
fri: "fri";
|
|
8612
|
+
mon: "mon";
|
|
8613
|
+
sat: "sat";
|
|
8614
|
+
sun: "sun";
|
|
8615
|
+
thu: "thu";
|
|
8616
|
+
tue: "tue";
|
|
8617
|
+
wed: "wed";
|
|
8618
|
+
}>>>;
|
|
8619
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>]>>>]>>;
|
|
8467
8620
|
codeHash: z.ZodOptional<z.ZodString>;
|
|
8468
8621
|
problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8469
8622
|
code: z.ZodEnum<{
|