@camera.ui/server 0.0.50-internal.0 → 0.0.50-internal.1
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/dist/interface/index.html +44 -44
- package/dist/interface/js/{@primevue.OhxoO3MD.0.0.50-internal.0.js → @primevue.CiB2EGly.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{@tanstack.D1IL6eOv.0.0.50-internal.0.js → @tanstack.DxMw_rJn.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{@vee-validate.BGPyWWTh.0.0.50-internal.0.js → @vee-validate.RxZ3hn6V.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{@vueuse.BsKtqdiG.0.0.50-internal.0.js → @vueuse.C-k73ACm.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{Adminpanel.D93Kvbwp.0.0.50-internal.0.js → Adminpanel.DumNu6GD.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{Camera.DF2l3OMA.0.0.50-internal.0.js → Camera.BuosoqFl.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{Cameras.YzvZccdv.0.0.50-internal.0.js → Cameras.A7NJflGG.0.0.50-internal.1.js} +2 -2
- package/dist/interface/js/Cammesh.Dv3C0UiR.0.0.50-internal.1.js +1 -0
- package/dist/interface/js/{Camview.CB7_HnoQ.0.0.50-internal.0.js → Camview.GgjJp7JR.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{Config.BwflsWTm.0.0.50-internal.0.js → Config.BL3L-BFE.0.0.50-internal.1.js} +2 -2
- package/dist/interface/js/{Console.DZM8pN8Q.0.0.50-internal.0.js → Console.CxwRmUVF.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{CuiConsole.BXXU7Gth.0.0.50-internal.0.js → CuiConsole.D16kkT6R.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{CuiPluginCard.YFOrpbVD.0.0.50-internal.0.js → CuiPluginCard.Bkp__d8n.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{CuiTimeline.VV5KSJd5.0.0.50-internal.0.js → CuiTimeline.C9HKvo0G.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{FirstSteps.b-nvymgb.0.0.50-internal.0.js → FirstSteps.QuJjtAtF.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{Plugin.BOMpVEwM.0.0.50-internal.0.js → Plugin.BLUUbEej.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{Plugins.DdPwaUDA.0.0.50-internal.0.js → Plugins.DviCIk7w.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/Recordings.Dsp07cHs.0.0.50-internal.1.js +1 -0
- package/dist/interface/js/{Settings.D24ttaPu.0.0.50-internal.0.js → Settings.Clx4y9gP.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{SettingsAccount.ms3aqz4E.0.0.50-internal.0.js → SettingsAccount.cfY4-PYd.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/SettingsAppearance.CBGZAazb.0.0.50-internal.1.js +1 -0
- package/dist/interface/js/{SettingsAppearance.vue_vue_type_script_setup_true_lang.CBQ6lL3T.0.0.50-internal.0.js → SettingsAppearance.vue_vue_type_script_setup_true_lang.kxAPXcBy.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{SettingsBackup.BPEc4Rjg.0.0.50-internal.0.js → SettingsBackup.DOaJA4pp.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/SettingsRecordings.BGcwL6tk.0.0.50-internal.1.js +1 -0
- package/dist/interface/js/{SettingsRemote.BL5nXbUT.0.0.50-internal.0.js → SettingsRemote.BVU_w1Jm.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{SettingsSystem.D7T0AIpm.0.0.50-internal.0.js → SettingsSystem.P0vy90vA.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{SettingsUsers.1u0vCOVG.0.0.50-internal.0.js → SettingsUsers.DaP5m7eo.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{VersionsHandler.vue_vue_type_script_setup_true_lang.xDishkkS.0.0.50-internal.0.js → VersionsHandler.vue_vue_type_script_setup_true_lang.MmrWYW3K.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{ace-builds.D1nmvCwb.0.0.50-internal.0.js → ace-builds.C0aqA_3x.0.0.50-internal.1.js} +2 -2
- package/dist/interface/js/{ace.config.G96T2z54.0.0.50-internal.0.js → ace.config.C9wgzklI.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{backup.B_Gzxtp_.0.0.50-internal.0.js → backup.BeH6lJ5t.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{chart.js.CP_nMnnf.0.0.50-internal.0.js → chart.js.BQHSWV_g.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{close-circle.DYLuVIOg.0.0.50-internal.0.js → close-circle.DDKMxauw.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{dnd-core.T9OeW7mu.0.0.50-internal.0.js → dnd-core.dWz9rJqH.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{draggabilly.D3zGcBb3.0.0.50-internal.0.js → draggabilly.D-iZIS1n.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{engine.io-client.kITRnq-g.0.0.50-internal.0.js → engine.io-client.BwxOddB_.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{fast-deep-equal.Bpc9mIsj.0.0.50-internal.0.js → fast-deep-equal.Dz96RC_N.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{highlight.js.BlSXU-Wb.0.0.50-internal.0.js → highlight.js.CmcM8OM6.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{linkify-it.C3N1lWsJ.0.0.50-internal.0.js → linkify-it.BgLcBzlw.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{main.D0YR3Jat.0.0.50-internal.0.js → main.6bOgRV7D.0.0.50-internal.1.js} +3 -3
- package/dist/interface/js/{markdown-it.Dj0dt5s2.0.0.50-internal.0.js → markdown-it.CTgfs-3p.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{nprogress.BwQWDcGj.0.0.50-internal.0.js → nprogress.CMhnq8jS.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{pinia.DRh7plEC.0.0.50-internal.0.js → pinia.CuC5ZfNs.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{primevue.Cl58krXf.0.0.50-internal.0.js → primevue.DmwjJ4xV.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{qrcode.C1sDj6P8.0.0.50-internal.0.js → qrcode.DGZO3j1c.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{react-dnd-touch-backend.BA4WhUJo.0.0.50-internal.0.js → react-dnd-touch-backend.CEGHlD-T.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{refresh-rounded.D_SmhhUf.0.0.50-internal.0.js → refresh-rounded.D0keXzBc.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{rxjs.C-fTBwEO.0.0.50-internal.0.js → rxjs.CiDbFOB0.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{socket.io-client.DKrRxgjP.0.0.50-internal.0.js → socket.io-client.BPcXPAHG.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{socket.io-parser.EXj3YDH2.0.0.50-internal.0.js → socket.io-parser.DSGzrW_l.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{system.CY8rGd-Q.0.0.50-internal.0.js → system.BKlEObmx.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{trash-fill.CMnCN3Oy.0.0.50-internal.0.js → trash-fill.BDFILs86.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{unidragger.D0w6Tqtt.0.0.50-internal.0.js → unidragger.DcxsxHCS.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vee-validate.BeiObIH8.0.0.50-internal.0.js → vee-validate.BGRg3oQ8.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vue-chartjs.DtdZdiYw.0.0.50-internal.0.js → vue-chartjs.B9yk2de7.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vue-i18n.BW2bx_6z.0.0.50-internal.0.js → vue-i18n.DXDZITpf.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vue-inline-svg.BJkQGmKz.0.0.50-internal.0.js → vue-inline-svg.BDYaTfbi.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vue-router.B2mOXHaC.0.0.50-internal.0.js → vue-router.CFEDA008.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vue-zoomable.BKDyCJE7.0.0.50-internal.0.js → vue-zoomable.zqTafMgD.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{vue3-dnd.DRK24CBp.0.0.50-internal.0.js → vue3-dnd.BxM3dbYs.0.0.50-internal.1.js} +1 -1
- package/dist/interface/js/{zoom-out.DxvzgVEo.0.0.50-internal.0.js → zoom-out.B6SY9IIj.0.0.50-internal.1.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +1 -1
- package/package.json +1 -1
- package/.prettierignore +0 -12
- package/.prettierrc.json +0 -12
- package/artillery.yaml +0 -29
- package/bin/cameraui-server.ts +0 -11
- package/dist/interface/js/Cammesh.D-6dAROQ.0.0.50-internal.0.js +0 -1
- package/dist/interface/js/Recordings.DhxjIW7e.0.0.50-internal.0.js +0 -1
- package/dist/interface/js/SettingsAppearance.DsTjKXk1.0.0.50-internal.0.js +0 -1
- package/dist/interface/js/SettingsRecordings.DgW7M0jj.0.0.50-internal.0.js +0 -1
- package/eslint.config.js +0 -103
- package/localdeps.txt +0 -10
- package/mypy.ini +0 -30
- package/requirements.txt +0 -15
- package/ruff.toml +0 -90
- package/src/__init__.py +0 -0
- package/src/_camera_ui_tools/__init__.py +0 -0
- package/src/_camera_ui_tools/__pycache__/__init__.cpython-311.pyc +0 -0
- package/src/api/controllers/api.controller.ts +0 -19
- package/src/api/controllers/auth.controller.ts +0 -294
- package/src/api/controllers/backup.controller.ts +0 -72
- package/src/api/controllers/cameras.controller.ts +0 -1029
- package/src/api/controllers/config.controller.ts +0 -102
- package/src/api/controllers/files.controller.ts +0 -35
- package/src/api/controllers/frameWorkers.controller.ts +0 -109
- package/src/api/controllers/plugins.controller.ts +0 -1206
- package/src/api/controllers/system.controller.ts +0 -273
- package/src/api/controllers/users.controller.ts +0 -648
- package/src/api/database/checks.ts +0 -268
- package/src/api/database/constants.ts +0 -8
- package/src/api/database/index.ts +0 -262
- package/src/api/database/migration.ts +0 -62
- package/src/api/database/selfcheck.ts +0 -492
- package/src/api/database/types.ts +0 -104
- package/src/api/go2rtc/api/application.ts +0 -48
- package/src/api/go2rtc/api/config.ts +0 -61
- package/src/api/go2rtc/api/discover.ts +0 -197
- package/src/api/go2rtc/api/index.ts +0 -49
- package/src/api/go2rtc/api/snapshot.ts +0 -44
- package/src/api/go2rtc/api/streams.ts +0 -168
- package/src/api/go2rtc/index.ts +0 -43
- package/src/api/go2rtc/queue.ts +0 -50
- package/src/api/go2rtc/types.ts +0 -174
- package/src/api/index.ts +0 -286
- package/src/api/middlewares/authPermission.middleware.ts +0 -46
- package/src/api/middlewares/authValidation.middleware.ts +0 -160
- package/src/api/middlewares/pagination.middleware.ts +0 -67
- package/src/api/middlewares/socketAuth.middleware.ts +0 -136
- package/src/api/plugins/header.plugin.ts +0 -15
- package/src/api/plugins/logger.plugin.ts +0 -44
- package/src/api/plugins/proxy.plugin.ts +0 -255
- package/src/api/plugins/socket.plugin.ts +0 -28
- package/src/api/plugins/system.plugin.ts +0 -48
- package/src/api/plugins/useragent.plugin.ts +0 -19
- package/src/api/routes/api.routes.ts +0 -10
- package/src/api/routes/auth.routes.ts +0 -56
- package/src/api/routes/backup.routes.ts +0 -28
- package/src/api/routes/cameras.routes.ts +0 -281
- package/src/api/routes/config.routes.ts +0 -66
- package/src/api/routes/files.routes.ts +0 -15
- package/src/api/routes/frameWorkers.routes.ts +0 -39
- package/src/api/routes/index.ts +0 -37
- package/src/api/routes/plugins.routes.ts +0 -420
- package/src/api/routes/system.routes.ts +0 -101
- package/src/api/routes/users.routes.ts +0 -167
- package/src/api/schemas/backup.schema.ts +0 -112
- package/src/api/schemas/cameras.schema.ts +0 -479
- package/src/api/schemas/config.schema.ts +0 -38
- package/src/api/schemas/go2rtc.schema.ts +0 -189
- package/src/api/schemas/plugins.schema.ts +0 -126
- package/src/api/schemas/storage.schema.ts +0 -11
- package/src/api/schemas/system.schema.ts +0 -45
- package/src/api/schemas/users.schema.ts +0 -185
- package/src/api/services/auth.service.ts +0 -210
- package/src/api/services/backup.service.ts +0 -144
- package/src/api/services/cameras.service.ts +0 -671
- package/src/api/services/plugins.service.ts +0 -470
- package/src/api/services/system.service.ts +0 -85
- package/src/api/services/users.service.ts +0 -276
- package/src/api/types/index.ts +0 -675
- package/src/api/utils/cert.ts +0 -254
- package/src/api/utils/constants.ts +0 -17
- package/src/api/utils/fetch.ts +0 -21
- package/src/api/utils/moveFiles.ts +0 -45
- package/src/api/utils/parse.ts +0 -17
- package/src/api/websocket/index.ts +0 -110
- package/src/api/websocket/nsp/logs.ts +0 -240
- package/src/api/websocket/nsp/main.ts +0 -27
- package/src/api/websocket/nsp/metrics.ts +0 -301
- package/src/api/websocket/nsp/notifications.ts +0 -43
- package/src/api/websocket/nsp/plugins.ts +0 -37
- package/src/api/websocket/nsp/server.ts +0 -220
- package/src/api/websocket/nsp/status.ts +0 -77
- package/src/api/websocket/types.ts +0 -55
- package/src/api.ts +0 -163
- package/src/camera/classes.ts +0 -32
- package/src/camera/controller.ts +0 -579
- package/src/camera/device.ts +0 -422
- package/src/camera/frameWorker.ts +0 -403
- package/src/camera/index.ts +0 -679
- package/src/camera/interfaces.ts +0 -95
- package/src/camera/iou.ts +0 -153
- package/src/camera/polygon.ts +0 -226
- package/src/camera/python/__init__.py +0 -0
- package/src/camera/python/__pycache__/__init__.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/classes.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/delegate_controller.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/interfaces.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/iou.cpython-310.pyc +0 -0
- package/src/camera/python/__pycache__/iou.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/iou2.cpython-310.pyc +0 -0
- package/src/camera/python/__pycache__/polygon.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/typings.cpython-311.pyc +0 -0
- package/src/camera/python/__pycache__/video_frame.cpython-311.pyc +0 -0
- package/src/camera/python/classes.py +0 -41
- package/src/camera/python/interfaces.py +0 -130
- package/src/camera/python/iou.py +0 -158
- package/src/camera/python/polygon.py +0 -230
- package/src/camera/python/test/__pycache__/polygon.cpython-310.pyc +0 -0
- package/src/camera/python/test/iou_test.py +0 -799
- package/src/camera/python/test/polygon.py +0 -238
- package/src/camera/python/test/polygon_test.py +0 -256
- package/src/camera/python/test/polygon_test2.py +0 -484
- package/src/camera/python/typings.py +0 -50
- package/src/camera/python/video_frame.py +0 -143
- package/src/camera/session.ts +0 -192
- package/src/camera/streaming/fmp4-session.ts +0 -390
- package/src/camera/streaming/peer-connection.ts +0 -273
- package/src/camera/streaming/rtsp-session.ts +0 -331
- package/src/camera/streaming/webrtc-connection.ts +0 -260
- package/src/camera/streaming/werift-session.ts +0 -317
- package/src/camera/test/iou_test.ts +0 -761
- package/src/camera/test/polygon.test.ts +0 -611
- package/src/camera/test/polygon_test.ts +0 -210
- package/src/camera/types.ts +0 -48
- package/src/camera/utils.ts +0 -489
- package/src/camera/videoFrame.ts +0 -123
- package/src/cloud/index.ts +0 -61
- package/src/cloud/remote/cloudflare.ts +0 -18
- package/src/cloud/remote/upnp.ts +0 -18
- package/src/cloud/remote/utils.ts +0 -24
- package/src/cloud/types.ts +0 -16
- package/src/decoder/child.ts +0 -883
- package/src/decoder/imageUtils.ts +0 -275
- package/src/decoder/manager.ts +0 -251
- package/src/decoder/python/__init__.py +0 -0
- package/src/decoder/python/__pycache__/__init__.cpython-311.pyc +0 -0
- package/src/decoder/python/__pycache__/image_utils.cpython-311.pyc +0 -0
- package/src/decoder/python/__pycache__/typings.cpython-311.pyc +0 -0
- package/src/decoder/python/__pycache__/utils.cpython-311.pyc +0 -0
- package/src/decoder/python/child.py +0 -903
- package/src/decoder/python/image_utils.py +0 -196
- package/src/decoder/python/pool.py +0 -45
- package/src/decoder/python/test/group.py +0 -62
- package/src/decoder/python/test/motion.mp4 +0 -0
- package/src/decoder/python/test/motion2.mp4 +0 -0
- package/src/decoder/python/test/opencl.cl +0 -70
- package/src/decoder/python/test/opencl2.cl +0 -130
- package/src/decoder/python/test/test.py +0 -427
- package/src/decoder/python/test/test1.jpg +0 -0
- package/src/decoder/python/test/test1_resized.jpg +0 -0
- package/src/decoder/python/test/test2.jpg +0 -0
- package/src/decoder/python/test/test2.py +0 -451
- package/src/decoder/python/test/test2_resized.jpg +0 -0
- package/src/decoder/python/test/test3.jpg +0 -0
- package/src/decoder/python/test/utils.py +0 -50
- package/src/decoder/python/typings.py +0 -57
- package/src/decoder/python/utils.py +0 -70
- package/src/decoder/test/child.ts +0 -117
- package/src/decoder/test/ffmpeg.ts +0 -371
- package/src/decoder/test/test.ts +0 -182
- package/src/decoder/types.ts +0 -27
- package/src/decoder/utils.ts +0 -64
- package/src/decoder/wasm/asconfig.json +0 -28
- package/src/decoder/wasm/assembly/console.ts +0 -1
- package/src/decoder/wasm/assembly/index.ts +0 -890
- package/src/decoder/wasm/build/decoder.d.ts +0 -43
- package/src/decoder/wasm/build/decoder.js +0 -108
- package/src/decoder/wasm/build/decoder.wasm +0 -0
- package/src/decoder/wasm/tsconfig.json +0 -5
- package/src/decoder/worker.ts +0 -113
- package/src/go2rtc/index.ts +0 -324
- package/src/go2rtc/types.ts +0 -88
- package/src/main.ts +0 -267
- package/src/manager/coreManager.ts +0 -78
- package/src/manager/deviceManager.ts +0 -132
- package/src/manager/types.ts +0 -17
- package/src/plugins/index.ts +0 -443
- package/src/plugins/plugin.ts +0 -177
- package/src/plugins/runtime/base.ts +0 -282
- package/src/plugins/runtime/index.ts +0 -15
- package/src/plugins/runtime/node/child.ts +0 -193
- package/src/plugins/runtime/node/index.ts +0 -67
- package/src/plugins/runtime/node/plugin.ts +0 -122
- package/src/plugins/runtime/node/pluginApi.ts +0 -27
- package/src/plugins/runtime/node/proxy/cameraDevice.ts +0 -299
- package/src/plugins/runtime/node/proxy/coreManager.ts +0 -128
- package/src/plugins/runtime/node/proxy/deviceManager.ts +0 -187
- package/src/plugins/runtime/node/storage.ts +0 -312
- package/src/plugins/runtime/node/storageController.ts +0 -91
- package/src/plugins/runtime/python/__init__.py +0 -0
- package/src/plugins/runtime/python/__pycache__/__init__.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/camera_storage.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/config_service.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/constants.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/ipc.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/logger.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/message_queue.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/namespaces.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/plugin.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/plugin_api.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/plugin_logger.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/proxy_utils.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/schema.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/storage.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/storage_controller.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/__pycache__/typings.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/child.py +0 -248
- package/src/plugins/runtime/python/index.ts +0 -73
- package/src/plugins/runtime/python/namespaces.py +0 -101
- package/src/plugins/runtime/python/plugin.py +0 -155
- package/src/plugins/runtime/python/plugin_api.py +0 -29
- package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-310.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-38.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/constants.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/constants.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/core_manager.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-310.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-38.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-310.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-38.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-310.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-38.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-310.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-38.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-310.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-311.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-38.pyc +0 -0
- package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-39.pyc +0 -0
- package/src/plugins/runtime/python/proxy/camera_device.py +0 -1732
- package/src/plugins/runtime/python/proxy/core_manager.py +0 -126
- package/src/plugins/runtime/python/proxy/device_manager.py +0 -197
- package/src/plugins/runtime/python/schema.py +0 -99
- package/src/plugins/runtime/python/storage.py +0 -353
- package/src/plugins/runtime/python/storage_controller.py +0 -102
- package/src/plugins/runtime/python/typings.py +0 -195
- package/src/plugins/schema.ts +0 -472
- package/src/plugins/types.ts +0 -60
- package/src/plugins/worker.ts +0 -250
- package/src/rpc/index.ts +0 -149
- package/src/rpc/namespaces.ts +0 -79
- package/src/rpc/server.ts +0 -422
- package/src/rpc/types.ts +0 -119
- package/src/rpc/utils.ts +0 -16
- package/src/services/config/constants.ts +0 -47
- package/src/services/config/defaults.ts +0 -57
- package/src/services/config/index.ts +0 -744
- package/src/services/config/types.ts +0 -211
- package/src/services/logger/index.ts +0 -96
- package/src/types.ts +0 -47
- package/src/utils/path.ts +0 -16
- package/src/utils/pythonInstaller.ts +0 -597
- package/tsconfig.json +0 -37
- package/updates.config.js +0 -3
- /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.50-internal.0.css → @xterm.DYP7pi_n.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.50-internal.0.css → Adminpanel.BKek2EMH.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.50-internal.0.css → Cameras.BDWZJqPN.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{Camview.BFUFMoNX.0.0.50-internal.0.css → Camview.BFUFMoNX.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.50-internal.0.css → CuiConsole.DCYyxdVg.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.50-internal.0.css → CuiPluginCard.yF8V0SZY.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.50-internal.0.css → CuiTimeline.BkIwlYtw.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.50-internal.0.css → Plugin.DJElsAn5.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{Plugins.0h77qnmN.0.0.50-internal.0.css → Plugins.0h77qnmN.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.50-internal.0.css → Settings.CkgfRkQr.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{SettingsAccount.DeFul3eQ.0.0.50-internal.0.css → SettingsAccount.DeFul3eQ.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.50-internal.0.css → SettingsBackup.CX0rT0QJ.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.50-internal.0.css → highlight.Ch2EwETz.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.50-internal.0.png → logo-256.BCQk9H1-.0.0.50-internal.1.png} +0 -0
- /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.50-internal.0.png → logo-512.DLKVOU2S.0.0.50-internal.1.png} +0 -0
- /package/dist/interface/assets/{logo.DmEiRk0z.0.0.50-internal.0.png → logo.DmEiRk0z.0.0.50-internal.1.png} +0 -0
- /package/dist/interface/assets/{main.Cip9LkS3.0.0.50-internal.0.css → main.Cip9LkS3.0.0.50-internal.1.css} +0 -0
- /package/dist/interface/assets/{mode-json.Br7xisR1.0.0.50-internal.0.js → mode-json.Br7xisR1.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.50-internal.0.js → mode-yaml.CIYL8U3d.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.50-internal.0.js → worker-base.jEXLGV2h.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/assets/{worker-json.DgwNIOck.0.0.50-internal.0.js → worker-json.DgwNIOck.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.50-internal.0.js → worker-yaml.B3uUYINB.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.50-internal.0.js → @babel.l0sNRNKZ.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@intlify.BkGPX90O.0.0.50-internal.0.js → @intlify.BkGPX90O.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.50-internal.0.js → @kurkle.D8fDXNIl.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@primeuix.BFAY2Bk9.0.0.50-internal.0.js → @primeuix.BFAY2Bk9.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.50-internal.0.js → @react-dnd.CcwRs9xb.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.50-internal.0.js → @socket.io.Dkula2eQ.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@vue.B5vqhCp2.0.0.50-internal.0.js → @vue.B5vqhCp2.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{@xterm.CAa7rpjv.0.0.50-internal.0.js → @xterm.DIUBesyz.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{axios.DHr9lByg.0.0.50-internal.0.js → axios.DHr9lByg.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.50-internal.0.js → birpc.l0sNRNKZ.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.50-internal.0.js → compare-versions.DqEOhma6.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.50-internal.0.js → dijkstrajs.C00ieaqj.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.50-internal.0.js → engine.io-parser.BiEtp6m2.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{entities.C20TfXL6.0.0.50-internal.0.js → entities.C20TfXL6.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.50-internal.0.js → ev-emitter.X5f1qa-c.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{get-size.D1dS-IaP.0.0.50-internal.0.js → get-size.D1dS-IaP.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.50-internal.0.js → hookable.l0sNRNKZ.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.50-internal.0.js → mdurl.k9Sl0PQj.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.50-internal.0.js → perfect-debounce.l0sNRNKZ.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.50-internal.0.js → primelocale.Bga3dOQu.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.50-internal.0.js → punycode.js.Dj65hjkv.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.50-internal.0.js → react-dnd-html5-backend.1HQjlkwI.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{redux.BFxtlG_c.0.0.50-internal.0.js → redux.BFxtlG_c.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{tslib.9k7AwCpt.0.0.50-internal.0.js → tslib.9k7AwCpt.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.50-internal.0.js → uc.micro.kMc2yuuw.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{uuid.C6aID195.0.0.50-internal.0.js → uuid.C6aID195.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{vue.l0sNRNKZ.0.0.50-internal.0.js → vue.l0sNRNKZ.0.0.50-internal.1.js} +0 -0
- /package/dist/interface/js/{zod.SKKegNRO.0.0.50-internal.0.js → zod.SKKegNRO.0.0.50-internal.1.js} +0 -0
package/src/api/types/index.ts
DELETED
|
@@ -1,675 +0,0 @@
|
|
|
1
|
-
import type { AuthConfig } from '@camera.ui/rpc-common';
|
|
2
|
-
import type { CameraExtension, CameraExtensions, DetectionZone, ProbeConfig, SchemaConfig } from '@camera.ui/types';
|
|
3
|
-
import type { Readable } from 'node:stream';
|
|
4
|
-
import type { PLUGIN_STATUS, PluginContract } from '../../plugins/types.js';
|
|
5
|
-
import type { LoggingLevel } from '../../services/config/types.js';
|
|
6
|
-
import type { DBCamera, DBCamviewLayout, DBRoles, DBUser } from '../database/types.js';
|
|
7
|
-
import type { ApplicationResponse, DeviceSourceType } from '../go2rtc/types.js';
|
|
8
|
-
import type { RestoreBackupInput } from '../schemas/backup.schema.js';
|
|
9
|
-
import type { CreateCameraInput, PairCameraInput, PatchCameraInput, PreviewCameraInput } from '../schemas/cameras.schema.js';
|
|
10
|
-
import type { PatchConfigInput } from '../schemas/config.schema.js';
|
|
11
|
-
import type { PatchGo2RtcConfigInput } from '../schemas/go2rtc.schema.js';
|
|
12
|
-
import type { DetectAudioInput, DetectMotionInput, DetectObjectInput } from '../schemas/plugins.schema.js';
|
|
13
|
-
import type { PatchStorateInput, SetStorageInput, SubmitStorageInput } from '../schemas/storage.schema.js';
|
|
14
|
-
import type { PatchSystemInput } from '../schemas/system.schema.js';
|
|
15
|
-
import type {
|
|
16
|
-
CreateShortcutInput,
|
|
17
|
-
CreateUserInput,
|
|
18
|
-
CreateViewInput,
|
|
19
|
-
LoginUserInput,
|
|
20
|
-
PatchShortcutInput,
|
|
21
|
-
PatchUserInput,
|
|
22
|
-
PatchViewInput,
|
|
23
|
-
} from '../schemas/users.schema.js';
|
|
24
|
-
|
|
25
|
-
export interface BusboyFileStream extends Readable {
|
|
26
|
-
truncated: boolean;
|
|
27
|
-
bytesRead: number;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface UiNotification {
|
|
31
|
-
_id: string;
|
|
32
|
-
title: string;
|
|
33
|
-
text: string;
|
|
34
|
-
timestamp: number;
|
|
35
|
-
type: LoggingLevel;
|
|
36
|
-
link?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface JwtTokenEncoded {
|
|
40
|
-
readonly _id: string;
|
|
41
|
-
access_token: string;
|
|
42
|
-
refresh_token: string;
|
|
43
|
-
token_type: string;
|
|
44
|
-
expires_in: number;
|
|
45
|
-
expires_at: Date;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface UserData extends JwtTokenEncoded {
|
|
49
|
-
username: string;
|
|
50
|
-
avatar: string;
|
|
51
|
-
role: DBRoles;
|
|
52
|
-
rememberMe: boolean;
|
|
53
|
-
singleSession: boolean;
|
|
54
|
-
firstLogin: boolean;
|
|
55
|
-
sessionTimer: number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface JwtPayload {
|
|
59
|
-
_id: string;
|
|
60
|
-
// avatar: string;
|
|
61
|
-
username: string;
|
|
62
|
-
// role: DBRoles;
|
|
63
|
-
// singleSession: boolean;
|
|
64
|
-
rememberMe: boolean;
|
|
65
|
-
// firstLogin: boolean;
|
|
66
|
-
sessionTimer: number;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface JwtRefreshPayload {
|
|
70
|
-
_id: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface ClientData {
|
|
74
|
-
_id: string;
|
|
75
|
-
access_token: string;
|
|
76
|
-
address?: string;
|
|
77
|
-
device?: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const enum REFRESH_TOKEN {
|
|
81
|
-
EXPIRES_IN = '7d',
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface CameraCamviewSettings {
|
|
85
|
-
enabled: boolean;
|
|
86
|
-
mode: InterfaceStreamMode;
|
|
87
|
-
imageRefreshTimer: number;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export type InterfaceStreamMode = 'live' | 'snapshot';
|
|
91
|
-
|
|
92
|
-
export interface JwtTokenDecoded {
|
|
93
|
-
_id: string;
|
|
94
|
-
username: string;
|
|
95
|
-
// avatar: string;
|
|
96
|
-
// role: DBRoles;
|
|
97
|
-
// singleSession: boolean;
|
|
98
|
-
// firstLogin: boolean;
|
|
99
|
-
rememberMe: boolean;
|
|
100
|
-
sessionTimer: number;
|
|
101
|
-
exp: Readonly<number>;
|
|
102
|
-
iat: Readonly<number>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface JwtRefreshTokenDecoded {
|
|
106
|
-
_id: string;
|
|
107
|
-
expires_in: number;
|
|
108
|
-
expires_at: Date;
|
|
109
|
-
exp: Readonly<number>;
|
|
110
|
-
iat: Readonly<number>;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export interface JwtTokenResponse {
|
|
114
|
-
access_token: string;
|
|
115
|
-
refresh_token: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface JwtTokenClientData {
|
|
119
|
-
token: JwtTokenEncoded;
|
|
120
|
-
clientData?: ClientData;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export type LogoutResponse = 'OK';
|
|
124
|
-
|
|
125
|
-
export interface SessionResponse {
|
|
126
|
-
status: 'OK';
|
|
127
|
-
statusCode: undefined;
|
|
128
|
-
message: undefined;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface SessionExpiredResponse {
|
|
132
|
-
status: undefined;
|
|
133
|
-
statusCode: number;
|
|
134
|
-
message: string;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export type SessionStatus = SessionResponse | SessionExpiredResponse;
|
|
138
|
-
|
|
139
|
-
export interface Pagination {
|
|
140
|
-
pageSize: number;
|
|
141
|
-
startIndex: number;
|
|
142
|
-
endIndex: number;
|
|
143
|
-
totalItems: number;
|
|
144
|
-
currentPage: number;
|
|
145
|
-
totalPages: number;
|
|
146
|
-
nextPageQuery?: string | null;
|
|
147
|
-
prevPageQuery?: string | null;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface PaginationResponse {
|
|
151
|
-
pagination: Pagination;
|
|
152
|
-
result: any[];
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface UsersResponse {
|
|
156
|
-
pagination: Pagination;
|
|
157
|
-
result: DBUser[];
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface ViewsResponse {
|
|
161
|
-
pagination: Pagination;
|
|
162
|
-
result: DBCamviewLayout[];
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface CamerasResponse {
|
|
166
|
-
pagination: Pagination;
|
|
167
|
-
result: DBCamera[];
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface PluginExtension {
|
|
171
|
-
pluginName: string;
|
|
172
|
-
displayName: string;
|
|
173
|
-
type: CameraExtension[];
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export interface PluginExtensionConfig extends PluginExtension, SchemaConfig {}
|
|
177
|
-
|
|
178
|
-
export interface ExtensionsResponse {
|
|
179
|
-
pagination: Pagination;
|
|
180
|
-
result: PluginExtension[];
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface PluginsProgress {
|
|
184
|
-
pluginName: string;
|
|
185
|
-
action: 'install' | 'update' | 'uninstall';
|
|
186
|
-
version: string;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface PluginsResponse {
|
|
190
|
-
pagination: Pagination;
|
|
191
|
-
result: CameraUiPlugin[];
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface PluginsProgressResponse {
|
|
195
|
-
pagination: Pagination;
|
|
196
|
-
result: PluginsProgress[];
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export interface FrameWorkerResponse {
|
|
200
|
-
pagination: Pagination;
|
|
201
|
-
result: FrameWorker[];
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface PluginContractCamera {
|
|
205
|
-
name: string;
|
|
206
|
-
extensions: CameraExtensions;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export interface PluginContractResponse {
|
|
210
|
-
contract: PluginContract;
|
|
211
|
-
cameras: PluginContractCamera[];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export interface Go2RtcInfoAuth {
|
|
215
|
-
username: string;
|
|
216
|
-
password: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export interface Go2RtcInfo {
|
|
220
|
-
url: string;
|
|
221
|
-
wsURL: string;
|
|
222
|
-
port: number;
|
|
223
|
-
info: ApplicationResponse;
|
|
224
|
-
auth: Partial<Go2RtcInfoAuth>;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface NatsInfo {
|
|
228
|
-
// servers: string[];
|
|
229
|
-
auth: AuthConfig;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export interface TokenClientDataResponse {
|
|
233
|
-
pagination: Pagination;
|
|
234
|
-
result: JwtTokenClientData[];
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface PaginationQuery {
|
|
238
|
-
start?: number;
|
|
239
|
-
page?: number;
|
|
240
|
-
pageSize?: number;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface PaginationRequest {
|
|
244
|
-
Querystring: PaginationQuery;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface AuthParamsRequest {
|
|
248
|
-
Params: { id: string; username?: string };
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export interface AuthLoginRequest {
|
|
252
|
-
Querystring: { username?: string; password?: string; token?: string };
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export interface AuthNewLoginRequest {
|
|
256
|
-
Body: LoginUserInput;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
export interface AuthRefreshRequest {
|
|
260
|
-
Body: { refresh_token: string };
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export interface CamerasParamsRequest {
|
|
264
|
-
Params: { cameraname: string };
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export interface CamerasStreamRequest {
|
|
268
|
-
Params: { cameraid: string; sourcename: string };
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export interface CameraSnapshotQueryRequest {
|
|
272
|
-
Querystring: { forceNew?: boolean };
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export interface CameraDiscoverQueryRequest {
|
|
276
|
-
Querystring: { type?: DeviceSourceType; src?: string };
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export interface CameraProbeSourceQueryRequest {
|
|
280
|
-
Querystring: ProbeConfig;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface CameraSourceParamsRequest {
|
|
284
|
-
Params: { sourcename: string };
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface CamerasParamsIdRequest {
|
|
288
|
-
Params: { cameraid: string };
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export interface CamerasExtensionsParamsRequest {
|
|
292
|
-
Params: { cameraname: string; pluginname: string; scope?: string };
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export interface CamerasExtensionsRequest {
|
|
296
|
-
Querystring: { type: CameraExtension };
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export interface CameraZoneInsertPatchRequest {
|
|
300
|
-
Body: DetectionZone[];
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export interface CamerasInsertRequest {
|
|
304
|
-
Body: CreateCameraInput;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export interface CameraPairRequest {
|
|
308
|
-
Body: PairCameraInput;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export interface CamerasPreviewRequest {
|
|
312
|
-
Body: PreviewCameraInput;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
export interface CamerasPatchRequest {
|
|
316
|
-
Body: PatchCameraInput;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface StoragePatchRequest {
|
|
320
|
-
Body: PatchStorateInput;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export interface StorageSetRequest {
|
|
324
|
-
Body: SetStorageInput;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
export interface StorageSubmitRequest {
|
|
328
|
-
Body: SubmitStorageInput;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export interface ConfigRequest {
|
|
332
|
-
Querystring: { json?: boolean };
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export interface ConfigPatchRequest {
|
|
336
|
-
Body: PatchConfigInput;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export interface Go2RtcConfigPatchRequest {
|
|
340
|
-
Body: PatchGo2RtcConfigInput;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export interface FilesParamsRequest {
|
|
344
|
-
Params: { file: string };
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export interface PluginsParamsIdRequest {
|
|
348
|
-
Params: { pluginid: string };
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
export interface PluginsParamsNameRequest {
|
|
352
|
-
Params: { scope?: string; pluginname: string };
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface FrameWorkerParamsNameRequest {
|
|
356
|
-
Params: { frameworkername: string };
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export interface PluginsParamsRemoveRequest {
|
|
360
|
-
Querystring: { removeStorage?: boolean };
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export interface PluginsQuery {
|
|
364
|
-
pluginname?: string;
|
|
365
|
-
pluginversion?: string;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
export interface PluginsQueryRequest {
|
|
369
|
-
Querystring: PluginsQuery;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export interface PluginsInsertRequest {
|
|
373
|
-
Body: { pluginname: string; pluginversion?: string };
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export interface PluginsConfigPatchRequest {
|
|
377
|
-
Body: Record<string, any>;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
export interface PluginsActionRequest {
|
|
381
|
-
Body: { actionId: string; payload: any };
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export interface PluginsDetectMotionRequest {
|
|
385
|
-
Body: DetectMotionInput;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export interface PluginsDetectObjectRequest {
|
|
389
|
-
Body: DetectObjectInput;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export interface PluginsDetectAudioRequest {
|
|
393
|
-
Body: DetectAudioInput;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
export interface PluginsInterfaceQueryType {
|
|
397
|
-
type: 'objectDetection' | 'motionDetection' | 'audioDetection';
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export interface UsersParamsRequest {
|
|
401
|
-
Params: { username: string };
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export interface UsersInsertRequest {
|
|
405
|
-
Body: CreateUserInput & { avatar: string };
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export interface UsersPatchRequest {
|
|
409
|
-
Body: PatchUserInput & { avatar: string };
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export interface SystemPatchRequest {
|
|
413
|
-
Body: PatchSystemInput;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export interface ServerUpdateRequest {
|
|
417
|
-
Body: { version: string };
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
export interface ViewsParamsRequest {
|
|
421
|
-
Params: { viewid: string };
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export interface ViewsInsertRequest {
|
|
425
|
-
Body: CreateViewInput;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export interface ViewsPatchRequest {
|
|
429
|
-
Body: PatchViewInput;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export interface ShortcutParamsRequest {
|
|
433
|
-
Params: { shortcutid: string };
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export interface ShortcutInsertRequest {
|
|
437
|
-
Body: CreateShortcutInput;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
export interface ShortcutPatchRequest {
|
|
441
|
-
Body: PatchShortcutInput;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
export interface BackupCreateRequest {
|
|
445
|
-
Body: { localStorage: Partial<UiLocalStorage> };
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export interface PluginBackupInfo {
|
|
449
|
-
id: string;
|
|
450
|
-
name: string;
|
|
451
|
-
version: string;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
export interface BackupInfo {
|
|
455
|
-
timestamp: number;
|
|
456
|
-
platform: string;
|
|
457
|
-
node: string;
|
|
458
|
-
version: string;
|
|
459
|
-
plugins: PluginBackupInfo[];
|
|
460
|
-
localStorage: Partial<UiLocalStorage>;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export interface BackupStorage {
|
|
464
|
-
backupDirectory: string;
|
|
465
|
-
backupFile: string;
|
|
466
|
-
backupFileName: string;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export type SupportedLanguageAbbreviatons = 'de' | 'en';
|
|
470
|
-
|
|
471
|
-
export type SupportedThemes = 'light' | 'dark';
|
|
472
|
-
|
|
473
|
-
export interface ConfigSettings {
|
|
474
|
-
zoom: number; // 8 - 20
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
export interface ConsoleSettings {
|
|
478
|
-
zoom: number; // 8 - 20
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
export type CamviewSettingsLayoutMode = 'dnd' | 'view';
|
|
482
|
-
|
|
483
|
-
export type SettingsViews = 'account' | 'appearance' | 'user' | 'recordings' | 'backup' | 'system';
|
|
484
|
-
|
|
485
|
-
export interface CamviewSettings {
|
|
486
|
-
dragDisabled?: boolean;
|
|
487
|
-
viewid?: string;
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
export interface CamerasSettings {
|
|
491
|
-
showEvents: boolean;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
export interface InterfaceSettinges {
|
|
495
|
-
showBottomBarOnMobile: boolean;
|
|
496
|
-
selectedSettingsView: SettingsViews;
|
|
497
|
-
navbarStayCollapsed: boolean;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export interface UiSettingsLocalStorage {
|
|
501
|
-
cameras: CamerasSettings;
|
|
502
|
-
camview: CamviewSettings;
|
|
503
|
-
config: ConfigSettings;
|
|
504
|
-
console: ConsoleSettings;
|
|
505
|
-
interface: InterfaceSettinges;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
export interface ThemeLocalStorage {
|
|
509
|
-
theme: SupportedThemes;
|
|
510
|
-
autoMode: boolean;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
export interface UiLocalStorage {
|
|
514
|
-
ui: UiSettingsLocalStorage;
|
|
515
|
-
theme: ThemeLocalStorage;
|
|
516
|
-
locale: SupportedLanguageAbbreviatons;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
export interface BackupRestoreRequest {
|
|
520
|
-
Body: RestoreBackupInput;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
export interface INpmPluginState {
|
|
524
|
-
updateAvailable: boolean;
|
|
525
|
-
betaUpdateAvailable: boolean;
|
|
526
|
-
lastUpdated?: string;
|
|
527
|
-
latestVersion?: string;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export interface INpmPerson {
|
|
531
|
-
name?: string;
|
|
532
|
-
email?: string;
|
|
533
|
-
homepage?: string;
|
|
534
|
-
username?: string;
|
|
535
|
-
url?: string;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
export interface IPackageJson {
|
|
539
|
-
name: string;
|
|
540
|
-
displayName?: string;
|
|
541
|
-
version: string;
|
|
542
|
-
description?: string;
|
|
543
|
-
keywords?: string[];
|
|
544
|
-
homepage?: string;
|
|
545
|
-
bugs?: string | { email?: string; url?: string };
|
|
546
|
-
license?: string;
|
|
547
|
-
author?: string | INpmPerson;
|
|
548
|
-
maintainers?: INpmPerson[];
|
|
549
|
-
contributors?: string[] | INpmPerson[];
|
|
550
|
-
files?: string[];
|
|
551
|
-
main?: string;
|
|
552
|
-
bin?: string | Record<string, string>;
|
|
553
|
-
repository?: string | { type: string; url: string };
|
|
554
|
-
scripts?: Record<string, string>;
|
|
555
|
-
dependencies?: Record<string, string>;
|
|
556
|
-
devDependencies?: Record<string, string>;
|
|
557
|
-
peerDependencies?: Record<string, string>;
|
|
558
|
-
optionalDependencies?: Record<string, string>;
|
|
559
|
-
bundledDependencies?: string[];
|
|
560
|
-
engines?: Record<string, string>;
|
|
561
|
-
os?: string[];
|
|
562
|
-
cpu?: string[];
|
|
563
|
-
preferGlobal?: boolean;
|
|
564
|
-
private?: boolean;
|
|
565
|
-
publishConfig?: { registry?: string };
|
|
566
|
-
exports?: Record<string, any>;
|
|
567
|
-
type?: 'module';
|
|
568
|
-
'camera.ui'?: PluginContract;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export interface INpmRegistryModule {
|
|
572
|
-
_id: string;
|
|
573
|
-
_rev: string;
|
|
574
|
-
name: string;
|
|
575
|
-
'dist-tags': {
|
|
576
|
-
latest: string;
|
|
577
|
-
[key: string]: string;
|
|
578
|
-
};
|
|
579
|
-
versions: Record<string, IPackageJson>;
|
|
580
|
-
time: {
|
|
581
|
-
created: string;
|
|
582
|
-
modified: string;
|
|
583
|
-
[key: string]: string;
|
|
584
|
-
};
|
|
585
|
-
maintainers: INpmPerson[];
|
|
586
|
-
description: string;
|
|
587
|
-
homepage: string;
|
|
588
|
-
keywords: string[];
|
|
589
|
-
repository: { type: string; url: string };
|
|
590
|
-
author: INpmPerson;
|
|
591
|
-
bugs: { email?: string; url?: string };
|
|
592
|
-
license: string;
|
|
593
|
-
readme: string;
|
|
594
|
-
readmeFilename: string;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
export interface INpmSearchResults {
|
|
598
|
-
objects: INpmSearchResultItem[];
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
export interface INpmSearchResultItem {
|
|
602
|
-
package: {
|
|
603
|
-
name: string;
|
|
604
|
-
scoped: string;
|
|
605
|
-
version: string;
|
|
606
|
-
description: string;
|
|
607
|
-
keywords: string[];
|
|
608
|
-
date: string;
|
|
609
|
-
links: {
|
|
610
|
-
npm: string;
|
|
611
|
-
homebridge?: string;
|
|
612
|
-
repository?: string;
|
|
613
|
-
bugs?: string;
|
|
614
|
-
};
|
|
615
|
-
author: INpmPerson;
|
|
616
|
-
publisher: INpmPerson;
|
|
617
|
-
maintainers: INpmPerson[];
|
|
618
|
-
};
|
|
619
|
-
flags: {
|
|
620
|
-
unstable: boolean;
|
|
621
|
-
};
|
|
622
|
-
score: {
|
|
623
|
-
final: number;
|
|
624
|
-
detail: {
|
|
625
|
-
quality: number;
|
|
626
|
-
popularity: number;
|
|
627
|
-
maintenance: number;
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
|
-
searchScore: number;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
export interface PluginLinks {
|
|
634
|
-
npm: string;
|
|
635
|
-
homepage: string;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export interface PluginEngines {
|
|
639
|
-
node: string;
|
|
640
|
-
'camera.ui': string;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
export interface CameraUiPlugin {
|
|
644
|
-
id: string;
|
|
645
|
-
pluginName: string;
|
|
646
|
-
private: boolean;
|
|
647
|
-
displayName: string;
|
|
648
|
-
description?: string;
|
|
649
|
-
publicPackage?: boolean;
|
|
650
|
-
installedVersion?: string;
|
|
651
|
-
latestVersion?: string;
|
|
652
|
-
lastUpdated?: string;
|
|
653
|
-
availableVersions?: string[];
|
|
654
|
-
installPath?: string;
|
|
655
|
-
globalInstall?: boolean;
|
|
656
|
-
disabled?: boolean;
|
|
657
|
-
links?: {
|
|
658
|
-
npm?: string;
|
|
659
|
-
homepage?: string;
|
|
660
|
-
bugs?: string;
|
|
661
|
-
};
|
|
662
|
-
author?: string;
|
|
663
|
-
engines?: {
|
|
664
|
-
'camera.ui'?: string;
|
|
665
|
-
node?: string;
|
|
666
|
-
};
|
|
667
|
-
'camera.ui': PluginContract;
|
|
668
|
-
isPython: boolean;
|
|
669
|
-
isNode: boolean;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
export interface FrameWorker {
|
|
673
|
-
name: string;
|
|
674
|
-
status: PLUGIN_STATUS;
|
|
675
|
-
}
|