@camstack/types 1.2.188 → 1.2.190
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.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/camera/stream-pick.d.ts +71 -0
- package/dist/capabilities/camera-streams.cap.d.ts +10 -0
- package/dist/capabilities/index.d.ts +5 -3
- package/dist/capabilities/native-object-detection.cap.d.ts +67 -0
- package/dist/capabilities/notification-rules.cap.d.ts +60 -12
- package/dist/capabilities/osd-manager.cap.d.ts +18 -0
- package/dist/capabilities/stream-broker.cap.d.ts +37 -0
- package/dist/capabilities/stream-signals.cap.d.ts +80 -0
- package/dist/capabilities/webrtc-session.cap.d.ts +1 -0
- package/dist/enums/event-category.d.ts +14 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-ZyX6jcse.mjs → event-category-BVDXG4tB.mjs} +14 -0
- package/dist/{event-category-yW4s1MGD.js → event-category-BVfsrBYA.js} +14 -0
- package/dist/generated/addon-api.d.ts +36 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +4 -1
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +442 -39
- package/dist/index.mjs +434 -40
- package/dist/{sleep-DXsYD0RX.js → sleep-B8nfmQ8a.js} +8 -2
- package/dist/{sleep-DBKu2-U5.mjs → sleep-BEyvfshj.mjs} +8 -2
- package/package.json +1 -1
|
@@ -72,6 +72,8 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
|
|
|
72
72
|
"device-enabled": "device-enabled";
|
|
73
73
|
"device-battery-low": "device-battery-low";
|
|
74
74
|
"device-battery-normal": "device-battery-normal";
|
|
75
|
+
"device-consumable-low": "device-consumable-low";
|
|
76
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
75
77
|
"stream-online": "stream-online";
|
|
76
78
|
"stream-offline": "stream-offline";
|
|
77
79
|
"node-online": "node-online";
|
|
@@ -90,6 +92,7 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
|
|
|
90
92
|
"addon-updated": "addon-updated";
|
|
91
93
|
"server-updated": "server-updated";
|
|
92
94
|
"export-completed": "export-completed";
|
|
95
|
+
"backup-completed": "backup-completed";
|
|
93
96
|
"camera-online": "camera-online";
|
|
94
97
|
"camera-offline": "camera-offline";
|
|
95
98
|
"camera-disabled": "camera-disabled";
|
|
@@ -128,6 +131,8 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
|
|
|
128
131
|
"device-enabled": "device-enabled";
|
|
129
132
|
"device-battery-low": "device-battery-low";
|
|
130
133
|
"device-battery-normal": "device-battery-normal";
|
|
134
|
+
"device-consumable-low": "device-consumable-low";
|
|
135
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
131
136
|
"stream-online": "stream-online";
|
|
132
137
|
"stream-offline": "stream-offline";
|
|
133
138
|
"node-online": "node-online";
|
|
@@ -146,6 +151,7 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
|
|
|
146
151
|
"addon-updated": "addon-updated";
|
|
147
152
|
"server-updated": "server-updated";
|
|
148
153
|
"export-completed": "export-completed";
|
|
154
|
+
"backup-completed": "backup-completed";
|
|
149
155
|
"camera-online": "camera-online";
|
|
150
156
|
"camera-offline": "camera-offline";
|
|
151
157
|
"camera-disabled": "camera-disabled";
|
|
@@ -611,6 +617,8 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
611
617
|
"device-enabled": "device-enabled";
|
|
612
618
|
"device-battery-low": "device-battery-low";
|
|
613
619
|
"device-battery-normal": "device-battery-normal";
|
|
620
|
+
"device-consumable-low": "device-consumable-low";
|
|
621
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
614
622
|
"stream-online": "stream-online";
|
|
615
623
|
"stream-offline": "stream-offline";
|
|
616
624
|
"node-online": "node-online";
|
|
@@ -629,6 +637,7 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
629
637
|
"addon-updated": "addon-updated";
|
|
630
638
|
"server-updated": "server-updated";
|
|
631
639
|
"export-completed": "export-completed";
|
|
640
|
+
"backup-completed": "backup-completed";
|
|
632
641
|
"camera-online": "camera-online";
|
|
633
642
|
"camera-offline": "camera-offline";
|
|
634
643
|
"camera-disabled": "camera-disabled";
|
|
@@ -699,8 +708,8 @@ export type NcRuleTarget = z.infer<typeof NcRuleTargetSchema>;
|
|
|
699
708
|
*/
|
|
700
709
|
export declare const NcMediaFrameSchema: z.ZodEnum<{
|
|
701
710
|
full: "full";
|
|
702
|
-
cropped: "cropped";
|
|
703
711
|
boxed: "boxed";
|
|
712
|
+
cropped: "cropped";
|
|
704
713
|
}>;
|
|
705
714
|
export type NcMediaFrame = z.infer<typeof NcMediaFrameSchema>;
|
|
706
715
|
export declare const NcMediaPolicySchema: z.ZodObject<{
|
|
@@ -712,8 +721,8 @@ export declare const NcMediaPolicySchema: z.ZodObject<{
|
|
|
712
721
|
}>>;
|
|
713
722
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
714
723
|
full: "full";
|
|
715
|
-
cropped: "cropped";
|
|
716
724
|
boxed: "boxed";
|
|
725
|
+
cropped: "cropped";
|
|
717
726
|
}>>;
|
|
718
727
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
719
728
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -898,6 +907,8 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
898
907
|
"device-enabled": "device-enabled";
|
|
899
908
|
"device-battery-low": "device-battery-low";
|
|
900
909
|
"device-battery-normal": "device-battery-normal";
|
|
910
|
+
"device-consumable-low": "device-consumable-low";
|
|
911
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
901
912
|
"stream-online": "stream-online";
|
|
902
913
|
"stream-offline": "stream-offline";
|
|
903
914
|
"node-online": "node-online";
|
|
@@ -916,6 +927,7 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
916
927
|
"addon-updated": "addon-updated";
|
|
917
928
|
"server-updated": "server-updated";
|
|
918
929
|
"export-completed": "export-completed";
|
|
930
|
+
"backup-completed": "backup-completed";
|
|
919
931
|
"camera-online": "camera-online";
|
|
920
932
|
"camera-offline": "camera-offline";
|
|
921
933
|
"camera-disabled": "camera-disabled";
|
|
@@ -977,8 +989,8 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
977
989
|
}>>;
|
|
978
990
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
979
991
|
full: "full";
|
|
980
|
-
cropped: "cropped";
|
|
981
992
|
boxed: "boxed";
|
|
993
|
+
cropped: "cropped";
|
|
982
994
|
}>>;
|
|
983
995
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
984
996
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1249,6 +1261,8 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1249
1261
|
"device-enabled": "device-enabled";
|
|
1250
1262
|
"device-battery-low": "device-battery-low";
|
|
1251
1263
|
"device-battery-normal": "device-battery-normal";
|
|
1264
|
+
"device-consumable-low": "device-consumable-low";
|
|
1265
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
1252
1266
|
"stream-online": "stream-online";
|
|
1253
1267
|
"stream-offline": "stream-offline";
|
|
1254
1268
|
"node-online": "node-online";
|
|
@@ -1267,6 +1281,7 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1267
1281
|
"addon-updated": "addon-updated";
|
|
1268
1282
|
"server-updated": "server-updated";
|
|
1269
1283
|
"export-completed": "export-completed";
|
|
1284
|
+
"backup-completed": "backup-completed";
|
|
1270
1285
|
"camera-online": "camera-online";
|
|
1271
1286
|
"camera-offline": "camera-offline";
|
|
1272
1287
|
"camera-disabled": "camera-disabled";
|
|
@@ -1314,8 +1329,8 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1314
1329
|
}>>;
|
|
1315
1330
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
1316
1331
|
full: "full";
|
|
1317
|
-
cropped: "cropped";
|
|
1318
1332
|
boxed: "boxed";
|
|
1333
|
+
cropped: "cropped";
|
|
1319
1334
|
}>>;
|
|
1320
1335
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
1321
1336
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1417,6 +1432,8 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1417
1432
|
"device-enabled": "device-enabled";
|
|
1418
1433
|
"device-battery-low": "device-battery-low";
|
|
1419
1434
|
"device-battery-normal": "device-battery-normal";
|
|
1435
|
+
"device-consumable-low": "device-consumable-low";
|
|
1436
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
1420
1437
|
"stream-online": "stream-online";
|
|
1421
1438
|
"stream-offline": "stream-offline";
|
|
1422
1439
|
"node-online": "node-online";
|
|
@@ -1435,6 +1452,7 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1435
1452
|
"addon-updated": "addon-updated";
|
|
1436
1453
|
"server-updated": "server-updated";
|
|
1437
1454
|
"export-completed": "export-completed";
|
|
1455
|
+
"backup-completed": "backup-completed";
|
|
1438
1456
|
"camera-online": "camera-online";
|
|
1439
1457
|
"camera-offline": "camera-offline";
|
|
1440
1458
|
"camera-disabled": "camera-disabled";
|
|
@@ -1496,8 +1514,8 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1496
1514
|
}>>;
|
|
1497
1515
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
1498
1516
|
full: "full";
|
|
1499
|
-
cropped: "cropped";
|
|
1500
1517
|
boxed: "boxed";
|
|
1518
|
+
cropped: "cropped";
|
|
1501
1519
|
}>>;
|
|
1502
1520
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
1503
1521
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1727,6 +1745,8 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
|
|
|
1727
1745
|
"device-enabled": "device-enabled";
|
|
1728
1746
|
"device-battery-low": "device-battery-low";
|
|
1729
1747
|
"device-battery-normal": "device-battery-normal";
|
|
1748
|
+
"device-consumable-low": "device-consumable-low";
|
|
1749
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
1730
1750
|
"stream-online": "stream-online";
|
|
1731
1751
|
"stream-offline": "stream-offline";
|
|
1732
1752
|
"node-online": "node-online";
|
|
@@ -1745,6 +1765,7 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
|
|
|
1745
1765
|
"addon-updated": "addon-updated";
|
|
1746
1766
|
"server-updated": "server-updated";
|
|
1747
1767
|
"export-completed": "export-completed";
|
|
1768
|
+
"backup-completed": "backup-completed";
|
|
1748
1769
|
"camera-online": "camera-online";
|
|
1749
1770
|
"camera-offline": "camera-offline";
|
|
1750
1771
|
"camera-disabled": "camera-disabled";
|
|
@@ -1813,6 +1834,8 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
|
|
|
1813
1834
|
"device-enabled": "device-enabled";
|
|
1814
1835
|
"device-battery-low": "device-battery-low";
|
|
1815
1836
|
"device-battery-normal": "device-battery-normal";
|
|
1837
|
+
"device-consumable-low": "device-consumable-low";
|
|
1838
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
1816
1839
|
"stream-online": "stream-online";
|
|
1817
1840
|
"stream-offline": "stream-offline";
|
|
1818
1841
|
"node-online": "node-online";
|
|
@@ -1831,6 +1854,7 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
|
|
|
1831
1854
|
"addon-updated": "addon-updated";
|
|
1832
1855
|
"server-updated": "server-updated";
|
|
1833
1856
|
"export-completed": "export-completed";
|
|
1857
|
+
"backup-completed": "backup-completed";
|
|
1834
1858
|
"camera-online": "camera-online";
|
|
1835
1859
|
"camera-offline": "camera-offline";
|
|
1836
1860
|
"camera-disabled": "camera-disabled";
|
|
@@ -2116,6 +2140,8 @@ export declare const notificationRulesCapability: {
|
|
|
2116
2140
|
"device-enabled": "device-enabled";
|
|
2117
2141
|
"device-battery-low": "device-battery-low";
|
|
2118
2142
|
"device-battery-normal": "device-battery-normal";
|
|
2143
|
+
"device-consumable-low": "device-consumable-low";
|
|
2144
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2119
2145
|
"stream-online": "stream-online";
|
|
2120
2146
|
"stream-offline": "stream-offline";
|
|
2121
2147
|
"node-online": "node-online";
|
|
@@ -2134,6 +2160,7 @@ export declare const notificationRulesCapability: {
|
|
|
2134
2160
|
"addon-updated": "addon-updated";
|
|
2135
2161
|
"server-updated": "server-updated";
|
|
2136
2162
|
"export-completed": "export-completed";
|
|
2163
|
+
"backup-completed": "backup-completed";
|
|
2137
2164
|
"camera-online": "camera-online";
|
|
2138
2165
|
"camera-offline": "camera-offline";
|
|
2139
2166
|
"camera-disabled": "camera-disabled";
|
|
@@ -2195,8 +2222,8 @@ export declare const notificationRulesCapability: {
|
|
|
2195
2222
|
}>>;
|
|
2196
2223
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
2197
2224
|
full: "full";
|
|
2198
|
-
cropped: "cropped";
|
|
2199
2225
|
boxed: "boxed";
|
|
2226
|
+
cropped: "cropped";
|
|
2200
2227
|
}>>;
|
|
2201
2228
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
2202
2229
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2378,6 +2405,8 @@ export declare const notificationRulesCapability: {
|
|
|
2378
2405
|
"device-enabled": "device-enabled";
|
|
2379
2406
|
"device-battery-low": "device-battery-low";
|
|
2380
2407
|
"device-battery-normal": "device-battery-normal";
|
|
2408
|
+
"device-consumable-low": "device-consumable-low";
|
|
2409
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2381
2410
|
"stream-online": "stream-online";
|
|
2382
2411
|
"stream-offline": "stream-offline";
|
|
2383
2412
|
"node-online": "node-online";
|
|
@@ -2396,6 +2425,7 @@ export declare const notificationRulesCapability: {
|
|
|
2396
2425
|
"addon-updated": "addon-updated";
|
|
2397
2426
|
"server-updated": "server-updated";
|
|
2398
2427
|
"export-completed": "export-completed";
|
|
2428
|
+
"backup-completed": "backup-completed";
|
|
2399
2429
|
"camera-online": "camera-online";
|
|
2400
2430
|
"camera-offline": "camera-offline";
|
|
2401
2431
|
"camera-disabled": "camera-disabled";
|
|
@@ -2457,8 +2487,8 @@ export declare const notificationRulesCapability: {
|
|
|
2457
2487
|
}>>;
|
|
2458
2488
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
2459
2489
|
full: "full";
|
|
2460
|
-
cropped: "cropped";
|
|
2461
2490
|
boxed: "boxed";
|
|
2491
|
+
cropped: "cropped";
|
|
2462
2492
|
}>>;
|
|
2463
2493
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
2464
2494
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2638,6 +2668,8 @@ export declare const notificationRulesCapability: {
|
|
|
2638
2668
|
"device-enabled": "device-enabled";
|
|
2639
2669
|
"device-battery-low": "device-battery-low";
|
|
2640
2670
|
"device-battery-normal": "device-battery-normal";
|
|
2671
|
+
"device-consumable-low": "device-consumable-low";
|
|
2672
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2641
2673
|
"stream-online": "stream-online";
|
|
2642
2674
|
"stream-offline": "stream-offline";
|
|
2643
2675
|
"node-online": "node-online";
|
|
@@ -2656,6 +2688,7 @@ export declare const notificationRulesCapability: {
|
|
|
2656
2688
|
"addon-updated": "addon-updated";
|
|
2657
2689
|
"server-updated": "server-updated";
|
|
2658
2690
|
"export-completed": "export-completed";
|
|
2691
|
+
"backup-completed": "backup-completed";
|
|
2659
2692
|
"camera-online": "camera-online";
|
|
2660
2693
|
"camera-offline": "camera-offline";
|
|
2661
2694
|
"camera-disabled": "camera-disabled";
|
|
@@ -2717,8 +2750,8 @@ export declare const notificationRulesCapability: {
|
|
|
2717
2750
|
}>>;
|
|
2718
2751
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
2719
2752
|
full: "full";
|
|
2720
|
-
cropped: "cropped";
|
|
2721
2753
|
boxed: "boxed";
|
|
2754
|
+
cropped: "cropped";
|
|
2722
2755
|
}>>;
|
|
2723
2756
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
2724
2757
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2892,6 +2925,8 @@ export declare const notificationRulesCapability: {
|
|
|
2892
2925
|
"device-enabled": "device-enabled";
|
|
2893
2926
|
"device-battery-low": "device-battery-low";
|
|
2894
2927
|
"device-battery-normal": "device-battery-normal";
|
|
2928
|
+
"device-consumable-low": "device-consumable-low";
|
|
2929
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
2895
2930
|
"stream-online": "stream-online";
|
|
2896
2931
|
"stream-offline": "stream-offline";
|
|
2897
2932
|
"node-online": "node-online";
|
|
@@ -2910,6 +2945,7 @@ export declare const notificationRulesCapability: {
|
|
|
2910
2945
|
"addon-updated": "addon-updated";
|
|
2911
2946
|
"server-updated": "server-updated";
|
|
2912
2947
|
"export-completed": "export-completed";
|
|
2948
|
+
"backup-completed": "backup-completed";
|
|
2913
2949
|
"camera-online": "camera-online";
|
|
2914
2950
|
"camera-offline": "camera-offline";
|
|
2915
2951
|
"camera-disabled": "camera-disabled";
|
|
@@ -2971,8 +3007,8 @@ export declare const notificationRulesCapability: {
|
|
|
2971
3007
|
}>>;
|
|
2972
3008
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
2973
3009
|
full: "full";
|
|
2974
|
-
cropped: "cropped";
|
|
2975
3010
|
boxed: "boxed";
|
|
3011
|
+
cropped: "cropped";
|
|
2976
3012
|
}>>;
|
|
2977
3013
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
2978
3014
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3243,6 +3279,8 @@ export declare const notificationRulesCapability: {
|
|
|
3243
3279
|
"device-enabled": "device-enabled";
|
|
3244
3280
|
"device-battery-low": "device-battery-low";
|
|
3245
3281
|
"device-battery-normal": "device-battery-normal";
|
|
3282
|
+
"device-consumable-low": "device-consumable-low";
|
|
3283
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
3246
3284
|
"stream-online": "stream-online";
|
|
3247
3285
|
"stream-offline": "stream-offline";
|
|
3248
3286
|
"node-online": "node-online";
|
|
@@ -3261,6 +3299,7 @@ export declare const notificationRulesCapability: {
|
|
|
3261
3299
|
"addon-updated": "addon-updated";
|
|
3262
3300
|
"server-updated": "server-updated";
|
|
3263
3301
|
"export-completed": "export-completed";
|
|
3302
|
+
"backup-completed": "backup-completed";
|
|
3264
3303
|
"camera-online": "camera-online";
|
|
3265
3304
|
"camera-offline": "camera-offline";
|
|
3266
3305
|
"camera-disabled": "camera-disabled";
|
|
@@ -3308,8 +3347,8 @@ export declare const notificationRulesCapability: {
|
|
|
3308
3347
|
}>>;
|
|
3309
3348
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
3310
3349
|
full: "full";
|
|
3311
|
-
cropped: "cropped";
|
|
3312
3350
|
boxed: "boxed";
|
|
3351
|
+
cropped: "cropped";
|
|
3313
3352
|
}>>;
|
|
3314
3353
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
3315
3354
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3410,6 +3449,8 @@ export declare const notificationRulesCapability: {
|
|
|
3410
3449
|
"device-enabled": "device-enabled";
|
|
3411
3450
|
"device-battery-low": "device-battery-low";
|
|
3412
3451
|
"device-battery-normal": "device-battery-normal";
|
|
3452
|
+
"device-consumable-low": "device-consumable-low";
|
|
3453
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
3413
3454
|
"stream-online": "stream-online";
|
|
3414
3455
|
"stream-offline": "stream-offline";
|
|
3415
3456
|
"node-online": "node-online";
|
|
@@ -3428,6 +3469,7 @@ export declare const notificationRulesCapability: {
|
|
|
3428
3469
|
"addon-updated": "addon-updated";
|
|
3429
3470
|
"server-updated": "server-updated";
|
|
3430
3471
|
"export-completed": "export-completed";
|
|
3472
|
+
"backup-completed": "backup-completed";
|
|
3431
3473
|
"camera-online": "camera-online";
|
|
3432
3474
|
"camera-offline": "camera-offline";
|
|
3433
3475
|
"camera-disabled": "camera-disabled";
|
|
@@ -3489,8 +3531,8 @@ export declare const notificationRulesCapability: {
|
|
|
3489
3531
|
}>>;
|
|
3490
3532
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
3491
3533
|
full: "full";
|
|
3492
|
-
cropped: "cropped";
|
|
3493
3534
|
boxed: "boxed";
|
|
3535
|
+
cropped: "cropped";
|
|
3494
3536
|
}>>;
|
|
3495
3537
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
3496
3538
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3718,6 +3760,8 @@ export declare const notificationRulesCapability: {
|
|
|
3718
3760
|
"device-enabled": "device-enabled";
|
|
3719
3761
|
"device-battery-low": "device-battery-low";
|
|
3720
3762
|
"device-battery-normal": "device-battery-normal";
|
|
3763
|
+
"device-consumable-low": "device-consumable-low";
|
|
3764
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
3721
3765
|
"stream-online": "stream-online";
|
|
3722
3766
|
"stream-offline": "stream-offline";
|
|
3723
3767
|
"node-online": "node-online";
|
|
@@ -3736,6 +3780,7 @@ export declare const notificationRulesCapability: {
|
|
|
3736
3780
|
"addon-updated": "addon-updated";
|
|
3737
3781
|
"server-updated": "server-updated";
|
|
3738
3782
|
"export-completed": "export-completed";
|
|
3783
|
+
"backup-completed": "backup-completed";
|
|
3739
3784
|
"camera-online": "camera-online";
|
|
3740
3785
|
"camera-offline": "camera-offline";
|
|
3741
3786
|
"camera-disabled": "camera-disabled";
|
|
@@ -3797,8 +3842,8 @@ export declare const notificationRulesCapability: {
|
|
|
3797
3842
|
}>>;
|
|
3798
3843
|
frame: z.ZodOptional<z.ZodEnum<{
|
|
3799
3844
|
full: "full";
|
|
3800
|
-
cropped: "cropped";
|
|
3801
3845
|
boxed: "boxed";
|
|
3846
|
+
cropped: "cropped";
|
|
3802
3847
|
}>>;
|
|
3803
3848
|
zoneCrop: z.ZodOptional<z.ZodBoolean>;
|
|
3804
3849
|
gif: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4073,6 +4118,8 @@ export declare const notificationRulesCapability: {
|
|
|
4073
4118
|
"device-enabled": "device-enabled";
|
|
4074
4119
|
"device-battery-low": "device-battery-low";
|
|
4075
4120
|
"device-battery-normal": "device-battery-normal";
|
|
4121
|
+
"device-consumable-low": "device-consumable-low";
|
|
4122
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
4076
4123
|
"stream-online": "stream-online";
|
|
4077
4124
|
"stream-offline": "stream-offline";
|
|
4078
4125
|
"node-online": "node-online";
|
|
@@ -4091,6 +4138,7 @@ export declare const notificationRulesCapability: {
|
|
|
4091
4138
|
"addon-updated": "addon-updated";
|
|
4092
4139
|
"server-updated": "server-updated";
|
|
4093
4140
|
"export-completed": "export-completed";
|
|
4141
|
+
"backup-completed": "backup-completed";
|
|
4094
4142
|
"camera-online": "camera-online";
|
|
4095
4143
|
"camera-offline": "camera-offline";
|
|
4096
4144
|
"camera-disabled": "camera-disabled";
|
|
@@ -151,6 +151,8 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
151
151
|
"device-enabled": "device-enabled";
|
|
152
152
|
"device-battery-low": "device-battery-low";
|
|
153
153
|
"device-battery-normal": "device-battery-normal";
|
|
154
|
+
"device-consumable-low": "device-consumable-low";
|
|
155
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
154
156
|
"stream-online": "stream-online";
|
|
155
157
|
"stream-offline": "stream-offline";
|
|
156
158
|
"node-online": "node-online";
|
|
@@ -169,6 +171,7 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
169
171
|
"addon-updated": "addon-updated";
|
|
170
172
|
"server-updated": "server-updated";
|
|
171
173
|
"export-completed": "export-completed";
|
|
174
|
+
"backup-completed": "backup-completed";
|
|
172
175
|
"camera-online": "camera-online";
|
|
173
176
|
"camera-offline": "camera-offline";
|
|
174
177
|
"camera-disabled": "camera-disabled";
|
|
@@ -319,6 +322,8 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
319
322
|
"device-enabled": "device-enabled";
|
|
320
323
|
"device-battery-low": "device-battery-low";
|
|
321
324
|
"device-battery-normal": "device-battery-normal";
|
|
325
|
+
"device-consumable-low": "device-consumable-low";
|
|
326
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
322
327
|
"stream-online": "stream-online";
|
|
323
328
|
"stream-offline": "stream-offline";
|
|
324
329
|
"node-online": "node-online";
|
|
@@ -337,6 +342,7 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
337
342
|
"addon-updated": "addon-updated";
|
|
338
343
|
"server-updated": "server-updated";
|
|
339
344
|
"export-completed": "export-completed";
|
|
345
|
+
"backup-completed": "backup-completed";
|
|
340
346
|
"camera-online": "camera-online";
|
|
341
347
|
"camera-offline": "camera-offline";
|
|
342
348
|
"camera-disabled": "camera-disabled";
|
|
@@ -559,6 +565,8 @@ export declare const osdManagerCapability: {
|
|
|
559
565
|
"device-enabled": "device-enabled";
|
|
560
566
|
"device-battery-low": "device-battery-low";
|
|
561
567
|
"device-battery-normal": "device-battery-normal";
|
|
568
|
+
"device-consumable-low": "device-consumable-low";
|
|
569
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
562
570
|
"stream-online": "stream-online";
|
|
563
571
|
"stream-offline": "stream-offline";
|
|
564
572
|
"node-online": "node-online";
|
|
@@ -577,6 +585,7 @@ export declare const osdManagerCapability: {
|
|
|
577
585
|
"addon-updated": "addon-updated";
|
|
578
586
|
"server-updated": "server-updated";
|
|
579
587
|
"export-completed": "export-completed";
|
|
588
|
+
"backup-completed": "backup-completed";
|
|
580
589
|
"camera-online": "camera-online";
|
|
581
590
|
"camera-offline": "camera-offline";
|
|
582
591
|
"camera-disabled": "camera-disabled";
|
|
@@ -816,6 +825,8 @@ export declare const osdManagerCapability: {
|
|
|
816
825
|
"device-enabled": "device-enabled";
|
|
817
826
|
"device-battery-low": "device-battery-low";
|
|
818
827
|
"device-battery-normal": "device-battery-normal";
|
|
828
|
+
"device-consumable-low": "device-consumable-low";
|
|
829
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
819
830
|
"stream-online": "stream-online";
|
|
820
831
|
"stream-offline": "stream-offline";
|
|
821
832
|
"node-online": "node-online";
|
|
@@ -834,6 +845,7 @@ export declare const osdManagerCapability: {
|
|
|
834
845
|
"addon-updated": "addon-updated";
|
|
835
846
|
"server-updated": "server-updated";
|
|
836
847
|
"export-completed": "export-completed";
|
|
848
|
+
"backup-completed": "backup-completed";
|
|
837
849
|
"camera-online": "camera-online";
|
|
838
850
|
"camera-offline": "camera-offline";
|
|
839
851
|
"camera-disabled": "camera-disabled";
|
|
@@ -983,6 +995,8 @@ export declare const osdManagerCapability: {
|
|
|
983
995
|
"device-enabled": "device-enabled";
|
|
984
996
|
"device-battery-low": "device-battery-low";
|
|
985
997
|
"device-battery-normal": "device-battery-normal";
|
|
998
|
+
"device-consumable-low": "device-consumable-low";
|
|
999
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
986
1000
|
"stream-online": "stream-online";
|
|
987
1001
|
"stream-offline": "stream-offline";
|
|
988
1002
|
"node-online": "node-online";
|
|
@@ -1001,6 +1015,7 @@ export declare const osdManagerCapability: {
|
|
|
1001
1015
|
"addon-updated": "addon-updated";
|
|
1002
1016
|
"server-updated": "server-updated";
|
|
1003
1017
|
"export-completed": "export-completed";
|
|
1018
|
+
"backup-completed": "backup-completed";
|
|
1004
1019
|
"camera-online": "camera-online";
|
|
1005
1020
|
"camera-offline": "camera-offline";
|
|
1006
1021
|
"camera-disabled": "camera-disabled";
|
|
@@ -1182,6 +1197,8 @@ export declare const osdManagerCapability: {
|
|
|
1182
1197
|
"device-enabled": "device-enabled";
|
|
1183
1198
|
"device-battery-low": "device-battery-low";
|
|
1184
1199
|
"device-battery-normal": "device-battery-normal";
|
|
1200
|
+
"device-consumable-low": "device-consumable-low";
|
|
1201
|
+
"device-consumable-normal": "device-consumable-normal";
|
|
1185
1202
|
"stream-online": "stream-online";
|
|
1186
1203
|
"stream-offline": "stream-offline";
|
|
1187
1204
|
"node-online": "node-online";
|
|
@@ -1200,6 +1217,7 @@ export declare const osdManagerCapability: {
|
|
|
1200
1217
|
"addon-updated": "addon-updated";
|
|
1201
1218
|
"server-updated": "server-updated";
|
|
1202
1219
|
"export-completed": "export-completed";
|
|
1220
|
+
"backup-completed": "backup-completed";
|
|
1203
1221
|
"camera-online": "camera-online";
|
|
1204
1222
|
"camera-offline": "camera-offline";
|
|
1205
1223
|
"camera-disabled": "camera-disabled";
|
|
@@ -543,6 +543,43 @@ export declare const streamBrokerCapability: {
|
|
|
543
543
|
readonly mode: "singleton";
|
|
544
544
|
readonly exposesDeviceSettings: true;
|
|
545
545
|
readonly methods: {
|
|
546
|
+
/**
|
|
547
|
+
* A device reporting that one of ITS OWN signals just fired.
|
|
548
|
+
*
|
|
549
|
+
* The provider calls this; nothing polls. The broker then decides whether
|
|
550
|
+
* to wake the source, and the decision has two terms that must BOTH hold:
|
|
551
|
+
*
|
|
552
|
+
* - the signal is ENABLED for this camera (the operator's per-camera
|
|
553
|
+
* choice — a camera may declare a signal the operator does not want
|
|
554
|
+
* waking anything), and
|
|
555
|
+
* - a consumer is actually attached and waiting on the prestream. Waking
|
|
556
|
+
* a camera nobody is watching is the one thing a battery camera must
|
|
557
|
+
* never do, and a signal arriving with no consumer is exactly that.
|
|
558
|
+
*
|
|
559
|
+
* Reported, never inferred: a signal that fires while the stream is
|
|
560
|
+
* already up refreshes the hold instead of starting a second one, which is
|
|
561
|
+
* what makes continuous motion keep a camera awake without stacking
|
|
562
|
+
* timers.
|
|
563
|
+
*
|
|
564
|
+
* `code` is the provider's own, from `streamSignals.listSignals`. An
|
|
565
|
+
* unknown code is REFUSED rather than treated as a wildcard wake — a
|
|
566
|
+
* provider and an operator disagreeing about a name must not become a
|
|
567
|
+
* camera that wakes for everything.
|
|
568
|
+
*/
|
|
569
|
+
readonly reportStreamSignal: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
570
|
+
deviceId: z.ZodNumber;
|
|
571
|
+
code: z.ZodString;
|
|
572
|
+
at: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
accepted: z.ZodBoolean;
|
|
575
|
+
reason: z.ZodEnum<{
|
|
576
|
+
woke: "woke";
|
|
577
|
+
"hold-extended": "hold-extended";
|
|
578
|
+
"not-enabled": "not-enabled";
|
|
579
|
+
"no-consumer": "no-consumer";
|
|
580
|
+
"unknown-code": "unknown-code";
|
|
581
|
+
}>;
|
|
582
|
+
}, z.core.$strip>, "mutation">;
|
|
546
583
|
readonly publishCameraStream: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
547
584
|
deviceId: z.ZodNumber;
|
|
548
585
|
camStreamId: z.ZodString;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* The signals a device can emit to WAKE its own stream.
|
|
6
|
+
*
|
|
7
|
+
* A camera whose stream is built on demand sleeps until something asks for it,
|
|
8
|
+
* and "something" cannot be a consumer that is merely attached — a Frigate-style
|
|
9
|
+
* puller holds a session open for ever, and treating that as demand would keep
|
|
10
|
+
* a battery camera awake for ever, which is the whole thing the battery is for
|
|
11
|
+
* (D173). So the wake has to come from the CAMERA: an event it noticed by
|
|
12
|
+
* itself, with no stream running.
|
|
13
|
+
*
|
|
14
|
+
* ## The vocabulary is the PROVIDER'S, not ours
|
|
15
|
+
*
|
|
16
|
+
* Like `consumables`, this cap declares no vocabulary of its own. A provider
|
|
17
|
+
* names each signal with a `code` it chooses and a `label` an operator reads.
|
|
18
|
+
* Reolink offers motion and camera-native detection; another provider may offer
|
|
19
|
+
* a tamper, a doorbell press, a PIR, or something no camera in this fleet has
|
|
20
|
+
* yet. A fixed enum here would mean every new signal is a framework release.
|
|
21
|
+
*
|
|
22
|
+
* It is deliberately NOT derived from the caps a device already binds. Whether
|
|
23
|
+
* a camera CAN push firmware motion is expressed by `motionSources` containing
|
|
24
|
+
* `'onboard'`, and whether it does AI on-camera by the `native-object-detection`
|
|
25
|
+
* binding — but both answer "what drives the detection pipeline", which is a
|
|
26
|
+
* different question from "what may wake a sleeping stream". A camera can do
|
|
27
|
+
* the first and not be trusted with the second, and the operator picks per
|
|
28
|
+
* camera. Two questions, two authorities.
|
|
29
|
+
*
|
|
30
|
+
* ## Availability is not permission
|
|
31
|
+
*
|
|
32
|
+
* `listSignals` says what the device CAN emit. Whether a given signal actually
|
|
33
|
+
* wakes the stream is the operator's per-camera choice, held by the broker
|
|
34
|
+
* alongside the cooldown — see the stream-broker cap's wake settings. A
|
|
35
|
+
* provider declaring a signal is not a provider enabling it.
|
|
36
|
+
*/
|
|
37
|
+
/** One signal a device can emit. */
|
|
38
|
+
export declare const StreamSignalSchema: z.ZodObject<{
|
|
39
|
+
code: z.ZodString;
|
|
40
|
+
label: z.ZodString;
|
|
41
|
+
recommended: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type StreamSignal = z.infer<typeof StreamSignalSchema>;
|
|
44
|
+
export declare const StreamSignalsStatusSchema: z.ZodObject<{
|
|
45
|
+
signals: z.ZodArray<z.ZodObject<{
|
|
46
|
+
code: z.ZodString;
|
|
47
|
+
label: z.ZodString;
|
|
48
|
+
recommended: z.ZodBoolean;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
lastFetchedAt: z.ZodNumber;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type StreamSignalsStatus = z.infer<typeof StreamSignalsStatusSchema>;
|
|
53
|
+
export declare const streamSignalsCapability: {
|
|
54
|
+
readonly name: "stream-signals";
|
|
55
|
+
readonly scope: "device";
|
|
56
|
+
readonly deviceNative: true;
|
|
57
|
+
readonly mode: "singleton";
|
|
58
|
+
readonly deviceTypes: DeviceType[];
|
|
59
|
+
readonly runtimeState: z.ZodObject<{
|
|
60
|
+
signals: z.ZodArray<z.ZodObject<{
|
|
61
|
+
code: z.ZodString;
|
|
62
|
+
label: z.ZodString;
|
|
63
|
+
recommended: z.ZodBoolean;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
lastFetchedAt: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
readonly methods: {
|
|
68
|
+
/**
|
|
69
|
+
* What this device can emit. Empty is a valid and common answer — most
|
|
70
|
+
* cameras have nothing to offer here, and an empty list is what makes the
|
|
71
|
+
* broker's picker show nothing rather than a false choice.
|
|
72
|
+
*/
|
|
73
|
+
readonly listSignals: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
74
|
+
code: z.ZodString;
|
|
75
|
+
label: z.ZodString;
|
|
76
|
+
recommended: z.ZodBoolean;
|
|
77
|
+
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export type IStreamSignalsProvider = InferProvider<typeof streamSignalsCapability>;
|
|
@@ -359,6 +359,7 @@ export declare const webrtcSessionCapability: {
|
|
|
359
359
|
}, z.core.$strip>], "kind">;
|
|
360
360
|
epoch: z.ZodNumber;
|
|
361
361
|
}, z.core.$strip>>;
|
|
362
|
+
alive: z.ZodBoolean;
|
|
362
363
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
363
364
|
};
|
|
364
365
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
@@ -614,6 +614,20 @@ export declare enum EventCategory {
|
|
|
614
614
|
* pull-reconcile from the provider's `getStatus` on reconnect. */
|
|
615
615
|
MeshNetworkChanged = "network.mesh.changed",
|
|
616
616
|
BackupCompleted = "backup.completed",
|
|
617
|
+
/**
|
|
618
|
+
* A whole backup RUN finished — every destination attempted, win or lose.
|
|
619
|
+
*
|
|
620
|
+
* `backup.completed` fires once per DESTINATION, which is the right grain for
|
|
621
|
+
* a progress UI and the wrong one for a notification: an operator with three
|
|
622
|
+
* destinations would be told three times. And a run where two of three
|
|
623
|
+
* destinations succeeded is not a clean success — a single "backup
|
|
624
|
+
* completed" that hid the failed one would be a lie, so the count of each is
|
|
625
|
+
* carried here and the message says both.
|
|
626
|
+
*
|
|
627
|
+
* Emitted by the backup orchestrator only after the destination loop, so a
|
|
628
|
+
* run that dies during the BUILD phase produces no completion at all.
|
|
629
|
+
*/
|
|
630
|
+
BackupRunCompleted = "backup.run-completed",
|
|
617
631
|
BackupRestored = "backup.restored",
|
|
618
632
|
NotificationDispatched = "notification.dispatched",
|
|
619
633
|
NotificationFailed = "notification.failed",
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-BVfsrBYA.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-BVDXG4tB.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|