camstreamerlib 4.0.26-b58d309 → 4.0.27-32edb97
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/cjs/CamSwitcherAPI.js +1 -1
- package/cjs/PlaneTrackerAPI.d.ts +3 -0
- package/cjs/VapixAPI.js +1 -7
- package/cjs/types/PlaneTrackerAPI.d.ts +47 -2
- package/cjs/types/PlaneTrackerAPI.js +10 -2
- package/cjs/types/VapixAPI.d.ts +28 -16
- package/cjs/types/VapixAPI.js +4 -3
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +66 -0
- package/cjs/types/ws/PlaneTrackerEvents.js +1 -0
- package/esm/CamSwitcherAPI.js +1 -1
- package/esm/VapixAPI.js +1 -7
- package/esm/types/PlaneTrackerAPI.js +9 -1
- package/esm/types/VapixAPI.js +4 -3
- package/esm/types/ws/PlaneTrackerEvents.js +1 -0
- package/package.json +2 -2
- package/types/PlaneTrackerAPI.d.ts +3 -0
- package/types/types/PlaneTrackerAPI.d.ts +47 -2
- package/types/types/VapixAPI.d.ts +28 -16
- package/types/types/ws/PlaneTrackerEvents.d.ts +66 -0
|
@@ -18,6 +18,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
18
18
|
whiteListed: z.ZodBoolean;
|
|
19
19
|
blackListed: z.ZodBoolean;
|
|
20
20
|
priorityListed: z.ZodBoolean;
|
|
21
|
+
friendlyListed: z.ZodBoolean;
|
|
21
22
|
autoSelectionIgnored: z.ZodBoolean;
|
|
22
23
|
signalQuality: z.ZodNumber;
|
|
23
24
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -42,6 +43,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
42
43
|
whiteListed: boolean;
|
|
43
44
|
blackListed: boolean;
|
|
44
45
|
priorityListed: boolean;
|
|
46
|
+
friendlyListed: boolean;
|
|
45
47
|
autoSelectionIgnored: boolean;
|
|
46
48
|
signalQuality: number;
|
|
47
49
|
emitterCategorySet: number;
|
|
@@ -67,6 +69,7 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
67
69
|
whiteListed: boolean;
|
|
68
70
|
blackListed: boolean;
|
|
69
71
|
priorityListed: boolean;
|
|
72
|
+
friendlyListed: boolean;
|
|
70
73
|
autoSelectionIgnored: boolean;
|
|
71
74
|
signalQuality: number;
|
|
72
75
|
emergencyState: boolean;
|
|
@@ -200,6 +203,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
200
203
|
whiteListed: z.ZodBoolean;
|
|
201
204
|
blackListed: z.ZodBoolean;
|
|
202
205
|
priorityListed: z.ZodBoolean;
|
|
206
|
+
friendlyListed: z.ZodBoolean;
|
|
203
207
|
autoSelectionIgnored: z.ZodBoolean;
|
|
204
208
|
signalQuality: z.ZodNumber;
|
|
205
209
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -224,6 +228,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
224
228
|
whiteListed: boolean;
|
|
225
229
|
blackListed: boolean;
|
|
226
230
|
priorityListed: boolean;
|
|
231
|
+
friendlyListed: boolean;
|
|
227
232
|
autoSelectionIgnored: boolean;
|
|
228
233
|
signalQuality: number;
|
|
229
234
|
emitterCategorySet: number;
|
|
@@ -249,6 +254,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
249
254
|
whiteListed: boolean;
|
|
250
255
|
blackListed: boolean;
|
|
251
256
|
priorityListed: boolean;
|
|
257
|
+
friendlyListed: boolean;
|
|
252
258
|
autoSelectionIgnored: boolean;
|
|
253
259
|
signalQuality: number;
|
|
254
260
|
emergencyState: boolean;
|
|
@@ -277,6 +283,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
277
283
|
whiteListed: boolean;
|
|
278
284
|
blackListed: boolean;
|
|
279
285
|
priorityListed: boolean;
|
|
286
|
+
friendlyListed: boolean;
|
|
280
287
|
autoSelectionIgnored: boolean;
|
|
281
288
|
signalQuality: number;
|
|
282
289
|
emitterCategorySet: number;
|
|
@@ -305,6 +312,7 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
305
312
|
whiteListed: boolean;
|
|
306
313
|
blackListed: boolean;
|
|
307
314
|
priorityListed: boolean;
|
|
315
|
+
friendlyListed: boolean;
|
|
308
316
|
autoSelectionIgnored: boolean;
|
|
309
317
|
signalQuality: number;
|
|
310
318
|
emergencyState: boolean;
|
|
@@ -847,6 +855,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
847
855
|
maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
|
|
848
856
|
flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
|
|
849
857
|
weight: z.ZodNumber;
|
|
858
|
+
perimeter: z.ZodDefault<z.ZodEnum<["none", "outer", "inner"]>>;
|
|
859
|
+
trackingDomains: z.ZodDefault<z.ZodArray<z.ZodEnum<["adsb", "remoteId"]>, "many">>;
|
|
850
860
|
}, "strip", z.ZodTypeAny, {
|
|
851
861
|
enabled: boolean;
|
|
852
862
|
area: [{
|
|
@@ -858,6 +868,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
858
868
|
}[]];
|
|
859
869
|
flightDirection: "all" | "arrival" | "departure";
|
|
860
870
|
weight: number;
|
|
871
|
+
perimeter: "none" | "outer" | "inner";
|
|
872
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
861
873
|
name?: string | undefined;
|
|
862
874
|
minAltitudeAmsl?: number | undefined;
|
|
863
875
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -879,6 +891,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
879
891
|
minSpeedKmph?: number | undefined;
|
|
880
892
|
maxSpeedKmph?: number | undefined;
|
|
881
893
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
894
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
895
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
882
896
|
}>, "many">>;
|
|
883
897
|
}, "strip", z.ZodTypeAny, {
|
|
884
898
|
zones: {
|
|
@@ -892,6 +906,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
892
906
|
}[]];
|
|
893
907
|
flightDirection: "all" | "arrival" | "departure";
|
|
894
908
|
weight: number;
|
|
909
|
+
perimeter: "none" | "outer" | "inner";
|
|
910
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
895
911
|
name?: string | undefined;
|
|
896
912
|
minAltitudeAmsl?: number | undefined;
|
|
897
913
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -915,6 +931,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
915
931
|
minSpeedKmph?: number | undefined;
|
|
916
932
|
maxSpeedKmph?: number | undefined;
|
|
917
933
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
934
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
935
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
918
936
|
}[] | undefined;
|
|
919
937
|
}>;
|
|
920
938
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -938,6 +956,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
938
956
|
}[]];
|
|
939
957
|
flightDirection: "all" | "arrival" | "departure";
|
|
940
958
|
weight: number;
|
|
959
|
+
perimeter: "none" | "outer" | "inner";
|
|
960
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
941
961
|
name?: string | undefined;
|
|
942
962
|
minAltitudeAmsl?: number | undefined;
|
|
943
963
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -971,6 +991,8 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
971
991
|
minSpeedKmph?: number | undefined;
|
|
972
992
|
maxSpeedKmph?: number | undefined;
|
|
973
993
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
994
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
995
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
974
996
|
}[] | undefined;
|
|
975
997
|
};
|
|
976
998
|
}>, z.ZodObject<{
|
|
@@ -1254,6 +1276,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1254
1276
|
whiteListed: z.ZodBoolean;
|
|
1255
1277
|
blackListed: z.ZodBoolean;
|
|
1256
1278
|
priorityListed: z.ZodBoolean;
|
|
1279
|
+
friendlyListed: z.ZodBoolean;
|
|
1257
1280
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1258
1281
|
signalQuality: z.ZodNumber;
|
|
1259
1282
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1278,6 +1301,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1278
1301
|
whiteListed: boolean;
|
|
1279
1302
|
blackListed: boolean;
|
|
1280
1303
|
priorityListed: boolean;
|
|
1304
|
+
friendlyListed: boolean;
|
|
1281
1305
|
autoSelectionIgnored: boolean;
|
|
1282
1306
|
signalQuality: number;
|
|
1283
1307
|
emitterCategorySet: number;
|
|
@@ -1303,6 +1327,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1303
1327
|
whiteListed: boolean;
|
|
1304
1328
|
blackListed: boolean;
|
|
1305
1329
|
priorityListed: boolean;
|
|
1330
|
+
friendlyListed: boolean;
|
|
1306
1331
|
autoSelectionIgnored: boolean;
|
|
1307
1332
|
signalQuality: number;
|
|
1308
1333
|
emergencyState: boolean;
|
|
@@ -1331,6 +1356,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1331
1356
|
whiteListed: boolean;
|
|
1332
1357
|
blackListed: boolean;
|
|
1333
1358
|
priorityListed: boolean;
|
|
1359
|
+
friendlyListed: boolean;
|
|
1334
1360
|
autoSelectionIgnored: boolean;
|
|
1335
1361
|
signalQuality: number;
|
|
1336
1362
|
emitterCategorySet: number;
|
|
@@ -1359,6 +1385,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1359
1385
|
whiteListed: boolean;
|
|
1360
1386
|
blackListed: boolean;
|
|
1361
1387
|
priorityListed: boolean;
|
|
1388
|
+
friendlyListed: boolean;
|
|
1362
1389
|
autoSelectionIgnored: boolean;
|
|
1363
1390
|
signalQuality: number;
|
|
1364
1391
|
emergencyState: boolean;
|
|
@@ -1901,6 +1928,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1901
1928
|
maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
|
|
1902
1929
|
flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
|
|
1903
1930
|
weight: z.ZodNumber;
|
|
1931
|
+
perimeter: z.ZodDefault<z.ZodEnum<["none", "outer", "inner"]>>;
|
|
1932
|
+
trackingDomains: z.ZodDefault<z.ZodArray<z.ZodEnum<["adsb", "remoteId"]>, "many">>;
|
|
1904
1933
|
}, "strip", z.ZodTypeAny, {
|
|
1905
1934
|
enabled: boolean;
|
|
1906
1935
|
area: [{
|
|
@@ -1912,6 +1941,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1912
1941
|
}[]];
|
|
1913
1942
|
flightDirection: "all" | "arrival" | "departure";
|
|
1914
1943
|
weight: number;
|
|
1944
|
+
perimeter: "none" | "outer" | "inner";
|
|
1945
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
1915
1946
|
name?: string | undefined;
|
|
1916
1947
|
minAltitudeAmsl?: number | undefined;
|
|
1917
1948
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -1933,6 +1964,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1933
1964
|
minSpeedKmph?: number | undefined;
|
|
1934
1965
|
maxSpeedKmph?: number | undefined;
|
|
1935
1966
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
1967
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
1968
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
1936
1969
|
}>, "many">>;
|
|
1937
1970
|
}, "strip", z.ZodTypeAny, {
|
|
1938
1971
|
zones: {
|
|
@@ -1946,6 +1979,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1946
1979
|
}[]];
|
|
1947
1980
|
flightDirection: "all" | "arrival" | "departure";
|
|
1948
1981
|
weight: number;
|
|
1982
|
+
perimeter: "none" | "outer" | "inner";
|
|
1983
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
1949
1984
|
name?: string | undefined;
|
|
1950
1985
|
minAltitudeAmsl?: number | undefined;
|
|
1951
1986
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -1969,6 +2004,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1969
2004
|
minSpeedKmph?: number | undefined;
|
|
1970
2005
|
maxSpeedKmph?: number | undefined;
|
|
1971
2006
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
2007
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
2008
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
1972
2009
|
}[] | undefined;
|
|
1973
2010
|
}>;
|
|
1974
2011
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1992,6 +2029,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1992
2029
|
}[]];
|
|
1993
2030
|
flightDirection: "all" | "arrival" | "departure";
|
|
1994
2031
|
weight: number;
|
|
2032
|
+
perimeter: "none" | "outer" | "inner";
|
|
2033
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
1995
2034
|
name?: string | undefined;
|
|
1996
2035
|
minAltitudeAmsl?: number | undefined;
|
|
1997
2036
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -2025,6 +2064,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2025
2064
|
minSpeedKmph?: number | undefined;
|
|
2026
2065
|
maxSpeedKmph?: number | undefined;
|
|
2027
2066
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
2067
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
2068
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
2028
2069
|
}[] | undefined;
|
|
2029
2070
|
};
|
|
2030
2071
|
}>, z.ZodObject<{
|
|
@@ -2274,6 +2315,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2274
2315
|
whiteListed: boolean;
|
|
2275
2316
|
blackListed: boolean;
|
|
2276
2317
|
priorityListed: boolean;
|
|
2318
|
+
friendlyListed: boolean;
|
|
2277
2319
|
autoSelectionIgnored: boolean;
|
|
2278
2320
|
signalQuality: number;
|
|
2279
2321
|
emitterCategorySet: number;
|
|
@@ -2418,6 +2460,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2418
2460
|
}[]];
|
|
2419
2461
|
flightDirection: "all" | "arrival" | "departure";
|
|
2420
2462
|
weight: number;
|
|
2463
|
+
perimeter: "none" | "outer" | "inner";
|
|
2464
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
2421
2465
|
name?: string | undefined;
|
|
2422
2466
|
minAltitudeAmsl?: number | undefined;
|
|
2423
2467
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -2517,6 +2561,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2517
2561
|
whiteListed: boolean;
|
|
2518
2562
|
blackListed: boolean;
|
|
2519
2563
|
priorityListed: boolean;
|
|
2564
|
+
friendlyListed: boolean;
|
|
2520
2565
|
autoSelectionIgnored: boolean;
|
|
2521
2566
|
signalQuality: number;
|
|
2522
2567
|
emergencyState: boolean;
|
|
@@ -2666,6 +2711,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2666
2711
|
minSpeedKmph?: number | undefined;
|
|
2667
2712
|
maxSpeedKmph?: number | undefined;
|
|
2668
2713
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
2714
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
2715
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
2669
2716
|
}[] | undefined;
|
|
2670
2717
|
};
|
|
2671
2718
|
} | {
|
|
@@ -2792,6 +2839,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2792
2839
|
whiteListed: z.ZodBoolean;
|
|
2793
2840
|
blackListed: z.ZodBoolean;
|
|
2794
2841
|
priorityListed: z.ZodBoolean;
|
|
2842
|
+
friendlyListed: z.ZodBoolean;
|
|
2795
2843
|
autoSelectionIgnored: z.ZodBoolean;
|
|
2796
2844
|
signalQuality: z.ZodNumber;
|
|
2797
2845
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2816,6 +2864,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2816
2864
|
whiteListed: boolean;
|
|
2817
2865
|
blackListed: boolean;
|
|
2818
2866
|
priorityListed: boolean;
|
|
2867
|
+
friendlyListed: boolean;
|
|
2819
2868
|
autoSelectionIgnored: boolean;
|
|
2820
2869
|
signalQuality: number;
|
|
2821
2870
|
emitterCategorySet: number;
|
|
@@ -2841,6 +2890,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2841
2890
|
whiteListed: boolean;
|
|
2842
2891
|
blackListed: boolean;
|
|
2843
2892
|
priorityListed: boolean;
|
|
2893
|
+
friendlyListed: boolean;
|
|
2844
2894
|
autoSelectionIgnored: boolean;
|
|
2845
2895
|
signalQuality: number;
|
|
2846
2896
|
emergencyState: boolean;
|
|
@@ -2869,6 +2919,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2869
2919
|
whiteListed: boolean;
|
|
2870
2920
|
blackListed: boolean;
|
|
2871
2921
|
priorityListed: boolean;
|
|
2922
|
+
friendlyListed: boolean;
|
|
2872
2923
|
autoSelectionIgnored: boolean;
|
|
2873
2924
|
signalQuality: number;
|
|
2874
2925
|
emitterCategorySet: number;
|
|
@@ -2897,6 +2948,7 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2897
2948
|
whiteListed: boolean;
|
|
2898
2949
|
blackListed: boolean;
|
|
2899
2950
|
priorityListed: boolean;
|
|
2951
|
+
friendlyListed: boolean;
|
|
2900
2952
|
autoSelectionIgnored: boolean;
|
|
2901
2953
|
signalQuality: number;
|
|
2902
2954
|
emergencyState: boolean;
|
|
@@ -3439,6 +3491,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3439
3491
|
maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
|
|
3440
3492
|
flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
|
|
3441
3493
|
weight: z.ZodNumber;
|
|
3494
|
+
perimeter: z.ZodDefault<z.ZodEnum<["none", "outer", "inner"]>>;
|
|
3495
|
+
trackingDomains: z.ZodDefault<z.ZodArray<z.ZodEnum<["adsb", "remoteId"]>, "many">>;
|
|
3442
3496
|
}, "strip", z.ZodTypeAny, {
|
|
3443
3497
|
enabled: boolean;
|
|
3444
3498
|
area: [{
|
|
@@ -3450,6 +3504,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3450
3504
|
}[]];
|
|
3451
3505
|
flightDirection: "all" | "arrival" | "departure";
|
|
3452
3506
|
weight: number;
|
|
3507
|
+
perimeter: "none" | "outer" | "inner";
|
|
3508
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
3453
3509
|
name?: string | undefined;
|
|
3454
3510
|
minAltitudeAmsl?: number | undefined;
|
|
3455
3511
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -3471,6 +3527,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3471
3527
|
minSpeedKmph?: number | undefined;
|
|
3472
3528
|
maxSpeedKmph?: number | undefined;
|
|
3473
3529
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
3530
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
3531
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
3474
3532
|
}>, "many">>;
|
|
3475
3533
|
}, "strip", z.ZodTypeAny, {
|
|
3476
3534
|
zones: {
|
|
@@ -3484,6 +3542,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3484
3542
|
}[]];
|
|
3485
3543
|
flightDirection: "all" | "arrival" | "departure";
|
|
3486
3544
|
weight: number;
|
|
3545
|
+
perimeter: "none" | "outer" | "inner";
|
|
3546
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
3487
3547
|
name?: string | undefined;
|
|
3488
3548
|
minAltitudeAmsl?: number | undefined;
|
|
3489
3549
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -3507,6 +3567,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3507
3567
|
minSpeedKmph?: number | undefined;
|
|
3508
3568
|
maxSpeedKmph?: number | undefined;
|
|
3509
3569
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
3570
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
3571
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
3510
3572
|
}[] | undefined;
|
|
3511
3573
|
}>;
|
|
3512
3574
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3530,6 +3592,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3530
3592
|
}[]];
|
|
3531
3593
|
flightDirection: "all" | "arrival" | "departure";
|
|
3532
3594
|
weight: number;
|
|
3595
|
+
perimeter: "none" | "outer" | "inner";
|
|
3596
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
3533
3597
|
name?: string | undefined;
|
|
3534
3598
|
minAltitudeAmsl?: number | undefined;
|
|
3535
3599
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -3563,6 +3627,8 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
3563
3627
|
minSpeedKmph?: number | undefined;
|
|
3564
3628
|
maxSpeedKmph?: number | undefined;
|
|
3565
3629
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
3630
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
3631
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
3566
3632
|
}[] | undefined;
|
|
3567
3633
|
};
|
|
3568
3634
|
}>, z.ZodObject<{
|
|
@@ -22,6 +22,7 @@ const wsApiFlightDataSchema = zod_1.z.object({
|
|
|
22
22
|
whiteListed: zod_1.z.boolean(),
|
|
23
23
|
blackListed: zod_1.z.boolean(),
|
|
24
24
|
priorityListed: zod_1.z.boolean(),
|
|
25
|
+
friendlyListed: zod_1.z.boolean(),
|
|
25
26
|
autoSelectionIgnored: zod_1.z.boolean(),
|
|
26
27
|
signalQuality: zod_1.z.number(),
|
|
27
28
|
emitterCategorySet: zod_1.z.number().default(4),
|
package/esm/CamSwitcherAPI.js
CHANGED
|
@@ -278,7 +278,7 @@ export class CamSwitcherAPI extends BasicAPI {
|
|
|
278
278
|
}
|
|
279
279
|
catch {
|
|
280
280
|
try {
|
|
281
|
-
return JSON.parse(decodeURIComponent(data[paramName] + ''));
|
|
281
|
+
return JSON.parse(decodeURIComponent((data[paramName] + '').replaceAll('\\', '')));
|
|
282
282
|
}
|
|
283
283
|
catch (e) {
|
|
284
284
|
throw new JsonParseError(paramName, data[paramName]);
|
package/esm/VapixAPI.js
CHANGED
|
@@ -73,13 +73,7 @@ export class VapixAPI extends BasicAPI {
|
|
|
73
73
|
const jsonData = { apiVersion: '1.0', method: 'list' };
|
|
74
74
|
const res = await this._postJsonEncoded(path, jsonData, undefined, options);
|
|
75
75
|
const encoders = audioSampleRatesResponseSchema.parse(await res.json()).data.encoders;
|
|
76
|
-
|
|
77
|
-
return data.map((item) => {
|
|
78
|
-
return {
|
|
79
|
-
sampleRate: item.sample_rate,
|
|
80
|
-
bitRates: item.bit_rates,
|
|
81
|
-
};
|
|
82
|
-
});
|
|
76
|
+
return encoders.aac ?? encoders.AAC ?? [];
|
|
83
77
|
}
|
|
84
78
|
async performAutofocus(options) {
|
|
85
79
|
try {
|
|
@@ -70,12 +70,14 @@ export const cameraSettingsSchema = z.object({
|
|
|
70
70
|
.object({
|
|
71
71
|
nightSkyCalibrationEnabled: z.boolean(),
|
|
72
72
|
scheduleNightSkyCalibrationTimestamp: z.number(),
|
|
73
|
+
nightSkyCalibrationRepeatCount: z.number().int().min(1).max(6).default(1),
|
|
73
74
|
nightSkyCalibrationFocusValue: z.number().int().min(1).max(9999).default(9000),
|
|
74
75
|
focusCalibrationPoints: z.string().default(''),
|
|
75
76
|
})
|
|
76
77
|
.default({
|
|
77
78
|
nightSkyCalibrationEnabled: false,
|
|
78
79
|
scheduleNightSkyCalibrationTimestamp: 0,
|
|
80
|
+
nightSkyCalibrationRepeatCount: 1,
|
|
79
81
|
nightSkyCalibrationFocusValue: 9000,
|
|
80
82
|
focusCalibrationPoints: '',
|
|
81
83
|
}),
|
|
@@ -339,6 +341,9 @@ export const blackListSchema = z.object({
|
|
|
339
341
|
export const priorityListSchema = z.object({
|
|
340
342
|
list: z.array(priorityListEntrySchema).default([]),
|
|
341
343
|
});
|
|
344
|
+
export const friendlyListSchema = z.object({
|
|
345
|
+
list: z.array(listEntrySchema).default([]),
|
|
346
|
+
});
|
|
342
347
|
export const mapTypeSchema = z.enum(['roadmap', 'satellite']);
|
|
343
348
|
export const mapInfoSchema = z.object({
|
|
344
349
|
minZoom: z.number().nonnegative(),
|
|
@@ -346,6 +351,8 @@ export const mapInfoSchema = z.object({
|
|
|
346
351
|
mapTypes: z.array(mapTypeSchema),
|
|
347
352
|
tileSize: z.number().nonnegative(),
|
|
348
353
|
});
|
|
354
|
+
export const domainIdSchema = z.enum(['adsb', 'remoteId']);
|
|
355
|
+
export const zonePerimeterSchema = z.enum(['none', 'outer', 'inner']);
|
|
349
356
|
export const zonesSchema = z.object({
|
|
350
357
|
zones: z
|
|
351
358
|
.array(z.object({
|
|
@@ -363,10 +370,11 @@ export const zonesSchema = z.object({
|
|
|
363
370
|
maxSpeedKmph: z.number().optional(),
|
|
364
371
|
flightDirection: z.enum(['all', 'arrival', 'departure']).default('all'),
|
|
365
372
|
weight: z.number(),
|
|
373
|
+
perimeter: zonePerimeterSchema.default('none'),
|
|
374
|
+
trackingDomains: z.array(domainIdSchema).default(['adsb', 'remoteId']),
|
|
366
375
|
}))
|
|
367
376
|
.default([]),
|
|
368
377
|
});
|
|
369
|
-
export const domainIdSchema = z.enum(['adsb', 'remoteId']);
|
|
370
378
|
const categoryIconSchema = z.enum(['small', 'large', 'heavy', 'helicopter', 'drone', 'operator', 'vehicle', 'unknown']);
|
|
371
379
|
const categoryDescriptorSchema = z.object({
|
|
372
380
|
categoryId: z.string(),
|
package/esm/types/VapixAPI.js
CHANGED
|
@@ -50,11 +50,12 @@ export const guardTourSchema = z.object({
|
|
|
50
50
|
waitTimeViewType: z.unknown(),
|
|
51
51
|
})),
|
|
52
52
|
});
|
|
53
|
-
const audioSampleRatesSchema = z
|
|
53
|
+
const audioSampleRatesSchema = z
|
|
54
|
+
.object({
|
|
54
55
|
sample_rate: z.number(),
|
|
55
56
|
bit_rates: z.array(z.number()),
|
|
56
|
-
})
|
|
57
|
-
|
|
57
|
+
})
|
|
58
|
+
.transform(toCamelCaseDeep);
|
|
58
59
|
export const sdCardWatchedStatuses = ['OK', 'connected', 'disconnected'];
|
|
59
60
|
export const sdCardInfoSchema = z.object({
|
|
60
61
|
status: z.enum(sdCardWatchedStatuses),
|
|
@@ -19,6 +19,7 @@ const wsApiFlightDataSchema = z.object({
|
|
|
19
19
|
whiteListed: z.boolean(),
|
|
20
20
|
blackListed: z.boolean(),
|
|
21
21
|
priorityListed: z.boolean(),
|
|
22
|
+
friendlyListed: z.boolean(),
|
|
22
23
|
autoSelectionIgnored: z.boolean(),
|
|
23
24
|
signalQuality: z.number(),
|
|
24
25
|
emitterCategorySet: z.number().default(4),
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camstreamerlib",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.27-32edb97",
|
|
4
4
|
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
5
|
"prettier": "@camstreamer/prettier-config",
|
|
6
6
|
"engine": {
|
|
7
7
|
"node": ">=18.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"adm-zip": "^0.
|
|
10
|
+
"adm-zip": "^0.6.0",
|
|
11
11
|
"eventemitter2": "^5.0.1",
|
|
12
12
|
"fast-xml-parser": "^5.3.6",
|
|
13
13
|
"type-fest": "^4.41.0",
|
|
@@ -40,6 +40,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
40
40
|
cameraCalibrationProcessConfig: {
|
|
41
41
|
nightSkyCalibrationEnabled: boolean;
|
|
42
42
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
43
|
+
nightSkyCalibrationRepeatCount: number;
|
|
43
44
|
nightSkyCalibrationFocusValue: number;
|
|
44
45
|
focusCalibrationPoints: string;
|
|
45
46
|
};
|
|
@@ -260,6 +261,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
260
261
|
}[]];
|
|
261
262
|
flightDirection: "all" | "arrival" | "departure";
|
|
262
263
|
weight: number;
|
|
264
|
+
perimeter: "none" | "outer" | "inner";
|
|
265
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
263
266
|
name?: string | undefined;
|
|
264
267
|
minAltitudeAmsl?: number | undefined;
|
|
265
268
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -116,16 +116,19 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
116
116
|
cameraCalibrationProcessConfig: z.ZodDefault<z.ZodObject<{
|
|
117
117
|
nightSkyCalibrationEnabled: z.ZodBoolean;
|
|
118
118
|
scheduleNightSkyCalibrationTimestamp: z.ZodNumber;
|
|
119
|
+
nightSkyCalibrationRepeatCount: z.ZodDefault<z.ZodNumber>;
|
|
119
120
|
nightSkyCalibrationFocusValue: z.ZodDefault<z.ZodNumber>;
|
|
120
121
|
focusCalibrationPoints: z.ZodDefault<z.ZodString>;
|
|
121
122
|
}, "strip", z.ZodTypeAny, {
|
|
122
123
|
nightSkyCalibrationEnabled: boolean;
|
|
123
124
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
125
|
+
nightSkyCalibrationRepeatCount: number;
|
|
124
126
|
nightSkyCalibrationFocusValue: number;
|
|
125
127
|
focusCalibrationPoints: string;
|
|
126
128
|
}, {
|
|
127
129
|
nightSkyCalibrationEnabled: boolean;
|
|
128
130
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
131
|
+
nightSkyCalibrationRepeatCount?: number | undefined;
|
|
129
132
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
130
133
|
focusCalibrationPoints?: string | undefined;
|
|
131
134
|
}>>;
|
|
@@ -452,6 +455,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
452
455
|
cameraCalibrationProcessConfig: {
|
|
453
456
|
nightSkyCalibrationEnabled: boolean;
|
|
454
457
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
458
|
+
nightSkyCalibrationRepeatCount: number;
|
|
455
459
|
nightSkyCalibrationFocusValue: number;
|
|
456
460
|
focusCalibrationPoints: string;
|
|
457
461
|
};
|
|
@@ -585,6 +589,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
585
589
|
cameraCalibrationProcessConfig?: {
|
|
586
590
|
nightSkyCalibrationEnabled: boolean;
|
|
587
591
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
592
|
+
nightSkyCalibrationRepeatCount?: number | undefined;
|
|
588
593
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
589
594
|
focusCalibrationPoints?: string | undefined;
|
|
590
595
|
} | undefined;
|
|
@@ -1035,9 +1040,37 @@ export declare const priorityListSchema: z.ZodObject<{
|
|
|
1035
1040
|
idValue: string;
|
|
1036
1041
|
}[] | undefined;
|
|
1037
1042
|
}>;
|
|
1043
|
+
export declare const friendlyListSchema: z.ZodObject<{
|
|
1044
|
+
list: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1045
|
+
domain: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1046
|
+
idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
|
|
1047
|
+
idValue: z.ZodString;
|
|
1048
|
+
}, "strip", z.ZodTypeAny, {
|
|
1049
|
+
domain: "adsb" | "remoteId";
|
|
1050
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1051
|
+
idValue: string;
|
|
1052
|
+
}, {
|
|
1053
|
+
domain: "adsb" | "remoteId";
|
|
1054
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1055
|
+
idValue: string;
|
|
1056
|
+
}>, "many">>;
|
|
1057
|
+
}, "strip", z.ZodTypeAny, {
|
|
1058
|
+
list: {
|
|
1059
|
+
domain: "adsb" | "remoteId";
|
|
1060
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1061
|
+
idValue: string;
|
|
1062
|
+
}[];
|
|
1063
|
+
}, {
|
|
1064
|
+
list?: {
|
|
1065
|
+
domain: "adsb" | "remoteId";
|
|
1066
|
+
idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
|
|
1067
|
+
idValue: string;
|
|
1068
|
+
}[] | undefined;
|
|
1069
|
+
}>;
|
|
1038
1070
|
export type TWhiteList = z.infer<typeof whiteListSchema>;
|
|
1039
1071
|
export type TBlackList = z.infer<typeof blackListSchema>;
|
|
1040
1072
|
export type TPriorityList = z.infer<typeof priorityListSchema>;
|
|
1073
|
+
export type TFriendlyList = z.infer<typeof friendlyListSchema>;
|
|
1041
1074
|
export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
|
|
1042
1075
|
export type TMapType = z.infer<typeof mapTypeSchema>;
|
|
1043
1076
|
export declare const mapInfoSchema: z.ZodObject<{
|
|
@@ -1057,6 +1090,10 @@ export declare const mapInfoSchema: z.ZodObject<{
|
|
|
1057
1090
|
tileSize: number;
|
|
1058
1091
|
}>;
|
|
1059
1092
|
export type TMapInfo = z.infer<typeof mapInfoSchema>;
|
|
1093
|
+
export declare const domainIdSchema: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1094
|
+
export type TDomainId = z.infer<typeof domainIdSchema>;
|
|
1095
|
+
export declare const zonePerimeterSchema: z.ZodEnum<["none", "outer", "inner"]>;
|
|
1096
|
+
export type TZonePerimeter = z.infer<typeof zonePerimeterSchema>;
|
|
1060
1097
|
export declare const zonesSchema: z.ZodObject<{
|
|
1061
1098
|
zones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1062
1099
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1077,6 +1114,8 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1077
1114
|
maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
|
|
1078
1115
|
flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
|
|
1079
1116
|
weight: z.ZodNumber;
|
|
1117
|
+
perimeter: z.ZodDefault<z.ZodEnum<["none", "outer", "inner"]>>;
|
|
1118
|
+
trackingDomains: z.ZodDefault<z.ZodArray<z.ZodEnum<["adsb", "remoteId"]>, "many">>;
|
|
1080
1119
|
}, "strip", z.ZodTypeAny, {
|
|
1081
1120
|
enabled: boolean;
|
|
1082
1121
|
area: [{
|
|
@@ -1088,6 +1127,8 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1088
1127
|
}[]];
|
|
1089
1128
|
flightDirection: "all" | "arrival" | "departure";
|
|
1090
1129
|
weight: number;
|
|
1130
|
+
perimeter: "none" | "outer" | "inner";
|
|
1131
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
1091
1132
|
name?: string | undefined;
|
|
1092
1133
|
minAltitudeAmsl?: number | undefined;
|
|
1093
1134
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -1109,6 +1150,8 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1109
1150
|
minSpeedKmph?: number | undefined;
|
|
1110
1151
|
maxSpeedKmph?: number | undefined;
|
|
1111
1152
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
1153
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
1154
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
1112
1155
|
}>, "many">>;
|
|
1113
1156
|
}, "strip", z.ZodTypeAny, {
|
|
1114
1157
|
zones: {
|
|
@@ -1122,6 +1165,8 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1122
1165
|
}[]];
|
|
1123
1166
|
flightDirection: "all" | "arrival" | "departure";
|
|
1124
1167
|
weight: number;
|
|
1168
|
+
perimeter: "none" | "outer" | "inner";
|
|
1169
|
+
trackingDomains: ("adsb" | "remoteId")[];
|
|
1125
1170
|
name?: string | undefined;
|
|
1126
1171
|
minAltitudeAmsl?: number | undefined;
|
|
1127
1172
|
maxAltitudeAmsl?: number | undefined;
|
|
@@ -1145,11 +1190,11 @@ export declare const zonesSchema: z.ZodObject<{
|
|
|
1145
1190
|
minSpeedKmph?: number | undefined;
|
|
1146
1191
|
maxSpeedKmph?: number | undefined;
|
|
1147
1192
|
flightDirection?: "all" | "arrival" | "departure" | undefined;
|
|
1193
|
+
perimeter?: "none" | "outer" | "inner" | undefined;
|
|
1194
|
+
trackingDomains?: ("adsb" | "remoteId")[] | undefined;
|
|
1148
1195
|
}[] | undefined;
|
|
1149
1196
|
}>;
|
|
1150
1197
|
export type TZones = z.infer<typeof zonesSchema>;
|
|
1151
|
-
export declare const domainIdSchema: z.ZodEnum<["adsb", "remoteId"]>;
|
|
1152
|
-
export type TDomainId = z.infer<typeof domainIdSchema>;
|
|
1153
1198
|
declare const categoryIconSchema: z.ZodEnum<["small", "large", "heavy", "helicopter", "drone", "operator", "vehicle", "unknown"]>;
|
|
1154
1199
|
export type TCategoryIcon = z.infer<typeof categoryIconSchema>;
|
|
1155
1200
|
declare const categoryDescriptorSchema: z.ZodObject<{
|