camstreamerlib 4.0.0-beta.1 → 4.0.0-beta.100

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 (391) hide show
  1. package/README.md +146 -37
  2. package/cjs/CamOverlayAPI.d.ts +867 -0
  3. package/cjs/CamOverlayAPI.js +219 -0
  4. package/cjs/CamScripterAPI.d.ts +46 -0
  5. package/cjs/CamScripterAPI.js +80 -0
  6. package/cjs/CamStreamerAPI.d.ts +2082 -0
  7. package/cjs/CamStreamerAPI.js +192 -0
  8. package/cjs/CamSwitcherAPI.d.ts +167 -0
  9. package/cjs/CamSwitcherAPI.js +368 -0
  10. package/cjs/PlaneTrackerAPI.d.ts +241 -0
  11. package/cjs/PlaneTrackerAPI.js +254 -0
  12. package/cjs/VapixAPI.d.ts +118 -0
  13. package/cjs/VapixAPI.js +552 -0
  14. package/cjs/bin/CreatePackage.js +132 -0
  15. package/cjs/errors/errors.d.ts +102 -0
  16. package/cjs/errors/errors.js +217 -0
  17. package/cjs/index.d.ts +27 -0
  18. package/cjs/index.js +54 -0
  19. package/cjs/internal/ProxyClient.d.ts +10 -0
  20. package/cjs/internal/ProxyClient.js +40 -0
  21. package/cjs/internal/WsEvents.d.ts +37 -0
  22. package/cjs/internal/WsEvents.js +73 -0
  23. package/cjs/internal/constants.js +4 -0
  24. package/cjs/internal/transformers.js +32 -0
  25. package/cjs/internal/types.d.ts +47 -0
  26. package/cjs/internal/types.js +2 -0
  27. package/{internal → cjs/internal}/utils.d.ts +3 -1
  28. package/cjs/internal/utils.js +58 -0
  29. package/{internal → cjs/internal}/versionCompare.d.ts +2 -2
  30. package/cjs/internal/versionCompare.js +53 -0
  31. package/cjs/node/CamOverlayDrawingAPI.d.ts +41 -0
  32. package/cjs/node/CamOverlayDrawingAPI.js +243 -0
  33. package/{CamOverlayPainter → cjs/node/CamOverlayPainter}/Frame.d.ts +8 -37
  34. package/cjs/node/CamOverlayPainter/Frame.js +334 -0
  35. package/{CamOverlayPainter → cjs/node/CamOverlayPainter}/Painter.d.ts +6 -11
  36. package/cjs/node/CamOverlayPainter/Painter.js +159 -0
  37. package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  38. package/cjs/node/CamOverlayPainter/ResourceManager.js +72 -0
  39. package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  40. package/cjs/node/CamScripterAPICameraEventsGenerator.js +162 -0
  41. package/cjs/node/DefaultClient.d.ts +16 -0
  42. package/cjs/node/DefaultClient.js +52 -0
  43. package/cjs/node/Digest.js +65 -0
  44. package/cjs/node/Digest.test.d.ts +1 -0
  45. package/cjs/node/Digest.test.js +13 -0
  46. package/{node → cjs/node}/HttpRequestSender.d.ts +1 -0
  47. package/cjs/node/HttpRequestSender.js +99 -0
  48. package/{node → cjs/node}/HttpServer.d.ts +1 -1
  49. package/cjs/node/HttpServer.js +119 -0
  50. package/cjs/node/TimeZoneDaemon.d.ts +6 -0
  51. package/cjs/node/TimeZoneDaemon.js +29 -0
  52. package/cjs/node/VapixEvents.d.ts +16 -0
  53. package/cjs/node/VapixEvents.js +88 -0
  54. package/cjs/node/WsClient.d.ts +30 -0
  55. package/cjs/node/WsClient.js +156 -0
  56. package/cjs/node/events/AxisCameraStationEvents.d.ts +12 -0
  57. package/cjs/node/events/AxisCameraStationEvents.js +53 -0
  58. package/cjs/node/events/GenetecAgent.d.ts +16 -0
  59. package/cjs/node/events/GenetecAgent.js +124 -0
  60. package/cjs/node/index.d.ts +18 -0
  61. package/cjs/node/index.js +41 -0
  62. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
  63. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +92 -0
  64. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  65. package/cjs/types/CamOverlayAPI/accuweatherSchema.js +47 -0
  66. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
  67. package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +72 -0
  68. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
  69. package/cjs/types/CamOverlayAPI/imagesSchema.js +9 -0
  70. package/cjs/types/CamOverlayAPI/index.d.ts +11 -0
  71. package/cjs/types/CamOverlayAPI/index.js +27 -0
  72. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  73. package/cjs/types/CamOverlayAPI/infotickerSchema.js +26 -0
  74. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +125 -0
  75. package/cjs/types/CamOverlayAPI/pipSchema.js +39 -0
  76. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
  77. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +26 -0
  78. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
  79. package/cjs/types/CamOverlayAPI/ptzSchema.js +12 -0
  80. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  81. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +132 -0
  82. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  83. package/cjs/types/CamOverlayAPI/screenSharingSchema.js +8 -0
  84. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
  85. package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +91 -0
  86. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  87. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +8 -0
  88. package/cjs/types/CamOverlayDrawingAPI.d.ts +48 -0
  89. package/cjs/types/CamOverlayDrawingAPI.js +2 -0
  90. package/cjs/types/CamOverlayPainter.d.ts +76 -0
  91. package/cjs/types/CamOverlayPainter.js +14 -0
  92. package/cjs/types/CamScripterAPI.d.ts +130 -0
  93. package/cjs/types/CamScripterAPI.js +36 -0
  94. package/cjs/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  95. package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
  96. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +13791 -0
  97. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +153 -0
  98. package/cjs/types/CamStreamerAPI/churchSchema.d.ts +275 -0
  99. package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
  100. package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +275 -0
  101. package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
  102. package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +275 -0
  103. package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
  104. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +275 -0
  105. package/cjs/types/CamStreamerAPI/facebookSchema.js +11 -0
  106. package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +275 -0
  107. package/cjs/types/CamStreamerAPI/gameChangerSchema.js +11 -0
  108. package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +275 -0
  109. package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
  110. package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +275 -0
  111. package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
  112. package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +275 -0
  113. package/cjs/types/CamStreamerAPI/ibmSchema.js +11 -0
  114. package/cjs/types/CamStreamerAPI/index.d.ts +8 -0
  115. package/cjs/types/CamStreamerAPI/index.js +24 -0
  116. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +275 -0
  117. package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
  118. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +275 -0
  119. package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
  120. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +323 -0
  121. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +27 -0
  122. package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +208 -0
  123. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +53 -0
  124. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +284 -0
  125. package/cjs/types/CamStreamerAPI/rtmpSchema.js +14 -0
  126. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +275 -0
  127. package/cjs/types/CamStreamerAPI/sdCardSchema.js +11 -0
  128. package/cjs/types/CamStreamerAPI/srtSchema.d.ts +275 -0
  129. package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
  130. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +492 -0
  131. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +85 -0
  132. package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +275 -0
  133. package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
  134. package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +275 -0
  135. package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
  136. package/cjs/types/CamStreamerAPI/windySchema.d.ts +275 -0
  137. package/cjs/types/CamStreamerAPI/windySchema.js +11 -0
  138. package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +275 -0
  139. package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
  140. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +317 -0
  141. package/cjs/types/CamStreamerAPI/youtubeSchema.js +25 -0
  142. package/cjs/types/CamSwitcherAPI.d.ts +893 -0
  143. package/cjs/types/CamSwitcherAPI.js +174 -0
  144. package/{events → cjs/types}/GenetecAgent.d.ts +47 -47
  145. package/cjs/types/GenetecAgent.js +31 -0
  146. package/cjs/types/PlaneTrackerAPI.d.ts +980 -0
  147. package/cjs/types/PlaneTrackerAPI.js +333 -0
  148. package/cjs/types/VapixAPI.d.ts +1865 -0
  149. package/cjs/types/VapixAPI.js +188 -0
  150. package/cjs/types/VapixEvents.d.ts +15 -0
  151. package/cjs/types/VapixEvents.js +2 -0
  152. package/{types → cjs/types}/common.d.ts +18 -5
  153. package/cjs/types/common.js +17 -0
  154. package/cjs/types/ws/CamOverlayEvents.d.ts +88 -0
  155. package/cjs/types/ws/CamOverlayEvents.js +19 -0
  156. package/cjs/types/ws/CamStreamerEvents.d.ts +249 -0
  157. package/cjs/types/ws/CamStreamerEvents.js +32 -0
  158. package/{types/CamswitcherEvents.d.ts → cjs/types/ws/CamSwitcherEvents.d.ts} +110 -0
  159. package/cjs/types/ws/CamSwitcherEvents.js +70 -0
  160. package/cjs/types/ws/PlaneTrackerEvents.d.ts +1703 -0
  161. package/cjs/types/ws/PlaneTrackerEvents.js +207 -0
  162. package/cjs/web/DefaultClient.d.ts +8 -0
  163. package/cjs/web/DefaultClient.js +36 -0
  164. package/cjs/web/WsClient.d.ts +17 -0
  165. package/cjs/web/WsClient.js +60 -0
  166. package/cjs/web/index.d.ts +2 -0
  167. package/cjs/web/index.js +7 -0
  168. package/cjs/ws/CamOverlayEvents.d.ts +8 -0
  169. package/cjs/ws/CamOverlayEvents.js +24 -0
  170. package/cjs/ws/CamStreamerEvents.d.ts +8 -0
  171. package/cjs/ws/CamStreamerEvents.js +24 -0
  172. package/cjs/ws/CamSwitcherEvents.d.ts +8 -0
  173. package/cjs/ws/CamSwitcherEvents.js +24 -0
  174. package/cjs/ws/PlaneTrackerEvents.d.ts +9 -0
  175. package/cjs/ws/PlaneTrackerEvents.js +30 -0
  176. package/esm/CamOverlayAPI.js +215 -0
  177. package/esm/CamScripterAPI.js +76 -0
  178. package/esm/CamStreamerAPI.js +187 -0
  179. package/esm/CamSwitcherAPI.js +364 -0
  180. package/esm/PlaneTrackerAPI.js +250 -0
  181. package/esm/VapixAPI.js +548 -0
  182. package/{CreatePackage.js → esm/bin/CreatePackage.js} +16 -16
  183. package/esm/errors/errors.js +186 -0
  184. package/esm/index.js +27 -0
  185. package/esm/internal/ProxyClient.js +36 -0
  186. package/{CamSwitcherEvents.js → esm/internal/WsEvents.js} +26 -20
  187. package/esm/internal/types.js +1 -0
  188. package/{internal → esm/internal}/utils.js +12 -2
  189. package/{CamOverlayDrawingAPI.js → esm/node/CamOverlayDrawingAPI.js} +32 -21
  190. package/{CamOverlayPainter → esm/node/CamOverlayPainter}/Frame.js +33 -0
  191. package/{CamOverlayPainter → esm/node/CamOverlayPainter}/Painter.js +6 -14
  192. package/{CamOverlayPainter → esm/node/CamOverlayPainter}/ResourceManager.js +11 -13
  193. package/{CamScripterAPICameraEventsGenerator.js → esm/node/CamScripterAPICameraEventsGenerator.js} +17 -14
  194. package/{node → esm/node}/DefaultClient.js +10 -12
  195. package/{internal → esm/node}/Digest.js +6 -6
  196. package/esm/node/Digest.test.js +11 -0
  197. package/{node → esm/node}/HttpRequestSender.js +14 -4
  198. package/{node → esm/node}/HttpServer.js +2 -2
  199. package/esm/node/TimeZoneDaemon.js +25 -0
  200. package/{VapixEvents.js → esm/node/VapixEvents.js} +13 -13
  201. package/{node → esm/node}/WsClient.js +22 -15
  202. package/{events → esm/node/events}/AxisCameraStationEvents.js +18 -13
  203. package/esm/node/events/GenetecAgent.js +120 -0
  204. package/esm/node/index.js +18 -0
  205. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +76 -0
  206. package/esm/types/CamOverlayAPI/accuweatherSchema.js +44 -0
  207. package/esm/types/CamOverlayAPI/customGraphicsSchema.js +69 -0
  208. package/esm/types/CamOverlayAPI/imagesSchema.js +6 -0
  209. package/esm/types/CamOverlayAPI/index.js +11 -0
  210. package/esm/types/CamOverlayAPI/infotickerSchema.js +23 -0
  211. package/esm/types/CamOverlayAPI/pipSchema.js +36 -0
  212. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +23 -0
  213. package/esm/types/CamOverlayAPI/ptzSchema.js +9 -0
  214. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +129 -0
  215. package/esm/types/CamOverlayAPI/screenSharingSchema.js +5 -0
  216. package/esm/types/CamOverlayAPI/serviceCommonTypes.js +88 -0
  217. package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +5 -0
  218. package/esm/types/CamOverlayDrawingAPI.js +1 -0
  219. package/esm/types/CamOverlayPainter.js +11 -0
  220. package/esm/types/CamScripterAPI.js +33 -0
  221. package/esm/types/CamScripterAPICameraEventsGenerator.js +1 -0
  222. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +131 -0
  223. package/esm/types/CamStreamerAPI/churchSchema.js +5 -0
  224. package/esm/types/CamStreamerAPI/daCastSchema.js +5 -0
  225. package/esm/types/CamStreamerAPI/dailymotionSchema.js +5 -0
  226. package/esm/types/CamStreamerAPI/facebookSchema.js +5 -0
  227. package/esm/types/CamStreamerAPI/gameChangerSchema.js +5 -0
  228. package/esm/types/CamStreamerAPI/hlsPullSchema.js +5 -0
  229. package/esm/types/CamStreamerAPI/hlsPushSchema.js +5 -0
  230. package/esm/types/CamStreamerAPI/ibmSchema.js +5 -0
  231. package/esm/types/CamStreamerAPI/index.js +8 -0
  232. package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +5 -0
  233. package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +5 -0
  234. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +21 -0
  235. package/esm/types/CamStreamerAPI/oldStreamSchema.js +50 -0
  236. package/esm/types/CamStreamerAPI/rtmpSchema.js +8 -0
  237. package/esm/types/CamStreamerAPI/sdCardSchema.js +5 -0
  238. package/esm/types/CamStreamerAPI/srtSchema.js +5 -0
  239. package/esm/types/CamStreamerAPI/streamCommonTypes.js +82 -0
  240. package/esm/types/CamStreamerAPI/twitchSchema.js +5 -0
  241. package/esm/types/CamStreamerAPI/vimeoSchema.js +5 -0
  242. package/esm/types/CamStreamerAPI/windySchema.js +5 -0
  243. package/esm/types/CamStreamerAPI/wowzaSchema.js +5 -0
  244. package/esm/types/CamStreamerAPI/youtubeSchema.js +19 -0
  245. package/{types → esm/types}/CamSwitcherAPI.js +38 -1
  246. package/esm/types/GenetecAgent.js +28 -0
  247. package/esm/types/PlaneTrackerAPI.js +330 -0
  248. package/{types → esm/types}/VapixAPI.js +81 -25
  249. package/esm/types/VapixEvents.js +1 -0
  250. package/{types → esm/types}/common.js +4 -1
  251. package/esm/types/ws/CamOverlayEvents.js +16 -0
  252. package/esm/types/ws/CamStreamerEvents.js +29 -0
  253. package/{types/CamswitcherEvents.js → esm/types/ws/CamSwitcherEvents.js} +12 -0
  254. package/esm/types/ws/PlaneTrackerEvents.js +204 -0
  255. package/esm/web/DefaultClient.js +32 -0
  256. package/{web → esm/web}/WsClient.js +16 -18
  257. package/esm/web/index.js +2 -0
  258. package/esm/ws/CamOverlayEvents.js +20 -0
  259. package/esm/ws/CamStreamerEvents.js +20 -0
  260. package/esm/ws/CamSwitcherEvents.js +20 -0
  261. package/esm/ws/PlaneTrackerEvents.js +26 -0
  262. package/package.json +47 -13
  263. package/types/CamOverlayAPI.d.ts +866 -187
  264. package/types/CamScripterAPI.d.ts +44 -65
  265. package/types/CamStreamerAPI.d.ts +2082 -139
  266. package/types/CamSwitcherAPI.d.ts +147 -794
  267. package/types/PlaneTrackerAPI.d.ts +241 -0
  268. package/types/VapixAPI.d.ts +111 -1697
  269. package/types/bin/CreatePackage.d.ts +1 -0
  270. package/types/errors/errors.d.ts +102 -0
  271. package/types/index.d.ts +27 -0
  272. package/types/internal/ProxyClient.d.ts +10 -0
  273. package/types/internal/WsEvents.d.ts +37 -0
  274. package/types/internal/constants.d.ts +1 -0
  275. package/types/internal/transformers.d.ts +5 -0
  276. package/types/internal/types.d.ts +47 -0
  277. package/types/internal/utils.d.ts +13 -0
  278. package/types/internal/versionCompare.d.ts +6 -0
  279. package/types/node/CamOverlayDrawingAPI.d.ts +41 -0
  280. package/types/node/CamOverlayPainter/Frame.d.ts +67 -0
  281. package/types/node/CamOverlayPainter/Painter.d.ts +32 -0
  282. package/types/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  283. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  284. package/types/node/DefaultClient.d.ts +16 -0
  285. package/types/node/Digest.d.ts +4 -0
  286. package/types/node/Digest.test.d.ts +1 -0
  287. package/types/node/HttpRequestSender.d.ts +29 -0
  288. package/types/node/HttpServer.d.ts +21 -0
  289. package/types/node/TimeZoneDaemon.d.ts +6 -0
  290. package/types/node/VapixEvents.d.ts +16 -0
  291. package/types/node/WsClient.d.ts +30 -0
  292. package/types/node/events/AxisCameraStationEvents.d.ts +12 -0
  293. package/types/node/events/GenetecAgent.d.ts +16 -0
  294. package/types/node/index.d.ts +18 -0
  295. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
  296. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  297. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
  298. package/types/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
  299. package/types/types/CamOverlayAPI/index.d.ts +11 -0
  300. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  301. package/types/types/CamOverlayAPI/pipSchema.d.ts +125 -0
  302. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
  303. package/types/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
  304. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  305. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  306. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
  307. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  308. package/types/types/CamOverlayDrawingAPI.d.ts +48 -0
  309. package/types/types/CamOverlayPainter.d.ts +76 -0
  310. package/types/types/CamScripterAPI.d.ts +130 -0
  311. package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  312. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +13791 -0
  313. package/types/types/CamStreamerAPI/churchSchema.d.ts +275 -0
  314. package/types/types/CamStreamerAPI/daCastSchema.d.ts +275 -0
  315. package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +275 -0
  316. package/types/types/CamStreamerAPI/facebookSchema.d.ts +275 -0
  317. package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +275 -0
  318. package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +275 -0
  319. package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +275 -0
  320. package/types/types/CamStreamerAPI/ibmSchema.d.ts +275 -0
  321. package/types/types/CamStreamerAPI/index.d.ts +8 -0
  322. package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +275 -0
  323. package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +275 -0
  324. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +323 -0
  325. package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +208 -0
  326. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +284 -0
  327. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +275 -0
  328. package/types/types/CamStreamerAPI/srtSchema.d.ts +275 -0
  329. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +492 -0
  330. package/types/types/CamStreamerAPI/twitchSchema.d.ts +275 -0
  331. package/types/types/CamStreamerAPI/vimeoSchema.d.ts +275 -0
  332. package/types/types/CamStreamerAPI/windySchema.d.ts +275 -0
  333. package/types/types/CamStreamerAPI/wowzaSchema.d.ts +275 -0
  334. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +317 -0
  335. package/types/types/CamSwitcherAPI.d.ts +893 -0
  336. package/types/types/GenetecAgent.d.ts +174 -0
  337. package/types/types/PlaneTrackerAPI.d.ts +980 -0
  338. package/types/types/VapixAPI.d.ts +1865 -0
  339. package/types/types/VapixEvents.d.ts +15 -0
  340. package/types/types/common.d.ts +50 -0
  341. package/types/types/ws/CamOverlayEvents.d.ts +88 -0
  342. package/types/types/ws/CamStreamerEvents.d.ts +249 -0
  343. package/types/types/ws/CamSwitcherEvents.d.ts +568 -0
  344. package/types/types/ws/PlaneTrackerEvents.d.ts +1703 -0
  345. package/types/web/DefaultClient.d.ts +8 -0
  346. package/types/web/WsClient.d.ts +17 -0
  347. package/types/web/index.d.ts +2 -0
  348. package/types/ws/CamOverlayEvents.d.ts +8 -0
  349. package/types/ws/CamStreamerEvents.d.ts +8 -0
  350. package/types/ws/CamSwitcherEvents.d.ts +8 -0
  351. package/types/ws/PlaneTrackerEvents.d.ts +9 -0
  352. package/CamOverlayAPI.d.ts +0 -31
  353. package/CamOverlayAPI.js +0 -172
  354. package/CamOverlayDrawingAPI.d.ts +0 -86
  355. package/CamOverlayPainter/ResourceManager.d.ts +0 -14
  356. package/CamScripterAPI.d.ts +0 -19
  357. package/CamScripterAPI.js +0 -66
  358. package/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  359. package/CamStreamerAPI.d.ts +0 -16
  360. package/CamStreamerAPI.js +0 -61
  361. package/CamSwitcherAPI.d.ts +0 -48
  362. package/CamSwitcherAPI.js +0 -350
  363. package/CamSwitcherEvents.d.ts +0 -18
  364. package/VapixAPI.d.ts +0 -66
  365. package/VapixAPI.js +0 -455
  366. package/VapixEvents.d.ts +0 -43
  367. package/errors/errors.d.ts +0 -34
  368. package/errors/errors.js +0 -66
  369. package/events/AxisCameraStationEvents.d.ts +0 -9
  370. package/events/GenetecAgent.js +0 -119
  371. package/internal/ProxyClient.d.ts +0 -11
  372. package/internal/ProxyClient.js +0 -40
  373. package/internal/common.d.ts +0 -40
  374. package/internal/common.js +0 -23
  375. package/node/DefaultClient.d.ts +0 -15
  376. package/node/WsClient.d.ts +0 -39
  377. package/node/WsEventClient.d.ts +0 -13
  378. package/node/WsEventClient.js +0 -18
  379. package/types/CamOverlayAPI.js +0 -44
  380. package/types/CamScripterAPI.js +0 -17
  381. package/types/CamStreamerAPI.js +0 -25
  382. package/web/DefaultClient.d.ts +0 -6
  383. package/web/DefaultClient.js +0 -16
  384. package/web/WsClient.d.ts +0 -13
  385. /package/{CreatePackage.d.ts → cjs/bin/CreatePackage.d.ts} +0 -0
  386. /package/{internal → cjs/internal}/constants.d.ts +0 -0
  387. /package/{internal → cjs/internal}/transformers.d.ts +0 -0
  388. /package/{internal → cjs/node}/Digest.d.ts +0 -0
  389. /package/{internal → esm/internal}/constants.js +0 -0
  390. /package/{internal → esm/internal}/transformers.js +0 -0
  391. /package/{internal → esm/internal}/versionCompare.js +0 -0
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  **This is beta version of CamStreamerLib v4, dont use it on production. Is going to be changed significantly.**
4
4
 
