camstreamerlib 4.0.0-beta.8 → 4.0.0-beta.80

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 (343) hide show
  1. package/README.md +143 -38
  2. package/cjs/CamOverlayAPI.d.ts +863 -27
  3. package/cjs/CamOverlayAPI.js +135 -92
  4. package/cjs/CamScripterAPI.d.ts +44 -17
  5. package/cjs/CamScripterAPI.js +52 -42
  6. package/cjs/CamStreamerAPI.d.ts +70 -14
  7. package/cjs/CamStreamerAPI.js +100 -44
  8. package/cjs/CamSwitcherAPI.d.ts +158 -43
  9. package/cjs/CamSwitcherAPI.js +138 -122
  10. package/cjs/PlaneTrackerAPI.d.ts +239 -0
  11. package/cjs/PlaneTrackerAPI.js +247 -0
  12. package/cjs/VapixAPI.d.ts +94 -42
  13. package/cjs/VapixAPI.js +314 -232
  14. package/cjs/{CreatePackage.js → bin/CreatePackage.js} +44 -18
  15. package/cjs/errors/errors.d.ts +65 -4
  16. package/cjs/errors/errors.js +138 -7
  17. package/cjs/index.d.ts +20 -4
  18. package/cjs/index.js +28 -5
  19. package/cjs/internal/ProxyClient.d.ts +8 -9
  20. package/cjs/internal/ProxyClient.js +28 -32
  21. package/cjs/internal/WsEvents.d.ts +37 -0
  22. package/cjs/{CamSwitcherEvents.js → internal/WsEvents.js} +28 -22
  23. package/cjs/internal/types.d.ts +47 -0
  24. package/cjs/internal/types.js +2 -0
  25. package/cjs/internal/utils.d.ts +3 -1
  26. package/cjs/internal/utils.js +15 -3
  27. package/cjs/internal/versionCompare.d.ts +2 -2
  28. package/cjs/node/CamOverlayDrawingAPI.d.ts +41 -0
  29. package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +28 -20
  30. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.d.ts +8 -37
  31. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
  32. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.d.ts +5 -21
  33. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +5 -17
  34. package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  35. package/cjs/node/CamOverlayPainter/ResourceManager.js +72 -0
  36. package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  37. package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +13 -13
  38. package/cjs/node/DefaultClient.d.ts +6 -5
  39. package/cjs/node/DefaultClient.js +10 -12
  40. package/cjs/{internal → node}/Digest.js +24 -1
  41. package/cjs/node/Digest.test.js +13 -0
  42. package/cjs/node/HttpRequestSender.d.ts +1 -0
  43. package/cjs/node/HttpRequestSender.js +14 -4
  44. package/cjs/node/HttpServer.d.ts +1 -1
  45. package/cjs/node/HttpServer.js +29 -6
  46. package/cjs/node/TimeZoneDaemon.d.ts +6 -0
  47. package/cjs/node/TimeZoneDaemon.js +29 -0
  48. package/cjs/node/VapixEvents.d.ts +16 -0
  49. package/cjs/{VapixEvents.js → node/VapixEvents.js} +10 -10
  50. package/cjs/node/WsClient.d.ts +9 -18
  51. package/cjs/node/WsClient.js +27 -20
  52. package/cjs/node/events/AxisCameraStationEvents.d.ts +12 -0
  53. package/cjs/node/events/AxisCameraStationEvents.js +53 -0
  54. package/cjs/node/events/GenetecAgent.d.ts +16 -0
  55. package/cjs/node/events/GenetecAgent.js +124 -0
  56. package/cjs/node/index.d.ts +18 -2
  57. package/cjs/node/index.js +39 -5
  58. package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
  59. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +92 -0
  60. package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  61. package/cjs/types/CamOverlayAPI/accuweatherSchema.js +47 -0
  62. package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
  63. package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +72 -0
  64. package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
  65. package/cjs/types/CamOverlayAPI/imagesSchema.js +9 -0
  66. package/cjs/types/CamOverlayAPI/index.d.ts +11 -0
  67. package/cjs/types/CamOverlayAPI/index.js +27 -0
  68. package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  69. package/cjs/types/CamOverlayAPI/infotickerSchema.js +26 -0
  70. package/cjs/types/CamOverlayAPI/pipSchema.d.ts +125 -0
  71. package/cjs/types/CamOverlayAPI/pipSchema.js +39 -0
  72. package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
  73. package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +26 -0
  74. package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
  75. package/cjs/types/CamOverlayAPI/ptzSchema.js +12 -0
  76. package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  77. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +132 -0
  78. package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  79. package/cjs/types/CamOverlayAPI/screenSharingSchema.js +8 -0
  80. package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
  81. package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +91 -0
  82. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  83. package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +8 -0
  84. package/cjs/types/CamOverlayDrawingAPI.d.ts +48 -0
  85. package/cjs/types/CamOverlayDrawingAPI.js +2 -0
  86. package/cjs/types/CamOverlayPainter.d.ts +76 -0
  87. package/cjs/types/CamOverlayPainter.js +14 -0
  88. package/cjs/types/CamScripterAPI.d.ts +86 -23
  89. package/cjs/types/CamScripterAPI.js +24 -8
  90. package/cjs/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  91. package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
  92. package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +239 -0
  93. package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +48 -0
  94. package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +18 -0
  95. package/cjs/types/CamStreamerAPI/facebookSchema.js +11 -0
  96. package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +18 -0
  97. package/cjs/types/CamStreamerAPI/hlsSchema.js +11 -0
  98. package/cjs/types/CamStreamerAPI/index.d.ts +9 -0
  99. package/cjs/types/CamStreamerAPI/index.js +25 -0
  100. package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +69 -0
  101. package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +28 -0
  102. package/{esm/types/CamStreamerAPI.d.ts → cjs/types/CamStreamerAPI/oldStreamSchema.d.ts} +41 -43
  103. package/cjs/types/CamStreamerAPI/oldStreamSchema.js +50 -0
  104. package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +18 -0
  105. package/cjs/types/CamStreamerAPI/rtmpSchema.js +11 -0
  106. package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +18 -0
  107. package/cjs/types/CamStreamerAPI/sdCardSchema.js +11 -0
  108. package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +17 -0
  109. package/cjs/types/CamStreamerAPI/streamCommonTypes.js +18 -0
  110. package/cjs/types/CamStreamerAPI/windySchema.d.ts +18 -0
  111. package/cjs/types/CamStreamerAPI/windySchema.js +11 -0
  112. package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +18 -0
  113. package/cjs/types/CamStreamerAPI/youtubeSchema.js +11 -0
  114. package/cjs/types/CamSwitcherAPI.d.ts +145 -66
  115. package/cjs/types/CamSwitcherAPI.js +38 -1
  116. package/cjs/{events → types}/GenetecAgent.d.ts +47 -47
  117. package/cjs/types/GenetecAgent.js +31 -0
  118. package/cjs/types/PlaneTrackerAPI.d.ts +980 -0
  119. package/cjs/types/PlaneTrackerAPI.js +333 -0
  120. package/cjs/types/VapixAPI.d.ts +254 -164
  121. package/cjs/types/VapixAPI.js +66 -11
  122. package/cjs/types/VapixEvents.d.ts +15 -0
  123. package/cjs/types/VapixEvents.js +2 -0
  124. package/cjs/types/common.d.ts +18 -5
  125. package/cjs/types/common.js +5 -2
  126. package/cjs/types/ws/CamOverlayEvents.d.ts +88 -0
  127. package/cjs/types/ws/CamOverlayEvents.js +19 -0
  128. package/cjs/types/ws/CamStreamerEvents.d.ts +249 -0
  129. package/cjs/types/ws/CamStreamerEvents.js +32 -0
  130. package/cjs/types/ws/PlaneTrackerEvents.d.ts +1637 -0
  131. package/cjs/types/ws/PlaneTrackerEvents.js +196 -0
  132. package/cjs/web/DefaultClient.d.ts +7 -5
  133. package/cjs/web/DefaultClient.js +26 -10
  134. package/cjs/web/WsClient.d.ts +9 -5
  135. package/cjs/web/WsClient.js +16 -18
  136. package/cjs/ws/CamOverlayEvents.d.ts +8 -0
  137. package/cjs/ws/CamOverlayEvents.js +24 -0
  138. package/cjs/ws/CamStreamerEvents.d.ts +8 -0
  139. package/cjs/ws/CamStreamerEvents.js +24 -0
  140. package/cjs/ws/CamSwitcherEvents.d.ts +8 -0
  141. package/cjs/ws/CamSwitcherEvents.js +24 -0
  142. package/cjs/ws/PlaneTrackerEvents.d.ts +9 -0
  143. package/cjs/ws/PlaneTrackerEvents.js +30 -0
  144. package/esm/CamOverlayAPI.js +135 -92
  145. package/esm/CamScripterAPI.js +50 -40
  146. package/esm/CamStreamerAPI.js +98 -43
  147. package/esm/CamSwitcherAPI.js +136 -120
  148. package/esm/PlaneTrackerAPI.js +243 -0
  149. package/esm/VapixAPI.js +314 -232
  150. package/esm/{CreatePackage.js → bin/CreatePackage.js} +16 -16
  151. package/esm/errors/errors.js +120 -6
  152. package/esm/index.js +20 -4
  153. package/esm/internal/ProxyClient.js +28 -32
  154. package/esm/{CamSwitcherEvents.js → internal/WsEvents.js} +26 -20
  155. package/esm/internal/types.js +1 -0
  156. package/esm/internal/utils.js +11 -1
  157. package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +26 -18
  158. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
  159. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +2 -13
  160. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +7 -5
  161. package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +11 -11
  162. package/esm/node/DefaultClient.js +10 -12
  163. package/esm/node/Digest.test.js +11 -0
  164. package/esm/node/HttpRequestSender.js +14 -4
  165. package/esm/node/HttpServer.js +1 -1
  166. package/esm/node/TimeZoneDaemon.js +25 -0
  167. package/esm/{VapixEvents.js → node/VapixEvents.js} +10 -10
  168. package/esm/node/WsClient.js +22 -15
  169. package/esm/{events → node/events}/AxisCameraStationEvents.js +18 -13
  170. package/esm/node/events/GenetecAgent.js +120 -0
  171. package/esm/node/index.js +18 -2
  172. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +76 -0
  173. package/esm/types/CamOverlayAPI/accuweatherSchema.js +44 -0
  174. package/esm/types/CamOverlayAPI/customGraphicsSchema.js +69 -0
  175. package/esm/types/CamOverlayAPI/imagesSchema.js +6 -0
  176. package/esm/types/CamOverlayAPI/index.js +11 -0
  177. package/esm/types/CamOverlayAPI/infotickerSchema.js +23 -0
  178. package/esm/types/CamOverlayAPI/pipSchema.js +36 -0
  179. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +23 -0
  180. package/esm/types/CamOverlayAPI/ptzSchema.js +9 -0
  181. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +129 -0
  182. package/esm/types/CamOverlayAPI/screenSharingSchema.js +5 -0
  183. package/esm/types/CamOverlayAPI/serviceCommonTypes.js +88 -0
  184. package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +5 -0
  185. package/esm/types/CamOverlayDrawingAPI.js +1 -0
  186. package/esm/types/CamOverlayPainter.js +11 -0
  187. package/esm/types/CamScripterAPI.js +23 -7
  188. package/esm/types/CamScripterAPICameraEventsGenerator.js +1 -0
  189. package/esm/types/CamStreamerAPI/CamStreamerAPI.js +38 -0
  190. package/esm/types/CamStreamerAPI/facebookSchema.js +5 -0
  191. package/esm/types/CamStreamerAPI/hlsSchema.js +5 -0
  192. package/esm/types/CamStreamerAPI/index.js +9 -0
  193. package/esm/types/CamStreamerAPI/mpegDvbSchema.js +22 -0
  194. package/esm/types/CamStreamerAPI/oldStreamSchema.js +47 -0
  195. package/esm/types/CamStreamerAPI/rtmpSchema.js +5 -0
  196. package/esm/types/CamStreamerAPI/sdCardSchema.js +5 -0
  197. package/esm/types/CamStreamerAPI/streamCommonTypes.js +15 -0
  198. package/esm/types/CamStreamerAPI/windySchema.js +5 -0
  199. package/esm/types/CamStreamerAPI/youtubeSchema.js +5 -0
  200. package/esm/types/CamSwitcherAPI.js +38 -1
  201. package/esm/types/GenetecAgent.js +28 -0
  202. package/esm/types/PlaneTrackerAPI.js +330 -0
  203. package/esm/types/VapixAPI.js +65 -10
  204. package/esm/types/VapixEvents.js +1 -0
  205. package/esm/types/common.js +4 -1
  206. package/esm/types/ws/CamOverlayEvents.js +16 -0
  207. package/esm/types/ws/CamStreamerEvents.js +29 -0
  208. package/esm/types/ws/PlaneTrackerEvents.js +193 -0
  209. package/esm/web/DefaultClient.js +26 -10
  210. package/esm/web/WsClient.js +16 -18
  211. package/esm/ws/CamOverlayEvents.js +20 -0
  212. package/esm/ws/CamStreamerEvents.js +20 -0
  213. package/esm/ws/CamSwitcherEvents.js +20 -0
  214. package/esm/ws/PlaneTrackerEvents.js +26 -0
  215. package/package.json +44 -11
  216. package/types/CamOverlayAPI.d.ts +867 -0
  217. package/types/CamScripterAPI.d.ts +46 -0
  218. package/types/CamStreamerAPI.d.ts +72 -0
  219. package/types/CamSwitcherAPI.d.ts +167 -0
  220. package/types/PlaneTrackerAPI.d.ts +239 -0
  221. package/types/VapixAPI.d.ts +118 -0
  222. package/types/bin/CreatePackage.d.ts +1 -0
  223. package/types/errors/errors.d.ts +98 -0
  224. package/types/index.d.ts +27 -0
  225. package/types/internal/ProxyClient.d.ts +10 -0
  226. package/types/internal/WsEvents.d.ts +37 -0
  227. package/types/internal/types.d.ts +47 -0
  228. package/{esm → types}/internal/utils.d.ts +3 -1
  229. package/{esm → types}/internal/versionCompare.d.ts +2 -2
  230. package/types/node/CamOverlayDrawingAPI.d.ts +41 -0
  231. package/{esm → types/node}/CamOverlayPainter/Frame.d.ts +8 -37
  232. package/{esm → types/node}/CamOverlayPainter/Painter.d.ts +5 -21
  233. package/types/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  234. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  235. package/types/node/DefaultClient.d.ts +16 -0
  236. package/types/node/Digest.test.d.ts +1 -0
  237. package/{esm → types}/node/HttpRequestSender.d.ts +1 -0
  238. package/{esm → types}/node/HttpServer.d.ts +1 -1
  239. package/types/node/TimeZoneDaemon.d.ts +6 -0
  240. package/types/node/VapixEvents.d.ts +16 -0
  241. package/types/node/WsClient.d.ts +30 -0
  242. package/types/node/events/AxisCameraStationEvents.d.ts +12 -0
  243. package/types/node/events/GenetecAgent.d.ts +16 -0
  244. package/types/node/index.d.ts +18 -0
  245. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
  246. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  247. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
  248. package/types/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
  249. package/types/types/CamOverlayAPI/index.d.ts +11 -0
  250. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  251. package/types/types/CamOverlayAPI/pipSchema.d.ts +125 -0
  252. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
  253. package/types/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
  254. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  255. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  256. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
  257. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  258. package/types/types/CamOverlayDrawingAPI.d.ts +48 -0
  259. package/types/types/CamOverlayPainter.d.ts +76 -0
  260. package/types/types/CamScripterAPI.d.ts +130 -0
  261. package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  262. package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +239 -0
  263. package/types/types/CamStreamerAPI/facebookSchema.d.ts +18 -0
  264. package/types/types/CamStreamerAPI/hlsSchema.d.ts +18 -0
  265. package/types/types/CamStreamerAPI/index.d.ts +9 -0
  266. package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +69 -0
  267. package/{cjs/types/CamStreamerAPI.d.ts → types/types/CamStreamerAPI/oldStreamSchema.d.ts} +41 -43
  268. package/types/types/CamStreamerAPI/rtmpSchema.d.ts +18 -0
  269. package/types/types/CamStreamerAPI/sdCardSchema.d.ts +18 -0
  270. package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +17 -0
  271. package/types/types/CamStreamerAPI/windySchema.d.ts +18 -0
  272. package/types/types/CamStreamerAPI/youtubeSchema.d.ts +18 -0
  273. package/{esm → types}/types/CamSwitcherAPI.d.ts +145 -66
  274. package/{esm/events → types/types}/GenetecAgent.d.ts +47 -47
  275. package/types/types/PlaneTrackerAPI.d.ts +980 -0
  276. package/{esm → types}/types/VapixAPI.d.ts +254 -164
  277. package/types/types/VapixEvents.d.ts +15 -0
  278. package/{esm → types}/types/common.d.ts +18 -5
  279. package/types/types/ws/CamOverlayEvents.d.ts +88 -0
  280. package/types/types/ws/CamStreamerEvents.d.ts +249 -0
  281. package/types/types/ws/PlaneTrackerEvents.d.ts +1637 -0
  282. package/types/web/DefaultClient.d.ts +8 -0
  283. package/types/web/WsClient.d.ts +17 -0
  284. package/types/ws/CamOverlayEvents.d.ts +8 -0
  285. package/types/ws/CamStreamerEvents.d.ts +8 -0
  286. package/types/ws/CamSwitcherEvents.d.ts +8 -0
  287. package/types/ws/PlaneTrackerEvents.d.ts +9 -0
  288. package/cjs/CamOverlayDrawingAPI.d.ts +0 -86
  289. package/cjs/CamOverlayPainter/ResourceManager.d.ts +0 -14
  290. package/cjs/CamOverlayPainter/ResourceManager.js +0 -46
  291. package/cjs/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  292. package/cjs/CamSwitcherEvents.d.ts +0 -18
  293. package/cjs/VapixEvents.d.ts +0 -43
  294. package/cjs/events/AxisCameraStationEvents.d.ts +0 -9
  295. package/cjs/events/AxisCameraStationEvents.js +0 -48
  296. package/cjs/events/GenetecAgent.js +0 -123
  297. package/cjs/internal/common.d.ts +0 -39
  298. package/cjs/internal/common.js +0 -27
  299. package/cjs/node/WsEventClient.d.ts +0 -13
  300. package/cjs/node/WsEventClient.js +0 -22
  301. package/cjs/types/CamOverlayAPI.d.ts +0 -188
  302. package/cjs/types/CamOverlayAPI.js +0 -47
  303. package/cjs/types/CamStreamerAPI.js +0 -28
  304. package/esm/CamOverlayAPI.d.ts +0 -31
  305. package/esm/CamOverlayDrawingAPI.d.ts +0 -86
  306. package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -14
  307. package/esm/CamScripterAPI.d.ts +0 -19
  308. package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  309. package/esm/CamStreamerAPI.d.ts +0 -16
  310. package/esm/CamSwitcherAPI.d.ts +0 -52
  311. package/esm/CamSwitcherEvents.d.ts +0 -18
  312. package/esm/VapixAPI.d.ts +0 -66
  313. package/esm/VapixEvents.d.ts +0 -43
  314. package/esm/errors/errors.d.ts +0 -37
  315. package/esm/events/AxisCameraStationEvents.d.ts +0 -9
  316. package/esm/events/GenetecAgent.js +0 -119
  317. package/esm/index.d.ts +0 -11
  318. package/esm/internal/ProxyClient.d.ts +0 -11
  319. package/esm/internal/common.d.ts +0 -39
  320. package/esm/internal/common.js +0 -20
  321. package/esm/node/DefaultClient.d.ts +0 -15
  322. package/esm/node/WsClient.d.ts +0 -39
  323. package/esm/node/WsEventClient.d.ts +0 -13
  324. package/esm/node/WsEventClient.js +0 -18
  325. package/esm/types/CamOverlayAPI.d.ts +0 -188
  326. package/esm/types/CamOverlayAPI.js +0 -44
  327. package/esm/types/CamScripterAPI.d.ts +0 -67
  328. package/esm/types/CamStreamerAPI.js +0 -25
  329. package/esm/web/DefaultClient.d.ts +0 -6
  330. package/esm/web/WsClient.d.ts +0 -13
  331. package/esm/web/index.d.ts +0 -2
  332. /package/cjs/{CreatePackage.d.ts → bin/CreatePackage.d.ts} +0 -0
  333. /package/cjs/{internal → node}/Digest.d.ts +0 -0
  334. /package/{esm/CreatePackage.d.ts → cjs/node/Digest.test.d.ts} +0 -0
  335. /package/cjs/types/{CamSwitcherEvents.d.ts → ws/CamSwitcherEvents.d.ts} +0 -0
  336. /package/cjs/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
  337. /package/esm/{internal → node}/Digest.js +0 -0
  338. /package/esm/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
  339. /package/{esm → types}/internal/constants.d.ts +0 -0
  340. /package/{esm → types}/internal/transformers.d.ts +0 -0
  341. /package/{esm/internal → types/node}/Digest.d.ts +0 -0
  342. /package/{esm/types → types/types/ws}/CamSwitcherEvents.d.ts +0 -0
  343. /package/{esm/node → types/web}/index.d.ts +0 -0
