camstreamerlib 4.0.0-beta.99 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -15
- package/cjs/CamOverlayAPI.d.ts +145 -107
- package/cjs/CamOverlayAPI.js +14 -63
- package/cjs/CamScripterAPI.d.ts +5 -8
- package/cjs/CamScripterAPI.js +11 -29
- package/cjs/CamStreamerAPI.d.ts +2362 -806
- package/cjs/CamStreamerAPI.js +68 -76
- package/cjs/CamSwitcherAPI.d.ts +23 -22
- package/cjs/CamSwitcherAPI.js +30 -88
- package/cjs/PlaneTrackerAPI.d.ts +28 -30
- package/cjs/PlaneTrackerAPI.js +20 -75
- package/cjs/VapixAPI.d.ts +36 -23
- package/cjs/VapixAPI.js +227 -106
- package/cjs/errors/errors.d.ts +11 -5
- package/cjs/errors/errors.js +5 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/cjs/internal/BasicAPI.d.ts +15 -0
- package/cjs/internal/BasicAPI.js +93 -0
- package/cjs/internal/WsEvents.d.ts +1 -0
- package/cjs/internal/WsEvents.js +5 -0
- package/cjs/internal/constants.d.ts +1 -0
- package/cjs/internal/constants.js +2 -1
- package/cjs/internal/convertors.d.ts +6 -0
- package/cjs/internal/convertors.js +115 -0
- package/cjs/internal/transformers.js +8 -8
- package/cjs/internal/types.d.ts +3 -0
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +878 -358
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +54 -11
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +28 -28
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/index.d.ts +1 -0
- package/cjs/types/CamOverlayAPI/index.js +1 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/cjs/types/CamScripterAPI.d.ts +0 -11
- package/cjs/types/CamScripterAPI.js +1 -5
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +17745 -4940
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +126 -57
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +395 -86
- package/cjs/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -3
- package/cjs/types/CamStreamerAPI/index.js +1 -3
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +392 -304
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +116 -76
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +356 -87
- package/cjs/types/CamStreamerAPI/windySchema.js +9 -1
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +351 -119
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +5 -9
- package/cjs/types/CamSwitcherAPI.d.ts +96 -91
- package/cjs/types/CamSwitcherAPI.js +9 -9
- package/cjs/types/GenetecAgent.d.ts +2 -2
- package/cjs/types/PlaneTrackerAPI.d.ts +60 -47
- package/cjs/types/PlaneTrackerAPI.js +5 -2
- package/cjs/types/VapixAPI.d.ts +51 -32
- package/cjs/types/VapixAPI.js +10 -3
- package/cjs/types/common.d.ts +27 -0
- package/cjs/types/common.js +13 -1
- package/cjs/types/ws/CamStreamerEvents.d.ts +110 -77
- package/cjs/types/ws/CamStreamerEvents.js +11 -7
- package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/esm/CamOverlayAPI.js +16 -65
- package/esm/CamScripterAPI.js +9 -30
- package/esm/CamStreamerAPI.js +70 -78
- package/esm/CamSwitcherAPI.js +31 -89
- package/esm/PlaneTrackerAPI.js +21 -76
- package/esm/VapixAPI.js +228 -107
- package/esm/errors/errors.js +5 -1
- package/esm/index.js +1 -0
- package/esm/internal/BasicAPI.js +89 -0
- package/esm/internal/WsEvents.js +5 -0
- package/esm/internal/constants.js +1 -0
- package/esm/internal/convertors.js +108 -0
- package/esm/internal/transformers.js +1 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +47 -10
- package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
- package/esm/types/CamOverlayAPI/index.js +1 -0
- package/esm/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/esm/types/CamScripterAPI.js +0 -4
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +109 -41
- package/esm/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/esm/types/CamStreamerAPI/index.js +1 -3
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +116 -76
- package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
- package/esm/types/CamStreamerAPI/windySchema.js +9 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +5 -9
- package/esm/types/CamSwitcherAPI.js +8 -8
- package/esm/types/PlaneTrackerAPI.js +5 -2
- package/esm/types/VapixAPI.js +9 -2
- package/esm/types/common.js +12 -0
- package/esm/types/ws/CamStreamerEvents.js +11 -7
- package/package.json +4 -4
- package/types/CamOverlayAPI.d.ts +145 -107
- package/types/CamScripterAPI.d.ts +5 -8
- package/types/CamStreamerAPI.d.ts +2362 -806
- package/types/CamSwitcherAPI.d.ts +23 -22
- package/types/PlaneTrackerAPI.d.ts +28 -30
- package/types/VapixAPI.d.ts +36 -23
- package/types/errors/errors.d.ts +11 -5
- package/types/index.d.ts +1 -0
- package/types/internal/BasicAPI.d.ts +15 -0
- package/types/internal/WsEvents.d.ts +1 -0
- package/types/internal/constants.d.ts +1 -0
- package/types/internal/convertors.d.ts +6 -0
- package/types/internal/types.d.ts +3 -0
- package/types/internal/versionCompare.d.ts +2 -2
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +878 -358
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +28 -28
- package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/index.d.ts +1 -0
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/types/types/CamScripterAPI.d.ts +0 -11
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +17745 -4940
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +395 -86
- package/types/types/CamStreamerAPI/index.d.ts +1 -3
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +392 -304
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +356 -87
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +351 -119
- package/types/types/CamSwitcherAPI.d.ts +96 -91
- package/types/types/GenetecAgent.d.ts +2 -2
- package/types/types/PlaneTrackerAPI.d.ts +60 -47
- package/types/types/VapixAPI.d.ts +51 -32
- package/types/types/common.d.ts +27 -0
- package/types/types/ws/CamStreamerEvents.d.ts +110 -77
- package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/types/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -323
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -284
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -14
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
- package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
- package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -21
- package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -8
- package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
- package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
- package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
- package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
- package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -323
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -284
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -275
|
@@ -28,15 +28,15 @@ export declare const connectionSchema: z.ZodObject<{
|
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
ip: string;
|
|
30
30
|
port: number;
|
|
31
|
-
protocol: "https" | "http" | "https_insecure";
|
|
32
|
-
user: string;
|
|
33
31
|
pass: string;
|
|
32
|
+
user: string;
|
|
33
|
+
protocol: "https" | "http" | "https_insecure";
|
|
34
34
|
}, {
|
|
35
35
|
ip: string;
|
|
36
36
|
port: number;
|
|
37
|
-
protocol: "https" | "http" | "https_insecure";
|
|
38
|
-
user: string;
|
|
39
37
|
pass: string;
|
|
38
|
+
user: string;
|
|
39
|
+
protocol: "https" | "http" | "https_insecure";
|
|
40
40
|
}>;
|
|
41
41
|
export declare const widgetSchema: z.ZodObject<{
|
|
42
42
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -60,6 +60,7 @@ export declare const widgetSchema: z.ZodObject<{
|
|
|
60
60
|
declare const labelOptionsSchema: z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"registration">, z.ZodLiteral<"call_sign">, z.ZodLiteral<"flight_number">, z.ZodLiteral<"icao">]>;
|
|
61
61
|
export type TLabelOption = z.infer<typeof labelOptionsSchema>;
|
|
62
62
|
export declare const cameraSettingsSchema: z.ZodObject<{
|
|
63
|
+
trackingDomain: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"adsb">, z.ZodLiteral<"dronetag">]>>;
|
|
63
64
|
units: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"metric">, z.ZodLiteral<"imperial">]>>;
|
|
64
65
|
adsbSource: z.ZodDefault<z.ZodObject<{
|
|
65
66
|
ip: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
|
|
@@ -80,15 +81,15 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
80
81
|
}, "strip", z.ZodTypeAny, {
|
|
81
82
|
ip: string;
|
|
82
83
|
port: number;
|
|
83
|
-
protocol: "https" | "http" | "https_insecure";
|
|
84
|
-
user: string;
|
|
85
84
|
pass: string;
|
|
85
|
+
user: string;
|
|
86
|
+
protocol: "https" | "http" | "https_insecure";
|
|
86
87
|
}, {
|
|
87
88
|
ip: string;
|
|
88
89
|
port: number;
|
|
89
|
-
protocol: "https" | "http" | "https_insecure";
|
|
90
|
-
user: string;
|
|
91
90
|
pass: string;
|
|
91
|
+
user: string;
|
|
92
|
+
protocol: "https" | "http" | "https_insecure";
|
|
92
93
|
}>>;
|
|
93
94
|
cameraCalibrationProcessConfig: z.ZodDefault<z.ZodObject<{
|
|
94
95
|
nightSkyCalibrationEnabled: z.ZodBoolean;
|
|
@@ -182,15 +183,17 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
182
183
|
displayPTError: z.ZodOptional<z.ZodBoolean>;
|
|
183
184
|
displayPTZSpeed: z.ZodOptional<z.ZodBoolean>;
|
|
184
185
|
displayVelocityData: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
displayAdsbVelocityData: z.ZodOptional<z.ZodBoolean>;
|
|
185
187
|
displaySignalQuality: z.ZodOptional<z.ZodBoolean>;
|
|
186
188
|
displayAutoTrackingInfo: z.ZodOptional<z.ZodBoolean>;
|
|
187
189
|
displayGPSCoords: z.ZodOptional<z.ZodBoolean>;
|
|
188
190
|
displayVapixQuery: z.ZodOptional<z.ZodBoolean>;
|
|
189
191
|
displayFocus: z.ZodOptional<z.ZodBoolean>;
|
|
190
192
|
displayAperture: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
displayAircraftInfo: z.ZodOptional<z.ZodBoolean>;
|
|
191
194
|
displaySunDistance: z.ZodOptional<z.ZodBoolean>;
|
|
192
195
|
displayTickTime: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
-
|
|
196
|
+
displaySystemInfo: z.ZodOptional<z.ZodBoolean>;
|
|
194
197
|
}, "strip", z.ZodTypeAny, {
|
|
195
198
|
displayIcao?: boolean | undefined;
|
|
196
199
|
displayRegistration?: boolean | undefined;
|
|
@@ -202,15 +205,17 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
202
205
|
displayPTError?: boolean | undefined;
|
|
203
206
|
displayPTZSpeed?: boolean | undefined;
|
|
204
207
|
displayVelocityData?: boolean | undefined;
|
|
208
|
+
displayAdsbVelocityData?: boolean | undefined;
|
|
205
209
|
displaySignalQuality?: boolean | undefined;
|
|
206
210
|
displayAutoTrackingInfo?: boolean | undefined;
|
|
207
211
|
displayGPSCoords?: boolean | undefined;
|
|
208
212
|
displayVapixQuery?: boolean | undefined;
|
|
209
213
|
displayFocus?: boolean | undefined;
|
|
210
214
|
displayAperture?: boolean | undefined;
|
|
215
|
+
displayAircraftInfo?: boolean | undefined;
|
|
211
216
|
displaySunDistance?: boolean | undefined;
|
|
212
217
|
displayTickTime?: boolean | undefined;
|
|
213
|
-
|
|
218
|
+
displaySystemInfo?: boolean | undefined;
|
|
214
219
|
}, {
|
|
215
220
|
displayIcao?: boolean | undefined;
|
|
216
221
|
displayRegistration?: boolean | undefined;
|
|
@@ -222,15 +227,17 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
222
227
|
displayPTError?: boolean | undefined;
|
|
223
228
|
displayPTZSpeed?: boolean | undefined;
|
|
224
229
|
displayVelocityData?: boolean | undefined;
|
|
230
|
+
displayAdsbVelocityData?: boolean | undefined;
|
|
225
231
|
displaySignalQuality?: boolean | undefined;
|
|
226
232
|
displayAutoTrackingInfo?: boolean | undefined;
|
|
227
233
|
displayGPSCoords?: boolean | undefined;
|
|
228
234
|
displayVapixQuery?: boolean | undefined;
|
|
229
235
|
displayFocus?: boolean | undefined;
|
|
230
236
|
displayAperture?: boolean | undefined;
|
|
237
|
+
displayAircraftInfo?: boolean | undefined;
|
|
231
238
|
displaySunDistance?: boolean | undefined;
|
|
232
239
|
displayTickTime?: boolean | undefined;
|
|
233
|
-
|
|
240
|
+
displaySystemInfo?: boolean | undefined;
|
|
234
241
|
}>>;
|
|
235
242
|
widget: z.ZodDefault<z.ZodObject<{
|
|
236
243
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -293,13 +300,13 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
293
300
|
port: z.ZodDefault<z.ZodNumber>;
|
|
294
301
|
}, "strip", z.ZodTypeAny, {
|
|
295
302
|
ip: string;
|
|
296
|
-
port: number;
|
|
297
303
|
enabled: boolean;
|
|
304
|
+
port: number;
|
|
298
305
|
priority: number;
|
|
299
306
|
}, {
|
|
300
307
|
ip?: string | undefined;
|
|
301
|
-
port?: number | undefined;
|
|
302
308
|
enabled?: boolean | undefined;
|
|
309
|
+
port?: number | undefined;
|
|
303
310
|
priority?: number | undefined;
|
|
304
311
|
}>>;
|
|
305
312
|
identificationLabel: z.ZodDefault<z.ZodObject<{
|
|
@@ -332,19 +339,19 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
332
339
|
sourceKey: z.ZodString;
|
|
333
340
|
}, "strip", z.ZodTypeAny, {
|
|
334
341
|
ip: string;
|
|
335
|
-
port: number;
|
|
336
342
|
enabled: boolean;
|
|
337
|
-
|
|
338
|
-
user: string;
|
|
343
|
+
port: number;
|
|
339
344
|
pass: string;
|
|
345
|
+
user: string;
|
|
346
|
+
protocol: "https" | "http" | "https_insecure";
|
|
340
347
|
sourceKey: string;
|
|
341
348
|
}, {
|
|
342
349
|
ip: string;
|
|
343
|
-
port: number;
|
|
344
350
|
enabled: boolean;
|
|
345
|
-
|
|
346
|
-
user: string;
|
|
351
|
+
port: number;
|
|
347
352
|
pass: string;
|
|
353
|
+
user: string;
|
|
354
|
+
protocol: "https" | "http" | "https_insecure";
|
|
348
355
|
sourceKey: string;
|
|
349
356
|
}>>;
|
|
350
357
|
genetec: z.ZodDefault<z.ZodObject<{
|
|
@@ -360,21 +367,21 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
360
367
|
cameraList: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
361
368
|
}, "strip", z.ZodTypeAny, {
|
|
362
369
|
ip: string;
|
|
363
|
-
port: number;
|
|
364
370
|
enabled: boolean;
|
|
371
|
+
port: number;
|
|
365
372
|
cameraList: string[];
|
|
373
|
+
pass: string;
|
|
366
374
|
appId: string;
|
|
367
|
-
protocol: "https" | "http" | "https_insecure";
|
|
368
375
|
user: string;
|
|
369
|
-
|
|
376
|
+
protocol: "https" | "http" | "https_insecure";
|
|
370
377
|
baseUri: string;
|
|
371
378
|
}, {
|
|
372
379
|
ip: string;
|
|
373
|
-
port: number;
|
|
374
380
|
enabled: boolean;
|
|
375
|
-
|
|
376
|
-
user: string;
|
|
381
|
+
port: number;
|
|
377
382
|
pass: string;
|
|
383
|
+
user: string;
|
|
384
|
+
protocol: "https" | "http" | "https_insecure";
|
|
378
385
|
cameraList?: string[] | undefined;
|
|
379
386
|
appId?: string | undefined;
|
|
380
387
|
baseUri?: string | undefined;
|
|
@@ -399,11 +406,12 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
399
406
|
camera: {
|
|
400
407
|
ip: string;
|
|
401
408
|
port: number;
|
|
402
|
-
protocol: "https" | "http" | "https_insecure";
|
|
403
|
-
user: string;
|
|
404
409
|
pass: string;
|
|
410
|
+
user: string;
|
|
411
|
+
protocol: "https" | "http" | "https_insecure";
|
|
405
412
|
};
|
|
406
413
|
units: "metric" | "imperial";
|
|
414
|
+
trackingDomain: "adsb" | "dronetag";
|
|
407
415
|
adsbSource: {
|
|
408
416
|
ip: string;
|
|
409
417
|
port: number;
|
|
@@ -461,8 +469,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
461
469
|
};
|
|
462
470
|
radarcapeFlightInfoSource: {
|
|
463
471
|
ip: string;
|
|
464
|
-
port: number;
|
|
465
472
|
enabled: boolean;
|
|
473
|
+
port: number;
|
|
466
474
|
priority: number;
|
|
467
475
|
};
|
|
468
476
|
identificationLabel: {
|
|
@@ -474,22 +482,22 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
474
482
|
};
|
|
475
483
|
acs: {
|
|
476
484
|
ip: string;
|
|
477
|
-
port: number;
|
|
478
485
|
enabled: boolean;
|
|
479
|
-
|
|
480
|
-
user: string;
|
|
486
|
+
port: number;
|
|
481
487
|
pass: string;
|
|
488
|
+
user: string;
|
|
489
|
+
protocol: "https" | "http" | "https_insecure";
|
|
482
490
|
sourceKey: string;
|
|
483
491
|
};
|
|
484
492
|
genetec: {
|
|
485
493
|
ip: string;
|
|
486
|
-
port: number;
|
|
487
494
|
enabled: boolean;
|
|
495
|
+
port: number;
|
|
488
496
|
cameraList: string[];
|
|
497
|
+
pass: string;
|
|
489
498
|
appId: string;
|
|
490
|
-
protocol: "https" | "http" | "https_insecure";
|
|
491
499
|
user: string;
|
|
492
|
-
|
|
500
|
+
protocol: "https" | "http" | "https_insecure";
|
|
493
501
|
baseUri: string;
|
|
494
502
|
};
|
|
495
503
|
camstreamerIntegration: {
|
|
@@ -509,25 +517,28 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
509
517
|
displayPTError?: boolean | undefined;
|
|
510
518
|
displayPTZSpeed?: boolean | undefined;
|
|
511
519
|
displayVelocityData?: boolean | undefined;
|
|
520
|
+
displayAdsbVelocityData?: boolean | undefined;
|
|
512
521
|
displaySignalQuality?: boolean | undefined;
|
|
513
522
|
displayAutoTrackingInfo?: boolean | undefined;
|
|
514
523
|
displayGPSCoords?: boolean | undefined;
|
|
515
524
|
displayVapixQuery?: boolean | undefined;
|
|
516
525
|
displayFocus?: boolean | undefined;
|
|
517
526
|
displayAperture?: boolean | undefined;
|
|
527
|
+
displayAircraftInfo?: boolean | undefined;
|
|
518
528
|
displaySunDistance?: boolean | undefined;
|
|
519
529
|
displayTickTime?: boolean | undefined;
|
|
520
|
-
|
|
530
|
+
displaySystemInfo?: boolean | undefined;
|
|
521
531
|
} | undefined;
|
|
522
532
|
}, {
|
|
523
533
|
camera?: {
|
|
524
534
|
ip: string;
|
|
525
535
|
port: number;
|
|
526
|
-
protocol: "https" | "http" | "https_insecure";
|
|
527
|
-
user: string;
|
|
528
536
|
pass: string;
|
|
537
|
+
user: string;
|
|
538
|
+
protocol: "https" | "http" | "https_insecure";
|
|
529
539
|
} | undefined;
|
|
530
540
|
units?: "metric" | "imperial" | undefined;
|
|
541
|
+
trackingDomain?: "adsb" | "dronetag" | undefined;
|
|
531
542
|
adsbSource?: {
|
|
532
543
|
ip: string;
|
|
533
544
|
port: number;
|
|
@@ -574,15 +585,17 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
574
585
|
displayPTError?: boolean | undefined;
|
|
575
586
|
displayPTZSpeed?: boolean | undefined;
|
|
576
587
|
displayVelocityData?: boolean | undefined;
|
|
588
|
+
displayAdsbVelocityData?: boolean | undefined;
|
|
577
589
|
displaySignalQuality?: boolean | undefined;
|
|
578
590
|
displayAutoTrackingInfo?: boolean | undefined;
|
|
579
591
|
displayGPSCoords?: boolean | undefined;
|
|
580
592
|
displayVapixQuery?: boolean | undefined;
|
|
581
593
|
displayFocus?: boolean | undefined;
|
|
582
594
|
displayAperture?: boolean | undefined;
|
|
595
|
+
displayAircraftInfo?: boolean | undefined;
|
|
583
596
|
displaySunDistance?: boolean | undefined;
|
|
584
597
|
displayTickTime?: boolean | undefined;
|
|
585
|
-
|
|
598
|
+
displaySystemInfo?: boolean | undefined;
|
|
586
599
|
} | undefined;
|
|
587
600
|
widget?: {
|
|
588
601
|
scale: number;
|
|
@@ -606,8 +619,8 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
606
619
|
} | undefined;
|
|
607
620
|
radarcapeFlightInfoSource?: {
|
|
608
621
|
ip?: string | undefined;
|
|
609
|
-
port?: number | undefined;
|
|
610
622
|
enabled?: boolean | undefined;
|
|
623
|
+
port?: number | undefined;
|
|
611
624
|
priority?: number | undefined;
|
|
612
625
|
} | undefined;
|
|
613
626
|
identificationLabel?: {
|
|
@@ -619,20 +632,20 @@ export declare const cameraSettingsSchema: z.ZodObject<{
|
|
|
619
632
|
} | undefined;
|
|
620
633
|
acs?: {
|
|
621
634
|
ip: string;
|
|
622
|
-
port: number;
|
|
623
635
|
enabled: boolean;
|
|
624
|
-
|
|
625
|
-
user: string;
|
|
636
|
+
port: number;
|
|
626
637
|
pass: string;
|
|
638
|
+
user: string;
|
|
639
|
+
protocol: "https" | "http" | "https_insecure";
|
|
627
640
|
sourceKey: string;
|
|
628
641
|
} | undefined;
|
|
629
642
|
genetec?: {
|
|
630
643
|
ip: string;
|
|
631
|
-
port: number;
|
|
632
644
|
enabled: boolean;
|
|
633
|
-
|
|
634
|
-
user: string;
|
|
645
|
+
port: number;
|
|
635
646
|
pass: string;
|
|
647
|
+
user: string;
|
|
648
|
+
protocol: "https" | "http" | "https_insecure";
|
|
636
649
|
cameraList?: string[] | undefined;
|
|
637
650
|
appId?: string | undefined;
|
|
638
651
|
baseUri?: string | undefined;
|
|
@@ -744,11 +757,11 @@ export declare const getIcaoSchema: z.ZodObject<{
|
|
|
744
757
|
}>;
|
|
745
758
|
export type TGetIcaoByOption = 'registration' | 'callsign';
|
|
746
759
|
export declare const trackingModeSchema: z.ZodObject<{
|
|
747
|
-
mode: z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]
|
|
760
|
+
mode: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"MANUAL">, z.ZodLiteral<"AUTOMATIC">]>>;
|
|
748
761
|
}, "strip", z.ZodTypeAny, {
|
|
749
762
|
mode: "MANUAL" | "AUTOMATIC";
|
|
750
763
|
}, {
|
|
751
|
-
mode
|
|
764
|
+
mode?: "MANUAL" | "AUTOMATIC" | undefined;
|
|
752
765
|
}>;
|
|
753
766
|
export type TTrackingMode = z.infer<typeof trackingModeSchema>;
|
|
754
767
|
export declare const flightInfoSchema: z.ZodObject<{
|
|
@@ -41,6 +41,7 @@ const identificationLabelSchema = zod_1.z.object({
|
|
|
41
41
|
opacity: zod_1.z.number().positive(),
|
|
42
42
|
});
|
|
43
43
|
exports.cameraSettingsSchema = zod_1.z.object({
|
|
44
|
+
trackingDomain: zod_1.z.union([zod_1.z.literal('adsb'), zod_1.z.literal('dronetag')]).default('adsb'),
|
|
44
45
|
units: zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial')]).default('imperial'),
|
|
45
46
|
adsbSource: zod_1.z
|
|
46
47
|
.object({
|
|
@@ -123,15 +124,17 @@ exports.cameraSettingsSchema = zod_1.z.object({
|
|
|
123
124
|
displayPTError: zod_1.z.boolean().optional(),
|
|
124
125
|
displayPTZSpeed: zod_1.z.boolean().optional(),
|
|
125
126
|
displayVelocityData: zod_1.z.boolean().optional(),
|
|
127
|
+
displayAdsbVelocityData: zod_1.z.boolean().optional(),
|
|
126
128
|
displaySignalQuality: zod_1.z.boolean().optional(),
|
|
127
129
|
displayAutoTrackingInfo: zod_1.z.boolean().optional(),
|
|
128
130
|
displayGPSCoords: zod_1.z.boolean().optional(),
|
|
129
131
|
displayVapixQuery: zod_1.z.boolean().optional(),
|
|
130
132
|
displayFocus: zod_1.z.boolean().optional(),
|
|
131
133
|
displayAperture: zod_1.z.boolean().optional(),
|
|
134
|
+
displayAircraftInfo: zod_1.z.boolean().optional(),
|
|
132
135
|
displaySunDistance: zod_1.z.boolean().optional(),
|
|
133
136
|
displayTickTime: zod_1.z.boolean().optional(),
|
|
134
|
-
|
|
137
|
+
displaySystemInfo: zod_1.z.boolean().optional(),
|
|
135
138
|
})
|
|
136
139
|
.optional(),
|
|
137
140
|
widget: exports.widgetSchema.default({
|
|
@@ -265,7 +268,7 @@ exports.getIcaoSchema = zod_1.z.object({
|
|
|
265
268
|
icao: zod_1.z.string(),
|
|
266
269
|
});
|
|
267
270
|
exports.trackingModeSchema = zod_1.z.object({
|
|
268
|
-
mode: zod_1.z.union([zod_1.z.literal('MANUAL'), zod_1.z.literal('AUTOMATIC')]),
|
|
271
|
+
mode: zod_1.z.union([zod_1.z.literal('MANUAL'), zod_1.z.literal('AUTOMATIC')]).default('AUTOMATIC'),
|
|
269
272
|
});
|
|
270
273
|
exports.flightInfoSchema = zod_1.z.object({
|
|
271
274
|
callsign: zod_1.z.string().optional(),
|
package/cjs/types/VapixAPI.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const applicationListSchema: z.ZodArray<z.ZodObject<{
|
|
|
45
45
|
VendorHomePage: z.ZodOptional<z.ZodString>;
|
|
46
46
|
LicenseName: z.ZodOptional<z.ZodString>;
|
|
47
47
|
} & {
|
|
48
|
-
appId: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"CamStreamer">, z.ZodLiteral<"CamSwitcher">, z.ZodLiteral<"CamOverlay">, z.ZodLiteral<"CamScripter">, z.ZodLiteral<"PlaneTracker">, z.ZodLiteral<"Ndihxplugin">, z.ZodLiteral<"SportTracker">]>>;
|
|
48
|
+
appId: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"CamStreamer">, z.ZodLiteral<"CamSwitcher">, z.ZodLiteral<"CamOverlay">, z.ZodLiteral<"CamScripter">, z.ZodLiteral<"PlaneTracker">, z.ZodLiteral<"Ndihxplugin">, z.ZodLiteral<"SportTracker">, z.ZodLiteral<"CamOverlayHtmlplugin">]>>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
Name: string;
|
|
51
51
|
NiceName: string;
|
|
@@ -53,7 +53,7 @@ export declare const applicationListSchema: z.ZodArray<z.ZodObject<{
|
|
|
53
53
|
Version: string;
|
|
54
54
|
License: string;
|
|
55
55
|
Status: string;
|
|
56
|
-
appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | null;
|
|
56
|
+
appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | "CamOverlayHtmlplugin" | null;
|
|
57
57
|
ApplicationID?: string | undefined;
|
|
58
58
|
ConfigurationPage?: string | undefined;
|
|
59
59
|
VendorHomePage?: string | undefined;
|
|
@@ -65,16 +65,18 @@ export declare const applicationListSchema: z.ZodArray<z.ZodObject<{
|
|
|
65
65
|
Version: string;
|
|
66
66
|
License: string;
|
|
67
67
|
Status: string;
|
|
68
|
-
appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | null;
|
|
68
|
+
appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | "CamOverlayHtmlplugin" | null;
|
|
69
69
|
ApplicationID?: string | undefined;
|
|
70
70
|
ConfigurationPage?: string | undefined;
|
|
71
71
|
VendorHomePage?: string | undefined;
|
|
72
72
|
LicenseName?: string | undefined;
|
|
73
73
|
}>, "many">;
|
|
74
|
-
export declare const APP_IDS: readonly ["CamStreamer", "CamSwitcher", "CamOverlay", "CamScripter", "PlaneTracker", "Ndihxplugin"
|
|
74
|
+
export declare const APP_IDS: readonly ["CamStreamer", "CamSwitcher", "CamOverlay", "CamScripter", "PlaneTracker", "Ndihxplugin"];
|
|
75
|
+
export declare const ALL_APP_IDS: readonly ["CamStreamer", "CamSwitcher", "CamOverlay", "CamScripter", "PlaneTracker", "Ndihxplugin", "SportTracker", "CamOverlayHtmlplugin"];
|
|
75
76
|
export type TApplicationId = (typeof APP_IDS)[number];
|
|
76
77
|
export type TApplicationList = z.infer<typeof applicationListSchema>;
|
|
77
78
|
export type TApplication = z.infer<typeof applicationListSchema>[number];
|
|
79
|
+
export type TAllApplicationId = (typeof ALL_APP_IDS)[number];
|
|
78
80
|
export declare const guardTourSchema: z.ZodObject<{
|
|
79
81
|
id: z.ZodString;
|
|
80
82
|
camNbr: z.ZodUnknown;
|
|
@@ -89,14 +91,14 @@ export declare const guardTourSchema: z.ZodObject<{
|
|
|
89
91
|
waitTime: z.ZodUnknown;
|
|
90
92
|
waitTimeViewType: z.ZodUnknown;
|
|
91
93
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
moveSpeed?: unknown;
|
|
93
94
|
position?: unknown;
|
|
95
|
+
moveSpeed?: unknown;
|
|
94
96
|
presetNbr?: unknown;
|
|
95
97
|
waitTime?: unknown;
|
|
96
98
|
waitTimeViewType?: unknown;
|
|
97
99
|
}, {
|
|
98
|
-
moveSpeed?: unknown;
|
|
99
100
|
position?: unknown;
|
|
101
|
+
moveSpeed?: unknown;
|
|
100
102
|
presetNbr?: unknown;
|
|
101
103
|
waitTime?: unknown;
|
|
102
104
|
waitTimeViewType?: unknown;
|
|
@@ -106,8 +108,8 @@ export declare const guardTourSchema: z.ZodObject<{
|
|
|
106
108
|
id: string;
|
|
107
109
|
running: string;
|
|
108
110
|
tour: {
|
|
109
|
-
moveSpeed?: unknown;
|
|
110
111
|
position?: unknown;
|
|
112
|
+
moveSpeed?: unknown;
|
|
111
113
|
presetNbr?: unknown;
|
|
112
114
|
waitTime?: unknown;
|
|
113
115
|
waitTimeViewType?: unknown;
|
|
@@ -120,8 +122,8 @@ export declare const guardTourSchema: z.ZodObject<{
|
|
|
120
122
|
id: string;
|
|
121
123
|
running: string;
|
|
122
124
|
tour: {
|
|
123
|
-
moveSpeed?: unknown;
|
|
124
125
|
position?: unknown;
|
|
126
|
+
moveSpeed?: unknown;
|
|
125
127
|
presetNbr?: unknown;
|
|
126
128
|
waitTime?: unknown;
|
|
127
129
|
waitTimeViewType?: unknown;
|
|
@@ -205,20 +207,20 @@ export declare const cameraPTZItemSchema: z.ZodObject<{
|
|
|
205
207
|
}>;
|
|
206
208
|
}, "strip", z.ZodTypeAny, {
|
|
207
209
|
name: string;
|
|
208
|
-
id: number;
|
|
209
210
|
data: {
|
|
210
211
|
pan?: number | undefined;
|
|
211
212
|
tilt?: number | undefined;
|
|
212
213
|
zoom?: number | undefined;
|
|
213
214
|
};
|
|
215
|
+
id: number;
|
|
214
216
|
}, {
|
|
215
217
|
name: string;
|
|
216
|
-
id: number;
|
|
217
218
|
data: {
|
|
218
219
|
pan?: number | undefined;
|
|
219
220
|
tilt?: number | undefined;
|
|
220
221
|
zoom?: number | undefined;
|
|
221
222
|
};
|
|
223
|
+
id: number;
|
|
222
224
|
}>;
|
|
223
225
|
export type TCameraPTZItem = z.infer<typeof cameraPTZItemSchema>;
|
|
224
226
|
export type TCameraPTZItemData = z.infer<typeof cameraPTZItemDataSchema>;
|
|
@@ -1717,19 +1719,19 @@ export declare const portStatusSchema: z.ZodObject<{
|
|
|
1717
1719
|
}, "strip", z.ZodTypeAny, {
|
|
1718
1720
|
name: string;
|
|
1719
1721
|
port: string;
|
|
1722
|
+
direction: "output" | "input";
|
|
1720
1723
|
state: "open" | "closed";
|
|
1721
1724
|
configurable: boolean;
|
|
1722
1725
|
usage: string;
|
|
1723
|
-
direction: "input" | "output";
|
|
1724
1726
|
normalState: "open" | "closed";
|
|
1725
1727
|
readonly?: boolean | undefined;
|
|
1726
1728
|
}, {
|
|
1727
1729
|
name: string;
|
|
1728
1730
|
port: string;
|
|
1731
|
+
direction: "output" | "input";
|
|
1729
1732
|
state: "open" | "closed";
|
|
1730
1733
|
configurable: boolean;
|
|
1731
1734
|
usage: string;
|
|
1732
|
-
direction: "input" | "output";
|
|
1733
1735
|
normalState: "open" | "closed";
|
|
1734
1736
|
readonly?: boolean | undefined;
|
|
1735
1737
|
}>;
|
|
@@ -1740,7 +1742,7 @@ export declare const getPortsResponseSchema: z.ZodObject<{
|
|
|
1740
1742
|
method: z.ZodLiteral<"getPorts">;
|
|
1741
1743
|
data: z.ZodObject<{
|
|
1742
1744
|
numberOfPorts: z.ZodNumber;
|
|
1743
|
-
items: z.ZodArray<z.ZodObject<{
|
|
1745
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1744
1746
|
port: z.ZodString;
|
|
1745
1747
|
state: z.ZodEnum<["open", "closed"]>;
|
|
1746
1748
|
configurable: z.ZodBoolean;
|
|
@@ -1752,60 +1754,60 @@ export declare const getPortsResponseSchema: z.ZodObject<{
|
|
|
1752
1754
|
}, "strip", z.ZodTypeAny, {
|
|
1753
1755
|
name: string;
|
|
1754
1756
|
port: string;
|
|
1757
|
+
direction: "output" | "input";
|
|
1755
1758
|
state: "open" | "closed";
|
|
1756
1759
|
configurable: boolean;
|
|
1757
1760
|
usage: string;
|
|
1758
|
-
direction: "input" | "output";
|
|
1759
1761
|
normalState: "open" | "closed";
|
|
1760
1762
|
readonly?: boolean | undefined;
|
|
1761
1763
|
}, {
|
|
1762
1764
|
name: string;
|
|
1763
1765
|
port: string;
|
|
1766
|
+
direction: "output" | "input";
|
|
1764
1767
|
state: "open" | "closed";
|
|
1765
1768
|
configurable: boolean;
|
|
1766
1769
|
usage: string;
|
|
1767
|
-
direction: "input" | "output";
|
|
1768
1770
|
normalState: "open" | "closed";
|
|
1769
1771
|
readonly?: boolean | undefined;
|
|
1770
|
-
}>, "many"
|
|
1772
|
+
}>, "many">>;
|
|
1771
1773
|
}, "strip", z.ZodTypeAny, {
|
|
1772
1774
|
numberOfPorts: number;
|
|
1773
|
-
items
|
|
1775
|
+
items?: {
|
|
1774
1776
|
name: string;
|
|
1775
1777
|
port: string;
|
|
1778
|
+
direction: "output" | "input";
|
|
1776
1779
|
state: "open" | "closed";
|
|
1777
1780
|
configurable: boolean;
|
|
1778
1781
|
usage: string;
|
|
1779
|
-
direction: "input" | "output";
|
|
1780
1782
|
normalState: "open" | "closed";
|
|
1781
1783
|
readonly?: boolean | undefined;
|
|
1782
|
-
}[];
|
|
1784
|
+
}[] | undefined;
|
|
1783
1785
|
}, {
|
|
1784
1786
|
numberOfPorts: number;
|
|
1785
|
-
items
|
|
1787
|
+
items?: {
|
|
1786
1788
|
name: string;
|
|
1787
1789
|
port: string;
|
|
1790
|
+
direction: "output" | "input";
|
|
1788
1791
|
state: "open" | "closed";
|
|
1789
1792
|
configurable: boolean;
|
|
1790
1793
|
usage: string;
|
|
1791
|
-
direction: "input" | "output";
|
|
1792
1794
|
normalState: "open" | "closed";
|
|
1793
1795
|
readonly?: boolean | undefined;
|
|
1794
|
-
}[];
|
|
1796
|
+
}[] | undefined;
|
|
1795
1797
|
}>;
|
|
1796
1798
|
}, "strip", z.ZodTypeAny, {
|
|
1797
1799
|
data: {
|
|
1798
1800
|
numberOfPorts: number;
|
|
1799
|
-
items
|
|
1801
|
+
items?: {
|
|
1800
1802
|
name: string;
|
|
1801
1803
|
port: string;
|
|
1804
|
+
direction: "output" | "input";
|
|
1802
1805
|
state: "open" | "closed";
|
|
1803
1806
|
configurable: boolean;
|
|
1804
1807
|
usage: string;
|
|
1805
|
-
direction: "input" | "output";
|
|
1806
1808
|
normalState: "open" | "closed";
|
|
1807
1809
|
readonly?: boolean | undefined;
|
|
1808
|
-
}[];
|
|
1810
|
+
}[] | undefined;
|
|
1809
1811
|
};
|
|
1810
1812
|
apiVersion: string;
|
|
1811
1813
|
context: string;
|
|
@@ -1813,16 +1815,16 @@ export declare const getPortsResponseSchema: z.ZodObject<{
|
|
|
1813
1815
|
}, {
|
|
1814
1816
|
data: {
|
|
1815
1817
|
numberOfPorts: number;
|
|
1816
|
-
items
|
|
1818
|
+
items?: {
|
|
1817
1819
|
name: string;
|
|
1818
1820
|
port: string;
|
|
1821
|
+
direction: "output" | "input";
|
|
1819
1822
|
state: "open" | "closed";
|
|
1820
1823
|
configurable: boolean;
|
|
1821
1824
|
usage: string;
|
|
1822
|
-
direction: "input" | "output";
|
|
1823
1825
|
normalState: "open" | "closed";
|
|
1824
1826
|
readonly?: boolean | undefined;
|
|
1825
|
-
}[];
|
|
1827
|
+
}[] | undefined;
|
|
1826
1828
|
};
|
|
1827
1829
|
apiVersion: string;
|
|
1828
1830
|
context: string;
|
|
@@ -1839,15 +1841,15 @@ export declare const portSetSchema: z.ZodObject<{
|
|
|
1839
1841
|
port: string;
|
|
1840
1842
|
state: "open" | "closed";
|
|
1841
1843
|
name?: string | undefined;
|
|
1844
|
+
direction?: "output" | "input" | undefined;
|
|
1842
1845
|
usage?: string | undefined;
|
|
1843
|
-
direction?: "input" | "output" | undefined;
|
|
1844
1846
|
normalState?: "open" | "closed" | undefined;
|
|
1845
1847
|
}, {
|
|
1846
1848
|
port: string;
|
|
1847
1849
|
state: "open" | "closed";
|
|
1848
1850
|
name?: string | undefined;
|
|
1851
|
+
direction?: "output" | "input" | undefined;
|
|
1849
1852
|
usage?: string | undefined;
|
|
1850
|
-
direction?: "input" | "output" | undefined;
|
|
1851
1853
|
normalState?: "open" | "closed" | undefined;
|
|
1852
1854
|
}>;
|
|
1853
1855
|
export type TPortSetSchema = z.infer<typeof portSetSchema>;
|
|
@@ -1855,11 +1857,28 @@ export declare const portSequenceStateSchema: z.ZodObject<{
|
|
|
1855
1857
|
state: z.ZodEnum<["open", "closed"]>;
|
|
1856
1858
|
time: z.ZodNumber;
|
|
1857
1859
|
}, "strip", z.ZodTypeAny, {
|
|
1858
|
-
time: number;
|
|
1859
1860
|
state: "open" | "closed";
|
|
1860
|
-
}, {
|
|
1861
1861
|
time: number;
|
|
1862
|
+
}, {
|
|
1862
1863
|
state: "open" | "closed";
|
|
1864
|
+
time: number;
|
|
1863
1865
|
}>;
|
|
1864
1866
|
export type TPortSequenceStateSchema = z.infer<typeof portSequenceStateSchema>;
|
|
1867
|
+
export declare const recordingConfigItemSchema: z.ZodObject<{
|
|
1868
|
+
diskid: z.ZodString;
|
|
1869
|
+
eventid: z.ZodString;
|
|
1870
|
+
options: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1871
|
+
profile: z.ZodString;
|
|
1872
|
+
}, "strip", z.ZodTypeAny, {
|
|
1873
|
+
options: Record<string, string>;
|
|
1874
|
+
diskid: string;
|
|
1875
|
+
eventid: string;
|
|
1876
|
+
profile: string;
|
|
1877
|
+
}, {
|
|
1878
|
+
options: Record<string, string>;
|
|
1879
|
+
diskid: string;
|
|
1880
|
+
eventid: string;
|
|
1881
|
+
profile: string;
|
|
1882
|
+
}>;
|
|
1883
|
+
export type TRecordingConfigItem = z.infer<typeof recordingConfigItemSchema>;
|
|
1865
1884
|
export {};
|
package/cjs/types/VapixAPI.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.portSequenceStateSchema = exports.portSetSchema = exports.getPortsResponseSchema = exports.portStatusSchema = exports.audioSampleRatesResponseSchema = exports.timeZoneSchema = exports.dateTimeinfoSchema = exports.maxFpsResponseSchema = exports.audioDeviceRequestSchema = exports.audioDeviceSchema = exports.audioDeviceInputOutputSchema = exports.audioDeviceConnectionTypeSchema = exports.audioDeviceSignalingTypeSchema = exports.audioDeviceSignalingChannelTypeSchema = exports.cameraPTZItemSchema = exports.cameraPTZItemDataSchema = exports.ptzOverviewSchema = exports.sdCardInfoSchema = exports.sdCardWatchedStatuses = exports.guardTourSchema = exports.APP_IDS = exports.applicationListSchema = exports.applicationSchema = void 0;
|
|
3
|
+
exports.recordingConfigItemSchema = exports.portSequenceStateSchema = exports.portSetSchema = exports.getPortsResponseSchema = exports.portStatusSchema = exports.audioSampleRatesResponseSchema = exports.timeZoneSchema = exports.dateTimeinfoSchema = exports.maxFpsResponseSchema = exports.audioDeviceRequestSchema = exports.audioDeviceSchema = exports.audioDeviceInputOutputSchema = exports.audioDeviceConnectionTypeSchema = exports.audioDeviceSignalingTypeSchema = exports.audioDeviceSignalingChannelTypeSchema = exports.cameraPTZItemSchema = exports.cameraPTZItemDataSchema = exports.ptzOverviewSchema = exports.sdCardInfoSchema = exports.sdCardWatchedStatuses = exports.guardTourSchema = exports.ALL_APP_IDS = exports.APP_IDS = exports.applicationListSchema = exports.applicationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const transformers_1 = require("../internal/transformers");
|
|
6
6
|
exports.applicationSchema = zod_1.z.object({
|
|
@@ -25,6 +25,7 @@ exports.applicationListSchema = zod_1.z.array(exports.applicationSchema.extend({
|
|
|
25
25
|
zod_1.z.literal('PlaneTracker'),
|
|
26
26
|
zod_1.z.literal('Ndihxplugin'),
|
|
27
27
|
zod_1.z.literal('SportTracker'),
|
|
28
|
+
zod_1.z.literal('CamOverlayHtmlplugin'),
|
|
28
29
|
])
|
|
29
30
|
.nullable(),
|
|
30
31
|
}));
|
|
@@ -35,8 +36,8 @@ exports.APP_IDS = [
|
|
|
35
36
|
'CamScripter',
|
|
36
37
|
'PlaneTracker',
|
|
37
38
|
'Ndihxplugin',
|
|
38
|
-
'SportTracker',
|
|
39
39
|
];
|
|
40
|
+
exports.ALL_APP_IDS = [...exports.APP_IDS, 'SportTracker', 'CamOverlayHtmlplugin'];
|
|
40
41
|
exports.guardTourSchema = zod_1.z.object({
|
|
41
42
|
id: zod_1.z.string(),
|
|
42
43
|
camNbr: zod_1.z.unknown(),
|
|
@@ -171,7 +172,7 @@ exports.getPortsResponseSchema = zod_1.z.object({
|
|
|
171
172
|
method: zod_1.z.literal('getPorts'),
|
|
172
173
|
data: zod_1.z.object({
|
|
173
174
|
numberOfPorts: zod_1.z.number(),
|
|
174
|
-
items: zod_1.z.array(exports.portStatusSchema),
|
|
175
|
+
items: zod_1.z.array(exports.portStatusSchema).optional(),
|
|
175
176
|
}),
|
|
176
177
|
});
|
|
177
178
|
exports.portSetSchema = zod_1.z.object({
|
|
@@ -186,3 +187,9 @@ exports.portSequenceStateSchema = zod_1.z.object({
|
|
|
186
187
|
state: zod_1.z.enum(['open', 'closed']),
|
|
187
188
|
time: zod_1.z.number().min(0).max(65535),
|
|
188
189
|
});
|
|
190
|
+
exports.recordingConfigItemSchema = zod_1.z.object({
|
|
191
|
+
diskid: zod_1.z.string(),
|
|
192
|
+
eventid: zod_1.z.string(),
|
|
193
|
+
options: zod_1.z.record(zod_1.z.string()),
|
|
194
|
+
profile: zod_1.z.string(),
|
|
195
|
+
});
|