camstreamerlib 4.0.0-beta.7 → 4.0.0-beta.71

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 (302) 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 +62 -14
  7. package/cjs/CamStreamerAPI.js +82 -39
  8. package/cjs/CamSwitcherAPI.d.ts +158 -43
  9. package/cjs/CamSwitcherAPI.js +138 -122
  10. package/cjs/PlaneTrackerAPI.d.ts +233 -0
  11. package/cjs/PlaneTrackerAPI.js +247 -0
  12. package/cjs/VapixAPI.d.ts +94 -42
  13. package/cjs/VapixAPI.js +323 -233
  14. package/cjs/{CreatePackage.js → bin/CreatePackage.js} +44 -18
  15. package/cjs/errors/errors.d.ts +61 -4
  16. package/cjs/errors/errors.js +134 -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.d.ts +180 -47
  93. package/cjs/types/CamStreamerAPI.js +34 -3
  94. package/cjs/types/CamSwitcherAPI.d.ts +145 -66
  95. package/cjs/types/CamSwitcherAPI.js +38 -1
  96. package/cjs/{events → types}/GenetecAgent.d.ts +47 -47
  97. package/cjs/types/GenetecAgent.js +31 -0
  98. package/cjs/types/PlaneTrackerAPI.d.ts +952 -0
  99. package/cjs/types/PlaneTrackerAPI.js +320 -0
  100. package/cjs/types/VapixAPI.d.ts +254 -164
  101. package/cjs/types/VapixAPI.js +66 -11
  102. package/cjs/types/VapixEvents.d.ts +15 -0
  103. package/cjs/types/VapixEvents.js +2 -0
  104. package/cjs/types/common.d.ts +17 -5
  105. package/cjs/types/common.js +4 -2
  106. package/cjs/types/ws/CamOverlayEvents.d.ts +88 -0
  107. package/cjs/types/ws/CamOverlayEvents.js +19 -0
  108. package/cjs/types/ws/CamStreamerEvents.d.ts +249 -0
  109. package/cjs/types/ws/CamStreamerEvents.js +32 -0
  110. package/cjs/types/ws/PlaneTrackerEvents.d.ts +1637 -0
  111. package/cjs/types/ws/PlaneTrackerEvents.js +196 -0
  112. package/cjs/web/DefaultClient.d.ts +7 -5
  113. package/cjs/web/DefaultClient.js +26 -10
  114. package/cjs/web/WsClient.d.ts +9 -5
  115. package/cjs/web/WsClient.js +16 -18
  116. package/cjs/ws/CamOverlayEvents.d.ts +8 -0
  117. package/cjs/ws/CamOverlayEvents.js +24 -0
  118. package/cjs/ws/CamStreamerEvents.d.ts +8 -0
  119. package/cjs/ws/CamStreamerEvents.js +24 -0
  120. package/cjs/ws/CamSwitcherEvents.d.ts +8 -0
  121. package/cjs/ws/CamSwitcherEvents.js +24 -0
  122. package/cjs/ws/PlaneTrackerEvents.d.ts +9 -0
  123. package/cjs/ws/PlaneTrackerEvents.js +30 -0
  124. package/esm/CamOverlayAPI.js +135 -92
  125. package/esm/CamScripterAPI.js +50 -40
  126. package/esm/CamStreamerAPI.js +81 -39
  127. package/esm/CamSwitcherAPI.js +136 -120
  128. package/esm/PlaneTrackerAPI.js +243 -0
  129. package/esm/VapixAPI.js +323 -233
  130. package/esm/{CreatePackage.js → bin/CreatePackage.js} +16 -16
  131. package/esm/errors/errors.js +116 -6
  132. package/esm/index.js +20 -4
  133. package/esm/internal/ProxyClient.js +28 -32
  134. package/esm/{CamSwitcherEvents.js → internal/WsEvents.js} +26 -20
  135. package/esm/internal/types.js +1 -0
  136. package/esm/internal/utils.js +11 -1
  137. package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +26 -18
  138. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
  139. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +2 -13
  140. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +7 -5
  141. package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +11 -11
  142. package/esm/node/DefaultClient.js +10 -12
  143. package/esm/node/Digest.test.js +11 -0
  144. package/esm/node/HttpRequestSender.js +14 -4
  145. package/esm/node/HttpServer.js +1 -1
  146. package/esm/node/TimeZoneDaemon.js +25 -0
  147. package/esm/{VapixEvents.js → node/VapixEvents.js} +10 -10
  148. package/esm/node/WsClient.js +22 -15
  149. package/esm/{events → node/events}/AxisCameraStationEvents.js +18 -13
  150. package/esm/node/events/GenetecAgent.js +120 -0
  151. package/esm/node/index.js +18 -2
  152. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +76 -0
  153. package/esm/types/CamOverlayAPI/accuweatherSchema.js +44 -0
  154. package/esm/types/CamOverlayAPI/customGraphicsSchema.js +69 -0
  155. package/esm/types/CamOverlayAPI/imagesSchema.js +6 -0
  156. package/esm/types/CamOverlayAPI/index.js +11 -0
  157. package/esm/types/CamOverlayAPI/infotickerSchema.js +23 -0
  158. package/esm/types/CamOverlayAPI/pipSchema.js +36 -0
  159. package/esm/types/CamOverlayAPI/ptzCompassSchema.js +23 -0
  160. package/esm/types/CamOverlayAPI/ptzSchema.js +9 -0
  161. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +129 -0
  162. package/esm/types/CamOverlayAPI/screenSharingSchema.js +5 -0
  163. package/esm/types/CamOverlayAPI/serviceCommonTypes.js +88 -0
  164. package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +5 -0
  165. package/esm/types/CamOverlayDrawingAPI.js +1 -0
  166. package/esm/types/CamOverlayPainter.js +11 -0
  167. package/esm/types/CamScripterAPI.js +23 -7
  168. package/esm/types/CamScripterAPICameraEventsGenerator.js +1 -0
  169. package/esm/types/CamStreamerAPI.js +33 -2
  170. package/esm/types/CamSwitcherAPI.js +38 -1
  171. package/esm/types/GenetecAgent.js +28 -0
  172. package/esm/types/PlaneTrackerAPI.js +317 -0
  173. package/esm/types/VapixAPI.js +65 -10
  174. package/esm/types/VapixEvents.js +1 -0
  175. package/esm/types/common.js +3 -1
  176. package/esm/types/ws/CamOverlayEvents.js +16 -0
  177. package/esm/types/ws/CamStreamerEvents.js +29 -0
  178. package/esm/types/ws/PlaneTrackerEvents.js +193 -0
  179. package/esm/web/DefaultClient.js +26 -10
  180. package/esm/web/WsClient.js +16 -18
  181. package/esm/ws/CamOverlayEvents.js +20 -0
  182. package/esm/ws/CamStreamerEvents.js +20 -0
  183. package/esm/ws/CamSwitcherEvents.js +20 -0
  184. package/esm/ws/PlaneTrackerEvents.js +26 -0
  185. package/package.json +44 -11
  186. package/types/CamOverlayAPI.d.ts +867 -0
  187. package/types/CamScripterAPI.d.ts +46 -0
  188. package/types/CamStreamerAPI.d.ts +64 -0
  189. package/types/CamSwitcherAPI.d.ts +167 -0
  190. package/types/PlaneTrackerAPI.d.ts +233 -0
  191. package/types/VapixAPI.d.ts +118 -0
  192. package/types/bin/CreatePackage.d.ts +1 -0
  193. package/types/errors/errors.d.ts +91 -0
  194. package/types/index.d.ts +27 -0
  195. package/types/internal/ProxyClient.d.ts +10 -0
  196. package/types/internal/WsEvents.d.ts +37 -0
  197. package/types/internal/types.d.ts +47 -0
  198. package/{esm → types}/internal/utils.d.ts +3 -1
  199. package/{esm → types}/internal/versionCompare.d.ts +2 -2
  200. package/types/node/CamOverlayDrawingAPI.d.ts +41 -0
  201. package/{esm → types/node}/CamOverlayPainter/Frame.d.ts +8 -37
  202. package/{esm → types/node}/CamOverlayPainter/Painter.d.ts +5 -21
  203. package/types/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
  204. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  205. package/types/node/DefaultClient.d.ts +16 -0
  206. package/types/node/Digest.test.d.ts +1 -0
  207. package/{esm → types}/node/HttpRequestSender.d.ts +1 -0
  208. package/{esm → types}/node/HttpServer.d.ts +1 -1
  209. package/types/node/TimeZoneDaemon.d.ts +6 -0
  210. package/types/node/VapixEvents.d.ts +16 -0
  211. package/types/node/WsClient.d.ts +30 -0
  212. package/types/node/events/AxisCameraStationEvents.d.ts +12 -0
  213. package/types/node/events/GenetecAgent.d.ts +16 -0
  214. package/types/node/index.d.ts +18 -0
  215. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
  216. package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
  217. package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
  218. package/types/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
  219. package/types/types/CamOverlayAPI/index.d.ts +11 -0
  220. package/types/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
  221. package/types/types/CamOverlayAPI/pipSchema.d.ts +125 -0
  222. package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
  223. package/types/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
  224. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
  225. package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
  226. package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
  227. package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
  228. package/types/types/CamOverlayDrawingAPI.d.ts +48 -0
  229. package/types/types/CamOverlayPainter.d.ts +76 -0
  230. package/types/types/CamScripterAPI.d.ts +130 -0
  231. package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  232. package/types/types/CamStreamerAPI.d.ts +272 -0
  233. package/{esm → types}/types/CamSwitcherAPI.d.ts +145 -66
  234. package/{esm/events → types/types}/GenetecAgent.d.ts +47 -47
  235. package/types/types/PlaneTrackerAPI.d.ts +952 -0
  236. package/{esm → types}/types/VapixAPI.d.ts +254 -164
  237. package/types/types/VapixEvents.d.ts +15 -0
  238. package/{esm → types}/types/common.d.ts +17 -5
  239. package/types/types/ws/CamOverlayEvents.d.ts +88 -0
  240. package/types/types/ws/CamStreamerEvents.d.ts +249 -0
  241. package/types/types/ws/PlaneTrackerEvents.d.ts +1637 -0
  242. package/types/web/DefaultClient.d.ts +8 -0
  243. package/types/web/WsClient.d.ts +17 -0
  244. package/types/ws/CamOverlayEvents.d.ts +8 -0
  245. package/types/ws/CamStreamerEvents.d.ts +8 -0
  246. package/types/ws/CamSwitcherEvents.d.ts +8 -0
  247. package/types/ws/PlaneTrackerEvents.d.ts +9 -0
  248. package/cjs/CamOverlayDrawingAPI.d.ts +0 -86
  249. package/cjs/CamOverlayPainter/ResourceManager.d.ts +0 -14
  250. package/cjs/CamOverlayPainter/ResourceManager.js +0 -46
  251. package/cjs/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  252. package/cjs/CamSwitcherEvents.d.ts +0 -18
  253. package/cjs/VapixEvents.d.ts +0 -43
  254. package/cjs/events/AxisCameraStationEvents.d.ts +0 -9
  255. package/cjs/events/AxisCameraStationEvents.js +0 -48
  256. package/cjs/events/GenetecAgent.js +0 -123
  257. package/cjs/internal/common.d.ts +0 -39
  258. package/cjs/internal/common.js +0 -27
  259. package/cjs/node/WsEventClient.d.ts +0 -13
  260. package/cjs/node/WsEventClient.js +0 -22
  261. package/cjs/types/CamOverlayAPI.d.ts +0 -188
  262. package/cjs/types/CamOverlayAPI.js +0 -47
  263. package/esm/CamOverlayAPI.d.ts +0 -31
  264. package/esm/CamOverlayDrawingAPI.d.ts +0 -86
  265. package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -14
  266. package/esm/CamScripterAPI.d.ts +0 -19
  267. package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  268. package/esm/CamStreamerAPI.d.ts +0 -16
  269. package/esm/CamSwitcherAPI.d.ts +0 -52
  270. package/esm/CamSwitcherEvents.d.ts +0 -18
  271. package/esm/VapixAPI.d.ts +0 -66
  272. package/esm/VapixEvents.d.ts +0 -43
  273. package/esm/errors/errors.d.ts +0 -34
  274. package/esm/events/AxisCameraStationEvents.d.ts +0 -9
  275. package/esm/events/GenetecAgent.js +0 -119
  276. package/esm/index.d.ts +0 -11
  277. package/esm/internal/ProxyClient.d.ts +0 -11
  278. package/esm/internal/common.d.ts +0 -39
  279. package/esm/internal/common.js +0 -20
  280. package/esm/node/DefaultClient.d.ts +0 -15
  281. package/esm/node/WsClient.d.ts +0 -39
  282. package/esm/node/WsEventClient.d.ts +0 -13
  283. package/esm/node/WsEventClient.js +0 -18
  284. package/esm/types/CamOverlayAPI.d.ts +0 -188
  285. package/esm/types/CamOverlayAPI.js +0 -44
  286. package/esm/types/CamScripterAPI.d.ts +0 -67
  287. package/esm/types/CamStreamerAPI.d.ts +0 -139
  288. package/esm/web/DefaultClient.d.ts +0 -6
  289. package/esm/web/WsClient.d.ts +0 -13
  290. package/esm/web/index.d.ts +0 -2
  291. /package/cjs/{CreatePackage.d.ts → bin/CreatePackage.d.ts} +0 -0
  292. /package/cjs/{internal → node}/Digest.d.ts +0 -0
  293. /package/{esm/CreatePackage.d.ts → cjs/node/Digest.test.d.ts} +0 -0
  294. /package/cjs/types/{CamSwitcherEvents.d.ts → ws/CamSwitcherEvents.d.ts} +0 -0
  295. /package/cjs/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
  296. /package/esm/{internal → node}/Digest.js +0 -0
  297. /package/esm/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
  298. /package/{esm → types}/internal/constants.d.ts +0 -0
  299. /package/{esm → types}/internal/transformers.d.ts +0 -0
  300. /package/{esm/internal → types/node}/Digest.d.ts +0 -0
  301. /package/{esm/types → types/types/ws}/CamSwitcherEvents.d.ts +0 -0
  302. /package/{esm/node → types/web}/index.d.ts +0 -0
