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.
Files changed (218) hide show
  1. package/README.md +44 -15
  2. package/cjs/CamOverlayAPI.d.ts +145 -107
  3. package/cjs/CamOverlayAPI.js +14 -63
  4. package/cjs/CamScripterAPI.d.ts +5 -8
  5. package/cjs/CamScripterAPI.js +11 -29
  6. package/cjs/CamStreamerAPI.d.ts +2362 -806
  7. package/cjs/CamStreamerAPI.js +68 -76
  8. package/cjs/CamSwitcherAPI.d.ts +23 -22
  9. package/cjs/CamSwitcherAPI.js +30 -88
  10. package/cjs/PlaneTrackerAPI.d.ts +31 -31
  11. package/cjs/PlaneTrackerAPI.js +20 -75
  12. package/cjs/VapixAPI.d.ts +36 -23
  13. package/cjs/VapixAPI.js +227 -106
  14. package/cjs/errors/errors.d.ts +11 -5
  15. package/cjs/errors/errors.js +5 -1
  16. package/cjs/index.d.ts +1 -0
  17. package/cjs/index.js +1 -0
  18. package/cjs/internal/BasicAPI.d.ts +15 -0
  19. package/cjs/internal/BasicAPI.js +93 -0
  20. package/cjs/internal/WsEvents.d.ts +1 -0
  21. package/cjs/internal/WsEvents.js +5 -0
  22. package/cjs/internal/constants.d.ts +1 -0
  23. package/cjs/internal/constants.js +2 -1
  24. package/cjs/internal/convertors.d.ts +6 -0
  25. package/cjs/internal/convertors.js +115 -0
  26. package/cjs/internal/transformers.js +8 -8
  27. package/cjs/internal/types.d.ts +3 -0
  28. package/cjs/internal/versionCompare.d.ts +2 -2
  29. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +878 -358
  30. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +54 -11
  31. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
  32. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +28 -28
  33. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
  34. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
  35. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
  36. package/cjs/types/CamOverlayAPI/index.d.ts +1 -0
  37. package/cjs/types/CamOverlayAPI/index.js +1 -0
  38. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
  39. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +8 -8
  40. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
  41. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
  42. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
  43. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
  44. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
  45. package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
  46. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
  47. package/cjs/types/CamScripterAPI.d.ts +0 -11
  48. package/cjs/types/CamScripterAPI.js +1 -5
  49. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +17745 -4940
  50. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +126 -57
  51. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +395 -86
  52. package/cjs/types/CamStreamerAPI/facebookSchema.js +13 -1
  53. package/cjs/types/CamStreamerAPI/index.d.ts +1 -3
  54. package/cjs/types/CamStreamerAPI/index.js +1 -3
  55. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
  56. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  57. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +392 -304
  58. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +116 -76
  59. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
  60. package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
  61. package/cjs/types/CamStreamerAPI/windySchema.d.ts +356 -87
  62. package/cjs/types/CamStreamerAPI/windySchema.js +9 -1
  63. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +351 -119
  64. package/cjs/types/CamStreamerAPI/youtubeSchema.js +5 -9
  65. package/cjs/types/CamSwitcherAPI.d.ts +96 -91
  66. package/cjs/types/CamSwitcherAPI.js +9 -9
  67. package/cjs/types/GenetecAgent.d.ts +2 -2
  68. package/cjs/types/PlaneTrackerAPI.d.ts +75 -52
  69. package/cjs/types/PlaneTrackerAPI.js +11 -5
  70. package/cjs/types/VapixAPI.d.ts +51 -32
  71. package/cjs/types/VapixAPI.js +10 -3
  72. package/cjs/types/common.d.ts +27 -0
  73. package/cjs/types/common.js +13 -1
  74. package/cjs/types/ws/CamStreamerEvents.d.ts +110 -77
  75. package/cjs/types/ws/CamStreamerEvents.js +11 -7
  76. package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
  77. package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -3
  78. package/esm/CamOverlayAPI.js +16 -65
  79. package/esm/CamScripterAPI.js +9 -30
  80. package/esm/CamStreamerAPI.js +70 -78
  81. package/esm/CamSwitcherAPI.js +31 -89
  82. package/esm/PlaneTrackerAPI.js +21 -76
  83. package/esm/VapixAPI.js +228 -107
  84. package/esm/errors/errors.js +5 -1
  85. package/esm/index.js +1 -0
  86. package/esm/internal/BasicAPI.js +89 -0
  87. package/esm/internal/WsEvents.js +5 -0
  88. package/esm/internal/constants.js +1 -0
  89. package/esm/internal/convertors.js +108 -0
  90. package/esm/internal/transformers.js +1 -1
  91. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +47 -10
  92. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
  93. package/esm/types/CamOverlayAPI/index.js +1 -0
  94. package/esm/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
  95. package/esm/types/CamScripterAPI.js +0 -4
  96. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +109 -41
  97. package/esm/types/CamStreamerAPI/facebookSchema.js +13 -1
  98. package/esm/types/CamStreamerAPI/index.js +1 -3
  99. package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
  100. package/esm/types/CamStreamerAPI/streamCommonTypes.js +116 -76
  101. package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
  102. package/esm/types/CamStreamerAPI/windySchema.js +9 -1
  103. package/esm/types/CamStreamerAPI/youtubeSchema.js +5 -9
  104. package/esm/types/CamSwitcherAPI.js +8 -8
  105. package/esm/types/PlaneTrackerAPI.js +11 -5
  106. package/esm/types/VapixAPI.js +9 -2
  107. package/esm/types/common.js +12 -0
  108. package/esm/types/ws/CamStreamerEvents.js +11 -7
  109. package/package.json +4 -4
  110. package/types/CamOverlayAPI.d.ts +145 -107
  111. package/types/CamScripterAPI.d.ts +5 -8
  112. package/types/CamStreamerAPI.d.ts +2362 -806
  113. package/types/CamSwitcherAPI.d.ts +23 -22
  114. package/types/PlaneTrackerAPI.d.ts +31 -31
  115. package/types/VapixAPI.d.ts +36 -23
  116. package/types/errors/errors.d.ts +11 -5
  117. package/types/index.d.ts +1 -0
  118. package/types/internal/BasicAPI.d.ts +15 -0
  119. package/types/internal/WsEvents.d.ts +1 -0
  120. package/types/internal/constants.d.ts +1 -0
  121. package/types/internal/convertors.d.ts +6 -0
  122. package/types/internal/types.d.ts +3 -0
  123. package/types/internal/versionCompare.d.ts +2 -2
  124. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +878 -358
  125. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
  126. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +28 -28
  127. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
  128. package/types/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
  129. package/types/types/CamOverlayAPI/index.d.ts +1 -0
  130. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
  131. package/types/types/CamOverlayAPI/pipSchema.d.ts +8 -8
  132. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
  133. package/types/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
  134. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
  135. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
  136. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
  137. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
  138. package/types/types/CamScripterAPI.d.ts +0 -11
  139. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +17745 -4940
  140. package/types/types/CamStreamerAPI/facebookSchema.d.ts +395 -86
  141. package/types/types/CamStreamerAPI/index.d.ts +1 -3
  142. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
  143. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +392 -304
  144. package/types/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
  145. package/types/types/CamStreamerAPI/windySchema.d.ts +356 -87
  146. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +351 -119
  147. package/types/types/CamSwitcherAPI.d.ts +96 -91
  148. package/types/types/GenetecAgent.d.ts +2 -2
  149. package/types/types/PlaneTrackerAPI.d.ts +75 -52
  150. package/types/types/VapixAPI.d.ts +51 -32
  151. package/types/types/common.d.ts +27 -0
  152. package/types/types/ws/CamStreamerEvents.d.ts +110 -77
  153. package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
  154. package/types/types/ws/PlaneTrackerEvents.d.ts +3 -3
  155. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -275
  156. package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
  157. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -275
  158. package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
  159. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -275
  160. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
  161. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -275
  162. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
  163. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -275
  164. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
  165. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -275
  166. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
  167. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -275
  168. package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
  169. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -275
  170. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
  171. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -275
  172. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
  173. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -323
  174. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
  175. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -284
  176. package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -14
  177. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -275
  178. package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
  179. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -275
  180. package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
  181. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -275
  182. package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
  183. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -275
  184. package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
  185. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -275
  186. package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
  187. package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
  188. package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
  189. package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
  190. package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
  191. package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
  192. package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
  193. package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
  194. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
  195. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
  196. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -21
  197. package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -8
  198. package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
  199. package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
  200. package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
  201. package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
  202. package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
  203. package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -275
  204. package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -275
  205. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -275
  206. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -275
  207. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -275
  208. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -275
  209. package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -275
  210. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -275
  211. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -275
  212. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -323
  213. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -284
  214. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -275
  215. package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -275
  216. package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -275
  217. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -275
  218. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -275
@@ -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", "SportTracker"];
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 {};
@@ -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
+ });
@@ -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>;
@@ -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
+ });