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.
- package/README.md +143 -38
- package/cjs/CamOverlayAPI.d.ts +863 -27
- package/cjs/CamOverlayAPI.js +135 -92
- package/cjs/CamScripterAPI.d.ts +44 -17
- package/cjs/CamScripterAPI.js +52 -42
- package/cjs/CamStreamerAPI.d.ts +70 -14
- package/cjs/CamStreamerAPI.js +100 -44
- package/cjs/CamSwitcherAPI.d.ts +158 -43
- package/cjs/CamSwitcherAPI.js +138 -122
- package/cjs/PlaneTrackerAPI.d.ts +239 -0
- package/cjs/PlaneTrackerAPI.js +247 -0
- package/cjs/VapixAPI.d.ts +94 -42
- package/cjs/VapixAPI.js +314 -232
- package/cjs/{CreatePackage.js → bin/CreatePackage.js} +44 -18
- package/cjs/errors/errors.d.ts +65 -4
- package/cjs/errors/errors.js +138 -7
- package/cjs/index.d.ts +20 -4
- package/cjs/index.js +28 -5
- package/cjs/internal/ProxyClient.d.ts +8 -9
- package/cjs/internal/ProxyClient.js +28 -32
- package/cjs/internal/WsEvents.d.ts +37 -0
- package/cjs/{CamSwitcherEvents.js → internal/WsEvents.js} +28 -22
- package/cjs/internal/types.d.ts +47 -0
- package/cjs/internal/types.js +2 -0
- package/cjs/internal/utils.d.ts +3 -1
- package/cjs/internal/utils.js +15 -3
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/node/CamOverlayDrawingAPI.d.ts +41 -0
- package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +28 -20
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.d.ts +8 -37
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.d.ts +5 -21
- package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +5 -17
- package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
- package/cjs/node/CamOverlayPainter/ResourceManager.js +72 -0
- package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
- package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +13 -13
- package/cjs/node/DefaultClient.d.ts +6 -5
- package/cjs/node/DefaultClient.js +10 -12
- package/cjs/{internal → node}/Digest.js +24 -1
- package/cjs/node/Digest.test.js +13 -0
- package/cjs/node/HttpRequestSender.d.ts +1 -0
- package/cjs/node/HttpRequestSender.js +14 -4
- package/cjs/node/HttpServer.d.ts +1 -1
- package/cjs/node/HttpServer.js +29 -6
- package/cjs/node/TimeZoneDaemon.d.ts +6 -0
- package/cjs/node/TimeZoneDaemon.js +29 -0
- package/cjs/node/VapixEvents.d.ts +16 -0
- package/cjs/{VapixEvents.js → node/VapixEvents.js} +10 -10
- package/cjs/node/WsClient.d.ts +9 -18
- package/cjs/node/WsClient.js +27 -20
- package/cjs/node/events/AxisCameraStationEvents.d.ts +12 -0
- package/cjs/node/events/AxisCameraStationEvents.js +53 -0
- package/cjs/node/events/GenetecAgent.d.ts +16 -0
- package/cjs/node/events/GenetecAgent.js +124 -0
- package/cjs/node/index.d.ts +18 -2
- package/cjs/node/index.js +39 -5
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +92 -0
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
- package/cjs/types/CamOverlayAPI/accuweatherSchema.js +47 -0
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +72 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.js +9 -0
- package/cjs/types/CamOverlayAPI/index.d.ts +11 -0
- package/cjs/types/CamOverlayAPI/index.js +27 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.js +26 -0
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +125 -0
- package/cjs/types/CamOverlayAPI/pipSchema.js +39 -0
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +26 -0
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
- package/cjs/types/CamOverlayAPI/ptzSchema.js +12 -0
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +132 -0
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
- package/cjs/types/CamOverlayAPI/screenSharingSchema.js +8 -0
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +91 -0
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +8 -0
- package/cjs/types/CamOverlayDrawingAPI.d.ts +48 -0
- package/cjs/types/CamOverlayDrawingAPI.js +2 -0
- package/cjs/types/CamOverlayPainter.d.ts +76 -0
- package/cjs/types/CamOverlayPainter.js +14 -0
- package/cjs/types/CamScripterAPI.d.ts +86 -23
- package/cjs/types/CamScripterAPI.js +24 -8
- package/cjs/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
- package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +239 -0
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +48 -0
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +18 -0
- package/cjs/types/CamStreamerAPI/facebookSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/hlsSchema.d.ts +18 -0
- package/cjs/types/CamStreamerAPI/hlsSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/index.d.ts +9 -0
- package/cjs/types/CamStreamerAPI/index.js +25 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +69 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +28 -0
- package/{esm/types/CamStreamerAPI.d.ts → cjs/types/CamStreamerAPI/oldStreamSchema.d.ts} +41 -43
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +50 -0
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +18 -0
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +18 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +17 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +18 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +18 -0
- package/cjs/types/CamStreamerAPI/windySchema.js +11 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +18 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +11 -0
- package/cjs/types/CamSwitcherAPI.d.ts +145 -66
- package/cjs/types/CamSwitcherAPI.js +38 -1
- package/cjs/{events → types}/GenetecAgent.d.ts +47 -47
- package/cjs/types/GenetecAgent.js +31 -0
- package/cjs/types/PlaneTrackerAPI.d.ts +980 -0
- package/cjs/types/PlaneTrackerAPI.js +333 -0
- package/cjs/types/VapixAPI.d.ts +254 -164
- package/cjs/types/VapixAPI.js +66 -11
- package/cjs/types/VapixEvents.d.ts +15 -0
- package/cjs/types/VapixEvents.js +2 -0
- package/cjs/types/common.d.ts +18 -5
- package/cjs/types/common.js +5 -2
- package/cjs/types/ws/CamOverlayEvents.d.ts +88 -0
- package/cjs/types/ws/CamOverlayEvents.js +19 -0
- package/cjs/types/ws/CamStreamerEvents.d.ts +249 -0
- package/cjs/types/ws/CamStreamerEvents.js +32 -0
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +1637 -0
- package/cjs/types/ws/PlaneTrackerEvents.js +196 -0
- package/cjs/web/DefaultClient.d.ts +7 -5
- package/cjs/web/DefaultClient.js +26 -10
- package/cjs/web/WsClient.d.ts +9 -5
- package/cjs/web/WsClient.js +16 -18
- package/cjs/ws/CamOverlayEvents.d.ts +8 -0
- package/cjs/ws/CamOverlayEvents.js +24 -0
- package/cjs/ws/CamStreamerEvents.d.ts +8 -0
- package/cjs/ws/CamStreamerEvents.js +24 -0
- package/cjs/ws/CamSwitcherEvents.d.ts +8 -0
- package/cjs/ws/CamSwitcherEvents.js +24 -0
- package/cjs/ws/PlaneTrackerEvents.d.ts +9 -0
- package/cjs/ws/PlaneTrackerEvents.js +30 -0
- package/esm/CamOverlayAPI.js +135 -92
- package/esm/CamScripterAPI.js +50 -40
- package/esm/CamStreamerAPI.js +98 -43
- package/esm/CamSwitcherAPI.js +136 -120
- package/esm/PlaneTrackerAPI.js +243 -0
- package/esm/VapixAPI.js +314 -232
- package/esm/{CreatePackage.js → bin/CreatePackage.js} +16 -16
- package/esm/errors/errors.js +120 -6
- package/esm/index.js +20 -4
- package/esm/internal/ProxyClient.js +28 -32
- package/esm/{CamSwitcherEvents.js → internal/WsEvents.js} +26 -20
- package/esm/internal/types.js +1 -0
- package/esm/internal/utils.js +11 -1
- package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +26 -18
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +33 -0
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +2 -13
- package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +7 -5
- package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +11 -11
- package/esm/node/DefaultClient.js +10 -12
- package/esm/node/Digest.test.js +11 -0
- package/esm/node/HttpRequestSender.js +14 -4
- package/esm/node/HttpServer.js +1 -1
- package/esm/node/TimeZoneDaemon.js +25 -0
- package/esm/{VapixEvents.js → node/VapixEvents.js} +10 -10
- package/esm/node/WsClient.js +22 -15
- package/esm/{events → node/events}/AxisCameraStationEvents.js +18 -13
- package/esm/node/events/GenetecAgent.js +120 -0
- package/esm/node/index.js +18 -2
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +76 -0
- package/esm/types/CamOverlayAPI/accuweatherSchema.js +44 -0
- package/esm/types/CamOverlayAPI/customGraphicsSchema.js +69 -0
- package/esm/types/CamOverlayAPI/imagesSchema.js +6 -0
- package/esm/types/CamOverlayAPI/index.js +11 -0
- package/esm/types/CamOverlayAPI/infotickerSchema.js +23 -0
- package/esm/types/CamOverlayAPI/pipSchema.js +36 -0
- package/esm/types/CamOverlayAPI/ptzCompassSchema.js +23 -0
- package/esm/types/CamOverlayAPI/ptzSchema.js +9 -0
- package/esm/types/CamOverlayAPI/scoreBoardSchema.js +129 -0
- package/esm/types/CamOverlayAPI/screenSharingSchema.js +5 -0
- package/esm/types/CamOverlayAPI/serviceCommonTypes.js +88 -0
- package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +5 -0
- package/esm/types/CamOverlayDrawingAPI.js +1 -0
- package/esm/types/CamOverlayPainter.js +11 -0
- package/esm/types/CamScripterAPI.js +23 -7
- package/esm/types/CamScripterAPICameraEventsGenerator.js +1 -0
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +38 -0
- package/esm/types/CamStreamerAPI/facebookSchema.js +5 -0
- package/esm/types/CamStreamerAPI/hlsSchema.js +5 -0
- package/esm/types/CamStreamerAPI/index.js +9 -0
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +22 -0
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +47 -0
- package/esm/types/CamStreamerAPI/rtmpSchema.js +5 -0
- package/esm/types/CamStreamerAPI/sdCardSchema.js +5 -0
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +15 -0
- package/esm/types/CamStreamerAPI/windySchema.js +5 -0
- package/esm/types/CamStreamerAPI/youtubeSchema.js +5 -0
- package/esm/types/CamSwitcherAPI.js +38 -1
- package/esm/types/GenetecAgent.js +28 -0
- package/esm/types/PlaneTrackerAPI.js +330 -0
- package/esm/types/VapixAPI.js +65 -10
- package/esm/types/VapixEvents.js +1 -0
- package/esm/types/common.js +4 -1
- package/esm/types/ws/CamOverlayEvents.js +16 -0
- package/esm/types/ws/CamStreamerEvents.js +29 -0
- package/esm/types/ws/PlaneTrackerEvents.js +193 -0
- package/esm/web/DefaultClient.js +26 -10
- package/esm/web/WsClient.js +16 -18
- package/esm/ws/CamOverlayEvents.js +20 -0
- package/esm/ws/CamStreamerEvents.js +20 -0
- package/esm/ws/CamSwitcherEvents.js +20 -0
- package/esm/ws/PlaneTrackerEvents.js +26 -0
- package/package.json +44 -11
- package/types/CamOverlayAPI.d.ts +867 -0
- package/types/CamScripterAPI.d.ts +46 -0
- package/types/CamStreamerAPI.d.ts +72 -0
- package/types/CamSwitcherAPI.d.ts +167 -0
- package/types/PlaneTrackerAPI.d.ts +239 -0
- package/types/VapixAPI.d.ts +118 -0
- package/types/bin/CreatePackage.d.ts +1 -0
- package/types/errors/errors.d.ts +98 -0
- package/types/index.d.ts +27 -0
- package/types/internal/ProxyClient.d.ts +10 -0
- package/types/internal/WsEvents.d.ts +37 -0
- package/types/internal/types.d.ts +47 -0
- package/{esm → types}/internal/utils.d.ts +3 -1
- package/{esm → types}/internal/versionCompare.d.ts +2 -2
- package/types/node/CamOverlayDrawingAPI.d.ts +41 -0
- package/{esm → types/node}/CamOverlayPainter/Frame.d.ts +8 -37
- package/{esm → types/node}/CamOverlayPainter/Painter.d.ts +5 -21
- package/types/node/CamOverlayPainter/ResourceManager.d.ts +15 -0
- package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
- package/types/node/DefaultClient.d.ts +16 -0
- package/types/node/Digest.test.d.ts +1 -0
- package/{esm → types}/node/HttpRequestSender.d.ts +1 -0
- package/{esm → types}/node/HttpServer.d.ts +1 -1
- package/types/node/TimeZoneDaemon.d.ts +6 -0
- package/types/node/VapixEvents.d.ts +16 -0
- package/types/node/WsClient.d.ts +30 -0
- package/types/node/events/AxisCameraStationEvents.d.ts +12 -0
- package/types/node/events/GenetecAgent.d.ts +16 -0
- package/types/node/index.d.ts +18 -0
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +4330 -0
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +84 -0
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +700 -0
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +95 -0
- package/types/types/CamOverlayAPI/index.d.ts +11 -0
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +96 -0
- package/types/types/CamOverlayAPI/pipSchema.d.ts +125 -0
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +96 -0
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +118 -0
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +58 -0
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +145 -0
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +58 -0
- package/types/types/CamOverlayDrawingAPI.d.ts +48 -0
- package/types/types/CamOverlayPainter.d.ts +76 -0
- package/types/types/CamScripterAPI.d.ts +130 -0
- package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +239 -0
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +18 -0
- package/types/types/CamStreamerAPI/hlsSchema.d.ts +18 -0
- package/types/types/CamStreamerAPI/index.d.ts +9 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +69 -0
- package/{cjs/types/CamStreamerAPI.d.ts → types/types/CamStreamerAPI/oldStreamSchema.d.ts} +41 -43
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +18 -0
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +18 -0
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +17 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +18 -0
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +18 -0
- package/{esm → types}/types/CamSwitcherAPI.d.ts +145 -66
- package/{esm/events → types/types}/GenetecAgent.d.ts +47 -47
- package/types/types/PlaneTrackerAPI.d.ts +980 -0
- package/{esm → types}/types/VapixAPI.d.ts +254 -164
- package/types/types/VapixEvents.d.ts +15 -0
- package/{esm → types}/types/common.d.ts +18 -5
- package/types/types/ws/CamOverlayEvents.d.ts +88 -0
- package/types/types/ws/CamStreamerEvents.d.ts +249 -0
- package/types/types/ws/PlaneTrackerEvents.d.ts +1637 -0
- package/types/web/DefaultClient.d.ts +8 -0
- package/types/web/WsClient.d.ts +17 -0
- package/types/ws/CamOverlayEvents.d.ts +8 -0
- package/types/ws/CamStreamerEvents.d.ts +8 -0
- package/types/ws/CamSwitcherEvents.d.ts +8 -0
- package/types/ws/PlaneTrackerEvents.d.ts +9 -0
- package/cjs/CamOverlayDrawingAPI.d.ts +0 -86
- package/cjs/CamOverlayPainter/ResourceManager.d.ts +0 -14
- package/cjs/CamOverlayPainter/ResourceManager.js +0 -46
- package/cjs/CamScripterAPICameraEventsGenerator.d.ts +0 -74
- package/cjs/CamSwitcherEvents.d.ts +0 -18
- package/cjs/VapixEvents.d.ts +0 -43
- package/cjs/events/AxisCameraStationEvents.d.ts +0 -9
- package/cjs/events/AxisCameraStationEvents.js +0 -48
- package/cjs/events/GenetecAgent.js +0 -123
- package/cjs/internal/common.d.ts +0 -39
- package/cjs/internal/common.js +0 -27
- package/cjs/node/WsEventClient.d.ts +0 -13
- package/cjs/node/WsEventClient.js +0 -22
- package/cjs/types/CamOverlayAPI.d.ts +0 -188
- package/cjs/types/CamOverlayAPI.js +0 -47
- package/cjs/types/CamStreamerAPI.js +0 -28
- package/esm/CamOverlayAPI.d.ts +0 -31
- package/esm/CamOverlayDrawingAPI.d.ts +0 -86
- package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -14
- package/esm/CamScripterAPI.d.ts +0 -19
- package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
- package/esm/CamStreamerAPI.d.ts +0 -16
- package/esm/CamSwitcherAPI.d.ts +0 -52
- package/esm/CamSwitcherEvents.d.ts +0 -18
- package/esm/VapixAPI.d.ts +0 -66
- package/esm/VapixEvents.d.ts +0 -43
- package/esm/errors/errors.d.ts +0 -37
- package/esm/events/AxisCameraStationEvents.d.ts +0 -9
- package/esm/events/GenetecAgent.js +0 -119
- package/esm/index.d.ts +0 -11
- package/esm/internal/ProxyClient.d.ts +0 -11
- package/esm/internal/common.d.ts +0 -39
- package/esm/internal/common.js +0 -20
- package/esm/node/DefaultClient.d.ts +0 -15
- package/esm/node/WsClient.d.ts +0 -39
- package/esm/node/WsEventClient.d.ts +0 -13
- package/esm/node/WsEventClient.js +0 -18
- package/esm/types/CamOverlayAPI.d.ts +0 -188
- package/esm/types/CamOverlayAPI.js +0 -44
- package/esm/types/CamScripterAPI.d.ts +0 -67
- package/esm/types/CamStreamerAPI.js +0 -25
- package/esm/web/DefaultClient.d.ts +0 -6
- package/esm/web/WsClient.d.ts +0 -13
- package/esm/web/index.d.ts +0 -2
- /package/cjs/{CreatePackage.d.ts → bin/CreatePackage.d.ts} +0 -0
- /package/cjs/{internal → node}/Digest.d.ts +0 -0
- /package/{esm/CreatePackage.d.ts → cjs/node/Digest.test.d.ts} +0 -0
- /package/cjs/types/{CamSwitcherEvents.d.ts → ws/CamSwitcherEvents.d.ts} +0 -0
- /package/cjs/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
- /package/esm/{internal → node}/Digest.js +0 -0
- /package/esm/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
- /package/{esm → types}/internal/constants.d.ts +0 -0
- /package/{esm → types}/internal/transformers.d.ts +0 -0
- /package/{esm/internal → types/node}/Digest.d.ts +0 -0
- /package/{esm/types → types/types/ws}/CamSwitcherEvents.d.ts +0 -0
- /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
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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
|
|
268
|
-
status:
|
|
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
|
-
|
|
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
|
|
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
|
|
1552
|
+
timeZone?: string | undefined;
|
|
1659
1553
|
}, {
|
|
1660
1554
|
dateTime: string;
|
|
1661
1555
|
dstEnabled: boolean;
|
|
1662
1556
|
localDateTime: string;
|
|
1663
1557
|
posixTimeZone: string;
|
|
1664
|
-
timeZone
|
|
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
|
|
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
|
|
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 {};
|
|
@@ -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
|
+
};
|
|
@@ -1,37 +1,50 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const booleanSchema: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
2
3
|
export declare const audioChannelSchema: z.ZodUnion<[z.ZodLiteral<"mono">, z.ZodLiteral<"stereo">]>;
|
|
3
4
|
export type TAudioChannel = z.infer<typeof audioChannelSchema>;
|
|
4
5
|
export declare const audioChannelCountSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
5
6
|
export type TAudioChannelCount = z.infer<typeof audioChannelCountSchema>;
|
|
6
7
|
export declare const h264ProfileSchema: z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>;
|
|
7
8
|
export type TH264Profile = z.infer<typeof h264ProfileSchema>;
|
|
9
|
+
export declare const flashStorageTypeSchema: z.ZodLiteral<"FLASH">;
|
|
10
|
+
export declare const sdCardStorageTypeSchema: z.ZodLiteral<"SD_DISK">;
|
|
8
11
|
export declare const storageTypeSchema: z.ZodUnion<[z.ZodLiteral<"SD_DISK">, z.ZodLiteral<"FLASH">]>;
|
|
9
12
|
export type TStorageType = z.infer<typeof storageTypeSchema>;
|
|
10
13
|
export declare const networkCameraListSchema: z.ZodArray<z.ZodObject<{
|
|
11
14
|
name: z.ZodString;
|
|
12
15
|
ip: z.ZodString;
|
|
13
16
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
ip: string;
|
|
15
17
|
name: string;
|
|
16
|
-
}, {
|
|
17
18
|
ip: string;
|
|
19
|
+
}, {
|
|
18
20
|
name: string;
|
|
21
|
+
ip: string;
|
|
19
22
|
}>, "many">;
|
|
23
|
+
export type TNetworkCameraList = z.infer<typeof networkCameraListSchema>;
|
|
20
24
|
export type TNetworkCamera = z.infer<typeof networkCameraListSchema>[number];
|
|
21
25
|
export declare const keyboardShortcutSchema: z.ZodNullable<z.ZodString>;
|
|
22
26
|
export declare const keyboardShortcutsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
23
27
|
export type TKeyboardShortcut = z.infer<typeof keyboardShortcutSchema>;
|
|
24
28
|
export type TKeyboardShortcuts = z.infer<typeof keyboardShortcutsSchema>;
|
|
25
|
-
export type
|
|
29
|
+
export type TProxyTarget = {
|
|
26
30
|
ip: string;
|
|
27
31
|
mdnsName: string;
|
|
28
32
|
port: number;
|
|
29
33
|
user: string;
|
|
30
34
|
pass: string;
|
|
31
|
-
}
|
|
35
|
+
};
|
|
36
|
+
export type TProxyParams = {
|
|
37
|
+
path: string;
|
|
38
|
+
target: TProxyTarget;
|
|
39
|
+
};
|
|
40
|
+
export type THttpRequestOptions = {
|
|
41
|
+
timeout?: number;
|
|
42
|
+
proxyParams?: TProxyParams;
|
|
43
|
+
};
|
|
32
44
|
export type TCameraImageConfig = {
|
|
33
45
|
camera?: string;
|
|
34
46
|
resolution?: string;
|
|
35
47
|
compression?: number;
|
|
36
|
-
overlays?:
|
|
48
|
+
overlays?: string;
|
|
49
|
+
[key: string]: string | number | undefined;
|
|
37
50
|
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const coEventsSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"init">;
|
|
4
|
+
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"authorization">;
|
|
6
|
+
state: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
type: "authorization";
|
|
9
|
+
state: string;
|
|
10
|
+
}, {
|
|
11
|
+
type: "authorization";
|
|
12
|
+
state: string;
|
|
13
|
+
}>, z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"ServiceStart">;
|
|
15
|
+
serviceId: z.ZodNumber;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: "ServiceStart";
|
|
18
|
+
serviceId: number;
|
|
19
|
+
}, {
|
|
20
|
+
type: "ServiceStart";
|
|
21
|
+
serviceId: number;
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"ServiceStop">;
|
|
24
|
+
serviceId: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
type: "ServiceStop";
|
|
27
|
+
serviceId: number;
|
|
28
|
+
}, {
|
|
29
|
+
type: "ServiceStop";
|
|
30
|
+
serviceId: number;
|
|
31
|
+
}>]>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
type: "init";
|
|
34
|
+
data: {
|
|
35
|
+
type: "authorization";
|
|
36
|
+
state: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: "ServiceStart";
|
|
39
|
+
serviceId: number;
|
|
40
|
+
} | {
|
|
41
|
+
type: "ServiceStop";
|
|
42
|
+
serviceId: number;
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
type: "init";
|
|
46
|
+
data: {
|
|
47
|
+
type: "authorization";
|
|
48
|
+
state: string;
|
|
49
|
+
} | {
|
|
50
|
+
type: "ServiceStart";
|
|
51
|
+
serviceId: number;
|
|
52
|
+
} | {
|
|
53
|
+
type: "ServiceStop";
|
|
54
|
+
serviceId: number;
|
|
55
|
+
};
|
|
56
|
+
}>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"authorization">;
|
|
58
|
+
state: z.ZodString;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
type: "authorization";
|
|
61
|
+
state: string;
|
|
62
|
+
}, {
|
|
63
|
+
type: "authorization";
|
|
64
|
+
state: string;
|
|
65
|
+
}>, z.ZodObject<{
|
|
66
|
+
type: z.ZodLiteral<"ServiceStart">;
|
|
67
|
+
serviceId: z.ZodNumber;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
type: "ServiceStart";
|
|
70
|
+
serviceId: number;
|
|
71
|
+
}, {
|
|
72
|
+
type: "ServiceStart";
|
|
73
|
+
serviceId: number;
|
|
74
|
+
}>, z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<"ServiceStop">;
|
|
76
|
+
serviceId: z.ZodNumber;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
type: "ServiceStop";
|
|
79
|
+
serviceId: number;
|
|
80
|
+
}, {
|
|
81
|
+
type: "ServiceStop";
|
|
82
|
+
serviceId: number;
|
|
83
|
+
}>]>;
|
|
84
|
+
export type TCamOverlayEvent = z.infer<typeof coEventsSchema>;
|
|
85
|
+
export type TCamOverlayEventType = TCamOverlayEvent['type'];
|
|
86
|
+
export type TCamOverlayEventOfType<T extends TCamOverlayEventType> = Extract<TCamOverlayEvent, {
|
|
87
|
+
type: T;
|
|
88
|
+
}>;
|