camstreamerlib 4.0.4 → 4.0.6

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.
@@ -116,7 +116,12 @@ class CamStreamerAPI extends BasicAPI_1.BasicAPI {
116
116
  await this._postUrlEncoded(`${BASE_PATH}/set_stream_active.cgi`, { stream_id: streamId, active: active ? 1 : 0 }, options);
117
117
  }
118
118
  async deleteStream(streamId, options) {
119
- await this._postUrlEncoded(`${BASE_PATH}/remove.cgi`, { stream_id: streamId }, options);
119
+ const streamList = await this.getStreamList(options);
120
+ const filteredList = streamList.filter((stream) => !('streamId' in stream) || stream.streamId !== streamId);
121
+ if (filteredList.length === streamList.length) {
122
+ return;
123
+ }
124
+ await this.setStreamList(filteredList, options);
120
125
  }
121
126
  async listFiles(options) {
122
127
  const res = await this._getJson(`${BASE_PATH}/upload_audio.cgi`, { action: 'list' }, options);
@@ -1,5 +1,5 @@
1
1
  import { IClient, TResponse } from './internal/types';
2
- import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TTypePriorityList, TWhiteList, TZones } from './types/PlaneTrackerAPI';
2
+ import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TWhiteList, TZones } from './types/PlaneTrackerAPI';
3
3
  import { THttpRequestOptions } from './types/common';
4
4
  import { BasicAPI } from './internal/BasicAPI';
5
5
  export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> extends BasicAPI<Client> {
@@ -185,14 +185,31 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
185
185
  startTrackingPlane(icao: ICAO, options?: THttpRequestOptions): Promise<void>;
186
186
  stopTrackingPlane(options?: THttpRequestOptions): Promise<void>;
187
187
  getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
188
- getPriorityList(options?: THttpRequestOptions): Promise<string[]>;
189
- setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<void>;
190
- getTypePriorityList(options?: THttpRequestOptions): Promise<string[]>;
191
- setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<void>;
192
- getWhiteList(options?: THttpRequestOptions): Promise<string[]>;
193
- setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<void>;
194
- getBlackList(options?: THttpRequestOptions): Promise<string[]>;
195
- setBlackList(blackList: TBlackList['blackList'], options?: THttpRequestOptions): Promise<void>;
188
+ getPriorityList(options?: THttpRequestOptions): Promise<{
189
+ list: {
190
+ priority: number;
191
+ domain: "adsb" | "remoteId";
192
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
193
+ idValue: string;
194
+ }[];
195
+ }>;
196
+ setPriorityList(priorityList: TPriorityList, options?: THttpRequestOptions): Promise<void>;
197
+ getWhiteList(options?: THttpRequestOptions): Promise<{
198
+ list: {
199
+ domain: "adsb" | "remoteId";
200
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
201
+ idValue: string;
202
+ }[];
203
+ }>;
204
+ setWhiteList(whiteList: TWhiteList, options?: THttpRequestOptions): Promise<void>;
205
+ getBlackList(options?: THttpRequestOptions): Promise<{
206
+ list: {
207
+ domain: "adsb" | "remoteId";
208
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
209
+ idValue: string;
210
+ }[];
211
+ }>;
212
+ setBlackList(blackList: TBlackList, options?: THttpRequestOptions): Promise<void>;
196
213
  fetchMapInfo(options?: THttpRequestOptions): Promise<{
197
214
  minZoom: number;
198
215
  maxZoom: number;
@@ -121,31 +121,24 @@ class PlaneTrackerAPI extends BasicAPI_1.BasicAPI {
121
121
  }
122
122
  async getPriorityList(options) {
123
123
  const res = await this._getJson(`${BASE_PATH}/package/getPriorityList.cgi`, undefined, options);
124
- return PlaneTrackerAPI_1.priorityListSchema.parse(res).priorityList;
124
+ return PlaneTrackerAPI_1.priorityListSchema.parse(res);
125
125
  }
126
126
  async setPriorityList(priorityList, options) {
127
- await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList }, this.apiUser, options);
128
- }
129
- async getTypePriorityList(options) {
130
- const res = await this._getJson(`${BASE_PATH}/package/getTypePriorityList.cgi`, undefined, options);
131
- return PlaneTrackerAPI_1.typePriorityListSchema.parse(res).typePriorityList;
132
- }
133
- async setTypePriorityList(typePriorityList, options) {
134
- await this._postJsonEncoded(`${BASE_PATH}/package/setTypePriorityList.cgi`, { typePriorityList }, this.apiUser, options);
127
+ await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, priorityList, this.apiUser, options);
135
128
  }
136
129
  async getWhiteList(options) {
137
130
  const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
138
- return PlaneTrackerAPI_1.whiteListSchema.parse(res).whiteList;
131
+ return PlaneTrackerAPI_1.whiteListSchema.parse(res);
139
132
  }
140
133
  async setWhiteList(whiteList, options) {
141
- await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, { whiteList }, this.apiUser, options);
134
+ await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, whiteList, this.apiUser, options);
142
135
  }
143
136
  async getBlackList(options) {
144
137
  const res = await this._getJson(`${BASE_PATH}/package/getBlackList.cgi`, undefined, options);
145
- return PlaneTrackerAPI_1.blackListSchema.parse(res).blackList;
138
+ return PlaneTrackerAPI_1.blackListSchema.parse(res);
146
139
  }
147
140
  async setBlackList(blackList, options) {
148
- await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, { blackList }, this.apiUser, options);
141
+ await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, blackList, this.apiUser, options);
149
142
  }
150
143
  async fetchMapInfo(options) {
151
144
  const res = await this._getJson(`${BASE_PATH}/package/getMapInfo.cgi`, undefined, options);
@@ -804,38 +804,132 @@ export declare const flightInfoSchema: z.ZodObject<{
804
804
  }[] | undefined;
805
805
  }>;
806
806
  export type TFlightInfo = z.infer<typeof flightInfoSchema>;
