camstreamerlib 4.0.6 → 4.0.8

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.
@@ -1,6 +1,10 @@
1
1
  import { z } from 'zod';
2
- declare const apiFlightDataSchema: z.ZodObject<{
2
+ declare const wsApiFlightDataSchema: z.ZodObject<{
3
+ targetId: z.ZodString;
3
4
  icao: z.ZodString;
5
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
6
+ categoryId: z.ZodString;
7
+ groupId: z.ZodOptional<z.ZodString>;
4
8
  lat: z.ZodNumber;
5
9
  lon: z.ZodNumber;
6
10
  heading: z.ZodNumber;
@@ -11,7 +15,6 @@ declare const apiFlightDataSchema: z.ZodObject<{
11
15
  whiteListed: z.ZodBoolean;
12
16
  blackListed: z.ZodBoolean;
13
17
  priorityListed: z.ZodBoolean;
14
- typePriorityListed: z.ZodDefault<z.ZodBoolean>;
15
18
  autoSelectionIgnored: z.ZodBoolean;
16
19
  signalQuality: z.ZodNumber;
17
20
  emitterCategorySet: z.ZodDefault<z.ZodNumber>;
@@ -20,8 +23,11 @@ declare const apiFlightDataSchema: z.ZodObject<{
20
23
  emergencyStatusMessage: z.ZodString;
21
24
  }, "strip", z.ZodTypeAny, {
22
25
  icao: string;
26
+ targetId: string;
27
+ domain: "adsb" | "remoteId";
23
28
  lat: number;
24
29
  lon: number;
30
+ categoryId: string;
25
31
  heading: number;
26
32
  groundSpeed: number;
27
33
  altitudeAMSL: number;
@@ -30,17 +36,20 @@ declare const apiFlightDataSchema: z.ZodObject<{
30
36
  whiteListed: boolean;
31
37
  blackListed: boolean;
32
38
  priorityListed: boolean;
33
- typePriorityListed: boolean;
34
39
  autoSelectionIgnored: boolean;
35
40
  signalQuality: number;
36
41
  emitterCategorySet: number;
37
42
  emitterCategory: number;
38
43
  emergencyState: boolean;
39
44
  emergencyStatusMessage: string;
45
+ groupId?: string | undefined;
40
46
  }, {
41
47
  icao: string;
48
+ targetId: string;
49
+ domain: "adsb" | "remoteId";
42
50
  lat: number;
43
51
  lon: number;
52
+ categoryId: string;
44
53
  heading: number;
45
54
  groundSpeed: number;
46
55
  altitudeAMSL: number;
@@ -53,15 +62,35 @@ declare const apiFlightDataSchema: z.ZodObject<{
53
62
  signalQuality: number;
54
63
  emergencyState: boolean;
55
64
  emergencyStatusMessage: string;
56
- typePriorityListed?: boolean | undefined;
65
+ groupId?: string | undefined;
57
66
  emitterCategorySet?: number | undefined;
58
67
  emitterCategory?: number | undefined;
59
68
  }>;
69
+ declare const wsCameraPositionDataSchema: z.ZodObject<{
70
+ lat: z.ZodNumber;
71
+ lon: z.ZodNumber;
72
+ azimuth: z.ZodNumber;
73
+ elevation: z.ZodNumber;
74
+ fov: z.ZodNumber;
75
+ }, "strip", z.ZodTypeAny, {
76
+ lat: number;
77
+ lon: number;
78
+ azimuth: number;
79
+ elevation: number;
80
+ fov: number;
81
+ }, {
82
+ lat: number;
83
+ lon: number;
84
+ azimuth: number;
85
+ elevation: number;
86
+ fov: number;
87
+ }>;
60
88
  declare const apiUserSchema: z.ZodObject<{
61
89
  userId: z.ZodString;
62
90
  userName: z.ZodString;
63
- userPriority: z.ZodNumber;
91
+ } & {
64
92
  ip: z.ZodString;
93
+ userPriority: z.ZodNumber;
65
94
  }, "strip", z.ZodTypeAny, {
66
95
  ip: string;
67
96
  userId: string;
@@ -73,29 +102,8 @@ declare const apiUserSchema: z.ZodObject<{
73
102
  userName: string;
74
103
  userPriority: number;
75
104
  }>;
76
- declare const apiStringUserSchema: z.ZodObject<{
77
- userId: z.ZodString;
78
- userName: z.ZodString;
79
- userPriority: z.ZodString;
80
- }, "strip", z.ZodTypeAny, {
81
- userId: string;
82
- userName: string;
83
- userPriority: string;
84
- }, {
85
- userId: string;
86
- userName: string;
87
- userPriority: string;
88
- }>;
89
- export declare enum PlaneTrackerWsEvents {
90
- FLIGHT_LIST = "FLIGHT_LIST",
91
- CAMERA_POSITION = "CAMERA_POSITION",
92
- TRACKING_START = "TRACKING_START",
93
- TRACKING_STOP = "TRACKING_STOP",
94
- USER_ACTION = "USER_ACTION",
95
- CONNECTED_USERS = "CONNECTED_USERS",
96
- FORCE_TRACKING_STATUS = "FORCE_TRACKING_STATUS"
97
- }
98
- export declare enum PlaneTrackerUserActions {
105
+ export type TEventType = 'CAMERA_POSITION' | 'TRACKING_START' | 'TRACKING_STOP' | 'FLIGHT_LIST' | 'USER_ACTION' | 'CONNECTED_USERS' | 'FORCE_TRACKING_STATUS' | 'API_LOCK_STATUS';
106
+ export declare enum EUserActions {
99
107
  TRACK_ICAO = "trackIcao.cgi",
100
108
  RESET_ICAO = "resetIcao.cgi",
101
109
  SET_PRIORITY_LIST = "setPriorityList.cgi",
@@ -108,8 +116,174 @@ export declare enum PlaneTrackerUserActions {
108
116
  LOCK_API = "lockApi.cgi",
109
117
  UNLOCK_API = "unlockApi.cgi"
110
118
  }
111
- export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi", [z.ZodObject<{
112
- cgi: z.ZodLiteral<PlaneTrackerUserActions.TRACK_ICAO>;
119
+ declare const eventsDataSchema: z.ZodUnion<readonly [z.ZodObject<{
120
+ type: z.ZodLiteral<"CAMERA_POSITION">;
121
+ } & {
122
+ lat: z.ZodNumber;
123
+ lon: z.ZodNumber;
124
+ azimuth: z.ZodNumber;
125
+ elevation: z.ZodNumber;
126
+ fov: z.ZodNumber;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: "CAMERA_POSITION";
129
+ lat: number;
130
+ lon: number;
131
+ azimuth: number;
132
+ elevation: number;
133
+ fov: number;
134
+ }, {
135
+ type: "CAMERA_POSITION";
136
+ lat: number;
137
+ lon: number;
138
+ azimuth: number;
139
+ elevation: number;
140
+ fov: number;
141
+ }>, z.ZodObject<{
142
+ type: z.ZodLiteral<"TRACKING_START">;
143
+ icao: z.ZodString;
144
+ targetId: z.ZodString;
145
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
146
+ categoryId: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: "TRACKING_START";
149
+ icao: string;
150
+ targetId: string;
151
+ domain: "adsb" | "remoteId";
152
+ categoryId: string;
153
+ }, {
154
+ type: "TRACKING_START";
155
+ icao: string;
156
+ targetId: string;
157
+ domain: "adsb" | "remoteId";
158
+ categoryId: string;
159
+ }>, z.ZodObject<{
160
+ type: z.ZodLiteral<"TRACKING_STOP">;
161
+ }, "strip", z.ZodTypeAny, {
162
+ type: "TRACKING_STOP";
163
+ }, {
164
+ type: "TRACKING_STOP";
165
+ }>, z.ZodObject<{
166
+ type: z.ZodLiteral<"FLIGHT_LIST">;
167
+ list: z.ZodArray<z.ZodObject<{
168
+ targetId: z.ZodString;
169
+ icao: z.ZodString;
170
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
171
+ categoryId: z.ZodString;
172
+ groupId: z.ZodOptional<z.ZodString>;
173
+ lat: z.ZodNumber;
174
+ lon: z.ZodNumber;
175
+ heading: z.ZodNumber;
176
+ groundSpeed: z.ZodNumber;
177
+ altitudeAMSL: z.ZodNumber;
178
+ cameraDistance: z.ZodNumber;
179
+ autoTrackingOrder: z.ZodNumber;
180
+ whiteListed: z.ZodBoolean;
181
+ blackListed: z.ZodBoolean;
182
+ priorityListed: z.ZodBoolean;
183
+ autoSelectionIgnored: z.ZodBoolean;
184
+ signalQuality: z.ZodNumber;
185
+ emitterCategorySet: z.ZodDefault<z.ZodNumber>;
186
+ emitterCategory: z.ZodDefault<z.ZodNumber>;
187
+ emergencyState: z.ZodBoolean;
188
+ emergencyStatusMessage: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ icao: string;
191
+ targetId: string;
192
+ domain: "adsb" | "remoteId";
193
+ lat: number;
194
+ lon: number;
195
+ categoryId: string;
196
+ heading: number;
197
+ groundSpeed: number;
198
+ altitudeAMSL: number;
199
+ cameraDistance: number;
200
+ autoTrackingOrder: number;
201
+ whiteListed: boolean;
202
+ blackListed: boolean;
203
+ priorityListed: boolean;
204
+ autoSelectionIgnored: boolean;
205
+ signalQuality: number;
206
+ emitterCategorySet: number;
207
+ emitterCategory: number;
208
+ emergencyState: boolean;
209
+ emergencyStatusMessage: string;
210
+ groupId?: string | undefined;
211
+ }, {
212
+ icao: string;
213
+ targetId: string;
214
+ domain: "adsb" | "remoteId";
215
+ lat: number;
216
+ lon: number;
217
+ categoryId: string;
218
+ heading: number;
219
+ groundSpeed: number;
220
+ altitudeAMSL: number;
221
+ cameraDistance: number;
222
+ autoTrackingOrder: number;
223
+ whiteListed: boolean;
224
+ blackListed: boolean;
225
+ priorityListed: boolean;
226
+ autoSelectionIgnored: boolean;
227
+ signalQuality: number;
228
+ emergencyState: boolean;
229
+ emergencyStatusMessage: string;
230
+ groupId?: string | undefined;
231
+ emitterCategorySet?: number | undefined;
232
+ emitterCategory?: number | undefined;
233
+ }>, "many">;
234
+ }, "strip", z.ZodTypeAny, {
235
+ type: "FLIGHT_LIST";
236
+ list: {
237
+ icao: string;
238
+ targetId: string;
239
+ domain: "adsb" | "remoteId";
240
+ lat: number;
241
+ lon: number;
242
+ categoryId: string;
243
+ heading: number;
244
+ groundSpeed: number;
245
+ altitudeAMSL: number;
246
+ cameraDistance: number;
247
+ autoTrackingOrder: number;
248
+ whiteListed: boolean;
249
+ blackListed: boolean;
250
+ priorityListed: boolean;
251
+ autoSelectionIgnored: boolean;
252
+ signalQuality: number;
253
+ emitterCategorySet: number;
254
+ emitterCategory: number;
255
+ emergencyState: boolean;
256
+ emergencyStatusMessage: string;
257
+ groupId?: string | undefined;
258
+ }[];
259
+ }, {
260
+ type: "FLIGHT_LIST";
261
+ list: {
262
+ icao: string;
263
+ targetId: string;
264
+ domain: "adsb" | "remoteId";
265
+ lat: number;
266
+ lon: number;
267
+ categoryId: string;
268
+ heading: number;
269
+ groundSpeed: number;
270
+ altitudeAMSL: number;
271
+ cameraDistance: number;
272
+ autoTrackingOrder: number;
273
+ whiteListed: boolean;
274
+ blackListed: boolean;
275
+ priorityListed: boolean;
276
+ autoSelectionIgnored: boolean;
277
+ signalQuality: number;
278
+ emergencyState: boolean;
279
+ emergencyStatusMessage: string;
280
+ groupId?: string | undefined;
281
+ emitterCategorySet?: number | undefined;
282
+ emitterCategory?: number | undefined;
283
+ }[];
284
+ }>, z.ZodObject<{
285
+ type: z.ZodLiteral<"USER_ACTION">;
286
+ cgi: z.ZodLiteral<EUserActions.TRACK_ICAO>;
113
287
  ip: z.ZodString;
114
288
  params: z.ZodObject<{
115
289
  userId: z.ZodString;
@@ -128,6 +302,7 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
128
302
  userName: string;
129
303
  userPriority: string;
130
304
  }>;
305
+ postJsonBody: z.ZodAny;
131
306
  }, "strip", z.ZodTypeAny, {
132
307
  params: {
133
308
  icao: string;
@@ -135,8 +310,10 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
135
310
  userName: string;
136
311
  userPriority: string;
137
312
  };
313
+ type: "USER_ACTION";
138
314
  ip: string;
139
- cgi: PlaneTrackerUserActions.TRACK_ICAO;
315
+ cgi: EUserActions.TRACK_ICAO;
316
+ postJsonBody?: any;
140
317
  }, {
141
318
  params: {
142
319
  icao: string;
@@ -144,10 +321,13 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
144
321
  userName: string;
145
322
  userPriority: string;
146
323
  };
324
+ type: "USER_ACTION";
147
325
  ip: string;
148
- cgi: PlaneTrackerUserActions.TRACK_ICAO;
326
+ cgi: EUserActions.TRACK_ICAO;
327
+ postJsonBody?: any;
149
328
  }>, z.ZodObject<{
150
- cgi: z.ZodLiteral<PlaneTrackerUserActions.RESET_ICAO>;
329
+ type: z.ZodLiteral<"USER_ACTION">;
330
+ cgi: z.ZodLiteral<EUserActions.RESET_ICAO>;
151
331
  ip: z.ZodString;
152
332
  params: z.ZodObject<{
153
333
  userId: z.ZodString;
@@ -162,24 +342,30 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
162
342
  userName: string;
163
343
  userPriority: string;
164
344
  }>;
345
+ postJsonBody: z.ZodAny;
165
346
  }, "strip", z.ZodTypeAny, {
166
347
  params: {
167
348
  userId: string;
168
349
  userName: string;
169
350
  userPriority: string;
170
351
  };
352
+ type: "USER_ACTION";
171
353
  ip: string;
172
- cgi: PlaneTrackerUserActions.RESET_ICAO;
354
+ cgi: EUserActions.RESET_ICAO;
355
+ postJsonBody?: any;
173
356
  }, {
174
357
  params: {
175
358
  userId: string;
176
359
  userName: string;
177
360
  userPriority: string;
178
361
  };
362
+ type: "USER_ACTION";
179
363
  ip: string;
180
- cgi: PlaneTrackerUserActions.RESET_ICAO;
364
+ cgi: EUserActions.RESET_ICAO;
365
+ postJsonBody?: any;
181
366
  }>, z.ZodObject<{
182
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_PRIORITY_LIST>;
367
+ type: z.ZodLiteral<"USER_ACTION">;
368
+ cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
183
369
  ip: z.ZodString;
184
370
  params: z.ZodObject<{
185
371
  userId: z.ZodString;
@@ -233,8 +419,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
233
419
  userName: string;
234
420
  userPriority: string;
235
421
  };
422
+ type: "USER_ACTION";
236
423
  ip: string;
237
- cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST;
424
+ cgi: EUserActions.SET_PRIORITY_LIST;
238
425
  postJsonBody: {
239
426
  list: {
240
427
  priority: number;
@@ -249,8 +436,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
249
436
  userName: string;
250
437
  userPriority: string;
251
438
  };
439
+ type: "USER_ACTION";
252
440
  ip: string;
253
- cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST;
441
+ cgi: EUserActions.SET_PRIORITY_LIST;
254
442
  postJsonBody: {
255
443
  list?: {
256
444
  priority: number;
@@ -260,7 +448,8 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
260
448
  }[] | undefined;
261
449
  };
262
450
  }>, z.ZodObject<{
263
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>;
451
+ type: z.ZodLiteral<"USER_ACTION">;
452
+ cgi: z.ZodLiteral<EUserActions.SET_BLACK_LIST>;
264
453
  ip: z.ZodString;
265
454
  params: z.ZodObject<{
266
455
  userId: z.ZodString;
@@ -308,8 +497,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
308
497
  userName: string;
309
498
  userPriority: string;
310
499
  };
500
+ type: "USER_ACTION";
311
501
  ip: string;
312
- cgi: PlaneTrackerUserActions.SET_BLACK_LIST;
502
+ cgi: EUserActions.SET_BLACK_LIST;
313
503
  postJsonBody: {
314
504
  list: {
315
505
  domain: "adsb" | "remoteId";
@@ -323,8 +513,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
323
513
  userName: string;
324
514
  userPriority: string;
325
515
  };
516
+ type: "USER_ACTION";
326
517
  ip: string;
327
- cgi: PlaneTrackerUserActions.SET_BLACK_LIST;
518
+ cgi: EUserActions.SET_BLACK_LIST;
328
519
  postJsonBody: {
329
520
  list?: {
330
521
  domain: "adsb" | "remoteId";
@@ -333,7 +524,8 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
333
524
  }[] | undefined;
334
525
  };
335
526
  }>, z.ZodObject<{
336
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_WHITE_LIST>;
527
+ type: z.ZodLiteral<"USER_ACTION">;
528
+ cgi: z.ZodLiteral<EUserActions.SET_WHITE_LIST>;
337
529
  ip: z.ZodString;
338
530
  params: z.ZodObject<{
339
531
  userId: z.ZodString;
@@ -381,8 +573,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
381
573
  userName: string;
382
574
  userPriority: string;
383
575
  };
576
+ type: "USER_ACTION";
384
577
  ip: string;
385
- cgi: PlaneTrackerUserActions.SET_WHITE_LIST;
578
+ cgi: EUserActions.SET_WHITE_LIST;
386
579
  postJsonBody: {
387
580
  list: {
388
581
  domain: "adsb" | "remoteId";
@@ -396,8 +589,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
396
589
  userName: string;
397
590
  userPriority: string;
398
591
  };
592
+ type: "USER_ACTION";
399
593
  ip: string;
400
- cgi: PlaneTrackerUserActions.SET_WHITE_LIST;
594
+ cgi: EUserActions.SET_WHITE_LIST;
401
595
  postJsonBody: {
402
596
  list?: {
403
597
  domain: "adsb" | "remoteId";
@@ -406,7 +600,8 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
406
600
  }[] | undefined;
407
601
  };
408
602
  }>, z.ZodObject<{
409
- cgi: z.ZodLiteral<PlaneTrackerUserActions.GO_TO_COORDINATES>;
603
+ type: z.ZodLiteral<"USER_ACTION">;
604
+ cgi: z.ZodLiteral<EUserActions.GO_TO_COORDINATES>;
410
605
  ip: z.ZodString;
411
606
  params: z.ZodObject<{
412
607
  userId: z.ZodString;
@@ -428,6 +623,7 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
428
623
  userName: string;
429
624
  userPriority: string;
430
625
  }>;
626
+ postJsonBody: z.ZodAny;
431
627
  }, "strip", z.ZodTypeAny, {
432
628
  params: {
433
629
  lat: string;
@@ -436,8 +632,10 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
436
632
  userName: string;
437
633
  userPriority: string;
438
634
  };
635
+ type: "USER_ACTION";
439
636
  ip: string;
440
- cgi: PlaneTrackerUserActions.GO_TO_COORDINATES;
637
+ cgi: EUserActions.GO_TO_COORDINATES;
638
+ postJsonBody?: any;
441
639
  }, {
442
640
  params: {
443
641
  lat: string;
@@ -446,10 +644,13 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
446
644
  userName: string;
447
645
  userPriority: string;
448
646
  };
647
+ type: "USER_ACTION";
449
648
  ip: string;
450
- cgi: PlaneTrackerUserActions.GO_TO_COORDINATES;
649
+ cgi: EUserActions.GO_TO_COORDINATES;
650
+ postJsonBody?: any;
451
651
  }>, z.ZodObject<{
452
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_TRACKING_MODE>;
652
+ type: z.ZodLiteral<"USER_ACTION">;
653
+ cgi: z.ZodLiteral<EUserActions.SET_TRACKING_MODE>;
453
654
  ip: z.ZodString;
454
655
  params: z.ZodObject<{
455
656
  userId: z.ZodString;
@@ -477,8 +678,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
477
678
  userName: string;
478
679
  userPriority: string;
479
680
  };
681
+ type: "USER_ACTION";
480
682
  ip: string;
481
- cgi: PlaneTrackerUserActions.SET_TRACKING_MODE;
683
+ cgi: EUserActions.SET_TRACKING_MODE;
482
684
  postJsonBody: {
483
685
  mode: "MANUAL" | "AUTOMATIC";
484
686
  };
@@ -488,13 +690,15 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
488
690
  userName: string;
489
691
  userPriority: string;
490
692
  };
693
+ type: "USER_ACTION";
491
694
  ip: string;
492
- cgi: PlaneTrackerUserActions.SET_TRACKING_MODE;
695
+ cgi: EUserActions.SET_TRACKING_MODE;
493
696
  postJsonBody: {
494
697
  mode?: "MANUAL" | "AUTOMATIC" | undefined;
495
698
  };
496
699
  }>, z.ZodObject<{
497
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_ZONES>;
700
+ type: z.ZodLiteral<"USER_ACTION">;
701
+ cgi: z.ZodLiteral<EUserActions.SET_ZONES>;
498
702
  ip: z.ZodString;
499
703
  params: z.ZodObject<{
500
704
  userId: z.ZodString;
@@ -605,8 +809,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
605
809
  userName: string;
606
810
  userPriority: string;
607
811
  };
812
+ type: "USER_ACTION";
608
813
  ip: string;
609
- cgi: PlaneTrackerUserActions.SET_ZONES;
814
+ cgi: EUserActions.SET_ZONES;
610
815
  postJsonBody: {
611
816
  zones: {
612
817
  enabled: boolean;
@@ -632,8 +837,9 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
632
837
  userName: string;
633
838
  userPriority: string;
634
839
  };
840
+ type: "USER_ACTION";
635
841
  ip: string;
636
- cgi: PlaneTrackerUserActions.SET_ZONES;
842
+ cgi: EUserActions.SET_ZONES;
637
843
  postJsonBody: {
638
844
  zones?: {
639
845
  area: [{
@@ -654,7 +860,8 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
654
860
  }[] | undefined;
655
861
  };
656
862
  }>, z.ZodObject<{
657
- cgi: z.ZodLiteral<PlaneTrackerUserActions.RESET_PTZ_CALIBRATION>;
863
+ type: z.ZodLiteral<"USER_ACTION">;
864
+ cgi: z.ZodLiteral<EUserActions.RESET_PTZ_CALIBRATION>;
658
865
  ip: z.ZodString;
659
866
  params: z.ZodObject<{
660
867
  userId: z.ZodString;
@@ -669,24 +876,30 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
669
876
  userName: string;
670
877
  userPriority: string;
671
878
  }>;
879
+ postJsonBody: z.ZodAny;
672
880
  }, "strip", z.ZodTypeAny, {
673
881
  params: {
674
882
  userId: string;
675
883
  userName: string;
676
884
  userPriority: string;
677
885
  };
886
+ type: "USER_ACTION";
678
887
  ip: string;
679
- cgi: PlaneTrackerUserActions.RESET_PTZ_CALIBRATION;
888
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
889
+ postJsonBody?: any;
680
890
  }, {
681
891
  params: {
682
892
  userId: string;
683
893
  userName: string;
684
894
  userPriority: string;
685
895
  };
896
+ type: "USER_ACTION";
686
897
  ip: string;
687
- cgi: PlaneTrackerUserActions.RESET_PTZ_CALIBRATION;
898
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
899
+ postJsonBody?: any;
688
900
  }>, z.ZodObject<{
689
- cgi: z.ZodLiteral<PlaneTrackerUserActions.LOCK_API>;
901
+ type: z.ZodLiteral<"USER_ACTION">;
902
+ cgi: z.ZodLiteral<EUserActions.LOCK_API>;
690
903
  ip: z.ZodString;
691
904
  params: z.ZodObject<{
692
905
  userId: z.ZodString;
@@ -705,6 +918,7 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
705
918
  userName: string;
706
919
  userPriority: string;
707
920
  }>;
921
+ postJsonBody: z.ZodAny;
708
922
  }, "strip", z.ZodTypeAny, {
709
923
  params: {
710
924
  timeout: string;
@@ -712,8 +926,10 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
712
926
  userName: string;
713
927
  userPriority: string;
714
928
  };
929
+ type: "USER_ACTION";
715
930
  ip: string;
716
- cgi: PlaneTrackerUserActions.LOCK_API;
931
+ cgi: EUserActions.LOCK_API;
932
+ postJsonBody?: any;
717
933
  }, {
718
934
  params: {
719
935
  timeout: string;
@@ -721,10 +937,13 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
721
937
  userName: string;
722
938
  userPriority: string;
723
939
  };
940
+ type: "USER_ACTION";
724
941
  ip: string;
725
- cgi: PlaneTrackerUserActions.LOCK_API;
942
+ cgi: EUserActions.LOCK_API;
943
+ postJsonBody?: any;
726
944
  }>, z.ZodObject<{
727
- cgi: z.ZodLiteral<PlaneTrackerUserActions.UNLOCK_API>;
945
+ type: z.ZodLiteral<"USER_ACTION">;
946
+ cgi: z.ZodLiteral<EUserActions.UNLOCK_API>;
728
947
  ip: z.ZodString;
729
948
  params: z.ZodObject<{
730
949
  userId: z.ZodString;
@@ -739,243 +958,54 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
739
958
  userName: string;
740
959
  userPriority: string;
741
960
  }>;
961
+ postJsonBody: z.ZodAny;
742
962
  }, "strip", z.ZodTypeAny, {
743
963
  params: {
744
964
  userId: string;
745
965
  userName: string;
746
966
  userPriority: string;
747
967
  };
968
+ type: "USER_ACTION";
748
969
  ip: string;
749
- cgi: PlaneTrackerUserActions.UNLOCK_API;
970
+ cgi: EUserActions.UNLOCK_API;
971
+ postJsonBody?: any;
750
972
  }, {
751
973
  params: {
752
974
  userId: string;
753
975
  userName: string;
754
976
  userPriority: string;
755
977
  };
978
+ type: "USER_ACTION";
756
979
  ip: string;
757
- cgi: PlaneTrackerUserActions.UNLOCK_API;
758
- }>]>;
759
- declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
760
- type: z.ZodLiteral<"CAMERA_POSITION">;
761
- lat: z.ZodNumber;
762
- lon: z.ZodNumber;
763
- azimuth: z.ZodNumber;
764
- elevation: z.ZodNumber;
765
- fov: z.ZodNumber;
980
+ cgi: EUserActions.UNLOCK_API;
981
+ postJsonBody?: any;
982
+ }>, z.ZodObject<{
983
+ type: z.ZodLiteral<"CONNECTED_USERS">;
984
+ users: z.ZodArray<z.ZodObject<{
985
+ userId: z.ZodString;
986
+ userName: z.ZodString;
987
+ } & {
988
+ ip: z.ZodString;
989
+ userPriority: z.ZodNumber;
990
+ }, "strip", z.ZodTypeAny, {
991
+ ip: string;
992
+ userId: string;
993
+ userName: string;
994
+ userPriority: number;
995
+ }, {
996
+ ip: string;
997
+ userId: string;
998
+ userName: string;
999
+ userPriority: number;
1000
+ }>, "many">;
766
1001
  }, "strip", z.ZodTypeAny, {
767
- type: "CAMERA_POSITION";
768
- lat: number;
769
- lon: number;
770
- azimuth: number;
771
- elevation: number;
772
- fov: number;
773
- }, {
774
- type: "CAMERA_POSITION";
775
- lat: number;
776
- lon: number;
777
- azimuth: number;
778
- elevation: number;
779
- fov: number;
780
- }>, z.ZodObject<{
781
- type: z.ZodLiteral<"TRACKING_START">;
782
- icao: z.ZodString;
783
- }, "strip", z.ZodTypeAny, {
784
- type: "TRACKING_START";
785
- icao: string;
786
- }, {
787
- type: "TRACKING_START";
788
- icao: string;
789
- }>, z.ZodObject<{
790
- type: z.ZodLiteral<"TRACKING_STOP">;
791
- }, "strip", z.ZodTypeAny, {
792
- type: "TRACKING_STOP";
793
- }, {
794
- type: "TRACKING_STOP";
795
- }>, z.ZodObject<{
796
- type: z.ZodLiteral<"FLIGHT_LIST">;
797
- list: z.ZodArray<z.ZodObject<{
798
- icao: z.ZodString;
799
- lat: z.ZodNumber;
800
- lon: z.ZodNumber;
801
- heading: z.ZodNumber;
802
- groundSpeed: z.ZodNumber;
803
- altitudeAMSL: z.ZodNumber;
804
- cameraDistance: z.ZodNumber;
805
- autoTrackingOrder: z.ZodNumber;
806
- whiteListed: z.ZodBoolean;
807
- blackListed: z.ZodBoolean;
808
- priorityListed: z.ZodBoolean;
809
- typePriorityListed: z.ZodDefault<z.ZodBoolean>;
810
- autoSelectionIgnored: z.ZodBoolean;
811
- signalQuality: z.ZodNumber;
812
- emitterCategorySet: z.ZodDefault<z.ZodNumber>;
813
- emitterCategory: z.ZodDefault<z.ZodNumber>;
814
- emergencyState: z.ZodBoolean;
815
- emergencyStatusMessage: z.ZodString;
816
- }, "strip", z.ZodTypeAny, {
817
- icao: string;
818
- lat: number;
819
- lon: number;
820
- heading: number;
821
- groundSpeed: number;
822
- altitudeAMSL: number;
823
- cameraDistance: number;
824
- autoTrackingOrder: number;
825
- whiteListed: boolean;
826
- blackListed: boolean;
827
- priorityListed: boolean;
828
- typePriorityListed: boolean;
829
- autoSelectionIgnored: boolean;
830
- signalQuality: number;
831
- emitterCategorySet: number;
832
- emitterCategory: number;
833
- emergencyState: boolean;
834
- emergencyStatusMessage: string;
835
- }, {
836
- icao: string;
837
- lat: number;
838
- lon: number;
839
- heading: number;
840
- groundSpeed: number;
841
- altitudeAMSL: number;
842
- cameraDistance: number;
843
- autoTrackingOrder: number;
844
- whiteListed: boolean;
845
- blackListed: boolean;
846
- priorityListed: boolean;
847
- autoSelectionIgnored: boolean;
848
- signalQuality: number;
849
- emergencyState: boolean;
850
- emergencyStatusMessage: string;
851
- typePriorityListed?: boolean | undefined;
852
- emitterCategorySet?: number | undefined;
853
- emitterCategory?: number | undefined;
854
- }>, "many">;
855
- }, "strip", z.ZodTypeAny, {
856
- type: "FLIGHT_LIST";
857
- list: {
858
- icao: string;
859
- lat: number;
860
- lon: number;
861
- heading: number;
862
- groundSpeed: number;
863
- altitudeAMSL: number;
864
- cameraDistance: number;
865
- autoTrackingOrder: number;
866
- whiteListed: boolean;
867
- blackListed: boolean;
868
- priorityListed: boolean;
869
- typePriorityListed: boolean;
870
- autoSelectionIgnored: boolean;
871
- signalQuality: number;
872
- emitterCategorySet: number;
873
- emitterCategory: number;
874
- emergencyState: boolean;
875
- emergencyStatusMessage: string;
876
- }[];
877
- }, {
878
- type: "FLIGHT_LIST";
879
- list: {
880
- icao: string;
881
- lat: number;
882
- lon: number;
883
- heading: number;
884
- groundSpeed: number;
885
- altitudeAMSL: number;
886
- cameraDistance: number;
887
- autoTrackingOrder: number;
888
- whiteListed: boolean;
889
- blackListed: boolean;
890
- priorityListed: boolean;
891
- autoSelectionIgnored: boolean;
892
- signalQuality: number;
893
- emergencyState: boolean;
894
- emergencyStatusMessage: string;
895
- typePriorityListed?: boolean | undefined;
896
- emitterCategorySet?: number | undefined;
897
- emitterCategory?: number | undefined;
898
- }[];
899
- }>, z.ZodObject<{
900
- type: z.ZodLiteral<"USER_ACTION">;
901
- ip: z.ZodString;
902
- params: z.ZodObject<{
903
- userId: z.ZodString;
904
- userName: z.ZodString;
905
- userPriority: z.ZodString;
906
- } & {
907
- lat: z.ZodOptional<z.ZodString>;
908
- lon: z.ZodOptional<z.ZodString>;
909
- timeout: z.ZodOptional<z.ZodString>;
910
- }, "strip", z.ZodTypeAny, {
911
- userId: string;
912
- userName: string;
913
- userPriority: string;
914
- timeout?: string | undefined;
915
- lat?: string | undefined;
916
- lon?: string | undefined;
917
- }, {
918
- userId: string;
919
- userName: string;
920
- userPriority: string;
921
- timeout?: string | undefined;
922
- lat?: string | undefined;
923
- lon?: string | undefined;
924
- }>;
925
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
926
- postJsonBody: z.ZodAny;
927
- }, "strip", z.ZodTypeAny, {
928
- params: {
929
- userId: string;
930
- userName: string;
931
- userPriority: string;
932
- timeout?: string | undefined;
933
- lat?: string | undefined;
934
- lon?: string | undefined;
935
- };
936
- type: "USER_ACTION";
937
- ip: string;
938
- cgi: PlaneTrackerUserActions;
939
- postJsonBody?: any;
940
- }, {
941
- params: {
942
- userId: string;
943
- userName: string;
944
- userPriority: string;
945
- timeout?: string | undefined;
946
- lat?: string | undefined;
947
- lon?: string | undefined;
948
- };
949
- type: "USER_ACTION";
950
- ip: string;
951
- cgi: PlaneTrackerUserActions;
952
- postJsonBody?: any;
953
- }>, z.ZodObject<{
954
- type: z.ZodLiteral<"CONNECTED_USERS">;
955
- users: z.ZodArray<z.ZodObject<{
956
- userId: z.ZodString;
957
- userName: z.ZodString;
958
- userPriority: z.ZodNumber;
959
- ip: z.ZodString;
960
- }, "strip", z.ZodTypeAny, {
961
- ip: string;
962
- userId: string;
963
- userName: string;
964
- userPriority: number;
965
- }, {
966
- ip: string;
967
- userId: string;
968
- userName: string;
969
- userPriority: number;
970
- }>, "many">;
971
- }, "strip", z.ZodTypeAny, {
972
- type: "CONNECTED_USERS";
973
- users: {
974
- ip: string;
975
- userId: string;
976
- userName: string;
977
- userPriority: number;
978
- }[];
1002
+ type: "CONNECTED_USERS";
1003
+ users: {
1004
+ ip: string;
1005
+ userId: string;
1006
+ userName: string;
1007
+ userPriority: number;
1008
+ }[];
979
1009
  }, {
980
1010
  type: "CONNECTED_USERS";
981
1011
  users: {
@@ -988,22 +1018,26 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
988
1018
  type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
989
1019
  enabled: z.ZodBoolean;
990
1020
  icao: z.ZodOptional<z.ZodString>;
1021
+ targetId: z.ZodOptional<z.ZodString>;
991
1022
  }, "strip", z.ZodTypeAny, {
992
1023
  type: "FORCE_TRACKING_STATUS";
993
1024
  enabled: boolean;
994
1025
  icao?: string | undefined;
1026
+ targetId?: string | undefined;
995
1027
  }, {
996
1028
  type: "FORCE_TRACKING_STATUS";
997
1029
  enabled: boolean;
998
1030
  icao?: string | undefined;
1031
+ targetId?: string | undefined;
999
1032
  }>, z.ZodObject<{
1000
1033
  type: z.ZodLiteral<"API_LOCK_STATUS">;
1001
1034
  isLocked: z.ZodBoolean;
1002
1035
  user: z.ZodOptional<z.ZodObject<{
1003
1036
  userId: z.ZodString;
1004
1037
  userName: z.ZodString;
1005
- userPriority: z.ZodNumber;
1038
+ } & {
1006
1039
  ip: z.ZodString;
1040
+ userPriority: z.ZodNumber;
1007
1041
  }, "strip", z.ZodTypeAny, {
1008
1042
  ip: string;
1009
1043
  userId: string;
@@ -1034,10 +1068,11 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1034
1068
  userPriority: number;
1035
1069
  } | undefined;
1036
1070
  }>]>;
1037
- export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1071
+ export declare const ptrEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1038
1072
  type: z.ZodLiteral<"init">;
1039
- data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1073
+ data: z.ZodUnion<readonly [z.ZodObject<{
1040
1074
  type: z.ZodLiteral<"CAMERA_POSITION">;
1075
+ } & {
1041
1076
  lat: z.ZodNumber;
1042
1077
  lon: z.ZodNumber;
1043
1078
  azimuth: z.ZodNumber;
@@ -1060,12 +1095,21 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1060
1095
  }>, z.ZodObject<{
1061
1096
  type: z.ZodLiteral<"TRACKING_START">;
1062
1097
  icao: z.ZodString;
1098
+ targetId: z.ZodString;
1099
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
1100
+ categoryId: z.ZodString;
1063
1101
  }, "strip", z.ZodTypeAny, {
1064
1102
  type: "TRACKING_START";
1065
1103
  icao: string;
1104
+ targetId: string;
1105
+ domain: "adsb" | "remoteId";
1106
+ categoryId: string;
1066
1107
  }, {
1067
1108
  type: "TRACKING_START";
1068
1109
  icao: string;
1110
+ targetId: string;
1111
+ domain: "adsb" | "remoteId";
1112
+ categoryId: string;
1069
1113
  }>, z.ZodObject<{
1070
1114
  type: z.ZodLiteral<"TRACKING_STOP">;
1071
1115
  }, "strip", z.ZodTypeAny, {
@@ -1075,7 +1119,11 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1075
1119
  }>, z.ZodObject<{
1076
1120
  type: z.ZodLiteral<"FLIGHT_LIST">;
1077
1121
  list: z.ZodArray<z.ZodObject<{
1122
+ targetId: z.ZodString;
1078
1123
  icao: z.ZodString;
1124
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
1125
+ categoryId: z.ZodString;
1126
+ groupId: z.ZodOptional<z.ZodString>;
1079
1127
  lat: z.ZodNumber;
1080
1128
  lon: z.ZodNumber;
1081
1129
  heading: z.ZodNumber;
@@ -1086,7 +1134,6 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1086
1134
  whiteListed: z.ZodBoolean;
1087
1135
  blackListed: z.ZodBoolean;
1088
1136
  priorityListed: z.ZodBoolean;
1089
- typePriorityListed: z.ZodDefault<z.ZodBoolean>;
1090
1137
  autoSelectionIgnored: z.ZodBoolean;
1091
1138
  signalQuality: z.ZodNumber;
1092
1139
  emitterCategorySet: z.ZodDefault<z.ZodNumber>;
@@ -1095,8 +1142,11 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1095
1142
  emergencyStatusMessage: z.ZodString;
1096
1143
  }, "strip", z.ZodTypeAny, {
1097
1144
  icao: string;
1145
+ targetId: string;
1146
+ domain: "adsb" | "remoteId";
1098
1147
  lat: number;
1099
1148
  lon: number;
1149
+ categoryId: string;
1100
1150
  heading: number;
1101
1151
  groundSpeed: number;
1102
1152
  altitudeAMSL: number;
@@ -1105,17 +1155,20 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1105
1155
  whiteListed: boolean;
1106
1156
  blackListed: boolean;
1107
1157
  priorityListed: boolean;
1108
- typePriorityListed: boolean;
1109
1158
  autoSelectionIgnored: boolean;
1110
1159
  signalQuality: number;
1111
1160
  emitterCategorySet: number;
1112
1161
  emitterCategory: number;
1113
1162
  emergencyState: boolean;
1114
1163
  emergencyStatusMessage: string;
1164
+ groupId?: string | undefined;
1115
1165
  }, {
1116
1166
  icao: string;
1167
+ targetId: string;
1168
+ domain: "adsb" | "remoteId";
1117
1169
  lat: number;
1118
1170
  lon: number;
1171
+ categoryId: string;
1119
1172
  heading: number;
1120
1173
  groundSpeed: number;
1121
1174
  altitudeAMSL: number;
@@ -1128,7 +1181,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1128
1181
  signalQuality: number;
1129
1182
  emergencyState: boolean;
1130
1183
  emergencyStatusMessage: string;
1131
- typePriorityListed?: boolean | undefined;
1184
+ groupId?: string | undefined;
1132
1185
  emitterCategorySet?: number | undefined;
1133
1186
  emitterCategory?: number | undefined;
1134
1187
  }>, "many">;
@@ -1136,8 +1189,11 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1136
1189
  type: "FLIGHT_LIST";
1137
1190
  list: {
1138
1191
  icao: string;
1192
+ targetId: string;
1193
+ domain: "adsb" | "remoteId";
1139
1194
  lat: number;
1140
1195
  lon: number;
1196
+ categoryId: string;
1141
1197
  heading: number;
1142
1198
  groundSpeed: number;
1143
1199
  altitudeAMSL: number;
@@ -1146,20 +1202,23 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1146
1202
  whiteListed: boolean;
1147
1203
  blackListed: boolean;
1148
1204
  priorityListed: boolean;
1149
- typePriorityListed: boolean;
1150
1205
  autoSelectionIgnored: boolean;
1151
1206
  signalQuality: number;
1152
1207
  emitterCategorySet: number;
1153
1208
  emitterCategory: number;
1154
1209
  emergencyState: boolean;
1155
1210
  emergencyStatusMessage: string;
1211
+ groupId?: string | undefined;
1156
1212
  }[];
1157
1213
  }, {
1158
1214
  type: "FLIGHT_LIST";
1159
1215
  list: {
1160
1216
  icao: string;
1217
+ targetId: string;
1218
+ domain: "adsb" | "remoteId";
1161
1219
  lat: number;
1162
1220
  lon: number;
1221
+ categoryId: string;
1163
1222
  heading: number;
1164
1223
  groundSpeed: number;
1165
1224
  altitudeAMSL: number;
@@ -1172,491 +1231,2104 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1172
1231
  signalQuality: number;
1173
1232
  emergencyState: boolean;
1174
1233
  emergencyStatusMessage: string;
1175
- typePriorityListed?: boolean | undefined;
1234
+ groupId?: string | undefined;
1176
1235
  emitterCategorySet?: number | undefined;
1177
1236
  emitterCategory?: number | undefined;
1178
1237
  }[];
1179
1238
  }>, z.ZodObject<{
1180
1239
  type: z.ZodLiteral<"USER_ACTION">;
1240
+ cgi: z.ZodLiteral<EUserActions.TRACK_ICAO>;
1181
1241
  ip: z.ZodString;
1182
1242
  params: z.ZodObject<{
1183
1243
  userId: z.ZodString;
1184
1244
  userName: z.ZodString;
1185
1245
  userPriority: z.ZodString;
1186
1246
  } & {
1187
- lat: z.ZodOptional<z.ZodString>;
1188
- lon: z.ZodOptional<z.ZodString>;
1189
- timeout: z.ZodOptional<z.ZodString>;
1247
+ icao: z.ZodString;
1190
1248
  }, "strip", z.ZodTypeAny, {
1249
+ icao: string;
1191
1250
  userId: string;
1192
1251
  userName: string;
1193
1252
  userPriority: string;
1194
- timeout?: string | undefined;
1195
- lat?: string | undefined;
1196
- lon?: string | undefined;
1197
1253
  }, {
1254
+ icao: string;
1198
1255
  userId: string;
1199
1256
  userName: string;
1200
1257
  userPriority: string;
1201
- timeout?: string | undefined;
1202
- lat?: string | undefined;
1203
- lon?: string | undefined;
1204
1258
  }>;
1205
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
1206
1259
  postJsonBody: z.ZodAny;
1207
1260
  }, "strip", z.ZodTypeAny, {
1208
1261
  params: {
1262
+ icao: string;
1209
1263
  userId: string;
1210
1264
  userName: string;
1211
1265
  userPriority: string;
1212
- timeout?: string | undefined;
1213
- lat?: string | undefined;
1214
- lon?: string | undefined;
1215
1266
  };
1216
1267
  type: "USER_ACTION";
1217
1268
  ip: string;
1218
- cgi: PlaneTrackerUserActions;
1269
+ cgi: EUserActions.TRACK_ICAO;
1219
1270
  postJsonBody?: any;
1220
1271
  }, {
1221
1272
  params: {
1273
+ icao: string;
1222
1274
  userId: string;
1223
1275
  userName: string;
1224
1276
  userPriority: string;
1225
- timeout?: string | undefined;
1226
- lat?: string | undefined;
1227
- lon?: string | undefined;
1228
1277
  };
1229
1278
  type: "USER_ACTION";
1230
1279
  ip: string;
1231
- cgi: PlaneTrackerUserActions;
1280
+ cgi: EUserActions.TRACK_ICAO;
1232
1281
  postJsonBody?: any;
1233
1282
  }>, z.ZodObject<{
1234
- type: z.ZodLiteral<"CONNECTED_USERS">;
1235
- users: z.ZodArray<z.ZodObject<{
1283
+ type: z.ZodLiteral<"USER_ACTION">;
1284
+ cgi: z.ZodLiteral<EUserActions.RESET_ICAO>;
1285
+ ip: z.ZodString;
1286
+ params: z.ZodObject<{
1236
1287
  userId: z.ZodString;
1237
1288
  userName: z.ZodString;
1238
- userPriority: z.ZodNumber;
1239
- ip: z.ZodString;
1289
+ userPriority: z.ZodString;
1240
1290
  }, "strip", z.ZodTypeAny, {
1241
- ip: string;
1242
1291
  userId: string;
1243
1292
  userName: string;
1244
- userPriority: number;
1293
+ userPriority: string;
1245
1294
  }, {
1246
- ip: string;
1247
1295
  userId: string;
1248
1296
  userName: string;
1249
- userPriority: number;
1250
- }>, "many">;
1297
+ userPriority: string;
1298
+ }>;
1299
+ postJsonBody: z.ZodAny;
1251
1300
  }, "strip", z.ZodTypeAny, {
1252
- type: "CONNECTED_USERS";
1253
- users: {
1254
- ip: string;
1301
+ params: {
1255
1302
  userId: string;
1256
1303
  userName: string;
1257
- userPriority: number;
1258
- }[];
1304
+ userPriority: string;
1305
+ };
1306
+ type: "USER_ACTION";
1307
+ ip: string;
1308
+ cgi: EUserActions.RESET_ICAO;
1309
+ postJsonBody?: any;
1259
1310
  }, {
1260
- type: "CONNECTED_USERS";
1261
- users: {
1262
- ip: string;
1311
+ params: {
1263
1312
  userId: string;
1264
1313
  userName: string;
1265
- userPriority: number;
1266
- }[];
1267
- }>, z.ZodObject<{
1268
- type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
1269
- enabled: z.ZodBoolean;
1270
- icao: z.ZodOptional<z.ZodString>;
1271
- }, "strip", z.ZodTypeAny, {
1272
- type: "FORCE_TRACKING_STATUS";
1273
- enabled: boolean;
1274
- icao?: string | undefined;
1275
- }, {
1276
- type: "FORCE_TRACKING_STATUS";
1277
- enabled: boolean;
1278
- icao?: string | undefined;
1314
+ userPriority: string;
1315
+ };
1316
+ type: "USER_ACTION";
1317
+ ip: string;
1318
+ cgi: EUserActions.RESET_ICAO;
1319
+ postJsonBody?: any;
1279
1320
  }>, z.ZodObject<{
1280
- type: z.ZodLiteral<"API_LOCK_STATUS">;
1281
- isLocked: z.ZodBoolean;
1282
- user: z.ZodOptional<z.ZodObject<{
1321
+ type: z.ZodLiteral<"USER_ACTION">;
1322
+ cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
1323
+ ip: z.ZodString;
1324
+ params: z.ZodObject<{
1283
1325
  userId: z.ZodString;
1284
1326
  userName: z.ZodString;
1285
- userPriority: z.ZodNumber;
1286
- ip: z.ZodString;
1327
+ userPriority: z.ZodString;
1287
1328
  }, "strip", z.ZodTypeAny, {
1288
- ip: string;
1289
1329
  userId: string;
1290
1330
  userName: string;
1291
- userPriority: number;
1331
+ userPriority: string;
1292
1332
  }, {
1293
- ip: string;
1294
1333
  userId: string;
1295
1334
  userName: string;
1296
- userPriority: number;
1297
- }>>;
1335
+ userPriority: string;
1336
+ }>;
1337
+ postJsonBody: z.ZodObject<{
1338
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
1339
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
1340
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
1341
+ idValue: z.ZodString;
1342
+ } & {
1343
+ priority: z.ZodNumber;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ priority: number;
1346
+ domain: "adsb" | "remoteId";
1347
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1348
+ idValue: string;
1349
+ }, {
1350
+ priority: number;
1351
+ domain: "adsb" | "remoteId";
1352
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1353
+ idValue: string;
1354
+ }>, "many">>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ list: {
1357
+ priority: number;
1358
+ domain: "adsb" | "remoteId";
1359
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1360
+ idValue: string;
1361
+ }[];
1362
+ }, {
1363
+ list?: {
1364
+ priority: number;
1365
+ domain: "adsb" | "remoteId";
1366
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1367
+ idValue: string;
1368
+ }[] | undefined;
1369
+ }>;
1298
1370
  }, "strip", z.ZodTypeAny, {
1299
- type: "API_LOCK_STATUS";
1300
- isLocked: boolean;
1301
- user?: {
1302
- ip: string;
1371
+ params: {
1303
1372
  userId: string;
1304
1373
  userName: string;
1305
- userPriority: number;
1306
- } | undefined;
1374
+ userPriority: string;
1375
+ };
1376
+ type: "USER_ACTION";
1377
+ ip: string;
1378
+ cgi: EUserActions.SET_PRIORITY_LIST;
1379
+ postJsonBody: {
1380
+ list: {
1381
+ priority: number;
1382
+ domain: "adsb" | "remoteId";
1383
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1384
+ idValue: string;
1385
+ }[];
1386
+ };
1307
1387
  }, {
1308
- type: "API_LOCK_STATUS";
1309
- isLocked: boolean;
1310
- user?: {
1311
- ip: string;
1388
+ params: {
1312
1389
  userId: string;
1313
1390
  userName: string;
1314
- userPriority: number;
1315
- } | undefined;
1316
- }>]>;
1317
- }, "strip", z.ZodTypeAny, {
1318
- type: "init";
1319
- data: {
1320
- type: "CAMERA_POSITION";
1321
- lat: number;
1322
- lon: number;
1323
- azimuth: number;
1324
- elevation: number;
1325
- fov: number;
1326
- } | {
1327
- type: "TRACKING_START";
1328
- icao: string;
1329
- } | {
1330
- type: "TRACKING_STOP";
1331
- } | {
1332
- type: "FLIGHT_LIST";
1333
- list: {
1334
- icao: string;
1335
- lat: number;
1336
- lon: number;
1337
- heading: number;
1338
- groundSpeed: number;
1339
- altitudeAMSL: number;
1340
- cameraDistance: number;
1341
- autoTrackingOrder: number;
1342
- whiteListed: boolean;
1343
- blackListed: boolean;
1344
- priorityListed: boolean;
1345
- typePriorityListed: boolean;
1346
- autoSelectionIgnored: boolean;
1347
- signalQuality: number;
1348
- emitterCategorySet: number;
1349
- emitterCategory: number;
1350
- emergencyState: boolean;
1351
- emergencyStatusMessage: string;
1352
- }[];
1353
- } | {
1391
+ userPriority: string;
1392
+ };
1393
+ type: "USER_ACTION";
1394
+ ip: string;
1395
+ cgi: EUserActions.SET_PRIORITY_LIST;
1396
+ postJsonBody: {
1397
+ list?: {
1398
+ priority: number;
1399
+ domain: "adsb" | "remoteId";
1400
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1401
+ idValue: string;
1402
+ }[] | undefined;
1403
+ };
1404
+ }>, z.ZodObject<{
1405
+ type: z.ZodLiteral<"USER_ACTION">;
1406
+ cgi: z.ZodLiteral<EUserActions.SET_BLACK_LIST>;
1407
+ ip: z.ZodString;
1408
+ params: z.ZodObject<{
1409
+ userId: z.ZodString;
1410
+ userName: z.ZodString;
1411
+ userPriority: z.ZodString;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ userId: string;
1414
+ userName: string;
1415
+ userPriority: string;
1416
+ }, {
1417
+ userId: string;
1418
+ userName: string;
1419
+ userPriority: string;
1420
+ }>;
1421
+ postJsonBody: z.ZodObject<{
1422
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
1423
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
1424
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
1425
+ idValue: z.ZodString;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ domain: "adsb" | "remoteId";
1428
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1429
+ idValue: string;
1430
+ }, {
1431
+ domain: "adsb" | "remoteId";
1432
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1433
+ idValue: string;
1434
+ }>, "many">>;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ list: {
1437
+ domain: "adsb" | "remoteId";
1438
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1439
+ idValue: string;
1440
+ }[];
1441
+ }, {
1442
+ list?: {
1443
+ domain: "adsb" | "remoteId";
1444
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1445
+ idValue: string;
1446
+ }[] | undefined;
1447
+ }>;
1448
+ }, "strip", z.ZodTypeAny, {
1354
1449
  params: {
1355
1450
  userId: string;
1356
1451
  userName: string;
1357
1452
  userPriority: string;
1358
- timeout?: string | undefined;
1359
- lat?: string | undefined;
1360
- lon?: string | undefined;
1361
1453
  };
1362
1454
  type: "USER_ACTION";
1363
1455
  ip: string;
1364
- cgi: PlaneTrackerUserActions;
1365
- postJsonBody?: any;
1366
- } | {
1367
- type: "CONNECTED_USERS";
1368
- users: {
1369
- ip: string;
1456
+ cgi: EUserActions.SET_BLACK_LIST;
1457
+ postJsonBody: {
1458
+ list: {
1459
+ domain: "adsb" | "remoteId";
1460
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1461
+ idValue: string;
1462
+ }[];
1463
+ };
1464
+ }, {
1465
+ params: {
1370
1466
  userId: string;
1371
1467
  userName: string;
1372
- userPriority: number;
1373
- }[];
1374
- } | {
1375
- type: "FORCE_TRACKING_STATUS";
1376
- enabled: boolean;
1377
- icao?: string | undefined;
1378
- } | {
1379
- type: "API_LOCK_STATUS";
1380
- isLocked: boolean;
1381
- user?: {
1382
- ip: string;
1468
+ userPriority: string;
1469
+ };
1470
+ type: "USER_ACTION";
1471
+ ip: string;
1472
+ cgi: EUserActions.SET_BLACK_LIST;
1473
+ postJsonBody: {
1474
+ list?: {
1475
+ domain: "adsb" | "remoteId";
1476
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1477
+ idValue: string;
1478
+ }[] | undefined;
1479
+ };
1480
+ }>, z.ZodObject<{
1481
+ type: z.ZodLiteral<"USER_ACTION">;
1482
+ cgi: z.ZodLiteral<EUserActions.SET_WHITE_LIST>;
1483
+ ip: z.ZodString;
1484
+ params: z.ZodObject<{
1485
+ userId: z.ZodString;
1486
+ userName: z.ZodString;
1487
+ userPriority: z.ZodString;
1488
+ }, "strip", z.ZodTypeAny, {
1383
1489
  userId: string;
1384
1490
  userName: string;
1385
- userPriority: number;
1386
- } | undefined;
1387
- };
1388
- }, {
1389
- type: "init";
1390
- data: {
1391
- type: "CAMERA_POSITION";
1392
- lat: number;
1393
- lon: number;
1394
- azimuth: number;
1395
- elevation: number;
1396
- fov: number;
1397
- } | {
1398
- type: "TRACKING_START";
1399
- icao: string;
1400
- } | {
1401
- type: "TRACKING_STOP";
1402
- } | {
1403
- type: "FLIGHT_LIST";
1404
- list: {
1405
- icao: string;
1406
- lat: number;
1407
- lon: number;
1408
- heading: number;
1409
- groundSpeed: number;
1410
- altitudeAMSL: number;
1411
- cameraDistance: number;
1412
- autoTrackingOrder: number;
1413
- whiteListed: boolean;
1414
- blackListed: boolean;
1415
- priorityListed: boolean;
1416
- autoSelectionIgnored: boolean;
1417
- signalQuality: number;
1418
- emergencyState: boolean;
1419
- emergencyStatusMessage: string;
1420
- typePriorityListed?: boolean | undefined;
1421
- emitterCategorySet?: number | undefined;
1422
- emitterCategory?: number | undefined;
1423
- }[];
1424
- } | {
1491
+ userPriority: string;
1492
+ }, {
1493
+ userId: string;
1494
+ userName: string;
1495
+ userPriority: string;
1496
+ }>;
1497
+ postJsonBody: z.ZodObject<{
1498
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
1499
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
1500
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
1501
+ idValue: z.ZodString;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ domain: "adsb" | "remoteId";
1504
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1505
+ idValue: string;
1506
+ }, {
1507
+ domain: "adsb" | "remoteId";
1508
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1509
+ idValue: string;
1510
+ }>, "many">>;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ list: {
1513
+ domain: "adsb" | "remoteId";
1514
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1515
+ idValue: string;
1516
+ }[];
1517
+ }, {
1518
+ list?: {
1519
+ domain: "adsb" | "remoteId";
1520
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1521
+ idValue: string;
1522
+ }[] | undefined;
1523
+ }>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ params: {
1526
+ userId: string;
1527
+ userName: string;
1528
+ userPriority: string;
1529
+ };
1530
+ type: "USER_ACTION";
1531
+ ip: string;
1532
+ cgi: EUserActions.SET_WHITE_LIST;
1533
+ postJsonBody: {
1534
+ list: {
1535
+ domain: "adsb" | "remoteId";
1536
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1537
+ idValue: string;
1538
+ }[];
1539
+ };
1540
+ }, {
1541
+ params: {
1542
+ userId: string;
1543
+ userName: string;
1544
+ userPriority: string;
1545
+ };
1546
+ type: "USER_ACTION";
1547
+ ip: string;
1548
+ cgi: EUserActions.SET_WHITE_LIST;
1549
+ postJsonBody: {
1550
+ list?: {
1551
+ domain: "adsb" | "remoteId";
1552
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
1553
+ idValue: string;
1554
+ }[] | undefined;
1555
+ };
1556
+ }>, z.ZodObject<{
1557
+ type: z.ZodLiteral<"USER_ACTION">;
1558
+ cgi: z.ZodLiteral<EUserActions.GO_TO_COORDINATES>;
1559
+ ip: z.ZodString;
1560
+ params: z.ZodObject<{
1561
+ userId: z.ZodString;
1562
+ userName: z.ZodString;
1563
+ userPriority: z.ZodString;
1564
+ } & {
1565
+ lat: z.ZodString;
1566
+ lon: z.ZodString;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ lat: string;
1569
+ lon: string;
1570
+ userId: string;
1571
+ userName: string;
1572
+ userPriority: string;
1573
+ }, {
1574
+ lat: string;
1575
+ lon: string;
1576
+ userId: string;
1577
+ userName: string;
1578
+ userPriority: string;
1579
+ }>;
1580
+ postJsonBody: z.ZodAny;
1581
+ }, "strip", z.ZodTypeAny, {
1425
1582
  params: {
1583
+ lat: string;
1584
+ lon: string;
1426
1585
  userId: string;
1427
1586
  userName: string;
1428
1587
  userPriority: string;
1429
- timeout?: string | undefined;
1430
- lat?: string | undefined;
1431
- lon?: string | undefined;
1432
1588
  };
1433
1589
  type: "USER_ACTION";
1434
1590
  ip: string;
1435
- cgi: PlaneTrackerUserActions;
1591
+ cgi: EUserActions.GO_TO_COORDINATES;
1436
1592
  postJsonBody?: any;
1437
- } | {
1438
- type: "CONNECTED_USERS";
1439
- users: {
1440
- ip: string;
1593
+ }, {
1594
+ params: {
1595
+ lat: string;
1596
+ lon: string;
1441
1597
  userId: string;
1442
1598
  userName: string;
1443
- userPriority: number;
1599
+ userPriority: string;
1600
+ };
1601
+ type: "USER_ACTION";
1602
+ ip: string;
1603
+ cgi: EUserActions.GO_TO_COORDINATES;
1604
+ postJsonBody?: any;
1605
+ }>, z.ZodObject<{
1606
+ type: z.ZodLiteral<"USER_ACTION">;
1607
+ cgi: z.ZodLiteral<EUserActions.SET_TRACKING_MODE>;
1608
+ ip: z.ZodString;
1609
+ params: z.ZodObject<{
1610
+ userId: z.ZodString;
1611
+ userName: z.ZodString;
1612
+ userPriority: z.ZodString;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ userId: string;
1615
+ userName: string;
1616
+ userPriority: string;
1617
+ }, {
1618
+ userId: string;
1619
+ userName: string;
1620
+ userPriority: string;
1621
+ }>;
1622
+ postJsonBody: z.ZodObject<{
1623
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ mode: "MANUAL" | "AUTOMATIC";
1626
+ }, {
1627
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
1628
+ }>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ params: {
1631
+ userId: string;
1632
+ userName: string;
1633
+ userPriority: string;
1634
+ };
1635
+ type: "USER_ACTION";
1636
+ ip: string;
1637
+ cgi: EUserActions.SET_TRACKING_MODE;
1638
+ postJsonBody: {
1639
+ mode: "MANUAL" | "AUTOMATIC";
1640
+ };
1641
+ }, {
1642
+ params: {
1643
+ userId: string;
1644
+ userName: string;
1645
+ userPriority: string;
1646
+ };
1647
+ type: "USER_ACTION";
1648
+ ip: string;
1649
+ cgi: EUserActions.SET_TRACKING_MODE;
1650
+ postJsonBody: {
1651
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
1652
+ };
1653
+ }>, z.ZodObject<{
1654
+ type: z.ZodLiteral<"USER_ACTION">;
1655
+ cgi: z.ZodLiteral<EUserActions.SET_ZONES>;
1656
+ ip: z.ZodString;
1657
+ params: z.ZodObject<{
1658
+ userId: z.ZodString;
1659
+ userName: z.ZodString;
1660
+ userPriority: z.ZodString;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ userId: string;
1663
+ userName: string;
1664
+ userPriority: string;
1665
+ }, {
1666
+ userId: string;
1667
+ userName: string;
1668
+ userPriority: string;
1669
+ }>;
1670
+ postJsonBody: z.ZodObject<{
1671
+ zones: z.ZodDefault<z.ZodArray<z.ZodObject<{
1672
+ enabled: z.ZodDefault<z.ZodBoolean>;
1673
+ name: z.ZodOptional<z.ZodString>;
1674
+ area: z.ZodArray<z.ZodObject<{
1675
+ lat: z.ZodNumber;
1676
+ lon: z.ZodNumber;
1677
+ }, "strip", z.ZodTypeAny, {
1678
+ lat: number;
1679
+ lon: number;
1680
+ }, {
1681
+ lat: number;
1682
+ lon: number;
1683
+ }>, "atleastone">;
1684
+ minAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
1685
+ maxAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
1686
+ minSpeedKmph: z.ZodOptional<z.ZodNumber>;
1687
+ maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
1688
+ flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
1689
+ weight: z.ZodNumber;
1690
+ }, "strip", z.ZodTypeAny, {
1691
+ enabled: boolean;
1692
+ area: [{
1693
+ lat: number;
1694
+ lon: number;
1695
+ }, ...{
1696
+ lat: number;
1697
+ lon: number;
1698
+ }[]];
1699
+ flightDirection: "all" | "arrival" | "departure";
1700
+ weight: number;
1701
+ name?: string | undefined;
1702
+ minAltitudeAmsl?: number | undefined;
1703
+ maxAltitudeAmsl?: number | undefined;
1704
+ minSpeedKmph?: number | undefined;
1705
+ maxSpeedKmph?: number | undefined;
1706
+ }, {
1707
+ area: [{
1708
+ lat: number;
1709
+ lon: number;
1710
+ }, ...{
1711
+ lat: number;
1712
+ lon: number;
1713
+ }[]];
1714
+ weight: number;
1715
+ name?: string | undefined;
1716
+ enabled?: boolean | undefined;
1717
+ minAltitudeAmsl?: number | undefined;
1718
+ maxAltitudeAmsl?: number | undefined;
1719
+ minSpeedKmph?: number | undefined;
1720
+ maxSpeedKmph?: number | undefined;
1721
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
1722
+ }>, "many">>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ zones: {
1725
+ enabled: boolean;
1726
+ area: [{
1727
+ lat: number;
1728
+ lon: number;
1729
+ }, ...{
1730
+ lat: number;
1731
+ lon: number;
1732
+ }[]];
1733
+ flightDirection: "all" | "arrival" | "departure";
1734
+ weight: number;
1735
+ name?: string | undefined;
1736
+ minAltitudeAmsl?: number | undefined;
1737
+ maxAltitudeAmsl?: number | undefined;
1738
+ minSpeedKmph?: number | undefined;
1739
+ maxSpeedKmph?: number | undefined;
1740
+ }[];
1741
+ }, {
1742
+ zones?: {
1743
+ area: [{
1744
+ lat: number;
1745
+ lon: number;
1746
+ }, ...{
1747
+ lat: number;
1748
+ lon: number;
1749
+ }[]];
1750
+ weight: number;
1751
+ name?: string | undefined;
1752
+ enabled?: boolean | undefined;
1753
+ minAltitudeAmsl?: number | undefined;
1754
+ maxAltitudeAmsl?: number | undefined;
1755
+ minSpeedKmph?: number | undefined;
1756
+ maxSpeedKmph?: number | undefined;
1757
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
1758
+ }[] | undefined;
1759
+ }>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ params: {
1762
+ userId: string;
1763
+ userName: string;
1764
+ userPriority: string;
1765
+ };
1766
+ type: "USER_ACTION";
1767
+ ip: string;
1768
+ cgi: EUserActions.SET_ZONES;
1769
+ postJsonBody: {
1770
+ zones: {
1771
+ enabled: boolean;
1772
+ area: [{
1773
+ lat: number;
1774
+ lon: number;
1775
+ }, ...{
1776
+ lat: number;
1777
+ lon: number;
1778
+ }[]];
1779
+ flightDirection: "all" | "arrival" | "departure";
1780
+ weight: number;
1781
+ name?: string | undefined;
1782
+ minAltitudeAmsl?: number | undefined;
1783
+ maxAltitudeAmsl?: number | undefined;
1784
+ minSpeedKmph?: number | undefined;
1785
+ maxSpeedKmph?: number | undefined;
1786
+ }[];
1787
+ };
1788
+ }, {
1789
+ params: {
1790
+ userId: string;
1791
+ userName: string;
1792
+ userPriority: string;
1793
+ };
1794
+ type: "USER_ACTION";
1795
+ ip: string;
1796
+ cgi: EUserActions.SET_ZONES;
1797
+ postJsonBody: {
1798
+ zones?: {
1799
+ area: [{
1800
+ lat: number;
1801
+ lon: number;
1802
+ }, ...{
1803
+ lat: number;
1804
+ lon: number;
1805
+ }[]];
1806
+ weight: number;
1807
+ name?: string | undefined;
1808
+ enabled?: boolean | undefined;
1809
+ minAltitudeAmsl?: number | undefined;
1810
+ maxAltitudeAmsl?: number | undefined;
1811
+ minSpeedKmph?: number | undefined;
1812
+ maxSpeedKmph?: number | undefined;
1813
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
1814
+ }[] | undefined;
1815
+ };
1816
+ }>, z.ZodObject<{
1817
+ type: z.ZodLiteral<"USER_ACTION">;
1818
+ cgi: z.ZodLiteral<EUserActions.RESET_PTZ_CALIBRATION>;
1819
+ ip: z.ZodString;
1820
+ params: z.ZodObject<{
1821
+ userId: z.ZodString;
1822
+ userName: z.ZodString;
1823
+ userPriority: z.ZodString;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ userId: string;
1826
+ userName: string;
1827
+ userPriority: string;
1828
+ }, {
1829
+ userId: string;
1830
+ userName: string;
1831
+ userPriority: string;
1832
+ }>;
1833
+ postJsonBody: z.ZodAny;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ params: {
1836
+ userId: string;
1837
+ userName: string;
1838
+ userPriority: string;
1839
+ };
1840
+ type: "USER_ACTION";
1841
+ ip: string;
1842
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
1843
+ postJsonBody?: any;
1844
+ }, {
1845
+ params: {
1846
+ userId: string;
1847
+ userName: string;
1848
+ userPriority: string;
1849
+ };
1850
+ type: "USER_ACTION";
1851
+ ip: string;
1852
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
1853
+ postJsonBody?: any;
1854
+ }>, z.ZodObject<{
1855
+ type: z.ZodLiteral<"USER_ACTION">;
1856
+ cgi: z.ZodLiteral<EUserActions.LOCK_API>;
1857
+ ip: z.ZodString;
1858
+ params: z.ZodObject<{
1859
+ userId: z.ZodString;
1860
+ userName: z.ZodString;
1861
+ userPriority: z.ZodString;
1862
+ } & {
1863
+ timeout: z.ZodString;
1864
+ }, "strip", z.ZodTypeAny, {
1865
+ timeout: string;
1866
+ userId: string;
1867
+ userName: string;
1868
+ userPriority: string;
1869
+ }, {
1870
+ timeout: string;
1871
+ userId: string;
1872
+ userName: string;
1873
+ userPriority: string;
1874
+ }>;
1875
+ postJsonBody: z.ZodAny;
1876
+ }, "strip", z.ZodTypeAny, {
1877
+ params: {
1878
+ timeout: string;
1879
+ userId: string;
1880
+ userName: string;
1881
+ userPriority: string;
1882
+ };
1883
+ type: "USER_ACTION";
1884
+ ip: string;
1885
+ cgi: EUserActions.LOCK_API;
1886
+ postJsonBody?: any;
1887
+ }, {
1888
+ params: {
1889
+ timeout: string;
1890
+ userId: string;
1891
+ userName: string;
1892
+ userPriority: string;
1893
+ };
1894
+ type: "USER_ACTION";
1895
+ ip: string;
1896
+ cgi: EUserActions.LOCK_API;
1897
+ postJsonBody?: any;
1898
+ }>, z.ZodObject<{
1899
+ type: z.ZodLiteral<"USER_ACTION">;
1900
+ cgi: z.ZodLiteral<EUserActions.UNLOCK_API>;
1901
+ ip: z.ZodString;
1902
+ params: z.ZodObject<{
1903
+ userId: z.ZodString;
1904
+ userName: z.ZodString;
1905
+ userPriority: z.ZodString;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ userId: string;
1908
+ userName: string;
1909
+ userPriority: string;
1910
+ }, {
1911
+ userId: string;
1912
+ userName: string;
1913
+ userPriority: string;
1914
+ }>;
1915
+ postJsonBody: z.ZodAny;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ params: {
1918
+ userId: string;
1919
+ userName: string;
1920
+ userPriority: string;
1921
+ };
1922
+ type: "USER_ACTION";
1923
+ ip: string;
1924
+ cgi: EUserActions.UNLOCK_API;
1925
+ postJsonBody?: any;
1926
+ }, {
1927
+ params: {
1928
+ userId: string;
1929
+ userName: string;
1930
+ userPriority: string;
1931
+ };
1932
+ type: "USER_ACTION";
1933
+ ip: string;
1934
+ cgi: EUserActions.UNLOCK_API;
1935
+ postJsonBody?: any;
1936
+ }>, z.ZodObject<{
1937
+ type: z.ZodLiteral<"CONNECTED_USERS">;
1938
+ users: z.ZodArray<z.ZodObject<{
1939
+ userId: z.ZodString;
1940
+ userName: z.ZodString;
1941
+ } & {
1942
+ ip: z.ZodString;
1943
+ userPriority: z.ZodNumber;
1944
+ }, "strip", z.ZodTypeAny, {
1945
+ ip: string;
1946
+ userId: string;
1947
+ userName: string;
1948
+ userPriority: number;
1949
+ }, {
1950
+ ip: string;
1951
+ userId: string;
1952
+ userName: string;
1953
+ userPriority: number;
1954
+ }>, "many">;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ type: "CONNECTED_USERS";
1957
+ users: {
1958
+ ip: string;
1959
+ userId: string;
1960
+ userName: string;
1961
+ userPriority: number;
1962
+ }[];
1963
+ }, {
1964
+ type: "CONNECTED_USERS";
1965
+ users: {
1966
+ ip: string;
1967
+ userId: string;
1968
+ userName: string;
1969
+ userPriority: number;
1970
+ }[];
1971
+ }>, z.ZodObject<{
1972
+ type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
1973
+ enabled: z.ZodBoolean;
1974
+ icao: z.ZodOptional<z.ZodString>;
1975
+ targetId: z.ZodOptional<z.ZodString>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ type: "FORCE_TRACKING_STATUS";
1978
+ enabled: boolean;
1979
+ icao?: string | undefined;
1980
+ targetId?: string | undefined;
1981
+ }, {
1982
+ type: "FORCE_TRACKING_STATUS";
1983
+ enabled: boolean;
1984
+ icao?: string | undefined;
1985
+ targetId?: string | undefined;
1986
+ }>, z.ZodObject<{
1987
+ type: z.ZodLiteral<"API_LOCK_STATUS">;
1988
+ isLocked: z.ZodBoolean;
1989
+ user: z.ZodOptional<z.ZodObject<{
1990
+ userId: z.ZodString;
1991
+ userName: z.ZodString;
1992
+ } & {
1993
+ ip: z.ZodString;
1994
+ userPriority: z.ZodNumber;
1995
+ }, "strip", z.ZodTypeAny, {
1996
+ ip: string;
1997
+ userId: string;
1998
+ userName: string;
1999
+ userPriority: number;
2000
+ }, {
2001
+ ip: string;
2002
+ userId: string;
2003
+ userName: string;
2004
+ userPriority: number;
2005
+ }>>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ type: "API_LOCK_STATUS";
2008
+ isLocked: boolean;
2009
+ user?: {
2010
+ ip: string;
2011
+ userId: string;
2012
+ userName: string;
2013
+ userPriority: number;
2014
+ } | undefined;
2015
+ }, {
2016
+ type: "API_LOCK_STATUS";
2017
+ isLocked: boolean;
2018
+ user?: {
2019
+ ip: string;
2020
+ userId: string;
2021
+ userName: string;
2022
+ userPriority: number;
2023
+ } | undefined;
2024
+ }>]>;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ type: "init";
2027
+ data: {
2028
+ type: "CAMERA_POSITION";
2029
+ lat: number;
2030
+ lon: number;
2031
+ azimuth: number;
2032
+ elevation: number;
2033
+ fov: number;
2034
+ } | {
2035
+ type: "TRACKING_START";
2036
+ icao: string;
2037
+ targetId: string;
2038
+ domain: "adsb" | "remoteId";
2039
+ categoryId: string;
2040
+ } | {
2041
+ type: "TRACKING_STOP";
2042
+ } | {
2043
+ type: "FLIGHT_LIST";
2044
+ list: {
2045
+ icao: string;
2046
+ targetId: string;
2047
+ domain: "adsb" | "remoteId";
2048
+ lat: number;
2049
+ lon: number;
2050
+ categoryId: string;
2051
+ heading: number;
2052
+ groundSpeed: number;
2053
+ altitudeAMSL: number;
2054
+ cameraDistance: number;
2055
+ autoTrackingOrder: number;
2056
+ whiteListed: boolean;
2057
+ blackListed: boolean;
2058
+ priorityListed: boolean;
2059
+ autoSelectionIgnored: boolean;
2060
+ signalQuality: number;
2061
+ emitterCategorySet: number;
2062
+ emitterCategory: number;
2063
+ emergencyState: boolean;
2064
+ emergencyStatusMessage: string;
2065
+ groupId?: string | undefined;
2066
+ }[];
2067
+ } | {
2068
+ params: {
2069
+ icao: string;
2070
+ userId: string;
2071
+ userName: string;
2072
+ userPriority: string;
2073
+ };
2074
+ type: "USER_ACTION";
2075
+ ip: string;
2076
+ cgi: EUserActions.TRACK_ICAO;
2077
+ postJsonBody?: any;
2078
+ } | {
2079
+ params: {
2080
+ userId: string;
2081
+ userName: string;
2082
+ userPriority: string;
2083
+ };
2084
+ type: "USER_ACTION";
2085
+ ip: string;
2086
+ cgi: EUserActions.RESET_ICAO;
2087
+ postJsonBody?: any;
2088
+ } | {
2089
+ params: {
2090
+ userId: string;
2091
+ userName: string;
2092
+ userPriority: string;
2093
+ };
2094
+ type: "USER_ACTION";
2095
+ ip: string;
2096
+ cgi: EUserActions.SET_PRIORITY_LIST;
2097
+ postJsonBody: {
2098
+ list: {
2099
+ priority: number;
2100
+ domain: "adsb" | "remoteId";
2101
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2102
+ idValue: string;
2103
+ }[];
2104
+ };
2105
+ } | {
2106
+ params: {
2107
+ userId: string;
2108
+ userName: string;
2109
+ userPriority: string;
2110
+ };
2111
+ type: "USER_ACTION";
2112
+ ip: string;
2113
+ cgi: EUserActions.SET_BLACK_LIST;
2114
+ postJsonBody: {
2115
+ list: {
2116
+ domain: "adsb" | "remoteId";
2117
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2118
+ idValue: string;
2119
+ }[];
2120
+ };
2121
+ } | {
2122
+ params: {
2123
+ userId: string;
2124
+ userName: string;
2125
+ userPriority: string;
2126
+ };
2127
+ type: "USER_ACTION";
2128
+ ip: string;
2129
+ cgi: EUserActions.SET_WHITE_LIST;
2130
+ postJsonBody: {
2131
+ list: {
2132
+ domain: "adsb" | "remoteId";
2133
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2134
+ idValue: string;
2135
+ }[];
2136
+ };
2137
+ } | {
2138
+ params: {
2139
+ lat: string;
2140
+ lon: string;
2141
+ userId: string;
2142
+ userName: string;
2143
+ userPriority: string;
2144
+ };
2145
+ type: "USER_ACTION";
2146
+ ip: string;
2147
+ cgi: EUserActions.GO_TO_COORDINATES;
2148
+ postJsonBody?: any;
2149
+ } | {
2150
+ params: {
2151
+ userId: string;
2152
+ userName: string;
2153
+ userPriority: string;
2154
+ };
2155
+ type: "USER_ACTION";
2156
+ ip: string;
2157
+ cgi: EUserActions.SET_TRACKING_MODE;
2158
+ postJsonBody: {
2159
+ mode: "MANUAL" | "AUTOMATIC";
2160
+ };
2161
+ } | {
2162
+ params: {
2163
+ userId: string;
2164
+ userName: string;
2165
+ userPriority: string;
2166
+ };
2167
+ type: "USER_ACTION";
2168
+ ip: string;
2169
+ cgi: EUserActions.SET_ZONES;
2170
+ postJsonBody: {
2171
+ zones: {
2172
+ enabled: boolean;
2173
+ area: [{
2174
+ lat: number;
2175
+ lon: number;
2176
+ }, ...{
2177
+ lat: number;
2178
+ lon: number;
2179
+ }[]];
2180
+ flightDirection: "all" | "arrival" | "departure";
2181
+ weight: number;
2182
+ name?: string | undefined;
2183
+ minAltitudeAmsl?: number | undefined;
2184
+ maxAltitudeAmsl?: number | undefined;
2185
+ minSpeedKmph?: number | undefined;
2186
+ maxSpeedKmph?: number | undefined;
2187
+ }[];
2188
+ };
2189
+ } | {
2190
+ params: {
2191
+ userId: string;
2192
+ userName: string;
2193
+ userPriority: string;
2194
+ };
2195
+ type: "USER_ACTION";
2196
+ ip: string;
2197
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
2198
+ postJsonBody?: any;
2199
+ } | {
2200
+ params: {
2201
+ timeout: string;
2202
+ userId: string;
2203
+ userName: string;
2204
+ userPriority: string;
2205
+ };
2206
+ type: "USER_ACTION";
2207
+ ip: string;
2208
+ cgi: EUserActions.LOCK_API;
2209
+ postJsonBody?: any;
2210
+ } | {
2211
+ params: {
2212
+ userId: string;
2213
+ userName: string;
2214
+ userPriority: string;
2215
+ };
2216
+ type: "USER_ACTION";
2217
+ ip: string;
2218
+ cgi: EUserActions.UNLOCK_API;
2219
+ postJsonBody?: any;
2220
+ } | {
2221
+ type: "CONNECTED_USERS";
2222
+ users: {
2223
+ ip: string;
2224
+ userId: string;
2225
+ userName: string;
2226
+ userPriority: number;
2227
+ }[];
2228
+ } | {
2229
+ type: "FORCE_TRACKING_STATUS";
2230
+ enabled: boolean;
2231
+ icao?: string | undefined;
2232
+ targetId?: string | undefined;
2233
+ } | {
2234
+ type: "API_LOCK_STATUS";
2235
+ isLocked: boolean;
2236
+ user?: {
2237
+ ip: string;
2238
+ userId: string;
2239
+ userName: string;
2240
+ userPriority: number;
2241
+ } | undefined;
2242
+ };
2243
+ }, {
2244
+ type: "init";
2245
+ data: {
2246
+ type: "CAMERA_POSITION";
2247
+ lat: number;
2248
+ lon: number;
2249
+ azimuth: number;
2250
+ elevation: number;
2251
+ fov: number;
2252
+ } | {
2253
+ type: "TRACKING_START";
2254
+ icao: string;
2255
+ targetId: string;
2256
+ domain: "adsb" | "remoteId";
2257
+ categoryId: string;
2258
+ } | {
2259
+ type: "TRACKING_STOP";
2260
+ } | {
2261
+ type: "FLIGHT_LIST";
2262
+ list: {
2263
+ icao: string;
2264
+ targetId: string;
2265
+ domain: "adsb" | "remoteId";
2266
+ lat: number;
2267
+ lon: number;
2268
+ categoryId: string;
2269
+ heading: number;
2270
+ groundSpeed: number;
2271
+ altitudeAMSL: number;
2272
+ cameraDistance: number;
2273
+ autoTrackingOrder: number;
2274
+ whiteListed: boolean;
2275
+ blackListed: boolean;
2276
+ priorityListed: boolean;
2277
+ autoSelectionIgnored: boolean;
2278
+ signalQuality: number;
2279
+ emergencyState: boolean;
2280
+ emergencyStatusMessage: string;
2281
+ groupId?: string | undefined;
2282
+ emitterCategorySet?: number | undefined;
2283
+ emitterCategory?: number | undefined;
2284
+ }[];
2285
+ } | {
2286
+ params: {
2287
+ icao: string;
2288
+ userId: string;
2289
+ userName: string;
2290
+ userPriority: string;
2291
+ };
2292
+ type: "USER_ACTION";
2293
+ ip: string;
2294
+ cgi: EUserActions.TRACK_ICAO;
2295
+ postJsonBody?: any;
2296
+ } | {
2297
+ params: {
2298
+ userId: string;
2299
+ userName: string;
2300
+ userPriority: string;
2301
+ };
2302
+ type: "USER_ACTION";
2303
+ ip: string;
2304
+ cgi: EUserActions.RESET_ICAO;
2305
+ postJsonBody?: any;
2306
+ } | {
2307
+ params: {
2308
+ userId: string;
2309
+ userName: string;
2310
+ userPriority: string;
2311
+ };
2312
+ type: "USER_ACTION";
2313
+ ip: string;
2314
+ cgi: EUserActions.SET_PRIORITY_LIST;
2315
+ postJsonBody: {
2316
+ list?: {
2317
+ priority: number;
2318
+ domain: "adsb" | "remoteId";
2319
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2320
+ idValue: string;
2321
+ }[] | undefined;
2322
+ };
2323
+ } | {
2324
+ params: {
2325
+ userId: string;
2326
+ userName: string;
2327
+ userPriority: string;
2328
+ };
2329
+ type: "USER_ACTION";
2330
+ ip: string;
2331
+ cgi: EUserActions.SET_BLACK_LIST;
2332
+ postJsonBody: {
2333
+ list?: {
2334
+ domain: "adsb" | "remoteId";
2335
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2336
+ idValue: string;
2337
+ }[] | undefined;
2338
+ };
2339
+ } | {
2340
+ params: {
2341
+ userId: string;
2342
+ userName: string;
2343
+ userPriority: string;
2344
+ };
2345
+ type: "USER_ACTION";
2346
+ ip: string;
2347
+ cgi: EUserActions.SET_WHITE_LIST;
2348
+ postJsonBody: {
2349
+ list?: {
2350
+ domain: "adsb" | "remoteId";
2351
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2352
+ idValue: string;
2353
+ }[] | undefined;
2354
+ };
2355
+ } | {
2356
+ params: {
2357
+ lat: string;
2358
+ lon: string;
2359
+ userId: string;
2360
+ userName: string;
2361
+ userPriority: string;
2362
+ };
2363
+ type: "USER_ACTION";
2364
+ ip: string;
2365
+ cgi: EUserActions.GO_TO_COORDINATES;
2366
+ postJsonBody?: any;
2367
+ } | {
2368
+ params: {
2369
+ userId: string;
2370
+ userName: string;
2371
+ userPriority: string;
2372
+ };
2373
+ type: "USER_ACTION";
2374
+ ip: string;
2375
+ cgi: EUserActions.SET_TRACKING_MODE;
2376
+ postJsonBody: {
2377
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
2378
+ };
2379
+ } | {
2380
+ params: {
2381
+ userId: string;
2382
+ userName: string;
2383
+ userPriority: string;
2384
+ };
2385
+ type: "USER_ACTION";
2386
+ ip: string;
2387
+ cgi: EUserActions.SET_ZONES;
2388
+ postJsonBody: {
2389
+ zones?: {
2390
+ area: [{
2391
+ lat: number;
2392
+ lon: number;
2393
+ }, ...{
2394
+ lat: number;
2395
+ lon: number;
2396
+ }[]];
2397
+ weight: number;
2398
+ name?: string | undefined;
2399
+ enabled?: boolean | undefined;
2400
+ minAltitudeAmsl?: number | undefined;
2401
+ maxAltitudeAmsl?: number | undefined;
2402
+ minSpeedKmph?: number | undefined;
2403
+ maxSpeedKmph?: number | undefined;
2404
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
2405
+ }[] | undefined;
2406
+ };
2407
+ } | {
2408
+ params: {
2409
+ userId: string;
2410
+ userName: string;
2411
+ userPriority: string;
2412
+ };
2413
+ type: "USER_ACTION";
2414
+ ip: string;
2415
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
2416
+ postJsonBody?: any;
2417
+ } | {
2418
+ params: {
2419
+ timeout: string;
2420
+ userId: string;
2421
+ userName: string;
2422
+ userPriority: string;
2423
+ };
2424
+ type: "USER_ACTION";
2425
+ ip: string;
2426
+ cgi: EUserActions.LOCK_API;
2427
+ postJsonBody?: any;
2428
+ } | {
2429
+ params: {
2430
+ userId: string;
2431
+ userName: string;
2432
+ userPriority: string;
2433
+ };
2434
+ type: "USER_ACTION";
2435
+ ip: string;
2436
+ cgi: EUserActions.UNLOCK_API;
2437
+ postJsonBody?: any;
2438
+ } | {
2439
+ type: "CONNECTED_USERS";
2440
+ users: {
2441
+ ip: string;
2442
+ userId: string;
2443
+ userName: string;
2444
+ userPriority: number;
2445
+ }[];
2446
+ } | {
2447
+ type: "FORCE_TRACKING_STATUS";
2448
+ enabled: boolean;
2449
+ icao?: string | undefined;
2450
+ targetId?: string | undefined;
2451
+ } | {
2452
+ type: "API_LOCK_STATUS";
2453
+ isLocked: boolean;
2454
+ user?: {
2455
+ ip: string;
2456
+ userId: string;
2457
+ userName: string;
2458
+ userPriority: number;
2459
+ } | undefined;
2460
+ };
2461
+ }>, z.ZodObject<{
2462
+ type: z.ZodLiteral<"CAMERA_POSITION">;
2463
+ } & {
2464
+ lat: z.ZodNumber;
2465
+ lon: z.ZodNumber;
2466
+ azimuth: z.ZodNumber;
2467
+ elevation: z.ZodNumber;
2468
+ fov: z.ZodNumber;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ type: "CAMERA_POSITION";
2471
+ lat: number;
2472
+ lon: number;
2473
+ azimuth: number;
2474
+ elevation: number;
2475
+ fov: number;
2476
+ }, {
2477
+ type: "CAMERA_POSITION";
2478
+ lat: number;
2479
+ lon: number;
2480
+ azimuth: number;
2481
+ elevation: number;
2482
+ fov: number;
2483
+ }>, z.ZodObject<{
2484
+ type: z.ZodLiteral<"TRACKING_START">;
2485
+ icao: z.ZodString;
2486
+ targetId: z.ZodString;
2487
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
2488
+ categoryId: z.ZodString;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ type: "TRACKING_START";
2491
+ icao: string;
2492
+ targetId: string;
2493
+ domain: "adsb" | "remoteId";
2494
+ categoryId: string;
2495
+ }, {
2496
+ type: "TRACKING_START";
2497
+ icao: string;
2498
+ targetId: string;
2499
+ domain: "adsb" | "remoteId";
2500
+ categoryId: string;
2501
+ }>, z.ZodObject<{
2502
+ type: z.ZodLiteral<"TRACKING_STOP">;
2503
+ }, "strip", z.ZodTypeAny, {
2504
+ type: "TRACKING_STOP";
2505
+ }, {
2506
+ type: "TRACKING_STOP";
2507
+ }>, z.ZodObject<{
2508
+ type: z.ZodLiteral<"FLIGHT_LIST">;
2509
+ list: z.ZodArray<z.ZodObject<{
2510
+ targetId: z.ZodString;
2511
+ icao: z.ZodString;
2512
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
2513
+ categoryId: z.ZodString;
2514
+ groupId: z.ZodOptional<z.ZodString>;
2515
+ lat: z.ZodNumber;
2516
+ lon: z.ZodNumber;
2517
+ heading: z.ZodNumber;
2518
+ groundSpeed: z.ZodNumber;
2519
+ altitudeAMSL: z.ZodNumber;
2520
+ cameraDistance: z.ZodNumber;
2521
+ autoTrackingOrder: z.ZodNumber;
2522
+ whiteListed: z.ZodBoolean;
2523
+ blackListed: z.ZodBoolean;
2524
+ priorityListed: z.ZodBoolean;
2525
+ autoSelectionIgnored: z.ZodBoolean;
2526
+ signalQuality: z.ZodNumber;
2527
+ emitterCategorySet: z.ZodDefault<z.ZodNumber>;
2528
+ emitterCategory: z.ZodDefault<z.ZodNumber>;
2529
+ emergencyState: z.ZodBoolean;
2530
+ emergencyStatusMessage: z.ZodString;
2531
+ }, "strip", z.ZodTypeAny, {
2532
+ icao: string;
2533
+ targetId: string;
2534
+ domain: "adsb" | "remoteId";
2535
+ lat: number;
2536
+ lon: number;
2537
+ categoryId: string;
2538
+ heading: number;
2539
+ groundSpeed: number;
2540
+ altitudeAMSL: number;
2541
+ cameraDistance: number;
2542
+ autoTrackingOrder: number;
2543
+ whiteListed: boolean;
2544
+ blackListed: boolean;
2545
+ priorityListed: boolean;
2546
+ autoSelectionIgnored: boolean;
2547
+ signalQuality: number;
2548
+ emitterCategorySet: number;
2549
+ emitterCategory: number;
2550
+ emergencyState: boolean;
2551
+ emergencyStatusMessage: string;
2552
+ groupId?: string | undefined;
2553
+ }, {
2554
+ icao: string;
2555
+ targetId: string;
2556
+ domain: "adsb" | "remoteId";
2557
+ lat: number;
2558
+ lon: number;
2559
+ categoryId: string;
2560
+ heading: number;
2561
+ groundSpeed: number;
2562
+ altitudeAMSL: number;
2563
+ cameraDistance: number;
2564
+ autoTrackingOrder: number;
2565
+ whiteListed: boolean;
2566
+ blackListed: boolean;
2567
+ priorityListed: boolean;
2568
+ autoSelectionIgnored: boolean;
2569
+ signalQuality: number;
2570
+ emergencyState: boolean;
2571
+ emergencyStatusMessage: string;
2572
+ groupId?: string | undefined;
2573
+ emitterCategorySet?: number | undefined;
2574
+ emitterCategory?: number | undefined;
2575
+ }>, "many">;
2576
+ }, "strip", z.ZodTypeAny, {
2577
+ type: "FLIGHT_LIST";
2578
+ list: {
2579
+ icao: string;
2580
+ targetId: string;
2581
+ domain: "adsb" | "remoteId";
2582
+ lat: number;
2583
+ lon: number;
2584
+ categoryId: string;
2585
+ heading: number;
2586
+ groundSpeed: number;
2587
+ altitudeAMSL: number;
2588
+ cameraDistance: number;
2589
+ autoTrackingOrder: number;
2590
+ whiteListed: boolean;
2591
+ blackListed: boolean;
2592
+ priorityListed: boolean;
2593
+ autoSelectionIgnored: boolean;
2594
+ signalQuality: number;
2595
+ emitterCategorySet: number;
2596
+ emitterCategory: number;
2597
+ emergencyState: boolean;
2598
+ emergencyStatusMessage: string;
2599
+ groupId?: string | undefined;
2600
+ }[];
2601
+ }, {
2602
+ type: "FLIGHT_LIST";
2603
+ list: {
2604
+ icao: string;
2605
+ targetId: string;
2606
+ domain: "adsb" | "remoteId";
2607
+ lat: number;
2608
+ lon: number;
2609
+ categoryId: string;
2610
+ heading: number;
2611
+ groundSpeed: number;
2612
+ altitudeAMSL: number;
2613
+ cameraDistance: number;
2614
+ autoTrackingOrder: number;
2615
+ whiteListed: boolean;
2616
+ blackListed: boolean;
2617
+ priorityListed: boolean;
2618
+ autoSelectionIgnored: boolean;
2619
+ signalQuality: number;
2620
+ emergencyState: boolean;
2621
+ emergencyStatusMessage: string;
2622
+ groupId?: string | undefined;
2623
+ emitterCategorySet?: number | undefined;
2624
+ emitterCategory?: number | undefined;
2625
+ }[];
2626
+ }>, z.ZodObject<{
2627
+ type: z.ZodLiteral<"USER_ACTION">;
2628
+ cgi: z.ZodLiteral<EUserActions.TRACK_ICAO>;
2629
+ ip: z.ZodString;
2630
+ params: z.ZodObject<{
2631
+ userId: z.ZodString;
2632
+ userName: z.ZodString;
2633
+ userPriority: z.ZodString;
2634
+ } & {
2635
+ icao: z.ZodString;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ icao: string;
2638
+ userId: string;
2639
+ userName: string;
2640
+ userPriority: string;
2641
+ }, {
2642
+ icao: string;
2643
+ userId: string;
2644
+ userName: string;
2645
+ userPriority: string;
2646
+ }>;
2647
+ postJsonBody: z.ZodAny;
2648
+ }, "strip", z.ZodTypeAny, {
2649
+ params: {
2650
+ icao: string;
2651
+ userId: string;
2652
+ userName: string;
2653
+ userPriority: string;
2654
+ };
2655
+ type: "USER_ACTION";
2656
+ ip: string;
2657
+ cgi: EUserActions.TRACK_ICAO;
2658
+ postJsonBody?: any;
2659
+ }, {
2660
+ params: {
2661
+ icao: string;
2662
+ userId: string;
2663
+ userName: string;
2664
+ userPriority: string;
2665
+ };
2666
+ type: "USER_ACTION";
2667
+ ip: string;
2668
+ cgi: EUserActions.TRACK_ICAO;
2669
+ postJsonBody?: any;
2670
+ }>, z.ZodObject<{
2671
+ type: z.ZodLiteral<"USER_ACTION">;
2672
+ cgi: z.ZodLiteral<EUserActions.RESET_ICAO>;
2673
+ ip: z.ZodString;
2674
+ params: z.ZodObject<{
2675
+ userId: z.ZodString;
2676
+ userName: z.ZodString;
2677
+ userPriority: z.ZodString;
2678
+ }, "strip", z.ZodTypeAny, {
2679
+ userId: string;
2680
+ userName: string;
2681
+ userPriority: string;
2682
+ }, {
2683
+ userId: string;
2684
+ userName: string;
2685
+ userPriority: string;
2686
+ }>;
2687
+ postJsonBody: z.ZodAny;
2688
+ }, "strip", z.ZodTypeAny, {
2689
+ params: {
2690
+ userId: string;
2691
+ userName: string;
2692
+ userPriority: string;
2693
+ };
2694
+ type: "USER_ACTION";
2695
+ ip: string;
2696
+ cgi: EUserActions.RESET_ICAO;
2697
+ postJsonBody?: any;
2698
+ }, {
2699
+ params: {
2700
+ userId: string;
2701
+ userName: string;
2702
+ userPriority: string;
2703
+ };
2704
+ type: "USER_ACTION";
2705
+ ip: string;
2706
+ cgi: EUserActions.RESET_ICAO;
2707
+ postJsonBody?: any;
2708
+ }>, z.ZodObject<{
2709
+ type: z.ZodLiteral<"USER_ACTION">;
2710
+ cgi: z.ZodLiteral<EUserActions.SET_PRIORITY_LIST>;
2711
+ ip: z.ZodString;
2712
+ params: z.ZodObject<{
2713
+ userId: z.ZodString;
2714
+ userName: z.ZodString;
2715
+ userPriority: z.ZodString;
2716
+ }, "strip", z.ZodTypeAny, {
2717
+ userId: string;
2718
+ userName: string;
2719
+ userPriority: string;
2720
+ }, {
2721
+ userId: string;
2722
+ userName: string;
2723
+ userPriority: string;
2724
+ }>;
2725
+ postJsonBody: z.ZodObject<{
2726
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
2727
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
2728
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
2729
+ idValue: z.ZodString;
2730
+ } & {
2731
+ priority: z.ZodNumber;
2732
+ }, "strip", z.ZodTypeAny, {
2733
+ priority: number;
2734
+ domain: "adsb" | "remoteId";
2735
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2736
+ idValue: string;
2737
+ }, {
2738
+ priority: number;
2739
+ domain: "adsb" | "remoteId";
2740
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2741
+ idValue: string;
2742
+ }>, "many">>;
2743
+ }, "strip", z.ZodTypeAny, {
2744
+ list: {
2745
+ priority: number;
2746
+ domain: "adsb" | "remoteId";
2747
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2748
+ idValue: string;
2749
+ }[];
2750
+ }, {
2751
+ list?: {
2752
+ priority: number;
2753
+ domain: "adsb" | "remoteId";
2754
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2755
+ idValue: string;
2756
+ }[] | undefined;
2757
+ }>;
2758
+ }, "strip", z.ZodTypeAny, {
2759
+ params: {
2760
+ userId: string;
2761
+ userName: string;
2762
+ userPriority: string;
2763
+ };
2764
+ type: "USER_ACTION";
2765
+ ip: string;
2766
+ cgi: EUserActions.SET_PRIORITY_LIST;
2767
+ postJsonBody: {
2768
+ list: {
2769
+ priority: number;
2770
+ domain: "adsb" | "remoteId";
2771
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2772
+ idValue: string;
2773
+ }[];
2774
+ };
2775
+ }, {
2776
+ params: {
2777
+ userId: string;
2778
+ userName: string;
2779
+ userPriority: string;
2780
+ };
2781
+ type: "USER_ACTION";
2782
+ ip: string;
2783
+ cgi: EUserActions.SET_PRIORITY_LIST;
2784
+ postJsonBody: {
2785
+ list?: {
2786
+ priority: number;
2787
+ domain: "adsb" | "remoteId";
2788
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2789
+ idValue: string;
2790
+ }[] | undefined;
2791
+ };
2792
+ }>, z.ZodObject<{
2793
+ type: z.ZodLiteral<"USER_ACTION">;
2794
+ cgi: z.ZodLiteral<EUserActions.SET_BLACK_LIST>;
2795
+ ip: z.ZodString;
2796
+ params: z.ZodObject<{
2797
+ userId: z.ZodString;
2798
+ userName: z.ZodString;
2799
+ userPriority: z.ZodString;
2800
+ }, "strip", z.ZodTypeAny, {
2801
+ userId: string;
2802
+ userName: string;
2803
+ userPriority: string;
2804
+ }, {
2805
+ userId: string;
2806
+ userName: string;
2807
+ userPriority: string;
2808
+ }>;
2809
+ postJsonBody: z.ZodObject<{
2810
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
2811
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
2812
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
2813
+ idValue: z.ZodString;
2814
+ }, "strip", z.ZodTypeAny, {
2815
+ domain: "adsb" | "remoteId";
2816
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2817
+ idValue: string;
2818
+ }, {
2819
+ domain: "adsb" | "remoteId";
2820
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2821
+ idValue: string;
2822
+ }>, "many">>;
2823
+ }, "strip", z.ZodTypeAny, {
2824
+ list: {
2825
+ domain: "adsb" | "remoteId";
2826
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2827
+ idValue: string;
2828
+ }[];
2829
+ }, {
2830
+ list?: {
2831
+ domain: "adsb" | "remoteId";
2832
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2833
+ idValue: string;
2834
+ }[] | undefined;
2835
+ }>;
2836
+ }, "strip", z.ZodTypeAny, {
2837
+ params: {
2838
+ userId: string;
2839
+ userName: string;
2840
+ userPriority: string;
2841
+ };
2842
+ type: "USER_ACTION";
2843
+ ip: string;
2844
+ cgi: EUserActions.SET_BLACK_LIST;
2845
+ postJsonBody: {
2846
+ list: {
2847
+ domain: "adsb" | "remoteId";
2848
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2849
+ idValue: string;
2850
+ }[];
2851
+ };
2852
+ }, {
2853
+ params: {
2854
+ userId: string;
2855
+ userName: string;
2856
+ userPriority: string;
2857
+ };
2858
+ type: "USER_ACTION";
2859
+ ip: string;
2860
+ cgi: EUserActions.SET_BLACK_LIST;
2861
+ postJsonBody: {
2862
+ list?: {
2863
+ domain: "adsb" | "remoteId";
2864
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2865
+ idValue: string;
2866
+ }[] | undefined;
2867
+ };
2868
+ }>, z.ZodObject<{
2869
+ type: z.ZodLiteral<"USER_ACTION">;
2870
+ cgi: z.ZodLiteral<EUserActions.SET_WHITE_LIST>;
2871
+ ip: z.ZodString;
2872
+ params: z.ZodObject<{
2873
+ userId: z.ZodString;
2874
+ userName: z.ZodString;
2875
+ userPriority: z.ZodString;
2876
+ }, "strip", z.ZodTypeAny, {
2877
+ userId: string;
2878
+ userName: string;
2879
+ userPriority: string;
2880
+ }, {
2881
+ userId: string;
2882
+ userName: string;
2883
+ userPriority: string;
2884
+ }>;
2885
+ postJsonBody: z.ZodObject<{
2886
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
2887
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
2888
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
2889
+ idValue: z.ZodString;
2890
+ }, "strip", z.ZodTypeAny, {
2891
+ domain: "adsb" | "remoteId";
2892
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2893
+ idValue: string;
2894
+ }, {
2895
+ domain: "adsb" | "remoteId";
2896
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2897
+ idValue: string;
2898
+ }>, "many">>;
2899
+ }, "strip", z.ZodTypeAny, {
2900
+ list: {
2901
+ domain: "adsb" | "remoteId";
2902
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2903
+ idValue: string;
2904
+ }[];
2905
+ }, {
2906
+ list?: {
2907
+ domain: "adsb" | "remoteId";
2908
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2909
+ idValue: string;
2910
+ }[] | undefined;
2911
+ }>;
2912
+ }, "strip", z.ZodTypeAny, {
2913
+ params: {
2914
+ userId: string;
2915
+ userName: string;
2916
+ userPriority: string;
2917
+ };
2918
+ type: "USER_ACTION";
2919
+ ip: string;
2920
+ cgi: EUserActions.SET_WHITE_LIST;
2921
+ postJsonBody: {
2922
+ list: {
2923
+ domain: "adsb" | "remoteId";
2924
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2925
+ idValue: string;
2926
+ }[];
2927
+ };
2928
+ }, {
2929
+ params: {
2930
+ userId: string;
2931
+ userName: string;
2932
+ userPriority: string;
2933
+ };
2934
+ type: "USER_ACTION";
2935
+ ip: string;
2936
+ cgi: EUserActions.SET_WHITE_LIST;
2937
+ postJsonBody: {
2938
+ list?: {
2939
+ domain: "adsb" | "remoteId";
2940
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
2941
+ idValue: string;
2942
+ }[] | undefined;
2943
+ };
2944
+ }>, z.ZodObject<{
2945
+ type: z.ZodLiteral<"USER_ACTION">;
2946
+ cgi: z.ZodLiteral<EUserActions.GO_TO_COORDINATES>;
2947
+ ip: z.ZodString;
2948
+ params: z.ZodObject<{
2949
+ userId: z.ZodString;
2950
+ userName: z.ZodString;
2951
+ userPriority: z.ZodString;
2952
+ } & {
2953
+ lat: z.ZodString;
2954
+ lon: z.ZodString;
2955
+ }, "strip", z.ZodTypeAny, {
2956
+ lat: string;
2957
+ lon: string;
2958
+ userId: string;
2959
+ userName: string;
2960
+ userPriority: string;
2961
+ }, {
2962
+ lat: string;
2963
+ lon: string;
2964
+ userId: string;
2965
+ userName: string;
2966
+ userPriority: string;
2967
+ }>;
2968
+ postJsonBody: z.ZodAny;
2969
+ }, "strip", z.ZodTypeAny, {
2970
+ params: {
2971
+ lat: string;
2972
+ lon: string;
2973
+ userId: string;
2974
+ userName: string;
2975
+ userPriority: string;
2976
+ };
2977
+ type: "USER_ACTION";
2978
+ ip: string;
2979
+ cgi: EUserActions.GO_TO_COORDINATES;
2980
+ postJsonBody?: any;
2981
+ }, {
2982
+ params: {
2983
+ lat: string;
2984
+ lon: string;
2985
+ userId: string;
2986
+ userName: string;
2987
+ userPriority: string;
2988
+ };
2989
+ type: "USER_ACTION";
2990
+ ip: string;
2991
+ cgi: EUserActions.GO_TO_COORDINATES;
2992
+ postJsonBody?: any;
2993
+ }>, z.ZodObject<{
2994
+ type: z.ZodLiteral<"USER_ACTION">;
2995
+ cgi: z.ZodLiteral<EUserActions.SET_TRACKING_MODE>;
2996
+ ip: z.ZodString;
2997
+ params: z.ZodObject<{
2998
+ userId: z.ZodString;
2999
+ userName: z.ZodString;
3000
+ userPriority: z.ZodString;
3001
+ }, "strip", z.ZodTypeAny, {
3002
+ userId: string;
3003
+ userName: string;
3004
+ userPriority: string;
3005
+ }, {
3006
+ userId: string;
3007
+ userName: string;
3008
+ userPriority: string;
3009
+ }>;
3010
+ postJsonBody: z.ZodObject<{
3011
+ mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
3012
+ }, "strip", z.ZodTypeAny, {
3013
+ mode: "MANUAL" | "AUTOMATIC";
3014
+ }, {
3015
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
3016
+ }>;
3017
+ }, "strip", z.ZodTypeAny, {
3018
+ params: {
3019
+ userId: string;
3020
+ userName: string;
3021
+ userPriority: string;
3022
+ };
3023
+ type: "USER_ACTION";
3024
+ ip: string;
3025
+ cgi: EUserActions.SET_TRACKING_MODE;
3026
+ postJsonBody: {
3027
+ mode: "MANUAL" | "AUTOMATIC";
3028
+ };
3029
+ }, {
3030
+ params: {
3031
+ userId: string;
3032
+ userName: string;
3033
+ userPriority: string;
3034
+ };
3035
+ type: "USER_ACTION";
3036
+ ip: string;
3037
+ cgi: EUserActions.SET_TRACKING_MODE;
3038
+ postJsonBody: {
3039
+ mode?: "MANUAL" | "AUTOMATIC" | undefined;
3040
+ };
3041
+ }>, z.ZodObject<{
3042
+ type: z.ZodLiteral<"USER_ACTION">;
3043
+ cgi: z.ZodLiteral<EUserActions.SET_ZONES>;
3044
+ ip: z.ZodString;
3045
+ params: z.ZodObject<{
3046
+ userId: z.ZodString;
3047
+ userName: z.ZodString;
3048
+ userPriority: z.ZodString;
3049
+ }, "strip", z.ZodTypeAny, {
3050
+ userId: string;
3051
+ userName: string;
3052
+ userPriority: string;
3053
+ }, {
3054
+ userId: string;
3055
+ userName: string;
3056
+ userPriority: string;
3057
+ }>;
3058
+ postJsonBody: z.ZodObject<{
3059
+ zones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3060
+ enabled: z.ZodDefault<z.ZodBoolean>;
3061
+ name: z.ZodOptional<z.ZodString>;
3062
+ area: z.ZodArray<z.ZodObject<{
3063
+ lat: z.ZodNumber;
3064
+ lon: z.ZodNumber;
3065
+ }, "strip", z.ZodTypeAny, {
3066
+ lat: number;
3067
+ lon: number;
3068
+ }, {
3069
+ lat: number;
3070
+ lon: number;
3071
+ }>, "atleastone">;
3072
+ minAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
3073
+ maxAltitudeAmsl: z.ZodOptional<z.ZodNumber>;
3074
+ minSpeedKmph: z.ZodOptional<z.ZodNumber>;
3075
+ maxSpeedKmph: z.ZodOptional<z.ZodNumber>;
3076
+ flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>;
3077
+ weight: z.ZodNumber;
3078
+ }, "strip", z.ZodTypeAny, {
3079
+ enabled: boolean;
3080
+ area: [{
3081
+ lat: number;
3082
+ lon: number;
3083
+ }, ...{
3084
+ lat: number;
3085
+ lon: number;
3086
+ }[]];
3087
+ flightDirection: "all" | "arrival" | "departure";
3088
+ weight: number;
3089
+ name?: string | undefined;
3090
+ minAltitudeAmsl?: number | undefined;
3091
+ maxAltitudeAmsl?: number | undefined;
3092
+ minSpeedKmph?: number | undefined;
3093
+ maxSpeedKmph?: number | undefined;
3094
+ }, {
3095
+ area: [{
3096
+ lat: number;
3097
+ lon: number;
3098
+ }, ...{
3099
+ lat: number;
3100
+ lon: number;
3101
+ }[]];
3102
+ weight: number;
3103
+ name?: string | undefined;
3104
+ enabled?: boolean | undefined;
3105
+ minAltitudeAmsl?: number | undefined;
3106
+ maxAltitudeAmsl?: number | undefined;
3107
+ minSpeedKmph?: number | undefined;
3108
+ maxSpeedKmph?: number | undefined;
3109
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
3110
+ }>, "many">>;
3111
+ }, "strip", z.ZodTypeAny, {
3112
+ zones: {
3113
+ enabled: boolean;
3114
+ area: [{
3115
+ lat: number;
3116
+ lon: number;
3117
+ }, ...{
3118
+ lat: number;
3119
+ lon: number;
3120
+ }[]];
3121
+ flightDirection: "all" | "arrival" | "departure";
3122
+ weight: number;
3123
+ name?: string | undefined;
3124
+ minAltitudeAmsl?: number | undefined;
3125
+ maxAltitudeAmsl?: number | undefined;
3126
+ minSpeedKmph?: number | undefined;
3127
+ maxSpeedKmph?: number | undefined;
3128
+ }[];
3129
+ }, {
3130
+ zones?: {
3131
+ area: [{
3132
+ lat: number;
3133
+ lon: number;
3134
+ }, ...{
3135
+ lat: number;
3136
+ lon: number;
3137
+ }[]];
3138
+ weight: number;
3139
+ name?: string | undefined;
3140
+ enabled?: boolean | undefined;
3141
+ minAltitudeAmsl?: number | undefined;
3142
+ maxAltitudeAmsl?: number | undefined;
3143
+ minSpeedKmph?: number | undefined;
3144
+ maxSpeedKmph?: number | undefined;
3145
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
3146
+ }[] | undefined;
3147
+ }>;
3148
+ }, "strip", z.ZodTypeAny, {
3149
+ params: {
3150
+ userId: string;
3151
+ userName: string;
3152
+ userPriority: string;
3153
+ };
3154
+ type: "USER_ACTION";
3155
+ ip: string;
3156
+ cgi: EUserActions.SET_ZONES;
3157
+ postJsonBody: {
3158
+ zones: {
3159
+ enabled: boolean;
3160
+ area: [{
3161
+ lat: number;
3162
+ lon: number;
3163
+ }, ...{
3164
+ lat: number;
3165
+ lon: number;
3166
+ }[]];
3167
+ flightDirection: "all" | "arrival" | "departure";
3168
+ weight: number;
3169
+ name?: string | undefined;
3170
+ minAltitudeAmsl?: number | undefined;
3171
+ maxAltitudeAmsl?: number | undefined;
3172
+ minSpeedKmph?: number | undefined;
3173
+ maxSpeedKmph?: number | undefined;
1444
3174
  }[];
1445
- } | {
1446
- type: "FORCE_TRACKING_STATUS";
1447
- enabled: boolean;
1448
- icao?: string | undefined;
1449
- } | {
1450
- type: "API_LOCK_STATUS";
1451
- isLocked: boolean;
1452
- user?: {
1453
- ip: string;
1454
- userId: string;
1455
- userName: string;
1456
- userPriority: number;
1457
- } | undefined;
1458
3175
  };
1459
- }>, z.ZodObject<{
1460
- type: z.ZodLiteral<"CAMERA_POSITION">;
1461
- lat: z.ZodNumber;
1462
- lon: z.ZodNumber;
1463
- azimuth: z.ZodNumber;
1464
- elevation: z.ZodNumber;
1465
- fov: z.ZodNumber;
1466
- }, "strip", z.ZodTypeAny, {
1467
- type: "CAMERA_POSITION";
1468
- lat: number;
1469
- lon: number;
1470
- azimuth: number;
1471
- elevation: number;
1472
- fov: number;
1473
- }, {
1474
- type: "CAMERA_POSITION";
1475
- lat: number;
1476
- lon: number;
1477
- azimuth: number;
1478
- elevation: number;
1479
- fov: number;
1480
- }>, z.ZodObject<{
1481
- type: z.ZodLiteral<"TRACKING_START">;
1482
- icao: z.ZodString;
1483
- }, "strip", z.ZodTypeAny, {
1484
- type: "TRACKING_START";
1485
- icao: string;
1486
3176
  }, {
1487
- type: "TRACKING_START";
1488
- icao: string;
3177
+ params: {
3178
+ userId: string;
3179
+ userName: string;
3180
+ userPriority: string;
3181
+ };
3182
+ type: "USER_ACTION";
3183
+ ip: string;
3184
+ cgi: EUserActions.SET_ZONES;
3185
+ postJsonBody: {
3186
+ zones?: {
3187
+ area: [{
3188
+ lat: number;
3189
+ lon: number;
3190
+ }, ...{
3191
+ lat: number;
3192
+ lon: number;
3193
+ }[]];
3194
+ weight: number;
3195
+ name?: string | undefined;
3196
+ enabled?: boolean | undefined;
3197
+ minAltitudeAmsl?: number | undefined;
3198
+ maxAltitudeAmsl?: number | undefined;
3199
+ minSpeedKmph?: number | undefined;
3200
+ maxSpeedKmph?: number | undefined;
3201
+ flightDirection?: "all" | "arrival" | "departure" | undefined;
3202
+ }[] | undefined;
3203
+ };
1489
3204
  }>, z.ZodObject<{
1490
- type: z.ZodLiteral<"TRACKING_STOP">;
3205
+ type: z.ZodLiteral<"USER_ACTION">;
3206
+ cgi: z.ZodLiteral<EUserActions.RESET_PTZ_CALIBRATION>;
3207
+ ip: z.ZodString;
3208
+ params: z.ZodObject<{
3209
+ userId: z.ZodString;
3210
+ userName: z.ZodString;
3211
+ userPriority: z.ZodString;
3212
+ }, "strip", z.ZodTypeAny, {
3213
+ userId: string;
3214
+ userName: string;
3215
+ userPriority: string;
3216
+ }, {
3217
+ userId: string;
3218
+ userName: string;
3219
+ userPriority: string;
3220
+ }>;
3221
+ postJsonBody: z.ZodAny;
1491
3222
  }, "strip", z.ZodTypeAny, {
1492
- type: "TRACKING_STOP";
3223
+ params: {
3224
+ userId: string;
3225
+ userName: string;
3226
+ userPriority: string;
3227
+ };
3228
+ type: "USER_ACTION";
3229
+ ip: string;
3230
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
3231
+ postJsonBody?: any;
1493
3232
  }, {
1494
- type: "TRACKING_STOP";
3233
+ params: {
3234
+ userId: string;
3235
+ userName: string;
3236
+ userPriority: string;
3237
+ };
3238
+ type: "USER_ACTION";
3239
+ ip: string;
3240
+ cgi: EUserActions.RESET_PTZ_CALIBRATION;
3241
+ postJsonBody?: any;
1495
3242
  }>, z.ZodObject<{
1496
- type: z.ZodLiteral<"FLIGHT_LIST">;
1497
- list: z.ZodArray<z.ZodObject<{
1498
- icao: z.ZodString;
1499
- lat: z.ZodNumber;
1500
- lon: z.ZodNumber;
1501
- heading: z.ZodNumber;
1502
- groundSpeed: z.ZodNumber;
1503
- altitudeAMSL: z.ZodNumber;
1504
- cameraDistance: z.ZodNumber;
1505
- autoTrackingOrder: z.ZodNumber;
1506
- whiteListed: z.ZodBoolean;
1507
- blackListed: z.ZodBoolean;
1508
- priorityListed: z.ZodBoolean;
1509
- typePriorityListed: z.ZodDefault<z.ZodBoolean>;
1510
- autoSelectionIgnored: z.ZodBoolean;
1511
- signalQuality: z.ZodNumber;
1512
- emitterCategorySet: z.ZodDefault<z.ZodNumber>;
1513
- emitterCategory: z.ZodDefault<z.ZodNumber>;
1514
- emergencyState: z.ZodBoolean;
1515
- emergencyStatusMessage: z.ZodString;
3243
+ type: z.ZodLiteral<"USER_ACTION">;
3244
+ cgi: z.ZodLiteral<EUserActions.LOCK_API>;
3245
+ ip: z.ZodString;
3246
+ params: z.ZodObject<{
3247
+ userId: z.ZodString;
3248
+ userName: z.ZodString;
3249
+ userPriority: z.ZodString;
3250
+ } & {
3251
+ timeout: z.ZodString;
1516
3252
  }, "strip", z.ZodTypeAny, {
1517
- icao: string;
1518
- lat: number;
1519
- lon: number;
1520
- heading: number;
1521
- groundSpeed: number;
1522
- altitudeAMSL: number;
1523
- cameraDistance: number;
1524
- autoTrackingOrder: number;
1525
- whiteListed: boolean;
1526
- blackListed: boolean;
1527
- priorityListed: boolean;
1528
- typePriorityListed: boolean;
1529
- autoSelectionIgnored: boolean;
1530
- signalQuality: number;
1531
- emitterCategorySet: number;
1532
- emitterCategory: number;
1533
- emergencyState: boolean;
1534
- emergencyStatusMessage: string;
3253
+ timeout: string;
3254
+ userId: string;
3255
+ userName: string;
3256
+ userPriority: string;
1535
3257
  }, {
1536
- icao: string;
1537
- lat: number;
1538
- lon: number;
1539
- heading: number;
1540
- groundSpeed: number;
1541
- altitudeAMSL: number;
1542
- cameraDistance: number;
1543
- autoTrackingOrder: number;
1544
- whiteListed: boolean;
1545
- blackListed: boolean;
1546
- priorityListed: boolean;
1547
- autoSelectionIgnored: boolean;
1548
- signalQuality: number;
1549
- emergencyState: boolean;
1550
- emergencyStatusMessage: string;
1551
- typePriorityListed?: boolean | undefined;
1552
- emitterCategorySet?: number | undefined;
1553
- emitterCategory?: number | undefined;
1554
- }>, "many">;
3258
+ timeout: string;
3259
+ userId: string;
3260
+ userName: string;
3261
+ userPriority: string;
3262
+ }>;
3263
+ postJsonBody: z.ZodAny;
1555
3264
  }, "strip", z.ZodTypeAny, {
1556
- type: "FLIGHT_LIST";
1557
- list: {
1558
- icao: string;
1559
- lat: number;
1560
- lon: number;
1561
- heading: number;
1562
- groundSpeed: number;
1563
- altitudeAMSL: number;
1564
- cameraDistance: number;
1565
- autoTrackingOrder: number;
1566
- whiteListed: boolean;
1567
- blackListed: boolean;
1568
- priorityListed: boolean;
1569
- typePriorityListed: boolean;
1570
- autoSelectionIgnored: boolean;
1571
- signalQuality: number;
1572
- emitterCategorySet: number;
1573
- emitterCategory: number;
1574
- emergencyState: boolean;
1575
- emergencyStatusMessage: string;
1576
- }[];
3265
+ params: {
3266
+ timeout: string;
3267
+ userId: string;
3268
+ userName: string;
3269
+ userPriority: string;
3270
+ };
3271
+ type: "USER_ACTION";
3272
+ ip: string;
3273
+ cgi: EUserActions.LOCK_API;
3274
+ postJsonBody?: any;
1577
3275
  }, {
1578
- type: "FLIGHT_LIST";
1579
- list: {
1580
- icao: string;
1581
- lat: number;
1582
- lon: number;
1583
- heading: number;
1584
- groundSpeed: number;
1585
- altitudeAMSL: number;
1586
- cameraDistance: number;
1587
- autoTrackingOrder: number;
1588
- whiteListed: boolean;
1589
- blackListed: boolean;
1590
- priorityListed: boolean;
1591
- autoSelectionIgnored: boolean;
1592
- signalQuality: number;
1593
- emergencyState: boolean;
1594
- emergencyStatusMessage: string;
1595
- typePriorityListed?: boolean | undefined;
1596
- emitterCategorySet?: number | undefined;
1597
- emitterCategory?: number | undefined;
1598
- }[];
3276
+ params: {
3277
+ timeout: string;
3278
+ userId: string;
3279
+ userName: string;
3280
+ userPriority: string;
3281
+ };
3282
+ type: "USER_ACTION";
3283
+ ip: string;
3284
+ cgi: EUserActions.LOCK_API;
3285
+ postJsonBody?: any;
1599
3286
  }>, z.ZodObject<{
1600
3287
  type: z.ZodLiteral<"USER_ACTION">;
3288
+ cgi: z.ZodLiteral<EUserActions.UNLOCK_API>;
1601
3289
  ip: z.ZodString;
1602
3290
  params: z.ZodObject<{
1603
3291
  userId: z.ZodString;
1604
3292
  userName: z.ZodString;
1605
3293
  userPriority: z.ZodString;
1606
- } & {
1607
- lat: z.ZodOptional<z.ZodString>;
1608
- lon: z.ZodOptional<z.ZodString>;
1609
- timeout: z.ZodOptional<z.ZodString>;
1610
3294
  }, "strip", z.ZodTypeAny, {
1611
3295
  userId: string;
1612
3296
  userName: string;
1613
3297
  userPriority: string;
1614
- timeout?: string | undefined;
1615
- lat?: string | undefined;
1616
- lon?: string | undefined;
1617
3298
  }, {
1618
3299
  userId: string;
1619
3300
  userName: string;
1620
3301
  userPriority: string;
1621
- timeout?: string | undefined;
1622
- lat?: string | undefined;
1623
- lon?: string | undefined;
1624
3302
  }>;
1625
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_BLACK_LIST, PlaneTrackerUserActions.SET_WHITE_LIST, PlaneTrackerUserActions.GO_TO_COORDINATES, PlaneTrackerUserActions.SET_TRACKING_MODE, PlaneTrackerUserActions.SET_ZONES, PlaneTrackerUserActions.RESET_PTZ_CALIBRATION, PlaneTrackerUserActions.LOCK_API, PlaneTrackerUserActions.UNLOCK_API]>;
1626
3303
  postJsonBody: z.ZodAny;
1627
3304
  }, "strip", z.ZodTypeAny, {
1628
3305
  params: {
1629
3306
  userId: string;
1630
3307
  userName: string;
1631
3308
  userPriority: string;
1632
- timeout?: string | undefined;
1633
- lat?: string | undefined;
1634
- lon?: string | undefined;
1635
3309
  };
1636
3310
  type: "USER_ACTION";
1637
3311
  ip: string;
1638
- cgi: PlaneTrackerUserActions;
3312
+ cgi: EUserActions.UNLOCK_API;
1639
3313
  postJsonBody?: any;
1640
3314
  }, {
1641
3315
  params: {
1642
3316
  userId: string;
1643
3317
  userName: string;
1644
3318
  userPriority: string;
1645
- timeout?: string | undefined;
1646
- lat?: string | undefined;
1647
- lon?: string | undefined;
1648
3319
  };
1649
3320
  type: "USER_ACTION";
1650
3321
  ip: string;
1651
- cgi: PlaneTrackerUserActions;
3322
+ cgi: EUserActions.UNLOCK_API;
1652
3323
  postJsonBody?: any;
1653
3324
  }>, z.ZodObject<{
1654
3325
  type: z.ZodLiteral<"CONNECTED_USERS">;
1655
3326
  users: z.ZodArray<z.ZodObject<{
1656
3327
  userId: z.ZodString;
1657
3328
  userName: z.ZodString;
1658
- userPriority: z.ZodNumber;
3329
+ } & {
1659
3330
  ip: z.ZodString;
3331
+ userPriority: z.ZodNumber;
1660
3332
  }, "strip", z.ZodTypeAny, {
1661
3333
  ip: string;
1662
3334
  userId: string;
@@ -1688,22 +3360,26 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1688
3360
  type: z.ZodLiteral<"FORCE_TRACKING_STATUS">;
1689
3361
  enabled: z.ZodBoolean;
1690
3362
  icao: z.ZodOptional<z.ZodString>;
3363
+ targetId: z.ZodOptional<z.ZodString>;
1691
3364
  }, "strip", z.ZodTypeAny, {
1692
3365
  type: "FORCE_TRACKING_STATUS";
1693
3366
  enabled: boolean;
1694
3367
  icao?: string | undefined;
3368
+ targetId?: string | undefined;
1695
3369
  }, {
1696
3370
  type: "FORCE_TRACKING_STATUS";
1697
3371
  enabled: boolean;
1698
3372
  icao?: string | undefined;
3373
+ targetId?: string | undefined;
1699
3374
  }>, z.ZodObject<{
1700
3375
  type: z.ZodLiteral<"API_LOCK_STATUS">;
1701
3376
  isLocked: z.ZodBoolean;
1702
3377
  user: z.ZodOptional<z.ZodObject<{
1703
3378
  userId: z.ZodString;
1704
3379
  userName: z.ZodString;
1705
- userPriority: z.ZodNumber;
3380
+ } & {
1706
3381
  ip: z.ZodString;
3382
+ userPriority: z.ZodNumber;
1707
3383
  }, "strip", z.ZodTypeAny, {
1708
3384
  ip: string;
1709
3385
  userId: string;
@@ -1734,16 +3410,14 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1734
3410
  userPriority: number;
1735
3411
  } | undefined;
1736
3412
  }>]>;
1737
- export type TPlaneTrackerEvent = z.infer<typeof ptrEventsDataSchema>;
1738
- export type TPlaneTrackerEventType = TPlaneTrackerEvent['type'];
1739
- export type TPlaneTrackerEventOfType<T extends TPlaneTrackerEventType> = Extract<TPlaneTrackerEvent, {
1740
- type: T;
3413
+ export type TEventData = z.infer<typeof eventsDataSchema>;
3414
+ export type TWsUserActionData = Extract<TEventData, {
3415
+ type: 'USER_ACTION';
1741
3416
  }>;
1742
- export type TPlaneTrackerApiFlightData = z.infer<typeof apiFlightDataSchema>;
1743
- export type TPlaneTrackerApiUser = z.infer<typeof apiUserSchema>;
1744
- export type TPlaneTrackerStringApiUser = z.infer<typeof apiStringUserSchema>;
1745
- export type TPlaneTrackerUserActionData = z.infer<typeof planeTrackerUserActionData>;
1746
- export type TPlaneTrackerUserActionDataOfCgi<T extends PlaneTrackerUserActions> = Extract<TPlaneTrackerUserActionData, {
3417
+ export type TUserActionDataOfCgi<T extends EUserActions> = Extract<TWsUserActionData, {
1747
3418
  cgi: T;
1748
3419
  }>;
3420
+ export type TWsApiFlightData = z.infer<typeof wsApiFlightDataSchema>;
3421
+ export type TWsApiCameraData = z.infer<typeof wsCameraPositionDataSchema>;
3422
+ export type TApiUser = z.infer<typeof apiUserSchema>;
1749
3423
  export {};