@camera.ui/browser 0.0.109 → 0.0.111
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/bundle.js.LICENSE.txt +11 -20
- package/dist/types/packages/client/browser/src/client.d.ts +5 -7
- package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +20 -24
- package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +10 -12
- package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +10 -12
- package/dist/types/packages/client/browser/src/proxy.d.ts +7 -0
- package/dist/types/packages/client/browser/src/streaming/config.d.ts +21 -0
- package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +255 -40
- package/dist/types/packages/client/browser/src/streaming/types.d.ts +38 -0
- package/dist/types/packages/client/browser/src/types.d.ts +6 -8
- package/dist/types/packages/types/src/index.d.ts +304 -222
- package/dist/types/server/src/api/database/types.d.ts +17 -25
- package/dist/types/server/src/api/go2rtc/types.d.ts +66 -11
- package/dist/types/server/src/api/schemas/backup.schema.d.ts +24 -24
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +1414 -530
- package/dist/types/server/src/api/schemas/config.schema.d.ts +30 -42
- package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +186 -154
- package/dist/types/server/src/api/schemas/plugins.schema.d.ts +17 -17
- package/dist/types/server/src/api/schemas/storage.schema.d.ts +22 -0
- package/dist/types/server/src/api/schemas/system.schema.d.ts +171 -3
- package/dist/types/server/src/api/schemas/users.schema.d.ts +162 -318
- package/dist/types/server/src/api/types/index.d.ts +48 -46
- package/dist/types/server/src/api/websocket/types.d.ts +4 -2
- package/dist/types/server/src/camera/classes.d.ts +2 -0
- package/dist/types/{packages/plugineer/src/polyglot/node → server/src}/camera/index.d.ts +33 -32
- package/dist/types/server/src/camera/interfaces.d.ts +17 -0
- package/dist/types/{packages/plugineer/src/polyglot/node → server/src}/camera/polygon.d.ts +2 -2
- package/dist/types/server/src/camera/types.d.ts +16 -10
- package/dist/types/server/src/go2rtc/types.d.ts +5 -4
- package/dist/types/server/src/manager/types.d.ts +15 -0
- package/dist/types/server/src/plugins/schema.d.ts +27 -34
- package/dist/types/server/src/plugins/types.d.ts +43 -1
- package/dist/types/server/src/rpc/namespaces.d.ts +35 -0
- package/dist/types/server/src/rpc/types.d.ts +111 -0
- package/dist/types/server/src/services/config/defaults.d.ts +12 -0
- package/dist/types/server/src/services/config/types.d.ts +10 -4
- package/dist/types/server/src/types.d.ts +3 -0
- package/dist/types/shared/types/index.d.ts +9 -8
- package/package.json +19 -16
- package/dist/types/packages/client/browser/src/socket.d.ts +0 -15
- package/dist/types/packages/common/src/nats/messageQueue.d.ts +0 -48
- package/dist/types/packages/common/src/nats/nats.d.ts +0 -30
- package/dist/types/packages/common/src/nats/packer.d.ts +0 -2
- package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/camera.d.ts +0 -8
- package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/ptz.d.ts +0 -11
- package/dist/types/packages/plugineer/src/polyglot/node/camera/types.d.ts +0 -18
- package/dist/types/packages/plugineer/src/polyglot/node/plugins/schema.d.ts +0 -62
- package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +0 -135
- package/dist/types/packages/plugineer/src/types.d.ts +0 -4
- package/dist/types/server/src/api/controllers/api.controller.d.ts +0 -7
- package/dist/types/server/src/api/controllers/auth.controller.d.ts +0 -16
- package/dist/types/server/src/api/controllers/backup.controller.d.ts +0 -10
- package/dist/types/server/src/api/controllers/cameras.controller.d.ts +0 -38
- package/dist/types/server/src/api/controllers/config.controller.d.ts +0 -14
- package/dist/types/server/src/api/controllers/files.controller.d.ts +0 -8
- package/dist/types/server/src/api/controllers/frameWorkers.controller.d.ts +0 -11
- package/dist/types/server/src/api/controllers/plugins.controller.d.ts +0 -48
- package/dist/types/server/src/api/controllers/system.controller.d.ts +0 -23
- package/dist/types/server/src/api/controllers/users.controller.d.ts +0 -28
- package/dist/types/server/src/api/database/checks.d.ts +0 -55
- package/dist/types/server/src/api/database/constants.d.ts +0 -8
- package/dist/types/server/src/api/database/index.d.ts +0 -30
- package/dist/types/server/src/api/database/migration.d.ts +0 -15
- package/dist/types/server/src/api/database/selfcheck.d.ts +0 -48
- package/dist/types/server/src/api/go2rtc/api/application.d.ts +0 -9
- package/dist/types/server/src/api/go2rtc/api/config.d.ts +0 -8
- package/dist/types/server/src/api/go2rtc/api/index.d.ts +0 -1
- package/dist/types/server/src/api/go2rtc/api/snapshot.d.ts +0 -8
- package/dist/types/server/src/api/go2rtc/api/streams.d.ts +0 -12
- package/dist/types/server/src/api/go2rtc/index.d.ts +0 -14
- package/dist/types/server/src/api/go2rtc/queue.d.ts +0 -10
- package/dist/types/server/src/api/index.d.ts +0 -22
- package/dist/types/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
- package/dist/types/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
- package/dist/types/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
- package/dist/types/server/src/api/middlewares/socketAuth.middleware.d.ts +0 -41
- package/dist/types/server/src/api/plugins/header.plugin.d.ts +0 -2
- package/dist/types/server/src/api/plugins/socket.plugin.d.ts +0 -11
- package/dist/types/server/src/api/plugins/system.plugin.d.ts +0 -20
- package/dist/types/server/src/api/plugins/useragent.plugin.d.ts +0 -8
- package/dist/types/server/src/api/routes/api.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/auth.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/backup.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/cameras.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/config.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/files.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/index.d.ts +0 -6
- package/dist/types/server/src/api/routes/plugins.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/system.routes.d.ts +0 -2
- package/dist/types/server/src/api/routes/users.routes.d.ts +0 -2
- package/dist/types/server/src/api/services/auth.service.d.ts +0 -24
- package/dist/types/server/src/api/services/backup.service.d.ts +0 -11
- package/dist/types/server/src/api/services/cameras.service.d.ts +0 -55
- package/dist/types/server/src/api/services/plugins.service.d.ts +0 -38
- package/dist/types/server/src/api/services/system.service.d.ts +0 -13
- package/dist/types/server/src/api/services/users.service.d.ts +0 -25
- package/dist/types/server/src/api/utils/cameraSource.d.ts +0 -6
- package/dist/types/server/src/api/utils/cert.d.ts +0 -11
- package/dist/types/server/src/api/utils/constants.d.ts +0 -13
- package/dist/types/server/src/api/utils/fetch.d.ts +0 -1
- package/dist/types/server/src/api/utils/moveFiles.d.ts +0 -4
- package/dist/types/server/src/api/utils/parse.d.ts +0 -2
- package/dist/types/server/src/api/websocket/go2rtc.d.ts +0 -21
- package/dist/types/server/src/api/websocket/index.d.ts +0 -16
- package/dist/types/server/src/api/websocket/nsp/logs.d.ts +0 -19
- package/dist/types/server/src/api/websocket/nsp/main.d.ts +0 -9
- package/dist/types/server/src/api/websocket/nsp/metrics.d.ts +0 -24
- package/dist/types/server/src/api/websocket/nsp/notifications.d.ts +0 -12
- package/dist/types/server/src/api/websocket/nsp/plugins.d.ts +0 -13
- package/dist/types/server/src/api/websocket/nsp/proxy.d.ts +0 -27
- package/dist/types/server/src/api/websocket/nsp/server.d.ts +0 -26
- package/dist/types/server/src/api/websocket/nsp/status.d.ts +0 -15
- package/dist/types/server/src/api.d.ts +0 -29
- package/dist/types/server/src/camera/controller.d.ts +0 -61
- package/dist/types/server/src/camera/frameWorker.d.ts +0 -45
- package/dist/types/server/src/go2rtc/index.d.ts +0 -25
- package/dist/types/server/src/main.d.ts +0 -25
- package/dist/types/server/src/nats/index.d.ts +0 -40
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +0 -22
- package/dist/types/server/src/nats/proxy/coreManager.d.ts +0 -14
- package/dist/types/server/src/nats/proxy/deviceManager.d.ts +0 -14
- package/dist/types/server/src/nats/server.d.ts +0 -38
- package/dist/types/server/src/nats/types.d.ts +0 -18
- package/dist/types/server/src/nats/utils.d.ts +0 -2
- package/dist/types/server/src/plugins/index.d.ts +0 -33
- package/dist/types/server/src/plugins/plugin.d.ts +0 -35
- package/dist/types/server/src/plugins/worker.d.ts +0 -55
- package/dist/types/server/src/services/config/constants.d.ts +0 -6
- package/dist/types/server/src/services/config/index.d.ts +0 -67
- package/dist/types/server/src/services/logger/index.d.ts +0 -16
- /package/dist/types/{packages/plugineer/src/polyglot/node → server/src}/camera/iou.d.ts +0 -0
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/common';
|
|
2
|
-
import type { CameraDeviceProxyMethods, CameraInterfaces, RefreshedStates } from '@camera.ui/plugineer';
|
|
3
|
-
import type { CameraConfigInputSettings, ProbeConfig, ProbeStream, SetValues } from '@camera.ui/types';
|
|
4
|
-
import type { MethodKeys, MethodType } from '../../types.js';
|
|
5
|
-
export declare class CameraDeviceProxy implements CameraDeviceProxyMethods {
|
|
6
|
-
private api;
|
|
7
|
-
private configService;
|
|
8
|
-
private camerasService;
|
|
9
|
-
private pluginsService;
|
|
10
|
-
private messageQueue;
|
|
11
|
-
constructor(messageQueue: MessageQueue);
|
|
12
|
-
connect(cameraId: string, pluginId: string): void;
|
|
13
|
-
disconnect(cameraId: string, pluginId: string): void;
|
|
14
|
-
updateState<T extends keyof SetValues>(stateName: T, eventData: SetValues[T], cameraId: string, pluginId: string): Promise<void>;
|
|
15
|
-
probeStream(sourceId: string, probeConfig: ProbeConfig | undefined, refresh: boolean, cameraId: string): Promise<ProbeStream | undefined>;
|
|
16
|
-
addCameraSource(source: CameraConfigInputSettings, cameraId: string, pluginId: string): Promise<void>;
|
|
17
|
-
updateCameraSource(sourceId: string, source: Partial<CameraConfigInputSettings>, cameraId: string, pluginId: string): Promise<void>;
|
|
18
|
-
removeCameraSource(sourceId: string, cameraId: string, pluginId: string): Promise<void>;
|
|
19
|
-
refreshStates(cameraId: string): RefreshedStates;
|
|
20
|
-
onRequest<T extends keyof CameraInterfaces, K extends MethodKeys<CameraInterfaces[T]>>(cameraId: string, client: T, fn: K, ...args: Parameters<MethodType<CameraInterfaces[T], K>>): Promise<Awaited<ReturnType<MethodType<CameraInterfaces[T], K>>> | void>;
|
|
21
|
-
requestHandler(message: ProxyMessageStructure): Promise<void | ProxyMessageStructure>;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/common';
|
|
2
|
-
import type { CoreManager, FfmpegArgs, IceServer } from '@camera.ui/types';
|
|
3
|
-
export declare class CoreManagerProxy implements CoreManager {
|
|
4
|
-
private configService;
|
|
5
|
-
private pluginsService;
|
|
6
|
-
private systemService;
|
|
7
|
-
private messageQueue;
|
|
8
|
-
constructor(messageQueue: MessageQueue);
|
|
9
|
-
getFFmpegPath(): Promise<string>;
|
|
10
|
-
getHwaccelInfo(targetCodec: 'h264' | 'h265'): Promise<FfmpegArgs>;
|
|
11
|
-
getServerAddresses(): Promise<string[]>;
|
|
12
|
-
getIceServers(): Promise<IceServer[]>;
|
|
13
|
-
requestHandler(message: ProxyMessageStructure): Promise<void | ProxyMessageStructure>;
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/common';
|
|
2
|
-
import type { Camera, CameraConfig, DeviceManager } from '@camera.ui/types';
|
|
3
|
-
export declare class DeviceManagerProxy implements DeviceManager {
|
|
4
|
-
private camerasService;
|
|
5
|
-
private pluginsService;
|
|
6
|
-
private messageQueue;
|
|
7
|
-
constructor(messageQueue: MessageQueue);
|
|
8
|
-
getCameraByName(cameraName: string): Promise<any>;
|
|
9
|
-
getCameraById(cameraId: string): Promise<any>;
|
|
10
|
-
createCamera(cameraConfig: CameraConfig, pluginId: string): Promise<Camera>;
|
|
11
|
-
removeCameraByName(cameraName: string, pluginId: string): Promise<void>;
|
|
12
|
-
removeCameraById(cameraId: string, pluginId: string): Promise<void>;
|
|
13
|
-
requestHandler(message: ProxyMessageStructure): Promise<void | ProxyMessageStructure>;
|
|
14
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RUNTIME_STATUS } from '../services/config/types.js';
|
|
2
|
-
import type { ProxyAuth } from './types.js';
|
|
3
|
-
export declare class NatsServer {
|
|
4
|
-
private readonly clusterAmount;
|
|
5
|
-
private readonly auth;
|
|
6
|
-
private serverPort;
|
|
7
|
-
private clusterPort;
|
|
8
|
-
private _endpoints;
|
|
9
|
-
private serverProcess?;
|
|
10
|
-
private clusterProcesses;
|
|
11
|
-
private logger;
|
|
12
|
-
private configService;
|
|
13
|
-
private tmpDir;
|
|
14
|
-
private config;
|
|
15
|
-
private manuallyKilled;
|
|
16
|
-
private shuttingDown;
|
|
17
|
-
private _status;
|
|
18
|
-
get status(): RUNTIME_STATUS;
|
|
19
|
-
get endpoints(): string[];
|
|
20
|
-
constructor(auth: ProxyAuth);
|
|
21
|
-
start(): Promise<void>;
|
|
22
|
-
private configServer;
|
|
23
|
-
private configClusters;
|
|
24
|
-
stop(): Promise<void>;
|
|
25
|
-
restart(): Promise<void>;
|
|
26
|
-
getPID(): number;
|
|
27
|
-
private startServer;
|
|
28
|
-
private startClusterServer;
|
|
29
|
-
private setupProcess;
|
|
30
|
-
private writeConfigFile;
|
|
31
|
-
private stringifyConfig;
|
|
32
|
-
private kill;
|
|
33
|
-
private handleClose;
|
|
34
|
-
private handleCloseCluster;
|
|
35
|
-
private setStatus;
|
|
36
|
-
private processLogger;
|
|
37
|
-
private isIgnorableString;
|
|
38
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { AuthConfig } from '@camera.ui/common';
|
|
2
|
-
import type { AudioDetectionPlugin, BasePlugin, MotionDetectionPlugin, ObjectDetectionPlugin } from '@camera.ui/types';
|
|
3
|
-
import type { VideoStreamingMode } from '../api/database/types.js';
|
|
4
|
-
export interface ProxyAuth {
|
|
5
|
-
cluster: AuthConfig;
|
|
6
|
-
server: AuthConfig;
|
|
7
|
-
}
|
|
8
|
-
export type WebsocketClientProxyEvent = 'updateDevice' | 'updateState';
|
|
9
|
-
export interface StreamPayload {
|
|
10
|
-
type: Exclude<VideoStreamingMode, 'auto' | 'webrtc' | 'webrtc/tcp'> | 'webrtc/offer' | 'webrtc/candidate';
|
|
11
|
-
value: string;
|
|
12
|
-
}
|
|
13
|
-
export interface PluginMap {
|
|
14
|
-
base: BasePlugin;
|
|
15
|
-
motionDetection: MotionDetectionPlugin;
|
|
16
|
-
objectDetection: ObjectDetectionPlugin;
|
|
17
|
-
audioDetection: AudioDetectionPlugin;
|
|
18
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import { Plugin } from './plugin.js';
|
|
3
|
-
import type { PluginContract } from '@camera.ui/plugineer';
|
|
4
|
-
import type { IPackageJson } from '../api/types/index.js';
|
|
5
|
-
export declare class PluginManager {
|
|
6
|
-
private logger;
|
|
7
|
-
private api;
|
|
8
|
-
private configService;
|
|
9
|
-
installedPythonVersions: Set<string>;
|
|
10
|
-
searchPaths: Set<string>;
|
|
11
|
-
plugins: Map<string, Plugin>;
|
|
12
|
-
pluginIdentifiers: Set<string>;
|
|
13
|
-
constructor();
|
|
14
|
-
static isQualifiedPluginIdentifier(pluginName: string): boolean;
|
|
15
|
-
static isQualifiedPluginContract(contract?: Partial<PluginContract>): boolean;
|
|
16
|
-
static extractPluginScope(pluginName: string): string | undefined;
|
|
17
|
-
static extractPluginName(pluginName: string): string;
|
|
18
|
-
static transformDisplaName(pluginName: string): string;
|
|
19
|
-
static loadPackageJSON(installPath: string): IPackageJson;
|
|
20
|
-
static parseContract(pjson: IPackageJson): PluginContract;
|
|
21
|
-
initializeInstalledPlugins(): Promise<void>;
|
|
22
|
-
initializeInstalledPlugin(plugin: Plugin): Promise<void>;
|
|
23
|
-
loadPlugin(absolutePath: string, oldId?: string): Promise<Plugin>;
|
|
24
|
-
removePlugin(plugin: Plugin, removeStorage?: boolean): Promise<void>;
|
|
25
|
-
startPluginChild(pluginName: string): Promise<void>;
|
|
26
|
-
stopPluginChild(pluginName: string): Promise<void>;
|
|
27
|
-
initializePlugins(): Promise<void>;
|
|
28
|
-
private installRequiredPythonEnvs;
|
|
29
|
-
private loadInstalledPlugins;
|
|
30
|
-
private restorePlugins;
|
|
31
|
-
private removeOrphanedPlugins;
|
|
32
|
-
private handleDisabledPlugins;
|
|
33
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PluginWorker } from './worker.js';
|
|
2
|
-
import type { PluginContract } from '@camera.ui/plugineer';
|
|
3
|
-
import type { CameraExtension } from '@camera.ui/types';
|
|
4
|
-
import type { CameraUiPlugin, IPackageJson } from '../api/types/index.js';
|
|
5
|
-
export declare class Plugin {
|
|
6
|
-
private logger;
|
|
7
|
-
private configService;
|
|
8
|
-
private _disabled;
|
|
9
|
-
private _info;
|
|
10
|
-
private _contract;
|
|
11
|
-
private loadContext;
|
|
12
|
-
readonly id: string;
|
|
13
|
-
readonly main: string;
|
|
14
|
-
readonly pluginName: string;
|
|
15
|
-
readonly displayName: string;
|
|
16
|
-
readonly scope?: string;
|
|
17
|
-
readonly isPython: boolean;
|
|
18
|
-
readonly isSymLink: boolean;
|
|
19
|
-
readonly installPath: string;
|
|
20
|
-
readonly configFile: string;
|
|
21
|
-
readonly storagePath: string;
|
|
22
|
-
readonly logPath: string;
|
|
23
|
-
readonly worker: PluginWorker;
|
|
24
|
-
get contract(): PluginContract;
|
|
25
|
-
get info(): CameraUiPlugin;
|
|
26
|
-
set info(value: CameraUiPlugin);
|
|
27
|
-
get disabled(): boolean;
|
|
28
|
-
set disabled(value: boolean);
|
|
29
|
-
get type(): CameraExtension[];
|
|
30
|
-
constructor(pluginName: string, installPath: string, packageJSON: IPackageJson, pluginId: string, scope?: string);
|
|
31
|
-
load(): Promise<void>;
|
|
32
|
-
reparsePackageJson(): void;
|
|
33
|
-
private parsePackageJson;
|
|
34
|
-
private getMainFile;
|
|
35
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { PLUGIN_STATUS } from '@camera.ui/plugineer';
|
|
2
|
-
import type { Plugin } from './plugin.js';
|
|
3
|
-
export declare class PluginWorker {
|
|
4
|
-
plugin: Plugin;
|
|
5
|
-
private pluginWorker?;
|
|
6
|
-
private proxyServer;
|
|
7
|
-
private logStream?;
|
|
8
|
-
private api;
|
|
9
|
-
private mainLogger;
|
|
10
|
-
private pluginLogger;
|
|
11
|
-
private processLogger;
|
|
12
|
-
private configService;
|
|
13
|
-
private socketService;
|
|
14
|
-
private pluginManager;
|
|
15
|
-
private py;
|
|
16
|
-
private publisher?;
|
|
17
|
-
private subscriber?;
|
|
18
|
-
private subject;
|
|
19
|
-
private targetSubject;
|
|
20
|
-
private started;
|
|
21
|
-
private shuttingDown;
|
|
22
|
-
private truncateInterval?;
|
|
23
|
-
private truncateIntervalMs;
|
|
24
|
-
private logBuffer;
|
|
25
|
-
private _status;
|
|
26
|
-
get status(): PLUGIN_STATUS;
|
|
27
|
-
constructor(plugin: Plugin);
|
|
28
|
-
start(): Promise<void>;
|
|
29
|
-
teardown(): Promise<void>;
|
|
30
|
-
destroy(): Promise<void>;
|
|
31
|
-
restart(): Promise<void>;
|
|
32
|
-
disable(): void;
|
|
33
|
-
getPID(): number;
|
|
34
|
-
isRunning(): boolean;
|
|
35
|
-
isReady(): boolean;
|
|
36
|
-
cleanup(): Promise<void>;
|
|
37
|
-
writeLog(...args: any[]): void;
|
|
38
|
-
private gatherDevices;
|
|
39
|
-
private kill;
|
|
40
|
-
private setStatus;
|
|
41
|
-
private sendMessage;
|
|
42
|
-
private handleClose;
|
|
43
|
-
private reset;
|
|
44
|
-
private updatePython;
|
|
45
|
-
private onChildMessage;
|
|
46
|
-
private createPythonPath;
|
|
47
|
-
private handleLogData;
|
|
48
|
-
private processLogEntry;
|
|
49
|
-
private writeProcessLog;
|
|
50
|
-
private writeHeader;
|
|
51
|
-
private closeLogStream;
|
|
52
|
-
private removeLogStream;
|
|
53
|
-
private truncateLog;
|
|
54
|
-
private cleanedProcessEnv;
|
|
55
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IceServer } from '@camera.ui/types';
|
|
2
|
-
import type { Go2RtcConfig, IConfig } from './types.js';
|
|
3
|
-
export declare const PROCESS_IDENTIFIER = "--id=camera.ui";
|
|
4
|
-
export declare const DEFAULT_ICE_SERVERS: IceServer[];
|
|
5
|
-
export declare const DEFAULT_CONFIG: IConfig;
|
|
6
|
-
export declare const DEFAULT_GO2RTC_CONFIG: Go2RtcConfig;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import type { LoggerOptions } from '@camera.ui/common/logger';
|
|
3
|
-
import type { ProcInfo } from '../../api/database/checks.js';
|
|
4
|
-
import type { DeepPartial } from '../../types.js';
|
|
5
|
-
import type { EnvironmentInfo, Go2RtcConfig, IConfig, Secrets } from './types.js';
|
|
6
|
-
export declare class ConfigService {
|
|
7
|
-
static get VERSION(): string;
|
|
8
|
-
static get ENVIRONMENT(): EnvironmentInfo;
|
|
9
|
-
static readonly NODE_VERSION: string;
|
|
10
|
-
static readonly MIN_NODE_VERSION: string;
|
|
11
|
-
static readonly SERVER_PATH: string;
|
|
12
|
-
static readonly INTERFACE_PATH: string;
|
|
13
|
-
private logger;
|
|
14
|
-
private _config;
|
|
15
|
-
private _go2rtcConfig;
|
|
16
|
-
readonly SECRETS: Secrets;
|
|
17
|
-
readonly HOME_PATH: string;
|
|
18
|
-
readonly STORAGE_PATH: string;
|
|
19
|
-
readonly LOGS_PATH: string;
|
|
20
|
-
readonly PIDS_FILE: string;
|
|
21
|
-
readonly DATABASE_PATH: string;
|
|
22
|
-
readonly TOKENS_PATH: string;
|
|
23
|
-
readonly USERS_STORAGE_PATH: string;
|
|
24
|
-
readonly TMP_PATH: string;
|
|
25
|
-
readonly PLUGINS_STORAGE_PATH: string;
|
|
26
|
-
readonly PLUGINS_INSTALL_PATH: string;
|
|
27
|
-
readonly REPORTS_FILE: string;
|
|
28
|
-
readonly LOG_FILE: string;
|
|
29
|
-
readonly CONFIG_FILE: string;
|
|
30
|
-
readonly SECRETS_FILE: string;
|
|
31
|
-
readonly ADMIN_FILE: string;
|
|
32
|
-
readonly GO2RTC_BINARY: string;
|
|
33
|
-
readonly GO2RTC_CONFIG_FILE: string;
|
|
34
|
-
readonly NATS_BINARY: string;
|
|
35
|
-
readonly BACKUP_INFO_FILE: string;
|
|
36
|
-
readonly UI_PORT: number;
|
|
37
|
-
get config(): IConfig;
|
|
38
|
-
set config(newConfig: IConfig);
|
|
39
|
-
get go2rtcConfig(): Go2RtcConfig;
|
|
40
|
-
set go2rtcConfig(newConfig: Go2RtcConfig);
|
|
41
|
-
get loggerOptions(): LoggerOptions;
|
|
42
|
-
constructor(homePath?: string);
|
|
43
|
-
static extractVersion(str: string): string | null;
|
|
44
|
-
read(): void;
|
|
45
|
-
writeConfig(newConfig?: DeepPartial<IConfig>): void;
|
|
46
|
-
writeGo2RtcConfigFile(newConfig?: DeepPartial<Go2RtcConfig>): void;
|
|
47
|
-
writeGo2RtcConfigApi(newConfig?: DeepPartial<Go2RtcConfig>): Promise<void>;
|
|
48
|
-
mergeGo2RtcConfig(): Promise<void>;
|
|
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;
|
|
54
|
-
private defaultConfig;
|
|
55
|
-
private defaultGo2RtcConfig;
|
|
56
|
-
private readConfig;
|
|
57
|
-
private readGo2RtcConfig;
|
|
58
|
-
private cleanupConfig;
|
|
59
|
-
private updateConfig;
|
|
60
|
-
private updateGo2RtcConfig;
|
|
61
|
-
private updateSecrets;
|
|
62
|
-
private createDirs;
|
|
63
|
-
private safetyEnsureDir;
|
|
64
|
-
private safetyEmptyDir;
|
|
65
|
-
private safetyEnsureFile;
|
|
66
|
-
private logStart;
|
|
67
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import 'reflect-metadata';
|
|
2
|
-
import { Logger } from '@camera.ui/common/logger';
|
|
3
|
-
import type { LoggerOptions } from '@camera.ui/common/logger';
|
|
4
|
-
import type { UiNotification } from '../../api/types/index.js';
|
|
5
|
-
import type { LoggingLevel } from '../config/types.js';
|
|
6
|
-
export declare class LoggerService extends Logger {
|
|
7
|
-
notifications: UiNotification[];
|
|
8
|
-
constructor(options?: LoggerOptions);
|
|
9
|
-
notify(title: string, text: string, type: LoggingLevel, link: string): UiNotification | undefined;
|
|
10
|
-
notify(notification: UiNotification): UiNotification | undefined;
|
|
11
|
-
removeNotification(id: string, notify: boolean): void;
|
|
12
|
-
removeNotification(notification: UiNotification, notify: boolean): void;
|
|
13
|
-
clearNotifications(notifiy: boolean): void;
|
|
14
|
-
createNotification(id: string | undefined, title: string, text: string, type: LoggingLevel, link: string): UiNotification;
|
|
15
|
-
private checkIfNotificationExists;
|
|
16
|
-
}
|
|
File without changes
|