807
- export declare const typePriorityListSchema: z.ZodObject<{
808
- typePriorityList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
807
+ export declare const listEntryDomainSchema: z.ZodEnum<["adsb", "remoteId"]>;
808
+ export declare const listEntryIdTypeSchema: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
809
+ export type TListEntryDomain = z.infer<typeof listEntryDomainSchema>;
810
+ export type TListEntryIdType = z.infer<typeof listEntryIdTypeSchema>;
811
+ export declare const listEntrySchema: z.ZodObject<{
812
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
813
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
814
+ idValue: z.ZodString;
809
815
  }, "strip", z.ZodTypeAny, {
810
- typePriorityList: string[];
816
+ domain: "adsb" | "remoteId";
817
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
818
+ idValue: string;
811
819
  }, {
812
- typePriorityList?: string[] | undefined;
820
+ domain: "adsb" | "remoteId";
821
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
822
+ idValue: string;
813
823
  }>;
814
- export type TTypePriorityList = z.infer<typeof typePriorityListSchema>;
815
- export declare const priorityListSchema: z.ZodObject<{
816
- priorityList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
824
+ export declare const priorityListEntrySchema: z.ZodObject<{
825
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
826
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
827
+ idValue: z.ZodString;
828
+ } & {
829
+ priority: z.ZodNumber;
817
830
  }, "strip", z.ZodTypeAny, {
818
- priorityList: string[];
831
+ priority: number;
832
+ domain: "adsb" | "remoteId";
833
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
834
+ idValue: string;
819
835
  }, {
820
- priorityList?: string[] | undefined;
836
+ priority: number;
837
+ domain: "adsb" | "remoteId";
838
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
839
+ idValue: string;
821
840
  }>;
822
- export type TPriorityList = z.infer<typeof priorityListSchema>;
841
+ export type TListEntry = z.infer<typeof listEntrySchema>;
842
+ export type TPriorityListEntry = z.infer<typeof priorityListEntrySchema>;
823
843
  export declare const whiteListSchema: z.ZodObject<{
824
- whiteList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
844
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
845
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
846
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
847
+ idValue: z.ZodString;
848
+ }, "strip", z.ZodTypeAny, {
849
+ domain: "adsb" | "remoteId";
850
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
851
+ idValue: string;
852
+ }, {
853
+ domain: "adsb" | "remoteId";
854
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
855
+ idValue: string;
856
+ }>, "many">>;
825
857
  }, "strip", z.ZodTypeAny, {
826
- whiteList: string[];
858
+ list: {
859
+ domain: "adsb" | "remoteId";
860
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
861
+ idValue: string;
862
+ }[];
827
863
  }, {
828
- whiteList?: string[] | undefined;
864
+ list?: {
865
+ domain: "adsb" | "remoteId";
866
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
867
+ idValue: string;
868
+ }[] | undefined;
829
869
  }>;
830
- export type TWhiteList = z.infer<typeof whiteListSchema>;
831
870
  export declare const blackListSchema: z.ZodObject<{
832
- blackList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
871
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
872
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
873
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
874
+ idValue: z.ZodString;
875
+ }, "strip", z.ZodTypeAny, {
876
+ domain: "adsb" | "remoteId";
877
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
878
+ idValue: string;
879
+ }, {
880
+ domain: "adsb" | "remoteId";
881
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
882
+ idValue: string;
883
+ }>, "many">>;
833
884
  }, "strip", z.ZodTypeAny, {
834
- blackList: string[];
885
+ list: {
886
+ domain: "adsb" | "remoteId";
887
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
888
+ idValue: string;
889
+ }[];
835
890
  }, {
836
- blackList?: string[] | undefined;
891
+ list?: {
892
+ domain: "adsb" | "remoteId";
893
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
894
+ idValue: string;
895
+ }[] | undefined;
837
896
  }>;
897
+ export declare const priorityListSchema: z.ZodObject<{
898
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
899
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
900
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
901
+ idValue: z.ZodString;
902
+ } & {
903
+ priority: z.ZodNumber;
904
+ }, "strip", z.ZodTypeAny, {
905
+ priority: number;
906
+ domain: "adsb" | "remoteId";
907
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
908
+ idValue: string;
909
+ }, {
910
+ priority: number;
911
+ domain: "adsb" | "remoteId";
912
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
913
+ idValue: string;
914
+ }>, "many">>;
915
+ }, "strip", z.ZodTypeAny, {
916
+ list: {
917
+ priority: number;
918
+ domain: "adsb" | "remoteId";
919
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
920
+ idValue: string;
921
+ }[];
922
+ }, {
923
+ list?: {
924
+ priority: number;
925
+ domain: "adsb" | "remoteId";
926
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
927
+ idValue: string;
928
+ }[] | undefined;
929
+ }>;
930
+ export type TWhiteList = z.infer<typeof whiteListSchema>;
838
931
  export type TBlackList = z.infer<typeof blackListSchema>;
932
+ export type TPriorityList = z.infer<typeof priorityListSchema>;
839
933
  export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
840
934
  export type TMapType = z.infer<typeof mapTypeSchema>;
841
935
  export declare const mapInfoSchema: z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zonesSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListSchema = exports.typePriorityListSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
3
+ exports.zonesSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.priorityListSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListEntrySchema = exports.listEntrySchema = exports.listEntryIdTypeSchema = exports.listEntryDomainSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.wsAliasResponseSchema = zod_1.z.object({
6
6
  alias: zod_1.z.string(),
@@ -280,17 +280,24 @@ exports.flightInfoSchema = zod_1.z.object({
280
280
  }))
281
281
  .optional(),
282
282
  });
