camstreamerlib 4.0.26-cf50abe → 4.0.27-c8f267f
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/PlaneTrackerAPI.d.ts +1 -0
- package/cjs/VapixAPI.js +1 -7
- package/cjs/types/PlaneTrackerAPI.d.ts +33 -0
- package/cjs/types/PlaneTrackerAPI.js +6 -1
- package/cjs/types/VapixAPI.d.ts +28 -16
- package/cjs/types/VapixAPI.js +4 -3
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +40 -20
- package/cjs/types/ws/PlaneTrackerEvents.js +2 -1
- package/esm/VapixAPI.js +1 -7
- package/esm/types/PlaneTrackerAPI.js +5 -0
- package/esm/types/VapixAPI.js +4 -3
- package/esm/types/ws/PlaneTrackerEvents.js +2 -1
- package/package.json +3 -3
- package/types/PlaneTrackerAPI.d.ts +1 -0
- package/types/types/PlaneTrackerAPI.d.ts +33 -0
- package/types/types/VapixAPI.d.ts +28 -16
- package/types/types/ws/PlaneTrackerEvents.d.ts +40 -20
package/cjs/PlaneTrackerAPI.d.ts
CHANGED
|
@@ -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
|
};
|
package/cjs/VapixAPI.js
CHANGED
|
@@ -76,13 +76,7 @@ class VapixAPI extends BasicAPI_1.BasicAPI {
|
|
|
76
76
|
const jsonData = { apiVersion: '1.0', method: 'list' };
|
|
77
77
|
const res = await this._postJsonEncoded(path, jsonData, undefined, options);
|
|
78
78
|
const encoders = VapixAPI_1.audioSampleRatesResponseSchema.parse(await res.json()).data.encoders;
|
|
79
|
-
|
|
80
|
-
return data.map((item) => {
|
|
81
|
-
return {
|
|
82
|
-
sampleRate: item.sample_rate,
|
|
83
|
-
bitRates: item.bit_rates,
|
|
84
|
-
};
|
|
85
|
-
});
|
|
79
|
+
return encoders.aac ?? encoders.AAC ?? [];
|
|
86
80
|
}
|
|
87
81
|
async performAutofocus(options) {
|
|
88
82
|
try {
|
|
@@ -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<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainListSchema = exports.zonesSchema = exports.zonePerimeterSchema = exports.domainIdSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.milestoneCameraListSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
|
|
3
|
+
exports.REMOTE_ID_CATEGORY_IDS = exports.ADSB_CATEGORY_IDS = exports.domainListSchema = exports.zonesSchema = exports.zonePerimeterSchema = exports.domainIdSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.friendlyListSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.milestoneCameraListSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.wsAliasResponseSchema = zod_1.z.object({
|
|
6
6
|
alias: zod_1.z.string(),
|
|
@@ -73,12 +73,14 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
73
73
|
.object({
|
|
74
74
|
nightSkyCalibrationEnabled: zod_1.z.boolean(),
|
|
75
75
|
scheduleNightSkyCalibrationTimestamp: zod_1.z.number(),
|
|
76
|
+
nightSkyCalibrationRepeatCount: zod_1.z.number().int().min(1).max(6).default(1),
|
|
76
77
|
nightSkyCalibrationFocusValue: zod_1.z.number().int().min(1).max(9999).default(9000),
|
|
77
78
|
focusCalibrationPoints: zod_1.z.string().default(''),
|
|
78
79
|
})
|
|
79
80
|
.default({
|
|
80
81
|
nightSkyCalibrationEnabled: false,
|
|
81
82
|
scheduleNightSkyCalibrationTimestamp: 0,
|
|
83
|
+
nightSkyCalibrationRepeatCount: 1,
|
|
82
84
|
nightSkyCalibrationFocusValue: 9000,
|
|
83
85
|
focusCalibrationPoints: '',
|
|
84
86
|
}),
|
|
@@ -342,6 +344,9 @@ exports.blackListSchema = zod_1.z.object({
|
|
|
342
344
|
exports.priorityListSchema = zod_1.z.object({
|
|
343
345
|
list: zod_1.z.array(exports.priorityListEntrySchema).default([]),
|
|
344
346
|
});
|
|
347
|
+
exports.friendlyListSchema = zod_1.z.object({
|
|
348
|
+
list: zod_1.z.array(exports.listEntrySchema).default([]),
|
|
349
|
+
});
|
|
345
350
|
exports.mapTypeSchema = zod_1.z.enum(['roadmap', 'satellite']);
|
|
346
351
|
exports.mapInfoSchema = zod_1.z.object({
|
|
347
352
|
minZoom: zod_1.z.number().nonnegative(),
|
package/cjs/types/VapixAPI.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ export declare const guardTourSchema: z.ZodObject<{
|
|
|
133
133
|
timeBetweenSequences?: unknown;
|
|
134
134
|
}>;
|
|
135
135
|
export type TGuardTour = z.infer<typeof guardTourSchema>;
|
|
136
|
-
declare const
|
|
136
|
+
declare const audioSampleRatesSchema: z.ZodEffects<z.ZodObject<{
|
|
137
137
|
sample_rate: z.ZodNumber;
|
|
138
138
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -149,7 +149,7 @@ declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
sample_rate: number;
|
|
150
150
|
bit_rates: number[];
|
|
151
151
|
}>;
|
|
152
|
-
export type TAudioSampleRates = z.infer<typeof
|
|
152
|
+
export type TAudioSampleRates = z.infer<typeof audioSampleRatesSchema>;
|
|
153
153
|
export declare const sdCardWatchedStatuses: readonly ["OK", "connected", "disconnected"];
|
|
154
154
|
export declare const sdCardInfoSchema: z.ZodObject<{
|
|
155
155
|
status: z.ZodEnum<["OK", "connected", "disconnected"]>;
|
|
@@ -1666,7 +1666,7 @@ export declare const timeZoneSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObj
|
|
|
1666
1666
|
export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
1667
1667
|
data: z.ZodObject<{
|
|
1668
1668
|
encoders: z.ZodObject<{
|
|
1669
|
-
aac: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1669
|
+
aac: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1670
1670
|
sample_rate: z.ZodNumber;
|
|
1671
1671
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
1672
1672
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1675,8 +1675,14 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1675
1675
|
}, {
|
|
1676
1676
|
sample_rate: number;
|
|
1677
1677
|
bit_rates: number[];
|
|
1678
|
+
}>, {
|
|
1679
|
+
sampleRate: number;
|
|
1680
|
+
bitRates: number[];
|
|
1681
|
+
}, {
|
|
1682
|
+
sample_rate: number;
|
|
1683
|
+
bit_rates: number[];
|
|
1678
1684
|
}>, "many">>;
|
|
1679
|
-
AAC: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1685
|
+
AAC: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1680
1686
|
sample_rate: z.ZodNumber;
|
|
1681
1687
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
1682
1688
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1685,15 +1691,21 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1685
1691
|
}, {
|
|
1686
1692
|
sample_rate: number;
|
|
1687
1693
|
bit_rates: number[];
|
|
1694
|
+
}>, {
|
|
1695
|
+
sampleRate: number;
|
|
1696
|
+
bitRates: number[];
|
|
1697
|
+
}, {
|
|
1698
|
+
sample_rate: number;
|
|
1699
|
+
bit_rates: number[];
|
|
1688
1700
|
}>, "many">>;
|
|
1689
1701
|
}, "strip", z.ZodTypeAny, {
|
|
1690
1702
|
aac?: {
|
|
1691
|
-
|
|
1692
|
-
|
|
1703
|
+
sampleRate: number;
|
|
1704
|
+
bitRates: number[];
|
|
1693
1705
|
}[] | undefined;
|
|
1694
1706
|
AAC?: {
|
|
1695
|
-
|
|
1696
|
-
|
|
1707
|
+
sampleRate: number;
|
|
1708
|
+
bitRates: number[];
|
|
1697
1709
|
}[] | undefined;
|
|
1698
1710
|
}, {
|
|
1699
1711
|
aac?: {
|
|
@@ -1708,12 +1720,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1708
1720
|
}, "strip", z.ZodTypeAny, {
|
|
1709
1721
|
encoders: {
|
|
1710
1722
|
aac?: {
|
|
1711
|
-
|
|
1712
|
-
|
|
1723
|
+
sampleRate: number;
|
|
1724
|
+
bitRates: number[];
|
|
1713
1725
|
}[] | undefined;
|
|
1714
1726
|
AAC?: {
|
|
1715
|
-
|
|
1716
|
-
|
|
1727
|
+
sampleRate: number;
|
|
1728
|
+
bitRates: number[];
|
|
1717
1729
|
}[] | undefined;
|
|
1718
1730
|
};
|
|
1719
1731
|
}, {
|
|
@@ -1732,12 +1744,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1732
1744
|
data: {
|
|
1733
1745
|
encoders: {
|
|
1734
1746
|
aac?: {
|
|
1735
|
-
|
|
1736
|
-
|
|
1747
|
+
sampleRate: number;
|
|
1748
|
+
bitRates: number[];
|
|
1737
1749
|
}[] | undefined;
|
|
1738
1750
|
AAC?: {
|
|
1739
|
-
|
|
1740
|
-
|
|
1751
|
+
sampleRate: number;
|
|
1752
|
+
bitRates: number[];
|
|
1741
1753
|
}[] | undefined;
|
|
1742
1754
|
};
|
|
1743
1755
|
};
|
package/cjs/types/VapixAPI.js
CHANGED
|
@@ -53,11 +53,12 @@ exports.guardTourSchema = zod_1.z.object({
|
|
|
53
53
|
waitTimeViewType: zod_1.z.unknown(),
|
|
54
54
|
})),
|
|
55
55
|
});
|
|
56
|
-
const audioSampleRatesSchema = zod_1.z
|
|
56
|
+
const audioSampleRatesSchema = zod_1.z
|
|
57
|
+
.object({
|
|
57
58
|
sample_rate: zod_1.z.number(),
|
|
58
59
|
bit_rates: zod_1.z.array(zod_1.z.number()),
|
|
59
|
-
})
|
|
60
|
-
|
|
60
|
+
})
|
|
61
|
+
.transform(transformers_1.toCamelCaseDeep);
|
|
61
62
|
exports.sdCardWatchedStatuses = ['OK', 'connected', 'disconnected'];
|
|
62
63
|
exports.sdCardInfoSchema = zod_1.z.object({
|
|
63
64
|
status: zod_1.z.enum(exports.sdCardWatchedStatuses),
|
|
@@ -14,10 +14,11 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
14
14
|
groundSpeed: z.ZodNumber;
|
|
15
15
|
altitudeAMSL: z.ZodNumber;
|
|
16
16
|
cameraDistance: z.ZodNumber;
|
|
17
|
-
autoTrackingOrder: z.ZodNumber
|
|
17
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
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>;
|
|
@@ -38,10 +39,11 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
38
39
|
groundSpeed: number;
|
|
39
40
|
altitudeAMSL: number;
|
|
40
41
|
cameraDistance: number;
|
|
41
|
-
autoTrackingOrder: number;
|
|
42
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -63,10 +65,11 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
63
65
|
groundSpeed: number;
|
|
64
66
|
altitudeAMSL: number;
|
|
65
67
|
cameraDistance: number;
|
|
66
|
-
autoTrackingOrder: number;
|
|
68
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -196,10 +199,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
196
199
|
groundSpeed: z.ZodNumber;
|
|
197
200
|
altitudeAMSL: z.ZodNumber;
|
|
198
201
|
cameraDistance: z.ZodNumber;
|
|
199
|
-
autoTrackingOrder: z.ZodNumber
|
|
202
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
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>;
|
|
@@ -220,10 +224,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
220
224
|
groundSpeed: number;
|
|
221
225
|
altitudeAMSL: number;
|
|
222
226
|
cameraDistance: number;
|
|
223
|
-
autoTrackingOrder: number;
|
|
227
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -245,10 +250,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
245
250
|
groundSpeed: number;
|
|
246
251
|
altitudeAMSL: number;
|
|
247
252
|
cameraDistance: number;
|
|
248
|
-
autoTrackingOrder: number;
|
|
253
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -273,10 +279,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
273
279
|
groundSpeed: number;
|
|
274
280
|
altitudeAMSL: number;
|
|
275
281
|
cameraDistance: number;
|
|
276
|
-
autoTrackingOrder: number;
|
|
282
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -301,10 +308,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
301
308
|
groundSpeed: number;
|
|
302
309
|
altitudeAMSL: number;
|
|
303
310
|
cameraDistance: number;
|
|
304
|
-
autoTrackingOrder: number;
|
|
311
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -1264,10 +1272,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1264
1272
|
groundSpeed: z.ZodNumber;
|
|
1265
1273
|
altitudeAMSL: z.ZodNumber;
|
|
1266
1274
|
cameraDistance: z.ZodNumber;
|
|
1267
|
-
autoTrackingOrder: z.ZodNumber
|
|
1275
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
1268
1276
|
whiteListed: z.ZodBoolean;
|
|
1269
1277
|
blackListed: z.ZodBoolean;
|
|
1270
1278
|
priorityListed: z.ZodBoolean;
|
|
1279
|
+
friendlyListed: z.ZodBoolean;
|
|
1271
1280
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1272
1281
|
signalQuality: z.ZodNumber;
|
|
1273
1282
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1288,10 +1297,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1288
1297
|
groundSpeed: number;
|
|
1289
1298
|
altitudeAMSL: number;
|
|
1290
1299
|
cameraDistance: number;
|
|
1291
|
-
autoTrackingOrder: number;
|
|
1300
|
+
autoTrackingOrder: number | null;
|
|
1292
1301
|
whiteListed: boolean;
|
|
1293
1302
|
blackListed: boolean;
|
|
1294
1303
|
priorityListed: boolean;
|
|
1304
|
+
friendlyListed: boolean;
|
|
1295
1305
|
autoSelectionIgnored: boolean;
|
|
1296
1306
|
signalQuality: number;
|
|
1297
1307
|
emitterCategorySet: number;
|
|
@@ -1313,10 +1323,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1313
1323
|
groundSpeed: number;
|
|
1314
1324
|
altitudeAMSL: number;
|
|
1315
1325
|
cameraDistance: number;
|
|
1316
|
-
autoTrackingOrder: number;
|
|
1326
|
+
autoTrackingOrder: number | null;
|
|
1317
1327
|
whiteListed: boolean;
|
|
1318
1328
|
blackListed: boolean;
|
|
1319
1329
|
priorityListed: boolean;
|
|
1330
|
+
friendlyListed: boolean;
|
|
1320
1331
|
autoSelectionIgnored: boolean;
|
|
1321
1332
|
signalQuality: number;
|
|
1322
1333
|
emergencyState: boolean;
|
|
@@ -1341,10 +1352,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1341
1352
|
groundSpeed: number;
|
|
1342
1353
|
altitudeAMSL: number;
|
|
1343
1354
|
cameraDistance: number;
|
|
1344
|
-
autoTrackingOrder: number;
|
|
1355
|
+
autoTrackingOrder: number | null;
|
|
1345
1356
|
whiteListed: boolean;
|
|
1346
1357
|
blackListed: boolean;
|
|
1347
1358
|
priorityListed: boolean;
|
|
1359
|
+
friendlyListed: boolean;
|
|
1348
1360
|
autoSelectionIgnored: boolean;
|
|
1349
1361
|
signalQuality: number;
|
|
1350
1362
|
emitterCategorySet: number;
|
|
@@ -1369,10 +1381,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1369
1381
|
groundSpeed: number;
|
|
1370
1382
|
altitudeAMSL: number;
|
|
1371
1383
|
cameraDistance: number;
|
|
1372
|
-
autoTrackingOrder: number;
|
|
1384
|
+
autoTrackingOrder: number | null;
|
|
1373
1385
|
whiteListed: boolean;
|
|
1374
1386
|
blackListed: boolean;
|
|
1375
1387
|
priorityListed: boolean;
|
|
1388
|
+
friendlyListed: boolean;
|
|
1376
1389
|
autoSelectionIgnored: boolean;
|
|
1377
1390
|
signalQuality: number;
|
|
1378
1391
|
emergencyState: boolean;
|
|
@@ -2298,10 +2311,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2298
2311
|
groundSpeed: number;
|
|
2299
2312
|
altitudeAMSL: number;
|
|
2300
2313
|
cameraDistance: number;
|
|
2301
|
-
autoTrackingOrder: number;
|
|
2314
|
+
autoTrackingOrder: number | null;
|
|
2302
2315
|
whiteListed: boolean;
|
|
2303
2316
|
blackListed: boolean;
|
|
2304
2317
|
priorityListed: boolean;
|
|
2318
|
+
friendlyListed: boolean;
|
|
2305
2319
|
autoSelectionIgnored: boolean;
|
|
2306
2320
|
signalQuality: number;
|
|
2307
2321
|
emitterCategorySet: number;
|
|
@@ -2543,10 +2557,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2543
2557
|
groundSpeed: number;
|
|
2544
2558
|
altitudeAMSL: number;
|
|
2545
2559
|
cameraDistance: number;
|
|
2546
|
-
autoTrackingOrder: number;
|
|
2560
|
+
autoTrackingOrder: number | null;
|
|
2547
2561
|
whiteListed: boolean;
|
|
2548
2562
|
blackListed: boolean;
|
|
2549
2563
|
priorityListed: boolean;
|
|
2564
|
+
friendlyListed: boolean;
|
|
2550
2565
|
autoSelectionIgnored: boolean;
|
|
2551
2566
|
signalQuality: number;
|
|
2552
2567
|
emergencyState: boolean;
|
|
@@ -2820,10 +2835,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2820
2835
|
groundSpeed: z.ZodNumber;
|
|
2821
2836
|
altitudeAMSL: z.ZodNumber;
|
|
2822
2837
|
cameraDistance: z.ZodNumber;
|
|
2823
|
-
autoTrackingOrder: z.ZodNumber
|
|
2838
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
2824
2839
|
whiteListed: z.ZodBoolean;
|
|
2825
2840
|
blackListed: z.ZodBoolean;
|
|
2826
2841
|
priorityListed: z.ZodBoolean;
|
|
2842
|
+
friendlyListed: z.ZodBoolean;
|
|
2827
2843
|
autoSelectionIgnored: z.ZodBoolean;
|
|
2828
2844
|
signalQuality: z.ZodNumber;
|
|
2829
2845
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2844,10 +2860,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2844
2860
|
groundSpeed: number;
|
|
2845
2861
|
altitudeAMSL: number;
|
|
2846
2862
|
cameraDistance: number;
|
|
2847
|
-
autoTrackingOrder: number;
|
|
2863
|
+
autoTrackingOrder: number | null;
|
|
2848
2864
|
whiteListed: boolean;
|
|
2849
2865
|
blackListed: boolean;
|
|
2850
2866
|
priorityListed: boolean;
|
|
2867
|
+
friendlyListed: boolean;
|
|
2851
2868
|
autoSelectionIgnored: boolean;
|
|
2852
2869
|
signalQuality: number;
|
|
2853
2870
|
emitterCategorySet: number;
|
|
@@ -2869,10 +2886,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2869
2886
|
groundSpeed: number;
|
|
2870
2887
|
altitudeAMSL: number;
|
|
2871
2888
|
cameraDistance: number;
|
|
2872
|
-
autoTrackingOrder: number;
|
|
2889
|
+
autoTrackingOrder: number | null;
|
|
2873
2890
|
whiteListed: boolean;
|
|
2874
2891
|
blackListed: boolean;
|
|
2875
2892
|
priorityListed: boolean;
|
|
2893
|
+
friendlyListed: boolean;
|
|
2876
2894
|
autoSelectionIgnored: boolean;
|
|
2877
2895
|
signalQuality: number;
|
|
2878
2896
|
emergencyState: boolean;
|
|
@@ -2897,10 +2915,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2897
2915
|
groundSpeed: number;
|
|
2898
2916
|
altitudeAMSL: number;
|
|
2899
2917
|
cameraDistance: number;
|
|
2900
|
-
autoTrackingOrder: number;
|
|
2918
|
+
autoTrackingOrder: number | null;
|
|
2901
2919
|
whiteListed: boolean;
|
|
2902
2920
|
blackListed: boolean;
|
|
2903
2921
|
priorityListed: boolean;
|
|
2922
|
+
friendlyListed: boolean;
|
|
2904
2923
|
autoSelectionIgnored: boolean;
|
|
2905
2924
|
signalQuality: number;
|
|
2906
2925
|
emitterCategorySet: number;
|
|
@@ -2925,10 +2944,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2925
2944
|
groundSpeed: number;
|
|
2926
2945
|
altitudeAMSL: number;
|
|
2927
2946
|
cameraDistance: number;
|
|
2928
|
-
autoTrackingOrder: number;
|
|
2947
|
+
autoTrackingOrder: number | null;
|
|
2929
2948
|
whiteListed: boolean;
|
|
2930
2949
|
blackListed: boolean;
|
|
2931
2950
|
priorityListed: boolean;
|
|
2951
|
+
friendlyListed: boolean;
|
|
2932
2952
|
autoSelectionIgnored: boolean;
|
|
2933
2953
|
signalQuality: number;
|
|
2934
2954
|
emergencyState: boolean;
|
|
@@ -18,10 +18,11 @@ const wsApiFlightDataSchema = zod_1.z.object({
|
|
|
18
18
|
groundSpeed: zod_1.z.number(),
|
|
19
19
|
altitudeAMSL: zod_1.z.number(),
|
|
20
20
|
cameraDistance: zod_1.z.number(),
|
|
21
|
-
autoTrackingOrder: zod_1.z.number(),
|
|
21
|
+
autoTrackingOrder: zod_1.z.number().nullable(),
|
|
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/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(),
|
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),
|
|
@@ -15,10 +15,11 @@ const wsApiFlightDataSchema = z.object({
|
|
|
15
15
|
groundSpeed: z.number(),
|
|
16
16
|
altitudeAMSL: z.number(),
|
|
17
17
|
cameraDistance: z.number(),
|
|
18
|
-
autoTrackingOrder: z.number(),
|
|
18
|
+
autoTrackingOrder: z.number().nullable(),
|
|
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,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camstreamerlib",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.27-c8f267f",
|
|
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",
|
|
14
|
-
"undici": "^6.
|
|
14
|
+
"undici": "^6.28.0",
|
|
15
15
|
"ws": "^8.18.0",
|
|
16
16
|
"zod": "^3.25.76"
|
|
17
17
|
},
|
|
@@ -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
|
};
|
|
@@ -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<{
|
|
@@ -133,7 +133,7 @@ export declare const guardTourSchema: z.ZodObject<{
|
|
|
133
133
|
timeBetweenSequences?: unknown;
|
|
134
134
|
}>;
|
|
135
135
|
export type TGuardTour = z.infer<typeof guardTourSchema>;
|
|
136
|
-
declare const
|
|
136
|
+
declare const audioSampleRatesSchema: z.ZodEffects<z.ZodObject<{
|
|
137
137
|
sample_rate: z.ZodNumber;
|
|
138
138
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -149,7 +149,7 @@ declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
sample_rate: number;
|
|
150
150
|
bit_rates: number[];
|
|
151
151
|
}>;
|
|
152
|
-
export type TAudioSampleRates = z.infer<typeof
|
|
152
|
+
export type TAudioSampleRates = z.infer<typeof audioSampleRatesSchema>;
|
|
153
153
|
export declare const sdCardWatchedStatuses: readonly ["OK", "connected", "disconnected"];
|
|
154
154
|
export declare const sdCardInfoSchema: z.ZodObject<{
|
|
155
155
|
status: z.ZodEnum<["OK", "connected", "disconnected"]>;
|
|
@@ -1666,7 +1666,7 @@ export declare const timeZoneSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObj
|
|
|
1666
1666
|
export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
1667
1667
|
data: z.ZodObject<{
|
|
1668
1668
|
encoders: z.ZodObject<{
|
|
1669
|
-
aac: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1669
|
+
aac: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1670
1670
|
sample_rate: z.ZodNumber;
|
|
1671
1671
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
1672
1672
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1675,8 +1675,14 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1675
1675
|
}, {
|
|
1676
1676
|
sample_rate: number;
|
|
1677
1677
|
bit_rates: number[];
|
|
1678
|
+
}>, {
|
|
1679
|
+
sampleRate: number;
|
|
1680
|
+
bitRates: number[];
|
|
1681
|
+
}, {
|
|
1682
|
+
sample_rate: number;
|
|
1683
|
+
bit_rates: number[];
|
|
1678
1684
|
}>, "many">>;
|
|
1679
|
-
AAC: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1685
|
+
AAC: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1680
1686
|
sample_rate: z.ZodNumber;
|
|
1681
1687
|
bit_rates: z.ZodArray<z.ZodNumber, "many">;
|
|
1682
1688
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1685,15 +1691,21 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1685
1691
|
}, {
|
|
1686
1692
|
sample_rate: number;
|
|
1687
1693
|
bit_rates: number[];
|
|
1694
|
+
}>, {
|
|
1695
|
+
sampleRate: number;
|
|
1696
|
+
bitRates: number[];
|
|
1697
|
+
}, {
|
|
1698
|
+
sample_rate: number;
|
|
1699
|
+
bit_rates: number[];
|
|
1688
1700
|
}>, "many">>;
|
|
1689
1701
|
}, "strip", z.ZodTypeAny, {
|
|
1690
1702
|
aac?: {
|
|
1691
|
-
|
|
1692
|
-
|
|
1703
|
+
sampleRate: number;
|
|
1704
|
+
bitRates: number[];
|
|
1693
1705
|
}[] | undefined;
|
|
1694
1706
|
AAC?: {
|
|
1695
|
-
|
|
1696
|
-
|
|
1707
|
+
sampleRate: number;
|
|
1708
|
+
bitRates: number[];
|
|
1697
1709
|
}[] | undefined;
|
|
1698
1710
|
}, {
|
|
1699
1711
|
aac?: {
|
|
@@ -1708,12 +1720,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1708
1720
|
}, "strip", z.ZodTypeAny, {
|
|
1709
1721
|
encoders: {
|
|
1710
1722
|
aac?: {
|
|
1711
|
-
|
|
1712
|
-
|
|
1723
|
+
sampleRate: number;
|
|
1724
|
+
bitRates: number[];
|
|
1713
1725
|
}[] | undefined;
|
|
1714
1726
|
AAC?: {
|
|
1715
|
-
|
|
1716
|
-
|
|
1727
|
+
sampleRate: number;
|
|
1728
|
+
bitRates: number[];
|
|
1717
1729
|
}[] | undefined;
|
|
1718
1730
|
};
|
|
1719
1731
|
}, {
|
|
@@ -1732,12 +1744,12 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
|
|
|
1732
1744
|
data: {
|
|
1733
1745
|
encoders: {
|
|
1734
1746
|
aac?: {
|
|
1735
|
-
|
|
1736
|
-
|
|
1747
|
+
sampleRate: number;
|
|
1748
|
+
bitRates: number[];
|
|
1737
1749
|
}[] | undefined;
|
|
1738
1750
|
AAC?: {
|
|
1739
|
-
|
|
1740
|
-
|
|
1751
|
+
sampleRate: number;
|
|
1752
|
+
bitRates: number[];
|
|
1741
1753
|
}[] | undefined;
|
|
1742
1754
|
};
|
|
1743
1755
|
};
|
|
@@ -14,10 +14,11 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
14
14
|
groundSpeed: z.ZodNumber;
|
|
15
15
|
altitudeAMSL: z.ZodNumber;
|
|
16
16
|
cameraDistance: z.ZodNumber;
|
|
17
|
-
autoTrackingOrder: z.ZodNumber
|
|
17
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
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>;
|
|
@@ -38,10 +39,11 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
38
39
|
groundSpeed: number;
|
|
39
40
|
altitudeAMSL: number;
|
|
40
41
|
cameraDistance: number;
|
|
41
|
-
autoTrackingOrder: number;
|
|
42
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -63,10 +65,11 @@ declare const wsApiFlightDataSchema: z.ZodObject<{
|
|
|
63
65
|
groundSpeed: number;
|
|
64
66
|
altitudeAMSL: number;
|
|
65
67
|
cameraDistance: number;
|
|
66
|
-
autoTrackingOrder: number;
|
|
68
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -196,10 +199,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
196
199
|
groundSpeed: z.ZodNumber;
|
|
197
200
|
altitudeAMSL: z.ZodNumber;
|
|
198
201
|
cameraDistance: z.ZodNumber;
|
|
199
|
-
autoTrackingOrder: z.ZodNumber
|
|
202
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
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>;
|
|
@@ -220,10 +224,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
220
224
|
groundSpeed: number;
|
|
221
225
|
altitudeAMSL: number;
|
|
222
226
|
cameraDistance: number;
|
|
223
|
-
autoTrackingOrder: number;
|
|
227
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -245,10 +250,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
245
250
|
groundSpeed: number;
|
|
246
251
|
altitudeAMSL: number;
|
|
247
252
|
cameraDistance: number;
|
|
248
|
-
autoTrackingOrder: number;
|
|
253
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -273,10 +279,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
273
279
|
groundSpeed: number;
|
|
274
280
|
altitudeAMSL: number;
|
|
275
281
|
cameraDistance: number;
|
|
276
|
-
autoTrackingOrder: number;
|
|
282
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -301,10 +308,11 @@ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
301
308
|
groundSpeed: number;
|
|
302
309
|
altitudeAMSL: number;
|
|
303
310
|
cameraDistance: number;
|
|
304
|
-
autoTrackingOrder: number;
|
|
311
|
+
autoTrackingOrder: number | null;
|
|
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;
|
|
@@ -1264,10 +1272,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1264
1272
|
groundSpeed: z.ZodNumber;
|
|
1265
1273
|
altitudeAMSL: z.ZodNumber;
|
|
1266
1274
|
cameraDistance: z.ZodNumber;
|
|
1267
|
-
autoTrackingOrder: z.ZodNumber
|
|
1275
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
1268
1276
|
whiteListed: z.ZodBoolean;
|
|
1269
1277
|
blackListed: z.ZodBoolean;
|
|
1270
1278
|
priorityListed: z.ZodBoolean;
|
|
1279
|
+
friendlyListed: z.ZodBoolean;
|
|
1271
1280
|
autoSelectionIgnored: z.ZodBoolean;
|
|
1272
1281
|
signalQuality: z.ZodNumber;
|
|
1273
1282
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1288,10 +1297,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1288
1297
|
groundSpeed: number;
|
|
1289
1298
|
altitudeAMSL: number;
|
|
1290
1299
|
cameraDistance: number;
|
|
1291
|
-
autoTrackingOrder: number;
|
|
1300
|
+
autoTrackingOrder: number | null;
|
|
1292
1301
|
whiteListed: boolean;
|
|
1293
1302
|
blackListed: boolean;
|
|
1294
1303
|
priorityListed: boolean;
|
|
1304
|
+
friendlyListed: boolean;
|
|
1295
1305
|
autoSelectionIgnored: boolean;
|
|
1296
1306
|
signalQuality: number;
|
|
1297
1307
|
emitterCategorySet: number;
|
|
@@ -1313,10 +1323,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1313
1323
|
groundSpeed: number;
|
|
1314
1324
|
altitudeAMSL: number;
|
|
1315
1325
|
cameraDistance: number;
|
|
1316
|
-
autoTrackingOrder: number;
|
|
1326
|
+
autoTrackingOrder: number | null;
|
|
1317
1327
|
whiteListed: boolean;
|
|
1318
1328
|
blackListed: boolean;
|
|
1319
1329
|
priorityListed: boolean;
|
|
1330
|
+
friendlyListed: boolean;
|
|
1320
1331
|
autoSelectionIgnored: boolean;
|
|
1321
1332
|
signalQuality: number;
|
|
1322
1333
|
emergencyState: boolean;
|
|
@@ -1341,10 +1352,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1341
1352
|
groundSpeed: number;
|
|
1342
1353
|
altitudeAMSL: number;
|
|
1343
1354
|
cameraDistance: number;
|
|
1344
|
-
autoTrackingOrder: number;
|
|
1355
|
+
autoTrackingOrder: number | null;
|
|
1345
1356
|
whiteListed: boolean;
|
|
1346
1357
|
blackListed: boolean;
|
|
1347
1358
|
priorityListed: boolean;
|
|
1359
|
+
friendlyListed: boolean;
|
|
1348
1360
|
autoSelectionIgnored: boolean;
|
|
1349
1361
|
signalQuality: number;
|
|
1350
1362
|
emitterCategorySet: number;
|
|
@@ -1369,10 +1381,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1369
1381
|
groundSpeed: number;
|
|
1370
1382
|
altitudeAMSL: number;
|
|
1371
1383
|
cameraDistance: number;
|
|
1372
|
-
autoTrackingOrder: number;
|
|
1384
|
+
autoTrackingOrder: number | null;
|
|
1373
1385
|
whiteListed: boolean;
|
|
1374
1386
|
blackListed: boolean;
|
|
1375
1387
|
priorityListed: boolean;
|
|
1388
|
+
friendlyListed: boolean;
|
|
1376
1389
|
autoSelectionIgnored: boolean;
|
|
1377
1390
|
signalQuality: number;
|
|
1378
1391
|
emergencyState: boolean;
|
|
@@ -2298,10 +2311,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2298
2311
|
groundSpeed: number;
|
|
2299
2312
|
altitudeAMSL: number;
|
|
2300
2313
|
cameraDistance: number;
|
|
2301
|
-
autoTrackingOrder: number;
|
|
2314
|
+
autoTrackingOrder: number | null;
|
|
2302
2315
|
whiteListed: boolean;
|
|
2303
2316
|
blackListed: boolean;
|
|
2304
2317
|
priorityListed: boolean;
|
|
2318
|
+
friendlyListed: boolean;
|
|
2305
2319
|
autoSelectionIgnored: boolean;
|
|
2306
2320
|
signalQuality: number;
|
|
2307
2321
|
emitterCategorySet: number;
|
|
@@ -2543,10 +2557,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2543
2557
|
groundSpeed: number;
|
|
2544
2558
|
altitudeAMSL: number;
|
|
2545
2559
|
cameraDistance: number;
|
|
2546
|
-
autoTrackingOrder: number;
|
|
2560
|
+
autoTrackingOrder: number | null;
|
|
2547
2561
|
whiteListed: boolean;
|
|
2548
2562
|
blackListed: boolean;
|
|
2549
2563
|
priorityListed: boolean;
|
|
2564
|
+
friendlyListed: boolean;
|
|
2550
2565
|
autoSelectionIgnored: boolean;
|
|
2551
2566
|
signalQuality: number;
|
|
2552
2567
|
emergencyState: boolean;
|
|
@@ -2820,10 +2835,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2820
2835
|
groundSpeed: z.ZodNumber;
|
|
2821
2836
|
altitudeAMSL: z.ZodNumber;
|
|
2822
2837
|
cameraDistance: z.ZodNumber;
|
|
2823
|
-
autoTrackingOrder: z.ZodNumber
|
|
2838
|
+
autoTrackingOrder: z.ZodNullable<z.ZodNumber>;
|
|
2824
2839
|
whiteListed: z.ZodBoolean;
|
|
2825
2840
|
blackListed: z.ZodBoolean;
|
|
2826
2841
|
priorityListed: z.ZodBoolean;
|
|
2842
|
+
friendlyListed: z.ZodBoolean;
|
|
2827
2843
|
autoSelectionIgnored: z.ZodBoolean;
|
|
2828
2844
|
signalQuality: z.ZodNumber;
|
|
2829
2845
|
emitterCategorySet: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2844,10 +2860,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2844
2860
|
groundSpeed: number;
|
|
2845
2861
|
altitudeAMSL: number;
|
|
2846
2862
|
cameraDistance: number;
|
|
2847
|
-
autoTrackingOrder: number;
|
|
2863
|
+
autoTrackingOrder: number | null;
|
|
2848
2864
|
whiteListed: boolean;
|
|
2849
2865
|
blackListed: boolean;
|
|
2850
2866
|
priorityListed: boolean;
|
|
2867
|
+
friendlyListed: boolean;
|
|
2851
2868
|
autoSelectionIgnored: boolean;
|
|
2852
2869
|
signalQuality: number;
|
|
2853
2870
|
emitterCategorySet: number;
|
|
@@ -2869,10 +2886,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2869
2886
|
groundSpeed: number;
|
|
2870
2887
|
altitudeAMSL: number;
|
|
2871
2888
|
cameraDistance: number;
|
|
2872
|
-
autoTrackingOrder: number;
|
|
2889
|
+
autoTrackingOrder: number | null;
|
|
2873
2890
|
whiteListed: boolean;
|
|
2874
2891
|
blackListed: boolean;
|
|
2875
2892
|
priorityListed: boolean;
|
|
2893
|
+
friendlyListed: boolean;
|
|
2876
2894
|
autoSelectionIgnored: boolean;
|
|
2877
2895
|
signalQuality: number;
|
|
2878
2896
|
emergencyState: boolean;
|
|
@@ -2897,10 +2915,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2897
2915
|
groundSpeed: number;
|
|
2898
2916
|
altitudeAMSL: number;
|
|
2899
2917
|
cameraDistance: number;
|
|
2900
|
-
autoTrackingOrder: number;
|
|
2918
|
+
autoTrackingOrder: number | null;
|
|
2901
2919
|
whiteListed: boolean;
|
|
2902
2920
|
blackListed: boolean;
|
|
2903
2921
|
priorityListed: boolean;
|
|
2922
|
+
friendlyListed: boolean;
|
|
2904
2923
|
autoSelectionIgnored: boolean;
|
|
2905
2924
|
signalQuality: number;
|
|
2906
2925
|
emitterCategorySet: number;
|
|
@@ -2925,10 +2944,11 @@ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2925
2944
|
groundSpeed: number;
|
|
2926
2945
|
altitudeAMSL: number;
|
|
2927
2946
|
cameraDistance: number;
|
|
2928
|
-
autoTrackingOrder: number;
|
|
2947
|
+
autoTrackingOrder: number | null;
|
|
2929
2948
|
whiteListed: boolean;
|
|
2930
2949
|
blackListed: boolean;
|
|
2931
2950
|
priorityListed: boolean;
|
|
2951
|
+
friendlyListed: boolean;
|
|
2932
2952
|
autoSelectionIgnored: boolean;
|
|
2933
2953
|
signalQuality: number;
|
|
2934
2954
|
emergencyState: boolean;
|