@@ -1,6 +1,4 @@
1
- import { HttpOptions } from '../internal/common';
2
1
  import { z } from 'zod';
3
- export type CameraVapixOptions = HttpOptions;
4
2
  export declare const applicationSchema: z.ZodObject<{
5
3
  Name: z.ZodString;
6
4
  NiceName: z.ZodString;
@@ -35,161 +33,48 @@ export declare const applicationSchema: z.ZodObject<{
35
33
  VendorHomePage?: string | undefined;
36
34
  LicenseName?: string | undefined;
37
35
  }>;
38
- export declare const APP_IDS: readonly ["CamStreamer", "CamSwitcher", "CamOverlay", "CamScripter", "PlaneTracker", "Ndihxplugin", "SportTracker"];
39
- export type TApplicationId = (typeof APP_IDS)[number];
40
- export type TApplication = z.infer<typeof applicationSchema> & {
41
- appId: null | TApplicationId;
42
- };
43
- export declare const applicationListSchema: z.ZodObject<{
44
- reply: z.ZodObject<{
45
- $: z.ZodObject<{
46
- result: z.ZodString;
47
- }, "strip", z.ZodTypeAny, {
48
- result: string;
49
- }, {
50
- result: string;
51
- }>;
52
- application: z.ZodArray<z.ZodObject<{
53
- $: z.ZodObject<{
54
- Name: z.ZodString;
55
- NiceName: z.ZodString;
56
- Vendor: z.ZodString;
57
- Version: z.ZodString;
58
- ApplicationID: z.ZodOptional<z.ZodString>;
59
- License: z.ZodString;
60
- Status: z.ZodString;
61
- ConfigurationPage: z.ZodOptional<z.ZodString>;
62
- VendorHomePage: z.ZodOptional<z.ZodString>;
63
- LicenseName: z.ZodOptional<z.ZodString>;
64
- }, "strip", z.ZodTypeAny, {
65
- Name: string;
66
- NiceName: string;
67
- Vendor: string;
68
- Version: string;
69
- License: string;
70
- Status: string;
71
- ApplicationID?: string | undefined;
72
- ConfigurationPage?: string | undefined;
73
- VendorHomePage?: string | undefined;
74
- LicenseName?: string | undefined;
75
- }, {
76
- Name: string;
77
- NiceName: string;
78
- Vendor: string;
79
- Version: string;
80
- License: string;
81
- Status: string;
82
- ApplicationID?: string | undefined;
83
- ConfigurationPage?: string | undefined;
84
- VendorHomePage?: string | undefined;
85
- LicenseName?: string | undefined;
86
- }>;
87
- }, "strip", z.ZodTypeAny, {
88
- $: {
89
- Name: string;
90
- NiceName: string;
91
- Vendor: string;
92
- Version: string;
93
- License: string;
94
- Status: string;
95
- ApplicationID?: string | undefined;
96
- ConfigurationPage?: string | undefined;
97
- VendorHomePage?: string | undefined;
98
- LicenseName?: string | undefined;
99
- };
100
- }, {
101
- $: {
102
- Name: string;
103
- NiceName: string;
104
- Vendor: string;
105
- Version: string;
106
- License: string;
107
- Status: string;
108
- ApplicationID?: string | undefined;
109
- ConfigurationPage?: string | undefined;
110
- VendorHomePage?: string | undefined;
111
- LicenseName?: string | undefined;
112
- };
113
- }>, "many">;
114
- }, "strip", z.ZodTypeAny, {
115
- $: {
116
- result: string;
117
- };
118
- application: {
119
- $: {
120
- Name: string;
121
- NiceName: string;
122
- Vendor: string;
123
- Version: string;
124
- License: string;
125
- Status: string;
126
- ApplicationID?: string | undefined;
127
- ConfigurationPage?: string | undefined;
128
- VendorHomePage?: string | undefined;
129
- LicenseName?: string | undefined;
130
- };
131
- }[];
132
- }, {
133
- $: {
134
- result: string;
135
- };
136
- application: {
137
- $: {
138
- Name: string;
139
- NiceName: string;
140
- Vendor: string;
141
- Version: string;
142
- License: string;
143
- Status: string;
144
- ApplicationID?: string | undefined;
145
- ConfigurationPage?: string | undefined;
146
- VendorHomePage?: string | undefined;
147
- LicenseName?: string | undefined;
148
- };
149
- }[];
150
- }>;
36
+ export declare const applicationListSchema: z.ZodArray<z.ZodObject<{
37
+ Name: z.ZodString;
38
+ NiceName: z.ZodString;
39
+ Vendor: z.ZodString;
40
+ Version: z.ZodString;
41
+ ApplicationID: z.ZodOptional<z.ZodString>;
42
+ License: z.ZodString;
43
+ Status: z.ZodString;
44
+ ConfigurationPage: z.ZodOptional<z.ZodString>;
45
+ VendorHomePage: z.ZodOptional<z.ZodString>;
46
+ LicenseName: z.ZodOptional<z.ZodString>;
47
+ } & {
48
+ appId: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"CamStreamer">, z.ZodLiteral<"CamSwitcher">, z.ZodLiteral<"CamOverlay">, z.ZodLiteral<"CamScripter">, z.ZodLiteral<"PlaneTracker">, z.ZodLiteral<"Ndihxplugin">, z.ZodLiteral<"SportTracker">]>>;
151
49
  }, "strip", z.ZodTypeAny, {
152
- reply: {
153
- $: {
154
- result: string;
155
- };
156
- application: {
157
- $: {
158
- Name: string;
159
- NiceName: string;
160
- Vendor: string;
161
- Version: string;
162
- License: string;
163
- Status: string;
164
- ApplicationID?: string | undefined;
165
- ConfigurationPage?: string | undefined;
166
- VendorHomePage?: string | undefined;
167
- LicenseName?: string | undefined;
168
- };
169
- }[];
170
- };
50
+ Name: string;
51
+ NiceName: string;
52
+ Vendor: string;
53
+ Version: string;
54
+ License: string;
55
+ Status: string;
56
+ appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | null;
57
+ ApplicationID?: string | undefined;
58
+ ConfigurationPage?: string | undefined;
59
+ VendorHomePage?: string | undefined;
60
+ LicenseName?: string | undefined;
171
61
  }, {
172
- reply: {
173
- $: {
174
- result: string;
175
- };
176
- application: {
177
- $: {
178
- Name: string;
179
- NiceName: string;
180
- Vendor: string;
181
- Version: string;
182
- License: string;
183
- Status: string;
184
- ApplicationID?: string | undefined;
185
- ConfigurationPage?: string | undefined;
186
- VendorHomePage?: string | undefined;
187
- LicenseName?: string | undefined;
188
- };
189
- }[];
190
- };
191
- }>;
62
+ Name: string;
63
+ NiceName: string;
64
+ Vendor: string;
65
+ Version: string;
66
+ License: string;
67
+ Status: string;
68
+ appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | null;
69
+ ApplicationID?: string | undefined;
70
+ ConfigurationPage?: string | undefined;
71
+ VendorHomePage?: string | undefined;
72
+ LicenseName?: string | undefined;
73
+ }>, "many">;
74
+ export declare const APP_IDS: readonly ["CamStreamer", "CamSwitcher", "CamOverlay", "CamScripter", "PlaneTracker", "Ndihxplugin", "SportTracker"];
75
+ export type TApplicationId = (typeof APP_IDS)[number];
192
76
  export type TApplicationList = z.infer<typeof applicationListSchema>;
