@camstack/types 1.2.310 → 1.2.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/hub-address.d.ts +60 -51
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/local-network.cap.d.ts +149 -147
- package/dist/capabilities/notification-rules.cap.d.ts +12 -0
- package/dist/client.js +15 -3
- package/dist/client.mjs +15 -3
- package/dist/index.js +124 -106
- package/dist/index.mjs +118 -100
- package/dist/notification/alarm-settings.d.ts +6 -3
- package/package.json +1 -1
|
@@ -3505,6 +3505,7 @@ export declare const NcAlarmModeDelaysSchema: z.ZodObject<{
|
|
|
3505
3505
|
}, z.core.$strip>>;
|
|
3506
3506
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
3507
3507
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
3508
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
3508
3509
|
}, z.core.$strip>;
|
|
3509
3510
|
export type NcAlarmModeDelays = z.infer<typeof NcAlarmModeDelaysSchema>;
|
|
3510
3511
|
/**
|
|
@@ -3539,6 +3540,7 @@ export declare const NcAlarmModeDelaysEditSchema: z.ZodObject<{
|
|
|
3539
3540
|
}, z.core.$strip>>>;
|
|
3540
3541
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3541
3542
|
notifySensorRewatched: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3543
|
+
notifySensorIgnored: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3542
3544
|
}, z.core.$strip>;
|
|
3543
3545
|
export type NcAlarmModeDelaysEdit = z.infer<typeof NcAlarmModeDelaysEditSchema>;
|
|
3544
3546
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
@@ -3720,6 +3722,7 @@ export declare const NcAlarmSettingsSchema: z.ZodObject<{
|
|
|
3720
3722
|
}, z.core.$strip>>;
|
|
3721
3723
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
3722
3724
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
3725
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
3723
3726
|
}, z.core.$strip>>>;
|
|
3724
3727
|
}, z.core.$strip>;
|
|
3725
3728
|
export type NcAlarmSettings = z.infer<typeof NcAlarmSettingsSchema>;
|
|
@@ -3839,6 +3842,7 @@ export declare const NcAlarmSettingsPatchSchema: z.ZodObject<{
|
|
|
3839
3842
|
}, z.core.$strip>>>;
|
|
3840
3843
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3841
3844
|
notifySensorRewatched: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3845
|
+
notifySensorIgnored: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3842
3846
|
}, z.core.$strip>>>;
|
|
3843
3847
|
nonBlockingEdit: z.ZodOptional<z.ZodObject<{
|
|
3844
3848
|
mode: z.ZodEnum<{
|
|
@@ -4086,6 +4090,7 @@ export declare const NcAlarmConfigSchema: z.ZodObject<{
|
|
|
4086
4090
|
}, z.core.$strip>>;
|
|
4087
4091
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
4088
4092
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
4093
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
4089
4094
|
}, z.core.$strip>>>;
|
|
4090
4095
|
}, z.core.$strip>;
|
|
4091
4096
|
profiles: z.ZodOptional<z.ZodObject<{
|
|
@@ -7945,6 +7950,7 @@ export declare const notificationRulesCapability: {
|
|
|
7945
7950
|
}, z.core.$strip>>;
|
|
7946
7951
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
7947
7952
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
7953
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
7948
7954
|
}, z.core.$strip>>>;
|
|
7949
7955
|
}, z.core.$strip>;
|
|
7950
7956
|
profiles: z.ZodOptional<z.ZodObject<{
|
|
@@ -8107,6 +8113,7 @@ export declare const notificationRulesCapability: {
|
|
|
8107
8113
|
}, z.core.$strip>>>;
|
|
8108
8114
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
8109
8115
|
notifySensorRewatched: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
8116
|
+
notifySensorIgnored: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
8110
8117
|
}, z.core.$strip>>>;
|
|
8111
8118
|
nonBlockingEdit: z.ZodOptional<z.ZodObject<{
|
|
8112
8119
|
mode: z.ZodEnum<{
|
|
@@ -8212,6 +8219,7 @@ export declare const notificationRulesCapability: {
|
|
|
8212
8219
|
}, z.core.$strip>>;
|
|
8213
8220
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
8214
8221
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
8222
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
8215
8223
|
}, z.core.$strip>>>;
|
|
8216
8224
|
}, z.core.$strip>;
|
|
8217
8225
|
profiles: z.ZodOptional<z.ZodObject<{
|
|
@@ -8374,6 +8382,7 @@ export declare const notificationRulesCapability: {
|
|
|
8374
8382
|
}, z.core.$strip>>;
|
|
8375
8383
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
8376
8384
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
8385
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
8377
8386
|
}, z.core.$strip>>>;
|
|
8378
8387
|
}, z.core.$strip>;
|
|
8379
8388
|
profiles: z.ZodOptional<z.ZodObject<{
|
|
@@ -8532,6 +8541,7 @@ export declare const notificationRulesCapability: {
|
|
|
8532
8541
|
}, z.core.$strip>>;
|
|
8533
8542
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
8534
8543
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
8544
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
8535
8545
|
}, z.core.$strip>>>;
|
|
8536
8546
|
}, z.core.$strip>;
|
|
8537
8547
|
profiles: z.ZodOptional<z.ZodObject<{
|
|
@@ -8692,6 +8702,7 @@ export declare const notificationRulesCapability: {
|
|
|
8692
8702
|
}, z.core.$strip>>;
|
|
8693
8703
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
8694
8704
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
8705
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
8695
8706
|
}, z.core.$strip>>>;
|
|
8696
8707
|
}, z.core.$strip>;
|
|
8697
8708
|
profiles: z.ZodOptional<z.ZodObject<{
|
|
@@ -8852,6 +8863,7 @@ export declare const notificationRulesCapability: {
|
|
|
8852
8863
|
}, z.core.$strip>>;
|
|
8853
8864
|
notifyDuringEntryDelay: z.ZodOptional<z.ZodBoolean>;
|
|
8854
8865
|
notifySensorRewatched: z.ZodOptional<z.ZodBoolean>;
|
|
8866
|
+
notifySensorIgnored: z.ZodOptional<z.ZodBoolean>;
|
|
8855
8867
|
}, z.core.$strip>>>;
|
|
8856
8868
|
}, z.core.$strip>;
|
|
8857
8869
|
profiles: z.ZodOptional<z.ZodObject<{
|
package/dist/client.js
CHANGED
|
@@ -3492,7 +3492,13 @@ var NcAlarmModeDelaysSchema = zod.z.object({
|
|
|
3492
3492
|
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
3493
3493
|
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
3494
3494
|
*/
|
|
3495
|
-
notifySensorRewatched: zod.z.boolean().optional()
|
|
3495
|
+
notifySensorRewatched: zod.z.boolean().optional(),
|
|
3496
|
+
/**
|
|
3497
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
3498
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
3499
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
3500
|
+
*/
|
|
3501
|
+
notifySensorIgnored: zod.z.boolean().optional()
|
|
3496
3502
|
});
|
|
3497
3503
|
var NcAlarmModeDelaysListSchema = zod.z.array(NcAlarmModeDelaysSchema).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
3498
3504
|
/**
|
|
@@ -3511,7 +3517,9 @@ var NcAlarmModeDelaysEditSchema = zod.z.object({
|
|
|
3511
3517
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
3512
3518
|
notifyDuringEntryDelay: zod.z.boolean().nullable().optional(),
|
|
3513
3519
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
3514
|
-
notifySensorRewatched: zod.z.boolean().nullable().optional()
|
|
3520
|
+
notifySensorRewatched: zod.z.boolean().nullable().optional(),
|
|
3521
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
3522
|
+
notifySensorIgnored: zod.z.boolean().nullable().optional()
|
|
3515
3523
|
});
|
|
3516
3524
|
var NcAlarmModeDelaysEditListSchema = zod.z.array(NcAlarmModeDelaysEditSchema).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
3517
3525
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
@@ -8721,7 +8729,11 @@ var NC_ALARM_DELAY_FIELDS = [
|
|
|
8721
8729
|
"entryDelaySec",
|
|
8722
8730
|
"triggeredDurationSec"
|
|
8723
8731
|
];
|
|
8724
|
-
var NC_ALARM_NOTIFY_FIELDS = [
|
|
8732
|
+
var NC_ALARM_NOTIFY_FIELDS = [
|
|
8733
|
+
"notifyDuringEntryDelay",
|
|
8734
|
+
"notifySensorRewatched",
|
|
8735
|
+
"notifySensorIgnored"
|
|
8736
|
+
];
|
|
8725
8737
|
/**
|
|
8726
8738
|
* Derive the post-triggered action from a stored blob that may predate the field:
|
|
8727
8739
|
* a positive duration meant re-arm; zero/absent meant stay triggered.
|
package/dist/client.mjs
CHANGED
|
@@ -3491,7 +3491,13 @@ var NcAlarmModeDelaysSchema = z.object({
|
|
|
3491
3491
|
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
3492
3492
|
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
3493
3493
|
*/
|
|
3494
|
-
notifySensorRewatched: z.boolean().optional()
|
|
3494
|
+
notifySensorRewatched: z.boolean().optional(),
|
|
3495
|
+
/**
|
|
3496
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
3497
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
3498
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
3499
|
+
*/
|
|
3500
|
+
notifySensorIgnored: z.boolean().optional()
|
|
3495
3501
|
});
|
|
3496
3502
|
var NcAlarmModeDelaysListSchema = z.array(NcAlarmModeDelaysSchema).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
3497
3503
|
/**
|
|
@@ -3510,7 +3516,9 @@ var NcAlarmModeDelaysEditSchema = z.object({
|
|
|
3510
3516
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
3511
3517
|
notifyDuringEntryDelay: z.boolean().nullable().optional(),
|
|
3512
3518
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
3513
|
-
notifySensorRewatched: z.boolean().nullable().optional()
|
|
3519
|
+
notifySensorRewatched: z.boolean().nullable().optional(),
|
|
3520
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
3521
|
+
notifySensorIgnored: z.boolean().nullable().optional()
|
|
3514
3522
|
});
|
|
3515
3523
|
var NcAlarmModeDelaysEditListSchema = z.array(NcAlarmModeDelaysEditSchema).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
3516
3524
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
@@ -8720,7 +8728,11 @@ var NC_ALARM_DELAY_FIELDS = [
|
|
|
8720
8728
|
"entryDelaySec",
|
|
8721
8729
|
"triggeredDurationSec"
|
|
8722
8730
|
];
|
|
8723
|
-
var NC_ALARM_NOTIFY_FIELDS = [
|
|
8731
|
+
var NC_ALARM_NOTIFY_FIELDS = [
|
|
8732
|
+
"notifyDuringEntryDelay",
|
|
8733
|
+
"notifySensorRewatched",
|
|
8734
|
+
"notifySensorIgnored"
|
|
8735
|
+
];
|
|
8724
8736
|
/**
|
|
8725
8737
|
* Derive the post-triggered action from a stored blob that may predate the field:
|
|
8726
8738
|
* a positive duration meant re-arm; zero/absent meant stay triggered.
|