5
+ **The documentation is in progress**
6
+
5
7
  Node.js helper library for CamStreamer ACAP applications.
6
8
 
7
9
  The library is primarily developed for the CamScripter ACAP application running directly in Axis cameras.
@@ -13,29 +15,159 @@ Examples of CamScripter packages can be found at https://github.com/CamStreamer/
13
15
  npm install camstreamerlib
14
16
  ```
15
17
 
16
- # Documentation for Node.js modules
18
+ ## Documentation for ACAP and Camera API
19
+
20
+ | API | Description |
21
+ | -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
22
+ | [VapixAPI](doc/VapixAPI.md) | Module to access Axis camera VAPIX interface. |
23
+ | [CamStreamerAPI](doc/CamStreamerAPI.md) | Module for easy control of video streaming in the CamStreamer ACAP application (RTMP, HLS, SRT and MPEG-TS protocols). |
24
+ | [CamOverlayAPI](doc/CamOverlayAPI.md) | Module to access CamOverlay API. |
25
+ | [CamScripterAPI](doc/CamScripterAPI.md) | Module to access CamScripter API. |
26
+ | [CamSwitcherAPI](doc/CamSwitcherAPI.md) | Module to access CamSwitcher API. |
27
+ | [PlaneTrackerAPI](doc/PlaneTrackerAPI.md) | Module to access PlaneTracker API. |
28
+ | [CamStreamerEvents](doc/ws/CamStreamerEvents.md) | Module which allows receiving events from CamStreamer ACAP application. |
29
+ | [OverlayEvents](doc/ws/OverlayEvents.md) | Module which allows receiving events from Overlay ACAP application. |
30
+ | [CamSwitcherEvents](doc/ws/CamSwitcherEvents.md) | Module which allows receiving events from CamSwitcher ACAP application. |
31
+ | [PlaneTrackerEvents](doc/ws/PlaneTrackerEvents.md) | Module which allows receiving events from PlaneTracker ACAP application. |
32
+
33
+ ## Documentation for Node.js modules
34
+
35
+ | Module | Description |
36
+ | --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
37
+ | [HttpServer](doc/HttpServer.md) | Module for processing HTTP requests in your scripts. It also automatically serves up the content from html directory or you can register paths which you can process by your own (e.g. `http://$CAMERA_IP/local/camscripter/proxy/$MY_PACKAGE_NAME/control.cgi`). |
38
+ | [VapixEvents](doc/ws/VapixEvents.md) | Module which allows receiving camera events from the VAPIX API. |
39
+ | [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) | Module for easy control of CamOverlay drawing API. For more details on supported video overlay drawing functions see https://camstreamer.com/camoverlay-api1 |
40
+ | [CamOverlayPainter](doc/CamOverlayPainter.md) | Contains three modules which makes easier to use CamOverlayDrawingAPI. |
41
+ | [CamScripterAPICameraEventsGenerator](doc/CamScripterAPICameraEventsGenerator.md) | Module which allows generating events on an Axis camera. These events can be used for triggers in the Axis camera rule engine (events/actions). It is also an easy way how to integrate events and metadata in VMS systems which support Axis camera events. |
42
+ | [GenetecAgent](doc/GenetecAgent.md) | Module which allows receiving and sending data to Genetec VMS. |
43
+ | [TimeZoneDaemon](doc/TimeZoneDaemon.md) | Module for periodically checking and updating the Node.js process timezone to match the system timezone. |
44
+
45
+ </br>
46
+
47
+ # Breaking Changes
48
+
49
+ <details open>
50
+
51
+ <summary>from version 3.\*.\* to 4.\*.\* (latest)</summary>
52
+
53
+ ### Breaking changes when moving from version 3.\*.\* to 4.\*.\* (latest)
54
+
55
+ <hr/>
56
+
57
+ ### ACAP API Class Constructors Updated
58
+
59
+ All ACAP API classes now **require a client instance to be passed into their constructors** instead of options object.
60
+
61
+ - This change improves flexibility by allowing you to use either the Node or Web client, depending on your environment.
62
+
63
+ Example (before → now):
64
+
65
+ ```typescript
66
+ // Before
67
+ const coApi = new CamOverlayAPI({
68
+ ip?: string;
69
+ port?: number;
70
+ user?: string;
71
+ pass?: string;
72
+ tls?: boolean;
73
+ tlsInsecure?: boolean;
74
+ keepAlive?: boolean
75
+ });
76
+
77
+ // Now
78
+ import { DefaultClient } from 'camstreamerlib/web';
79
+ import { CamOverlayAPI } from 'camstreamerlib';
80
+
81
+ const coApi = new CamOverlayAPI(
82
+ new DefaultClient({
83
+ tls: false,
84
+ tlsInsecure: false,
85
+ ip: '127.0.0.1',
86
+ port: 80,
87
+ user: '',
88
+ pass: '',
89
+ })
90
+ );
91
+ ```
92
+
93
+ ### Imports Simplified
94
+
95
+ Importing from the camstreamerlib is now much easier -> all exports are now re-exported from the root index.js.
96
+ You no longer need to import from subpaths.
17
97
 
