@camstack/types 1.2.306 → 1.2.308
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities/notification-rules.cap.d.ts +46 -0
- package/dist/capabilities/osd-manager.cap.d.ts +12 -0
- package/dist/client.js +24 -5
- package/dist/client.mjs +24 -5
- package/dist/device/hub-motion-read.d.ts +30 -6
- package/dist/index.d.ts +2 -1
- package/dist/index.js +114 -10
- package/dist/index.mjs +111 -11
- package/dist/pipeline/removed-model-ids.d.ts +20 -0
- package/package.json +1 -1
|
@@ -81,6 +81,8 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
|
|
|
81
81
|
"stream-offline": "stream-offline";
|
|
82
82
|
"node-online": "node-online";
|
|
83
83
|
"node-offline": "node-offline";
|
|
84
|
+
"node-restarting": "node-restarting";
|
|
85
|
+
"node-updating": "node-updating";
|
|
84
86
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
85
87
|
"detection-blind": "detection-blind";
|
|
86
88
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -178,6 +180,8 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
|
|
|
178
180
|
"stream-offline": "stream-offline";
|
|
179
181
|
"node-online": "node-online";
|
|
180
182
|
"node-offline": "node-offline";
|
|
183
|
+
"node-restarting": "node-restarting";
|
|
184
|
+
"node-updating": "node-updating";
|
|
181
185
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
182
186
|
"detection-blind": "detection-blind";
|
|
183
187
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -896,6 +900,8 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
896
900
|
"stream-offline": "stream-offline";
|
|
897
901
|
"node-online": "node-online";
|
|
898
902
|
"node-offline": "node-offline";
|
|
903
|
+
"node-restarting": "node-restarting";
|
|
904
|
+
"node-updating": "node-updating";
|
|
899
905
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
900
906
|
"detection-blind": "detection-blind";
|
|
901
907
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -1254,6 +1260,8 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
1254
1260
|
"stream-offline": "stream-offline";
|
|
1255
1261
|
"node-online": "node-online";
|
|
1256
1262
|
"node-offline": "node-offline";
|
|
1263
|
+
"node-restarting": "node-restarting";
|
|
1264
|
+
"node-updating": "node-updating";
|
|
1257
1265
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1258
1266
|
"detection-blind": "detection-blind";
|
|
1259
1267
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -1758,6 +1766,8 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1758
1766
|
"stream-offline": "stream-offline";
|
|
1759
1767
|
"node-online": "node-online";
|
|
1760
1768
|
"node-offline": "node-offline";
|
|
1769
|
+
"node-restarting": "node-restarting";
|
|
1770
|
+
"node-updating": "node-updating";
|
|
1761
1771
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1762
1772
|
"detection-blind": "detection-blind";
|
|
1763
1773
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -2139,6 +2149,8 @@ export declare const NcRuleUpdateInputSchema: z.ZodObject<{
|
|
|
2139
2149
|
"stream-offline": "stream-offline";
|
|
2140
2150
|
"node-online": "node-online";
|
|
2141
2151
|
"node-offline": "node-offline";
|
|
2152
|
+
"node-restarting": "node-restarting";
|
|
2153
|
+
"node-updating": "node-updating";
|
|
2142
2154
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2143
2155
|
"detection-blind": "detection-blind";
|
|
2144
2156
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -2341,6 +2353,8 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
2341
2353
|
"stream-offline": "stream-offline";
|
|
2342
2354
|
"node-online": "node-online";
|
|
2343
2355
|
"node-offline": "node-offline";
|
|
2356
|
+
"node-restarting": "node-restarting";
|
|
2357
|
+
"node-updating": "node-updating";
|
|
2344
2358
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2345
2359
|
"detection-blind": "detection-blind";
|
|
2346
2360
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -2862,6 +2876,8 @@ export declare const NcTemplateVarDescriptorSchema: z.ZodObject<{
|
|
|
2862
2876
|
"stream-offline": "stream-offline";
|
|
2863
2877
|
"node-online": "node-online";
|
|
2864
2878
|
"node-offline": "node-offline";
|
|
2879
|
+
"node-restarting": "node-restarting";
|
|
2880
|
+
"node-updating": "node-updating";
|
|
2865
2881
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2866
2882
|
"detection-blind": "detection-blind";
|
|
2867
2883
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -2942,6 +2958,8 @@ export declare const NcTemplateVarContextSchema: z.ZodObject<{
|
|
|
2942
2958
|
"stream-offline": "stream-offline";
|
|
2943
2959
|
"node-online": "node-online";
|
|
2944
2960
|
"node-offline": "node-offline";
|
|
2961
|
+
"node-restarting": "node-restarting";
|
|
2962
|
+
"node-updating": "node-updating";
|
|
2945
2963
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2946
2964
|
"detection-blind": "detection-blind";
|
|
2947
2965
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -3019,6 +3037,8 @@ export declare const NcTemplatePreviewInputSchema: z.ZodObject<{
|
|
|
3019
3037
|
"stream-offline": "stream-offline";
|
|
3020
3038
|
"node-online": "node-online";
|
|
3021
3039
|
"node-offline": "node-offline";
|
|
3040
|
+
"node-restarting": "node-restarting";
|
|
3041
|
+
"node-updating": "node-updating";
|
|
3022
3042
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3023
3043
|
"detection-blind": "detection-blind";
|
|
3024
3044
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -3178,6 +3198,8 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
|
|
|
3178
3198
|
"stream-offline": "stream-offline";
|
|
3179
3199
|
"node-online": "node-online";
|
|
3180
3200
|
"node-offline": "node-offline";
|
|
3201
|
+
"node-restarting": "node-restarting";
|
|
3202
|
+
"node-updating": "node-updating";
|
|
3181
3203
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3182
3204
|
"detection-blind": "detection-blind";
|
|
3183
3205
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -3274,6 +3296,8 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
|
|
|
3274
3296
|
"stream-offline": "stream-offline";
|
|
3275
3297
|
"node-online": "node-online";
|
|
3276
3298
|
"node-offline": "node-offline";
|
|
3299
|
+
"node-restarting": "node-restarting";
|
|
3300
|
+
"node-updating": "node-updating";
|
|
3277
3301
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3278
3302
|
"detection-blind": "detection-blind";
|
|
3279
3303
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -4363,6 +4387,8 @@ export declare const notificationRulesCapability: {
|
|
|
4363
4387
|
"stream-offline": "stream-offline";
|
|
4364
4388
|
"node-online": "node-online";
|
|
4365
4389
|
"node-offline": "node-offline";
|
|
4390
|
+
"node-restarting": "node-restarting";
|
|
4391
|
+
"node-updating": "node-updating";
|
|
4366
4392
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
4367
4393
|
"detection-blind": "detection-blind";
|
|
4368
4394
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -4712,6 +4738,8 @@ export declare const notificationRulesCapability: {
|
|
|
4712
4738
|
"stream-offline": "stream-offline";
|
|
4713
4739
|
"node-online": "node-online";
|
|
4714
4740
|
"node-offline": "node-offline";
|
|
4741
|
+
"node-restarting": "node-restarting";
|
|
4742
|
+
"node-updating": "node-updating";
|
|
4715
4743
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
4716
4744
|
"detection-blind": "detection-blind";
|
|
4717
4745
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -5059,6 +5087,8 @@ export declare const notificationRulesCapability: {
|
|
|
5059
5087
|
"stream-offline": "stream-offline";
|
|
5060
5088
|
"node-online": "node-online";
|
|
5061
5089
|
"node-offline": "node-offline";
|
|
5090
|
+
"node-restarting": "node-restarting";
|
|
5091
|
+
"node-updating": "node-updating";
|
|
5062
5092
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
5063
5093
|
"detection-blind": "detection-blind";
|
|
5064
5094
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -5400,6 +5430,8 @@ export declare const notificationRulesCapability: {
|
|
|
5400
5430
|
"stream-offline": "stream-offline";
|
|
5401
5431
|
"node-online": "node-online";
|
|
5402
5432
|
"node-offline": "node-offline";
|
|
5433
|
+
"node-restarting": "node-restarting";
|
|
5434
|
+
"node-updating": "node-updating";
|
|
5403
5435
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
5404
5436
|
"detection-blind": "detection-blind";
|
|
5405
5437
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -5904,6 +5936,8 @@ export declare const notificationRulesCapability: {
|
|
|
5904
5936
|
"stream-offline": "stream-offline";
|
|
5905
5937
|
"node-online": "node-online";
|
|
5906
5938
|
"node-offline": "node-offline";
|
|
5939
|
+
"node-restarting": "node-restarting";
|
|
5940
|
+
"node-updating": "node-updating";
|
|
5907
5941
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
5908
5942
|
"detection-blind": "detection-blind";
|
|
5909
5943
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -6104,6 +6138,8 @@ export declare const notificationRulesCapability: {
|
|
|
6104
6138
|
"stream-offline": "stream-offline";
|
|
6105
6139
|
"node-online": "node-online";
|
|
6106
6140
|
"node-offline": "node-offline";
|
|
6141
|
+
"node-restarting": "node-restarting";
|
|
6142
|
+
"node-updating": "node-updating";
|
|
6107
6143
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
6108
6144
|
"detection-blind": "detection-blind";
|
|
6109
6145
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -6644,6 +6680,8 @@ export declare const notificationRulesCapability: {
|
|
|
6644
6680
|
"stream-offline": "stream-offline";
|
|
6645
6681
|
"node-online": "node-online";
|
|
6646
6682
|
"node-offline": "node-offline";
|
|
6683
|
+
"node-restarting": "node-restarting";
|
|
6684
|
+
"node-updating": "node-updating";
|
|
6647
6685
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
6648
6686
|
"detection-blind": "detection-blind";
|
|
6649
6687
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -7010,6 +7048,8 @@ export declare const notificationRulesCapability: {
|
|
|
7010
7048
|
"stream-offline": "stream-offline";
|
|
7011
7049
|
"node-online": "node-online";
|
|
7012
7050
|
"node-offline": "node-offline";
|
|
7051
|
+
"node-restarting": "node-restarting";
|
|
7052
|
+
"node-updating": "node-updating";
|
|
7013
7053
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
7014
7054
|
"detection-blind": "detection-blind";
|
|
7015
7055
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -7461,6 +7501,8 @@ export declare const notificationRulesCapability: {
|
|
|
7461
7501
|
"stream-offline": "stream-offline";
|
|
7462
7502
|
"node-online": "node-online";
|
|
7463
7503
|
"node-offline": "node-offline";
|
|
7504
|
+
"node-restarting": "node-restarting";
|
|
7505
|
+
"node-updating": "node-updating";
|
|
7464
7506
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
7465
7507
|
"detection-blind": "detection-blind";
|
|
7466
7508
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -7547,6 +7589,8 @@ export declare const notificationRulesCapability: {
|
|
|
7547
7589
|
"stream-offline": "stream-offline";
|
|
7548
7590
|
"node-online": "node-online";
|
|
7549
7591
|
"node-offline": "node-offline";
|
|
7592
|
+
"node-restarting": "node-restarting";
|
|
7593
|
+
"node-updating": "node-updating";
|
|
7550
7594
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
7551
7595
|
"detection-blind": "detection-blind";
|
|
7552
7596
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -7662,6 +7706,8 @@ export declare const notificationRulesCapability: {
|
|
|
7662
7706
|
"stream-offline": "stream-offline";
|
|
7663
7707
|
"node-online": "node-online";
|
|
7664
7708
|
"node-offline": "node-offline";
|
|
7709
|
+
"node-restarting": "node-restarting";
|
|
7710
|
+
"node-updating": "node-updating";
|
|
7665
7711
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
7666
7712
|
"detection-blind": "detection-blind";
|
|
7667
7713
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -221,6 +221,8 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
221
221
|
"stream-offline": "stream-offline";
|
|
222
222
|
"node-online": "node-online";
|
|
223
223
|
"node-offline": "node-offline";
|
|
224
|
+
"node-restarting": "node-restarting";
|
|
225
|
+
"node-updating": "node-updating";
|
|
224
226
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
225
227
|
"detection-blind": "detection-blind";
|
|
226
228
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -407,6 +409,8 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
407
409
|
"stream-offline": "stream-offline";
|
|
408
410
|
"node-online": "node-online";
|
|
409
411
|
"node-offline": "node-offline";
|
|
412
|
+
"node-restarting": "node-restarting";
|
|
413
|
+
"node-updating": "node-updating";
|
|
410
414
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
411
415
|
"detection-blind": "detection-blind";
|
|
412
416
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -665,6 +669,8 @@ export declare const osdManagerCapability: {
|
|
|
665
669
|
"stream-offline": "stream-offline";
|
|
666
670
|
"node-online": "node-online";
|
|
667
671
|
"node-offline": "node-offline";
|
|
672
|
+
"node-restarting": "node-restarting";
|
|
673
|
+
"node-updating": "node-updating";
|
|
668
674
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
669
675
|
"detection-blind": "detection-blind";
|
|
670
676
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -942,6 +948,8 @@ export declare const osdManagerCapability: {
|
|
|
942
948
|
"stream-offline": "stream-offline";
|
|
943
949
|
"node-online": "node-online";
|
|
944
950
|
"node-offline": "node-offline";
|
|
951
|
+
"node-restarting": "node-restarting";
|
|
952
|
+
"node-updating": "node-updating";
|
|
945
953
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
946
954
|
"detection-blind": "detection-blind";
|
|
947
955
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -1127,6 +1135,8 @@ export declare const osdManagerCapability: {
|
|
|
1127
1135
|
"stream-offline": "stream-offline";
|
|
1128
1136
|
"node-online": "node-online";
|
|
1129
1137
|
"node-offline": "node-offline";
|
|
1138
|
+
"node-restarting": "node-restarting";
|
|
1139
|
+
"node-updating": "node-updating";
|
|
1130
1140
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1131
1141
|
"detection-blind": "detection-blind";
|
|
1132
1142
|
"addon-crash-loop": "addon-crash-loop";
|
|
@@ -1344,6 +1354,8 @@ export declare const osdManagerCapability: {
|
|
|
1344
1354
|
"stream-offline": "stream-offline";
|
|
1345
1355
|
"node-online": "node-online";
|
|
1346
1356
|
"node-offline": "node-offline";
|
|
1357
|
+
"node-restarting": "node-restarting";
|
|
1358
|
+
"node-updating": "node-updating";
|
|
1347
1359
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1348
1360
|
"detection-blind": "detection-blind";
|
|
1349
1361
|
"addon-crash-loop": "addon-crash-loop";
|
package/dist/client.js
CHANGED
|
@@ -1811,6 +1811,8 @@ var NcSystemEventKindSchema = zod.z.enum([
|
|
|
1811
1811
|
"stream-offline",
|
|
1812
1812
|
"node-online",
|
|
1813
1813
|
"node-offline",
|
|
1814
|
+
"node-restarting",
|
|
1815
|
+
"node-updating",
|
|
1814
1816
|
"node-inference-unavailable",
|
|
1815
1817
|
"detection-blind",
|
|
1816
1818
|
"addon-crash-loop",
|
|
@@ -8037,7 +8039,7 @@ function systemEventFilterApplies(kind, filter) {
|
|
|
8037
8039
|
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind === "alarm-triggered";
|
|
8038
8040
|
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind";
|
|
8039
8041
|
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated";
|
|
8040
|
-
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "server-updated";
|
|
8042
|
+
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
8041
8043
|
case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
|
|
8042
8044
|
}
|
|
8043
8045
|
}
|
|
@@ -8095,6 +8097,8 @@ var FAMILY_BY_NAME = new Map(Object.entries({
|
|
|
8095
8097
|
"detection-blind": "device-events",
|
|
8096
8098
|
"node-online": "system",
|
|
8097
8099
|
"node-offline": "system",
|
|
8100
|
+
"node-restarting": "system",
|
|
8101
|
+
"node-updating": "system",
|
|
8098
8102
|
"node-inference-unavailable": "system",
|
|
8099
8103
|
"addon-crash-loop": "system",
|
|
8100
8104
|
"addon-update-available": "system",
|
|
@@ -8188,6 +8192,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
8188
8192
|
kinds: [
|
|
8189
8193
|
"node-offline",
|
|
8190
8194
|
"node-online",
|
|
8195
|
+
"node-restarting",
|
|
8191
8196
|
"node-inference-unavailable"
|
|
8192
8197
|
]
|
|
8193
8198
|
},
|
|
@@ -8209,6 +8214,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
8209
8214
|
label: "Server & container updates",
|
|
8210
8215
|
kinds: [
|
|
8211
8216
|
"server-update-available",
|
|
8217
|
+
"node-updating",
|
|
8212
8218
|
"server-updated",
|
|
8213
8219
|
"wrapper-update-available"
|
|
8214
8220
|
]
|
|
@@ -9007,6 +9013,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
9007
9013
|
kinds: [
|
|
9008
9014
|
"node-offline",
|
|
9009
9015
|
"node-online",
|
|
9016
|
+
"node-restarting",
|
|
9010
9017
|
"node-inference-unavailable"
|
|
9011
9018
|
]
|
|
9012
9019
|
},
|
|
@@ -9028,6 +9035,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
9028
9035
|
example: "server 1.2.377 → 1.2.378",
|
|
9029
9036
|
kinds: [
|
|
9030
9037
|
"server-update-available",
|
|
9038
|
+
"node-updating",
|
|
9031
9039
|
"server-updated",
|
|
9032
9040
|
"wrapper-update-available"
|
|
9033
9041
|
]
|
|
@@ -9433,6 +9441,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
9433
9441
|
systemEventKinds: [
|
|
9434
9442
|
"node-online",
|
|
9435
9443
|
"node-offline",
|
|
9444
|
+
"node-restarting",
|
|
9445
|
+
"node-updating",
|
|
9436
9446
|
"node-inference-unavailable",
|
|
9437
9447
|
"addon-crash-loop",
|
|
9438
9448
|
...UPDATES,
|
|
@@ -9451,6 +9461,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
9451
9461
|
systemEventKinds: [
|
|
9452
9462
|
"node-online",
|
|
9453
9463
|
"node-offline",
|
|
9464
|
+
"node-restarting",
|
|
9465
|
+
"node-updating",
|
|
9454
9466
|
"node-inference-unavailable",
|
|
9455
9467
|
"addon-crash-loop",
|
|
9456
9468
|
...UPDATES,
|
|
@@ -9504,6 +9516,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
9504
9516
|
systemEventKinds: [
|
|
9505
9517
|
...UPDATES,
|
|
9506
9518
|
"addon-updated",
|
|
9519
|
+
"node-updating",
|
|
9507
9520
|
"server-updated"
|
|
9508
9521
|
]
|
|
9509
9522
|
},
|
|
@@ -9515,7 +9528,11 @@ var NC_TEMPLATE_VARS = [
|
|
|
9515
9528
|
families: ["rule"],
|
|
9516
9529
|
fields: [...RULE_TEXT],
|
|
9517
9530
|
kinds: ["system"],
|
|
9518
|
-
systemEventKinds: [
|
|
9531
|
+
systemEventKinds: [
|
|
9532
|
+
...PACKAGE_UPDATES,
|
|
9533
|
+
"node-updating",
|
|
9534
|
+
"server-updated"
|
|
9535
|
+
]
|
|
9519
9536
|
},
|
|
9520
9537
|
{
|
|
9521
9538
|
name: "nodes",
|
|
@@ -9567,7 +9584,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
9567
9584
|
families: ["rule"],
|
|
9568
9585
|
fields: [...RULE_TEXT],
|
|
9569
9586
|
kinds: ["system"],
|
|
9570
|
-
systemEventKinds: ["server-updated"]
|
|
9587
|
+
systemEventKinds: ["node-updating", "server-updated"]
|
|
9571
9588
|
},
|
|
9572
9589
|
{
|
|
9573
9590
|
name: "toVersion",
|
|
@@ -9577,7 +9594,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
9577
9594
|
families: ["rule"],
|
|
9578
9595
|
fields: [...RULE_TEXT],
|
|
9579
9596
|
kinds: ["system"],
|
|
9580
|
-
systemEventKinds: ["server-updated"]
|
|
9597
|
+
systemEventKinds: ["node-updating", "server-updated"]
|
|
9581
9598
|
},
|
|
9582
9599
|
{
|
|
9583
9600
|
name: "destinationsOk",
|
|
@@ -9846,7 +9863,9 @@ var NC_TEMPLATE_VARS = [
|
|
|
9846
9863
|
var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
|
|
9847
9864
|
"device-tank-low",
|
|
9848
9865
|
"device-tank-full",
|
|
9849
|
-
"device-tank-normal"
|
|
9866
|
+
"device-tank-normal",
|
|
9867
|
+
"node-restarting",
|
|
9868
|
+
"node-updating"
|
|
9850
9869
|
];
|
|
9851
9870
|
/**
|
|
9852
9871
|
* Is this descriptor held back from the SERVED catalog as a whole (D647)?
|
package/dist/client.mjs
CHANGED
|
@@ -1810,6 +1810,8 @@ var NcSystemEventKindSchema = z.enum([
|
|
|
1810
1810
|
"stream-offline",
|
|
1811
1811
|
"node-online",
|
|
1812
1812
|
"node-offline",
|
|
1813
|
+
"node-restarting",
|
|
1814
|
+
"node-updating",
|
|
1813
1815
|
"node-inference-unavailable",
|
|
1814
1816
|
"detection-blind",
|
|
1815
1817
|
"addon-crash-loop",
|
|
@@ -8036,7 +8038,7 @@ function systemEventFilterApplies(kind, filter) {
|
|
|
8036
8038
|
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind === "alarm-triggered";
|
|
8037
8039
|
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind";
|
|
8038
8040
|
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated";
|
|
8039
|
-
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "server-updated";
|
|
8041
|
+
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
8040
8042
|
case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
|
|
8041
8043
|
}
|
|
8042
8044
|
}
|
|
@@ -8094,6 +8096,8 @@ var FAMILY_BY_NAME = new Map(Object.entries({
|
|
|
8094
8096
|
"detection-blind": "device-events",
|
|
8095
8097
|
"node-online": "system",
|
|
8096
8098
|
"node-offline": "system",
|
|
8099
|
+
"node-restarting": "system",
|
|
8100
|
+
"node-updating": "system",
|
|
8097
8101
|
"node-inference-unavailable": "system",
|
|
8098
8102
|
"addon-crash-loop": "system",
|
|
8099
8103
|
"addon-update-available": "system",
|
|
@@ -8187,6 +8191,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
8187
8191
|
kinds: [
|
|
8188
8192
|
"node-offline",
|
|
8189
8193
|
"node-online",
|
|
8194
|
+
"node-restarting",
|
|
8190
8195
|
"node-inference-unavailable"
|
|
8191
8196
|
]
|
|
8192
8197
|
},
|
|
@@ -8208,6 +8213,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
8208
8213
|
label: "Server & container updates",
|
|
8209
8214
|
kinds: [
|
|
8210
8215
|
"server-update-available",
|
|
8216
|
+
"node-updating",
|
|
8211
8217
|
"server-updated",
|
|
8212
8218
|
"wrapper-update-available"
|
|
8213
8219
|
]
|
|
@@ -9006,6 +9012,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
9006
9012
|
kinds: [
|
|
9007
9013
|
"node-offline",
|
|
9008
9014
|
"node-online",
|
|
9015
|
+
"node-restarting",
|
|
9009
9016
|
"node-inference-unavailable"
|
|
9010
9017
|
]
|
|
9011
9018
|
},
|
|
@@ -9027,6 +9034,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
9027
9034
|
example: "server 1.2.377 → 1.2.378",
|
|
9028
9035
|
kinds: [
|
|
9029
9036
|
"server-update-available",
|
|
9037
|
+
"node-updating",
|
|
9030
9038
|
"server-updated",
|
|
9031
9039
|
"wrapper-update-available"
|
|
9032
9040
|
]
|
|
@@ -9432,6 +9440,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
9432
9440
|
systemEventKinds: [
|
|
9433
9441
|
"node-online",
|
|
9434
9442
|
"node-offline",
|
|
9443
|
+
"node-restarting",
|
|
9444
|
+
"node-updating",
|
|
9435
9445
|
"node-inference-unavailable",
|
|
9436
9446
|
"addon-crash-loop",
|
|
9437
9447
|
...UPDATES,
|
|
@@ -9450,6 +9460,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
9450
9460
|
systemEventKinds: [
|
|
9451
9461
|
"node-online",
|
|
9452
9462
|
"node-offline",
|
|
9463
|
+
"node-restarting",
|
|
9464
|
+
"node-updating",
|
|
9453
9465
|
"node-inference-unavailable",
|
|
9454
9466
|
"addon-crash-loop",
|
|
9455
9467
|
...UPDATES,
|
|
@@ -9503,6 +9515,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
9503
9515
|
systemEventKinds: [
|
|
9504
9516
|
...UPDATES,
|
|
9505
9517
|
"addon-updated",
|
|
9518
|
+
"node-updating",
|
|
9506
9519
|
"server-updated"
|
|
9507
9520
|
]
|
|
9508
9521
|
},
|
|
@@ -9514,7 +9527,11 @@ var NC_TEMPLATE_VARS = [
|
|
|
9514
9527
|
families: ["rule"],
|
|
9515
9528
|
fields: [...RULE_TEXT],
|
|
9516
9529
|
kinds: ["system"],
|
|
9517
|
-
systemEventKinds: [
|
|
9530
|
+
systemEventKinds: [
|
|
9531
|
+
...PACKAGE_UPDATES,
|
|
9532
|
+
"node-updating",
|
|
9533
|
+
"server-updated"
|
|
9534
|
+
]
|
|
9518
9535
|
},
|
|
9519
9536
|
{
|
|
9520
9537
|
name: "nodes",
|
|
@@ -9566,7 +9583,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
9566
9583
|
families: ["rule"],
|
|
9567
9584
|
fields: [...RULE_TEXT],
|
|
9568
9585
|
kinds: ["system"],
|
|
9569
|
-
systemEventKinds: ["server-updated"]
|
|
9586
|
+
systemEventKinds: ["node-updating", "server-updated"]
|
|
9570
9587
|
},
|
|
9571
9588
|
{
|
|
9572
9589
|
name: "toVersion",
|
|
@@ -9576,7 +9593,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
9576
9593
|
families: ["rule"],
|
|
9577
9594
|
fields: [...RULE_TEXT],
|
|
9578
9595
|
kinds: ["system"],
|
|
9579
|
-
systemEventKinds: ["server-updated"]
|
|
9596
|
+
systemEventKinds: ["node-updating", "server-updated"]
|
|
9580
9597
|
},
|
|
9581
9598
|
{
|
|
9582
9599
|
name: "destinationsOk",
|
|
@@ -9845,7 +9862,9 @@ var NC_TEMPLATE_VARS = [
|
|
|
9845
9862
|
var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
|
|
9846
9863
|
"device-tank-low",
|
|
9847
9864
|
"device-tank-full",
|
|
9848
|
-
"device-tank-normal"
|
|
9865
|
+
"device-tank-normal",
|
|
9866
|
+
"node-restarting",
|
|
9867
|
+
"node-updating"
|
|
9849
9868
|
];
|
|
9850
9869
|
/**
|
|
9851
9870
|
* Is this descriptor held back from the SERVED catalog as a whole (D647)?
|
|
@@ -3,13 +3,25 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The orchestrator is the only writer of a camera's `motion` runtime slice, and
|
|
5
5
|
* it writes the EFFECTIVE value on the hub. A camera provider's local runtime
|
|
6
|
-
* state therefore holds no `motion` slice, and its `motion
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* state therefore holds no `motion` slice, and BOTH of its `motion` reads —
|
|
7
|
+
* `isDetected` and `getStatus` — answer from here. Build the provider with
|
|
8
|
+
* {@link hubMotionNativeProvider}: a provider that serves only `isDetected`
|
|
9
|
+
* gets the framework's default `getStatus`, which reads the provider's LOCAL
|
|
10
|
+
* runtime state, and that answered `null` for every camera on the fleet while
|
|
11
|
+
* the hub's slice was written (the viewer's Motion order ranked one composite
|
|
12
|
+
* grid above every camera, 2026-10-06).
|
|
13
|
+
*
|
|
14
|
+
* The two reads say "unknown" in the shape their contract allows:
|
|
15
|
+
* - the read did not answer (the hub is unreachable, the call threw): both
|
|
16
|
+
* fail, neither answers "no motion" (D49, D393);
|
|
17
|
+
* - nobody has published the camera's motion since the hub started (the slice
|
|
18
|
+
* is session-durable): `getStatus` answers `null` — the status contract's
|
|
19
|
+
* own "no status" — and `isDetected`, a bare boolean with no room for it,
|
|
20
|
+
* fails;
|
|
21
|
+
* - a slice that is not a `MotionStatus`: both fail, naming the device.
|
|
12
22
|
*/
|
|
23
|
+
import { type InferNativeProvider } from '../capabilities/capability-definition.js';
|
|
24
|
+
import { type MotionStatus, type motionCapability } from '../capabilities/motion.cap.js';
|
|
13
25
|
/** The one `deviceState` read this needs. `ctx.api.deviceState` satisfies it. */
|
|
14
26
|
export interface HubMotionSliceReader {
|
|
15
27
|
readonly getCapSlice: {
|
|
@@ -19,4 +31,16 @@ export interface HubMotionSliceReader {
|
|
|
19
31
|
}) => Promise<Readonly<Record<string, unknown>> | null>;
|
|
20
32
|
};
|
|
21
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* The hub's `motion` slice as a `MotionStatus`, or `null` when nobody has
|
|
36
|
+
* published it since the hub started. Throws when the hub does not answer or
|
|
37
|
+
* the slice is malformed — never a made-up "no motion".
|
|
38
|
+
*/
|
|
39
|
+
export declare function readHubMotionStatus(deviceState: HubMotionSliceReader, deviceId: number): Promise<MotionStatus | null>;
|
|
22
40
|
export declare function readHubMotionDetected(deviceState: HubMotionSliceReader, deviceId: number): Promise<boolean>;
|
|
41
|
+
/**
|
|
42
|
+
* The native `motion` provider of a camera whose slice the orchestrator writes
|
|
43
|
+
* (D696): `isDetected` AND `getStatus`, both from the hub. `owner` names the
|
|
44
|
+
* provider class in the deviceId-mismatch error.
|
|
45
|
+
*/
|
|
46
|
+
export declare function hubMotionNativeProvider(deviceState: HubMotionSliceReader, deviceId: number, owner: string): InferNativeProvider<typeof motionCapability>;
|
package/dist/index.d.ts
CHANGED
|
@@ -263,9 +263,10 @@ export { assertTimelapseCadences, DEFAULT_TIMELAPSE_PREVIEW_TEXT, readTimelapseG
|
|
|
263
263
|
export { CLUSTER_MODEL_SCOPED_STEPS, CLUSTER_MODEL_SECTION_ID, CLUSTER_STEP_SETTING_FIELDS, type ClusterModelScopedStep, type ClusterStepModels, type ClusterStepSettingField, type ClusterStepSettings, clusterModelSettingKey, clusterStepSettingFieldsFor, clusterStepSettingKey, DEFAULT_CLUSTER_STEP_MODELS, DEFAULT_CLUSTER_STEP_SETTINGS, DEFAULT_MIN_LANDMARK_FACE_SIZE_PX, type HydratedClusterSection, type HydratedClusterView, interpretStoredClusterModel, type InvalidClusterStepModelEntry, invalidClusterStepModelEntries, isClusterScopedStep, overlayClusterStepSettings, pickClusterStepModels, pickClusterStepSettings, pickInvalidClusterStepModels, readClusterStepModels, readClusterStepSettings, resolveClusterStepModelId, type StepModelScope, type StoredClusterModelInterpretation, } from './pipeline/cluster-model-scope.js';
|
|
264
264
|
export { CAMERA_SENSORS_NOT_LOADED, CAMERA_SENSORS_SETTINGS_KEY, CAMERA_TRIGGER, type CameraSensorAttachment, CameraSensorAttachmentSchema, type CameraSensorRef, CameraSensorRefSchema, cameraSensorRefKey, type CameraSensorsConfig, CameraSensorsConfigSchema, type CameraOwnMotion, CameraOwnMotionSchema, type CameraRawLevel, CameraRawLevelSchema, type CameraSensorEntry, CameraSensorEntrySchema, type CameraSensorMode, CameraSensorModeSchema, type CameraSensorsNotEnforced, CameraSensorsNotEnforcedSchema, type CameraSensorsNotForwarded, CameraSensorsNotForwardedSchema, type CameraSensorsStatus, CameraSensorsStatusSchema, DEFAULT_CAMERA_SENSOR_MODE, MAX_CAMERA_SENSORS, type MotionTriggeredBy, type MotionTriggeredByReading, MotionTriggeredBySchema, readMotionTriggeredBy, } from './pipeline/camera-sensors.js';
|
|
265
265
|
export { cameraOwnsMotionViaSensor } from './pipeline/motion-ownership.js';
|
|
266
|
-
export { readHubMotionDetected } from './device/hub-motion-read.js';
|
|
266
|
+
export { hubMotionNativeProvider, readHubMotionDetected, readHubMotionStatus, } from './device/hub-motion-read.js';
|
|
267
267
|
export { type ProviderMotionData, ProviderMotionDataSchema, providerMotionEvent, } from './pipeline/provider-motion.js';
|
|
268
268
|
export { type FormatRunnableModel, stepModelRunsOnFormat, } from './pipeline/step-format-runnable.js';
|
|
269
|
+
export { isRemovedModelId, REMOVED_MODEL_IDS } from './pipeline/removed-model-ids.js';
|
|
269
270
|
export { DEFAULT_DETAIL_CROP_CONVENTION, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, type DetailCropConvention, DetailCropConventionSchema, type DetailCropRect, deriveDetailCropRect, FULL_IMAGE_BBOX, type HydratedSettingsSection, type HydratedSettingsView, pickDetailCropConvention, readDetailCropConvention, } from './pipeline/detail-crop.js';
|
|
270
271
|
export { DEFAULT_NATIVE_LEASE_SETTINGS, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, type NativeLeaseAdmission, NativeLeaseAdmissionSchema, type NativeLeaseKnob, type NativeLeaseNumberKnob, type NativeLeaseSettings, type NativeLeaseSettingsOverride, NativeLeaseSettingsSchema, pickNativeLeaseOverride, readNativeLeaseOverride, } from './pipeline/native-lease.js';
|
|
271
272
|
export { ACCESS_ROLES, type AccessRoleAssignment, type AccessRoleId, type AccessRoleSpec, buildRoleScopes, detectAccessRole, roleSpec, } from './schemas/access-roles.js';
|