UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

1,638 lines (1,637 loc) 47.2 kB
import { z } from 'zod'; declare const apiFlightDataSchema: z.ZodObject<{ icao: z.ZodString; lat: z.ZodNumber; lon: z.ZodNumber; heading: z.ZodNumber; groundSpeed: z.ZodNumber; altitudeAMSL: z.ZodNumber; cameraDistance: z.ZodNumber; autoTrackingOrder: z.ZodNumber; whiteListed: z.ZodBoolean; blackListed: z.ZodBoolean; priorityListed: z.ZodBoolean; autoSelectionIgnored: z.ZodBoolean; signalQuality: z.ZodNumber; emitterCategorySet: z.ZodDefault<z.ZodNumber>; emitterCategory: z.ZodDefault<z.ZodNumber>; emergencyState: z.ZodBoolean; emergencyStatusMessage: z.ZodString; }, "strip", z.ZodTypeAny, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }>; declare const apiUserSchema: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>; declare const apiStringUserSchema: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; export declare enum PlaneTrackerWsEvents { FLIGHT_LIST = "FLIGHT_LIST", CAMERA_POSITION = "CAMERA_POSITION", TRACKING_START = "TRACKING_START", TRACKING_STOP = "TRACKING_STOP", USER_ACTION = "USER_ACTION", CONNECTED_USERS = "CONNECTED_USERS", FORCE_TRACKING_STATUS = "FORCE_TRACKING_STATUS" } export declare enum PlaneTrackerUserActions { TRACK_ICAO = "trackIcao.cgi", RESET_ICAO = "resetIcao.cgi", SET_PRIORITY_LIST = "setPriorityList.cgi", SET_BLACK_LIST = "setBlackList.cgi", SET_WHITE_LIST = "setWhiteList.cgi", GO_TO_COORDINATES = "goToCoordinates.cgi", SET_TRACKING_MODE = "setTrackingMode.cgi", SET_ZONES = "setZones.cgi", RESET_PTZ_CALIBRATION = "resetPtzCalibration.cgi", LOCK_API = "lockApi.cgi", UNLOCK_API = "unlockApi.cgi" } export declare const planeTrackerUserActionData: z.ZodDiscriminatedUnion<"cgi", [z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.TRACK_ICAO>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; } & { icao: z.ZodString; }, "strip", z.ZodTypeAny, { icao: string; userId: string; userName: string; userPriority: string; }, { icao: string; userId: string; userName: string; userPriority: string; }>; }, "strip", z.ZodTypeAny, { params: { icao: string; userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.TRACK_ICAO; }, { params: { icao: string; userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.TRACK_ICAO; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.RESET_ICAO>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.RESET_ICAO; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.RESET_ICAO; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_PRIORITY_LIST>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; postJsonBody: z.ZodObject<{ priorityList: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { priorityList: string[]; }, { priorityList: string[]; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST; postJsonBody: { priorityList: string[]; }; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_PRIORITY_LIST; postJsonBody: { priorityList: string[]; }; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_BLACK_LIST>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; postJsonBody: z.ZodObject<{ blackList: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { blackList: string[]; }, { blackList: string[]; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_BLACK_LIST; postJsonBody: { blackList: string[]; }; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_BLACK_LIST; postJsonBody: { blackList: string[]; }; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_WHITE_LIST>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; postJsonBody: z.ZodObject<{ whiteList: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { whiteList: string[]; }, { whiteList: string[]; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_WHITE_LIST; postJsonBody: { whiteList: string[]; }; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_WHITE_LIST; postJsonBody: { whiteList: string[]; }; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.GO_TO_COORDINATES>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; } & { lat: z.ZodString; lon: z.ZodString; }, "strip", z.ZodTypeAny, { lat: string; lon: string; userId: string; userName: string; userPriority: string; }, { lat: string; lon: string; userId: string; userName: string; userPriority: string; }>; }, "strip", z.ZodTypeAny, { params: { lat: string; lon: string; userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.GO_TO_COORDINATES; }, { params: { lat: string; lon: string; userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.GO_TO_COORDINATES; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_TRACKING_MODE>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; postJsonBody: z.ZodObject<{ mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>; }, "strip", z.ZodTypeAny, { mode: "MANUAL" | "AUTOMATIC"; }, { mode: "MANUAL" | "AUTOMATIC"; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_TRACKING_MODE; postJsonBody: { mode: "MANUAL" | "AUTOMATIC"; }; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_TRACKING_MODE; postJsonBody: { mode: "MANUAL" | "AUTOMATIC"; }; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.SET_ZONES>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; postJsonBody: z.ZodObject<{ zones: z.ZodDefault<z.ZodArray<z.ZodObject<{ enabled: z.ZodDefault<z.ZodBoolean>; name: z.ZodOptional<z.ZodString>; area: z.ZodArray<z.ZodObject<{ lat: z.ZodNumber; lon: z.ZodNumber; }, "strip", z.ZodTypeAny, { lat: number; lon: number; }, { lat: number; lon: number; }>, "atleastone">; minAltitudeAmsl: z.ZodOptional<z.ZodNumber>; maxAltitudeAmsl: z.ZodOptional<z.ZodNumber>; minSpeedKmph: z.ZodOptional<z.ZodNumber>; maxSpeedKmph: z.ZodOptional<z.ZodNumber>; flightDirection: z.ZodDefault<z.ZodEnum<["all", "arrival", "departure"]>>; weight: z.ZodNumber; }, "strip", z.ZodTypeAny, { enabled: boolean; area: [{ lat: number; lon: number; }, ...{ lat: number; lon: number; }[]]; flightDirection: "all" | "arrival" | "departure"; weight: number; name?: string | undefined; minAltitudeAmsl?: number | undefined; maxAltitudeAmsl?: number | undefined; minSpeedKmph?: number | undefined; maxSpeedKmph?: number | undefined; }, { area: [{ lat: number; lon: number; }, ...{ lat: number; lon: number; }[]]; weight: number; name?: string | undefined; enabled?: boolean | undefined; minAltitudeAmsl?: number | undefined; maxAltitudeAmsl?: number | undefined; minSpeedKmph?: number | undefined; maxSpeedKmph?: number | undefined; flightDirection?: "all" | "arrival" | "departure" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { zones: { enabled: boolean; area: [{ lat: number; lon: number; }, ...{ lat: number; lon: number; }[]]; flightDirection: "all" | "arrival" | "departure"; weight: number; name?: string | undefined; minAltitudeAmsl?: number | undefined; maxAltitudeAmsl?: number | undefined; minSpeedKmph?: number | undefined; maxSpeedKmph?: number | undefined; }[]; }, { zones?: { area: [{ lat: number; lon: number; }, ...{ lat: number; lon: number; }[]]; weight: number; name?: string | undefined; enabled?: boolean | undefined; minAltitudeAmsl?: number | undefined; maxAltitudeAmsl?: number | undefined; minSpeedKmph?: number | undefined; maxSpeedKmph?: number | undefined; flightDirection?: "all" | "arrival" | "departure" | undefined; }[] | undefined; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_ZONES; postJsonBody: { zones: { enabled: boolean; area: [{ lat: number; lon: number; }, ...{ lat: number; lon: number; }[]]; flightDirection: "all" | "arrival" | "departure"; weight: number; name?: string | undefined; minAltitudeAmsl?: number | undefined; maxAltitudeAmsl?: number | undefined; minSpeedKmph?: number | undefined; maxSpeedKmph?: number | undefined; }[]; }; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.SET_ZONES; postJsonBody: { zones?: { area: [{ lat: number; lon: number; }, ...{ lat: number; lon: number; }[]]; weight: number; name?: string | undefined; enabled?: boolean | undefined; minAltitudeAmsl?: number | undefined; maxAltitudeAmsl?: number | undefined; minSpeedKmph?: number | undefined; maxSpeedKmph?: number | undefined; flightDirection?: "all" | "arrival" | "departure" | undefined; }[] | undefined; }; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.RESET_PTZ_CALIBRATION>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.RESET_PTZ_CALIBRATION; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.RESET_PTZ_CALIBRATION; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.LOCK_API>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; } & { timeout: z.ZodString; }, "strip", z.ZodTypeAny, { timeout: string; userId: string; userName: string; userPriority: string; }, { timeout: string; userId: string; userName: string; userPriority: string; }>; }, "strip", z.ZodTypeAny, { params: { timeout: string; userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.LOCK_API; }, { params: { timeout: string; userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.LOCK_API; }>, z.ZodObject<{ cgi: z.ZodLiteral<PlaneTrackerUserActions.UNLOCK_API>; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; }, { userId: string; userName: string; userPriority: string; }>; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.UNLOCK_API; }, { params: { userId: string; userName: string; userPriority: string; }; ip: string; cgi: PlaneTrackerUserActions.UNLOCK_API; }>]>; declare const ptrEventsDataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"CAMERA_POSITION">; lat: z.ZodNumber; lon: z.ZodNumber; azimuth: z.ZodNumber; elevation: z.ZodNumber; fov: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; }, { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; }>, z.ZodObject<{ type: z.ZodLiteral<"TRACKING_START">; icao: z.ZodString; }, "strip", z.ZodTypeAny, { type: "TRACKING_START"; icao: string; }, { type: "TRACKING_START"; icao: string; }>, z.ZodObject<{ type: z.ZodLiteral<"TRACKING_STOP">; }, "strip", z.ZodTypeAny, { type: "TRACKING_STOP"; }, { type: "TRACKING_STOP"; }>, z.ZodObject<{ type: z.ZodLiteral<"FLIGHT_LIST">; list: z.ZodArray<z.ZodObject<{ icao: z.ZodString; lat: z.ZodNumber; lon: z.ZodNumber; heading: z.ZodNumber; groundSpeed: z.ZodNumber; altitudeAMSL: z.ZodNumber; cameraDistance: z.ZodNumber; autoTrackingOrder: z.ZodNumber; whiteListed: z.ZodBoolean; blackListed: z.ZodBoolean; priorityListed: z.ZodBoolean; autoSelectionIgnored: z.ZodBoolean; signalQuality: z.ZodNumber; emitterCategorySet: z.ZodDefault<z.ZodNumber>; emitterCategory: z.ZodDefault<z.ZodNumber>; emergencyState: z.ZodBoolean; emergencyStatusMessage: z.ZodString; }, "strip", z.ZodTypeAny, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }[]; }, { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"USER_ACTION">; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; } & { lat: z.ZodOptional<z.ZodString>; lon: z.ZodOptional<z.ZodString>; timeout: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }, { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }>; 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]>; postJsonBody: z.ZodAny; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; }, { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; }>, z.ZodObject<{ type: z.ZodLiteral<"CONNECTED_USERS">; users: z.ZodArray<z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>, "many">; }, "strip", z.ZodTypeAny, { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; }, { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"FORCE_TRACKING_STATUS">; enabled: z.ZodBoolean; icao: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; }, { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"API_LOCK_STATUS">; isLocked: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>>; }, "strip", z.ZodTypeAny, { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }, { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }>]>; export declare const ptrEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"init">; data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"CAMERA_POSITION">; lat: z.ZodNumber; lon: z.ZodNumber; azimuth: z.ZodNumber; elevation: z.ZodNumber; fov: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; }, { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; }>, z.ZodObject<{ type: z.ZodLiteral<"TRACKING_START">; icao: z.ZodString; }, "strip", z.ZodTypeAny, { type: "TRACKING_START"; icao: string; }, { type: "TRACKING_START"; icao: string; }>, z.ZodObject<{ type: z.ZodLiteral<"TRACKING_STOP">; }, "strip", z.ZodTypeAny, { type: "TRACKING_STOP"; }, { type: "TRACKING_STOP"; }>, z.ZodObject<{ type: z.ZodLiteral<"FLIGHT_LIST">; list: z.ZodArray<z.ZodObject<{ icao: z.ZodString; lat: z.ZodNumber; lon: z.ZodNumber; heading: z.ZodNumber; groundSpeed: z.ZodNumber; altitudeAMSL: z.ZodNumber; cameraDistance: z.ZodNumber; autoTrackingOrder: z.ZodNumber; whiteListed: z.ZodBoolean; blackListed: z.ZodBoolean; priorityListed: z.ZodBoolean; autoSelectionIgnored: z.ZodBoolean; signalQuality: z.ZodNumber; emitterCategorySet: z.ZodDefault<z.ZodNumber>; emitterCategory: z.ZodDefault<z.ZodNumber>; emergencyState: z.ZodBoolean; emergencyStatusMessage: z.ZodString; }, "strip", z.ZodTypeAny, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }[]; }, { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"USER_ACTION">; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; } & { lat: z.ZodOptional<z.ZodString>; lon: z.ZodOptional<z.ZodString>; timeout: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }, { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }>; 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]>; postJsonBody: z.ZodAny; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; }, { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; }>, z.ZodObject<{ type: z.ZodLiteral<"CONNECTED_USERS">; users: z.ZodArray<z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>, "many">; }, "strip", z.ZodTypeAny, { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; }, { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"FORCE_TRACKING_STATUS">; enabled: z.ZodBoolean; icao: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; }, { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"API_LOCK_STATUS">; isLocked: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>>; }, "strip", z.ZodTypeAny, { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }, { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }>]>; }, "strip", z.ZodTypeAny, { type: "init"; data: { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; } | { type: "TRACKING_START"; icao: string; } | { type: "TRACKING_STOP"; } | { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }[]; } | { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; } | { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; } | { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; } | { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }; }, { type: "init"; data: { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; } | { type: "TRACKING_START"; icao: string; } | { type: "TRACKING_STOP"; } | { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }[]; } | { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; } | { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; } | { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; } | { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"CAMERA_POSITION">; lat: z.ZodNumber; lon: z.ZodNumber; azimuth: z.ZodNumber; elevation: z.ZodNumber; fov: z.ZodNumber; }, "strip", z.ZodTypeAny, { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; }, { type: "CAMERA_POSITION"; lat: number; lon: number; azimuth: number; elevation: number; fov: number; }>, z.ZodObject<{ type: z.ZodLiteral<"TRACKING_START">; icao: z.ZodString; }, "strip", z.ZodTypeAny, { type: "TRACKING_START"; icao: string; }, { type: "TRACKING_START"; icao: string; }>, z.ZodObject<{ type: z.ZodLiteral<"TRACKING_STOP">; }, "strip", z.ZodTypeAny, { type: "TRACKING_STOP"; }, { type: "TRACKING_STOP"; }>, z.ZodObject<{ type: z.ZodLiteral<"FLIGHT_LIST">; list: z.ZodArray<z.ZodObject<{ icao: z.ZodString; lat: z.ZodNumber; lon: z.ZodNumber; heading: z.ZodNumber; groundSpeed: z.ZodNumber; altitudeAMSL: z.ZodNumber; cameraDistance: z.ZodNumber; autoTrackingOrder: z.ZodNumber; whiteListed: z.ZodBoolean; blackListed: z.ZodBoolean; priorityListed: z.ZodBoolean; autoSelectionIgnored: z.ZodBoolean; signalQuality: z.ZodNumber; emitterCategorySet: z.ZodDefault<z.ZodNumber>; emitterCategory: z.ZodDefault<z.ZodNumber>; emergencyState: z.ZodBoolean; emergencyStatusMessage: z.ZodString; }, "strip", z.ZodTypeAny, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }, { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emitterCategorySet: number; emitterCategory: number; emergencyState: boolean; emergencyStatusMessage: string; }[]; }, { type: "FLIGHT_LIST"; list: { icao: string; lat: number; lon: number; heading: number; groundSpeed: number; altitudeAMSL: number; cameraDistance: number; autoTrackingOrder: number; whiteListed: boolean; blackListed: boolean; priorityListed: boolean; autoSelectionIgnored: boolean; signalQuality: number; emergencyState: boolean; emergencyStatusMessage: string; emitterCategorySet?: number | undefined; emitterCategory?: number | undefined; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"USER_ACTION">; ip: z.ZodString; params: z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodString; } & { lat: z.ZodOptional<z.ZodString>; lon: z.ZodOptional<z.ZodString>; timeout: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }, { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }>; 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]>; postJsonBody: z.ZodAny; }, "strip", z.ZodTypeAny, { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; }, { params: { userId: string; userName: string; userPriority: string; timeout?: string | undefined; lat?: string | undefined; lon?: string | undefined; }; type: "USER_ACTION"; ip: string; cgi: PlaneTrackerUserActions; postJsonBody?: any; }>, z.ZodObject<{ type: z.ZodLiteral<"CONNECTED_USERS">; users: z.ZodArray<z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>, "many">; }, "strip", z.ZodTypeAny, { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; }, { type: "CONNECTED_USERS"; users: { ip: string; userId: string; userName: string; userPriority: number; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"FORCE_TRACKING_STATUS">; enabled: z.ZodBoolean; icao: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; }, { type: "FORCE_TRACKING_STATUS"; enabled: boolean; icao?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"API_LOCK_STATUS">; isLocked: z.ZodBoolean; user: z.ZodOptional<z.ZodObject<{ userId: z.ZodString; userName: z.ZodString; userPriority: z.ZodNumber; ip: z.ZodString; }, "strip", z.ZodTypeAny, { ip: string; userId: string; userName: string; userPriority: number; }, { ip: string; userId: string; userName: string; userPriority: number; }>>; }, "strip", z.ZodTypeAny, { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }, { type: "API_LOCK_STATUS"; isLocked: boolean; user?: { ip: string; userId: string; userName: string; userPriority: number; } | undefined; }>]>; export type TPlaneTrackerEvent = z.infer<typeof ptrEventsDataSchema>; export type TPlaneTrackerEventType = TPlaneTrackerEvent['type']; export type TPlaneTrackerEventOfType<T extends TPlaneTrackerEventType> = Extract<TPlaneTrackerEvent, { type: T; }>; export type TPlaneTrackerApiFlightData = z.infer<typeof apiFlightDataSchema>; export type TPlaneTrackerApiUser = z.infer<typeof apiUserSchema>; export type TPlaneTrackerStringApiUser = z.infer<typeof apiStringUserSchema>; export type TPlaneTrackerUserActionData = z.infer<typeof planeTrackerUserActionData>; export type TPlaneTrackerUserActionDataOfCgi<T extends PlaneTrackerUserActions> = Extract<TPlaneTrackerUserActionData, { cgi: T; }>; export {};