283
- exports.typePriorityListSchema = zod_1.z.object({
284
- typePriorityList: zod_1.z.array(zod_1.z.string()).default([]),
283
+ exports.listEntryDomainSchema = zod_1.z.enum(['adsb', 'remoteId']);
284
+ exports.listEntryIdTypeSchema = zod_1.z.enum(['icao', 'type_icao', 'drone_mac', 'operator_mac', 'category']);
285
+ exports.listEntrySchema = zod_1.z.object({
286
+ domain: exports.listEntryDomainSchema,
287
+ idType: exports.listEntryIdTypeSchema,
288
+ idValue: zod_1.z.string().min(1),
285
289
  });
286
- exports.priorityListSchema = zod_1.z.object({
287
- priorityList: zod_1.z.array(zod_1.z.string()).default([]),
290
+ exports.priorityListEntrySchema = exports.listEntrySchema.extend({
291
+ priority: zod_1.z.number().int().min(1),
288
292
  });
289
293
  exports.whiteListSchema = zod_1.z.object({
290
- whiteList: zod_1.z.array(zod_1.z.string()).default([]),
294
+ list: zod_1.z.array(exports.listEntrySchema).default([]),
291
295
  });
292
296
  exports.blackListSchema = zod_1.z.object({
293
- blackList: zod_1.z.array(zod_1.z.string()).default([]),
297
+ list: zod_1.z.array(exports.listEntrySchema).default([]),
298
+ });
299
+ exports.priorityListSchema = zod_1.z.object({
300
+ list: zod_1.z.array(exports.priorityListEntrySchema).default([]),
294
301
  });
295
302
  exports.mapTypeSchema = zod_1.z.enum(['roadmap', 'satellite']);
296
303
  exports.mapInfoSchema = zod_1.z.object({
@@ -99,7 +99,6 @@ export declare enum PlaneTrackerUserActions {
99
99
  TRACK_ICAO = "trackIcao.cgi",
100
100
  RESET_ICAO = "resetIcao.cgi",
101
101
  SET_PRIORITY_LIST = "setPriorityList.cgi",
102
- SET_TYPE_PRIORITY_LIST = "setTypePriorityList.cgi",
103
102
  SET_BLACK_LIST = "setBlackList.cgi",
104
103
  SET_WHITE_LIST = "setWhiteList.cgi",
105
104
  GO_TO_COORDINATES = "goToCoordinates.cgi",
@@ -196,11 +195,37 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
196
195
  userPriority: string;
197
196
  }>;
198
197
  postJsonBody: z.ZodObject<{
199
- priorityList: z.ZodArray<z.ZodString, "many">;
198
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
199
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
200
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
201
+ idValue: z.ZodString;
202
+ } & {
203
+ priority: z.ZodNumber;
204
+ }, "strip", z.ZodTypeAny, {
205
+ priority: number;
206
+ domain: "adsb" | "remoteId";
207
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
208
+ idValue: string;
209
+ }, {
210
+ priority: number;
211
+ domain: "adsb" | "remoteId";
212
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
213
+ idValue: string;
214
+ }>, "many">>;
200
215
  }, "strip", z.ZodTypeAny, {
201
- priorityList: string[];
216
+ list: {
217
+ priority: number;
218
+ domain: "adsb" | "remoteId";
219
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
220
+ idValue: string;
221
+ }[];
202
222
  }, {
203
- priorityList: string[];
223
+ list?: {
224
+ priority: number;
225
+ domain: "adsb" | "remoteId";
226
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
227
+ idValue: string;
228
+ }[] | undefined;
204
229
  }>;
205
230
  }, "strip", z.ZodTypeAny, {
206
231
  params: {
@@ -211,7 +236,12 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
211
236
  ip: string;
212
237
  cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST;
213
238
  postJsonBody: {
214
- priorityList: string[];
239
+ list: {
240
+ priority: number;
241
+ domain: "adsb" | "remoteId";
242
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
243
+ idValue: string;
244
+ }[];
215
245
  };
216
246
  }, {
217
247
  params: {
@@ -222,52 +252,12 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
222
252
  ip: string;
223
253
  cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST;
224
254
  postJsonBody: {
225
- priorityList: string[];
226
- };
227
- }>, z.ZodObject<{
228
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST>;
229
- ip: z.ZodString;
230
- params: z.ZodObject<{
231
- userId: z.ZodString;
232
- userName: z.ZodString;
233
- userPriority: z.ZodString;
234
- }, "strip", z.ZodTypeAny, {
235
- userId: string;
236
- userName: string;
237
- userPriority: string;
238
- }, {
239
- userId: string;
240
- userName: string;
241
- userPriority: string;
242
- }>;
243
- postJsonBody: z.ZodObject<{
244
- typePriorityList: z.ZodArray<z.ZodString, "many">;
245
- }, "strip", z.ZodTypeAny, {
246
- typePriorityList: string[];
247
- }, {
248
- typePriorityList: string[];
249
- }>;
250
- }, "strip", z.ZodTypeAny, {
251
- params: {
252
- userId: string;
253
- userName: string;
254
- userPriority: string;
255
- };
256
- ip: string;
257
- cgi: PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST;
258
- postJsonBody: {
259
- typePriorityList: string[];
260
- };
261
- }, {
262
- params: {
263
- userId: string;
264
- userName: string;
265
- userPriority: string;
266
- };
267
- ip: string;
268
- cgi: PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST;
269
- postJsonBody: {
270
- typePriorityList: string[];
255
+ list?: {
256
+ priority: number;
257
+ domain: "adsb" | "remoteId";
258
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
259
+ idValue: string;
260
+ }[] | undefined;
271
261
  };
272
262
  }>, z.ZodObject<{
273
263
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>;
@@ -286,11 +276,31 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
286
276
  userPriority: string;
287
277
  }>;
288
278
  postJsonBody: z.ZodObject<{
289
- blackList: z.ZodArray<z.ZodString, "many">;
279
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
280
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
281
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
282
+ idValue: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ domain: "adsb" | "remoteId";
285
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
286
+ idValue: string;
287
+ }, {
288
+ domain: "adsb" | "remoteId";
289
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
290
+ idValue: string;
291
+ }>, "many">>;
290
292
  }, "strip", z.ZodTypeAny, {
291
- blackList: string[];
293
+ list: {
294
+ domain: "adsb" | "remoteId";
295
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
296
+ idValue: string;
297
+ }[];
292
298
  }, {
293
- blackList: string[];
299
+ list?: {
300
+ domain: "adsb" | "remoteId";
301
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
302
+ idValue: string;
303
+ }[] | undefined;
294
304
  }>;
295
305
  }, "strip", z.ZodTypeAny, {
296
306
  params: {
@@ -301,7 +311,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
301
311
  ip: string;
302
312
  cgi: PlaneTrackerUserActions.SET_BLACK_LIST;
303
313
  postJsonBody: {
304
- blackList: string[];
314
+ list: {
315
+ domain: "adsb" | "remoteId";
316
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
317
+ idValue: string;
318
+ }[];
305
319
  };
306
320
  }, {
307
321
  params: {
@@ -312,7 +326,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
312
326
  ip: string;
313
327
  cgi: PlaneTrackerUserActions.SET_BLACK_LIST;
314
328
  postJsonBody: {
315
- blackList: string[];
329
+ list?: {
330
+ domain: "adsb" | "remoteId";
331
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
332
+ idValue: string;
333
+ }[] | undefined;
316
334
  };
317
335
  }>, z.ZodObject<{
318
336
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_WHITE_LIST>;
@@ -331,11 +349,31 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
331
349
  userPriority: string;
332
350
  }>;
333
351
  postJsonBody: z.ZodObject<{
334
- whiteList: z.ZodArray<z.ZodString, "many">;
352
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
353
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
354
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
355
+ idValue: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ domain: "adsb" | "remoteId";
358
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
359
+ idValue: string;
360
+ }, {
361
+ domain: "adsb" | "remoteId";
362
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
363
+ idValue: string;
364
+ }>, "many">>;
335
365
  }, "strip", z.ZodTypeAny, {
336
- whiteList: string[];
366
+ list: {
367
+ domain: "adsb" | "remoteId";
368
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
369
+ idValue: string;
370
+ }[];
337
371
  }, {
338
- whiteList: string[];
372
+ list?: {
373
+ domain: "adsb" | "remoteId";
374
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
375
+ idValue: string;
376
+ }[] | undefined;
339
377
  }>;
340
378
  }, "strip", z.ZodTypeAny, {
341
379
  params: {
@@ -346,7 +384,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
346
384
  ip: string;
347
385
  cgi: PlaneTrackerUserActions.SET_WHITE_LIST;
348
386
  postJsonBody: {
349
- whiteList: string[];
387
+ list: {
388
+ domain: "adsb" | "remoteId";
389
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
390
+ idValue: string;
391
+ }[];
350
392
  };
351
393
  }, {
352
394
  params: {
@@ -357,7 +399,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
357
399
  ip: string;
358
400
  cgi: PlaneTrackerUserActions.SET_WHITE_LIST;
359
401
  postJsonBody: {
360
- whiteList: string[];
402
+ list?: {
403
+ domain: "adsb" | "remoteId";
404
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
405
+ idValue: string;
406
+ }[] | undefined;
361
407
  };
362
408
  }>, z.ZodObject<{
363
409
  cgi: z.ZodLiteral<PlaneTrackerUserActions.GO_TO_COORDINATES>;
@@ -876,7 +922,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
876
922
  lat?: string | undefined;
877
923
  lon?: string | undefined;
878
924
  }>;
879
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_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]>;
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]>;
880
926
  postJsonBody: z.ZodAny;
881
927
  }, "strip", z.ZodTypeAny, {
882
928
  params: {
@@ -1156,7 +1202,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1156
1202
  lat?: string | undefined;
1157
1203
  lon?: string | undefined;
1158
1204
  }>;
1159
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_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]>;
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]>;
1160
1206
  postJsonBody: z.ZodAny;
1161
1207
  }, "strip", z.ZodTypeAny, {
1162
1208
  params: {
@@ -1576,7 +1622,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1576
1622
  lat?: string | undefined;
1577
1623
  lon?: string | undefined;
1578
1624
  }>;
1579
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_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]>;
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]>;
1580
1626
  postJsonBody: z.ZodAny;