77
+ export type TApplication = z.infer<typeof applicationListSchema>[number];
193
78
  export declare const guardTourSchema: z.ZodObject<{
194
79
  id: z.ZodString;
195
80
  camNbr: z.ZodUnknown;
@@ -264,12 +149,21 @@ declare const audioSampleRatesOutSchema: z.ZodEffects<z.ZodObject<{
264
149
  }>;
265
150
  export type TAudioSampleRates = z.infer<typeof audioSampleRatesOutSchema>;
266
151
  export declare const sdCardWatchedStatuses: readonly ["OK", "connected", "disconnected"];
267
- export type TSDCardInfo = {
268
- status: (typeof sdCardWatchedStatuses)[number];
152
+ export declare const sdCardInfoSchema: z.ZodObject<{
153
+ status: z.ZodEnum<["OK", "connected", "disconnected"]>;
154
+ totalSize: z.ZodNumber;
155
+ freeSize: z.ZodNumber;
156
+ }, "strip", z.ZodTypeAny, {
157
+ status: "OK" | "connected" | "disconnected";
269
158
  totalSize: number;
270
159
  freeSize: number;
271
- };
272
- export declare const PtzOverviewSchema: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodObject<{
160
+ }, {
161
+ status: "OK" | "connected" | "disconnected";
162
+ totalSize: number;
163
+ freeSize: number;
164
+ }>;
165
+ export type TSDCardInfo = z.infer<typeof sdCardInfoSchema>;
166
+ export declare const ptzOverviewSchema: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodObject<{
273
167
  id: z.ZodNumber;
274
168
  name: z.ZodString;
275
169
  }, "strip", z.ZodTypeAny, {
@@ -279,7 +173,7 @@ export declare const PtzOverviewSchema: z.ZodRecord<z.ZodNumber, z.ZodArray<z.Zo
279
173
  name: string;
280
174
  id: number;
281
175
  }>, "many">>;
282
- export type TPtzOverview = z.infer<typeof PtzOverviewSchema>;
176
+ export type TPtzOverview = z.infer<typeof ptzOverviewSchema>;
283
177
  export declare const cameraPTZItemDataSchema: z.ZodObject<{
284
178
  pan: z.ZodOptional<z.ZodNumber>;
285
179
  tilt: z.ZodOptional<z.ZodNumber>;
@@ -1649,19 +1543,19 @@ export declare const dateTimeinfoSchema: z.ZodObject<{
1649
1543
  dstEnabled: z.ZodBoolean;
1650
1544
  localDateTime: z.ZodString;
1651
1545
  posixTimeZone: z.ZodString;
1652
- timeZone: z.ZodString;
1546
+ timeZone: z.ZodOptional<z.ZodString>;
1653
1547
  }, "strip", z.ZodTypeAny, {
1654
1548
  dateTime: string;
1655
1549
  dstEnabled: boolean;
1656
1550
  localDateTime: string;
1657
1551
  posixTimeZone: string;
1658
- timeZone: string;
1552
+ timeZone?: string | undefined;
1659
1553
  }, {
1660
1554
  dateTime: string;
1661
1555
  dstEnabled: boolean;
1662
1556
  localDateTime: string;
1663
1557
  posixTimeZone: string;
1664
- timeZone: string;
1558
+ timeZone?: string | undefined;
1665
1559
  }>;
1666
1560
  }, "strip", z.ZodTypeAny, {
1667
1561
  data: {
@@ -1669,7 +1563,7 @@ export declare const dateTimeinfoSchema: z.ZodObject<{
1669
1563
  dstEnabled: boolean;
1670
1564
  localDateTime: string;
1671
1565
  posixTimeZone: string;
1672
- timeZone: string;
1566
+ timeZone?: string | undefined;
1673
1567
  };
1674
1568
  }, {
1675
1569
  data: {
@@ -1677,9 +1571,48 @@ export declare const dateTimeinfoSchema: z.ZodObject<{
1677
1571
  dstEnabled: boolean;
1678
1572
  localDateTime: string;
1679
1573
  posixTimeZone: string;
1680
- timeZone: string;
1574
+ timeZone?: string | undefined;
1681
1575
  };
1682
1576
  }>;
1577
+ export declare const timeZoneSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
1578
+ status: z.ZodLiteral<"success">;
1579
+ data: z.ZodObject<{
1580
+ activeTimeZone: z.ZodString;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ activeTimeZone: string;
1583
+ }, {
1584
+ activeTimeZone: string;
1585
+ }>;
1586
+ }, "strip", z.ZodTypeAny, {
1587
+ status: "success";
1588
+ data: {
1589
+ activeTimeZone: string;
1590
+ };
1591
+ }, {
1592
+ status: "success";
1593
+ data: {
1594
+ activeTimeZone: string;
1595
+ };
1596
+ }>, z.ZodObject<{
1597
+ status: z.ZodLiteral<"error">;
1598
+ error: z.ZodObject<{
1599
+ message: z.ZodString;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ message: string;
1602
+ }, {
1603
+ message: string;
1604
+ }>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ status: "error";
1607
+ error: {
1608
+ message: string;
1609
+ };
1610
+ }, {
1611
+ status: "error";
1612
+ error: {
1613
+ message: string;
1614
+ };
1615
+ }>]>;
1683
1616
  export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1684
1617
  data: z.ZodObject<{
1685
1618
  encoders: z.ZodObject<{
@@ -1772,4 +1705,161 @@ export declare const audioSampleRatesResponseSchema: z.ZodObject<{
1772
1705
  };
1773
1706
  };
1774
1707
  }>;
1708
+ export declare const portStatusSchema: z.ZodObject<{
1709
+ port: z.ZodString;
1710
+ state: z.ZodEnum<["open", "closed"]>;
1711
+ configurable: z.ZodBoolean;
1712
+ readonly: z.ZodOptional<z.ZodBoolean>;
1713
+ usage: z.ZodString;
1714
+ direction: z.ZodEnum<["input", "output"]>;
1715
+ name: z.ZodString;
1716
+ normalState: z.ZodEnum<["open", "closed"]>;
1717
+ }, "strip", z.ZodTypeAny, {
1718
+ name: string;
1719
+ port: string;
1720
+ state: "open" | "closed";
1721
+ configurable: boolean;
1722
+ usage: string;
1723
+ direction: "input" | "output";
1724
+ normalState: "open" | "closed";
1725
+ readonly?: boolean | undefined;
1726
+ }, {
1727
+ name: string;
1728
+ port: string;
1729
+ state: "open" | "closed";
1730
+ configurable: boolean;
1731
+ usage: string;
1732
+ direction: "input" | "output";
1733
+ normalState: "open" | "closed";
1734
+ readonly?: boolean | undefined;
1735
+ }>;
1736
+ export type TPortStatusSchema = z.infer<typeof portStatusSchema>;
1737
+ export declare const getPortsResponseSchema: z.ZodObject<{
1738
+ apiVersion: z.ZodString;
1739
+ context: z.ZodString;
1740
+ method: z.ZodLiteral<"getPorts">;
1741
+ data: z.ZodObject<{
1742
+ numberOfPorts: z.ZodNumber;
1743
+ items: z.ZodArray<z.ZodObject<{
1744
+ port: z.ZodString;
1745
+ state: z.ZodEnum<["open", "closed"]>;
1746
+ configurable: z.ZodBoolean;
1747
+ readonly: z.ZodOptional<z.ZodBoolean>;
1748
+ usage: z.ZodString;
1749
+ direction: z.ZodEnum<["input", "output"]>;
1750
+ name: z.ZodString;
1751
+ normalState: z.ZodEnum<["open", "closed"]>;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ name: string;
1754
+ port: string;
1755
+ state: "open" | "closed";
1756
+ configurable: boolean;
1757
+ usage: string;
1758
+ direction: "input" | "output";
1759
+ normalState: "open" | "closed";
1760
+ readonly?: boolean | undefined;
1761
+ }, {
1762
+ name: string;
1763
+ port: string;
1764
+ state: "open" | "closed";
1765
+ configurable: boolean;
1766
+ usage: string;
1767
+ direction: "input" | "output";
1768
+ normalState: "open" | "closed";
1769
+ readonly?: boolean | undefined;
1770
+ }>, "many">;
1771
+ }, "strip", z.ZodTypeAny, {
1772
+ numberOfPorts: number;
1773
+ items: {
1774
+ name: string;
1775
+ port: string;
1776
+ state: "open" | "closed";
1777
+ configurable: boolean;
1778
+ usage: string;
1779
+ direction: "input" | "output";
1780
+ normalState: "open" | "closed";
1781
+ readonly?: boolean | undefined;
1782
+ }[];
1783
+ }, {
1784
+ numberOfPorts: number;
1785
+ items: {
1786
+ name: string;
1787
+ port: string;
1788
+ state: "open" | "closed";
1789
+ configurable: boolean;
1790
+ usage: string;
1791
+ direction: "input" | "output";
1792
+ normalState: "open" | "closed";
1793
+ readonly?: boolean | undefined;
1794
+ }[];
1795
+ }>;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ data: {
1798
+ numberOfPorts: number;
1799
+ items: {
1800
+ name: string;
1801
+ port: string;
1802
+ state: "open" | "closed";
1803
+ configurable: boolean;
1804
+ usage: string;
1805
+ direction: "input" | "output";
1806
+ normalState: "open" | "closed";
1807
+ readonly?: boolean | undefined;
1808
+ }[];
1809
+ };
1810
+ apiVersion: string;
1811
+ context: string;
1812
+ method: "getPorts";
1813
+ }, {
1814
+ data: {
1815
+ numberOfPorts: number;
1816
+ items: {
1817
+ name: string;
1818
+ port: string;
1819
+ state: "open" | "closed";
1820
+ configurable: boolean;
1821
+ usage: string;
1822
+ direction: "input" | "output";
1823
+ normalState: "open" | "closed";
1824
+ readonly?: boolean | undefined;
1825
+ }[];
1826
+ };
1827
+ apiVersion: string;
1828
+ context: string;
1829
+ method: "getPorts";
1830
+ }>;
1831
+ export declare const portSetSchema: z.ZodObject<{
1832
+ port: z.ZodString;
1833
+ state: z.ZodEnum<["open", "closed"]>;
1834
+ usage: z.ZodOptional<z.ZodString>;
1835
+ direction: z.ZodOptional<z.ZodEnum<["input", "output"]>>;
1836
+ name: z.ZodOptional<z.ZodString>;
1837
+ normalState: z.ZodOptional<z.ZodEnum<["open", "closed"]>>;
1838
+ }, "strip", z.ZodTypeAny, {
1839
+ port: string;
1840
+ state: "open" | "closed";
1841
+ name?: string | undefined;
1842
+ usage?: string | undefined;
1843
+ direction?: "input" | "output" | undefined;
1844
+ normalState?: "open" | "closed" | undefined;
1845
+ }, {
1846
+ port: string;
1847
+ state: "open" | "closed";
1848
+ name?: string | undefined;
1849
+ usage?: string | undefined;
1850
+ direction?: "input" | "output" | undefined;
1851
+ normalState?: "open" | "closed" | undefined;
1852
+ }>;
1853
+ export type TPortSetSchema = z.infer<typeof portSetSchema>;
1854
+ export declare const portSequenceStateSchema: z.ZodObject<{
1855
+ state: z.ZodEnum<["open", "closed"]>;
1856
+ time: z.ZodNumber;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ time: number;
1859
+ state: "open" | "closed";
1860
+ }, {
1861
+ time: number;
1862
+ state: "open" | "closed";
1863
+ }>;
1864
+ export type TPortSequenceStateSchema = z.infer<typeof portSequenceStateSchema>;
1775
1865
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.audioSampleRatesResponseSchema = exports.dateTimeinfoSchema = exports.maxFpsResponseSchema = exports.audioDeviceRequestSchema = exports.audioDeviceSchema = exports.audioDeviceInputOutputSchema = exports.audioDeviceConnectionTypeSchema = exports.audioDeviceSignalingTypeSchema = exports.audioDeviceSignalingChannelTypeSchema = exports.cameraPTZItemSchema = exports.cameraPTZItemDataSchema = exports.PtzOverviewSchema = exports.sdCardWatchedStatuses = exports.guardTourSchema = exports.applicationListSchema = exports.APP_IDS = exports.applicationSchema = void 0;
3
+ exports.portSequenceStateSchema = exports.portSetSchema = exports.getPortsResponseSchema = exports.portStatusSchema = exports.audioSampleRatesResponseSchema = exports.timeZoneSchema = exports.dateTimeinfoSchema = exports.maxFpsResponseSchema = exports.audioDeviceRequestSchema = exports.audioDeviceSchema = exports.audioDeviceInputOutputSchema = exports.audioDeviceConnectionTypeSchema = exports.audioDeviceSignalingTypeSchema = exports.audioDeviceSignalingChannelTypeSchema = exports.cameraPTZItemSchema = exports.cameraPTZItemDataSchema = exports.ptzOverviewSchema = exports.sdCardInfoSchema = exports.sdCardWatchedStatuses = exports.guardTourSchema = exports.APP_IDS = exports.applicationListSchema = exports.applicationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const transformers_1 = require("../internal/transformers");
6
6
  exports.applicationSchema = zod_1.z.object({
@@ -15,6 +15,19 @@ exports.applicationSchema = zod_1.z.object({
15
15
  VendorHomePage: zod_1.z.string().optional(),
16
16
  LicenseName: zod_1.z.string().optional(),
17
17
  });
18
+ exports.applicationListSchema = zod_1.z.array(exports.applicationSchema.extend({
19
+ appId: zod_1.z
20
+ .union([
21
+ zod_1.z.literal('CamStreamer'),
22
+ zod_1.z.literal('CamSwitcher'),
23
+ zod_1.z.literal('CamOverlay'),
24
+ zod_1.z.literal('CamScripter'),
25
+ zod_1.z.literal('PlaneTracker'),
26
+ zod_1.z.literal('Ndihxplugin'),
27
+ zod_1.z.literal('SportTracker'),
28
+ ])
29
+ .nullable(),
30
+ }));
18
31
  exports.APP_IDS = [
19
32
  'CamStreamer',
20
33
  'CamSwitcher',
@@ -24,14 +37,6 @@ exports.APP_IDS = [
24
37
  'Ndihxplugin',
25
38
  'SportTracker',
26
39
  ];
27
- exports.applicationListSchema = zod_1.z.object({
28
- reply: zod_1.z.object({
29
- $: zod_1.z.object({ result: zod_1.z.string() }),
30
- application: zod_1.z.array(zod_1.z.object({
31
- $: exports.applicationSchema,
32
- })),
33
- }),
34
- });
35
40
  exports.guardTourSchema = zod_1.z.object({
36
41
  id: zod_1.z.string(),
37
42
  camNbr: zod_1.z.unknown(),
@@ -53,7 +58,12 @@ const audioSampleRatesSchema = zod_1.z.object({
53
58
  });
54
59
  const audioSampleRatesOutSchema = audioSampleRatesSchema.transform(transformers_1.toCamelCaseDeep);
55
60
  exports.sdCardWatchedStatuses = ['OK', 'connected', 'disconnected'];
56
- exports.PtzOverviewSchema = zod_1.z.record(zod_1.z.number(), zod_1.z.array(zod_1.z.object({ id: zod_1.z.number(), name: zod_1.z.string() })));
61
+ exports.sdCardInfoSchema = zod_1.z.object({
62
+ status: zod_1.z.enum(exports.sdCardWatchedStatuses),
63
+ totalSize: zod_1.z.number(),
64
+ freeSize: zod_1.z.number(),
65
+ });
66
+ exports.ptzOverviewSchema = zod_1.z.record(zod_1.z.number(), zod_1.z.array(zod_1.z.object({ id: zod_1.z.number(), name: zod_1.z.string() })));
57
67
  exports.cameraPTZItemDataSchema = zod_1.z.object({
58
68
  pan: zod_1.z.number().optional(),
59
69
  tilt: zod_1.z.number().optional(),
@@ -118,9 +128,23 @@ exports.dateTimeinfoSchema = zod_1.z.object({
118
128
  dstEnabled: zod_1.z.boolean(),
119
129
  localDateTime: zod_1.z.string(),
120
130
  posixTimeZone: zod_1.z.string(),
121
- timeZone: zod_1.z.string(),
131
+ timeZone: zod_1.z.string().optional(),
122
132
  }),
123
133
  });
134
+ exports.timeZoneSchema = zod_1.z.discriminatedUnion('status', [
135
+ zod_1.z.object({
136
+ status: zod_1.z.literal('success'),
137
+ data: zod_1.z.object({
138
+ activeTimeZone: zod_1.z.string(),
139
+ }),
140
+ }),
141
+ zod_1.z.object({
142
+ status: zod_1.z.literal('error'),
143
+ error: zod_1.z.object({
144
+ message: zod_1.z.string(),
145
+ }),
146
+ }),
147
+ ]);
124
148
  exports.audioSampleRatesResponseSchema = zod_1.z.object({
125
149
  data: zod_1.z.object({
126
150
  encoders: zod_1.z
@@ -131,3 +155,34 @@ exports.audioSampleRatesResponseSchema = zod_1.z.object({
131
155
  .partial(),
132
156
  }),
133
157
  });
158
+ exports.portStatusSchema = zod_1.z.object({
159
+ port: zod_1.z.string(),
160
+ state: zod_1.z.enum(['open', 'closed']),
161
+ configurable: zod_1.z.boolean(),
162
+ readonly: zod_1.z.boolean().optional(),
163
+ usage: zod_1.z.string(),
164
+ direction: zod_1.z.enum(['input', 'output']),
165
+ name: zod_1.z.string(),
166
+ normalState: zod_1.z.enum(['open', 'closed']),
167
+ });
168
+ exports.getPortsResponseSchema = zod_1.z.object({
169
+ apiVersion: zod_1.z.string(),
170
+ context: zod_1.z.string(),
171
+ method: zod_1.z.literal('getPorts'),
172
+ data: zod_1.z.object({
173
+ numberOfPorts: zod_1.z.number(),
174
+ items: zod_1.z.array(exports.portStatusSchema),
175
+ }),
176
+ });
177
+ exports.portSetSchema = zod_1.z.object({
178
+ port: zod_1.z.string(),
179
+ state: zod_1.z.enum(['open', 'closed']),
180
+ usage: zod_1.z.string().optional(),
181
+ direction: zod_1.z.enum(['input', 'output']).optional(),
182
+ name: zod_1.z.string().optional(),
183
+ normalState: zod_1.z.enum(['open', 'closed']).optional(),
184
+ });
185
+ exports.portSequenceStateSchema = zod_1.z.object({
186
+ state: zod_1.z.enum(['open', 'closed']),
187
+ time: zod_1.z.number().min(0).max(65535),
188
+ });
@@ -0,0 +1,15 @@
1
+ export type TVapixEventMessage = {
2
+ apiVersion: string;
3
+ method: string;
4
+ params: {
5
+ notification: {
6
+ timestamp: number;
7
+ topic: string;
8
+ message: {
9
+ source: Record<string, string>;
10
+ data: Record<string, string>;
11
+ key: Record<string, string>;
12
+ };
13
+ };
14
+ };
15
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,33 +5,45 @@ export declare const audioChannelCountSchema: z.ZodUnion<[z.ZodLiteral<1>, z.Zod
5
5
  export type TAudioChannelCount = z.infer<typeof audioChannelCountSchema>;
6
6
  export declare const h264ProfileSchema: z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>;
7
7
  export type TH264Profile = z.infer<typeof h264ProfileSchema>;
8
+ export declare const flashStorageTypeSchema: z.ZodLiteral<"FLASH">;
9
+ export declare const sdCardStorageTypeSchema: z.ZodLiteral<"SD_DISK">;
8
10
  export declare const storageTypeSchema: z.ZodUnion<[z.ZodLiteral<"SD_DISK">, z.ZodLiteral<"FLASH">]>;
9
11
  export type TStorageType = z.infer<typeof storageTypeSchema>;
10
12
  export declare const networkCameraListSchema: z.ZodArray<z.ZodObject<{
11
13
  name: z.ZodString;
12
14
  ip: z.ZodString;
13
15
  }, "strip", z.ZodTypeAny, {
14
- ip: string;
15
16
  name: string;
16
- }, {
17
17
  ip: string;
18
+ }, {
18
19
  name: string;
20
+ ip: string;
19
21
  }>, "many">;
22
+ export type TNetworkCameraList = z.infer<typeof networkCameraListSchema>;
20
23
  export type TNetworkCamera = z.infer<typeof networkCameraListSchema>[number];
21
24
  export declare const keyboardShortcutSchema: z.ZodNullable<z.ZodString>;
22
25
  export declare const keyboardShortcutsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
23
26
  export type TKeyboardShortcut = z.infer<typeof keyboardShortcutSchema>;
24
27
  export type TKeyboardShortcuts = z.infer<typeof keyboardShortcutsSchema>;
25
- export type TProxyParam = {
28
+ export type TProxyTarget = {
26
29
  ip: string;
27
30
  mdnsName: string;
28
31
  port: number;
29
32
  user: string;
30
33
  pass: string;
31
- } | null;
34
+ };
35
+ export type TProxyParams = {
36
+ path: string;
37
+ target: TProxyTarget;
38
+ };
39
+ export type THttpRequestOptions = {
40
+ timeout?: number;
41
+ proxyParams?: TProxyParams;
42
+ };
32
43
  export type TCameraImageConfig = {
33
44
  camera?: string;
34
45
  resolution?: string;
35
46
  compression?: number;
36
- overlays?: 'off';
47
+ overlays?: string;
48
+ [key: string]: string | number | undefined;
37
49
  };