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
|
@@ -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,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
|
|
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
|
|
72
|
-
export declare const
|
|
73
|
-
enabled: z.
|
|
74
|
-
active: z.
|
|
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.
|
|
74
|
+
avSyncMsec: z.ZodNumber;
|
|
77
75
|
internalVapixParameters: z.ZodString;
|
|
78
76
|
userVapixParameters: z.ZodString;
|
|
79
77
|
outputParameters: z.ZodString;
|
|
80
|
-
outputType: z.
|
|
78
|
+
outputType: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">, z.ZodLiteral<"none">]>;
|
|
81
79
|
mediaServerUrl: z.ZodString;
|
|
82
|
-
inputType: z.
|
|
80
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
83
81
|
inputUrl: z.ZodString;
|
|
84
|
-
forceStereo: z.
|
|
85
|
-
streamDelay: z.
|
|
86
|
-
statusLed: z.
|
|
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.
|
|
86
|
+
callApi: z.ZodNumber;
|
|
89
87
|
trigger: z.ZodString;
|
|
90
88
|
schedule: z.ZodString;
|
|
91
|
-
prepareAhead: z.
|
|
92
|
-
startTime: z.
|
|
93
|
-
stopTime: z.
|
|
89
|
+
prepareAhead: z.ZodNumber;
|
|
90
|
+
startTime: z.ZodNullable<z.ZodNumber>;
|
|
91
|
+
stopTime: z.ZodNullable<z.ZodNumber>;
|
|
94
92
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
enabled:
|
|
96
|
-
active:
|
|
93
|
+
enabled: 0 | 1;
|
|
94
|
+
active: 0 | 1;
|
|
97
95
|
audioSource: string;
|
|
98
|
-
avSyncMsec:
|
|
96
|
+
avSyncMsec: number;
|
|
99
97
|
internalVapixParameters: string;
|
|
100
98
|
userVapixParameters: string;
|
|
101
99
|
outputParameters: string;
|
|
102
|
-
outputType:
|
|
100
|
+
outputType: "video" | "none" | "images";
|
|
103
101
|
mediaServerUrl: string;
|
|
104
|
-
inputType:
|
|
102
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
105
103
|
inputUrl: string;
|
|
106
|
-
forceStereo:
|
|
107
|
-
streamDelay:
|
|
108
|
-
statusLed:
|
|
104
|
+
forceStereo: 0 | 1;
|
|
105
|
+
streamDelay: number | null;
|
|
106
|
+
statusLed: number;
|
|
109
107
|
statusPort: string;
|
|
110
|
-
callApi:
|
|
108
|
+
callApi: number;
|
|
111
109
|
trigger: string;
|
|
112
110
|
schedule: string;
|
|
113
|
-
prepareAhead:
|
|
114
|
-
startTime:
|
|
115
|
-
stopTime:
|
|
111
|
+
prepareAhead: number;
|
|
112
|
+
startTime: number | null;
|
|
113
|
+
stopTime: number | null;
|
|
116
114
|
}, {
|
|
117
|
-
enabled:
|
|
118
|
-
active:
|
|
115
|
+
enabled: 0 | 1;
|
|
116
|
+
active: 0 | 1;
|
|
119
117
|
audioSource: string;
|
|
120
|
-
avSyncMsec:
|
|
118
|
+
avSyncMsec: number;
|
|
121
119
|
internalVapixParameters: string;
|
|
122
120
|
userVapixParameters: string;
|
|
123
121
|
outputParameters: string;
|
|
124
|
-
outputType:
|
|
122
|
+
outputType: "video" | "none" | "images";
|
|
125
123
|
mediaServerUrl: string;
|
|
126
|
-
inputType:
|
|
124
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
127
125
|
inputUrl: string;
|
|
128
|
-
forceStereo:
|
|
129
|
-
streamDelay:
|
|
130
|
-
statusLed:
|
|
126
|
+
forceStereo: 0 | 1;
|
|
127
|
+
streamDelay: number | null;
|
|
128
|
+
statusLed: number;
|
|
131
129
|
statusPort: string;
|
|
132
|
-
callApi:
|
|
130
|
+
callApi: number;
|
|
133
131
|
trigger: string;
|
|
134
132
|
schedule: string;
|
|
135
|
-
prepareAhead:
|
|
136
|
-
startTime:
|
|
137
|
-
stopTime:
|
|
138
|
-
}
|
|
139
|
-
export type
|
|
133
|
+
prepareAhead: number;
|
|
134
|
+
startTime: number | null;
|
|
135
|
+
stopTime: number | null;
|
|
136
|
+
}>;
|
|
137
|
+
export type TOldStream = z.infer<typeof oldStreamSchema>;
|