1581
1627
  }, "strip", z.ZodTypeAny, {
1582
1628
  params: {
@@ -49,7 +49,6 @@ var PlaneTrackerUserActions;
49
49
  PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
50
50
  PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
51
51
  PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
52
- PlaneTrackerUserActions["SET_TYPE_PRIORITY_LIST"] = "setTypePriorityList.cgi";
53
52
  PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
54
53
  PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
55
54
  PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
@@ -76,33 +75,19 @@ exports.planeTrackerUserActionData = zod_1.z.discriminatedUnion('cgi', [
76
75
  cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_PRIORITY_LIST),
77
76
  ip: zod_1.z.string(),
78
77
  params: apiStringUserSchema,
79
- postJsonBody: zod_1.z.object({
80
- priorityList: zod_1.z.array(zod_1.z.string()),
81
- }),
82
- }),
83
- zod_1.z.object({
84
- cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST),
85
- ip: zod_1.z.string(),
86
- params: apiStringUserSchema,
87
- postJsonBody: zod_1.z.object({
88
- typePriorityList: zod_1.z.array(zod_1.z.string()),
89
- }),
78
+ postJsonBody: PlaneTrackerAPI_1.priorityListSchema,
90
79
  }),
91
80
  zod_1.z.object({
92
81
  cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_BLACK_LIST),
93
82
  ip: zod_1.z.string(),
94
83
  params: apiStringUserSchema,
95
- postJsonBody: zod_1.z.object({
96
- blackList: zod_1.z.array(zod_1.z.string()),
97
- }),
84
+ postJsonBody: PlaneTrackerAPI_1.blackListSchema,
98
85
  }),
99
86
  zod_1.z.object({
100
87
  cgi: zod_1.z.literal(PlaneTrackerUserActions.SET_WHITE_LIST),
101
88
  ip: zod_1.z.string(),
102
89
  params: apiStringUserSchema,
103
- postJsonBody: zod_1.z.object({
104
- whiteList: zod_1.z.array(zod_1.z.string()),
105
- }),
90
+ postJsonBody: PlaneTrackerAPI_1.whiteListSchema,
106
91
  }),
