@camera.ui/browser 0.0.91 → 0.0.93
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/proxy/cameraDevice.d.ts +6 -6
- package/dist/types/packages/client/browser/src/proxy/coreManager.d.ts +2 -1
- package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +1 -2
- package/dist/types/packages/client/browser/src/types.d.ts +11 -3
- package/dist/types/packages/common/src/messaging/index.d.ts +48 -0
- package/dist/types/packages/common/src/nats/index.d.ts +30 -0
- package/dist/types/{server/src → packages/plugineer/src/polyglot/node}/camera/index.d.ts +4 -5
- package/dist/types/packages/plugineer/src/polyglot/node/camera/interfaces/camera.d.ts +8 -0
- package/dist/types/{server/src → packages/plugineer/src/polyglot/node}/camera/interfaces/prebuffer.d.ts +3 -5
- package/dist/types/{server/src → packages/plugineer/src/polyglot/node}/camera/interfaces/ptz.d.ts +3 -5
- package/dist/types/{server/src → packages/plugineer/src/polyglot/node}/camera/iou.d.ts +1 -1
- package/dist/types/{server/src → packages/plugineer/src/polyglot/node}/camera/polygon.d.ts +1 -2
- package/dist/types/{server → packages/plugineer}/src/polyglot/node/plugins/schema.d.ts +1 -1
- package/dist/types/server/src/api/database/constants.d.ts +8 -0
- package/dist/types/server/src/api/database/index.d.ts +0 -8
- package/dist/types/server/src/api/database/types.d.ts +6 -6
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +117 -117
- package/dist/types/server/src/api/schemas/config.schema.d.ts +6 -6
- package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +84 -84
- package/dist/types/server/src/api/schemas/users.schema.d.ts +150 -150
- package/dist/types/server/src/api/types/index.d.ts +2 -2
- package/dist/types/server/src/api.d.ts +1 -7
- package/dist/types/server/src/camera/controller.d.ts +4 -6
- package/dist/types/server/src/camera/types.d.ts +140 -13
- package/dist/types/server/src/decoder/types.d.ts +1 -18
- package/dist/types/server/src/decoder/worker.d.ts +2 -2
- package/dist/types/server/src/nats/index.d.ts +3 -4
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +2 -2
- package/dist/types/server/src/nats/proxy/coreManager.d.ts +2 -2
- package/dist/types/server/src/nats/proxy/deviceManager.d.ts +5 -5
- package/dist/types/server/src/nats/types.d.ts +17 -32
- package/dist/types/server/src/nats/utils.d.ts +1 -1
- package/dist/types/server/src/plugins/interfaces/base.d.ts +1 -1
- package/dist/types/server/src/plugins/plugin.d.ts +1 -1
- package/dist/types/server/src/plugins/types.d.ts +36 -3
- package/dist/types/server/src/services/config/index.d.ts +2 -0
- package/dist/types/server/src/services/logger/index.d.ts +4 -16
- package/dist/types/shared/types/index.d.ts +5 -3
- package/package.json +2 -2
- package/dist/types/server/src/camera/device.d.ts +0 -29
- package/dist/types/server/src/camera/interfaces/camera.d.ts +0 -10
- package/dist/types/server/src/camera/streaming/peer-connection.d.ts +0 -55
- package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +0 -35
- package/dist/types/server/src/camera/streaming/werift-session.d.ts +0 -41
- package/dist/types/server/src/camera/videoFrame.d.ts +0 -24
- package/dist/types/server/src/nats/connection.d.ts +0 -17
- package/dist/types/server/src/nats/constants.d.ts +0 -1
- package/dist/types/server/src/nats/error.d.ts +0 -9
- package/dist/types/server/src/nats/messageQueue.d.ts +0 -20
- package/dist/types/server/src/nats/subscription.d.ts +0 -12
- package/dist/types/server/src/polyglot/node/plugins/cameraStorage.d.ts +0 -107
- package/dist/types/server/src/polyglot/node/plugins/configService.d.ts +0 -104
- package/dist/types/server/src/polyglot/node/plugins/pluginApi.d.ts +0 -35
- package/dist/types/server/src/polyglot/node/plugins/pluginLogger.d.ts +0 -18
- package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +0 -69
- package/dist/types/server/src/polyglot/node/plugins/proxy/coreManager.d.ts +0 -40
- package/dist/types/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +0 -47
- package/dist/types/server/src/polyglot/node/plugins/storageController.d.ts +0 -30
- package/dist/types/server/src/utils/ffmpeg.d.ts +0 -2
- package/dist/types/server/src/utils/network.d.ts +0 -12
- package/dist/types/server/src/utils/npm.d.ts +0 -4
- package/dist/types/server/src/utils/pythonInstaller.d.ts +0 -48
- package/dist/types/server/src/utils/utils.d.ts +0 -10
- /package/dist/types/{server/src/utils/packer.d.ts → packages/common/src/packer/index.d.ts} +0 -0
- /package/dist/types/{server → packages/common}/src/utils/subscribed.d.ts +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CameraStorage } from './cameraStorage.js';
|
|
2
|
-
import type { RootDatabase } from 'lmdb';
|
|
3
|
-
import type { JsonSchemaForm } from '../../../plugins/types.js';
|
|
4
|
-
import type { API } from './pluginApi.js';
|
|
5
|
-
export declare class StorageController {
|
|
6
|
-
private api;
|
|
7
|
-
private pluginDb;
|
|
8
|
-
private cameraStorages;
|
|
9
|
-
constructor(api: API, pluginDb: RootDatabase<Record<string, any>, 'config'>);
|
|
10
|
-
/**
|
|
11
|
-
* Create a camera storage instance
|
|
12
|
-
*
|
|
13
|
-
* @param instance - The plugin instance
|
|
14
|
-
* @param cameraId - The camera id
|
|
15
|
-
* @param schema - The plugin schema
|
|
16
|
-
*/
|
|
17
|
-
createCameraStorage<T extends Record<string, any> = Record<string, any>>(instance: any, cameraId: string, schema?: JsonSchemaForm): CameraStorage<T>;
|
|
18
|
-
/**
|
|
19
|
-
* Get a camera storage instance
|
|
20
|
-
*
|
|
21
|
-
* @param cameraId - The camera id
|
|
22
|
-
*/
|
|
23
|
-
getCameraStorage<T extends Record<string, any> = Record<string, any>>(cameraId: string): CameraStorage<T> | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Remove a camera storage instance
|
|
26
|
-
*
|
|
27
|
-
* @param cameraId - The camera id
|
|
28
|
-
*/
|
|
29
|
-
removeCameraStorage(cameraId: string): void;
|
|
30
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Systeminformation } from 'systeminformation';
|
|
2
|
-
export type IPVersion = 'ipv4' | 'ipv6';
|
|
3
|
-
export interface UsableNetworkAddress {
|
|
4
|
-
address: string;
|
|
5
|
-
isPrivate: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const isIPv4EmbeddedIPv6: (ip: string) => boolean;
|
|
8
|
-
export declare const extractPureIPAddress: (address: string) => string;
|
|
9
|
-
export declare const isValidNetworkAddress: (ip: string) => boolean;
|
|
10
|
-
export declare const isInternalNetworkAddress: (ip: string) => boolean;
|
|
11
|
-
export declare const fetchViableNetworkAddresses: () => UsableNetworkAddress[];
|
|
12
|
-
export declare const getSystemNetworkInterfaces: () => Promise<Systeminformation.NetworkInterfacesData[]>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function getNpmPath(): string[];
|
|
2
|
-
export declare function getNpmGlobalModulesDirectory(): string | null;
|
|
3
|
-
export declare function getInstallDir(currentDir: string, moduleName: string): string;
|
|
4
|
-
export declare function getUserHomeDir(asUser?: string): string;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { PortablePython } from '@bjia56/portable-python';
|
|
2
|
-
import { PluginLogger } from '../polyglot/node/plugins/pluginLogger.js';
|
|
3
|
-
export declare const SERVER_PY_VERSION = "3.11";
|
|
4
|
-
export declare class PythonInstaller {
|
|
5
|
-
static readonly versions: string[];
|
|
6
|
-
logger: PluginLogger;
|
|
7
|
-
readonly python: PortablePython;
|
|
8
|
-
readonly venvPath?: string;
|
|
9
|
-
readonly installPath: string;
|
|
10
|
-
private identifier;
|
|
11
|
-
private configService;
|
|
12
|
-
private needsUpdate;
|
|
13
|
-
get isInstalled(): boolean;
|
|
14
|
-
get pluginPythonPath(): string;
|
|
15
|
-
get serverPythonPath(): string;
|
|
16
|
-
get pluginPackagesPath(): string;
|
|
17
|
-
get serverPackagesPath(): string;
|
|
18
|
-
get version(): string;
|
|
19
|
-
private get logPrefix();
|
|
20
|
-
constructor(identifier: string, venvDir?: string, version?: string);
|
|
21
|
-
install(type: 'plugin' | 'server'): Promise<void>;
|
|
22
|
-
installPluginPython(): Promise<void>;
|
|
23
|
-
uninstall(): Promise<void>;
|
|
24
|
-
updatePluginDependencies(requirementsPath: string): Promise<void>;
|
|
25
|
-
updateServerDependencies(): Promise<void>;
|
|
26
|
-
installPluginPackages(pkgs: string[]): Promise<string>;
|
|
27
|
-
installServerPackages(pkgs: string[]): Promise<string>;
|
|
28
|
-
reinstallPluginPackes(pkgs: string[]): Promise<string>;
|
|
29
|
-
reinstallServerPackages(pkgs: string[]): Promise<string>;
|
|
30
|
-
uninstallPluginPackages(pkgs: string[]): Promise<string>;
|
|
31
|
-
uninstallServerPackages(pkgs: string[]): Promise<string>;
|
|
32
|
-
private installPluginRequirements;
|
|
33
|
-
private installServerRequirements;
|
|
34
|
-
private updateRequirements;
|
|
35
|
-
private analyzeDependencies;
|
|
36
|
-
private updateDependencies;
|
|
37
|
-
private installRequirements;
|
|
38
|
-
private installPackages;
|
|
39
|
-
private uninstallPackages;
|
|
40
|
-
private reinstallPackages;
|
|
41
|
-
private ensureVenv;
|
|
42
|
-
private createVenv;
|
|
43
|
-
private removeVenv;
|
|
44
|
-
private removeOldVersions;
|
|
45
|
-
private getMajorMinorVersion;
|
|
46
|
-
private cleanPackageName;
|
|
47
|
-
private difference;
|
|
48
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type Customizer<TObject, TSource> = (objValue: any, srcValue: any, key: string, object: TObject, source: TSource, stack: any[]) => any;
|
|
2
|
-
export declare const toQuery: (data: any) => string;
|
|
3
|
-
export declare const toData: (query: string) => Record<string, any>;
|
|
4
|
-
export declare const isJson: (str: any) => boolean;
|
|
5
|
-
export declare const sleep: (ms: number) => Promise<void>;
|
|
6
|
-
export declare const isEqual: (first: any, second: any, ignoreOrder?: boolean) => boolean;
|
|
7
|
-
export declare const mergeWith: <TObject, TSource>(object: TObject, source: TSource, customizer: Customizer<TObject, TSource>, stack?: any[]) => TObject & TSource;
|
|
8
|
-
export declare const orderBy: (array: any[], keys: string[], orders: ("asc" | "desc")[]) => any[];
|
|
9
|
-
export declare const structuredClone: <T>(obj: T) => T;
|
|
10
|
-
export declare const createSourceName: (cameraName: string, sourceName: string) => string;
|
|
File without changes
|
|
File without changes
|