camstreamerlib 4.0.34-be26059 → 4.0.35
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/CamOverlayAPI.d.ts +6 -0
- package/cjs/CamOverlayAPI.js +16 -0
- package/cjs/CamSwitcherAPI.d.ts +1 -1
- package/cjs/PlaneTrackerAPI.d.ts +10 -43
- package/cjs/PlaneTrackerAPI.js +2 -1
- package/cjs/VapixAPI.js +4 -2
- package/cjs/errors/errors.js +4 -4
- package/cjs/types/CamSwitcherAPI.d.ts +4 -4
- package/cjs/types/PlaneTrackerAPI.d.ts +26 -218
- package/cjs/types/PlaneTrackerAPI.js +16 -65
- package/cjs/types/common.d.ts +13 -0
- package/cjs/types/common.js +6 -1
- package/esm/CamOverlayAPI.js +17 -1
- package/esm/PlaneTrackerAPI.js +2 -1
- package/esm/VapixAPI.js +4 -2
- package/esm/errors/errors.js +4 -4
- package/esm/types/PlaneTrackerAPI.js +15 -64
- package/esm/types/common.js +5 -0
- package/package.json +107 -110
- package/types/CamOverlayAPI.d.ts +6 -0
- package/types/CamSwitcherAPI.d.ts +1 -1
- package/types/PlaneTrackerAPI.d.ts +10 -43
- package/types/types/CamSwitcherAPI.d.ts +4 -4
- package/types/types/PlaneTrackerAPI.d.ts +26 -218
- package/types/types/common.d.ts +13 -0
- package/cjs/types/PlaneTrackerAPI.test.d.ts +0 -1
- package/cjs/types/PlaneTrackerAPI.test.js +0 -90
- package/esm/types/PlaneTrackerAPI.test.js +0 -88
- package/types/types/PlaneTrackerAPI.test.d.ts +0 -1
package/cjs/CamOverlayAPI.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> exten
|
|
|
14
14
|
}[]>;
|
|
15
15
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
16
16
|
getMjpegStreamImage(mjpegUrl: string, options?: THttpRequestOptions): Promise<ReturnType<Awaited<ReturnType<Client["get"]>>["blob"]>>;
|
|
17
|
+
isViewerPassValid(pass: string, options?: THttpRequestOptions): Promise<boolean>;
|
|
18
|
+
getLiveViewAlias(rtspUrl: string, options?: THttpRequestOptions): Promise<{
|
|
19
|
+
alias: string;
|
|
20
|
+
ws: string;
|
|
21
|
+
ws_initial_message: string;
|
|
22
|
+
}>;
|
|
17
23
|
listFiles<T extends TFileType>(fileType: T, options?: THttpRequestOptions): Promise<TFileList<T>>;
|
|
18
24
|
uploadFile<T extends TFileType>(fileType: T, formData: Parameters<Client['post']>[0]['data'], storage: TFileStorageType<T>, options?: THttpRequestOptions): Promise<void>;
|
|
19
25
|
removeFile<T extends TFileType>(fileType: T, fileParams: TFile<T>, options?: THttpRequestOptions): Promise<void>;
|
package/cjs/CamOverlayAPI.js
CHANGED
|
@@ -29,6 +29,22 @@ class CamOverlayAPI extends BasicAPI_1.BasicAPI {
|
|
|
29
29
|
async getMjpegStreamImage(mjpegUrl, options) {
|
|
30
30
|
return await this._getBlob(`${BASE_PATH}/fetch_mjpeg_image.cgi`, { mjpeg_url: decodeURIComponent(mjpegUrl) }, options);
|
|
31
31
|
}
|
|
32
|
+
async isViewerPassValid(pass, options) {
|
|
33
|
+
const res = await this._getJson(`${BASE_PATH}/check_pass.cgi`, { pass }, options);
|
|
34
|
+
if (res.status !== 200) {
|
|
35
|
+
throw new Error(res.message);
|
|
36
|
+
}
|
|
37
|
+
return res.data === '1';
|
|
38
|
+
}
|
|
39
|
+
async getLiveViewAlias(rtspUrl, options) {
|
|
40
|
+
const agent = this.getClient(options?.proxyParams);
|
|
41
|
+
const res = await agent.get({
|
|
42
|
+
path: `${BASE_PATH}/getLiveViewAlias.cgi`,
|
|
43
|
+
parameters: { rtsp_url: rtspUrl },
|
|
44
|
+
timeout: options?.timeout,
|
|
45
|
+
});
|
|
46
|
+
return common_1.wsAliasResponseSchema.parse(await res.json());
|
|
47
|
+
}
|
|
32
48
|
async listFiles(fileType, options) {
|
|
33
49
|
const res = await this._getJson(`${BASE_PATH}/upload_${fileType}.cgi`, { action: 'list' }, options);
|
|
34
50
|
return (0, CamOverlayAPI_1.getFileListSchema)(fileType).parse(res.list);
|
package/cjs/CamSwitcherAPI.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> exte
|
|
|
28
28
|
}[]>;
|
|
29
29
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
30
30
|
getOutputInfo(options?: THttpRequestOptions): Promise<{
|
|
31
|
-
rtspUrl: string;
|
|
32
31
|
ws: string;
|
|
33
32
|
wsInitialMessage: string;
|
|
33
|
+
rtspUrl: string;
|
|
34
34
|
}>;
|
|
35
35
|
getAudioPushInfo(options?: THttpRequestOptions): Promise<{
|
|
36
36
|
ws: string;
|
package/cjs/PlaneTrackerAPI.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
12
12
|
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
13
13
|
serverRunCheck(options?: THttpRequestOptions): Promise<boolean>;
|
|
14
14
|
getLiveViewAlias(rtspUrl: string, options?: THttpRequestOptions): Promise<{
|
|
15
|
+
alias: string;
|
|
15
16
|
ws: string;
|
|
16
17
|
ws_initial_message: string;
|
|
17
|
-
alias: string;
|
|
18
18
|
}>;
|
|
19
19
|
resetPtzCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
20
20
|
resetFocusCalibration(options?: THttpRequestOptions): Promise<void>;
|
|
@@ -45,23 +45,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
45
45
|
focusCalibrationPoints: string;
|
|
46
46
|
};
|
|
47
47
|
cameraConfig: {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
captureSizeExtensionMeters: number;
|
|
51
|
-
};
|
|
52
|
-
drone: {
|
|
53
|
-
defaultCaptureSizeMeters: number;
|
|
54
|
-
captureSizeExtensionMeters: number;
|
|
55
|
-
};
|
|
56
|
-
} | {
|
|
57
|
-
aircraft: {
|
|
58
|
-
defaultCaptureSizeMeters: number;
|
|
59
|
-
captureSizeExtensionMeters: number;
|
|
60
|
-
};
|
|
61
|
-
drone: {
|
|
62
|
-
defaultCaptureSizeMeters: number;
|
|
63
|
-
captureSizeExtensionMeters: number;
|
|
64
|
-
};
|
|
48
|
+
defaultCaptureSizeMeters: number;
|
|
49
|
+
captureSizeExtensionMeters: number;
|
|
65
50
|
};
|
|
66
51
|
stream: {
|
|
67
52
|
width: number;
|
|
@@ -114,29 +99,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
114
99
|
priority: number;
|
|
115
100
|
};
|
|
116
101
|
identificationLabel: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
opacity: number;
|
|
123
|
-
};
|
|
124
|
-
drone: {
|
|
125
|
-
firstRow: "blank" | "remote_id";
|
|
126
|
-
opacity: number;
|
|
127
|
-
};
|
|
128
|
-
} | {
|
|
129
|
-
aircraft: {
|
|
130
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
131
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
132
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
133
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
134
|
-
opacity: number;
|
|
135
|
-
};
|
|
136
|
-
drone: {
|
|
137
|
-
firstRow: "blank" | "remote_id";
|
|
138
|
-
opacity: number;
|
|
139
|
-
};
|
|
102
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
103
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
104
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
105
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
106
|
+
opacity: number;
|
|
140
107
|
};
|
|
141
108
|
acs: {
|
|
142
109
|
ip: string;
|
|
@@ -214,11 +181,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
|
|
|
214
181
|
importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
215
182
|
getDomainList(options?: THttpRequestOptions): Promise<Partial<Record<"adsb" | "remoteId", {
|
|
216
183
|
uiName: string;
|
|
217
|
-
icon: "unknown" | "small" | "
|
|
184
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
218
185
|
categoryList: {
|
|
219
186
|
categoryId: string;
|
|
220
187
|
uiName: string;
|
|
221
|
-
icon: "unknown" | "small" | "
|
|
188
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
222
189
|
}[];
|
|
223
190
|
}>>>;
|
|
224
191
|
fetchFlightInfo(targetId: string, options?: THttpRequestOptions): Promise<{
|
package/cjs/PlaneTrackerAPI.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.PlaneTrackerAPI = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const PlaneTrackerAPI_1 = require("./types/PlaneTrackerAPI");
|
|
6
6
|
const errors_1 = require("./errors/errors");
|
|
7
|
+
const common_1 = require("./types/common");
|
|
7
8
|
const BasicAPI_1 = require("./internal/BasicAPI");
|
|
8
9
|
const PlaneTrackerEvents_1 = require("./types/ws/PlaneTrackerEvents");
|
|
9
10
|
const BASE_PATH = '/local/planetracker';
|
|
@@ -37,7 +38,7 @@ class PlaneTrackerAPI extends BasicAPI_1.BasicAPI {
|
|
|
37
38
|
parameters: { rtsp_url: rtspUrl },
|
|
38
39
|
timeout: options?.timeout,
|
|
39
40
|
});
|
|
40
|
-
return
|
|
41
|
+
return common_1.wsAliasResponseSchema.parse(await res.json());
|
|
41
42
|
}
|
|
42
43
|
async resetPtzCalibration(options) {
|
|
43
44
|
const agent = this.getClient(options?.proxyParams);
|
package/cjs/VapixAPI.js
CHANGED
|
@@ -93,7 +93,9 @@ class VapixAPI extends BasicAPI_1.BasicAPI {
|
|
|
93
93
|
};
|
|
94
94
|
await this._postJsonEncoded('/axis-cgi/opticscontrol.cgi', data, undefined, options);
|
|
95
95
|
}
|
|
96
|
-
catch {
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.warn('Failed to perform autofocus: ', error instanceof Error ? error.message : String(error));
|
|
98
|
+
console.warn('Falling back to deprecated optics setup API');
|
|
97
99
|
await this._postUrlEncoded('/axis-cgi/opticssetup.cgi', {
|
|
98
100
|
autofocus: 'perform',
|
|
99
101
|
source: '1',
|
|
@@ -144,7 +146,7 @@ class VapixAPI extends BasicAPI_1.BasicAPI {
|
|
|
144
146
|
return data.data.activeTimeZone;
|
|
145
147
|
}
|
|
146
148
|
catch (error) {
|
|
147
|
-
console.warn('Failed to fetch time zone data from time API v2:', error instanceof Error ? error.message :
|
|
149
|
+
console.warn('Failed to fetch time zone data from time API v2:', error instanceof Error ? error.message : String(error));
|
|
148
150
|
console.warn('Falling back to deprecated time API v1');
|
|
149
151
|
}
|
|
150
152
|
try {
|
package/cjs/errors/errors.js
CHANGED
|
@@ -26,7 +26,7 @@ class ServiceNotFoundError extends Error {
|
|
|
26
26
|
exports.ServiceNotFoundError = ServiceNotFoundError;
|
|
27
27
|
class ParsingBlobError extends Error {
|
|
28
28
|
constructor(err) {
|
|
29
|
-
super('Error parsing response as Blob: ' + err);
|
|
29
|
+
super('Error parsing response as Blob: ' + String(err));
|
|
30
30
|
this.name = 'ParsingBlobError';
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -99,7 +99,7 @@ class NoDeviceInfoError extends Error {
|
|
|
99
99
|
exports.NoDeviceInfoError = NoDeviceInfoError;
|
|
100
100
|
class FetchDeviceInfoError extends Error {
|
|
101
101
|
constructor(err) {
|
|
102
|
-
super('Error fetching remote camera data: ' + err);
|
|
102
|
+
super('Error fetching remote camera data: ' + String(err));
|
|
103
103
|
this.name = 'NoDeviceInfoFromCameraError';
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -127,7 +127,7 @@ class PtzNotSupportedError extends Error {
|
|
|
127
127
|
exports.PtzNotSupportedError = PtzNotSupportedError;
|
|
128
128
|
class StorageDataFetchError extends Error {
|
|
129
129
|
constructor(err) {
|
|
130
|
-
super('Error fetching storage data: ' + err);
|
|
130
|
+
super('Error fetching storage data: ' + String(err));
|
|
131
131
|
this.name = 'StorageDataFetchError';
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -155,7 +155,7 @@ class TimezoneNotSetupError extends Error {
|
|
|
155
155
|
exports.TimezoneNotSetupError = TimezoneNotSetupError;
|
|
156
156
|
class TimezoneFetchError extends Error {
|
|
157
157
|
constructor(err) {
|
|
158
|
-
super('Error fetching time zone information: ' + err);
|
|
158
|
+
super('Error fetching time zone information: ' + String(err));
|
|
159
159
|
this.name = 'TimezoneFetchError';
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -25,21 +25,21 @@ export declare const outputInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
|
25
25
|
ws: z.ZodString;
|
|
26
26
|
ws_initial_message: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
rtsp_url: string;
|
|
29
28
|
ws: string;
|
|
30
29
|
ws_initial_message: string;
|
|
31
|
-
}, {
|
|
32
30
|
rtsp_url: string;
|
|
31
|
+
}, {
|
|
33
32
|
ws: string;
|
|
34
33
|
ws_initial_message: string;
|
|
34
|
+
rtsp_url: string;
|
|
35
35
|
}>, {
|
|
36
|
-
rtspUrl: string;
|
|
37
36
|
ws: string;
|
|
38
37
|
wsInitialMessage: string;
|
|
38
|
+
rtspUrl: string;
|
|
39
39
|
}, {
|
|
40
|
-
rtsp_url: string;
|
|
41
40
|
ws: string;
|
|
42
41
|
ws_initial_message: string;
|
|
42
|
+
rtsp_url: string;
|
|
43
43
|
}>;
|
|
44
44
|
export type TOutputInfo = z.infer<typeof outputInfoSchema>;
|
|
45
45
|
export declare const audioPushInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export type TImportDataType = 'MAP_DATA' | 'SERVER_DATA' | 'ALL';
|
|
3
3
|
export type TExportDataType = 'NIGHT_SKY_CALIBRATION_DATA' | 'ALL';
|
|
4
|
-
export declare const wsAliasResponseSchema: z.ZodObject<{
|
|
5
|
-
alias: z.ZodString;
|
|
6
|
-
ws: z.ZodString;
|
|
7
|
-
ws_initial_message: z.ZodString;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
ws: string;
|
|
10
|
-
ws_initial_message: string;
|
|
11
|
-
alias: string;
|
|
12
|
-
}, {
|
|
13
|
-
ws: string;
|
|
14
|
-
ws_initial_message: string;
|
|
15
|
-
alias: string;
|
|
16
|
-
}>;
|
|
17
4
|
export declare const connectionSchema: z.ZodObject<{
|
|
18
5
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
19
6
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -69,8 +56,6 @@ export declare const widgetSchema: z.ZodObject<{
|
|
|
69
56
|
}>;
|
|
70
57
|
declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
71
58
|
export type TLabelOption = z.infer<typeof labelOptionsSchema>;
|
|
72
|
-
declare const droneLabelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
73
|
-
export type TDroneLabelOption = z.infer<typeof droneLabelOptionsSchema>;
|
|
74
59
|
export declare const cameraSettingsSchema: z.ZodObject<{
|
|
75
60
|
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
|
|
76
61
|
adsbSource: z.ZodDefault<z.ZodObject<{
|
|
@@ -134,67 +119,16 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
134
119
|
nightSkyCalibrationFocusValue?: number | undefined;
|
|
135
120
|
focusCalibrationPoints?: string | undefined;
|
|
136
121
|
}>>;
|
|
137
|
-
cameraConfig: z.ZodDefault<z.
|
|
138
|
-
aircraft: z.ZodObject<{
|
|
139
|
-
defaultCaptureSizeMeters: z.ZodNumber;
|
|
140
|
-
captureSizeExtensionMeters: z.ZodNumber;
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
defaultCaptureSizeMeters: number;
|
|
143
|
-
captureSizeExtensionMeters: number;
|
|
144
|
-
}, {
|
|
145
|
-
defaultCaptureSizeMeters: number;
|
|
146
|
-
captureSizeExtensionMeters: number;
|
|
147
|
-
}>;
|
|
148
|
-
drone: z.ZodDefault<z.ZodObject<{
|
|
149
|
-
defaultCaptureSizeMeters: z.ZodNumber;
|
|
150
|
-
captureSizeExtensionMeters: z.ZodNumber;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
defaultCaptureSizeMeters: number;
|
|
153
|
-
captureSizeExtensionMeters: number;
|
|
154
|
-
}, {
|
|
155
|
-
defaultCaptureSizeMeters: number;
|
|
156
|
-
captureSizeExtensionMeters: number;
|
|
157
|
-
}>>;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
aircraft: {
|
|
160
|
-
defaultCaptureSizeMeters: number;
|
|
161
|
-
captureSizeExtensionMeters: number;
|
|
162
|
-
};
|
|
163
|
-
drone: {
|
|
164
|
-
defaultCaptureSizeMeters: number;
|
|
165
|
-
captureSizeExtensionMeters: number;
|
|
166
|
-
};
|
|
167
|
-
}, {
|
|
168
|
-
aircraft: {
|
|
169
|
-
defaultCaptureSizeMeters: number;
|
|
170
|
-
captureSizeExtensionMeters: number;
|
|
171
|
-
};
|
|
172
|
-
drone?: {
|
|
173
|
-
defaultCaptureSizeMeters: number;
|
|
174
|
-
captureSizeExtensionMeters: number;
|
|
175
|
-
} | undefined;
|
|
176
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
122
|
+
cameraConfig: z.ZodDefault<z.ZodObject<{
|
|
177
123
|
defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
|
|
178
124
|
captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
|
|
179
|
-
}, "
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
126
|
defaultCaptureSizeMeters: number;
|
|
181
127
|
captureSizeExtensionMeters: number;
|
|
182
128
|
}, {
|
|
183
129
|
defaultCaptureSizeMeters?: number | undefined;
|
|
184
130
|
captureSizeExtensionMeters?: number | undefined;
|
|
185
|
-
}
|
|
186
|
-
aircraft: {
|
|
187
|
-
defaultCaptureSizeMeters: number;
|
|
188
|
-
captureSizeExtensionMeters: number;
|
|
189
|
-
};
|
|
190
|
-
drone: {
|
|
191
|
-
defaultCaptureSizeMeters: number;
|
|
192
|
-
captureSizeExtensionMeters: number;
|
|
193
|
-
};
|
|
194
|
-
}, {
|
|
195
|
-
defaultCaptureSizeMeters?: number | undefined;
|
|
196
|
-
captureSizeExtensionMeters?: number | undefined;
|
|
197
|
-
}>]>>;
|
|
131
|
+
}>>;
|
|
198
132
|
stream: z.ZodDefault<z.ZodObject<{
|
|
199
133
|
width: z.ZodNumber;
|
|
200
134
|
height: z.ZodNumber;
|
|
@@ -400,61 +334,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
400
334
|
port?: number | undefined;
|
|
401
335
|
priority?: number | undefined;
|
|
402
336
|
}>>;
|
|
403
|
-
identificationLabel: z.ZodDefault<z.
|
|
404
|
-
aircraft: z.ZodObject<{
|
|
405
|
-
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
406
|
-
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
407
|
-
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
408
|
-
fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
409
|
-
opacity: z.ZodNumber;
|
|
410
|
-
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
412
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
413
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
414
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
415
|
-
opacity: number;
|
|
416
|
-
}, {
|
|
417
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
418
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
419
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
420
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
421
|
-
opacity: number;
|
|
422
|
-
}>;
|
|
423
|
-
drone: z.ZodDefault<z.ZodObject<{
|
|
424
|
-
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"remote_id">]>;
|
|
425
|
-
opacity: z.ZodNumber;
|
|
426
|
-
}, "strip", z.ZodTypeAny, {
|
|
427
|
-
firstRow: "blank" | "remote_id";
|
|
428
|
-
opacity: number;
|
|
429
|
-
}, {
|
|
430
|
-
firstRow: "blank" | "remote_id";
|
|
431
|
-
opacity: number;
|
|
432
|
-
}>>;
|
|
433
|
-
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
aircraft: {
|
|
435
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
436
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
437
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
438
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
439
|
-
opacity: number;
|
|
440
|
-
};
|
|
441
|
-
drone: {
|
|
442
|
-
firstRow: "blank" | "remote_id";
|
|
443
|
-
opacity: number;
|
|
444
|
-
};
|
|
445
|
-
}, {
|
|
446
|
-
aircraft: {
|
|
447
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
448
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
449
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
450
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
451
|
-
opacity: number;
|
|
452
|
-
};
|
|
453
|
-
drone?: {
|
|
454
|
-
firstRow: "blank" | "remote_id";
|
|
455
|
-
opacity: number;
|
|
456
|
-
} | undefined;
|
|
457
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
337
|
+
identificationLabel: z.ZodDefault<z.ZodObject<{
|
|
458
338
|
firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
459
339
|
secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
460
340
|
thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
@@ -472,25 +352,7 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
472
352
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
473
353
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
474
354
|
opacity: number;
|
|
475
|
-
}
|
|
476
|
-
aircraft: {
|
|
477
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
478
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
479
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
480
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
481
|
-
opacity: number;
|
|
482
|
-
};
|
|
483
|
-
drone: {
|
|
484
|
-
firstRow: "blank" | "remote_id";
|
|
485
|
-
opacity: number;
|
|
486
|
-
};
|
|
487
|
-
}, {
|
|
488
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
489
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
490
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
491
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
492
|
-
opacity: number;
|
|
493
|
-
}>]>>;
|
|
355
|
+
}>>;
|
|
494
356
|
acs: z.ZodDefault<z.ZodObject<{
|
|
495
357
|
protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
|
|
496
358
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -585,23 +447,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
585
447
|
focusCalibrationPoints: string;
|
|
586
448
|
};
|
|
587
449
|
cameraConfig: {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
captureSizeExtensionMeters: number;
|
|
591
|
-
};
|
|
592
|
-
drone: {
|
|
593
|
-
defaultCaptureSizeMeters: number;
|
|
594
|
-
captureSizeExtensionMeters: number;
|
|
595
|
-
};
|
|
596
|
-
} | {
|
|
597
|
-
aircraft: {
|
|
598
|
-
defaultCaptureSizeMeters: number;
|
|
599
|
-
captureSizeExtensionMeters: number;
|
|
600
|
-
};
|
|
601
|
-
drone: {
|
|
602
|
-
defaultCaptureSizeMeters: number;
|
|
603
|
-
captureSizeExtensionMeters: number;
|
|
604
|
-
};
|
|
450
|
+
defaultCaptureSizeMeters: number;
|
|
451
|
+
captureSizeExtensionMeters: number;
|
|
605
452
|
};
|
|
606
453
|
stream: {
|
|
607
454
|
width: number;
|
|
@@ -654,29 +501,11 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
654
501
|
priority: number;
|
|
655
502
|
};
|
|
656
503
|
identificationLabel: {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
opacity: number;
|
|
663
|
-
};
|
|
664
|
-
drone: {
|
|
665
|
-
firstRow: "blank" | "remote_id";
|
|
666
|
-
opacity: number;
|
|
667
|
-
};
|
|
668
|
-
} | {
|
|
669
|
-
aircraft: {
|
|
670
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
671
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
672
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
673
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
674
|
-
opacity: number;
|
|
675
|
-
};
|
|
676
|
-
drone: {
|
|
677
|
-
firstRow: "blank" | "remote_id";
|
|
678
|
-
opacity: number;
|
|
679
|
-
};
|
|
504
|
+
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
505
|
+
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
506
|
+
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
507
|
+
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
508
|
+
opacity: number;
|
|
680
509
|
};
|
|
681
510
|
acs: {
|
|
682
511
|
ip: string;
|
|
@@ -752,15 +581,6 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
752
581
|
focusCalibrationPoints?: string | undefined;
|
|
753
582
|
} | undefined;
|
|
754
583
|
cameraConfig?: {
|
|
755
|
-
aircraft: {
|
|
756
|
-
defaultCaptureSizeMeters: number;
|
|
757
|
-
captureSizeExtensionMeters: number;
|
|
758
|
-
};
|
|
759
|
-
drone?: {
|
|
760
|
-
defaultCaptureSizeMeters: number;
|
|
761
|
-
captureSizeExtensionMeters: number;
|
|
762
|
-
} | undefined;
|
|
763
|
-
} | {
|
|
764
584
|
defaultCaptureSizeMeters?: number | undefined;
|
|
765
585
|
captureSizeExtensionMeters?: number | undefined;
|
|
766
586
|
} | undefined;
|
|
@@ -844,18 +664,6 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
844
664
|
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
845
665
|
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
846
666
|
opacity: number;
|
|
847
|
-
} | {
|
|
848
|
-
aircraft: {
|
|
849
|
-
firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
850
|
-
secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
851
|
-
thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
852
|
-
fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
|
|
853
|
-
opacity: number;
|
|
854
|
-
};
|
|
855
|
-
drone?: {
|
|
856
|
-
firstRow: "blank" | "remote_id";
|
|
857
|
-
opacity: number;
|
|
858
|
-
} | undefined;
|
|
859
667
|
} | undefined;
|
|
860
668
|
acs?: {
|
|
861
669
|
ip: string;
|
|
@@ -1388,11 +1196,11 @@ declare const categoryDescriptorSchema: z.ZodObject<{
|
|
|
1388
1196
|
}, "strip", z.ZodTypeAny, {
|
|
1389
1197
|
categoryId: string;
|
|
1390
1198
|
uiName: string;
|
|
1391
|
-
icon: "unknown" | "small" | "
|
|
1199
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1392
1200
|
}, {
|
|
1393
1201
|
categoryId: string;
|
|
1394
1202
|
uiName: string;
|
|
1395
|
-
icon: "unknown" | "small" | "
|
|
1203
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1396
1204
|
}>;
|
|
1397
1205
|
export type TCategoryDescriptor = z.infer<typeof categoryDescriptorSchema>;
|
|
1398
1206
|
declare const domainDescriptorSchema: z.ZodObject<{
|
|
@@ -1405,27 +1213,27 @@ declare const domainDescriptorSchema: z.ZodObject<{
|
|
|
1405
1213
|
}, "strip", z.ZodTypeAny, {
|
|
1406
1214
|
categoryId: string;
|
|
1407
1215
|
uiName: string;
|
|
1408
|
-
icon: "unknown" | "small" | "
|
|
1216
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1409
1217
|
}, {
|
|
1410
1218
|
categoryId: string;
|
|
1411
1219
|
uiName: string;
|
|
1412
|
-
icon: "unknown" | "small" | "
|
|
1220
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1413
1221
|
}>, "many">;
|
|
1414
1222
|
}, "strip", z.ZodTypeAny, {
|
|
1415
1223
|
uiName: string;
|
|
1416
|
-
icon: "unknown" | "small" | "
|
|
1224
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1417
1225
|
categoryList: {
|
|
1418
1226
|
categoryId: string;
|
|
1419
1227
|
uiName: string;
|
|
1420
|
-
icon: "unknown" | "small" | "
|
|
1228
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1421
1229
|
}[];
|
|
1422
1230
|
}, {
|
|
1423
1231
|
uiName: string;
|
|
1424
|
-
icon: "unknown" | "small" | "
|
|
1232
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1425
1233
|
categoryList: {
|
|
1426
1234
|
categoryId: string;
|
|
1427
1235
|
uiName: string;
|
|
1428
|
-
icon: "unknown" | "small" | "
|
|
1236
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1429
1237
|
}[];
|
|
1430
1238
|
}>;
|
|
1431
1239
|
export type TDomainDescriptor = z.infer<typeof domainDescriptorSchema>;
|
|
@@ -1439,27 +1247,27 @@ export declare const domainListSchema: z.ZodRecord<z.ZodEnum<["adsb", "remoteId"
|
|
|
1439
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1440
1248
|
categoryId: string;
|
|
1441
1249
|
uiName: string;
|
|
1442
|
-
icon: "unknown" | "small" | "
|
|
1250
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1443
1251
|
}, {
|
|
1444
1252
|
categoryId: string;
|
|
1445
1253
|
uiName: string;
|
|
1446
|
-
icon: "unknown" | "small" | "
|
|
1254
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1447
1255
|
}>, "many">;
|
|
1448
1256
|
}, "strip", z.ZodTypeAny, {
|
|
1449
1257
|
uiName: string;
|
|
1450
|
-
icon: "unknown" | "small" | "
|
|
1258
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1451
1259
|
categoryList: {
|
|
1452
1260
|
categoryId: string;
|
|
1453
1261
|
uiName: string;
|
|
1454
|
-
icon: "unknown" | "small" | "
|
|
1262
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1455
1263
|
}[];
|
|
1456
1264
|
}, {
|
|
1457
1265
|
uiName: string;
|
|
1458
|
-
icon: "unknown" | "small" | "
|
|
1266
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1459
1267
|
categoryList: {
|
|
1460
1268
|
categoryId: string;
|
|
1461
1269
|
uiName: string;
|
|
1462
|
-
icon: "unknown" | "small" | "
|
|
1270
|
+
icon: "unknown" | "small" | "large" | "heavy" | "helicopter" | "drone" | "operator" | "vehicle";
|
|
1463
1271
|
}[];
|
|
1464
1272
|
}>>;
|
|
1465
1273
|
export type TDomainList = z.infer<typeof domainListSchema>;
|