107
92
  zod_1.z.object({
108
93
  cgi: zod_1.z.literal(PlaneTrackerUserActions.GO_TO_COORDINATES),
@@ -174,7 +159,6 @@ const ptrEventsDataSchema = zod_1.z.discriminatedUnion('type', [
174
159
  PlaneTrackerUserActions.TRACK_ICAO,
175
160
  PlaneTrackerUserActions.RESET_ICAO,
176
161
  PlaneTrackerUserActions.SET_PRIORITY_LIST,
177
- PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST,
178
162
  PlaneTrackerUserActions.SET_BLACK_LIST,
179
163
  PlaneTrackerUserActions.SET_WHITE_LIST,
180
164
  PlaneTrackerUserActions.GO_TO_COORDINATES,
@@ -113,7 +113,12 @@ export class CamStreamerAPI extends BasicAPI {
113
113
  await this._postUrlEncoded(`${BASE_PATH}/set_stream_active.cgi`, { stream_id: streamId, active: active ? 1 : 0 }, options);
114
114
  }
115
115
  async deleteStream(streamId, options) {
116
- await this._postUrlEncoded(`${BASE_PATH}/remove.cgi`, { stream_id: streamId }, options);
116
+ const streamList = await this.getStreamList(options);
117
+ const filteredList = streamList.filter((stream) => !('streamId' in stream) || stream.streamId !== streamId);
118
+ if (filteredList.length === streamList.length) {
119
+ return;
120
+ }
121
+ await this.setStreamList(filteredList, options);
117
122
  }
118
123
  async listFiles(options) {
119
124
  const res = await this._getJson(`${BASE_PATH}/upload_audio.cgi`, { action: 'list' }, options);
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { blackListSchema, cameraSettingsSchema, flightInfoSchema, getIcaoSchema, mapInfoSchema, priorityListSchema, serverSettingsSchema, trackingModeSchema, typePriorityListSchema, whiteListSchema, wsAliasResponseSchema, zonesSchema, } from './types/PlaneTrackerAPI';
2
+ import { blackListSchema, cameraSettingsSchema, flightInfoSchema, getIcaoSchema, mapInfoSchema, priorityListSchema, serverSettingsSchema, trackingModeSchema, whiteListSchema, wsAliasResponseSchema, zonesSchema, } from './types/PlaneTrackerAPI';
3
3
  import { CannotSetCoordsInAutoModeError, ImportSettingsError, InvalidAltitudeError, InvalidLatLngError, ResetCalibrationError, ServerError, BadRequestError, } from './errors/errors';
4
4
  import { BasicAPI } from './internal/BasicAPI';
5
5
  const BASE_PATH = '/local/planetracker';
@@ -118,31 +118,24 @@ export class PlaneTrackerAPI extends BasicAPI {
118
118
  }
119
119
  async getPriorityList(options) {
120
120
  const res = await this._getJson(`${BASE_PATH}/package/getPriorityList.cgi`, undefined, options);
121
- return priorityListSchema.parse(res).priorityList;
121
+ return priorityListSchema.parse(res);
122
122
  }
123
123
  async setPriorityList(priorityList, options) {
124
- await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, { priorityList }, this.apiUser, options);
125
- }
126
- async getTypePriorityList(options) {
127
- const res = await this._getJson(`${BASE_PATH}/package/getTypePriorityList.cgi`, undefined, options);
128
- return typePriorityListSchema.parse(res).typePriorityList;
129
- }
130
- async setTypePriorityList(typePriorityList, options) {
131
- await this._postJsonEncoded(`${BASE_PATH}/package/setTypePriorityList.cgi`, { typePriorityList }, this.apiUser, options);
124
+ await this._postJsonEncoded(`${BASE_PATH}/package/setPriorityList.cgi`, priorityList, this.apiUser, options);
132
125
  }
133
126
  async getWhiteList(options) {
134
127
  const res = await this._getJson(`${BASE_PATH}/package/getWhiteList.cgi`, undefined, options);
135
- return whiteListSchema.parse(res).whiteList;
128
+ return whiteListSchema.parse(res);
136
129
  }
137
130
  async setWhiteList(whiteList, options) {
138
- await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, { whiteList }, this.apiUser, options);
131
+ await this._postJsonEncoded(`${BASE_PATH}/package/setWhiteList.cgi`, whiteList, this.apiUser, options);
139
132
  }
140
133
  async getBlackList(options) {
141
134
  const res = await this._getJson(`${BASE_PATH}/package/getBlackList.cgi`, undefined, options);
142
- return blackListSchema.parse(res).blackList;
135
+ return blackListSchema.parse(res);
143
136
  }
144
137
  async setBlackList(blackList, options) {
145
- await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, { blackList }, this.apiUser, options);
138
+ await this._postJsonEncoded(`${BASE_PATH}/package/setBlackList.cgi`, blackList, this.apiUser, options);
146
139
  }
147
140
  async fetchMapInfo(options) {
148
141
  const res = await this._getJson(`${BASE_PATH}/package/getMapInfo.cgi`, undefined, options);
@@ -277,17 +277,24 @@ export const flightInfoSchema = z.object({
277
277
  }))
278
278
  .optional(),
279
279
  });
