@camstack/types 1.2.305 → 1.2.307
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/custom-model-registry.cap.d.ts +18 -0
- package/dist/capabilities/device-manager.cap.d.ts +8 -8
- package/dist/capabilities/model-convert.cap.d.ts +9 -0
- package/dist/capabilities/model-distributor.cap.d.ts +18 -0
- package/dist/capabilities/notification-rules.cap.d.ts +48 -2
- package/dist/capabilities/osd-manager.cap.d.ts +12 -0
- package/dist/capabilities/pipeline-executor.cap.d.ts +45 -0
- package/dist/catalogs/classifier-fill.d.ts +104 -0
- package/dist/catalogs/frigate-plus-classmap.d.ts +49 -0
- package/dist/catalogs/index.d.ts +2 -0
- package/dist/client.d.ts +17 -0
- package/dist/client.js +10533 -0
- package/dist/client.mjs +10459 -0
- package/dist/composition/evaluate-field.d.ts +12 -0
- package/dist/device/hub-motion-read.d.ts +30 -6
- package/dist/device/location-icon.d.ts +4 -4
- package/dist/device/site-zone.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +788 -408
- package/dist/index.mjs +767 -409
- package/dist/interfaces/event-bus.d.ts +9 -0
- package/dist/pipeline/native-lease.d.ts +3 -3
- package/dist/types/models.d.ts +29 -0
- package/package.json +7 -2
|
@@ -169,6 +169,15 @@ export declare const CustomModelDescriptorSchema: z.ZodObject<{
|
|
|
169
169
|
}>>;
|
|
170
170
|
preserveOriginal: z.ZodBoolean;
|
|
171
171
|
}, z.core.$strip>>;
|
|
172
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
173
|
+
stepId: z.ZodEnum<{
|
|
174
|
+
"animal-classifier": "animal-classifier";
|
|
175
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
176
|
+
"package-detection": "package-detection";
|
|
177
|
+
}>;
|
|
178
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
179
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
180
|
+
}, z.core.$strip>>>>;
|
|
172
181
|
clip: z.ZodOptional<z.ZodObject<{
|
|
173
182
|
textModelId: z.ZodString;
|
|
174
183
|
embeddingDim: z.ZodNumber;
|
|
@@ -348,6 +357,15 @@ export declare const customModelRegistryCapability: {
|
|
|
348
357
|
}>>;
|
|
349
358
|
preserveOriginal: z.ZodBoolean;
|
|
350
359
|
}, z.core.$strip>>;
|
|
360
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
361
|
+
stepId: z.ZodEnum<{
|
|
362
|
+
"animal-classifier": "animal-classifier";
|
|
363
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
364
|
+
"package-detection": "package-detection";
|
|
365
|
+
}>;
|
|
366
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
367
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
368
|
+
}, z.core.$strip>>>>;
|
|
351
369
|
clip: z.ZodOptional<z.ZodObject<{
|
|
352
370
|
textModelId: z.ZodString;
|
|
353
371
|
embeddingDim: z.ZodNumber;
|
|
@@ -781,6 +781,8 @@ export declare const deviceManagerCapability: {
|
|
|
781
781
|
locationKey: z.ZodString;
|
|
782
782
|
icon: z.ZodEnum<{
|
|
783
783
|
package: "package";
|
|
784
|
+
car: "car";
|
|
785
|
+
umbrella: "umbrella";
|
|
784
786
|
"map-pin": "map-pin";
|
|
785
787
|
house: "house";
|
|
786
788
|
"door-open": "door-open";
|
|
@@ -789,11 +791,9 @@ export declare const deviceManagerCapability: {
|
|
|
789
791
|
"bed-double": "bed-double";
|
|
790
792
|
bath: "bath";
|
|
791
793
|
briefcase: "briefcase";
|
|
792
|
-
car: "car";
|
|
793
794
|
"circle-parking": "circle-parking";
|
|
794
795
|
route: "route";
|
|
795
796
|
trees: "trees";
|
|
796
|
-
umbrella: "umbrella";
|
|
797
797
|
"waves-ladder": "waves-ladder";
|
|
798
798
|
fence: "fence";
|
|
799
799
|
warehouse: "warehouse";
|
|
@@ -815,6 +815,8 @@ export declare const deviceManagerCapability: {
|
|
|
815
815
|
location: z.ZodString;
|
|
816
816
|
icon: z.ZodNullable<z.ZodEnum<{
|
|
817
817
|
package: "package";
|
|
818
|
+
car: "car";
|
|
819
|
+
umbrella: "umbrella";
|
|
818
820
|
"map-pin": "map-pin";
|
|
819
821
|
house: "house";
|
|
820
822
|
"door-open": "door-open";
|
|
@@ -823,11 +825,9 @@ export declare const deviceManagerCapability: {
|
|
|
823
825
|
"bed-double": "bed-double";
|
|
824
826
|
bath: "bath";
|
|
825
827
|
briefcase: "briefcase";
|
|
826
|
-
car: "car";
|
|
827
828
|
"circle-parking": "circle-parking";
|
|
828
829
|
route: "route";
|
|
829
830
|
trees: "trees";
|
|
830
|
-
umbrella: "umbrella";
|
|
831
831
|
"waves-ladder": "waves-ladder";
|
|
832
832
|
fence: "fence";
|
|
833
833
|
warehouse: "warehouse";
|
|
@@ -882,6 +882,8 @@ export declare const deviceManagerCapability: {
|
|
|
882
882
|
label: z.ZodString;
|
|
883
883
|
icon: z.ZodNullable<z.ZodEnum<{
|
|
884
884
|
package: "package";
|
|
885
|
+
car: "car";
|
|
886
|
+
umbrella: "umbrella";
|
|
885
887
|
"map-pin": "map-pin";
|
|
886
888
|
house: "house";
|
|
887
889
|
"door-open": "door-open";
|
|
@@ -890,11 +892,9 @@ export declare const deviceManagerCapability: {
|
|
|
890
892
|
"bed-double": "bed-double";
|
|
891
893
|
bath: "bath";
|
|
892
894
|
briefcase: "briefcase";
|
|
893
|
-
car: "car";
|
|
894
895
|
"circle-parking": "circle-parking";
|
|
895
896
|
route: "route";
|
|
896
897
|
trees: "trees";
|
|
897
|
-
umbrella: "umbrella";
|
|
898
898
|
"waves-ladder": "waves-ladder";
|
|
899
899
|
fence: "fence";
|
|
900
900
|
warehouse: "warehouse";
|
|
@@ -915,6 +915,8 @@ export declare const deviceManagerCapability: {
|
|
|
915
915
|
name: z.ZodString;
|
|
916
916
|
icon: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
917
917
|
package: "package";
|
|
918
|
+
car: "car";
|
|
919
|
+
umbrella: "umbrella";
|
|
918
920
|
"map-pin": "map-pin";
|
|
919
921
|
house: "house";
|
|
920
922
|
"door-open": "door-open";
|
|
@@ -923,11 +925,9 @@ export declare const deviceManagerCapability: {
|
|
|
923
925
|
"bed-double": "bed-double";
|
|
924
926
|
bath: "bath";
|
|
925
927
|
briefcase: "briefcase";
|
|
926
|
-
car: "car";
|
|
927
928
|
"circle-parking": "circle-parking";
|
|
928
929
|
route: "route";
|
|
929
930
|
trees: "trees";
|
|
930
|
-
umbrella: "umbrella";
|
|
931
931
|
"waves-ladder": "waves-ladder";
|
|
932
932
|
fence: "fence";
|
|
933
933
|
warehouse: "warehouse";
|
|
@@ -279,6 +279,15 @@ export declare const modelConvertCapability: {
|
|
|
279
279
|
}>>;
|
|
280
280
|
preserveOriginal: z.ZodBoolean;
|
|
281
281
|
}, z.core.$strip>>;
|
|
282
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
283
|
+
stepId: z.ZodEnum<{
|
|
284
|
+
"animal-classifier": "animal-classifier";
|
|
285
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
286
|
+
"package-detection": "package-detection";
|
|
287
|
+
}>;
|
|
288
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
289
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
290
|
+
}, z.core.$strip>>>>;
|
|
282
291
|
clip: z.ZodOptional<z.ZodObject<{
|
|
283
292
|
textModelId: z.ZodString;
|
|
284
293
|
embeddingDim: z.ZodNumber;
|
|
@@ -177,6 +177,15 @@ export declare const ModelDistributeInputSchema: z.ZodObject<{
|
|
|
177
177
|
}>>;
|
|
178
178
|
preserveOriginal: z.ZodBoolean;
|
|
179
179
|
}, z.core.$strip>>;
|
|
180
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
181
|
+
stepId: z.ZodEnum<{
|
|
182
|
+
"animal-classifier": "animal-classifier";
|
|
183
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
184
|
+
"package-detection": "package-detection";
|
|
185
|
+
}>;
|
|
186
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
187
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
188
|
+
}, z.core.$strip>>>>;
|
|
180
189
|
clip: z.ZodOptional<z.ZodObject<{
|
|
181
190
|
textModelId: z.ZodString;
|
|
182
191
|
embeddingDim: z.ZodNumber;
|
|
@@ -361,6 +370,15 @@ export declare const modelDistributorCapability: {
|
|
|
361
370
|
}>>;
|
|
362
371
|
preserveOriginal: z.ZodBoolean;
|
|
363
372
|
}, z.core.$strip>>;
|
|
373
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
374
|
+
stepId: z.ZodEnum<{
|
|
375
|
+
"animal-classifier": "animal-classifier";
|
|
376
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
377
|
+
"package-detection": "package-detection";
|
|
378
|
+
}>;
|
|
379
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
380
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
381
|
+
}, z.core.$strip>>>>;
|
|
364
382
|
clip: z.ZodOptional<z.ZodObject<{
|
|
365
383
|
textModelId: z.ZodString;
|
|
366
384
|
embeddingDim: z.ZodNumber;
|
|
@@ -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";
|
|
@@ -740,8 +744,6 @@ export declare const NcLegacyRuleActionSequenceSchema: z.ZodObject<{
|
|
|
740
744
|
}, z.core.$strip>;
|
|
741
745
|
export type NcLegacyRuleActionSequence = z.infer<typeof NcLegacyRuleActionSequenceSchema>;
|
|
742
746
|
/** @deprecated Alias kept for call sites mid-migration; prefer {@link NcSharedSequence}. */
|
|
743
|
-
export type NcRuleActionSequence = NcLegacyRuleActionSequence;
|
|
744
|
-
/** @deprecated */
|
|
745
747
|
export declare const NcRuleActionSequenceSchema: z.ZodObject<{
|
|
746
748
|
name: z.ZodString;
|
|
747
749
|
enabled: z.ZodBoolean;
|
|
@@ -757,6 +759,8 @@ export declare const NcRuleActionSequenceSchema: z.ZodObject<{
|
|
|
757
759
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
758
760
|
}, z.core.$strip>], "kind">>;
|
|
759
761
|
}, z.core.$strip>;
|
|
762
|
+
/** @deprecated */
|
|
763
|
+
export type NcRuleActionSequence = z.infer<typeof NcRuleActionSequenceSchema>;
|
|
760
764
|
/**
|
|
761
765
|
* "This rule applies only while `deviceId` is in one of `states`."
|
|
762
766
|
*
|
|
@@ -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";
|
|
@@ -204,6 +204,15 @@ declare const PipelineModelOptionSchema: z.ZodObject<{
|
|
|
204
204
|
scrypted: "scrypted";
|
|
205
205
|
}>>;
|
|
206
206
|
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
208
|
+
stepId: z.ZodEnum<{
|
|
209
|
+
"animal-classifier": "animal-classifier";
|
|
210
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
211
|
+
"package-detection": "package-detection";
|
|
212
|
+
}>;
|
|
213
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
214
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
215
|
+
}, z.core.$strip>>>>;
|
|
207
216
|
}, z.core.$strip>;
|
|
208
217
|
declare const PipelineAddonSchemaSchema: z.ZodObject<{
|
|
209
218
|
id: z.ZodString;
|
|
@@ -252,6 +261,15 @@ declare const PipelineAddonSchemaSchema: z.ZodObject<{
|
|
|
252
261
|
scrypted: "scrypted";
|
|
253
262
|
}>>;
|
|
254
263
|
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
264
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
265
|
+
stepId: z.ZodEnum<{
|
|
266
|
+
"animal-classifier": "animal-classifier";
|
|
267
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
268
|
+
"package-detection": "package-detection";
|
|
269
|
+
}>;
|
|
270
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
271
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
272
|
+
}, z.core.$strip>>>>;
|
|
255
273
|
}, z.core.$strip>>>;
|
|
256
274
|
defaultModelId: z.ZodString;
|
|
257
275
|
defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -325,6 +343,15 @@ declare const PipelineSlotSchemaSchema: z.ZodObject<{
|
|
|
325
343
|
scrypted: "scrypted";
|
|
326
344
|
}>>;
|
|
327
345
|
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
346
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
347
|
+
stepId: z.ZodEnum<{
|
|
348
|
+
"animal-classifier": "animal-classifier";
|
|
349
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
350
|
+
"package-detection": "package-detection";
|
|
351
|
+
}>;
|
|
352
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
353
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
354
|
+
}, z.core.$strip>>>>;
|
|
328
355
|
}, z.core.$strip>>>;
|
|
329
356
|
defaultModelId: z.ZodString;
|
|
330
357
|
defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -434,6 +461,15 @@ declare const PipelineSchemaSchema: z.ZodObject<{
|
|
|
434
461
|
scrypted: "scrypted";
|
|
435
462
|
}>>;
|
|
436
463
|
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
465
|
+
stepId: z.ZodEnum<{
|
|
466
|
+
"animal-classifier": "animal-classifier";
|
|
467
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
468
|
+
"package-detection": "package-detection";
|
|
469
|
+
}>;
|
|
470
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
471
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
472
|
+
}, z.core.$strip>>>>;
|
|
437
473
|
}, z.core.$strip>>>;
|
|
438
474
|
defaultModelId: z.ZodString;
|
|
439
475
|
defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -789,6 +825,15 @@ export declare const pipelineExecutorCapability: {
|
|
|
789
825
|
scrypted: "scrypted";
|
|
790
826
|
}>>;
|
|
791
827
|
defaultConfidence: z.ZodOptional<z.ZodNumber>;
|
|
828
|
+
fillsClassifierEffects: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
829
|
+
stepId: z.ZodEnum<{
|
|
830
|
+
"animal-classifier": "animal-classifier";
|
|
831
|
+
"vehicle-classifier": "vehicle-classifier";
|
|
832
|
+
"package-detection": "package-detection";
|
|
833
|
+
}>;
|
|
834
|
+
labelToEffect: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
835
|
+
uncovered: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
836
|
+
}, z.core.$strip>>>>;
|
|
792
837
|
}, z.core.$strip>>>;
|
|
793
838
|
defaultModelId: z.ZodString;
|
|
794
839
|
defaultModelIdByFormat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Detector ↔ step label link — the ONE place that says which pipeline steps a
|
|
3
|
+
* root detector can stand in for, in whose vocabulary, and who writes tier 1.
|
|
4
|
+
*
|
|
5
|
+
* A Frigate+ detector already emits `deer`, `car`, `package`: the effect
|
|
6
|
+
* `animal-classifier`, `vehicle-classifier` and `package-detection` exist to
|
|
7
|
+
* produce. The model DECLARES that (`ModelCatalogEntry.fillsClassifierEffects`,
|
|
8
|
+
* derived here from its labelmap), and the step's own `labelLink` policy says
|
|
9
|
+
* whether the declaration is honoured. Pure — no I/O, no clock.
|
|
10
|
+
*/
|
|
11
|
+
import type { FillsClassifierEffect, ModelCatalogEntry } from '../types/models.js';
|
|
12
|
+
/** Steps a root detector may declare it fills. */
|
|
13
|
+
export declare const FILLABLE_STEP_IDS: readonly ["animal-classifier", "vehicle-classifier", "package-detection"];
|
|
14
|
+
export type FillableStepId = (typeof FILLABLE_STEP_IDS)[number];
|
|
15
|
+
/** Narrow a step id to a fillable one — type guard, not a cast. */
|
|
16
|
+
export declare function isFillableStepId(value: string): value is FillableStepId;
|
|
17
|
+
/**
|
|
18
|
+
* The EFFECT vocabulary of each fillable step: exactly the strings the step
|
|
19
|
+
* itself emits, in its own spelling. A linked label is one of these and nothing
|
|
20
|
+
* else, so a tier-1 value means the same thing whichever writer produced it.
|
|
21
|
+
*
|
|
22
|
+
* - `animal-classifier`: the PRIMARY model's `-labels.json` (Open Images V7,
|
|
23
|
+
* 8 classes) — also the species allow-list the step offers.
|
|
24
|
+
* - `vehicle-classifier`: `vehicle-type-v1-labels.json`, capitalised as the
|
|
25
|
+
* model emits them (the classifier writes `winner.class` verbatim).
|
|
26
|
+
* - `package-detection`: its one output class.
|
|
27
|
+
*
|
|
28
|
+
* `scripts/check-label-link-vocabulary.ts` fails the build if a model entry's
|
|
29
|
+
* `labelToEffect` names anything outside this table.
|
|
30
|
+
*/
|
|
31
|
+
export declare const FILLABLE_STEP_VOCABULARIES: Readonly<Record<FillableStepId, readonly string[]>>;
|
|
32
|
+
/** The macro a detection must carry for the step to apply to it. */
|
|
33
|
+
export declare const FILLABLE_STEP_MACRO: Readonly<Record<FillableStepId, string>>;
|
|
34
|
+
/** The policy values of a step's `labelLink` setting. */
|
|
35
|
+
export declare const LABEL_LINK_POLICIES: readonly ["run", "skip-when-filled"];
|
|
36
|
+
export type LabelLinkPolicy = (typeof LABEL_LINK_POLICIES)[number];
|
|
37
|
+
/** Absent setting ⇒ this. It changes nothing unless the root model declares a fill. */
|
|
38
|
+
export declare const DEFAULT_LABEL_LINK_POLICY: LabelLinkPolicy;
|
|
39
|
+
/** The step-settings key the policy is stored under (DeviceStepConfig.settings). */
|
|
40
|
+
export declare const LABEL_LINK_SETTING_KEY = "labelLink";
|
|
41
|
+
/** One fill a root model declares — the catalog schema's own type. */
|
|
42
|
+
export type ClassifierFillDeclaration = FillsClassifierEffect;
|
|
43
|
+
/** `ScoredLabel.stepId` prefix of a label the detector wrote for a step. */
|
|
44
|
+
export declare const LINKED_LABEL_STEP_PREFIX = "detector-link:";
|
|
45
|
+
/** `detector-link:<stepId>` — the attribution of a linked label. */
|
|
46
|
+
export declare function linkedLabelStepId(stepId: FillableStepId): string;
|
|
47
|
+
/** The step a linked label stands in for, or `undefined` for any other attribution. */
|
|
48
|
+
export declare function linkedStepOf(attributionStepId: string | undefined): FillableStepId | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* A labelmap is COCO when it carries at least half of the COCO-80 classes. A
|
|
51
|
+
* COCO detector NEVER fills a step (operator decision, D715): its `dog` / `car`
|
|
52
|
+
* is the generic class the classifier exists to refine, and its six animal
|
|
53
|
+
* classes would otherwise read as "fills animal-classifier 6/8". Frigate+
|
|
54
|
+
* shares about a dozen COCO names; a COCO-80 or COCO-91 labelmap carries ~80.
|
|
55
|
+
*/
|
|
56
|
+
export declare function isCocoLabelmap(labels: readonly string[]): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Which steps a root detector fills, from its labelmap and classMap. A label
|
|
59
|
+
* counts for a step only when the model's classMap sends it to that step's
|
|
60
|
+
* macro AND it names a vocabulary entry. A step none of the labels reach is
|
|
61
|
+
* not declared; a COCO labelmap declares nothing.
|
|
62
|
+
*/
|
|
63
|
+
export declare function deriveClassifierFills(labels: readonly string[], classMap: {
|
|
64
|
+
readonly mapping: Readonly<Record<string, string>>;
|
|
65
|
+
} | undefined): readonly ClassifierFillDeclaration[];
|
|
66
|
+
/** The fill a model declares for one step, if any. */
|
|
67
|
+
export declare function fillFor(entry: Pick<ModelCatalogEntry, 'fillsClassifierEffects'> | undefined, stepId: FillableStepId): ClassifierFillDeclaration | undefined;
|
|
68
|
+
/** Read the `labelLink` policy off a step's settings bag; anything else ⇒ the default. */
|
|
69
|
+
export declare function readLabelLinkPolicy(settings: Readonly<Record<string, unknown>> | undefined): LabelLinkPolicy;
|
|
70
|
+
/** The configured step the decision is about, as the attach tree carries it. */
|
|
71
|
+
export interface LinkedStepState {
|
|
72
|
+
readonly enabled: boolean;
|
|
73
|
+
readonly settings?: Readonly<Record<string, unknown>>;
|
|
74
|
+
}
|
|
75
|
+
/** Who writes the step's effect for this camera. */
|
|
76
|
+
export interface LabelLinkDecision {
|
|
77
|
+
/**
|
|
78
|
+
* The detector is the ONE writer of this effect: its linked label carries
|
|
79
|
+
* the detection's score. Otherwise it is written at score 0, a fallback any
|
|
80
|
+
* scored answer of the step outranks.
|
|
81
|
+
*/
|
|
82
|
+
readonly authoritative: boolean;
|
|
83
|
+
/** The step is configured to run and must NOT be dispatched. */
|
|
84
|
+
readonly skip: boolean;
|
|
85
|
+
readonly policy: LabelLinkPolicy;
|
|
86
|
+
/**
|
|
87
|
+
* Vocabulary entries the detector cannot produce that the step's
|
|
88
|
+
* `enabledClasses` still asks for (empty allow-list = all). The skip waits
|
|
89
|
+
* until the operator switches every one of them off.
|
|
90
|
+
*/
|
|
91
|
+
readonly openGaps: readonly string[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Decide the writer of one filled effect for one camera.
|
|
95
|
+
*
|
|
96
|
+
* - The step is not running (disabled, or not in the camera's tree): the
|
|
97
|
+
* detector is the only writer — authoritative, nothing to skip.
|
|
98
|
+
* - The step runs, the policy is `skip-when-filled` and every coverage gap is
|
|
99
|
+
* switched off in `enabledClasses`: the detector is authoritative and the
|
|
100
|
+
* step is skipped.
|
|
101
|
+
* - Otherwise the step runs and is the writer; the linked label is a score-0
|
|
102
|
+
* fallback.
|
|
103
|
+
*/
|
|
104
|
+
export declare function resolveLabelLink(fill: ClassifierFillDeclaration, step: LinkedStepState | undefined): LabelLinkDecision;
|