camstreamerlib 4.0.0-beta.16 → 4.0.0-beta.161

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 (361) hide show
  1. package/README.md +143 -38
  2. package/cjs/CamOverlayAPI.d.ts +603 -327
  3. package/cjs/CamOverlayAPI.js +99 -184
  4. package/cjs/CamScripterAPI.d.ts +41 -17
  5. package/cjs/CamScripterAPI.js +54 -56
  6. package/cjs/CamStreamerAPI.d.ts +3557 -14
  7. package/cjs/CamStreamerAPI.js +174 -52
  8. package/cjs/CamSwitcherAPI.d.ts +158 -42
  9. package/cjs/CamSwitcherAPI.js +148 -189
  10. package/cjs/PlaneTrackerAPI.d.ts +238 -29
  11. package/cjs/PlaneTrackerAPI.js +187 -101
  12. package/cjs/VapixAPI.d.ts +97 -44
  13. package/cjs/VapixAPI.js +400 -207
  14. package/cjs/{CreatePackage.js → bin/CreatePackage.js} +44 -18
  15. package/cjs/errors/errors.d.ts +75 -4
  16. package/cjs/errors/errors.js +142 -7
  17. package/cjs/index.d.ts +20 -9
  18. package/cjs/index.js +28 -14
  19. package/cjs/internal/BasicAPI.d.ts +15 -0
  20. package/cjs/internal/BasicAPI.js +93 -0
  21. package/cjs/internal/ProxyClient.d.ts +8 -9
  22. package/cjs/internal/ProxyClient.js +28 -34
  23. package/cjs/internal/WsEvents.d.ts +38 -0
  24. package/cjs/{CamSwitcherEvents.js → internal/WsEvents.js} +33 -22
  25. package/cjs/internal/constants.d.ts +1 -0
  26. package/cjs/internal/constants.js +2 -1
  27. package/cjs/internal/convertors.d.ts +6 -0
  28. package/cjs/internal/convertors.js +115 -0
  29. package/cjs/internal/transformers.js +8 -8
  30. package/cjs/internal/types.d.ts +32 -20
  31. package/cjs/internal/utils.d.ts +1 -3
  32. package/cjs/internal/utils.js +1 -12
  33. package/cjs/internal/versionCompare.d.ts +2 -2
  34. package/cjs/node/CamOverlayDrawingAPI.d.ts +41 -0
  35. package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +28 -20
  36. package/{esm → cjs/node}/CamOverlayPainter/Frame.d.ts +8 -37
  37. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
  38. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.d.ts +5 -21
  39. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +5 -17
  40. package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  41. package/cjs/node/CamOverlayPainter/ResourceManager.js +72 -0
  42. package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  43. package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +13 -13
  44. package/cjs/node/DefaultClient.d.ts +6 -6
  45. package/cjs/node/DefaultClient.js +12 -16
  46. package/cjs/{internal → node}/Digest.js +24 -1
  47. package/cjs/node/Digest.test.js +13 -0
  48. package/cjs/node/HttpRequestSender.d.ts +1 -0
  49. package/cjs/node/HttpRequestSender.js +14 -4
  50. package/cjs/node/HttpServer.d.ts +1 -1
  51. package/cjs/node/HttpServer.js +29 -6
  52. package/cjs/node/TimeZoneDaemon.d.ts +6 -0
  53. package/cjs/node/TimeZoneDaemon.js +29 -0
  54. package/cjs/node/VapixEvents.d.ts +16 -0
  55. package/cjs/{VapixEvents.js → node/VapixEvents.js} +10 -10
  56. package/cjs/node/WsClient.d.ts +9 -18
  57. package/cjs/node/WsClient.js +27 -20
  58. package/cjs/node/events/AxisCameraStationEvents.d.ts +12 -0
  59. package/cjs/{events → node/events}/AxisCameraStationEvents.js +18 -13
  60. package/cjs/node/events/GenetecAgent.d.ts +16 -0
  61. package/cjs/node/events/GenetecAgent.js +124 -0
  62. package/cjs/node/index.d.ts +18 -2
  63. package/cjs/node/index.js +39 -5
  64. package/cjs/{models/CamOverlayAPI/widgetsSchema.d.ts → types/CamOverlayAPI/CamOverlayAPI.d.ts} +2794 -767
  65. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +135 -0
  66. package/cjs/{models → types}/CamOverlayAPI/accuweatherSchema.d.ts +19 -19
  67. package/cjs/{models → types}/CamOverlayAPI/accuweatherSchema.js +7 -8
  68. package/cjs/{models → types}/CamOverlayAPI/customGraphicsSchema.d.ts +108 -107
  69. package/cjs/{models → types}/CamOverlayAPI/customGraphicsSchema.js +5 -6
  70. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
  71. package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
  72. package/{esm/models → cjs/types}/CamOverlayAPI/imagesSchema.d.ts +19 -19
  73. package/cjs/types/CamOverlayAPI/imagesSchema.js +9 -0
  74. package/cjs/{models → types}/CamOverlayAPI/index.d.ts +3 -4
  75. package/cjs/{models → types}/CamOverlayAPI/index.js +3 -4
  76. package/cjs/{models → types}/CamOverlayAPI/infotickerSchema.d.ts +27 -27
  77. package/cjs/{models → types}/CamOverlayAPI/infotickerSchema.js +6 -7
  78. package/{esm/models → cjs/types}/CamOverlayAPI/pipSchema.d.ts +21 -21
  79. package/cjs/{models → types}/CamOverlayAPI/pipSchema.js +5 -6
  80. package/{esm/models → cjs/types}/CamOverlayAPI/ptzCompassSchema.d.ts +18 -15
  81. package/cjs/{models → types}/CamOverlayAPI/ptzCompassSchema.js +5 -5
  82. package/cjs/{models → types}/CamOverlayAPI/ptzSchema.d.ts +28 -28
  83. package/cjs/types/CamOverlayAPI/ptzSchema.js +12 -0
  84. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  85. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +132 -0
  86. package/{esm/models → cjs/types}/CamOverlayAPI/screenSharingSchema.d.ts +15 -15
  87. package/cjs/types/CamOverlayAPI/screenSharingSchema.js +8 -0
  88. package/{esm/models/CamOverlayAPI/widgetCommonSchema.d.ts → cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts} +80 -60
  89. package/cjs/{models/CamOverlayAPI/widgetCommonSchema.js → types/CamOverlayAPI/serviceCommonTypes.js} +39 -21
  90. package/{esm/models → cjs/types}/CamOverlayAPI/webCameraSharingSchema.d.ts +15 -15
  91. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +8 -0
  92. package/cjs/types/CamOverlayDrawingAPI.d.ts +48 -0
  93. package/cjs/types/CamOverlayDrawingAPI.js +2 -0
  94. package/cjs/types/CamOverlayPainter.d.ts +76 -0
  95. package/cjs/types/CamOverlayPainter.js +14 -0
  96. package/cjs/types/CamScripterAPI.d.ts +75 -23
  97. package/cjs/types/CamScripterAPI.js +20 -8
  98. package/cjs/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  99. package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
  100. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +26085 -0
  101. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +222 -0
  102. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +574 -0
  103. package/cjs/types/CamStreamerAPI/facebookSchema.js +23 -0
  104. package/cjs/types/CamStreamerAPI/index.d.ts +6 -0
  105. package/cjs/types/CamStreamerAPI/index.js +22 -0
  106. package/cjs/types/{CamStreamerAPI.d.ts → CamStreamerAPI/oldStreamSchema.d.ts} +104 -35
  107. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +53 -0
  108. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +570 -0
  109. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +123 -0
  110. package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8642 -0
  111. package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
  112. package/cjs/types/CamStreamerAPI/windySchema.d.ts +534 -0
  113. package/cjs/types/CamStreamerAPI/windySchema.js +19 -0
  114. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +542 -0
  115. package/cjs/types/CamStreamerAPI/youtubeSchema.js +22 -0
  116. package/cjs/types/CamSwitcherAPI.d.ts +205 -121
  117. package/cjs/types/CamSwitcherAPI.js +38 -1
  118. package/cjs/{events → types}/GenetecAgent.d.ts +47 -47
  119. package/cjs/types/GenetecAgent.js +31 -0
  120. package/cjs/types/PlaneTrackerAPI.d.ts +993 -0
  121. package/cjs/types/PlaneTrackerAPI.js +336 -0
  122. package/cjs/types/VapixAPI.d.ts +281 -22
  123. package/cjs/types/VapixAPI.js +74 -4
  124. package/cjs/types/VapixEvents.d.ts +15 -0
  125. package/cjs/types/VapixEvents.js +2 -0
  126. package/cjs/types/common.d.ts +43 -3
  127. package/cjs/types/common.js +17 -2
  128. package/cjs/types/ws/CamOverlayEvents.d.ts +88 -0
  129. package/cjs/types/ws/CamOverlayEvents.js +19 -0
  130. package/cjs/types/ws/CamStreamerEvents.d.ts +282 -0
  131. package/cjs/types/ws/CamStreamerEvents.js +36 -0
  132. package/cjs/types/ws/PlaneTrackerEvents.d.ts +1703 -0
  133. package/cjs/types/ws/PlaneTrackerEvents.js +207 -0
  134. package/cjs/web/DefaultClient.d.ts +7 -5
  135. package/cjs/web/DefaultClient.js +25 -11
  136. package/cjs/web/WsClient.d.ts +9 -5
  137. package/cjs/web/WsClient.js +16 -18
  138. package/cjs/ws/CamOverlayEvents.d.ts +8 -0
  139. package/cjs/ws/CamOverlayEvents.js +24 -0
  140. package/cjs/ws/CamStreamerEvents.d.ts +8 -0
  141. package/cjs/ws/CamStreamerEvents.js +24 -0
  142. package/cjs/ws/CamSwitcherEvents.d.ts +8 -0
  143. package/cjs/ws/CamSwitcherEvents.js +24 -0
  144. package/cjs/ws/PlaneTrackerEvents.d.ts +9 -0
  145. package/cjs/ws/PlaneTrackerEvents.js +30 -0
  146. package/esm/CamOverlayAPI.js +99 -184
  147. package/esm/CamScripterAPI.js +52 -57
  148. package/esm/CamStreamerAPI.js +172 -51
  149. package/esm/CamSwitcherAPI.js +151 -192
  150. package/esm/PlaneTrackerAPI.js +186 -100
  151. package/esm/VapixAPI.js +402 -209
  152. package/esm/{CreatePackage.js → bin/CreatePackage.js} +16 -16
  153. package/esm/errors/errors.js +124 -6
  154. package/esm/index.js +20 -9
  155. package/esm/internal/BasicAPI.js +89 -0
  156. package/esm/internal/ProxyClient.js +28 -34
  157. package/esm/{CamSwitcherEvents.js → internal/WsEvents.js} +31 -20
  158. package/esm/internal/constants.js +1 -0
  159. package/esm/internal/convertors.js +108 -0
  160. package/esm/internal/transformers.js +1 -1
  161. package/esm/internal/utils.js +0 -9
  162. package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +26 -18
  163. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
  164. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +2 -13
  165. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +7 -5
  166. package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +11 -11
  167. package/esm/node/DefaultClient.js +12 -16
  168. package/esm/node/Digest.test.js +11 -0
  169. package/esm/node/HttpRequestSender.js +14 -4
  170. package/esm/node/HttpServer.js +1 -1
  171. package/esm/node/TimeZoneDaemon.js +25 -0
  172. package/esm/{VapixEvents.js → node/VapixEvents.js} +10 -10
  173. package/esm/node/WsClient.js +22 -15
  174. package/esm/{events → node/events}/AxisCameraStationEvents.js +18 -13
  175. package/esm/node/events/GenetecAgent.js +120 -0
  176. package/esm/node/index.js +18 -2
  177. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +113 -0
  178. package/esm/{models → types}/CamOverlayAPI/accuweatherSchema.js +3 -4
  179. package/esm/{models → types}/CamOverlayAPI/customGraphicsSchema.js +3 -4
  180. package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
  181. package/esm/types/CamOverlayAPI/imagesSchema.js +6 -0
  182. package/esm/{models → types}/CamOverlayAPI/index.js +3 -4
  183. package/esm/{models → types}/CamOverlayAPI/infotickerSchema.js +3 -4
  184. package/esm/{models → types}/CamOverlayAPI/pipSchema.js +4 -5
  185. package/esm/{models → types}/CamOverlayAPI/ptzCompassSchema.js +4 -4
  186. package/esm/types/CamOverlayAPI/ptzSchema.js +9 -0
  187. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +129 -0
  188. package/esm/types/CamOverlayAPI/screenSharingSchema.js +5 -0
  189. package/esm/{models/CamOverlayAPI/widgetCommonSchema.js → types/CamOverlayAPI/serviceCommonTypes.js} +38 -20
  190. package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +5 -0
  191. package/esm/types/CamOverlayDrawingAPI.js +1 -0
  192. package/esm/types/CamOverlayPainter.js +11 -0
  193. package/esm/types/CamScripterAPI.js +19 -7
  194. package/esm/types/CamScripterAPICameraEventsGenerator.js +1 -0
  195. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +199 -0
  196. package/esm/types/CamStreamerAPI/facebookSchema.js +17 -0
  197. package/esm/types/CamStreamerAPI/index.js +6 -0
  198. package/esm/types/CamStreamerAPI/oldStreamSchema.js +50 -0
  199. package/esm/types/CamStreamerAPI/streamCommonTypes.js +120 -0
  200. package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
  201. package/esm/types/CamStreamerAPI/windySchema.js +13 -0
  202. package/esm/types/CamStreamerAPI/youtubeSchema.js +16 -0
  203. package/esm/types/CamSwitcherAPI.js +38 -1
  204. package/esm/types/GenetecAgent.js +28 -0
  205. package/esm/types/PlaneTrackerAPI.js +333 -0
  206. package/esm/types/VapixAPI.js +73 -3
  207. package/esm/types/VapixEvents.js +1 -0
  208. package/esm/types/common.js +16 -1
  209. package/esm/types/ws/CamOverlayEvents.js +16 -0
  210. package/esm/types/ws/CamStreamerEvents.js +33 -0
  211. package/esm/types/ws/PlaneTrackerEvents.js +204 -0
  212. package/esm/web/DefaultClient.js +25 -11
  213. package/esm/web/WsClient.js +16 -18
  214. package/esm/ws/CamOverlayEvents.js +20 -0
  215. package/esm/ws/CamStreamerEvents.js +20 -0
  216. package/esm/ws/CamSwitcherEvents.js +20 -0
  217. package/esm/ws/PlaneTrackerEvents.js +26 -0
  218. package/package.json +46 -12
  219. package/{esm → types}/CamOverlayAPI.d.ts +603 -327
  220. package/types/CamScripterAPI.d.ts +43 -0
  221. package/types/CamStreamerAPI.d.ts +3559 -0
  222. package/types/CamSwitcherAPI.d.ts +168 -0
  223. package/types/PlaneTrackerAPI.d.ts +239 -0
  224. package/types/VapixAPI.d.ts +131 -0
  225. package/types/bin/CreatePackage.d.ts +1 -0
  226. package/types/errors/errors.d.ts +108 -0
  227. package/types/index.d.ts +28 -0
  228. package/types/internal/BasicAPI.d.ts +15 -0
  229. package/types/internal/ProxyClient.d.ts +10 -0
  230. package/types/internal/WsEvents.d.ts +38 -0
  231. package/{esm → types}/internal/constants.d.ts +1 -0
  232. package/types/internal/convertors.d.ts +6 -0
  233. package/types/internal/types.d.ts +47 -0
  234. package/{esm → types}/internal/utils.d.ts +1 -3
  235. package/{esm → types}/internal/versionCompare.d.ts +2 -2
  236. package/types/node/CamOverlayDrawingAPI.d.ts +41 -0
  237. package/{cjs → types/node}/CamOverlayPainter/Frame.d.ts +8 -37
  238. package/{esm → types/node}/CamOverlayPainter/Painter.d.ts +5 -21
  239. package/types/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  240. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  241. package/types/node/DefaultClient.d.ts +16 -0
  242. package/types/node/Digest.test.d.ts +1 -0
  243. package/{esm → types}/node/HttpRequestSender.d.ts +1 -0
  244. package/{esm → types}/node/HttpServer.d.ts +1 -1
  245. package/types/node/TimeZoneDaemon.d.ts +6 -0
  246. package/types/node/VapixEvents.d.ts +16 -0
  247. package/types/node/WsClient.d.ts +30 -0
  248. package/types/node/events/AxisCameraStationEvents.d.ts +12 -0
  249. package/types/node/events/GenetecAgent.d.ts +16 -0
  250. package/types/node/index.d.ts +18 -0
  251. package/{esm/models/CamOverlayAPI/widgetsSchema.d.ts → types/types/CamOverlayAPI/CamOverlayAPI.d.ts} +2794 -767
  252. package/{esm/models → types/types}/CamOverlayAPI/accuweatherSchema.d.ts +19 -19
  253. package/{esm/models → types/types}/CamOverlayAPI/customGraphicsSchema.d.ts +108 -107
  254. package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
  255. package/{cjs/models → types/types}/CamOverlayAPI/imagesSchema.d.ts +19 -19
  256. package/{esm/models → types/types}/CamOverlayAPI/index.d.ts +3 -4
  257. package/{esm/models → types/types}/CamOverlayAPI/infotickerSchema.d.ts +27 -27
  258. package/{cjs/models → types/types}/CamOverlayAPI/pipSchema.d.ts +21 -21
  259. package/{cjs/models → types/types}/CamOverlayAPI/ptzCompassSchema.d.ts +18 -15
  260. package/{esm/models → types/types}/CamOverlayAPI/ptzSchema.d.ts +28 -28
  261. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  262. package/{cjs/models → types/types}/CamOverlayAPI/screenSharingSchema.d.ts +15 -15
  263. package/{cjs/models/CamOverlayAPI/widgetCommonSchema.d.ts → types/types/CamOverlayAPI/serviceCommonTypes.d.ts} +80 -60
  264. package/{cjs/models → types/types}/CamOverlayAPI/webCameraSharingSchema.d.ts +15 -15
  265. package/types/types/CamOverlayDrawingAPI.d.ts +48 -0
  266. package/types/types/CamOverlayPainter.d.ts +76 -0
  267. package/types/types/CamScripterAPI.d.ts +119 -0
  268. package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  269. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +26085 -0
  270. package/types/types/CamStreamerAPI/facebookSchema.d.ts +574 -0
  271. package/types/types/CamStreamerAPI/index.d.ts +6 -0
  272. package/{esm/types/CamStreamerAPI.d.ts → types/types/CamStreamerAPI/oldStreamSchema.d.ts} +104 -35
  273. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +570 -0
  274. package/types/types/CamStreamerAPI/streamsSchema.d.ts +8642 -0
  275. package/types/types/CamStreamerAPI/windySchema.d.ts +534 -0
  276. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +542 -0
  277. package/{esm → types}/types/CamSwitcherAPI.d.ts +205 -121
  278. package/{esm/events → types/types}/GenetecAgent.d.ts +47 -47
  279. package/types/types/PlaneTrackerAPI.d.ts +993 -0
  280. package/{esm → types}/types/VapixAPI.d.ts +281 -22
  281. package/types/types/VapixEvents.d.ts +15 -0
  282. package/types/types/common.d.ts +77 -0
  283. package/types/types/ws/CamOverlayEvents.d.ts +88 -0
  284. package/types/types/ws/CamStreamerEvents.d.ts +282 -0
  285. package/types/types/ws/PlaneTrackerEvents.d.ts +1703 -0
  286. package/types/web/DefaultClient.d.ts +8 -0
  287. package/types/web/WsClient.d.ts +17 -0
  288. package/types/ws/CamOverlayEvents.d.ts +8 -0
  289. package/types/ws/CamStreamerEvents.d.ts +8 -0
  290. package/types/ws/CamSwitcherEvents.d.ts +8 -0
  291. package/types/ws/PlaneTrackerEvents.d.ts +9 -0
  292. package/cjs/CamOverlayDrawingAPI.d.ts +0 -86
  293. package/cjs/CamOverlayPainter/ResourceManager.d.ts +0 -14
  294. package/cjs/CamOverlayPainter/ResourceManager.js +0 -46
  295. package/cjs/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  296. package/cjs/CamSwitcherEvents.d.ts +0 -18
  297. package/cjs/VapixEvents.d.ts +0 -43
  298. package/cjs/events/AxisCameraStationEvents.d.ts +0 -10
  299. package/cjs/events/GenetecAgent.js +0 -123
  300. package/cjs/models/CamOverlayAPI/constants.d.ts +0 -11
  301. package/cjs/models/CamOverlayAPI/constants.js +0 -14
  302. package/cjs/models/CamOverlayAPI/fileSchema.d.ts +0 -28
  303. package/cjs/models/CamOverlayAPI/fileSchema.js +0 -17
  304. package/cjs/models/CamOverlayAPI/imagesSchema.js +0 -10
  305. package/cjs/models/CamOverlayAPI/ptzSchema.js +0 -13
  306. package/cjs/models/CamOverlayAPI/screenSharingSchema.js +0 -9
  307. package/cjs/models/CamOverlayAPI/webCameraSharingSchema.js +0 -9
  308. package/cjs/models/CamOverlayAPI/widgetsSchema.js +0 -27
  309. package/cjs/node/WsEventClient.d.ts +0 -13
  310. package/cjs/node/WsEventClient.js +0 -22
  311. package/cjs/types/CamOverlayAPI.d.ts +0 -328
  312. package/cjs/types/CamOverlayAPI.js +0 -26
  313. package/cjs/types/CamStreamerAPI.js +0 -28
  314. package/esm/CamOverlayDrawingAPI.d.ts +0 -86
  315. package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -14
  316. package/esm/CamScripterAPI.d.ts +0 -19
  317. package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  318. package/esm/CamStreamerAPI.d.ts +0 -16
  319. package/esm/CamSwitcherAPI.d.ts +0 -52
  320. package/esm/CamSwitcherEvents.d.ts +0 -18
  321. package/esm/PlaneTrackerAPI.d.ts +0 -30
  322. package/esm/VapixAPI.d.ts +0 -78
  323. package/esm/VapixEvents.d.ts +0 -43
  324. package/esm/errors/errors.d.ts +0 -37
  325. package/esm/events/AxisCameraStationEvents.d.ts +0 -10
  326. package/esm/events/GenetecAgent.js +0 -119
  327. package/esm/index.d.ts +0 -17
  328. package/esm/internal/ProxyClient.d.ts +0 -11
  329. package/esm/internal/types.d.ts +0 -35
  330. package/esm/models/CamOverlayAPI/constants.d.ts +0 -11
  331. package/esm/models/CamOverlayAPI/constants.js +0 -11
  332. package/esm/models/CamOverlayAPI/fileSchema.d.ts +0 -28
  333. package/esm/models/CamOverlayAPI/fileSchema.js +0 -14
  334. package/esm/models/CamOverlayAPI/imagesSchema.js +0 -7
  335. package/esm/models/CamOverlayAPI/ptzSchema.js +0 -10
  336. package/esm/models/CamOverlayAPI/screenSharingSchema.js +0 -6
  337. package/esm/models/CamOverlayAPI/webCameraSharingSchema.js +0 -6
  338. package/esm/models/CamOverlayAPI/widgetsSchema.js +0 -24
  339. package/esm/node/DefaultClient.d.ts +0 -16
  340. package/esm/node/WsClient.d.ts +0 -39
  341. package/esm/node/WsEventClient.d.ts +0 -13
  342. package/esm/node/WsEventClient.js +0 -18
  343. package/esm/types/CamOverlayAPI.d.ts +0 -328
  344. package/esm/types/CamOverlayAPI.js +0 -14
  345. package/esm/types/CamScripterAPI.d.ts +0 -67
  346. package/esm/types/CamStreamerAPI.js +0 -25
  347. package/esm/types/common.d.ts +0 -37
  348. package/esm/web/DefaultClient.d.ts +0 -6
  349. package/esm/web/WsClient.d.ts +0 -13
  350. package/esm/web/index.d.ts +0 -2
  351. package/cjs/{CreatePackage.d.ts → bin/CreatePackage.d.ts} +0 -0
  352. package/cjs/{internal → node}/Digest.d.ts +0 -0
  353. package/{esm/CreatePackage.d.ts → cjs/node/Digest.test.d.ts} +0 -0
  354. package/{esm/types → cjs/types/ws}/CamSwitcherEvents.d.ts +8 -8
  355. package/cjs/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
  356. package/esm/{internal → node}/Digest.js +0 -0
  357. package/esm/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
  358. package/{esm → types}/internal/transformers.d.ts +0 -0
  359. package/{esm/internal → types/node}/Digest.d.ts +0 -0
  360. package/{cjs/types → types/types/ws}/CamSwitcherEvents.d.ts +8 -8
  361. /package/{esm/node → types/web}/index.d.ts +0 -0