@@ -0,0 +1,45 @@
1
+ export type TDeclaration = {
2
+ type?: '' | 'SOURCE' | 'DATA';
3
+ namespace: string;
4
+ key: string;
5
+ value: string | boolean | number;
6
+ value_type: 'STRING' | 'INT' | 'BOOL' | 'DOUBLE';
7
+ key_nice_name?: string;
8
+ value_nice_name?: string;
9
+ };
10
+ export type TEventDeclaration = {
11
+ declaration_id: string;
12
+ stateless: boolean;
13
+ declaration: TDeclaration[];
14
+ };
15
+ export type TEventUndeclaration = {
16
+ declaration_id: string;
17
+ };
18
+ export type TEventData = {
19
+ namespace: string;
20
+ key: string;
21
+ value: string | boolean | number;
22
+ value_type: 'STRING' | 'INT' | 'BOOL' | 'DOUBLE';
23
+ };
24
+ export type TCamScripterEvent = {
25
+ declaration_id: string;
26
+ event_data: TEventData[];
27
+ };
28
+ export type TCamScripterResponse = {
29
+ call_id: number;
30
+ message: string;
31
+ };
32
+ export type TCamScripterErrorResponse = {
33
+ error: string;
34
+ call_id?: number;
35
+ };
36
+ export type TCamScripterMessage = {
37
+ call_id: number;
38
+ command: string;
39
+ data: unknown;
40
+ };
41
+ export type TAsyncMessage = {
42
+ resolve: (value: TCamScripterResponse) => void;
43
+ reject: (reason?: any) => void;
44
+ sentTimestamp: number;
45
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,239 @@
1
+ import { z } from 'zod';
2
+ import { facebookSchema } from './facebookSchema';
3
+ import { hlsSchema } from './hlsSchema';
4
+ import { mpegDvbSchema } from './mpegDvbSchema';
5
+ import { rtmpSchema } from './rtmpSchema';
6
+ import { sdCardSchema } from './sdCardSchema';
7
+ import { windySchema } from './windySchema';
8
+ import { youtubeSchema } from './youtubeSchema';
9
+ export declare const streamSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
10
+ enabled: z.ZodBoolean;
11
+ active: z.ZodBoolean;
12
+ title: z.ZodString;
13
+ } & {
14
+ type: z.ZodLiteral<"facebook">;
15
+ }, "strip", z.ZodTypeAny, {
16
+ type: "facebook";
17
+ enabled: boolean;
18
+ active: boolean;
19
+ title: string;
20
+ }, {
21
+ type: "facebook";
22
+ enabled: boolean;
23
+ active: boolean;
24
+ title: string;
25
+ }>, z.ZodObject<{
26
+ enabled: z.ZodBoolean;
27
+ active: z.ZodBoolean;
28
+ title: z.ZodString;
29
+ } & {
30
+ type: z.ZodLiteral<"hls">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "hls";
33
+ enabled: boolean;
34
+ active: boolean;
35
+ title: string;
36
+ }, {
37
+ type: "hls";
38
+ enabled: boolean;
39
+ active: boolean;
40
+ title: string;
41
+ }>, z.ZodObject<{
42
+ enabled: z.ZodBoolean;
43
+ active: z.ZodBoolean;
44
+ title: z.ZodString;
45
+ } & {
46
+ type: z.ZodLiteral<"mpeg_dvb">;
47
+ ipAddress: z.ZodString;
48
+ port: z.ZodNumber;
49
+ standard: z.ZodEnum<["DVB", "ATSC"]>;
50
+ nullPacketsPaddingEnabled: z.ZodBoolean;
51
+ nullPacketsPaddingKbps: z.ZodNumber;
52
+ videoPid: z.ZodNumber;
53
+ audioPid: z.ZodNumber;
54
+ mpegtsStreamId: z.ZodNumber;
55
+ pmtPid: z.ZodNumber;
56
+ pcrPid: z.ZodNumber;
57
+ pcrPeriodMs: z.ZodNumber;
58
+ providerName: z.ZodString;
59
+ serviceName: z.ZodString;
60
+ triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
61
+ statusCameraLed: z.ZodBoolean;
62
+ statusCameraOutput: z.ZodString;
63
+ saveToSdCard: z.ZodBoolean;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: "mpeg_dvb";
66
+ port: number;
67
+ enabled: boolean;
68
+ active: boolean;
69
+ title: string;
70
+ ipAddress: string;
71
+ standard: "DVB" | "ATSC";
72
+ nullPacketsPaddingEnabled: boolean;
73
+ nullPacketsPaddingKbps: number;
74
+ videoPid: number;
75
+ audioPid: number;
76
+ mpegtsStreamId: number;
77
+ pmtPid: number;
78
+ pcrPid: number;
79
+ pcrPeriodMs: number;
80
+ providerName: string;
81
+ serviceName: string;
82
+ triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
83
+ statusCameraLed: boolean;
84
+ statusCameraOutput: string;
85
+ saveToSdCard: boolean;
86
+ }, {
87
+ type: "mpeg_dvb";
88
+ port: number;
89
+ enabled: boolean;
90
+ active: boolean;
91
+ title: string;
92
+ ipAddress: string;
93
+ standard: "DVB" | "ATSC";
94
+ nullPacketsPaddingEnabled: boolean;
95
+ nullPacketsPaddingKbps: number;
96
+ videoPid: number;
97
+ audioPid: number;
98
+ mpegtsStreamId: number;
99
+ pmtPid: number;
100
+ pcrPid: number;
101
+ pcrPeriodMs: number;
102
+ providerName: string;
103
+ serviceName: string;
104
+ triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
105
+ statusCameraLed: boolean;
106
+ statusCameraOutput: string;
107
+ saveToSdCard: boolean;
108
+ }>, z.ZodObject<{
109
+ enabled: z.ZodBoolean;
110
+ active: z.ZodBoolean;
111
+ title: z.ZodString;
112
+ } & {
113
+ type: z.ZodLiteral<"rtmp">;
114
+ }, "strip", z.ZodTypeAny, {
115
+ type: "rtmp";
116
+ enabled: boolean;
117
+ active: boolean;
118
+ title: string;
119
+ }, {
120
+ type: "rtmp";
121
+ enabled: boolean;
122
+ active: boolean;
123
+ title: string;
124
+ }>, z.ZodObject<{
125
+ enabled: z.ZodBoolean;
126
+ active: z.ZodBoolean;
127
+ title: z.ZodString;
128
+ } & {
129
+ type: z.ZodLiteral<"sd_card">;
130
+ }, "strip", z.ZodTypeAny, {
131
+ type: "sd_card";
132
+ enabled: boolean;
133
+ active: boolean;
134
+ title: string;
135
+ }, {
136
+ type: "sd_card";
137
+ enabled: boolean;
138
+ active: boolean;
139
+ title: string;
140
+ }>, z.ZodObject<{
141
+ enabled: z.ZodBoolean;
142
+ active: z.ZodBoolean;
143
+ title: z.ZodString;
144
+ } & {
145
+ type: z.ZodLiteral<"windy">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type: "windy";
148
+ enabled: boolean;
149
+ active: boolean;
150
+ title: string;
151
+ }, {
152
+ type: "windy";
153
+ enabled: boolean;
154
+ active: boolean;
155
+ title: string;
156
+ }>, z.ZodObject<{
157
+ enabled: z.ZodBoolean;
158
+ active: z.ZodBoolean;
159
+ title: z.ZodString;
160
+ } & {
161
+ type: z.ZodLiteral<"youtube">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ type: "youtube";
164
+ enabled: boolean;
165
+ active: boolean;
166
+ title: string;
167
+ }, {
168
+ type: "youtube";
169
+ enabled: boolean;
170
+ active: boolean;
171
+ title: string;
172
+ }>]>;
173
+ export type TStream = z.infer<typeof streamSchema>;
174
+ export type TFacebookStream = z.infer<typeof facebookSchema>;
175
+ export declare const isFacebookStream: (stream: TStream) => stream is {
176
+ type: "facebook";
177
+ enabled: boolean;
178
+ active: boolean;
179
+ title: string;
180
+ };
181
+ export type THlsStream = z.infer<typeof hlsSchema>;
182
+ export declare const isHlsStream: (stream: TStream) => stream is {
183
+ type: "hls";
184
+ enabled: boolean;
185
+ active: boolean;
186
+ title: string;
187
+ };
188
+ export type TMpegDvbStream = z.infer<typeof mpegDvbSchema>;
189
+ export declare const isMpegDvbStream: (stream: TStream) => stream is {
190
+ type: "mpeg_dvb";
191
+ port: number;
192
+ enabled: boolean;
193
+ active: boolean;
194
+ title: string;
195
+ ipAddress: string;
196
+ standard: "DVB" | "ATSC";
197
+ nullPacketsPaddingEnabled: boolean;
198
+ nullPacketsPaddingKbps: number;
199
+ videoPid: number;
200
+ audioPid: number;
201
+ mpegtsStreamId: number;
202
+ pmtPid: number;
203
+ pcrPid: number;
204
+ pcrPeriodMs: number;
205
+ providerName: string;
206
+ serviceName: string;
207
+ triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
208
+ statusCameraLed: boolean;
209
+ statusCameraOutput: string;
210
+ saveToSdCard: boolean;
211
+ };
212
+ export type TRtmpStream = z.infer<typeof rtmpSchema>;
213
+ export declare const isRtmpStream: (stream: TStream) => stream is {
214
+ type: "rtmp";
215
+ enabled: boolean;
216
+ active: boolean;
217
+ title: string;
218
+ };
219
+ export type TSdCardStream = z.infer<typeof sdCardSchema>;
220
+ export declare const isSdCardStream: (stream: TStream) => stream is {
221
+ type: "sd_card";
222
+ enabled: boolean;
223
+ active: boolean;
224
+ title: string;
225
+ };
226
+ export type TWindyStream = z.infer<typeof windySchema>;
227
+ export declare const isWindyStream: (stream: TStream) => stream is {
228
+ type: "windy";
229
+ enabled: boolean;
230
+ active: boolean;
231
+ title: string;
232
+ };
233
+ export type TYouTubeStream = z.infer<typeof youtubeSchema>;
234
+ export declare const isYouTubeStream: (stream: TStream) => stream is {
235
+ type: "youtube";
236
+ enabled: boolean;
237
+ active: boolean;
238
+ title: string;
239
+ };
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.isHlsStream = exports.isFacebookStream = exports.streamSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const facebookSchema_1 = require("./facebookSchema");
6
+ const hlsSchema_1 = require("./hlsSchema");
7
+ const mpegDvbSchema_1 = require("./mpegDvbSchema");
8
+ const rtmpSchema_1 = require("./rtmpSchema");
9
+ const sdCardSchema_1 = require("./sdCardSchema");
10
+ const windySchema_1 = require("./windySchema");
11
+ const youtubeSchema_1 = require("./youtubeSchema");
12
+ exports.streamSchema = zod_1.z.discriminatedUnion('type', [
13
+ facebookSchema_1.facebookSchema,
14
+ hlsSchema_1.hlsSchema,
15
+ mpegDvbSchema_1.mpegDvbSchema,
16
+ rtmpSchema_1.rtmpSchema,
17
+ sdCardSchema_1.sdCardSchema,
18
+ windySchema_1.windySchema,
19
+ youtubeSchema_1.youtubeSchema,
20
+ ]);
21
+ const isFacebookStream = (stream) => {
22
+ return stream.type === 'facebook';
23
+ };
24
+ exports.isFacebookStream = isFacebookStream;
25
+ const isHlsStream = (stream) => {
26
+ return stream.type === 'hls';
27
+ };
28
+ exports.isHlsStream = isHlsStream;
29
+ const isMpegDvbStream = (stream) => {
30
+ return stream.type === 'mpeg_dvb';
31
+ };
32
+ exports.isMpegDvbStream = isMpegDvbStream;
33
+ const isRtmpStream = (stream) => {
34
+ return stream.type === 'rtmp';
35
+ };
36
+ exports.isRtmpStream = isRtmpStream;
37
+ const isSdCardStream = (stream) => {
38
+ return stream.type === 'sd_card';
39
+ };
40
+ exports.isSdCardStream = isSdCardStream;
41
+ const isWindyStream = (stream) => {
42
+ return stream.type === 'windy';
43
+ };
44
+ exports.isWindyStream = isWindyStream;
45
+ const isYouTubeStream = (stream) => {
46
+ return stream.type === 'youtube';
47
+ };
48
+ exports.isYouTubeStream = isYouTubeStream;
@@ -0,0 +1,18 @@
1
+ import z from 'zod';
2
+ export declare const facebookSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ active: z.ZodBoolean;
5
+ title: z.ZodString;
6
+ } & {
7
+ type: z.ZodLiteral<"facebook">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "facebook";
10
+ enabled: boolean;
11
+ active: boolean;
12
+ title: string;
13
+ }, {
14
+ type: "facebook";
15
+ enabled: boolean;
16
+ active: boolean;
17
+ title: string;
18
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.facebookSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.facebookSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('facebook'),
11
+ });
@@ -0,0 +1,18 @@
1
+ import z from 'zod';
2
+ export declare const hlsSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ active: z.ZodBoolean;
5
+ title: z.ZodString;
6
+ } & {
7
+ type: z.ZodLiteral<"hls">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "hls";
10
+ enabled: boolean;
11
+ active: boolean;
12
+ title: string;
13
+ }, {
14
+ type: "hls";
15
+ enabled: boolean;
16
+ active: boolean;
17
+ title: string;
18
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.hlsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.hlsSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('hls'),
11
+ });
@@ -0,0 +1,9 @@
1
+ export * from './CamStreamerAPI';
2
+ export * from './streamCommonTypes';
3
+ export * from './facebookSchema';
4
+ export * from './hlsSchema';
5
+ export * from './mpegDvbSchema';
6
+ export * from './rtmpSchema';
7
+ export * from './sdCardSchema';
8
+ export * from './windySchema';
9
+ export * from './youtubeSchema';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CamStreamerAPI"), exports);
18
+ __exportStar(require("./streamCommonTypes"), exports);
19
+ __exportStar(require("./facebookSchema"), exports);
20
+ __exportStar(require("./hlsSchema"), exports);
21
+ __exportStar(require("./mpegDvbSchema"), exports);
22
+ __exportStar(require("./rtmpSchema"), exports);
23
+ __exportStar(require("./sdCardSchema"), exports);
24
+ __exportStar(require("./windySchema"), exports);
25
+ __exportStar(require("./youtubeSchema"), exports);
@@ -0,0 +1,69 @@
1
+ import z from 'zod';
2
+ export declare const mpegDvbSchema: z.ZodObject<{
3
+ enabled: z.ZodBoolean;
4
+ active: z.ZodBoolean;
5
+ title: z.ZodString;
6
+ } & {
7
+ type: z.ZodLiteral<"mpeg_dvb">;
8
+ ipAddress: z.ZodString;
9
+ port: z.ZodNumber;
10
+ standard: z.ZodEnum<["DVB", "ATSC"]>;
11
+ nullPacketsPaddingEnabled: z.ZodBoolean;
12
+ nullPacketsPaddingKbps: z.ZodNumber;
13
+ videoPid: z.ZodNumber;
14
+ audioPid: z.ZodNumber;
15
+ mpegtsStreamId: z.ZodNumber;
16
+ pmtPid: z.ZodNumber;
17
+ pcrPid: z.ZodNumber;
18
+ pcrPeriodMs: z.ZodNumber;
19
+ providerName: z.ZodString;
20
+ serviceName: z.ZodString;
21
+ triggerType: z.ZodEnum<["manual", "onetime", "recurrent", "io", "nonstop"]>;
22
+ statusCameraLed: z.ZodBoolean;
23
+ statusCameraOutput: z.ZodString;
24
+ saveToSdCard: z.ZodBoolean;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: "mpeg_dvb";
27
+ port: number;
28
+ enabled: boolean;
29
+ active: boolean;
30
+ title: string;
31
+ ipAddress: string;
32
+ standard: "DVB" | "ATSC";
33
+ nullPacketsPaddingEnabled: boolean;
34
+ nullPacketsPaddingKbps: number;
35
+ videoPid: number;
36
+ audioPid: number;
37
+ mpegtsStreamId: number;
38
+ pmtPid: number;
39
+ pcrPid: number;
40
+ pcrPeriodMs: number;
41
+ providerName: string;
42
+ serviceName: string;
43
+ triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
44
+ statusCameraLed: boolean;
45
+ statusCameraOutput: string;
46
+ saveToSdCard: boolean;
47
+ }, {
48
+ type: "mpeg_dvb";
49
+ port: number;
50
+ enabled: boolean;
51
+ active: boolean;
52
+ title: string;
53
+ ipAddress: string;
54
+ standard: "DVB" | "ATSC";
55
+ nullPacketsPaddingEnabled: boolean;
56
+ nullPacketsPaddingKbps: number;
57
+ videoPid: number;
58
+ audioPid: number;
59
+ mpegtsStreamId: number;
60
+ pmtPid: number;
61
+ pcrPid: number;
62
+ pcrPeriodMs: number;
63
+ providerName: string;
64
+ serviceName: string;
65
+ triggerType: "manual" | "onetime" | "recurrent" | "io" | "nonstop";
66
+ statusCameraLed: boolean;
67
+ statusCameraOutput: string;
68
+ saveToSdCard: boolean;
69
+ }>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.mpegDvbSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const streamCommonTypes_1 = require("./streamCommonTypes");
9
+ exports.mpegDvbSchema = streamCommonTypes_1.streamCommonSchema.extend({
10
+ type: zod_1.default.literal('mpeg_dvb'),
11
+ ipAddress: zod_1.default.string(),
12
+ port: zod_1.default.number(),
13
+ standard: zod_1.default.enum(['DVB', 'ATSC']),
14
+ nullPacketsPaddingEnabled: zod_1.default.boolean(),
15
+ nullPacketsPaddingKbps: zod_1.default.number(),
16
+ videoPid: zod_1.default.number(),
17
+ audioPid: zod_1.default.number(),
18
+ mpegtsStreamId: zod_1.default.number(),
19
+ pmtPid: zod_1.default.number(),
20
+ pcrPid: zod_1.default.number(),
21
+ pcrPeriodMs: zod_1.default.number(),
22
+ providerName: zod_1.default.string(),
23
+ serviceName: zod_1.default.string(),
24
+ triggerType: zod_1.default.enum(['manual', 'onetime', 'recurrent', 'io', 'nonstop']),
25
+ statusCameraLed: zod_1.default.boolean(),
26
+ statusCameraOutput: zod_1.default.string(),
27
+ saveToSdCard: zod_1.default.boolean(),
28
+ });
@@ -1,7 +1,5 @@
1
- import { HttpOptions } from '../internal/common';
2
1
  import { z } from 'zod';
