@camera.ui/browser 0.0.101 → 0.0.102
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/bundle.js +1 -1
- package/dist/types/packages/client/browser/src/types.d.ts +1 -0
- package/dist/types/packages/plugineer/src/polyglot/node/camera/index.d.ts +2 -1
- package/dist/types/packages/plugineer/src/polyglot/node/camera/polygon.d.ts +1 -2
- package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +4 -0
- package/dist/types/packages/types/src/index.d.ts +5 -1
- package/dist/types/server/src/api/database/checks.d.ts +55 -0
- package/dist/types/server/src/api/database/index.d.ts +2 -1
- package/dist/types/server/src/api/database/migration.d.ts +1 -0
- package/dist/types/server/src/api/database/selfcheck.d.ts +48 -0
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +13 -13
- package/dist/types/server/src/api/services/cameras.service.d.ts +1 -0
- package/dist/types/server/src/api/services/plugins.service.d.ts +1 -0
- package/dist/types/server/src/api/types/index.d.ts +0 -5
- package/dist/types/server/src/api/websocket/nsp/logs.d.ts +7 -1
- package/dist/types/server/src/api/websocket/nsp/metrics.d.ts +1 -1
- package/dist/types/server/src/api/websocket/nsp/status.d.ts +1 -1
- package/dist/types/server/src/api.d.ts +5 -14
- package/dist/types/server/src/camera/controller.d.ts +16 -3
- package/dist/types/server/src/{decoder/worker.d.ts → camera/frameWorker.d.ts} +8 -5
- package/dist/types/server/src/plugins/index.d.ts +2 -4
- package/dist/types/server/src/plugins/plugin.d.ts +5 -0
- package/dist/types/server/src/plugins/worker.d.ts +16 -2
- package/dist/types/server/src/services/config/constants.d.ts +1 -0
- package/dist/types/server/src/services/config/index.d.ts +11 -2
- package/dist/types/server/src/services/config/types.d.ts +7 -0
- package/dist/types/shared/types/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/types/server/src/decoder/index.d.ts +0 -11
- package/dist/types/server/src/decoder/types.d.ts +0 -7
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import type { LoggerOptions } from '@camera.ui/common/logger';
|
|
3
|
+
import type { ProcInfo } from '../../api/database/checks.js';
|
|
3
4
|
import type { DeepPartial } from '../../types.js';
|
|
4
|
-
import type { Go2RtcConfig, IConfig, Secrets } from './types.js';
|
|
5
|
+
import type { EnvironmentInfo, Go2RtcConfig, IConfig, Secrets } from './types.js';
|
|
5
6
|
export declare class ConfigService {
|
|
6
7
|
static get VERSION(): string;
|
|
8
|
+
static get ENVIRONMENT(): EnvironmentInfo;
|
|
7
9
|
static readonly NODE_VERSION: string;
|
|
8
10
|
static readonly MIN_NODE_VERSION: string;
|
|
9
11
|
static readonly INSTALL_PATH: string | null;
|
|
@@ -15,12 +17,15 @@ export declare class ConfigService {
|
|
|
15
17
|
readonly SECRETS: Secrets;
|
|
16
18
|
readonly HOME_PATH: string;
|
|
17
19
|
readonly STORAGE_PATH: string;
|
|
20
|
+
readonly LOGS_PATH: string;
|
|
21
|
+
readonly PIDS_FILE: string;
|
|
18
22
|
readonly DATABASE_PATH: string;
|
|
19
23
|
readonly TOKENS_PATH: string;
|
|
20
24
|
readonly USERS_STORAGE_PATH: string;
|
|
21
|
-
readonly
|
|
25
|
+
readonly TMP_PATH: string;
|
|
22
26
|
readonly PLUGINS_STORAGE_PATH: string;
|
|
23
27
|
readonly PLUGINS_INSTALL_PATH: string;
|
|
28
|
+
readonly REPORTS_FILE: string;
|
|
24
29
|
readonly LOG_FILE: string;
|
|
25
30
|
readonly CONFIG_FILE: string;
|
|
26
31
|
readonly SECRETS_FILE: string;
|
|
@@ -42,6 +47,10 @@ export declare class ConfigService {
|
|
|
42
47
|
writeGo2RtcConfigApi(newConfig?: DeepPartial<Go2RtcConfig>): Promise<void>;
|
|
43
48
|
mergeGo2RtcConfig(): Promise<void>;
|
|
44
49
|
updateGo2RtcWebRtcFilter(serverAddresses: string[], oldAddresses?: string[], api?: boolean): Promise<void>;
|
|
50
|
+
addProc(proc: ProcInfo): void;
|
|
51
|
+
removeProcByPID(pid?: number): void;
|
|
52
|
+
getProcs(): ProcInfo[];
|
|
53
|
+
setProcs(pids: ProcInfo[]): void;
|
|
45
54
|
private defaultConfig;
|
|
46
55
|
private defaultGo2RtcConfig;
|
|
47
56
|
private readConfig;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { IceServer } from '@camera.ui/types';
|
|
2
|
+
export interface EnvironmentInfo {
|
|
3
|
+
development: boolean;
|
|
4
|
+
docker: boolean;
|
|
5
|
+
electron: boolean;
|
|
6
|
+
homeassistant: boolean;
|
|
7
|
+
serviceMode: boolean;
|
|
8
|
+
}
|
|
2
9
|
export interface Secrets {
|
|
3
10
|
jwtAccessKey: string;
|
|
4
11
|
jwtRefreshKey: string;
|
|
@@ -13,7 +13,6 @@ export * from '../../server/src/api/schemas/users.schema.js';
|
|
|
13
13
|
export type * from '../../server/src/api/types/index.js';
|
|
14
14
|
export type * from '../../server/src/api/websocket/types.js';
|
|
15
15
|
export type * from '../../server/src/camera/types.js';
|
|
16
|
-
export type * from '../../server/src/decoder/types.js';
|
|
17
16
|
export * from '../../server/src/go2rtc/types.js';
|
|
18
17
|
export type * from '../../server/src/nats/types.js';
|
|
19
18
|
export * from '../../server/src/plugins/types.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"description": "camera.ui browser client",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"module": "./dist/bundle.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@rushstack/eslint-patch": "^1.10.4",
|
|
34
34
|
"@swc/register": "^0.1.10",
|
|
35
35
|
"@types/webrtc": "^0.0.44",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
37
|
-
"@typescript-eslint/parser": "^8.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.10.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.10.0",
|
|
38
38
|
"bufferutil": "^4.0.8",
|
|
39
39
|
"eslint": "^8.57.0",
|
|
40
40
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FrameWorker } from './worker.js';
|
|
2
|
-
import type { CameraController } from '../camera/controller.js';
|
|
3
|
-
export declare class FrameManager {
|
|
4
|
-
frameWorkers: Map<string, FrameWorker>;
|
|
5
|
-
private api;
|
|
6
|
-
private proxyServer;
|
|
7
|
-
private logger;
|
|
8
|
-
constructor();
|
|
9
|
-
addCamera(camera: CameraController): Promise<FrameWorker>;
|
|
10
|
-
removeCamera(camera: CameraController): Promise<void>;
|
|
11
|
-
}
|