camstreamerlib 4.0.0-beta.99 → 4.0.2
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 +31 -31
- 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 +75 -52
- package/cjs/types/PlaneTrackerAPI.js +11 -5
- 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 +11 -5
- 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 +31 -31
- 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 +75 -52
- 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
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
|
+
});
|
package/cjs/types/common.d.ts
CHANGED
|
@@ -48,3 +48,30 @@ export type TCameraImageConfig = {
|
|
|
48
48
|
overlays?: string;
|
|
49
49
|
[key: string]: string | number | undefined;
|
|
50
50
|
};
|
|
51
|
+
export declare const bitrateModeSchema: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
|
|
52
|
+
export type TBitrateMode = z.infer<typeof bitrateModeSchema>;
|
|
53
|
+
export declare const bitrateVapixParamsSchema: z.ZodObject<{
|
|
54
|
+
bitrateMode: z.ZodUnion<[z.ZodLiteral<"VBR">, z.ZodLiteral<"MBR">, z.ZodLiteral<"ABR">]>;
|
|
55
|
+
maximumBitRate: z.ZodNumber;
|
|
56
|
+
retentionTime: z.ZodNumber;
|
|
57
|
+
bitRateLimit: z.ZodNumber;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
bitrateMode: "VBR" | "MBR" | "ABR";
|
|
60
|
+
maximumBitRate: number;
|
|
61
|
+
retentionTime: number;
|
|
62
|
+
bitRateLimit: number;
|
|
63
|
+
}, {
|
|
64
|
+
bitrateMode: "VBR" | "MBR" | "ABR";
|
|
65
|
+
maximumBitRate: number;
|
|
66
|
+
retentionTime: number;
|
|
67
|
+
bitRateLimit: number;
|
|
68
|
+
}>;
|
|
69
|
+
export type TBitrateVapixParams = z.infer<typeof bitrateVapixParamsSchema>;
|
|
70
|
+
export type FileLike = typeof File extends {
|
|
71
|
+
prototype: infer T;
|
|
72
|
+
} ? T : {
|
|
73
|
+
name: string;
|
|
74
|
+
size: number;
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const fileSchema: z.ZodType<File, z.ZodTypeDef, File>;
|
package/cjs/types/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.keyboardShortcutsSchema = exports.keyboardShortcutSchema = exports.networkCameraListSchema = exports.storageTypeSchema = exports.sdCardStorageTypeSchema = exports.flashStorageTypeSchema = exports.h264ProfileSchema = exports.audioChannelCountSchema = exports.audioChannelSchema = exports.booleanSchema = void 0;
|
|
3
|
+
exports.fileSchema = exports.bitrateVapixParamsSchema = exports.bitrateModeSchema = exports.keyboardShortcutsSchema = exports.keyboardShortcutSchema = exports.networkCameraListSchema = exports.storageTypeSchema = exports.sdCardStorageTypeSchema = exports.flashStorageTypeSchema = exports.h264ProfileSchema = exports.audioChannelCountSchema = exports.audioChannelSchema = exports.booleanSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.booleanSchema = zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]);
|
|
6
6
|
exports.audioChannelSchema = zod_1.z.union([zod_1.z.literal('mono'), zod_1.z.literal('stereo')]);
|
|
@@ -15,3 +15,15 @@ exports.networkCameraListSchema = zod_1.z.array(zod_1.z.object({
|
|
|
15
15
|
}));
|
|
16
16
|
exports.keyboardShortcutSchema = zod_1.z.string().nullable();
|
|
17
17
|
exports.keyboardShortcutsSchema = zod_1.z.record(exports.keyboardShortcutSchema);
|
|
18
|
+
exports.bitrateModeSchema = zod_1.z.union([zod_1.z.literal('VBR'), zod_1.z.literal('MBR'), zod_1.z.literal('ABR')]);
|
|
19
|
+
exports.bitrateVapixParamsSchema = zod_1.z.object({
|
|
20
|
+
bitrateMode: exports.bitrateModeSchema,
|
|
21
|
+
maximumBitRate: zod_1.z.number(),
|
|
22
|
+
retentionTime: zod_1.z.number(),
|
|
23
|
+
bitRateLimit: zod_1.z.number(),
|
|
24
|
+
});
|
|
25
|
+
exports.fileSchema = typeof File !== 'undefined'
|
|
26
|
+
? zod_1.z.instanceof(File)
|
|
27
|
+
: zod_1.z.custom((val) => {
|
|
28
|
+
return val !== null && typeof val === 'object' && 'name' in val && 'size' in val && 'type' in val;
|
|
29
|
+
});
|