camstreamerlib 4.0.0-beta.37 → 4.0.0-beta.39

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.
Files changed (79) hide show
  1. package/README.md +38 -27
  2. package/cjs/CamOverlayAPI.js +42 -75
  3. package/cjs/CamScripterAPI.js +30 -24
  4. package/cjs/CamStreamerAPI.js +30 -33
  5. package/cjs/CamSwitcherAPI.js +57 -52
  6. package/cjs/PlaneTrackerAPI.js +55 -66
  7. package/cjs/VapixAPI.js +23 -22
  8. package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +1 -1
  9. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +4 -14
  10. package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +1 -1
  11. package/cjs/{VapixEvents.js → node/VapixEvents.js} +1 -1
  12. package/cjs/node/events/GenetecAgent.js +5 -27
  13. package/cjs/node/index.js +17 -0
  14. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  15. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
  16. package/cjs/types/CamOverlayPainter.js +12 -0
  17. package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
  18. package/cjs/types/CamSwitcherAPI.js +38 -1
  19. package/cjs/types/GenetecAgent.js +31 -0
  20. package/cjs/types/PlaneTrackerAPI.js +277 -0
  21. package/cjs/types/VapixAPI.js +20 -2
  22. package/cjs/types/VapixEvents.js +2 -0
  23. package/esm/CamOverlayAPI.js +43 -76
  24. package/esm/CamScripterAPI.js +30 -24
  25. package/esm/CamStreamerAPI.js +30 -30
  26. package/esm/CamSwitcherAPI.js +58 -53
  27. package/esm/PlaneTrackerAPI.js +56 -67
  28. package/esm/VapixAPI.js +24 -23
  29. package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +1 -1
  30. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +1 -11
  31. package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +1 -1
  32. package/esm/{VapixEvents.js → node/VapixEvents.js} +1 -1
  33. package/esm/node/events/GenetecAgent.js +1 -23
  34. package/esm/node/index.js +10 -0
  35. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +1 -1
  36. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
  37. package/esm/types/CamOverlayPainter.js +11 -1
  38. package/esm/types/CamSwitcherAPI.js +38 -1
  39. package/esm/types/GenetecAgent.js +28 -0
  40. package/esm/types/PlaneTrackerAPI.js +276 -1
  41. package/esm/types/VapixAPI.js +19 -1
  42. package/esm/types/VapixEvents.js +1 -0
  43. package/package.json +1 -1
  44. package/types/CamOverlayAPI.d.ts +24 -14
  45. package/types/CamScripterAPI.d.ts +34 -9
  46. package/types/CamStreamerAPI.d.ts +27 -5
  47. package/types/CamSwitcherAPI.d.ts +136 -23
  48. package/types/PlaneTrackerAPI.d.ts +201 -20
  49. package/types/VapixAPI.d.ts +46 -12
  50. package/types/bin/CreatePackage.d.ts +1 -0
  51. package/types/{CamOverlayDrawingAPI.d.ts → node/CamOverlayDrawingAPI.d.ts} +1 -1
  52. package/types/{CamOverlayPainter → node/CamOverlayPainter}/Frame.d.ts +2 -2
  53. package/types/{CamOverlayPainter → node/CamOverlayPainter}/Painter.d.ts +2 -13
  54. package/types/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.d.ts +1 -1
  55. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  56. package/types/node/VapixEvents.d.ts +16 -0
  57. package/types/node/events/GenetecAgent.d.ts +1 -144
  58. package/types/node/index.d.ts +10 -0
  59. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +38 -38
  60. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +13 -13
  61. package/types/types/CamOverlayDrawingAPI.d.ts +3 -13
  62. package/types/types/CamOverlayPainter.d.ts +12 -10
  63. package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  64. package/types/types/CamStreamerAPI.d.ts +2 -2
  65. package/types/types/CamSwitcherAPI.d.ts +111 -30
  66. package/types/types/GenetecAgent.d.ts +174 -0
  67. package/types/types/PlaneTrackerAPI.d.ts +859 -0
  68. package/types/types/VapixAPI.d.ts +54 -8
  69. package/types/types/VapixEvents.d.ts +15 -0
  70. package/types/types/common.d.ts +1 -0
  71. package/types/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  72. package/types/VapixEvents.d.ts +0 -43
  73. /package/cjs/{CreatePackage.js → bin/CreatePackage.js} +0 -0
  74. /package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +0 -0
  75. /package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +0 -0
  76. /package/esm/{CreatePackage.js → bin/CreatePackage.js} +0 -0
  77. /package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +0 -0
  78. /package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +0 -0
  79. /package/{types/CreatePackage.d.ts → esm/types/CamScripterAPICameraEventsGenerator.js} +0 -0
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  export type TImportDataType = 'MAP_DATA' | 'SERVER_DATA' | 'ALL';
2
3
  export type TExportDataType = 'NIGHT_SKY_CALIBRATION_DATA' | 'ALL';
