@camstack/types 1.2.247 → 1.2.249
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/addon.d.ts +1 -1
- package/dist/addon.js +29 -1
- package/dist/addon.mjs +28 -2
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +1224 -11
- package/dist/capabilities/osd-manager.cap.d.ts +24 -0
- package/dist/device/linked-device-resolve.d.ts +74 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/collection-array-methods.d.ts +18 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1133 -24
- package/dist/index.mjs +1117 -25
- package/dist/notification/template-vars.d.ts +24 -0
- package/dist/{sleep-9gM_dS-5.js → sleep-CvwUEq16.js} +2 -0
- package/dist/{sleep-PEo0-Fz9.mjs → sleep-pM_J7YnY.mjs} +2 -0
- package/package.json +1 -1
|
@@ -89,6 +89,10 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
|
|
|
89
89
|
"alarm-disarmed": "alarm-disarmed";
|
|
90
90
|
"alarm-arming": "alarm-arming";
|
|
91
91
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
92
|
+
"alarm-pending": "alarm-pending";
|
|
93
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
94
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
95
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
92
96
|
"addon-updated": "addon-updated";
|
|
93
97
|
"server-updated": "server-updated";
|
|
94
98
|
"export-completed": "export-completed";
|
|
@@ -148,6 +152,10 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
|
|
|
148
152
|
"alarm-disarmed": "alarm-disarmed";
|
|
149
153
|
"alarm-arming": "alarm-arming";
|
|
150
154
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
155
|
+
"alarm-pending": "alarm-pending";
|
|
156
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
157
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
158
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
151
159
|
"addon-updated": "addon-updated";
|
|
152
160
|
"server-updated": "server-updated";
|
|
153
161
|
"export-completed": "export-completed";
|
|
@@ -634,6 +642,10 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
634
642
|
"alarm-disarmed": "alarm-disarmed";
|
|
635
643
|
"alarm-arming": "alarm-arming";
|
|
636
644
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
645
|
+
"alarm-pending": "alarm-pending";
|
|
646
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
647
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
648
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
637
649
|
"addon-updated": "addon-updated";
|
|
638
650
|
"server-updated": "server-updated";
|
|
639
651
|
"export-completed": "export-completed";
|
|
@@ -712,6 +724,23 @@ export declare const NcMediaFrameSchema: z.ZodEnum<{
|
|
|
712
724
|
cropped: "cropped";
|
|
713
725
|
}>;
|
|
714
726
|
export type NcMediaFrame = z.infer<typeof NcMediaFrameSchema>;
|
|
727
|
+
/**
|
|
728
|
+
* How a SENSOR notification shows the cameras that link the sensor.
|
|
729
|
+
*
|
|
730
|
+
* `mosaic` — one image composed of every linked camera's photograph, taken at
|
|
731
|
+
* the trigger. `each` — one image per camera where the target takes several
|
|
732
|
+
* attachments; a target that takes one keeps the first camera's (the degrade
|
|
733
|
+
* engine drops the rest by order). Either way ONE notification per event.
|
|
734
|
+
* Absent = `mosaic`, applied by the Notification Center and deliberately NOT
|
|
735
|
+
* a Zod default (see NcRulePatchSchema: a default materialises on every
|
|
736
|
+
* partial patch). Meaningless for a rule whose subject is not a sensor, and a
|
|
737
|
+
* sensor linked to one camera ships that camera's plain snapshot either way.
|
|
738
|
+
*/
|
|
739
|
+
export declare const NcLinkedCameraModeSchema: z.ZodEnum<{
|
|
740
|
+
mosaic: "mosaic";
|
|
741
|
+
each: "each";
|
|
742
|
+
}>;
|
|
743
|
+
export type NcLinkedCameraMode = z.infer<typeof NcLinkedCameraModeSchema>;
|
|
715
744
|
export declare const NcMediaPolicySchema: z.ZodObject<{
|
|
716
745
|
attach: z.ZodDefault<z.ZodEnum<{
|
|
717
746
|
none: "none";
|
|
@@ -735,6 +764,10 @@ export declare const NcMediaPolicySchema: z.ZodObject<{
|
|
|
735
764
|
mid: "mid";
|
|
736
765
|
low: "low";
|
|
737
766
|
}>>;
|
|
767
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
768
|
+
mosaic: "mosaic";
|
|
769
|
+
each: "each";
|
|
770
|
+
}>>;
|
|
738
771
|
}, z.core.$strip>;
|
|
739
772
|
export type NcMediaPolicy = z.infer<typeof NcMediaPolicySchema>;
|
|
740
773
|
/**
|
|
@@ -924,6 +957,10 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
924
957
|
"alarm-disarmed": "alarm-disarmed";
|
|
925
958
|
"alarm-arming": "alarm-arming";
|
|
926
959
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
960
|
+
"alarm-pending": "alarm-pending";
|
|
961
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
962
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
963
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
927
964
|
"addon-updated": "addon-updated";
|
|
928
965
|
"server-updated": "server-updated";
|
|
929
966
|
"export-completed": "export-completed";
|
|
@@ -1003,6 +1040,10 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
1003
1040
|
mid: "mid";
|
|
1004
1041
|
low: "low";
|
|
1005
1042
|
}>>;
|
|
1043
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
1044
|
+
mosaic: "mosaic";
|
|
1045
|
+
each: "each";
|
|
1046
|
+
}>>;
|
|
1006
1047
|
}, z.core.$strip>>;
|
|
1007
1048
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
1008
1049
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1278,6 +1319,10 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1278
1319
|
"alarm-disarmed": "alarm-disarmed";
|
|
1279
1320
|
"alarm-arming": "alarm-arming";
|
|
1280
1321
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
1322
|
+
"alarm-pending": "alarm-pending";
|
|
1323
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
1324
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
1325
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1281
1326
|
"addon-updated": "addon-updated";
|
|
1282
1327
|
"server-updated": "server-updated";
|
|
1283
1328
|
"export-completed": "export-completed";
|
|
@@ -1343,6 +1388,10 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1343
1388
|
mid: "mid";
|
|
1344
1389
|
low: "low";
|
|
1345
1390
|
}>>;
|
|
1391
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
mosaic: "mosaic";
|
|
1393
|
+
each: "each";
|
|
1394
|
+
}>>;
|
|
1346
1395
|
}, z.core.$strip>>;
|
|
1347
1396
|
throttle: z.ZodOptional<z.ZodObject<{
|
|
1348
1397
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1358,6 +1407,309 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1358
1407
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1359
1408
|
}, z.core.$strip>;
|
|
1360
1409
|
export type NcRulePatch = z.infer<typeof NcRulePatchSchema>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Optional rule fields an editor may EMPTY on an update.
|
|
1412
|
+
*
|
|
1413
|
+
* `updateRule` merges `{ ...existing, ...patch }`, so an omitted key keeps its
|
|
1414
|
+
* stored value — which is what a partial patch must do, and exactly why a
|
|
1415
|
+
* field emptied in an editor used to survive the save. An editor names here
|
|
1416
|
+
* the keys it AUTHORS and found empty; the store removes them before the
|
|
1417
|
+
* merge. A `schedule` cannot be sent empty at all (`windows.min(1)`), so this
|
|
1418
|
+
* is the only way to remove one.
|
|
1419
|
+
*/
|
|
1420
|
+
export declare const NC_RULE_CLEARABLE_KEYS: readonly ["template", "schedule", "targetUsers", "snoozeOptions", "snoozeAllowGlobal", "waitForEnhancement", "actions", "confirm", "groupIdleSec"];
|
|
1421
|
+
export declare const NcRuleClearableKeySchema: z.ZodEnum<{
|
|
1422
|
+
confirm: "confirm";
|
|
1423
|
+
schedule: "schedule";
|
|
1424
|
+
actions: "actions";
|
|
1425
|
+
targetUsers: "targetUsers";
|
|
1426
|
+
template: "template";
|
|
1427
|
+
snoozeAllowGlobal: "snoozeAllowGlobal";
|
|
1428
|
+
snoozeOptions: "snoozeOptions";
|
|
1429
|
+
waitForEnhancement: "waitForEnhancement";
|
|
1430
|
+
groupIdleSec: "groupIdleSec";
|
|
1431
|
+
}>;
|
|
1432
|
+
export type NcRuleClearableKey = z.infer<typeof NcRuleClearableKeySchema>;
|
|
1433
|
+
export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
1434
|
+
ruleId: z.ZodString;
|
|
1435
|
+
patch: z.ZodObject<{
|
|
1436
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
1438
|
+
"device-event": "device-event";
|
|
1439
|
+
immediate: "immediate";
|
|
1440
|
+
"track-end": "track-end";
|
|
1441
|
+
"package-event": "package-event";
|
|
1442
|
+
"system-event": "system-event";
|
|
1443
|
+
}>>;
|
|
1444
|
+
schedule: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1445
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1446
|
+
days: z.ZodArray<z.ZodNumber>;
|
|
1447
|
+
startMinute: z.ZodNumber;
|
|
1448
|
+
endMinute: z.ZodNumber;
|
|
1449
|
+
}, z.core.$strip>>;
|
|
1450
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
1451
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
1452
|
+
}, z.core.$strip>>>;
|
|
1453
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1454
|
+
targetId: z.ZodString;
|
|
1455
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1456
|
+
}, z.core.$strip>>>;
|
|
1457
|
+
targetUsers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1458
|
+
template: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1459
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1460
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1461
|
+
}, z.core.$strip>>>;
|
|
1462
|
+
ownerUserId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1463
|
+
snoozeAllowGlobal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1464
|
+
snoozeOptions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber>>>;
|
|
1465
|
+
actions: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1466
|
+
onTrigger: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1467
|
+
name: z.ZodString;
|
|
1468
|
+
enabled: z.ZodBoolean;
|
|
1469
|
+
minDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
1470
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1471
|
+
kind: z.ZodLiteral<"wait">;
|
|
1472
|
+
seconds: z.ZodNumber;
|
|
1473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1474
|
+
kind: z.ZodLiteral<"cap">;
|
|
1475
|
+
deviceId: z.ZodNumber;
|
|
1476
|
+
cap: z.ZodString;
|
|
1477
|
+
method: z.ZodString;
|
|
1478
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1479
|
+
}, z.core.$strip>], "kind">>;
|
|
1480
|
+
}, z.core.$strip>>>;
|
|
1481
|
+
buttons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1482
|
+
id: z.ZodString;
|
|
1483
|
+
label: z.ZodString;
|
|
1484
|
+
sequence: z.ZodString;
|
|
1485
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
1486
|
+
camera: "camera";
|
|
1487
|
+
light: "light";
|
|
1488
|
+
lock: "lock";
|
|
1489
|
+
view: "view";
|
|
1490
|
+
arm: "arm";
|
|
1491
|
+
disarm: "disarm";
|
|
1492
|
+
dismiss: "dismiss";
|
|
1493
|
+
open: "open";
|
|
1494
|
+
close: "close";
|
|
1495
|
+
unlock: "unlock";
|
|
1496
|
+
play: "play";
|
|
1497
|
+
acknowledge: "acknowledge";
|
|
1498
|
+
silence: "silence";
|
|
1499
|
+
snooze: "snooze";
|
|
1500
|
+
"arm-home": "arm-home";
|
|
1501
|
+
"arm-away": "arm-away";
|
|
1502
|
+
"arm-night": "arm-night";
|
|
1503
|
+
alert: "alert";
|
|
1504
|
+
}>>;
|
|
1505
|
+
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
1506
|
+
}, z.core.$strip>>>;
|
|
1507
|
+
}, z.core.$strip>>>;
|
|
1508
|
+
confirm: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1509
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1510
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
1511
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
1513
|
+
op: z.ZodEnum<{
|
|
1514
|
+
">=": ">=";
|
|
1515
|
+
"<=": "<=";
|
|
1516
|
+
">": ">";
|
|
1517
|
+
"<": "<";
|
|
1518
|
+
"==": "==";
|
|
1519
|
+
}>;
|
|
1520
|
+
count: z.ZodNumber;
|
|
1521
|
+
}, z.core.$strip>>;
|
|
1522
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1523
|
+
onTimeout: z.ZodDefault<z.ZodEnum<{
|
|
1524
|
+
fire: "fire";
|
|
1525
|
+
suppress: "suppress";
|
|
1526
|
+
}>>;
|
|
1527
|
+
maxImagePx: z.ZodDefault<z.ZodNumber>;
|
|
1528
|
+
}, z.core.$strip>>>;
|
|
1529
|
+
waitForEnhancement: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1530
|
+
groupIdleSec: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
1531
|
+
disabledTargetIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1532
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1533
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
1534
|
+
deviceState: z.ZodOptional<z.ZodObject<{
|
|
1535
|
+
deviceId: z.ZodNumber;
|
|
1536
|
+
states: z.ZodArray<z.ZodString>;
|
|
1537
|
+
}, z.core.$strip>>;
|
|
1538
|
+
scene: z.ZodOptional<z.ZodObject<{
|
|
1539
|
+
sceneId: z.ZodString;
|
|
1540
|
+
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
1541
|
+
requiredState: z.ZodEnum<{
|
|
1542
|
+
matched: "matched";
|
|
1543
|
+
diverged: "diverged";
|
|
1544
|
+
}>;
|
|
1545
|
+
latched: z.ZodOptional<z.ZodBoolean>;
|
|
1546
|
+
}, z.core.$strip>>;
|
|
1547
|
+
devices: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1548
|
+
classes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1549
|
+
classesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1550
|
+
minConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1551
|
+
zones: z.ZodOptional<z.ZodObject<{
|
|
1552
|
+
ids: z.ZodArray<z.ZodString>;
|
|
1553
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
1554
|
+
any: "any";
|
|
1555
|
+
all: "all";
|
|
1556
|
+
}>>;
|
|
1557
|
+
}, z.core.$strip>>;
|
|
1558
|
+
zonesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1559
|
+
crossing: z.ZodOptional<z.ZodEnum<{
|
|
1560
|
+
any: "any";
|
|
1561
|
+
enter: "enter";
|
|
1562
|
+
exit: "exit";
|
|
1563
|
+
}>>;
|
|
1564
|
+
labelEquals: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1565
|
+
identities: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1566
|
+
plates: z.ZodOptional<z.ZodObject<{
|
|
1567
|
+
values: z.ZodArray<z.ZodString>;
|
|
1568
|
+
maxDistance: z.ZodDefault<z.ZodNumber>;
|
|
1569
|
+
}, z.core.$strip>>;
|
|
1570
|
+
identitiesExclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1571
|
+
minImportance: z.ZodOptional<z.ZodNumber>;
|
|
1572
|
+
minDwellSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1573
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
1574
|
+
sensor: "sensor";
|
|
1575
|
+
any: "any";
|
|
1576
|
+
pipeline: "pipeline";
|
|
1577
|
+
audio: "audio";
|
|
1578
|
+
onboard: "onboard";
|
|
1579
|
+
}>>;
|
|
1580
|
+
minLabelConfidence: z.ZodOptional<z.ZodNumber>;
|
|
1581
|
+
eventTypeTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1582
|
+
sensorKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1583
|
+
packagePhase: z.ZodOptional<z.ZodEnum<{
|
|
1584
|
+
both: "both";
|
|
1585
|
+
delivered: "delivered";
|
|
1586
|
+
"picked-up": "picked-up";
|
|
1587
|
+
}>>;
|
|
1588
|
+
systemEvent: z.ZodOptional<z.ZodObject<{
|
|
1589
|
+
kinds: z.ZodArray<z.ZodEnum<{
|
|
1590
|
+
"device-disabled": "device-disabled";
|
|
1591
|
+
"device-online": "device-online";
|
|
1592
|
+
"device-offline": "device-offline";
|
|
1593
|
+
"device-enabled": "device-enabled";
|
|
1594
|
+
"device-battery-low": "device-battery-low";
|
|
1595
|
+
"device-battery-normal": "device-battery-normal";
|
|
1596
|
+
"device-consumable-low": "device-consumable-low";
|
|
1597
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
1598
|
+
"stream-online": "stream-online";
|
|
1599
|
+
"stream-offline": "stream-offline";
|
|
1600
|
+
"node-online": "node-online";
|
|
1601
|
+
"node-offline": "node-offline";
|
|
1602
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
1603
|
+
"detection-blind": "detection-blind";
|
|
1604
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
1605
|
+
"addon-update-available": "addon-update-available";
|
|
1606
|
+
"server-update-available": "server-update-available";
|
|
1607
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
1608
|
+
"alarm-triggered": "alarm-triggered";
|
|
1609
|
+
"alarm-armed": "alarm-armed";
|
|
1610
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
1611
|
+
"alarm-arming": "alarm-arming";
|
|
1612
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
1613
|
+
"alarm-pending": "alarm-pending";
|
|
1614
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
1615
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
1616
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1617
|
+
"addon-updated": "addon-updated";
|
|
1618
|
+
"server-updated": "server-updated";
|
|
1619
|
+
"export-completed": "export-completed";
|
|
1620
|
+
"backup-completed": "backup-completed";
|
|
1621
|
+
"camera-online": "camera-online";
|
|
1622
|
+
"camera-offline": "camera-offline";
|
|
1623
|
+
"camera-disabled": "camera-disabled";
|
|
1624
|
+
"camera-enabled": "camera-enabled";
|
|
1625
|
+
}>>;
|
|
1626
|
+
deviceIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1627
|
+
deviceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1628
|
+
nodeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1629
|
+
packageNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1630
|
+
}, z.core.$strip>>;
|
|
1631
|
+
customZones: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1632
|
+
kind: z.ZodLiteral<"polygon">;
|
|
1633
|
+
points: z.ZodArray<z.ZodObject<{
|
|
1634
|
+
x: z.ZodNumber;
|
|
1635
|
+
y: z.ZodNumber;
|
|
1636
|
+
}, z.core.$strip>>;
|
|
1637
|
+
}, z.core.$strip>>>;
|
|
1638
|
+
occupancy: z.ZodOptional<z.ZodObject<{
|
|
1639
|
+
zoneId: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
className: z.ZodOptional<z.ZodString>;
|
|
1641
|
+
op: z.ZodDefault<z.ZodEnum<{
|
|
1642
|
+
"became-occupied": "became-occupied";
|
|
1643
|
+
"became-free": "became-free";
|
|
1644
|
+
">=": ">=";
|
|
1645
|
+
"<=": "<=";
|
|
1646
|
+
}>>;
|
|
1647
|
+
count: z.ZodDefault<z.ZodNumber>;
|
|
1648
|
+
sustainSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1649
|
+
}, z.core.$strip>>;
|
|
1650
|
+
audio: z.ZodOptional<z.ZodObject<{
|
|
1651
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1652
|
+
dbThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1653
|
+
hitPercent: z.ZodDefault<z.ZodNumber>;
|
|
1654
|
+
samplingSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1655
|
+
confirmHits: z.ZodOptional<z.ZodNumber>;
|
|
1656
|
+
confirmWindowSec: z.ZodOptional<z.ZodNumber>;
|
|
1657
|
+
}, z.core.$strip>>;
|
|
1658
|
+
}, z.core.$strip>>;
|
|
1659
|
+
media: z.ZodOptional<z.ZodObject<{
|
|
1660
|
+
attach: z.ZodDefault<z.ZodEnum<{
|
|
1661
|
+
none: "none";
|
|
1662
|
+
keyFrame: "keyFrame";
|
|
1663
|
+
best: "best";
|
|
1664
|
+
"best-matching": "best-matching";
|
|
1665
|
+
}>>;
|
|
1666
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
1667
|
+
full: "full";
|
|
1668
|
+
boxed: "boxed";
|
|
1669
|
+
cropped: "cropped";
|
|
1670
|
+
}>>;
|
|
1671
|
+
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
1672
|
+
gif: z.ZodOptional<z.ZodBoolean>;
|
|
1673
|
+
clip: z.ZodOptional<z.ZodBoolean>;
|
|
1674
|
+
clipPreRollSec: z.ZodOptional<z.ZodNumber>;
|
|
1675
|
+
clipPostRollSec: z.ZodOptional<z.ZodNumber>;
|
|
1676
|
+
clipSpeed: z.ZodOptional<z.ZodNumber>;
|
|
1677
|
+
profile: z.ZodOptional<z.ZodEnum<{
|
|
1678
|
+
high: "high";
|
|
1679
|
+
mid: "mid";
|
|
1680
|
+
low: "low";
|
|
1681
|
+
}>>;
|
|
1682
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
1683
|
+
mosaic: "mosaic";
|
|
1684
|
+
each: "each";
|
|
1685
|
+
}>>;
|
|
1686
|
+
}, z.core.$strip>>;
|
|
1687
|
+
throttle: z.ZodOptional<z.ZodObject<{
|
|
1688
|
+
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
1689
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
1690
|
+
rule: "rule";
|
|
1691
|
+
"rule-device": "rule-device";
|
|
1692
|
+
}>>;
|
|
1693
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
1694
|
+
shared: "shared";
|
|
1695
|
+
"per-class": "per-class";
|
|
1696
|
+
}>>;
|
|
1697
|
+
}, z.core.$strip>>;
|
|
1698
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
1699
|
+
}, z.core.$strip>;
|
|
1700
|
+
clear: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1701
|
+
confirm: "confirm";
|
|
1702
|
+
schedule: "schedule";
|
|
1703
|
+
actions: "actions";
|
|
1704
|
+
targetUsers: "targetUsers";
|
|
1705
|
+
template: "template";
|
|
1706
|
+
snoozeAllowGlobal: "snoozeAllowGlobal";
|
|
1707
|
+
snoozeOptions: "snoozeOptions";
|
|
1708
|
+
waitForEnhancement: "waitForEnhancement";
|
|
1709
|
+
groupIdleSec: "groupIdleSec";
|
|
1710
|
+
}>>>;
|
|
1711
|
+
}, z.core.$strip>;
|
|
1712
|
+
export type NcRuleUpdateInput = z.infer<typeof NcRuleUpdateInputSchema>;
|
|
1361
1713
|
/** A persisted rule. */
|
|
1362
1714
|
export declare const NcRuleSchema: z.ZodObject<{
|
|
1363
1715
|
name: z.ZodString;
|
|
@@ -1449,6 +1801,10 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1449
1801
|
"alarm-disarmed": "alarm-disarmed";
|
|
1450
1802
|
"alarm-arming": "alarm-arming";
|
|
1451
1803
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
1804
|
+
"alarm-pending": "alarm-pending";
|
|
1805
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
1806
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
1807
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1452
1808
|
"addon-updated": "addon-updated";
|
|
1453
1809
|
"server-updated": "server-updated";
|
|
1454
1810
|
"export-completed": "export-completed";
|
|
@@ -1528,6 +1884,10 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1528
1884
|
mid: "mid";
|
|
1529
1885
|
low: "low";
|
|
1530
1886
|
}>>;
|
|
1887
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
1888
|
+
mosaic: "mosaic";
|
|
1889
|
+
each: "each";
|
|
1890
|
+
}>>;
|
|
1531
1891
|
}, z.core.$strip>>;
|
|
1532
1892
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
1533
1893
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1638,6 +1998,281 @@ export declare const NcTestResultSchema: z.ZodObject<{
|
|
|
1638
1998
|
label: z.ZodOptional<z.ZodString>;
|
|
1639
1999
|
}, z.core.$strip>;
|
|
1640
2000
|
export type NcTestResult = z.infer<typeof NcTestResultSchema>;
|
|
2001
|
+
/** The five rule kinds, as data. `NcRuleKind` in `notification/rule-kinds.ts`
|
|
2002
|
+
* is the same union; the template-vars spec pins the two together. */
|
|
2003
|
+
export declare const NcRuleKindSchema: z.ZodEnum<{
|
|
2004
|
+
sensor: "sensor";
|
|
2005
|
+
system: "system";
|
|
2006
|
+
detection: "detection";
|
|
2007
|
+
occupancy: "occupancy";
|
|
2008
|
+
sound: "sound";
|
|
2009
|
+
}>;
|
|
2010
|
+
/** Which producer renders a template: an ordinary rule, a timelapse, a digest. */
|
|
2011
|
+
export declare const NcTemplateFamilySchema: z.ZodEnum<{
|
|
2012
|
+
summary: "summary";
|
|
2013
|
+
rule: "rule";
|
|
2014
|
+
timelapse: "timelapse";
|
|
2015
|
+
}>;
|
|
2016
|
+
export type NcTemplateFamily = z.infer<typeof NcTemplateFamilySchema>;
|
|
2017
|
+
/** Which text field of that producer. `previewText` is the timelapse frame
|
|
2018
|
+
* caption, `captionText` the digest mosaic caption — both see fewer vars. */
|
|
2019
|
+
export declare const NcTemplateFieldSchema: z.ZodEnum<{
|
|
2020
|
+
title: "title";
|
|
2021
|
+
body: "body";
|
|
2022
|
+
previewText: "previewText";
|
|
2023
|
+
captionText: "captionText";
|
|
2024
|
+
}>;
|
|
2025
|
+
export type NcTemplateField = z.infer<typeof NcTemplateFieldSchema>;
|
|
2026
|
+
export declare const NcTemplateVarGroupSchema: z.ZodEnum<{
|
|
2027
|
+
sensor: "sensor";
|
|
2028
|
+
system: "system";
|
|
2029
|
+
subject: "subject";
|
|
2030
|
+
occupancy: "occupancy";
|
|
2031
|
+
ai: "ai";
|
|
2032
|
+
time: "time";
|
|
2033
|
+
sound: "sound";
|
|
2034
|
+
rule: "rule";
|
|
2035
|
+
place: "place";
|
|
2036
|
+
digest: "digest";
|
|
2037
|
+
}>;
|
|
2038
|
+
export type NcTemplateVarGroup = z.infer<typeof NcTemplateVarGroupSchema>;
|
|
2039
|
+
/**
|
|
2040
|
+
* ONE `{{var}}` a notification template may name.
|
|
2041
|
+
*
|
|
2042
|
+
* `families` / `fields` / `kinds` / `deliveries` / `systemEventKinds` say WHERE
|
|
2043
|
+
* it has a value; absent = no restriction on that axis. `systemEventKinds` is
|
|
2044
|
+
* read only for a `system` rule. `dynamic` declares a FAMILY of names
|
|
2045
|
+
* (`count_<class>`): the descriptor's `name` is the example member.
|
|
2046
|
+
*/
|
|
2047
|
+
export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
2048
|
+
name: z.ZodString;
|
|
2049
|
+
label: z.ZodString;
|
|
2050
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
example: z.ZodString;
|
|
2052
|
+
group: z.ZodEnum<{
|
|
2053
|
+
sensor: "sensor";
|
|
2054
|
+
system: "system";
|
|
2055
|
+
subject: "subject";
|
|
2056
|
+
occupancy: "occupancy";
|
|
2057
|
+
ai: "ai";
|
|
2058
|
+
time: "time";
|
|
2059
|
+
sound: "sound";
|
|
2060
|
+
rule: "rule";
|
|
2061
|
+
place: "place";
|
|
2062
|
+
digest: "digest";
|
|
2063
|
+
}>;
|
|
2064
|
+
families: z.ZodArray<z.ZodEnum<{
|
|
2065
|
+
summary: "summary";
|
|
2066
|
+
rule: "rule";
|
|
2067
|
+
timelapse: "timelapse";
|
|
2068
|
+
}>>;
|
|
2069
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2070
|
+
title: "title";
|
|
2071
|
+
body: "body";
|
|
2072
|
+
previewText: "previewText";
|
|
2073
|
+
captionText: "captionText";
|
|
2074
|
+
}>>>;
|
|
2075
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2076
|
+
sensor: "sensor";
|
|
2077
|
+
system: "system";
|
|
2078
|
+
detection: "detection";
|
|
2079
|
+
occupancy: "occupancy";
|
|
2080
|
+
sound: "sound";
|
|
2081
|
+
}>>>;
|
|
2082
|
+
deliveries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2083
|
+
"device-event": "device-event";
|
|
2084
|
+
immediate: "immediate";
|
|
2085
|
+
"track-end": "track-end";
|
|
2086
|
+
"package-event": "package-event";
|
|
2087
|
+
"system-event": "system-event";
|
|
2088
|
+
}>>>;
|
|
2089
|
+
systemEventKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2090
|
+
"device-disabled": "device-disabled";
|
|
2091
|
+
"device-online": "device-online";
|
|
2092
|
+
"device-offline": "device-offline";
|
|
2093
|
+
"device-enabled": "device-enabled";
|
|
2094
|
+
"device-battery-low": "device-battery-low";
|
|
2095
|
+
"device-battery-normal": "device-battery-normal";
|
|
2096
|
+
"device-consumable-low": "device-consumable-low";
|
|
2097
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2098
|
+
"stream-online": "stream-online";
|
|
2099
|
+
"stream-offline": "stream-offline";
|
|
2100
|
+
"node-online": "node-online";
|
|
2101
|
+
"node-offline": "node-offline";
|
|
2102
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
2103
|
+
"detection-blind": "detection-blind";
|
|
2104
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2105
|
+
"addon-update-available": "addon-update-available";
|
|
2106
|
+
"server-update-available": "server-update-available";
|
|
2107
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
2108
|
+
"alarm-triggered": "alarm-triggered";
|
|
2109
|
+
"alarm-armed": "alarm-armed";
|
|
2110
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
2111
|
+
"alarm-arming": "alarm-arming";
|
|
2112
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
2113
|
+
"alarm-pending": "alarm-pending";
|
|
2114
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
2115
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
2116
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
2117
|
+
"addon-updated": "addon-updated";
|
|
2118
|
+
"server-updated": "server-updated";
|
|
2119
|
+
"export-completed": "export-completed";
|
|
2120
|
+
"backup-completed": "backup-completed";
|
|
2121
|
+
"camera-online": "camera-online";
|
|
2122
|
+
"camera-offline": "camera-offline";
|
|
2123
|
+
"camera-disabled": "camera-disabled";
|
|
2124
|
+
"camera-enabled": "camera-enabled";
|
|
2125
|
+
}>>>;
|
|
2126
|
+
dynamic: z.ZodOptional<z.ZodObject<{
|
|
2127
|
+
prefix: z.ZodLiteral<"count_">;
|
|
2128
|
+
from: z.ZodLiteral<"classes">;
|
|
2129
|
+
}, z.core.$strip>>;
|
|
2130
|
+
}, z.core.$strip>;
|
|
2131
|
+
export type NcTemplateVarDescriptor = z.infer<typeof NcTemplateVarDescriptorSchema>;
|
|
2132
|
+
/** What an editor knows about the field being edited. */
|
|
2133
|
+
export declare const NcTemplateVarContextSchema: z.ZodObject<{
|
|
2134
|
+
family: z.ZodEnum<{
|
|
2135
|
+
summary: "summary";
|
|
2136
|
+
rule: "rule";
|
|
2137
|
+
timelapse: "timelapse";
|
|
2138
|
+
}>;
|
|
2139
|
+
field: z.ZodEnum<{
|
|
2140
|
+
title: "title";
|
|
2141
|
+
body: "body";
|
|
2142
|
+
previewText: "previewText";
|
|
2143
|
+
captionText: "captionText";
|
|
2144
|
+
}>;
|
|
2145
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2146
|
+
sensor: "sensor";
|
|
2147
|
+
system: "system";
|
|
2148
|
+
detection: "detection";
|
|
2149
|
+
occupancy: "occupancy";
|
|
2150
|
+
sound: "sound";
|
|
2151
|
+
}>>;
|
|
2152
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2153
|
+
"device-event": "device-event";
|
|
2154
|
+
immediate: "immediate";
|
|
2155
|
+
"track-end": "track-end";
|
|
2156
|
+
"package-event": "package-event";
|
|
2157
|
+
"system-event": "system-event";
|
|
2158
|
+
}>>;
|
|
2159
|
+
systemEventKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2160
|
+
"device-disabled": "device-disabled";
|
|
2161
|
+
"device-online": "device-online";
|
|
2162
|
+
"device-offline": "device-offline";
|
|
2163
|
+
"device-enabled": "device-enabled";
|
|
2164
|
+
"device-battery-low": "device-battery-low";
|
|
2165
|
+
"device-battery-normal": "device-battery-normal";
|
|
2166
|
+
"device-consumable-low": "device-consumable-low";
|
|
2167
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2168
|
+
"stream-online": "stream-online";
|
|
2169
|
+
"stream-offline": "stream-offline";
|
|
2170
|
+
"node-online": "node-online";
|
|
2171
|
+
"node-offline": "node-offline";
|
|
2172
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
2173
|
+
"detection-blind": "detection-blind";
|
|
2174
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2175
|
+
"addon-update-available": "addon-update-available";
|
|
2176
|
+
"server-update-available": "server-update-available";
|
|
2177
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
2178
|
+
"alarm-triggered": "alarm-triggered";
|
|
2179
|
+
"alarm-armed": "alarm-armed";
|
|
2180
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
2181
|
+
"alarm-arming": "alarm-arming";
|
|
2182
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
2183
|
+
"alarm-pending": "alarm-pending";
|
|
2184
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
2185
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
2186
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
2187
|
+
"addon-updated": "addon-updated";
|
|
2188
|
+
"server-updated": "server-updated";
|
|
2189
|
+
"export-completed": "export-completed";
|
|
2190
|
+
"backup-completed": "backup-completed";
|
|
2191
|
+
"camera-online": "camera-online";
|
|
2192
|
+
"camera-offline": "camera-offline";
|
|
2193
|
+
"camera-disabled": "camera-disabled";
|
|
2194
|
+
"camera-enabled": "camera-enabled";
|
|
2195
|
+
}>>>;
|
|
2196
|
+
}, z.core.$strip>;
|
|
2197
|
+
export type NcTemplateVarContext = z.infer<typeof NcTemplateVarContextSchema>;
|
|
2198
|
+
/** Input to `previewTemplate` — the editor's own context, plus the draft text. */
|
|
2199
|
+
export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
|
|
2200
|
+
context: z.ZodObject<{
|
|
2201
|
+
family: z.ZodEnum<{
|
|
2202
|
+
summary: "summary";
|
|
2203
|
+
rule: "rule";
|
|
2204
|
+
timelapse: "timelapse";
|
|
2205
|
+
}>;
|
|
2206
|
+
field: z.ZodEnum<{
|
|
2207
|
+
title: "title";
|
|
2208
|
+
body: "body";
|
|
2209
|
+
previewText: "previewText";
|
|
2210
|
+
captionText: "captionText";
|
|
2211
|
+
}>;
|
|
2212
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2213
|
+
sensor: "sensor";
|
|
2214
|
+
system: "system";
|
|
2215
|
+
detection: "detection";
|
|
2216
|
+
occupancy: "occupancy";
|
|
2217
|
+
sound: "sound";
|
|
2218
|
+
}>>;
|
|
2219
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2220
|
+
"device-event": "device-event";
|
|
2221
|
+
immediate: "immediate";
|
|
2222
|
+
"track-end": "track-end";
|
|
2223
|
+
"package-event": "package-event";
|
|
2224
|
+
"system-event": "system-event";
|
|
2225
|
+
}>>;
|
|
2226
|
+
systemEventKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
2227
|
+
"device-disabled": "device-disabled";
|
|
2228
|
+
"device-online": "device-online";
|
|
2229
|
+
"device-offline": "device-offline";
|
|
2230
|
+
"device-enabled": "device-enabled";
|
|
2231
|
+
"device-battery-low": "device-battery-low";
|
|
2232
|
+
"device-battery-normal": "device-battery-normal";
|
|
2233
|
+
"device-consumable-low": "device-consumable-low";
|
|
2234
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2235
|
+
"stream-online": "stream-online";
|
|
2236
|
+
"stream-offline": "stream-offline";
|
|
2237
|
+
"node-online": "node-online";
|
|
2238
|
+
"node-offline": "node-offline";
|
|
2239
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
2240
|
+
"detection-blind": "detection-blind";
|
|
2241
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2242
|
+
"addon-update-available": "addon-update-available";
|
|
2243
|
+
"server-update-available": "server-update-available";
|
|
2244
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
2245
|
+
"alarm-triggered": "alarm-triggered";
|
|
2246
|
+
"alarm-armed": "alarm-armed";
|
|
2247
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
2248
|
+
"alarm-arming": "alarm-arming";
|
|
2249
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
2250
|
+
"alarm-pending": "alarm-pending";
|
|
2251
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
2252
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
2253
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
2254
|
+
"addon-updated": "addon-updated";
|
|
2255
|
+
"server-updated": "server-updated";
|
|
2256
|
+
"export-completed": "export-completed";
|
|
2257
|
+
"backup-completed": "backup-completed";
|
|
2258
|
+
"camera-online": "camera-online";
|
|
2259
|
+
"camera-offline": "camera-offline";
|
|
2260
|
+
"camera-disabled": "camera-disabled";
|
|
2261
|
+
"camera-enabled": "camera-enabled";
|
|
2262
|
+
}>>>;
|
|
2263
|
+
}, z.core.$strip>;
|
|
2264
|
+
template: z.ZodObject<{
|
|
2265
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2266
|
+
body: z.ZodOptional<z.ZodString>;
|
|
2267
|
+
}, z.core.$strip>;
|
|
2268
|
+
}, z.core.$strip>;
|
|
2269
|
+
export type NcTemplatePreviewInput = z.infer<typeof NcTemplatePreviewInputSchema>;
|
|
2270
|
+
export declare const NcTemplatePreviewSchema: z.ZodObject<{
|
|
2271
|
+
title: z.ZodNullable<z.ZodString>;
|
|
2272
|
+
body: z.ZodNullable<z.ZodString>;
|
|
2273
|
+
unknown: z.ZodArray<z.ZodString>;
|
|
2274
|
+
}, z.core.$strip>;
|
|
2275
|
+
export type NcTemplatePreview = z.infer<typeof NcTemplatePreviewSchema>;
|
|
1641
2276
|
export declare const NcConditionDescriptorSchema: z.ZodObject<{
|
|
1642
2277
|
id: z.ZodString;
|
|
1643
2278
|
group: z.ZodEnum<{
|
|
@@ -1762,6 +2397,10 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
|
|
|
1762
2397
|
"alarm-disarmed": "alarm-disarmed";
|
|
1763
2398
|
"alarm-arming": "alarm-arming";
|
|
1764
2399
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
2400
|
+
"alarm-pending": "alarm-pending";
|
|
2401
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
2402
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
2403
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1765
2404
|
"addon-updated": "addon-updated";
|
|
1766
2405
|
"server-updated": "server-updated";
|
|
1767
2406
|
"export-completed": "export-completed";
|
|
@@ -1851,6 +2490,10 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
|
|
|
1851
2490
|
"alarm-disarmed": "alarm-disarmed";
|
|
1852
2491
|
"alarm-arming": "alarm-arming";
|
|
1853
2492
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
2493
|
+
"alarm-pending": "alarm-pending";
|
|
2494
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
2495
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
2496
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
1854
2497
|
"addon-updated": "addon-updated";
|
|
1855
2498
|
"server-updated": "server-updated";
|
|
1856
2499
|
"export-completed": "export-completed";
|
|
@@ -1953,8 +2596,23 @@ export declare const NcSnoozeSuppressedSchema: z.ZodObject<{
|
|
|
1953
2596
|
}, z.core.$strip>;
|
|
1954
2597
|
export type NcSnoozeSuppressed = z.infer<typeof NcSnoozeSuppressedSchema>;
|
|
1955
2598
|
/**
|
|
1956
|
-
*
|
|
1957
|
-
*
|
|
2599
|
+
* One arm mode's non-blocking list: devices that may be open when that mode
|
|
2600
|
+
* arms, without the arm being refused.
|
|
2601
|
+
*/
|
|
2602
|
+
export declare const NcAlarmNonBlockingSchema: z.ZodObject<{
|
|
2603
|
+
mode: z.ZodEnum<{
|
|
2604
|
+
home: "home";
|
|
2605
|
+
away: "away";
|
|
2606
|
+
night: "night";
|
|
2607
|
+
vacation: "vacation";
|
|
2608
|
+
custom_bypass: "custom_bypass";
|
|
2609
|
+
}>;
|
|
2610
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2611
|
+
}, z.core.$strip>;
|
|
2612
|
+
export type NcAlarmNonBlocking = z.infer<typeof NcAlarmNonBlockingSchema>;
|
|
2613
|
+
/**
|
|
2614
|
+
* The three durations the panel's state machine runs on, who hears about its
|
|
2615
|
+
* transitions, and which openings each mode tolerates.
|
|
1958
2616
|
*
|
|
1959
2617
|
* They live on the NOTIFICATION-RULES cap, not on `alarm-panel`, on purpose:
|
|
1960
2618
|
* `alarm-panel` is `deviceNative` and its other provider mirrors somebody
|
|
@@ -1966,17 +2624,44 @@ export declare const NcAlarmSettingsSchema: z.ZodObject<{
|
|
|
1966
2624
|
exitDelaySec: z.ZodNumber;
|
|
1967
2625
|
entryDelaySec: z.ZodNumber;
|
|
1968
2626
|
triggeredDurationSec: z.ZodNumber;
|
|
1969
|
-
announceArm: z.ZodBoolean
|
|
2627
|
+
announceArm: z.ZodOptional<z.ZodBoolean>;
|
|
1970
2628
|
announceTargets: z.ZodArray<z.ZodString>;
|
|
2629
|
+
nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2630
|
+
mode: z.ZodEnum<{
|
|
2631
|
+
home: "home";
|
|
2632
|
+
away: "away";
|
|
2633
|
+
night: "night";
|
|
2634
|
+
vacation: "vacation";
|
|
2635
|
+
custom_bypass: "custom_bypass";
|
|
2636
|
+
}>;
|
|
2637
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2638
|
+
}, z.core.$strip>>>;
|
|
1971
2639
|
}, z.core.$strip>;
|
|
1972
2640
|
export type NcAlarmSettings = z.infer<typeof NcAlarmSettingsSchema>;
|
|
1973
|
-
/**
|
|
2641
|
+
/**
|
|
2642
|
+
* Every field optional — a tab edits one control at a time.
|
|
2643
|
+
*
|
|
2644
|
+
* `nonBlocking` is re-declared WITHOUT its default: `.partial()` does not
|
|
2645
|
+
* remove an inner `.default()`, so a patch that never named the field would
|
|
2646
|
+
* parse to `nonBlocking: []` and wipe every mode's list on an unrelated edit
|
|
2647
|
+
* (the same trap {@link NcRulePatchSchema} documents).
|
|
2648
|
+
*/
|
|
1974
2649
|
export declare const NcAlarmSettingsPatchSchema: z.ZodObject<{
|
|
1975
2650
|
exitDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
1976
2651
|
entryDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
1977
2652
|
triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
1978
|
-
announceArm: z.ZodOptional<z.ZodBoolean
|
|
2653
|
+
announceArm: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1979
2654
|
announceTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2655
|
+
nonBlocking: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2656
|
+
mode: z.ZodEnum<{
|
|
2657
|
+
home: "home";
|
|
2658
|
+
away: "away";
|
|
2659
|
+
night: "night";
|
|
2660
|
+
vacation: "vacation";
|
|
2661
|
+
custom_bypass: "custom_bypass";
|
|
2662
|
+
}>;
|
|
2663
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2664
|
+
}, z.core.$strip>>>;
|
|
1980
2665
|
}, z.core.$strip>;
|
|
1981
2666
|
export type NcAlarmSettingsPatch = z.infer<typeof NcAlarmSettingsPatchSchema>;
|
|
1982
2667
|
/**
|
|
@@ -2030,14 +2715,113 @@ export declare const NcAlarmModeCoverageSchema: z.ZodObject<{
|
|
|
2030
2715
|
}, z.core.$strip>>>;
|
|
2031
2716
|
}, z.core.$strip>;
|
|
2032
2717
|
export type NcAlarmModeCoverage = z.infer<typeof NcAlarmModeCoverageSchema>;
|
|
2718
|
+
/** One covered device that reads open, and whether that refuses the arm. */
|
|
2719
|
+
export declare const NcAlarmOpeningSchema: z.ZodObject<{
|
|
2720
|
+
deviceId: z.ZodNumber;
|
|
2721
|
+
name: z.ZodString;
|
|
2722
|
+
state: z.ZodString;
|
|
2723
|
+
blocking: z.ZodBoolean;
|
|
2724
|
+
}, z.core.$strip>;
|
|
2725
|
+
export type NcAlarmOpening = z.infer<typeof NcAlarmOpeningSchema>;
|
|
2726
|
+
/** A device the panel is currently ignoring, and which side of it it is on. */
|
|
2727
|
+
export declare const NcAlarmExclusionViewSchema: z.ZodObject<{
|
|
2728
|
+
deviceId: z.ZodNumber;
|
|
2729
|
+
name: z.ZodString;
|
|
2730
|
+
phase: z.ZodEnum<{
|
|
2731
|
+
open: "open";
|
|
2732
|
+
closed: "closed";
|
|
2733
|
+
}>;
|
|
2734
|
+
}, z.core.$strip>;
|
|
2735
|
+
export type NcAlarmExclusionView = z.infer<typeof NcAlarmExclusionViewSchema>;
|
|
2736
|
+
/** One mode's openings: devices read open, plus those whose state is unknown. */
|
|
2737
|
+
export declare const NcAlarmModeOpeningsSchema: z.ZodObject<{
|
|
2738
|
+
mode: z.ZodEnum<{
|
|
2739
|
+
home: "home";
|
|
2740
|
+
away: "away";
|
|
2741
|
+
night: "night";
|
|
2742
|
+
vacation: "vacation";
|
|
2743
|
+
custom_bypass: "custom_bypass";
|
|
2744
|
+
}>;
|
|
2745
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
2746
|
+
deviceId: z.ZodNumber;
|
|
2747
|
+
name: z.ZodString;
|
|
2748
|
+
state: z.ZodString;
|
|
2749
|
+
blocking: z.ZodBoolean;
|
|
2750
|
+
}, z.core.$strip>>;
|
|
2751
|
+
unknown: z.ZodArray<z.ZodNumber>;
|
|
2752
|
+
}, z.core.$strip>;
|
|
2753
|
+
export type NcAlarmModeOpenings = z.infer<typeof NcAlarmModeOpeningsSchema>;
|
|
2754
|
+
export declare const NcAlarmLiveSchema: z.ZodObject<{
|
|
2755
|
+
state: z.ZodEnum<{
|
|
2756
|
+
pending: "pending";
|
|
2757
|
+
disarmed: "disarmed";
|
|
2758
|
+
armed_home: "armed_home";
|
|
2759
|
+
armed_away: "armed_away";
|
|
2760
|
+
armed_night: "armed_night";
|
|
2761
|
+
armed_vacation: "armed_vacation";
|
|
2762
|
+
armed_custom_bypass: "armed_custom_bypass";
|
|
2763
|
+
arming: "arming";
|
|
2764
|
+
disarming: "disarming";
|
|
2765
|
+
triggered: "triggered";
|
|
2766
|
+
}>;
|
|
2767
|
+
targetMode: z.ZodNullable<z.ZodEnum<{
|
|
2768
|
+
home: "home";
|
|
2769
|
+
away: "away";
|
|
2770
|
+
night: "night";
|
|
2771
|
+
vacation: "vacation";
|
|
2772
|
+
custom_bypass: "custom_bypass";
|
|
2773
|
+
}>>;
|
|
2774
|
+
availableModes: z.ZodArray<z.ZodEnum<{
|
|
2775
|
+
home: "home";
|
|
2776
|
+
away: "away";
|
|
2777
|
+
night: "night";
|
|
2778
|
+
vacation: "vacation";
|
|
2779
|
+
custom_bypass: "custom_bypass";
|
|
2780
|
+
}>>;
|
|
2781
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
2782
|
+
mode: z.ZodEnum<{
|
|
2783
|
+
home: "home";
|
|
2784
|
+
away: "away";
|
|
2785
|
+
night: "night";
|
|
2786
|
+
vacation: "vacation";
|
|
2787
|
+
custom_bypass: "custom_bypass";
|
|
2788
|
+
}>;
|
|
2789
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
2790
|
+
deviceId: z.ZodNumber;
|
|
2791
|
+
name: z.ZodString;
|
|
2792
|
+
state: z.ZodString;
|
|
2793
|
+
blocking: z.ZodBoolean;
|
|
2794
|
+
}, z.core.$strip>>;
|
|
2795
|
+
unknown: z.ZodArray<z.ZodNumber>;
|
|
2796
|
+
}, z.core.$strip>>;
|
|
2797
|
+
exclusions: z.ZodArray<z.ZodObject<{
|
|
2798
|
+
deviceId: z.ZodNumber;
|
|
2799
|
+
name: z.ZodString;
|
|
2800
|
+
phase: z.ZodEnum<{
|
|
2801
|
+
open: "open";
|
|
2802
|
+
closed: "closed";
|
|
2803
|
+
}>;
|
|
2804
|
+
}, z.core.$strip>>;
|
|
2805
|
+
}, z.core.$strip>;
|
|
2806
|
+
export type NcAlarmLive = z.infer<typeof NcAlarmLiveSchema>;
|
|
2033
2807
|
export declare const NcAlarmConfigSchema: z.ZodObject<{
|
|
2034
2808
|
deviceId: z.ZodNullable<z.ZodNumber>;
|
|
2035
2809
|
settings: z.ZodObject<{
|
|
2036
2810
|
exitDelaySec: z.ZodNumber;
|
|
2037
2811
|
entryDelaySec: z.ZodNumber;
|
|
2038
2812
|
triggeredDurationSec: z.ZodNumber;
|
|
2039
|
-
announceArm: z.ZodBoolean
|
|
2813
|
+
announceArm: z.ZodOptional<z.ZodBoolean>;
|
|
2040
2814
|
announceTargets: z.ZodArray<z.ZodString>;
|
|
2815
|
+
nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2816
|
+
mode: z.ZodEnum<{
|
|
2817
|
+
home: "home";
|
|
2818
|
+
away: "away";
|
|
2819
|
+
night: "night";
|
|
2820
|
+
vacation: "vacation";
|
|
2821
|
+
custom_bypass: "custom_bypass";
|
|
2822
|
+
}>;
|
|
2823
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
2824
|
+
}, z.core.$strip>>>;
|
|
2041
2825
|
}, z.core.$strip>;
|
|
2042
2826
|
coverage: z.ZodArray<z.ZodObject<{
|
|
2043
2827
|
mode: z.ZodEnum<{
|
|
@@ -2059,6 +2843,58 @@ export declare const NcAlarmConfigSchema: z.ZodObject<{
|
|
|
2059
2843
|
}>;
|
|
2060
2844
|
}, z.core.$strip>>>;
|
|
2061
2845
|
}, z.core.$strip>>;
|
|
2846
|
+
live: z.ZodOptional<z.ZodObject<{
|
|
2847
|
+
state: z.ZodEnum<{
|
|
2848
|
+
pending: "pending";
|
|
2849
|
+
disarmed: "disarmed";
|
|
2850
|
+
armed_home: "armed_home";
|
|
2851
|
+
armed_away: "armed_away";
|
|
2852
|
+
armed_night: "armed_night";
|
|
2853
|
+
armed_vacation: "armed_vacation";
|
|
2854
|
+
armed_custom_bypass: "armed_custom_bypass";
|
|
2855
|
+
arming: "arming";
|
|
2856
|
+
disarming: "disarming";
|
|
2857
|
+
triggered: "triggered";
|
|
2858
|
+
}>;
|
|
2859
|
+
targetMode: z.ZodNullable<z.ZodEnum<{
|
|
2860
|
+
home: "home";
|
|
2861
|
+
away: "away";
|
|
2862
|
+
night: "night";
|
|
2863
|
+
vacation: "vacation";
|
|
2864
|
+
custom_bypass: "custom_bypass";
|
|
2865
|
+
}>>;
|
|
2866
|
+
availableModes: z.ZodArray<z.ZodEnum<{
|
|
2867
|
+
home: "home";
|
|
2868
|
+
away: "away";
|
|
2869
|
+
night: "night";
|
|
2870
|
+
vacation: "vacation";
|
|
2871
|
+
custom_bypass: "custom_bypass";
|
|
2872
|
+
}>>;
|
|
2873
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
2874
|
+
mode: z.ZodEnum<{
|
|
2875
|
+
home: "home";
|
|
2876
|
+
away: "away";
|
|
2877
|
+
night: "night";
|
|
2878
|
+
vacation: "vacation";
|
|
2879
|
+
custom_bypass: "custom_bypass";
|
|
2880
|
+
}>;
|
|
2881
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
2882
|
+
deviceId: z.ZodNumber;
|
|
2883
|
+
name: z.ZodString;
|
|
2884
|
+
state: z.ZodString;
|
|
2885
|
+
blocking: z.ZodBoolean;
|
|
2886
|
+
}, z.core.$strip>>;
|
|
2887
|
+
unknown: z.ZodArray<z.ZodNumber>;
|
|
2888
|
+
}, z.core.$strip>>;
|
|
2889
|
+
exclusions: z.ZodArray<z.ZodObject<{
|
|
2890
|
+
deviceId: z.ZodNumber;
|
|
2891
|
+
name: z.ZodString;
|
|
2892
|
+
phase: z.ZodEnum<{
|
|
2893
|
+
open: "open";
|
|
2894
|
+
closed: "closed";
|
|
2895
|
+
}>;
|
|
2896
|
+
}, z.core.$strip>>;
|
|
2897
|
+
}, z.core.$strip>>;
|
|
2062
2898
|
}, z.core.$strip>;
|
|
2063
2899
|
export type NcAlarmConfig = z.infer<typeof NcAlarmConfigSchema>;
|
|
2064
2900
|
/**
|
|
@@ -2229,6 +3065,10 @@ export declare const notificationRulesCapability: {
|
|
|
2229
3065
|
"alarm-disarmed": "alarm-disarmed";
|
|
2230
3066
|
"alarm-arming": "alarm-arming";
|
|
2231
3067
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
3068
|
+
"alarm-pending": "alarm-pending";
|
|
3069
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
3070
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
3071
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
2232
3072
|
"addon-updated": "addon-updated";
|
|
2233
3073
|
"server-updated": "server-updated";
|
|
2234
3074
|
"export-completed": "export-completed";
|
|
@@ -2308,6 +3148,10 @@ export declare const notificationRulesCapability: {
|
|
|
2308
3148
|
mid: "mid";
|
|
2309
3149
|
low: "low";
|
|
2310
3150
|
}>>;
|
|
3151
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
3152
|
+
mosaic: "mosaic";
|
|
3153
|
+
each: "each";
|
|
3154
|
+
}>>;
|
|
2311
3155
|
}, z.core.$strip>>;
|
|
2312
3156
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
2313
3157
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2494,6 +3338,10 @@ export declare const notificationRulesCapability: {
|
|
|
2494
3338
|
"alarm-disarmed": "alarm-disarmed";
|
|
2495
3339
|
"alarm-arming": "alarm-arming";
|
|
2496
3340
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
3341
|
+
"alarm-pending": "alarm-pending";
|
|
3342
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
3343
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
3344
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
2497
3345
|
"addon-updated": "addon-updated";
|
|
2498
3346
|
"server-updated": "server-updated";
|
|
2499
3347
|
"export-completed": "export-completed";
|
|
@@ -2573,6 +3421,10 @@ export declare const notificationRulesCapability: {
|
|
|
2573
3421
|
mid: "mid";
|
|
2574
3422
|
low: "low";
|
|
2575
3423
|
}>>;
|
|
3424
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
3425
|
+
mosaic: "mosaic";
|
|
3426
|
+
each: "each";
|
|
3427
|
+
}>>;
|
|
2576
3428
|
}, z.core.$strip>>;
|
|
2577
3429
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
2578
3430
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2757,6 +3609,10 @@ export declare const notificationRulesCapability: {
|
|
|
2757
3609
|
"alarm-disarmed": "alarm-disarmed";
|
|
2758
3610
|
"alarm-arming": "alarm-arming";
|
|
2759
3611
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
3612
|
+
"alarm-pending": "alarm-pending";
|
|
3613
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
3614
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
3615
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
2760
3616
|
"addon-updated": "addon-updated";
|
|
2761
3617
|
"server-updated": "server-updated";
|
|
2762
3618
|
"export-completed": "export-completed";
|
|
@@ -2836,6 +3692,10 @@ export declare const notificationRulesCapability: {
|
|
|
2836
3692
|
mid: "mid";
|
|
2837
3693
|
low: "low";
|
|
2838
3694
|
}>>;
|
|
3695
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
3696
|
+
mosaic: "mosaic";
|
|
3697
|
+
each: "each";
|
|
3698
|
+
}>>;
|
|
2839
3699
|
}, z.core.$strip>>;
|
|
2840
3700
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
2841
3701
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3014,6 +3874,10 @@ export declare const notificationRulesCapability: {
|
|
|
3014
3874
|
"alarm-disarmed": "alarm-disarmed";
|
|
3015
3875
|
"alarm-arming": "alarm-arming";
|
|
3016
3876
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
3877
|
+
"alarm-pending": "alarm-pending";
|
|
3878
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
3879
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
3880
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
3017
3881
|
"addon-updated": "addon-updated";
|
|
3018
3882
|
"server-updated": "server-updated";
|
|
3019
3883
|
"export-completed": "export-completed";
|
|
@@ -3093,6 +3957,10 @@ export declare const notificationRulesCapability: {
|
|
|
3093
3957
|
mid: "mid";
|
|
3094
3958
|
low: "low";
|
|
3095
3959
|
}>>;
|
|
3960
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
3961
|
+
mosaic: "mosaic";
|
|
3962
|
+
each: "each";
|
|
3963
|
+
}>>;
|
|
3096
3964
|
}, z.core.$strip>>;
|
|
3097
3965
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
3098
3966
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3368,6 +4236,10 @@ export declare const notificationRulesCapability: {
|
|
|
3368
4236
|
"alarm-disarmed": "alarm-disarmed";
|
|
3369
4237
|
"alarm-arming": "alarm-arming";
|
|
3370
4238
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
4239
|
+
"alarm-pending": "alarm-pending";
|
|
4240
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
4241
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
4242
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
3371
4243
|
"addon-updated": "addon-updated";
|
|
3372
4244
|
"server-updated": "server-updated";
|
|
3373
4245
|
"export-completed": "export-completed";
|
|
@@ -3433,6 +4305,10 @@ export declare const notificationRulesCapability: {
|
|
|
3433
4305
|
mid: "mid";
|
|
3434
4306
|
low: "low";
|
|
3435
4307
|
}>>;
|
|
4308
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
4309
|
+
mosaic: "mosaic";
|
|
4310
|
+
each: "each";
|
|
4311
|
+
}>>;
|
|
3436
4312
|
}, z.core.$strip>>;
|
|
3437
4313
|
throttle: z.ZodOptional<z.ZodObject<{
|
|
3438
4314
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3447,6 +4323,17 @@ export declare const notificationRulesCapability: {
|
|
|
3447
4323
|
}, z.core.$strip>>;
|
|
3448
4324
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
3449
4325
|
}, z.core.$strip>;
|
|
4326
|
+
clear: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4327
|
+
confirm: "confirm";
|
|
4328
|
+
schedule: "schedule";
|
|
4329
|
+
actions: "actions";
|
|
4330
|
+
targetUsers: "targetUsers";
|
|
4331
|
+
template: "template";
|
|
4332
|
+
snoozeAllowGlobal: "snoozeAllowGlobal";
|
|
4333
|
+
snoozeOptions: "snoozeOptions";
|
|
4334
|
+
waitForEnhancement: "waitForEnhancement";
|
|
4335
|
+
groupIdleSec: "groupIdleSec";
|
|
4336
|
+
}>>>;
|
|
3450
4337
|
}, z.core.$strip>, z.ZodObject<{
|
|
3451
4338
|
rule: z.ZodObject<{
|
|
3452
4339
|
name: z.ZodString;
|
|
@@ -3538,6 +4425,10 @@ export declare const notificationRulesCapability: {
|
|
|
3538
4425
|
"alarm-disarmed": "alarm-disarmed";
|
|
3539
4426
|
"alarm-arming": "alarm-arming";
|
|
3540
4427
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
4428
|
+
"alarm-pending": "alarm-pending";
|
|
4429
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
4430
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
4431
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
3541
4432
|
"addon-updated": "addon-updated";
|
|
3542
4433
|
"server-updated": "server-updated";
|
|
3543
4434
|
"export-completed": "export-completed";
|
|
@@ -3617,6 +4508,10 @@ export declare const notificationRulesCapability: {
|
|
|
3617
4508
|
mid: "mid";
|
|
3618
4509
|
low: "low";
|
|
3619
4510
|
}>>;
|
|
4511
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
4512
|
+
mosaic: "mosaic";
|
|
4513
|
+
each: "each";
|
|
4514
|
+
}>>;
|
|
3620
4515
|
}, z.core.$strip>>;
|
|
3621
4516
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
3622
4517
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3883,6 +4778,10 @@ export declare const notificationRulesCapability: {
|
|
|
3883
4778
|
"alarm-disarmed": "alarm-disarmed";
|
|
3884
4779
|
"alarm-arming": "alarm-arming";
|
|
3885
4780
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
4781
|
+
"alarm-pending": "alarm-pending";
|
|
4782
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
4783
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
4784
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
3886
4785
|
"addon-updated": "addon-updated";
|
|
3887
4786
|
"server-updated": "server-updated";
|
|
3888
4787
|
"export-completed": "export-completed";
|
|
@@ -3962,6 +4861,10 @@ export declare const notificationRulesCapability: {
|
|
|
3962
4861
|
mid: "mid";
|
|
3963
4862
|
low: "low";
|
|
3964
4863
|
}>>;
|
|
4864
|
+
linkedCameras: z.ZodOptional<z.ZodEnum<{
|
|
4865
|
+
mosaic: "mosaic";
|
|
4866
|
+
each: "each";
|
|
4867
|
+
}>>;
|
|
3965
4868
|
}, z.core.$strip>>;
|
|
3966
4869
|
throttle: z.ZodDefault<z.ZodObject<{
|
|
3967
4870
|
cooldownSec: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4156,6 +5059,173 @@ export declare const notificationRulesCapability: {
|
|
|
4156
5059
|
}, z.core.$strip>>;
|
|
4157
5060
|
}, z.core.$strip>>;
|
|
4158
5061
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
5062
|
+
/** The declared `{{var}}` vocabulary; editors filter it with `templateVarsFor`. */
|
|
5063
|
+
readonly getTemplateCatalog: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
5064
|
+
vars: z.ZodArray<z.ZodObject<{
|
|
5065
|
+
name: z.ZodString;
|
|
5066
|
+
label: z.ZodString;
|
|
5067
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5068
|
+
example: z.ZodString;
|
|
5069
|
+
group: z.ZodEnum<{
|
|
5070
|
+
sensor: "sensor";
|
|
5071
|
+
system: "system";
|
|
5072
|
+
subject: "subject";
|
|
5073
|
+
occupancy: "occupancy";
|
|
5074
|
+
ai: "ai";
|
|
5075
|
+
time: "time";
|
|
5076
|
+
sound: "sound";
|
|
5077
|
+
rule: "rule";
|
|
5078
|
+
place: "place";
|
|
5079
|
+
digest: "digest";
|
|
5080
|
+
}>;
|
|
5081
|
+
families: z.ZodArray<z.ZodEnum<{
|
|
5082
|
+
summary: "summary";
|
|
5083
|
+
rule: "rule";
|
|
5084
|
+
timelapse: "timelapse";
|
|
5085
|
+
}>>;
|
|
5086
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5087
|
+
title: "title";
|
|
5088
|
+
body: "body";
|
|
5089
|
+
previewText: "previewText";
|
|
5090
|
+
captionText: "captionText";
|
|
5091
|
+
}>>>;
|
|
5092
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5093
|
+
sensor: "sensor";
|
|
5094
|
+
system: "system";
|
|
5095
|
+
detection: "detection";
|
|
5096
|
+
occupancy: "occupancy";
|
|
5097
|
+
sound: "sound";
|
|
5098
|
+
}>>>;
|
|
5099
|
+
deliveries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5100
|
+
"device-event": "device-event";
|
|
5101
|
+
immediate: "immediate";
|
|
5102
|
+
"track-end": "track-end";
|
|
5103
|
+
"package-event": "package-event";
|
|
5104
|
+
"system-event": "system-event";
|
|
5105
|
+
}>>>;
|
|
5106
|
+
systemEventKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5107
|
+
"device-disabled": "device-disabled";
|
|
5108
|
+
"device-online": "device-online";
|
|
5109
|
+
"device-offline": "device-offline";
|
|
5110
|
+
"device-enabled": "device-enabled";
|
|
5111
|
+
"device-battery-low": "device-battery-low";
|
|
5112
|
+
"device-battery-normal": "device-battery-normal";
|
|
5113
|
+
"device-consumable-low": "device-consumable-low";
|
|
5114
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
5115
|
+
"stream-online": "stream-online";
|
|
5116
|
+
"stream-offline": "stream-offline";
|
|
5117
|
+
"node-online": "node-online";
|
|
5118
|
+
"node-offline": "node-offline";
|
|
5119
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
5120
|
+
"detection-blind": "detection-blind";
|
|
5121
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
5122
|
+
"addon-update-available": "addon-update-available";
|
|
5123
|
+
"server-update-available": "server-update-available";
|
|
5124
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
5125
|
+
"alarm-triggered": "alarm-triggered";
|
|
5126
|
+
"alarm-armed": "alarm-armed";
|
|
5127
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
5128
|
+
"alarm-arming": "alarm-arming";
|
|
5129
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
5130
|
+
"alarm-pending": "alarm-pending";
|
|
5131
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
5132
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
5133
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
5134
|
+
"addon-updated": "addon-updated";
|
|
5135
|
+
"server-updated": "server-updated";
|
|
5136
|
+
"export-completed": "export-completed";
|
|
5137
|
+
"backup-completed": "backup-completed";
|
|
5138
|
+
"camera-online": "camera-online";
|
|
5139
|
+
"camera-offline": "camera-offline";
|
|
5140
|
+
"camera-disabled": "camera-disabled";
|
|
5141
|
+
"camera-enabled": "camera-enabled";
|
|
5142
|
+
}>>>;
|
|
5143
|
+
dynamic: z.ZodOptional<z.ZodObject<{
|
|
5144
|
+
prefix: z.ZodLiteral<"count_">;
|
|
5145
|
+
from: z.ZodLiteral<"classes">;
|
|
5146
|
+
}, z.core.$strip>>;
|
|
5147
|
+
}, z.core.$strip>>;
|
|
5148
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
5149
|
+
/**
|
|
5150
|
+
* Render a template with example values, through the hub's text catalog.
|
|
5151
|
+
* Pure: sends nothing. A MUTATION only for transport — a 2.5k-char draft in
|
|
5152
|
+
* a batched GET URL risks length limits — so access stays `view`, the same
|
|
5153
|
+
* as `getTemplateCatalog`.
|
|
5154
|
+
*/
|
|
5155
|
+
readonly previewTemplate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
5156
|
+
context: z.ZodObject<{
|
|
5157
|
+
family: z.ZodEnum<{
|
|
5158
|
+
summary: "summary";
|
|
5159
|
+
rule: "rule";
|
|
5160
|
+
timelapse: "timelapse";
|
|
5161
|
+
}>;
|
|
5162
|
+
field: z.ZodEnum<{
|
|
5163
|
+
title: "title";
|
|
5164
|
+
body: "body";
|
|
5165
|
+
previewText: "previewText";
|
|
5166
|
+
captionText: "captionText";
|
|
5167
|
+
}>;
|
|
5168
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
5169
|
+
sensor: "sensor";
|
|
5170
|
+
system: "system";
|
|
5171
|
+
detection: "detection";
|
|
5172
|
+
occupancy: "occupancy";
|
|
5173
|
+
sound: "sound";
|
|
5174
|
+
}>>;
|
|
5175
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
5176
|
+
"device-event": "device-event";
|
|
5177
|
+
immediate: "immediate";
|
|
5178
|
+
"track-end": "track-end";
|
|
5179
|
+
"package-event": "package-event";
|
|
5180
|
+
"system-event": "system-event";
|
|
5181
|
+
}>>;
|
|
5182
|
+
systemEventKinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5183
|
+
"device-disabled": "device-disabled";
|
|
5184
|
+
"device-online": "device-online";
|
|
5185
|
+
"device-offline": "device-offline";
|
|
5186
|
+
"device-enabled": "device-enabled";
|
|
5187
|
+
"device-battery-low": "device-battery-low";
|
|
5188
|
+
"device-battery-normal": "device-battery-normal";
|
|
5189
|
+
"device-consumable-low": "device-consumable-low";
|
|
5190
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
5191
|
+
"stream-online": "stream-online";
|
|
5192
|
+
"stream-offline": "stream-offline";
|
|
5193
|
+
"node-online": "node-online";
|
|
5194
|
+
"node-offline": "node-offline";
|
|
5195
|
+
"node-inference-unavailable": "node-inference-unavailable";
|
|
5196
|
+
"detection-blind": "detection-blind";
|
|
5197
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
5198
|
+
"addon-update-available": "addon-update-available";
|
|
5199
|
+
"server-update-available": "server-update-available";
|
|
5200
|
+
"wrapper-update-available": "wrapper-update-available";
|
|
5201
|
+
"alarm-triggered": "alarm-triggered";
|
|
5202
|
+
"alarm-armed": "alarm-armed";
|
|
5203
|
+
"alarm-disarmed": "alarm-disarmed";
|
|
5204
|
+
"alarm-arming": "alarm-arming";
|
|
5205
|
+
"alarm-arm-refused": "alarm-arm-refused";
|
|
5206
|
+
"alarm-pending": "alarm-pending";
|
|
5207
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
5208
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
5209
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
5210
|
+
"addon-updated": "addon-updated";
|
|
5211
|
+
"server-updated": "server-updated";
|
|
5212
|
+
"export-completed": "export-completed";
|
|
5213
|
+
"backup-completed": "backup-completed";
|
|
5214
|
+
"camera-online": "camera-online";
|
|
5215
|
+
"camera-offline": "camera-offline";
|
|
5216
|
+
"camera-disabled": "camera-disabled";
|
|
5217
|
+
"camera-enabled": "camera-enabled";
|
|
5218
|
+
}>>>;
|
|
5219
|
+
}, z.core.$strip>;
|
|
5220
|
+
template: z.ZodObject<{
|
|
5221
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5222
|
+
body: z.ZodOptional<z.ZodString>;
|
|
5223
|
+
}, z.core.$strip>;
|
|
5224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5225
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5226
|
+
body: z.ZodNullable<z.ZodString>;
|
|
5227
|
+
unknown: z.ZodArray<z.ZodString>;
|
|
5228
|
+
}, z.core.$strip>, "mutation">;
|
|
4159
5229
|
/**
|
|
4160
5230
|
* Queryable delivery history — a read-only view over the durable outbox
|
|
4161
5231
|
* (fired rule, subject summary, target, status, timestamps, error on a
|
|
@@ -4241,6 +5311,10 @@ export declare const notificationRulesCapability: {
|
|
|
4241
5311
|
"alarm-disarmed": "alarm-disarmed";
|
|
4242
5312
|
"alarm-arming": "alarm-arming";
|
|
4243
5313
|
"alarm-arm-refused": "alarm-arm-refused";
|
|
5314
|
+
"alarm-pending": "alarm-pending";
|
|
5315
|
+
"alarm-rearmed": "alarm-rearmed";
|
|
5316
|
+
"alarm-sensor-bypass": "alarm-sensor-bypass";
|
|
5317
|
+
"alarm-check-failed": "alarm-check-failed";
|
|
4244
5318
|
"addon-updated": "addon-updated";
|
|
4245
5319
|
"server-updated": "server-updated";
|
|
4246
5320
|
"export-completed": "export-completed";
|
|
@@ -4361,7 +5435,10 @@ export declare const notificationRulesCapability: {
|
|
|
4361
5435
|
readonly caller: "required";
|
|
4362
5436
|
};
|
|
4363
5437
|
/**
|
|
4364
|
-
* The alarm panel's
|
|
5438
|
+
* The alarm panel's settings, what each mode ACTUALLY arms, and — when a
|
|
5439
|
+
* panel exists — its `live` state: current state and target mode, what
|
|
5440
|
+
* each mode would find open (blocking or not, and what is unknown), and
|
|
5441
|
+
* the devices currently excluded.
|
|
4365
5442
|
*
|
|
4366
5443
|
* Coverage is returned by the same call as the settings on purpose: they
|
|
4367
5444
|
* are read together or not at all. An editor that showed the delays
|
|
@@ -4375,8 +5452,18 @@ export declare const notificationRulesCapability: {
|
|
|
4375
5452
|
exitDelaySec: z.ZodNumber;
|
|
4376
5453
|
entryDelaySec: z.ZodNumber;
|
|
4377
5454
|
triggeredDurationSec: z.ZodNumber;
|
|
4378
|
-
announceArm: z.ZodBoolean
|
|
5455
|
+
announceArm: z.ZodOptional<z.ZodBoolean>;
|
|
4379
5456
|
announceTargets: z.ZodArray<z.ZodString>;
|
|
5457
|
+
nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5458
|
+
mode: z.ZodEnum<{
|
|
5459
|
+
home: "home";
|
|
5460
|
+
away: "away";
|
|
5461
|
+
night: "night";
|
|
5462
|
+
vacation: "vacation";
|
|
5463
|
+
custom_bypass: "custom_bypass";
|
|
5464
|
+
}>;
|
|
5465
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
5466
|
+
}, z.core.$strip>>>;
|
|
4380
5467
|
}, z.core.$strip>;
|
|
4381
5468
|
coverage: z.ZodArray<z.ZodObject<{
|
|
4382
5469
|
mode: z.ZodEnum<{
|
|
@@ -4398,9 +5485,63 @@ export declare const notificationRulesCapability: {
|
|
|
4398
5485
|
}>;
|
|
4399
5486
|
}, z.core.$strip>>>;
|
|
4400
5487
|
}, z.core.$strip>>;
|
|
5488
|
+
live: z.ZodOptional<z.ZodObject<{
|
|
5489
|
+
state: z.ZodEnum<{
|
|
5490
|
+
pending: "pending";
|
|
5491
|
+
disarmed: "disarmed";
|
|
5492
|
+
armed_home: "armed_home";
|
|
5493
|
+
armed_away: "armed_away";
|
|
5494
|
+
armed_night: "armed_night";
|
|
5495
|
+
armed_vacation: "armed_vacation";
|
|
5496
|
+
armed_custom_bypass: "armed_custom_bypass";
|
|
5497
|
+
arming: "arming";
|
|
5498
|
+
disarming: "disarming";
|
|
5499
|
+
triggered: "triggered";
|
|
5500
|
+
}>;
|
|
5501
|
+
targetMode: z.ZodNullable<z.ZodEnum<{
|
|
5502
|
+
home: "home";
|
|
5503
|
+
away: "away";
|
|
5504
|
+
night: "night";
|
|
5505
|
+
vacation: "vacation";
|
|
5506
|
+
custom_bypass: "custom_bypass";
|
|
5507
|
+
}>>;
|
|
5508
|
+
availableModes: z.ZodArray<z.ZodEnum<{
|
|
5509
|
+
home: "home";
|
|
5510
|
+
away: "away";
|
|
5511
|
+
night: "night";
|
|
5512
|
+
vacation: "vacation";
|
|
5513
|
+
custom_bypass: "custom_bypass";
|
|
5514
|
+
}>>;
|
|
5515
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
5516
|
+
mode: z.ZodEnum<{
|
|
5517
|
+
home: "home";
|
|
5518
|
+
away: "away";
|
|
5519
|
+
night: "night";
|
|
5520
|
+
vacation: "vacation";
|
|
5521
|
+
custom_bypass: "custom_bypass";
|
|
5522
|
+
}>;
|
|
5523
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
5524
|
+
deviceId: z.ZodNumber;
|
|
5525
|
+
name: z.ZodString;
|
|
5526
|
+
state: z.ZodString;
|
|
5527
|
+
blocking: z.ZodBoolean;
|
|
5528
|
+
}, z.core.$strip>>;
|
|
5529
|
+
unknown: z.ZodArray<z.ZodNumber>;
|
|
5530
|
+
}, z.core.$strip>>;
|
|
5531
|
+
exclusions: z.ZodArray<z.ZodObject<{
|
|
5532
|
+
deviceId: z.ZodNumber;
|
|
5533
|
+
name: z.ZodString;
|
|
5534
|
+
phase: z.ZodEnum<{
|
|
5535
|
+
open: "open";
|
|
5536
|
+
closed: "closed";
|
|
5537
|
+
}>;
|
|
5538
|
+
}, z.core.$strip>>;
|
|
5539
|
+
}, z.core.$strip>>;
|
|
4401
5540
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
4402
5541
|
/**
|
|
4403
|
-
* Patch the durations
|
|
5542
|
+
* Patch the settings (durations, recipients, per-mode non-blocking lists;
|
|
5543
|
+
* `announceArm` is accepted and ignored — D630). Returns the WHOLE config,
|
|
5544
|
+
* coverage and `live` included, so a
|
|
4404
5545
|
* client never has to guess what the server settled on — the panel clamps
|
|
4405
5546
|
* and normalises, and a form that re-rendered from its own input would
|
|
4406
5547
|
* show a value the alarm is not using.
|
|
@@ -4410,8 +5551,18 @@ export declare const notificationRulesCapability: {
|
|
|
4410
5551
|
exitDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
4411
5552
|
entryDelaySec: z.ZodOptional<z.ZodNumber>;
|
|
4412
5553
|
triggeredDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
4413
|
-
announceArm: z.ZodOptional<z.ZodBoolean
|
|
5554
|
+
announceArm: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
4414
5555
|
announceTargets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5556
|
+
nonBlocking: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5557
|
+
mode: z.ZodEnum<{
|
|
5558
|
+
home: "home";
|
|
5559
|
+
away: "away";
|
|
5560
|
+
night: "night";
|
|
5561
|
+
vacation: "vacation";
|
|
5562
|
+
custom_bypass: "custom_bypass";
|
|
5563
|
+
}>;
|
|
5564
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
5565
|
+
}, z.core.$strip>>>;
|
|
4415
5566
|
}, z.core.$strip>;
|
|
4416
5567
|
}, z.core.$strip>, z.ZodObject<{
|
|
4417
5568
|
deviceId: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4419,8 +5570,18 @@ export declare const notificationRulesCapability: {
|
|
|
4419
5570
|
exitDelaySec: z.ZodNumber;
|
|
4420
5571
|
entryDelaySec: z.ZodNumber;
|
|
4421
5572
|
triggeredDurationSec: z.ZodNumber;
|
|
4422
|
-
announceArm: z.ZodBoolean
|
|
5573
|
+
announceArm: z.ZodOptional<z.ZodBoolean>;
|
|
4423
5574
|
announceTargets: z.ZodArray<z.ZodString>;
|
|
5575
|
+
nonBlocking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5576
|
+
mode: z.ZodEnum<{
|
|
5577
|
+
home: "home";
|
|
5578
|
+
away: "away";
|
|
5579
|
+
night: "night";
|
|
5580
|
+
vacation: "vacation";
|
|
5581
|
+
custom_bypass: "custom_bypass";
|
|
5582
|
+
}>;
|
|
5583
|
+
deviceIds: z.ZodArray<z.ZodNumber>;
|
|
5584
|
+
}, z.core.$strip>>>;
|
|
4424
5585
|
}, z.core.$strip>;
|
|
4425
5586
|
coverage: z.ZodArray<z.ZodObject<{
|
|
4426
5587
|
mode: z.ZodEnum<{
|
|
@@ -4442,6 +5603,58 @@ export declare const notificationRulesCapability: {
|
|
|
4442
5603
|
}>;
|
|
4443
5604
|
}, z.core.$strip>>>;
|
|
4444
5605
|
}, z.core.$strip>>;
|
|
5606
|
+
live: z.ZodOptional<z.ZodObject<{
|
|
5607
|
+
state: z.ZodEnum<{
|
|
5608
|
+
pending: "pending";
|
|
5609
|
+
disarmed: "disarmed";
|
|
5610
|
+
armed_home: "armed_home";
|
|
5611
|
+
armed_away: "armed_away";
|
|
5612
|
+
armed_night: "armed_night";
|
|
5613
|
+
armed_vacation: "armed_vacation";
|
|
5614
|
+
armed_custom_bypass: "armed_custom_bypass";
|
|
5615
|
+
arming: "arming";
|
|
5616
|
+
disarming: "disarming";
|
|
5617
|
+
triggered: "triggered";
|
|
5618
|
+
}>;
|
|
5619
|
+
targetMode: z.ZodNullable<z.ZodEnum<{
|
|
5620
|
+
home: "home";
|
|
5621
|
+
away: "away";
|
|
5622
|
+
night: "night";
|
|
5623
|
+
vacation: "vacation";
|
|
5624
|
+
custom_bypass: "custom_bypass";
|
|
5625
|
+
}>>;
|
|
5626
|
+
availableModes: z.ZodArray<z.ZodEnum<{
|
|
5627
|
+
home: "home";
|
|
5628
|
+
away: "away";
|
|
5629
|
+
night: "night";
|
|
5630
|
+
vacation: "vacation";
|
|
5631
|
+
custom_bypass: "custom_bypass";
|
|
5632
|
+
}>>;
|
|
5633
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
5634
|
+
mode: z.ZodEnum<{
|
|
5635
|
+
home: "home";
|
|
5636
|
+
away: "away";
|
|
5637
|
+
night: "night";
|
|
5638
|
+
vacation: "vacation";
|
|
5639
|
+
custom_bypass: "custom_bypass";
|
|
5640
|
+
}>;
|
|
5641
|
+
devices: z.ZodArray<z.ZodObject<{
|
|
5642
|
+
deviceId: z.ZodNumber;
|
|
5643
|
+
name: z.ZodString;
|
|
5644
|
+
state: z.ZodString;
|
|
5645
|
+
blocking: z.ZodBoolean;
|
|
5646
|
+
}, z.core.$strip>>;
|
|
5647
|
+
unknown: z.ZodArray<z.ZodNumber>;
|
|
5648
|
+
}, z.core.$strip>>;
|
|
5649
|
+
exclusions: z.ZodArray<z.ZodObject<{
|
|
5650
|
+
deviceId: z.ZodNumber;
|
|
5651
|
+
name: z.ZodString;
|
|
5652
|
+
phase: z.ZodEnum<{
|
|
5653
|
+
open: "open";
|
|
5654
|
+
closed: "closed";
|
|
5655
|
+
}>;
|
|
5656
|
+
}, z.core.$strip>>;
|
|
5657
|
+
}, z.core.$strip>>;
|
|
4445
5658
|
}, z.core.$strip>, "mutation">;
|
|
4446
5659
|
};
|
|
4447
5660
|
};
|