280
- export const typePriorityListSchema = z.object({
281
- typePriorityList: z.array(z.string()).default([]),
280
+ export const listEntryDomainSchema = z.enum(['adsb', 'remoteId']);
281
+ export const listEntryIdTypeSchema = z.enum(['icao', 'type_icao', 'drone_mac', 'operator_mac', 'category']);
282
+ export const listEntrySchema = z.object({
283
+ domain: listEntryDomainSchema,
284
+ idType: listEntryIdTypeSchema,
285
+ idValue: z.string().min(1),
282
286
  });
283
- export const priorityListSchema = z.object({
284
- priorityList: z.array(z.string()).default([]),
287
+ export const priorityListEntrySchema = listEntrySchema.extend({
288
+ priority: z.number().int().min(1),
285
289
  });
286
290
  export const whiteListSchema = z.object({
287
- whiteList: z.array(z.string()).default([]),
291
+ list: z.array(listEntrySchema).default([]),
288
292
  });
289
293
  export const blackListSchema = z.object({
290
- blackList: z.array(z.string()).default([]),
294
+ list: z.array(listEntrySchema).default([]),
295
+ });
296
+ export const priorityListSchema = z.object({
297
+ list: z.array(priorityListEntrySchema).default([]),
291
298
  });
292
299
  export const mapTypeSchema = z.enum(['roadmap', 'satellite']);
293
300
  export const mapInfoSchema = z.object({
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { trackingModeSchema, zonesSchema } from '../PlaneTrackerAPI';
2
+ import { blackListSchema, priorityListSchema, trackingModeSchema, whiteListSchema, zonesSchema, } from '../PlaneTrackerAPI';
3
3
  const apiFlightDataSchema = z.object({
4
4
  icao: z.string(),
5
5
  lat: z.number(),
@@ -46,7 +46,6 @@ export var PlaneTrackerUserActions;
46
46
  PlaneTrackerUserActions["TRACK_ICAO"] = "trackIcao.cgi";
47
47
  PlaneTrackerUserActions["RESET_ICAO"] = "resetIcao.cgi";
48
48
  PlaneTrackerUserActions["SET_PRIORITY_LIST"] = "setPriorityList.cgi";
49
- PlaneTrackerUserActions["SET_TYPE_PRIORITY_LIST"] = "setTypePriorityList.cgi";
50
49
  PlaneTrackerUserActions["SET_BLACK_LIST"] = "setBlackList.cgi";
51
50
  PlaneTrackerUserActions["SET_WHITE_LIST"] = "setWhiteList.cgi";
52
51
  PlaneTrackerUserActions["GO_TO_COORDINATES"] = "goToCoordinates.cgi";
@@ -73,33 +72,19 @@ export const planeTrackerUserActionData = z.discriminatedUnion('cgi', [
73
72
  cgi: z.literal(PlaneTrackerUserActions.SET_PRIORITY_LIST),
74
73
  ip: z.string(),
75
74
  params: apiStringUserSchema,
76
- postJsonBody: z.object({
77
- priorityList: z.array(z.string()),
78
- }),
79
- }),
80
- z.object({
81
- cgi: z.literal(PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST),
82
- ip: z.string(),
83
- params: apiStringUserSchema,
84
- postJsonBody: z.object({
85
- typePriorityList: z.array(z.string()),
86
- }),
75
+ postJsonBody: priorityListSchema,
87
76
  }),
88
77
  z.object({
89
78
  cgi: z.literal(PlaneTrackerUserActions.SET_BLACK_LIST),
90
79
  ip: z.string(),
91
80
  params: apiStringUserSchema,
92
- postJsonBody: z.object({
93
- blackList: z.array(z.string()),
94
- }),
81
+ postJsonBody: blackListSchema,
95
82
  }),
96
83
  z.object({
97
84
  cgi: z.literal(PlaneTrackerUserActions.SET_WHITE_LIST),
98
85
  ip: z.string(),
99
86
  params: apiStringUserSchema,
100
- postJsonBody: z.object({
101
- whiteList: z.array(z.string()),
102
- }),
87
+ postJsonBody: whiteListSchema,
103
88
  }),
104
89
  z.object({
105
90
  cgi: z.literal(PlaneTrackerUserActions.GO_TO_COORDINATES),
@@ -171,7 +156,6 @@ const ptrEventsDataSchema = z.discriminatedUnion('type', [
171
156
  PlaneTrackerUserActions.TRACK_ICAO,
172
157
  PlaneTrackerUserActions.RESET_ICAO,
173
158
  PlaneTrackerUserActions.SET_PRIORITY_LIST,
174
- PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST,
175
159
  PlaneTrackerUserActions.SET_BLACK_LIST,
176
160
  PlaneTrackerUserActions.SET_WHITE_LIST,
177
161
  PlaneTrackerUserActions.GO_TO_COORDINATES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -1,5 +1,5 @@
1
1
  import { IClient, TResponse } from './internal/types';
2
- import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TTypePriorityList, TWhiteList, TZones } from './types/PlaneTrackerAPI';
2
+ import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TWhiteList, TZones } from './types/PlaneTrackerAPI';
3
3
  import { THttpRequestOptions } from './types/common';
4
4
  import { BasicAPI } from './internal/BasicAPI';
5
5
  export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> extends BasicAPI<Client> {
@@ -185,14 +185,31 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> ext
185
185
  startTrackingPlane(icao: ICAO, options?: THttpRequestOptions): Promise<void>;
186
186
  stopTrackingPlane(options?: THttpRequestOptions): Promise<void>;
187
187
  getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
188
- getPriorityList(options?: THttpRequestOptions): Promise<string[]>;
189
- setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<void>;
190
- getTypePriorityList(options?: THttpRequestOptions): Promise<string[]>;
191
- setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<void>;
192
- getWhiteList(options?: THttpRequestOptions): Promise<string[]>;
193
- setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<void>;
194
- getBlackList(options?: THttpRequestOptions): Promise<string[]>;
195
- setBlackList(blackList: TBlackList['blackList'], options?: THttpRequestOptions): Promise<void>;
188
+ getPriorityList(options?: THttpRequestOptions): Promise<{
189
+ list: {
190
+ priority: number;
191
+ domain: "adsb" | "remoteId";
192
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
193
+ idValue: string;
194
+ }[];
195
+ }>;
196
+ setPriorityList(priorityList: TPriorityList, options?: THttpRequestOptions): Promise<void>;
197
+ getWhiteList(options?: THttpRequestOptions): Promise<{
198
+ list: {
199
+ domain: "adsb" | "remoteId";
200
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
201
+ idValue: string;
202
+ }[];
203
+ }>;
204
+ setWhiteList(whiteList: TWhiteList, options?: THttpRequestOptions): Promise<void>;
205
+ getBlackList(options?: THttpRequestOptions): Promise<{
206
+ list: {
207
+ domain: "adsb" | "remoteId";
208
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
209
+ idValue: string;
210
+ }[];
211
+ }>;
212
+ setBlackList(blackList: TBlackList, options?: THttpRequestOptions): Promise<void>;
196
213
  fetchMapInfo(options?: THttpRequestOptions): Promise<{
197
214
  minZoom: number;
198
215
  maxZoom: number;
@@ -804,38 +804,132 @@ export declare const flightInfoSchema: z.ZodObject<{
804
804
  }[] | undefined;
805
805
  }>;
806
806
  export type TFlightInfo = z.infer<typeof flightInfoSchema>;
807
- export declare const typePriorityListSchema: z.ZodObject<{
808
- typePriorityList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
807
+ export declare const listEntryDomainSchema: z.ZodEnum<["adsb", "remoteId"]>;
808
+ export declare const listEntryIdTypeSchema: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
809
+ export type TListEntryDomain = z.infer<typeof listEntryDomainSchema>;
810
+ export type TListEntryIdType = z.infer<typeof listEntryIdTypeSchema>;
811
+ export declare const listEntrySchema: z.ZodObject<{
812
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
813
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
814
+ idValue: z.ZodString;
809
815
  }, "strip", z.ZodTypeAny, {
810
- typePriorityList: string[];
816
+ domain: "adsb" | "remoteId";
817
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
818
+ idValue: string;
811
819
  }, {
812
- typePriorityList?: string[] | undefined;
820
+ domain: "adsb" | "remoteId";
821
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
822
+ idValue: string;
813
823
  }>;
814
- export type TTypePriorityList = z.infer<typeof typePriorityListSchema>;
815
- export declare const priorityListSchema: z.ZodObject<{
816
- priorityList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
824
+ export declare const priorityListEntrySchema: z.ZodObject<{
825
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
826
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
827
+ idValue: z.ZodString;
828
+ } & {
829
+ priority: z.ZodNumber;
817
830
  }, "strip", z.ZodTypeAny, {
818
- priorityList: string[];
831
+ priority: number;
832
+ domain: "adsb" | "remoteId";
833
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
834
+ idValue: string;
819
835
  }, {
820
- priorityList?: string[] | undefined;
836
+ priority: number;
837
+ domain: "adsb" | "remoteId";
838
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
839
+ idValue: string;
821
840
  }>;
822
- export type TPriorityList = z.infer<typeof priorityListSchema>;
841
+ export type TListEntry = z.infer<typeof listEntrySchema>;
842
+ export type TPriorityListEntry = z.infer<typeof priorityListEntrySchema>;
823
843
  export declare const whiteListSchema: z.ZodObject<{
824
- whiteList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
844
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
845
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
846
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
847
+ idValue: z.ZodString;
848
+ }, "strip", z.ZodTypeAny, {
849
+ domain: "adsb" | "remoteId";
850
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
851
+ idValue: string;
852
+ }, {
853
+ domain: "adsb" | "remoteId";
854
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
855
+ idValue: string;
856
+ }>, "many">>;
825
857
  }, "strip", z.ZodTypeAny, {
826
- whiteList: string[];
858
+ list: {
859
+ domain: "adsb" | "remoteId";
860
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
861
+ idValue: string;
862
+ }[];
827
863
  }, {
828
- whiteList?: string[] | undefined;
864
+ list?: {
865
+ domain: "adsb" | "remoteId";
866
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
867
+ idValue: string;
868
+ }[] | undefined;
829
869
  }>;
830
- export type TWhiteList = z.infer<typeof whiteListSchema>;
831
870
  export declare const blackListSchema: z.ZodObject<{
832
- blackList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
871
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
872
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
873
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
874
+ idValue: z.ZodString;
875
+ }, "strip", z.ZodTypeAny, {
876
+ domain: "adsb" | "remoteId";
877
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
878
+ idValue: string;
879
+ }, {
880
+ domain: "adsb" | "remoteId";
881
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
882
+ idValue: string;
883
+ }>, "many">>;
833
884
  }, "strip", z.ZodTypeAny, {
834
- blackList: string[];
885
+ list: {
886
+ domain: "adsb" | "remoteId";
887
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
888
+ idValue: string;
889
+ }[];
835
890
  }, {
836
- blackList?: string[] | undefined;
891
+ list?: {
892
+ domain: "adsb" | "remoteId";
893
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
894
+ idValue: string;
895
+ }[] | undefined;
837
896
  }>;
897
+ export declare const priorityListSchema: z.ZodObject<{
898
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
899
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
900
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
901
+ idValue: z.ZodString;
902
+ } & {
903
+ priority: z.ZodNumber;
904
+ }, "strip", z.ZodTypeAny, {
905
+ priority: number;
906
+ domain: "adsb" | "remoteId";
907
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
908
+ idValue: string;
909
+ }, {
910
+ priority: number;
911
+ domain: "adsb" | "remoteId";
912
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
913
+ idValue: string;
914
+ }>, "many">>;
915
+ }, "strip", z.ZodTypeAny, {
916
+ list: {
917
+ priority: number;
918
+ domain: "adsb" | "remoteId";
919
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
920
+ idValue: string;
921
+ }[];
922
+ }, {
923
+ list?: {
924
+ priority: number;
925
+ domain: "adsb" | "remoteId";
926
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
927
+ idValue: string;
928
+ }[] | undefined;
929
+ }>;
930
+ export type TWhiteList = z.infer<typeof whiteListSchema>;
838
931
  export type TBlackList = z.infer<typeof blackListSchema>;
932
+ export type TPriorityList = z.infer<typeof priorityListSchema>;
839
933
  export declare const mapTypeSchema: z.ZodEnum<["roadmap", "satellite"]>;
840
934
  export type TMapType = z.infer<typeof mapTypeSchema>;
841
935
  export declare const mapInfoSchema: z.ZodObject<{
@@ -99,7 +99,6 @@ export declare enum PlaneTrackerUserActions {
99
99
  TRACK_ICAO = "trackIcao.cgi",
100
100
  RESET_ICAO = "resetIcao.cgi",
101
101
  SET_PRIORITY_LIST = "setPriorityList.cgi",
102
- SET_TYPE_PRIORITY_LIST = "setTypePriorityList.cgi",
103
102
  SET_BLACK_LIST = "setBlackList.cgi",
104
103
  SET_WHITE_LIST = "setWhiteList.cgi",
105
104
  GO_TO_COORDINATES = "goToCoordinates.cgi",
@@ -196,11 +195,37 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
196
195
  userPriority: string;
197
196
  }>;
198
197
  postJsonBody: z.ZodObject<{
199
- priorityList: z.ZodArray<z.ZodString, "many">;
198
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
199
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
200
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
201
+ idValue: z.ZodString;
202
+ } & {
203
+ priority: z.ZodNumber;
204
+ }, "strip", z.ZodTypeAny, {
205
+ priority: number;
206
+ domain: "adsb" | "remoteId";
207
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
208
+ idValue: string;
209
+ }, {
210
+ priority: number;
211
+ domain: "adsb" | "remoteId";
212
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
213
+ idValue: string;
214
+ }>, "many">>;
200
215
  }, "strip", z.ZodTypeAny, {
201
- priorityList: string[];
216
+ list: {
217
+ priority: number;
218
+ domain: "adsb" | "remoteId";
219
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
220
+ idValue: string;
221
+ }[];
202
222
  }, {
203
- priorityList: string[];
223
+ list?: {
224
+ priority: number;
225
+ domain: "adsb" | "remoteId";
226
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
227
+ idValue: string;
228
+ }[] | undefined;
204
229
  }>;
205
230
  }, "strip", z.ZodTypeAny, {
206
231
  params: {
@@ -211,7 +236,12 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
211
236
  ip: string;
212
237
  cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST;
213
238
  postJsonBody: {
214
- priorityList: string[];
239
+ list: {
240
+ priority: number;
241
+ domain: "adsb" | "remoteId";
242
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
243
+ idValue: string;
244
+ }[];
215
245
  };
216
246
  }, {
217
247
  params: {
@@ -222,52 +252,12 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
222
252
  ip: string;
223
253
  cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST;
224
254
  postJsonBody: {
225
- priorityList: string[];
226
- };
227
- }>, z.ZodObject<{
228
- cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST>;
229
- ip: z.ZodString;
230
- params: z.ZodObject<{
231
- userId: z.ZodString;
232
- userName: z.ZodString;
233
- userPriority: z.ZodString;
234
- }, "strip", z.ZodTypeAny, {
235
- userId: string;
236
- userName: string;
237
- userPriority: string;
238
- }, {
239
- userId: string;
240
- userName: string;
241
- userPriority: string;
242
- }>;
243
- postJsonBody: z.ZodObject<{
244
- typePriorityList: z.ZodArray<z.ZodString, "many">;
245
- }, "strip", z.ZodTypeAny, {
246
- typePriorityList: string[];
247
- }, {
248
- typePriorityList: string[];
249
- }>;
250
- }, "strip", z.ZodTypeAny, {
251
- params: {
252
- userId: string;
253
- userName: string;
254
- userPriority: string;
255
- };
256
- ip: string;
257
- cgi: PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST;
258
- postJsonBody: {
259
- typePriorityList: string[];
260
- };
261
- }, {
262
- params: {
263
- userId: string;
264
- userName: string;
265
- userPriority: string;
266
- };
267
- ip: string;
268
- cgi: PlaneTrackerUserActions.SET_TYPE_PRIORITY_LIST;
269
- postJsonBody: {
270
- typePriorityList: string[];
255
+ list?: {
256
+ priority: number;
257
+ domain: "adsb" | "remoteId";
258
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
259
+ idValue: string;
260
+ }[] | undefined;
271
261
  };
272
262
  }>, z.ZodObject<{
273
263
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>;
@@ -286,11 +276,31 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
286
276
  userPriority: string;
287
277
  }>;
288
278
  postJsonBody: z.ZodObject<{
289
- blackList: z.ZodArray<z.ZodString, "many">;
279
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
280
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
281
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
282
+ idValue: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ domain: "adsb" | "remoteId";
285
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
286
+ idValue: string;
287
+ }, {
288
+ domain: "adsb" | "remoteId";
289
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
290
+ idValue: string;
291
+ }>, "many">>;
290
292
  }, "strip", z.ZodTypeAny, {
291
- blackList: string[];
293
+ list: {
294
+ domain: "adsb" | "remoteId";
295
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
296
+ idValue: string;
297
+ }[];
292
298
  }, {
293
- blackList: string[];
299
+ list?: {
300
+ domain: "adsb" | "remoteId";
301
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
302
+ idValue: string;
303
+ }[] | undefined;
294
304
  }>;
295
305
  }, "strip", z.ZodTypeAny, {
296
306
  params: {
@@ -301,7 +311,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
301
311
  ip: string;
302
312
  cgi: PlaneTrackerUserActions.SET_BLACK_LIST;
303
313
  postJsonBody: {
304
- blackList: string[];
314
+ list: {
315
+ domain: "adsb" | "remoteId";
316
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
317
+ idValue: string;
318
+ }[];
305
319
  };
306
320
  }, {
307
321
  params: {
@@ -312,7 +326,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
312
326
  ip: string;
313
327
  cgi: PlaneTrackerUserActions.SET_BLACK_LIST;
314
328
  postJsonBody: {
315
- blackList: string[];
329
+ list?: {
330
+ domain: "adsb" | "remoteId";
331
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
332
+ idValue: string;
333
+ }[] | undefined;
316
334
  };
317
335
  }>, z.ZodObject<{
318
336
  cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_WHITE_LIST>;
@@ -331,11 +349,31 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
331
349
  userPriority: string;
332
350
  }>;
333
351
  postJsonBody: z.ZodObject<{
334
- whiteList: z.ZodArray<z.ZodString, "many">;
352
+ list: z.ZodDefault<z.ZodArray<z.ZodObject<{
353
+ domain: z.ZodEnum<["adsb", "remoteId"]>;
354
+ idType: z.ZodEnum<["icao", "type_icao", "drone_mac", "operator_mac", "category"]>;
355
+ idValue: z.ZodString;
356
+ }, "strip", z.ZodTypeAny, {
357
+ domain: "adsb" | "remoteId";
358
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
359
+ idValue: string;
360
+ }, {
361
+ domain: "adsb" | "remoteId";
362
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
363
+ idValue: string;
364
+ }>, "many">>;
335
365
  }, "strip", z.ZodTypeAny, {
336
- whiteList: string[];
366
+ list: {
367
+ domain: "adsb" | "remoteId";
368
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
369
+ idValue: string;
370
+ }[];
337
371
  }, {
338
- whiteList: string[];
372
+ list?: {
373
+ domain: "adsb" | "remoteId";
374
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
375
+ idValue: string;
376
+ }[] | undefined;
339
377
  }>;
340
378
  }, "strip", z.ZodTypeAny, {
341
379
  params: {
@@ -346,7 +384,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
346
384
  ip: string;
347
385
  cgi: PlaneTrackerUserActions.SET_WHITE_LIST;
348
386
  postJsonBody: {
349
- whiteList: string[];
387
+ list: {
388
+ domain: "adsb" | "remoteId";
389
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
390
+ idValue: string;
391
+ }[];
350
392
  };
351
393
  }, {
352
394
  params: {
@@ -357,7 +399,11 @@ export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi",
357
399
  ip: string;
358
400
  cgi: PlaneTrackerUserActions.SET_WHITE_LIST;
359
401
  postJsonBody: {
360
- whiteList: string[];
402
+ list?: {
403
+ domain: "adsb" | "remoteId";
404
+ idType: "icao" | "type_icao" | "drone_mac" | "operator_mac" | "category";
405
+ idValue: string;
406
+ }[] | undefined;
361
407
  };
362
408
  }>, z.ZodObject<{
363
409
  cgi: z.ZodLiteral<PlaneTrackerUserActions.GO_TO_COORDINATES>;
@@ -876,7 +922,7 @@ declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
876
922
  lat?: string | undefined;
877
923
  lon?: string | undefined;
878
924
  }>;
879
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_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]>;
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]>;
880
926
  postJsonBody: z.ZodAny;
881
927
  }, "strip", z.ZodTypeAny, {
882
928
  params: {
@@ -1156,7 +1202,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1156
1202
  lat?: string | undefined;
1157
1203
  lon?: string | undefined;
1158
1204
  }>;
1159
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_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]>;
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]>;
1160
1206
  postJsonBody: z.ZodAny;
1161
1207
  }, "strip", z.ZodTypeAny, {
1162
1208
  params: {
@@ -1576,7 +1622,7 @@ export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
1576
1622
  lat?: string | undefined;
1577
1623
  lon?: string | undefined;
1578
1624
  }>;
1579
- cgi: z.ZodEnum<[PlaneTrackerUserActions.TRACK_ICAO, PlaneTrackerUserActions.RESET_ICAO, PlaneTrackerUserActions.SET_PRIORITY_LIST, PlaneTrackerUserActions.SET_TYPE_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]>;
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]>;
1580
1626
  postJsonBody: z.ZodAny;
1581
1627
  }, "strip", z.ZodTypeAny, {
1582
1628
  params: {