3
4
  export type TApiUser = {
@@ -5,4 +6,862 @@ export type TApiUser = {
5
6
  userName: string;
6
7
  userPriority: number;
7
8
  };
9
+ export declare const connectionSchema: z.ZodObject<{
10
+ protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
11
+ ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
12
+ port: z.ZodNumber;
13
+ user: z.ZodString;
14
+ pass: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ ip: string;
17
+ port: number;
18
+ protocol: "https" | "http" | "https_insecure";
19
+ user: string;
20
+ pass: string;
21
+ }, {
22
+ ip: string;
23
+ port: number;
24
+ protocol: "https" | "http" | "https_insecure";
25
+ user: string;
26
+ pass: string;
27
+ }>;
28
+ export declare const widgetSchema: z.ZodObject<{
29
+ enabled: z.ZodDefault<z.ZodBoolean>;
30
+ coord: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top_right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom_right">]>;
31
+ posX: z.ZodNumber;
32
+ posY: z.ZodNumber;
33
+ scale: z.ZodNumber;
34
+ }, "strip", z.ZodTypeAny, {
35
+ enabled: boolean;
36
+ scale: number;
37
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
38
+ posX: number;
39
+ posY: number;
40
+ }, {
41
+ scale: number;
42
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
43
+ posX: number;
44
+ posY: number;
45
+ enabled?: boolean | undefined;
46
+ }>;
47
+ declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
48
+ export type TLabelOption = z.infer<typeof labelOptionsSchema>;
49
+ export declare const cameraSettingsSchema: z.ZodObject<{
50
+ units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
51
+ adsbSource: z.ZodDefault<z.ZodObject<{
52
+ ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
53
+ port: z.ZodNumber;
54
+ }, "strip", z.ZodTypeAny, {
55
+ ip: string;
56
+ port: number;
57
+ }, {
58
+ ip: string;
59
+ port: number;
60
+ }>>;
61
+ camera: z.ZodDefault<z.ZodObject<{
62
+ protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
63
+ ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
64
+ port: z.ZodNumber;
65
+ user: z.ZodString;
66
+ pass: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ ip: string;
69
+ port: number;
70
+ protocol: "https" | "http" | "https_insecure";
71
+ user: string;
72
+ pass: string;
73
+ }, {
74
+ ip: string;
75
+ port: number;
76
+ protocol: "https" | "http" | "https_insecure";
77
+ user: string;
78
+ pass: string;
79
+ }>>;
80
+ cameraCalibrationProcessConfig: z.ZodDefault<z.ZodObject<{
81
+ nightSkyCalibrationEnabled: z.ZodBoolean;
82
+ scheduleNightSkyCalibrationTimestamp: z.ZodNumber;
83
+ }, "strip", z.ZodTypeAny, {
84
+ nightSkyCalibrationEnabled: boolean;
85
+ scheduleNightSkyCalibrationTimestamp: number;
86
+ }, {
87
+ nightSkyCalibrationEnabled: boolean;
88
+ scheduleNightSkyCalibrationTimestamp: number;
89
+ }>>;
90
+ cameraConfig: z.ZodDefault<z.ZodObject<{
91
+ maxZoomLevel: z.ZodOptional<z.ZodNumber>;
92
+ defaultCaptureSizeMeters: z.ZodDefault<z.ZodNumber>;
93
+ captureSizeExtensionMeters: z.ZodDefault<z.ZodNumber>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ defaultCaptureSizeMeters: number;
96
+ captureSizeExtensionMeters: number;
97
+ maxZoomLevel?: number | undefined;
98
+ }, {
99
+ maxZoomLevel?: number | undefined;
100
+ defaultCaptureSizeMeters?: number | undefined;
101
+ captureSizeExtensionMeters?: number | undefined;
102
+ }>>;
103
+ stream: z.ZodDefault<z.ZodObject<{
104
+ width: z.ZodNumber;
105
+ height: z.ZodNumber;
106
+ }, "strip", z.ZodTypeAny, {
107
+ width: number;
108
+ height: number;
109
+ }, {
110
+ width: number;
111
+ height: number;
112
+ }>>;
113
+ imageConfig: z.ZodDefault<z.ZodObject<{
114
+ dayAperture: z.ZodNumber;
115
+ nightAperture: z.ZodNumber;
116
+ }, "strip", z.ZodTypeAny, {
117
+ dayAperture: number;
118
+ nightAperture: number;
119
+ }, {
120
+ dayAperture: number;
121
+ nightAperture: number;
122
+ }>>;
123
+ airportConfig: z.ZodDefault<z.ZodObject<{
124
+ icao: z.ZodDefault<z.ZodString>;
125
+ centerLat: z.ZodNumber;
126
+ centerLon: z.ZodNumber;
127
+ radius: z.ZodDefault<z.ZodNumber>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ icao: string;
130
+ centerLat: number;
131
+ centerLon: number;
132
+ radius: number;
133
+ }, {
134
+ centerLat: number;
135
+ centerLon: number;
136
+ icao?: string | undefined;
137
+ radius?: number | undefined;
138
+ }>>;
139
+ trackingConfig: z.ZodDefault<z.ZodObject<{
140
+ prioritizeEmergency: z.ZodBoolean;
141
+ }, "strip", z.ZodTypeAny, {
142
+ prioritizeEmergency: boolean;
143
+ }, {
144
+ prioritizeEmergency: boolean;
145
+ }>>;
146
+ overlayText: z.ZodOptional<z.ZodObject<{
147
+ displayIcao: z.ZodOptional<z.ZodBoolean>;
148
+ displayRegistration: z.ZodOptional<z.ZodBoolean>;
149
+ displayFlightNumber: z.ZodOptional<z.ZodBoolean>;
150
+ displayAltitude: z.ZodOptional<z.ZodBoolean>;
151
+ displayVelocity: z.ZodOptional<z.ZodBoolean>;
152
+ displayDistance: z.ZodOptional<z.ZodBoolean>;
153
+ displayFOV: z.ZodOptional<z.ZodBoolean>;
154
+ displayPTError: z.ZodOptional<z.ZodBoolean>;
155
+ displayPTZSpeed: z.ZodOptional<z.ZodBoolean>;
156
+ displayVelocityData: z.ZodOptional<z.ZodBoolean>;
157
+ displaySignalQuality: z.ZodOptional<z.ZodBoolean>;
158
+ displayAutoTrackingInfo: z.ZodOptional<z.ZodBoolean>;
159
+ displayGPSCoords: z.ZodOptional<z.ZodBoolean>;
160
+ displayVapixQuery: z.ZodOptional<z.ZodBoolean>;
161
+ displayFocus: z.ZodOptional<z.ZodBoolean>;
162
+ displayAperture: z.ZodOptional<z.ZodBoolean>;
163
+ displaySunDistance: z.ZodOptional<z.ZodBoolean>;
164
+ displayTickTime: z.ZodOptional<z.ZodBoolean>;
165
+ displayAircraftInfo: z.ZodOptional<z.ZodBoolean>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ displayIcao?: boolean | undefined;
168
+ displayRegistration?: boolean | undefined;
169
+ displayFlightNumber?: boolean | undefined;
170
+ displayAltitude?: boolean | undefined;
171
+ displayVelocity?: boolean | undefined;
172
+ displayDistance?: boolean | undefined;
173
+ displayFOV?: boolean | undefined;
174
+ displayPTError?: boolean | undefined;
175
+ displayPTZSpeed?: boolean | undefined;
176
+ displayVelocityData?: boolean | undefined;
177
+ displaySignalQuality?: boolean | undefined;
178
+ displayAutoTrackingInfo?: boolean | undefined;
179
+ displayGPSCoords?: boolean | undefined;
180
+ displayVapixQuery?: boolean | undefined;
181
+ displayFocus?: boolean | undefined;
182
+ displayAperture?: boolean | undefined;
183
+ displaySunDistance?: boolean | undefined;
184
+ displayTickTime?: boolean | undefined;
185
+ displayAircraftInfo?: boolean | undefined;
186
+ }, {
187
+ displayIcao?: boolean | undefined;
188
+ displayRegistration?: boolean | undefined;
189
+ displayFlightNumber?: boolean | undefined;
190
+ displayAltitude?: boolean | undefined;
191
+ displayVelocity?: boolean | undefined;
192
+ displayDistance?: boolean | undefined;
193
+ displayFOV?: boolean | undefined;
194
+ displayPTError?: boolean | undefined;
195
+ displayPTZSpeed?: boolean | undefined;
196
+ displayVelocityData?: boolean | undefined;
197
+ displaySignalQuality?: boolean | undefined;
198
+ displayAutoTrackingInfo?: boolean | undefined;
199
+ displayGPSCoords?: boolean | undefined;
200
+ displayVapixQuery?: boolean | undefined;
201
+ displayFocus?: boolean | undefined;
202
+ displayAperture?: boolean | undefined;
203
+ displaySunDistance?: boolean | undefined;
204
+ displayTickTime?: boolean | undefined;
205
+ displayAircraftInfo?: boolean | undefined;
206
+ }>>;
207
+ widget: z.ZodDefault<z.ZodObject<{
208
+ enabled: z.ZodDefault<z.ZodBoolean>;
209
+ coord: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top_right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom_right">]>;
210
+ posX: z.ZodNumber;
211
+ posY: z.ZodNumber;
212
+ scale: z.ZodNumber;
213
+ }, "strip", z.ZodTypeAny, {
214
+ enabled: boolean;
215
+ scale: number;
216
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
217
+ posX: number;
218
+ posY: number;
219
+ }, {
220
+ scale: number;
221
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
222
+ posX: number;
223
+ posY: number;
224
+ enabled?: boolean | undefined;
225
+ }>>;
226
+ airportWidget: z.ZodDefault<z.ZodObject<{
227
+ enabled: z.ZodDefault<z.ZodBoolean>;
228
+ coord: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top_right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom_right">]>;
229
+ posX: z.ZodNumber;
230
+ posY: z.ZodNumber;
231
+ scale: z.ZodNumber;
232
+ }, "strip", z.ZodTypeAny, {
233
+ enabled: boolean;
234
+ scale: number;
235
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
236
+ posX: number;
237
+ posY: number;
238
+ }, {
239
+ scale: number;
240
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
241
+ posX: number;
242
+ posY: number;
243
+ enabled?: boolean | undefined;
244
+ }>>;
245
+ fr24FlightInfoSource: z.ZodDefault<z.ZodObject<{
246
+ enabled: z.ZodDefault<z.ZodBoolean>;
247
+ priority: z.ZodDefault<z.ZodNumber>;
248
+ apiToken: z.ZodDefault<z.ZodString>;
249
+ validateFlights: z.ZodDefault<z.ZodBoolean>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ enabled: boolean;
252
+ priority: number;
253
+ apiToken: string;
254
+ validateFlights: boolean;
255
+ }, {
256
+ enabled?: boolean | undefined;
257
+ priority?: number | undefined;
258
+ apiToken?: string | undefined;
259
+ validateFlights?: boolean | undefined;
260
+ }>>;
261
+ radarcapeFlightInfoSource: z.ZodDefault<z.ZodObject<{
262
+ enabled: z.ZodDefault<z.ZodBoolean>;
263
+ priority: z.ZodDefault<z.ZodNumber>;
264
+ ip: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
265
+ port: z.ZodDefault<z.ZodNumber>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ ip: string;
268
+ port: number;
269
+ enabled: boolean;
270
+ priority: number;
271
+ }, {
272
+ ip?: string | undefined;
273
+ port?: number | undefined;
274
+ enabled?: boolean | undefined;
275
+ priority?: number | undefined;
276
+ }>>;
277
+ identificationLabel: z.ZodDefault<z.ZodObject<{
278
+ firstRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
279
+ secondRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
280
+ thirdRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
281
+ fourthRow: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
282
+ opacity: z.ZodNumber;
283
+ }, "strip", z.ZodTypeAny, {
284
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
285
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
286
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
287
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
288
+ opacity: number;
289
+ }, {
290
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
291
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
292
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
293
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
294
+ opacity: number;
295
+ }>>;
296
+ acs: z.ZodDefault<z.ZodObject<{
297
+ protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
298
+ ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
299
+ port: z.ZodNumber;
300
+ user: z.ZodString;
301
+ pass: z.ZodString;
302
+ } & {
303
+ enabled: z.ZodBoolean;
304
+ sourceKey: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ ip: string;
307
+ port: number;
308
+ enabled: boolean;
309
+ protocol: "https" | "http" | "https_insecure";
310
+ user: string;
311
+ pass: string;
312
+ sourceKey: string;
313
+ }, {
314
+ ip: string;
315
+ port: number;
316
+ enabled: boolean;
317
+ protocol: "https" | "http" | "https_insecure";
318
+ user: string;
319
+ pass: string;
320
+ sourceKey: string;
321
+ }>>;
322
+ genetec: z.ZodDefault<z.ZodObject<{
323
+ protocol: z.ZodUnion<[z.ZodLiteral<"http">, z.ZodLiteral<"https">, z.ZodLiteral<"https_insecure">]>;
324
+ ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
325
+ port: z.ZodNumber;
326
+ user: z.ZodString;
327
+ pass: z.ZodString;
328
+ } & {
329
+ enabled: z.ZodBoolean;
330
+ baseUri: z.ZodDefault<z.ZodString>;
331
+ appId: z.ZodDefault<z.ZodString>;
332
+ cameraList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ ip: string;
335
+ port: number;
336
+ enabled: boolean;
337
+ cameraList: string[];
338
+ appId: string;
339
+ protocol: "https" | "http" | "https_insecure";
340
+ user: string;
341
+ pass: string;
342
+ baseUri: string;
343
+ }, {
344
+ ip: string;
345
+ port: number;
346
+ enabled: boolean;
347
+ protocol: "https" | "http" | "https_insecure";
348
+ user: string;
349
+ pass: string;
350
+ cameraList?: string[] | undefined;
351
+ appId?: string | undefined;
352
+ baseUri?: string | undefined;
353
+ }>>;
354
+ }, "strip", z.ZodTypeAny, {
355
+ camera: {
356
+ ip: string;
357
+ port: number;
358
+ protocol: "https" | "http" | "https_insecure";
359
+ user: string;
360
+ pass: string;
361
+ };
362
+ units: "metric" | "imperial";
363
+ adsbSource: {
364
+ ip: string;
365
+ port: number;
366
+ };
367
+ cameraCalibrationProcessConfig: {
368
+ nightSkyCalibrationEnabled: boolean;
369
+ scheduleNightSkyCalibrationTimestamp: number;
370
+ };
371
+ cameraConfig: {
372
+ defaultCaptureSizeMeters: number;
373
+ captureSizeExtensionMeters: number;
374
+ maxZoomLevel?: number | undefined;
375
+ };
376
+ stream: {
377
+ width: number;
378
+ height: number;
379
+ };
380
+ imageConfig: {
381
+ dayAperture: number;
382
+ nightAperture: number;
383
+ };
384
+ airportConfig: {
385
+ icao: string;
386
+ centerLat: number;
387
+ centerLon: number;
388
+ radius: number;
389
+ };
390
+ trackingConfig: {
391
+ prioritizeEmergency: boolean;
392
+ };
393
+ widget: {
394
+ enabled: boolean;
395
+ scale: number;
396
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
397
+ posX: number;
398
+ posY: number;
399
+ };
400
+ airportWidget: {
401
+ enabled: boolean;
402
+ scale: number;
403
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
404
+ posX: number;
405
+ posY: number;
406
+ };
407
+ fr24FlightInfoSource: {
408
+ enabled: boolean;
409
+ priority: number;
410
+ apiToken: string;
411
+ validateFlights: boolean;
412
+ };
413
+ radarcapeFlightInfoSource: {
414
+ ip: string;
415
+ port: number;
416
+ enabled: boolean;
417
+ priority: number;
418
+ };
419
+ identificationLabel: {
420
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
421
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
422
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
423
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
424
+ opacity: number;
425
+ };
426
+ acs: {
427
+ ip: string;
428
+ port: number;
429
+ enabled: boolean;
430
+ protocol: "https" | "http" | "https_insecure";
431
+ user: string;
432
+ pass: string;
433
+ sourceKey: string;
434
+ };
435
+ genetec: {
436
+ ip: string;
437
+ port: number;
438
+ enabled: boolean;
439
+ cameraList: string[];
440
+ appId: string;
441
+ protocol: "https" | "http" | "https_insecure";
442
+ user: string;
443
+ pass: string;
444
+ baseUri: string;
445
+ };
446
+ overlayText?: {
447
+ displayIcao?: boolean | undefined;
448
+ displayRegistration?: boolean | undefined;
449
+ displayFlightNumber?: boolean | undefined;
450
+ displayAltitude?: boolean | undefined;
451
+ displayVelocity?: boolean | undefined;
452
+ displayDistance?: boolean | undefined;
453
+ displayFOV?: boolean | undefined;
454
+ displayPTError?: boolean | undefined;
455
+ displayPTZSpeed?: boolean | undefined;
456
+ displayVelocityData?: boolean | undefined;
457
+ displaySignalQuality?: boolean | undefined;
458
+ displayAutoTrackingInfo?: boolean | undefined;
459
+ displayGPSCoords?: boolean | undefined;
460
+ displayVapixQuery?: boolean | undefined;
461
+ displayFocus?: boolean | undefined;
462
+ displayAperture?: boolean | undefined;
463
+ displaySunDistance?: boolean | undefined;
464
+ displayTickTime?: boolean | undefined;
465
+ displayAircraftInfo?: boolean | undefined;
466
+ } | undefined;
467
+ }, {
468
+ camera?: {
469
+ ip: string;
470
+ port: number;
471
+ protocol: "https" | "http" | "https_insecure";
472
+ user: string;
473
+ pass: string;
474
+ } | undefined;
475
+ units?: "metric" | "imperial" | undefined;
476
+ adsbSource?: {
477
+ ip: string;
478
+ port: number;
479
+ } | undefined;
480
+ cameraCalibrationProcessConfig?: {
481
+ nightSkyCalibrationEnabled: boolean;
482
+ scheduleNightSkyCalibrationTimestamp: number;
483
+ } | undefined;
484
+ cameraConfig?: {
485
+ maxZoomLevel?: number | undefined;
486
+ defaultCaptureSizeMeters?: number | undefined;
487
+ captureSizeExtensionMeters?: number | undefined;
488
+ } | undefined;
489
+ stream?: {
490
+ width: number;
491
+ height: number;
492
+ } | undefined;
493
+ imageConfig?: {
494
+ dayAperture: number;
495
+ nightAperture: number;
496
+ } | undefined;
497
+ airportConfig?: {
498
+ centerLat: number;
499
+ centerLon: number;
500
+ icao?: string | undefined;
501
+ radius?: number | undefined;
502
+ } | undefined;
503
+ trackingConfig?: {
504
+ prioritizeEmergency: boolean;
505
+ } | undefined;
506
+ overlayText?: {
507
+ displayIcao?: boolean | undefined;
508
+ displayRegistration?: boolean | undefined;
509
+ displayFlightNumber?: boolean | undefined;
510
+ displayAltitude?: boolean | undefined;
511
+ displayVelocity?: boolean | undefined;
512
+ displayDistance?: boolean | undefined;
513
+ displayFOV?: boolean | undefined;
514
+ displayPTError?: boolean | undefined;
515
+ displayPTZSpeed?: boolean | undefined;
516
+ displayVelocityData?: boolean | undefined;
517
+ displaySignalQuality?: boolean | undefined;
518
+ displayAutoTrackingInfo?: boolean | undefined;
519
+ displayGPSCoords?: boolean | undefined;
520
+ displayVapixQuery?: boolean | undefined;
521
+ displayFocus?: boolean | undefined;
522
+ displayAperture?: boolean | undefined;
523
+ displaySunDistance?: boolean | undefined;
524
+ displayTickTime?: boolean | undefined;
525
+ displayAircraftInfo?: boolean | undefined;
526
+ } | undefined;
527
+ widget?: {
528
+ scale: number;
529
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
530
+ posX: number;
531
+ posY: number;
532
+ enabled?: boolean | undefined;
533
+ } | undefined;
534
+ airportWidget?: {
535
+ scale: number;
536
+ coord: "top_left" | "top_right" | "bottom_left" | "bottom_right";
537
+ posX: number;
538
+ posY: number;
539
+ enabled?: boolean | undefined;
540
+ } | undefined;
541
+ fr24FlightInfoSource?: {
542
+ enabled?: boolean | undefined;
543
+ priority?: number | undefined;
544
+ apiToken?: string | undefined;
545
+ validateFlights?: boolean | undefined;
546
+ } | undefined;
547
+ radarcapeFlightInfoSource?: {
548
+ ip?: string | undefined;
549
+ port?: number | undefined;
550
+ enabled?: boolean | undefined;
551
+ priority?: number | undefined;
552
+ } | undefined;
553
+ identificationLabel?: {
554
+ firstRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
555
+ secondRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
556
+ thirdRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
557
+ fourthRow: "blank" | "registration" | "call_sign" | "flight_number" | "icao";
558
+ opacity: number;
559
+ } | undefined;
560
+ acs?: {
561
+ ip: string;
562
+ port: number;
563
+ enabled: boolean;
564
+ protocol: "https" | "http" | "https_insecure";
565
+ user: string;
566
+ pass: string;
567
+ sourceKey: string;
568
+ } | undefined;
569
+ genetec?: {
570
+ ip: string;
571
+ port: number;
572
+ enabled: boolean;
573
+ protocol: "https" | "http" | "https_insecure";
574
+ user: string;
575
+ pass: string;
576
+ cameraList?: string[] | undefined;
577
+ appId?: string | undefined;
578
+ baseUri?: string | undefined;
579
+ } | undefined;
580
+ }>;
581
+ export type TCameraSettings = z.infer<typeof cameraSettingsSchema>;
582
+ export declare const serverSettingsSchema: z.ZodObject<{
583
+ cameraCalibration: z.ZodObject<{
584
+ posLat: z.ZodNumber;
585
+ posLon: z.ZodNumber;
586
+ geoidHN: z.ZodNumber;
587
+ altitudeAmsl: z.ZodNumber;
588
+ rotationEast: z.ZodNumber;
589
+ rotationNorth: z.ZodNumber;
590
+ rotationUp: z.ZodNumber;
591
+ tiltTransformationCoefA: z.ZodNumber;
592
+ tiltCameraKnownPoint: z.ZodNumber;
593
+ tiltRealKnownPoint: z.ZodNumber;
594
+ }, "strip", z.ZodTypeAny, {
595
+ posLat: number;
596
+ posLon: number;
597
+ geoidHN: number;
598
+ altitudeAmsl: number;
599
+ rotationEast: number;
600
+ rotationNorth: number;
601
+ rotationUp: number;
602
+ tiltTransformationCoefA: number;
603
+ tiltCameraKnownPoint: number;
604
+ tiltRealKnownPoint: number;
605
+ }, {
606
+ posLat: number;
607
+ posLon: number;
608
+ geoidHN: number;
609
+ altitudeAmsl: number;
610
+ rotationEast: number;
611
+ rotationNorth: number;
612
+ rotationUp: number;
613
+ tiltTransformationCoefA: number;
614
+ tiltCameraKnownPoint: number;
615
+ tiltRealKnownPoint: number;
616
+ }>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ cameraCalibration: {
619
+ posLat: number;
620
+ posLon: number;
621
+ geoidHN: number;
622
+ altitudeAmsl: number;
623
+ rotationEast: number;
624
+ rotationNorth: number;
625
+ rotationUp: number;
626
+ tiltTransformationCoefA: number;
627
+ tiltCameraKnownPoint: number;
628
+ tiltRealKnownPoint: number;
629
+ };
630
+ }, {
631
+ cameraCalibration: {
632
+ posLat: number;
633
+ posLon: number;
634
+ geoidHN: number;
635
+ altitudeAmsl: number;
636
+ rotationEast: number;
637
+ rotationNorth: number;
638
+ rotationUp: number;
639
+ tiltTransformationCoefA: number;
640
+ tiltCameraKnownPoint: number;
641
+ tiltRealKnownPoint: number;
642
+ };
643
+ }>;
644
+ export type TServerSettings = z.infer<typeof serverSettingsSchema>;
8
645
  export type ICAO = string;
646
+ export declare const trackingModeSchema: z.ZodObject<{
647
+ mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ mode: "MANUAL" | "AUTOMATIC";
650
+ }, {
651
+ mode: "MANUAL" | "AUTOMATIC";
652
+ }>;
653
+ export type TTrackingMode = z.infer<typeof trackingModeSchema>;
654
+ export declare const flightInfoSchema: z.ZodObject<{
655
+ callsign: z.ZodOptional<z.ZodString>;
656
+ flightNumber: z.ZodOptional<z.ZodString>;
657
+ registration: z.ZodOptional<z.ZodString>;
658
+ aircraftType: z.ZodOptional<z.ZodString>;
659
+ airlines: z.ZodOptional<z.ZodString>;
660
+ originAirport: z.ZodOptional<z.ZodObject<{
661
+ icao: z.ZodOptional<z.ZodString>;
662
+ iata: z.ZodOptional<z.ZodString>;
663
+ city: z.ZodOptional<z.ZodString>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ icao?: string | undefined;
666
+ iata?: string | undefined;
667
+ city?: string | undefined;
668
+ }, {
669
+ icao?: string | undefined;
670
+ iata?: string | undefined;
671
+ city?: string | undefined;
672
+ }>>;
673
+ destinationAirport: z.ZodObject<{
674
+ icao: z.ZodOptional<z.ZodString>;
675
+ iata: z.ZodOptional<z.ZodString>;
676
+ city: z.ZodOptional<z.ZodString>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ icao?: string | undefined;
679
+ iata?: string | undefined;
680
+ city?: string | undefined;
681
+ }, {
682
+ icao?: string | undefined;
683
+ iata?: string | undefined;
684
+ city?: string | undefined;
685
+ }>;
686
+ flightImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
687
+ src: z.ZodOptional<z.ZodString>;
688
+ photographer: z.ZodOptional<z.ZodString>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ src?: string | undefined;
691
+ photographer?: string | undefined;
692
+ }, {
693
+ src?: string | undefined;
694
+ photographer?: string | undefined;
695
+ }>, "many">>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ destinationAirport: {
698
+ icao?: string | undefined;
699
+ iata?: string | undefined;
700
+ city?: string | undefined;
701
+ };
702
+ registration?: string | undefined;
703
+ callsign?: string | undefined;
704
+ flightNumber?: string | undefined;
705
+ aircraftType?: string | undefined;
706
+ airlines?: string | undefined;
707
+ originAirport?: {
708
+ icao?: string | undefined;
709
+ iata?: string | undefined;
710
+ city?: string | undefined;
711
+ } | undefined;
712
+ flightImages?: {
713
+ src?: string | undefined;
714
+ photographer?: string | undefined;
715
+ }[] | undefined;
716
+ }, {
717
+ destinationAirport: {
718
+ icao?: string | undefined;
719
+ iata?: string | undefined;
720
+ city?: string | undefined;
721
+ };
722
+ registration?: string | undefined;
723
+ callsign?: string | undefined;
724
+ flightNumber?: string | undefined;
725
+ aircraftType?: string | undefined;
726
+ airlines?: string | undefined;
727
+ originAirport?: {
728
+ icao?: string | undefined;
729
+ iata?: string | undefined;
730
+ city?: string | undefined;
731
+ } | undefined;
732
+ flightImages?: {
733
+ src?: string | undefined;
734
+ photographer?: string | undefined;
735
+ }[] | undefined;
736
+ }>;
737
+ export type TFlightInfo = z.infer<typeof flightInfoSchema>;
738
+ export declare const priorityListSchema: z.ZodObject<{
739
+ priorityList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ priorityList: string[];
742
+ }, {
743
+ priorityList?: string[] | undefined;
744
+ }>;
745
+ export type TPriorityList = z.infer<typeof priorityListSchema>;
746
+ export declare const whiteListSchema: z.ZodObject<{
747
+ whiteList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ whiteList: string[];
750
+ }, {
751
+ whiteList?: string[] | undefined;
752
+ }>;
753
+ export type TWhiteList = z.infer<typeof whiteListSchema>;
754
+ export declare const blackListSchema: z.ZodObject<{
755
+ blackList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ blackList: string[];
758
+ }, {
759
+ blackList?: string[] | undefined;
760
+ }>;
761
+ export type TBlackList = z.infer<typeof blackListSchema>;
762
+ export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
763
+ export type TMapType = z.infer<typeof mapTypeSchema>;
764
+ export declare const mapInfoSchema: z.ZodObject<{
765
+ minZoom: z.ZodNumber;
766
+ maxZoom: z.ZodNumber;
767
+ mapTypes: z.ZodArray<z.ZodEnum<["roadmap", "satellite"]>, "many">;
768
+ tileSize: z.ZodNumber;
769
+ }, "strip", z.ZodTypeAny, {
770
+ minZoom: number;
771
+ maxZoom: number;
772
+ mapTypes: ("roadmap" | "satellite")[];
773
+ tileSize: number;
774
+ }, {
775
+ minZoom: number;
776
+ maxZoom: number;
777
+ mapTypes: ("roadmap" | "satellite")[];
778
+ tileSize: number;
779
+ }>;
780
+ export type TMapInfo = z.infer<typeof mapInfoSchema>;
781
+ export declare const zonesSchema: z.ZodObject<{
782
+ zones: z.ZodDefault<z.ZodArray<z.ZodObject<{
783
+ enabled: z.ZodDefault<z.ZodBoolean>;
784
+ name: z.ZodOptional<z.ZodString>;
785
+ area: z.ZodArray<z.ZodObject<{
786
+ lat: z.ZodNumber;
787
+ lon: z.ZodNumber;
788
+ }, "strip", z.ZodTypeAny, {
789
+ lat: number;
790
+ lon: number;
791
+ }, {
792
+ lat: number;
793
+ lon: number;
794
+ }>, "atleastone">;
795
+ minAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
796
+ maxAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
797
+ minSpeedKmph: z.ZodOptional<z.ZodNumber>;
798
+ maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
799
+ weight: z.ZodNumber;
800
+ }, "strip", z.ZodTypeAny, {
801
+ enabled: boolean;
802
+ area: [{
803
+ lat: number;
804
+ lon: number;
805
+ }, ...{
806
+ lat: number;
807
+ lon: number;
808
+ }[]];
809
+ weight: number;
810
+ name?: string | undefined;
811
+ minAltitudeAmsl?: number | undefined;
812
+ maxAltitudeAmsl?: number | undefined;
813
+ minSpeedKmph?: number | undefined;
814
+ maxSpeedKmph?: number | undefined;
815
+ }, {
816
+ area: [{
817
+ lat: number;
818
+ lon: number;
819
+ }, ...{
820
+ lat: number;
821
+ lon: number;
822
+ }[]];
823
+ weight: number;
824
+ name?: string | undefined;
825
+ enabled?: boolean | undefined;
826
+ minAltitudeAmsl?: number | undefined;
827
+ maxAltitudeAmsl?: number | undefined;
828
+ minSpeedKmph?: number | undefined;
829
+ maxSpeedKmph?: number | undefined;
830
+ }>, "many">>;
831
+ }, "strip", z.ZodTypeAny, {
832
+ zones: {
833
+ enabled: boolean;
834
+ area: [{
835
+ lat: number;
836
+ lon: number;
837
+ }, ...{
838
+ lat: number;
839
+ lon: number;
840
+ }[]];
841
+ weight: number;
842
+ name?: string | undefined;
843
+ minAltitudeAmsl?: number | undefined;
844
+ maxAltitudeAmsl?: number | undefined;
845
+ minSpeedKmph?: number | undefined;
846
+ maxSpeedKmph?: number | undefined;
847
+ }[];
848
+ }, {
849
+ zones?: {
850
+ area: [{
851
+ lat: number;
852
+ lon: number;
853
+ }, ...{
854
+ lat: number;
855
+ lon: number;
856
+ }[]];
857
+ weight: number;
858
+ name?: string | undefined;
859
+ enabled?: boolean | undefined;
860
+ minAltitudeAmsl?: number | undefined;
861
+ maxAltitudeAmsl?: number | undefined;
862
+ minSpeedKmph?: number | undefined;
863
+ maxSpeedKmph?: number | undefined;
864
+ }[] | undefined;
865
+ }>;
866
+ export type TZones = z.infer<typeof zonesSchema>;
867
+ export {};