@@ -0,0 +1,336 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zonesSchema = exports.mapInfoSchema = exports.mapTypeSchema = exports.blackListSchema = exports.whiteListSchema = exports.priorityListSchema = exports.typePriorityListSchema = exports.flightInfoSchema = exports.trackingModeSchema = exports.getIcaoSchema = exports.serverSettingsSchema = exports.cameraSettingsSchema = exports.widgetSchema = exports.connectionSchema = exports.wsAliasResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.wsAliasResponseSchema = zod_1.z.object({
6
+ alias: zod_1.z.string(),
7
+ ws: zod_1.z.string(),
8
+ ws_initial_message: zod_1.z.string(),
9
+ });
10
+ exports.connectionSchema = zod_1.z.object({
11
+ protocol: zod_1.z.union([zod_1.z.literal('http'), zod_1.z.literal('https'), zod_1.z.literal('https_insecure')]),
12
+ ip: zod_1.z.union([zod_1.z.string().ip(), zod_1.z.literal('')]),
13
+ port: zod_1.z.number().positive().lt(65535),
14
+ user: zod_1.z.string(),
15
+ pass: zod_1.z.string(),
16
+ });
17
+ exports.widgetSchema = zod_1.z.object({
18
+ enabled: zod_1.z.boolean().default(true),
19
+ coord: zod_1.z.union([
20
+ zod_1.z.literal('top_left'),
21
+ zod_1.z.literal('top_right'),
22
+ zod_1.z.literal('bottom_left'),
23
+ zod_1.z.literal('bottom_right'),
24
+ ]),
25
+ posX: zod_1.z.number().nonnegative(),
26
+ posY: zod_1.z.number().nonnegative(),
27
+ scale: zod_1.z.number().positive(),
28
+ });
29
+ const labelOptionsSchema = zod_1.z.union([
30
+ zod_1.z.literal('blank'),
31
+ zod_1.z.literal('registration'),
32
+ zod_1.z.literal('call_sign'),
33
+ zod_1.z.literal('flight_number'),
34
+ zod_1.z.literal('icao'),
35
+ ]);
36
+ const identificationLabelSchema = zod_1.z.object({
37
+ firstRow: labelOptionsSchema,
38
+ secondRow: labelOptionsSchema,
39
+ thirdRow: labelOptionsSchema,
40
+ fourthRow: labelOptionsSchema,
41
+ opacity: zod_1.z.number().positive(),
42
+ });
43
+ exports.cameraSettingsSchema = zod_1.z.object({
44
+ trackingDomain: zod_1.z.union([zod_1.z.literal('adsb'), zod_1.z.literal('dronetag')]).default('adsb'),
45
+ units: zod_1.z.union([zod_1.z.literal('metric'), zod_1.z.literal('imperial')]).default('imperial'),
46
+ adsbSource: zod_1.z
47
+ .object({
48
+ ip: zod_1.z.union([zod_1.z.string().ip(), zod_1.z.literal('')]),
49
+ port: zod_1.z.number().positive().lt(65535),
50
+ })
51
+ .default({ ip: '', port: 30334 }),
52
+ camera: exports.connectionSchema.default({
53
+ protocol: 'http',
54
+ ip: '127.0.0.1',
55
+ port: 80,
56
+ user: 'root',
57
+ pass: '',
58
+ }),
59
+ cameraCalibrationProcessConfig: zod_1.z
60
+ .object({
61
+ nightSkyCalibrationEnabled: zod_1.z.boolean(),
62
+ scheduleNightSkyCalibrationTimestamp: zod_1.z.number(),
63
+ focusCalibrationPoints: zod_1.z.string().default(''),
64
+ })
65
+ .default({
66
+ nightSkyCalibrationEnabled: false,
67
+ scheduleNightSkyCalibrationTimestamp: 0,
68
+ focusCalibrationPoints: '',
69
+ }),
70
+ cameraConfig: zod_1.z
71
+ .object({
72
+ maxZoomLevel: zod_1.z.number().optional(),
73
+ defaultCaptureSizeMeters: zod_1.z.number().positive().default(120),
74
+ captureSizeExtensionMeters: zod_1.z.number().positive().default(80),
75
+ })
76
+ .default({
77
+ maxZoomLevel: 30,
78
+ defaultCaptureSizeMeters: 120,
79
+ captureSizeExtensionMeters: 80,
80
+ }),
81
+ stream: zod_1.z
82
+ .object({
83
+ width: zod_1.z.number().positive(),
84
+ height: zod_1.z.number().positive(),
85
+ })
86
+ .default({ width: 1920, height: 1080 }),
87
+ imageConfig: zod_1.z
88
+ .object({
89
+ dayAperture: zod_1.z.number().nonnegative().min(0).max(100),
90
+ nightAperture: zod_1.z.number().nonnegative().min(0).max(100),
91
+ maxGain: zod_1.z.number().nonnegative().min(0).max(100).default(100),
92
+ })
93
+ .default({ dayAperture: 50, nightAperture: 0, maxGain: 100 }),
94
+ airportConfig: zod_1.z
95
+ .object({
96
+ icao: zod_1.z.string().default(''),
97
+ centerLat: zod_1.z.number(),
98
+ centerLon: zod_1.z.number(),
99
+ radius: zod_1.z.number().nonnegative().default(10000),
100
+ })
101
+ .default({
102
+ icao: '',
103
+ centerLat: 0,
104
+ centerLon: 0,
105
+ radius: 10000,
106
+ }),
107
+ trackingConfig: zod_1.z
108
+ .object({
109
+ prioritizeEmergency: zod_1.z.boolean(),
110
+ trackingZoneWeightIncrease: zod_1.z.number().int().nonnegative().default(0),
111
+ guardTourEnabled: zod_1.z.boolean().default(false),
112
+ guardTourId: zod_1.z.number().int().nonnegative().default(0),
113
+ })
114
+ .default({ prioritizeEmergency: true, guardTourEnabled: false, guardTourId: 0 }),
115
+ overlayText: zod_1.z
116
+ .object({
117
+ displayIcao: zod_1.z.boolean().optional(),
118
+ displayRegistration: zod_1.z.boolean().optional(),
119
+ displayFlightNumber: zod_1.z.boolean().optional(),
120
+ displayAltitude: zod_1.z.boolean().optional(),
121
+ displayVelocity: zod_1.z.boolean().optional(),
122
+ displayDistance: zod_1.z.boolean().optional(),
123
+ displayFOV: zod_1.z.boolean().optional(),
124
+ displayPTError: zod_1.z.boolean().optional(),
125
+ displayPTZSpeed: zod_1.z.boolean().optional(),
126
+ displayVelocityData: zod_1.z.boolean().optional(),
127
+ displayAdsbVelocityData: zod_1.z.boolean().optional(),
128
+ displaySignalQuality: zod_1.z.boolean().optional(),
129
+ displayAutoTrackingInfo: zod_1.z.boolean().optional(),
130
+ displayGPSCoords: zod_1.z.boolean().optional(),
131
+ displayVapixQuery: zod_1.z.boolean().optional(),
132
+ displayFocus: zod_1.z.boolean().optional(),
133
+ displayAperture: zod_1.z.boolean().optional(),
134
+ displayAircraftInfo: zod_1.z.boolean().optional(),
135
+ displaySunDistance: zod_1.z.boolean().optional(),
136
+ displayTickTime: zod_1.z.boolean().optional(),
137
+ displaySystemInfo: zod_1.z.boolean().optional(),
138
+ })
139
+ .optional(),
140
+ widget: exports.widgetSchema.default({
141
+ enabled: true,
142
+ coord: 'top_right',
143
+ posX: 10,
144
+ posY: 10,
145
+ scale: 100,
146
+ }),
147
+ airportWidget: exports.widgetSchema.default({
148
+ enabled: true,
149
+ coord: 'top_left',
150
+ posX: 10,
151
+ posY: 10,
152
+ scale: 100,
153
+ }),
154
+ fr24FlightInfoSource: zod_1.z
155
+ .object({
156
+ enabled: zod_1.z.boolean().default(false),
157
+ priority: zod_1.z.number().int().positive().default(1),
158
+ apiToken: zod_1.z.string().default(''),
159
+ validateFlights: zod_1.z.boolean().default(true),
160
+ })
161
+ .default({
162
+ enabled: false,
163
+ priority: 1,
164
+ apiToken: '',
165
+ validateFlights: true,
166
+ }),
167
+ radarcapeFlightInfoSource: zod_1.z
168
+ .object({
169
+ enabled: zod_1.z.boolean().default(false),
170
+ priority: zod_1.z.number().int().positive().default(2),
171
+ ip: zod_1.z.union([zod_1.z.string().ip(), zod_1.z.literal('')]).default(''),
172
+ port: zod_1.z.number().positive().lt(65535).default(80),
173
+ })
174
+ .default({
175
+ enabled: false,
176
+ priority: 2,
177
+ ip: '',
178
+ port: 80,
179
+ }),
180
+ identificationLabel: identificationLabelSchema.default({
181
+ firstRow: 'registration',
182
+ secondRow: 'blank',
183
+ thirdRow: 'blank',
184
+ fourthRow: 'blank',
185
+ opacity: 30,
186
+ }),
187
+ acs: exports.connectionSchema
188
+ .extend({
189
+ enabled: zod_1.z.boolean(),
190
+ sourceKey: zod_1.z.string(),
191
+ })
192
+ .default({
193
+ enabled: false,
194
+ protocol: 'https_insecure',
195
+ ip: '',
196
+ port: 29204,
197
+ user: '',
198
+ pass: '',
199
+ sourceKey: '',
200
+ }),
201
+ genetec: exports.connectionSchema
202
+ .extend({
203
+ enabled: zod_1.z.boolean(),
204
+ baseUri: zod_1.z.string().default(''),
205
+ appId: zod_1.z.string().default(''),
206
+ cameraList: zod_1.z.string().array().default([]),
207
+ })
208
+ .default({
209
+ enabled: false,
210
+ protocol: 'http',
211
+ ip: '',
212
+ port: 4590,
213
+ user: '',
214
+ pass: '',
215
+ baseUri: 'WebSdk',
216
+ appId: '',
217
+ cameraList: [],
218
+ }),
219
+ camstreamerIntegration: zod_1.z
220
+ .object({
221
+ adPlacementEnabled: zod_1.z.boolean(),
222
+ adMinIntervalSec: zod_1.z.number().int().nonnegative(),
223
+ adShortDurationSec: zod_1.z.number().int().nonnegative(),
224
+ adLongDurationSec: zod_1.z.number().int().nonnegative(),
225
+ })
226
+ .default({
227
+ adPlacementEnabled: false,
228
+ adMinIntervalSec: 1800,
229
+ adShortDurationSec: 10,
230
+ adLongDurationSec: 30,
231
+ }),
232
+ });
233
+ exports.serverSettingsSchema = zod_1.z.object({
234
+ cameraCalibration: zod_1.z
235
+ .object({
236
+ posLat: zod_1.z.number(),
237
+ posLon: zod_1.z.number(),
238
+ geoidHN: zod_1.z.number(),
239
+ altitudeAmsl: zod_1.z.number(),
240
+ rotationEast: zod_1.z.number(),
241
+ rotationNorth: zod_1.z.number(),
242
+ rotationUp: zod_1.z.number(),
243
+ tiltTransformationCoefA: zod_1.z.number(),
244
+ tiltCameraKnownPoint: zod_1.z.number(),
245
+ tiltRealKnownPoint: zod_1.z.number(),
246
+ panErrorCorrection: zod_1.z
247
+ .array(zod_1.z.object({
248
+ cameraPan: zod_1.z.number(),
249
+ realPan: zod_1.z.number(),
250
+ }))
251
+ .default([]),
252
+ })
253
+ .default({
254
+ posLat: 50,
255
+ posLon: 14,
256
+ geoidHN: 45,
257
+ altitudeAmsl: 372,
258
+ rotationEast: 0,
259
+ rotationNorth: 0,
260
+ rotationUp: 0,
261
+ tiltTransformationCoefA: 1.0,
262
+ tiltCameraKnownPoint: 90,
263
+ tiltRealKnownPoint: 90,
264
+ panErrorCorrection: [],
265
+ }),
266
+ });
267
+ exports.getIcaoSchema = zod_1.z.object({
268
+ icao: zod_1.z.string(),
269
+ });
270
+ exports.trackingModeSchema = zod_1.z.object({
271
+ mode: zod_1.z.union([zod_1.z.literal('MANUAL'), zod_1.z.literal('AUTOMATIC')]).default('AUTOMATIC'),
272
+ });
273
+ exports.flightInfoSchema = zod_1.z.object({
274
+ callsign: zod_1.z.string().optional(),
275
+ flightNumber: zod_1.z.string().optional(),
276
+ registration: zod_1.z.string().optional(),
277
+ aircraftType: zod_1.z.string().optional(),
278
+ airlines: zod_1.z.string().optional(),
279
+ originAirport: zod_1.z
280
+ .object({
281
+ icao: zod_1.z.string().optional(),
282
+ iata: zod_1.z.string().optional(),
283
+ city: zod_1.z.string().optional(),
284
+ })
285
+ .optional(),
286
+ destinationAirport: zod_1.z.object({
287
+ icao: zod_1.z.string().optional(),
288
+ iata: zod_1.z.string().optional(),
289
+ city: zod_1.z.string().optional(),
290
+ }),
291
+ flightImages: zod_1.z
292
+ .array(zod_1.z.object({
293
+ src: zod_1.z.string().optional(),
294
+ photographer: zod_1.z.string().optional(),
295
+ }))
296
+ .optional(),
297
+ });
298
+ exports.typePriorityListSchema = zod_1.z.object({
299
+ typePriorityList: zod_1.z.array(zod_1.z.string()).default([]),
300
+ });
301
+ exports.priorityListSchema = zod_1.z.object({
302
+ priorityList: zod_1.z.array(zod_1.z.string()).default([]),
303
+ });
304
+ exports.whiteListSchema = zod_1.z.object({
305
+ whiteList: zod_1.z.array(zod_1.z.string()).default([]),
306
+ });
307
+ exports.blackListSchema = zod_1.z.object({
308
+ blackList: zod_1.z.array(zod_1.z.string()).default([]),
309
+ });
310
+ exports.mapTypeSchema = zod_1.z.enum(['roadmap', 'satellite']);
311
+ exports.mapInfoSchema = zod_1.z.object({
312
+ minZoom: zod_1.z.number().nonnegative(),
313
+ maxZoom: zod_1.z.number().nonnegative(),
314
+ mapTypes: zod_1.z.array(exports.mapTypeSchema),
315
+ tileSize: zod_1.z.number().nonnegative(),
316
+ });
317
+ exports.zonesSchema = zod_1.z.object({
318
+ zones: zod_1.z
319
+ .array(zod_1.z.object({
320
+ enabled: zod_1.z.boolean().default(true),
321
+ name: zod_1.z.string().optional(),
322
+ area: zod_1.z
323
+ .array(zod_1.z.object({
324
+ lat: zod_1.z.number(),
325
+ lon: zod_1.z.number(),
326
+ }))
327
+ .nonempty(),
328
+ minAltitudeAmsl: zod_1.z.number().optional(),
329
+ maxAltitudeAmsl: zod_1.z.number().optional(),
330
+ minSpeedKmph: zod_1.z.number().optional(),
331
+ maxSpeedKmph: zod_1.z.number().optional(),
332
+ flightDirection: zod_1.z.enum(['all', 'arrival', 'departure']).default('all'),
333
+ weight: zod_1.z.number(),
334
+ }))
335
+ .default([]),
336
+ });