18
- - [HttpServer](doc/HttpServer.md) is a module for processing HTTP requests in your scripts. It also automatically serves up the content from html directory or you can register paths which you can process by your own (e.g. http://$CAMERA_IP/local/camscripter/proxy/$MY_PACKAGE_NAME/control.cgi).
98
+ Example:
99
+
100
+ ```typescript
101
+ // Before
102
+ import { CamScripterAPI } from 'camstreamerlib/CamScripterAPI';
103
+ import { Painter } from 'camstreamerlib/CamOverlayPainter/Painter';
104
+ import { DefaultAgent } from 'camstreamerlib/DefaultAgent';
105
+
106
+ // Now
107
+ import { CamScripterAPI } from 'camstreamerlib';
108
+ import { Painter } from 'camstreamerlib/node';
109
+ import { DefaultClient } from 'camstreamerlib/web';
110
+ ```
19
111
 
20
- - [CameraVapix](doc/CameraVapix.md) is a module to access Axis camera VAPIX interface.
112
+ > Note: To ensure compatibility, set the module resolution in your projects tsconfig.json to `"moduleResolution": "bundler"`.
21
113
 
22
- - [CamStreamerAPI](doc/CamStreamerAPI.md) is a module for easy control of video streaming in the CamStreamer ACAP application (RTMP, HLS, SRT and MPEG-TS protocols).
114
+ ### Class and Method Refactored
23
115
 
24
- - [CamOverlayAPI](doc/CamOverlayAPI.md) is a module to access CamOverlay HTTP interface.
116
+ - **CameraVapix API** has been renamed to [**VapixAPI**](doc/VapixAPI.md).
117
+ - **DefaultAgent** has been refactored into two separate classes - one for node, one for web as [**DefaultClient**](doc/Client.md)
118
+ - Several method names and parameter names across the library have been updated for consistency and clarity.
25
119
 
26
- - [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) is a module for easy control of CamOverlay drawing API. For more details on supported video overlay drawing functions see https://camstreamer.com/camoverlay-api1
120
+ > Please refer to [the documentation](#documentation-for-acap-and-camera-api).
121
+
122
+ - New API modules and endpoints have been introduced, providing extended functionality and better coverage of the underlying service.
123
+
124
+ <hr/>
125
+ </details>
126
+
127
+ <details>
128
+
129
+ <summary>from version 2.\*.\* to 3.\*.\*</summary>
130
+
131
+ ### Breaking changes when moving from version 2.\*.\* to 3.\*.\*
132
+
133
+ - CamStreamerlib requiers Node.js version 18 or higher.
134
+ - CamOverlayDrawingAPI tries to reconnect when the websocket is closed. You don't have to do it manually.
135
+
136
+ > However, events `open` and `close` are still emitted in case you need to react to them.
137
+
138
+ - Files `common.ts`, `Digest.ts`, `HttpRequest.ts` and `WsClient.ts` moved to a folder internal.
139
+ - Removed function `httpRequest()`. Use `sendRequest()` instead. It uses the same interface except for the "noWaitForData" parameter.
140
+
141
+ > It returns (Response object)[https://developer.mozilla.org/en-US/docs/Web/API/Response] which doesn't contain data by default.
142
+ > If you need to wait for data, you can call for example the function `await res.text()`.
143
+ > This change affects the function `vapixGet` from (CameraVapix)[doc/CameraVapix.md] too.
144
+
145
+ <hr/>
146
+ </details>
147
+
148
+ <details>
149
+
150
+ <summary>from version 1.\*.\* to 2.\*.\**</summary>
151
+
152
+ ### Breaking changes when moving from version 1.\*.\* to 2.\*.\*
27
153
 
28
- - [CamOverlayPainter/](doc/CamOverlayPainter.md) contains three modules which makes easier to use CamOverlayDrawingAPI.
154
+ - Renamed file HTTPRequest.ts to HttpRequest.ts
155
+ - Removed deprecated protocol attribute from all options objects (use tls instead).
156
+ - Removed RTSP
29
157
 
30
- - [CamScripterAPICameraEventsGenerator](doc/CamScripterAPICameraEventsGenerator.md) is a module which allows generating events on an Axis camera. These events can be used for triggers in the Axis camera rule engine (events/actions). It is also an easy way how to integrate events and metadata in VMS systems which support Axis camera events.
158
+ > Previously CameraVapix.ts supported both WebSocket and RTSP.
159
+ > Starting with version 2.0.0, it supports WebSocket only.
31
160
 
32
- - [CamSwitcherEvents](doc/CamSwitcherEvents.md) is a module which allows receiving events from CamSwitcher ACAP application.
161
+ - ServiceID shouldn't be passed to CamOverlayAPI by the options object. Pass it as a parameter.
162
+ - Renamed CamOverlayDrawingAPI event msg to message.
163
+ - Drawing services extracted from CamOverlayAPI.ts to a separate file.
33
164
 
34
- - [VapixEvents](doc/VapixEvents.md) is a module which allows receiving camera events from the VAPIX API.
165
+ > Please read [CamOverlayAPI](doc/CamOverlayAPI.md) and [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) for more information.
35
166
 
36
- - [GenetecAgent](doc/GenetecAgent.md) is a module which allows receiving and sending data to Genetec VMS.
167
+ </details>
168
+ </br>
37
169
 
38
- ## For Developers
170
+ # For Developers
39
171
 
40
172
  ### Publishing to npm repository
41
173
 
@@ -57,7 +189,7 @@ If you want to create your own package and upload it to CamScripter App, you can
57
189
 
58
190
  ```json
59
191
  "scripts": {
60
- "create-package": "node node_modules/camstreamerlib/CreatePackage.js"
192
+ "create-package": "node node_modules/camstreamerlib/bin/CreatePackage.js"
61
193
  }
62
194
  ```
63
195
 
@@ -69,29 +201,6 @@ The zip package is created in the current directory. You can choose different lo
69
201
 
70
202
  ```json
71
203
  "scripts": {
72
- "create-package": "node node_modules/camstreamerlib/CreatePackage.js -i -e=react"
204
+ "create-package": "node node_modules/camstreamerlib/bin/CreatePackage.js -i -e=react"
73
205
  }
74
206
  ```
75
-
76
- ### Breaking changes when moving from version 1.\*.\* to 2.\*.\*
77
-
78
- - Renamed file HTTPRequest.ts to HttpRequest.ts
79
- - Removed deprecated protocol attribute from all options objects (use tls instead).
80
- - Removed RTSP
81
- > Previously CameraVapix.ts supported both WebSocket and RTSP.
82
- > Starting with version 2.0.0, it supports WebSocket only.
83
- - ServiceID shouldn't be passed to CamOverlayAPI by the options object. Pass it as a parameter.
84
- - Renamed CamOverlayDrawingAPI event msg to message.
85
- - Drawing services extracted from CamOverlayAPI.ts to a separate file.
86
- > Please read [CamOverlayAPI](doc/CamOverlayAPI.md) and [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) for more information.
87
-
88
- ### Breaking changes when moving from version 2.\*.\* to 3.\*.\*
89
-
90
- - CamStreamerlib requiers Node.js version 18 or higher.
91
- - CamOverlayDrawingAPI tries to reconnect when the websocket is closed. You don't have to do it manually.
92
- > However, events `open` and `close` are still emitted in case you need to react to them.
93
- - Files common.ts, Digest.ts, HttpRequest.ts and WsClient.ts moved to a folder internal.
94
- - Removed function httpRequest(). Use sendRequest() instead. It uses the same interface except for the "noWaitForData" parameter.
95
- > It returns (Response object)[https://developer.mozilla.org/en-US/docs/Web/API/Response] which doesn't contain data by default.
96
- > If you need to wait for data, you can call for example the function `await res.text()`.
97
- > This change affects the function `vapixGet` from (CameraVapix)[doc/CameraVapix.md] too.