3
- export type CamStreamerAPIOptions = HttpOptions;
4
- export declare const streamAttributesSchema: z.ZodObject<{
2
+ export declare const oldStringStreamSchema: z.ZodObject<{
5
3
  enabled: z.ZodString;
6
4
  active: z.ZodString;
7
5
  audioSource: z.ZodString;
@@ -68,72 +66,72 @@ export declare const streamAttributesSchema: z.ZodObject<{
68
66
  startTime: string;
69
67
  stopTime: string;
70
68
  }>;
71
- export type TStreamAttributes = z.infer<typeof streamAttributesSchema>;
72
- export declare const streamListSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
73
- enabled: z.ZodString;
74
- active: z.ZodString;
69
+ export type TOldStringStream = z.infer<typeof oldStringStreamSchema>;
70
+ export declare const oldStreamSchema: z.ZodObject<{
71
+ enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
72
+ active: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
75
73
  audioSource: z.ZodString;
76
- avSyncMsec: z.ZodString;
74
+ avSyncMsec: z.ZodNumber;
77
75
  internalVapixParameters: z.ZodString;
78
76
  userVapixParameters: z.ZodString;
79
77
  outputParameters: z.ZodString;
80
- outputType: z.ZodString;
78
+ outputType: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">, z.ZodLiteral<"none">]>;
81
79
  mediaServerUrl: z.ZodString;
82
- inputType: z.ZodString;
80
+ inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
83
81
  inputUrl: z.ZodString;
84
- forceStereo: z.ZodString;
85
- streamDelay: z.ZodString;
86
- statusLed: z.ZodString;
82
+ forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
83
+ streamDelay: z.ZodNullable<z.ZodNumber>;
84
+ statusLed: z.ZodNumber;
87
85
  statusPort: z.ZodString;
88
- callApi: z.ZodString;
86
+ callApi: z.ZodNumber;
89
87
  trigger: z.ZodString;
90
88
  schedule: z.ZodString;
91
- prepareAhead: z.ZodString;
92
- startTime: z.ZodString;
93
- stopTime: z.ZodString;
89
+ prepareAhead: z.ZodNumber;
90
+ startTime: z.ZodNullable<z.ZodNumber>;
91
+ stopTime: z.ZodNullable<z.ZodNumber>;
94
92
  }, "strip", z.ZodTypeAny, {
95
- enabled: string;
96
- active: string;
93
+ enabled: 0 | 1;
94
+ active: 0 | 1;
97
95
  audioSource: string;
98
- avSyncMsec: string;
96
+ avSyncMsec: number;
99
97
  internalVapixParameters: string;
100
98
  userVapixParameters: string;
101
99
  outputParameters: string;
102
- outputType: string;
100
+ outputType: "video" | "none" | "images";
103
101
  mediaServerUrl: string;
104
- inputType: string;
102
+ inputType: "RTSP_URL" | "CSw" | "CRS";
105
103
  inputUrl: string;
106
- forceStereo: string;
107
- streamDelay: string;
108
- statusLed: string;
104
+ forceStereo: 0 | 1;
105
+ streamDelay: number | null;
106
+ statusLed: number;
109
107
  statusPort: string;
110
- callApi: string;
108
+ callApi: number;
111
109
  trigger: string;
112
110
  schedule: string;
113
- prepareAhead: string;
114
- startTime: string;
115
- stopTime: string;
111
+ prepareAhead: number;
112
+ startTime: number | null;
113
+ stopTime: number | null;
116
114
  }, {
117
- enabled: string;
118
- active: string;
115
+ enabled: 0 | 1;
116
+ active: 0 | 1;
119
117
  audioSource: string;
120
- avSyncMsec: string;
118
+ avSyncMsec: number;
121
119
  internalVapixParameters: string;
122
120
  userVapixParameters: string;
123
121
  outputParameters: string;
124
- outputType: string;
122
+ outputType: "video" | "none" | "images";
125
123
  mediaServerUrl: string;
126
- inputType: string;
124
+ inputType: "RTSP_URL" | "CSw" | "CRS";
127
125
  inputUrl: string;
128
- forceStereo: string;
129
- streamDelay: string;
130
- statusLed: string;
126
+ forceStereo: 0 | 1;
127
+ streamDelay: number | null;
128
+ statusLed: number;
131
129
  statusPort: string;
132
- callApi: string;
130
+ callApi: number;
133
131
  trigger: string;
134
132
  schedule: string;
135
- prepareAhead: string;
136
- startTime: string;
137
- stopTime: string;
138
- }>>;
139
- export type TStreamList = z.infer<typeof streamListSchema>;
133
+ prepareAhead: number;
134
+ startTime: number | null;
135
+ stopTime: number | null;
136
+ }>;
137
+ export type TOldStream = z.infer<typeof oldStreamSchema>;