@camera.ui/browser 0.0.98 → 0.0.100
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/coreManager.d.ts +1 -1
- package/dist/types/packages/client/browser/src/streaming/go2rts-session.d.ts +5 -1
- package/dist/types/packages/client/browser/src/types.d.ts +1 -1
- package/dist/types/packages/plugineer/src/polyglot/node/camera/index.d.ts +2 -2
- package/dist/types/packages/plugineer/src/polyglot/node/camera/iou.d.ts +1 -1
- package/dist/types/packages/plugineer/src/polyglot/node/camera/polygon.d.ts +1 -1
- package/dist/types/packages/plugineer/src/polyglot/node/plugins/types.d.ts +1 -1
- package/dist/types/packages/types/src/index.d.ts +6 -4
- package/dist/types/server/src/api/database/index.d.ts +1 -1
- package/dist/types/server/src/api/database/types.d.ts +2 -1
- package/dist/types/server/src/api/go2rtc/api/streams.d.ts +1 -1
- package/dist/types/server/src/api/go2rtc/types.d.ts +2 -18
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +29 -15
- package/dist/types/server/src/api/schemas/users.schema.d.ts +34 -34
- package/dist/types/server/src/api/types/index.d.ts +7 -0
- package/dist/types/server/src/api/websocket/nsp/server.d.ts +8 -3
- package/dist/types/server/src/camera/controller.d.ts +1 -1
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +1 -1
- package/dist/types/server/src/nats/proxy/coreManager.d.ts +1 -1
- package/dist/types/server/src/plugins/index.d.ts +1 -0
- package/dist/types/server/src/plugins/worker.d.ts +1 -0
- package/dist/types/shared/types/index.d.ts +1 -0
- package/package.json +6 -6
|
@@ -219,6 +219,11 @@ export type CamerasParamsRequest = {
|
|
|
219
219
|
cameraname: string;
|
|
220
220
|
};
|
|
221
221
|
};
|
|
222
|
+
export type CameraSnapshotQueryRequest = {
|
|
223
|
+
Querystring: {
|
|
224
|
+
forceNew?: boolean;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
222
227
|
export type CameraSourceParamsRequest = {
|
|
223
228
|
Params: {
|
|
224
229
|
sourcename: string;
|
|
@@ -401,6 +406,7 @@ export interface ConsoleSettings {
|
|
|
401
406
|
zoom: number;
|
|
402
407
|
}
|
|
403
408
|
export type CamviewSettingsLayoutMode = 'dnd' | 'view';
|
|
409
|
+
export type SettingsViews = 'account' | 'appearance' | 'user' | 'recordings' | 'backup' | 'system';
|
|
404
410
|
export interface CamviewSettings {
|
|
405
411
|
dragDisabled?: boolean;
|
|
406
412
|
viewid?: string;
|
|
@@ -410,6 +416,7 @@ export interface CamerasSettings {
|
|
|
410
416
|
}
|
|
411
417
|
export interface InterfaceSettinges {
|
|
412
418
|
showBottomBarOnMobile: boolean;
|
|
419
|
+
selectedSettingsView: SettingsViews;
|
|
413
420
|
}
|
|
414
421
|
export interface UiSettingsLocalStorage {
|
|
415
422
|
cameras: CamerasSettings;
|
|
@@ -8,14 +8,19 @@ export declare class ServerNamespace {
|
|
|
8
8
|
private pluginsService;
|
|
9
9
|
private serverUpdate;
|
|
10
10
|
private pluginUpdates;
|
|
11
|
+
private checkPluginUpdateInterval;
|
|
12
|
+
private checkServerUpdateInterval;
|
|
11
13
|
constructor(io: Server);
|
|
12
14
|
getUpdates(payload?: any, callback?: Function): {
|
|
13
15
|
server?: INpmPluginState;
|
|
14
16
|
plugins: INpmPluginState[];
|
|
15
17
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
checkPlugins(interval?: boolean): Promise<void>;
|
|
19
|
+
checkServer(interval?: boolean): Promise<void>;
|
|
20
|
+
private checkServerUpdate;
|
|
21
|
+
private checkPluginUpdates;
|
|
19
22
|
private getPluginFromNpm;
|
|
20
23
|
private getAvailablePluginVersions;
|
|
24
|
+
restartPluginInterval(timer?: number): void;
|
|
25
|
+
restartServerInterval(timer?: number): void;
|
|
21
26
|
}
|
|
@@ -26,7 +26,7 @@ export declare class CameraController extends CameraDevice {
|
|
|
26
26
|
connect(): Promise<void>;
|
|
27
27
|
disconnect(): Promise<void>;
|
|
28
28
|
updateState<T extends keyof SetValues>(stateName: T, eventData: SetValues[T]): Promise<void>;
|
|
29
|
-
probeStream(sourceId: string): Promise<ProbeStream | undefined>;
|
|
29
|
+
probeStream(sourceId: string, refresh?: boolean): Promise<ProbeStream | undefined>;
|
|
30
30
|
addCameraSource(source: CameraConfigInputSettings): Promise<void>;
|
|
31
31
|
updateCameraSource(sourceId: string, source: Partial<CameraConfigInputSettings>): Promise<void>;
|
|
32
32
|
removeCameraSource(sourceId: string): Promise<void>;
|
|
@@ -11,7 +11,7 @@ export declare class CameraDeviceProxy implements CameraDeviceProxyMethods {
|
|
|
11
11
|
connect(cameraId: string, pluginId: string): void;
|
|
12
12
|
disconnect(cameraId: string, pluginId: string): void;
|
|
13
13
|
updateState<T extends keyof SetValues>(stateName: T, eventData: SetValues[T], cameraId: string, pluginId: string): Promise<void>;
|
|
14
|
-
probeStream(sourceId: string, cameraId: string): Promise<ProbeStream | undefined>;
|
|
14
|
+
probeStream(sourceId: string, refresh: boolean, cameraId: string): Promise<ProbeStream | undefined>;
|
|
15
15
|
addCameraSource(source: CameraConfigInputSettings, cameraId: string, pluginId: string): Promise<void>;
|
|
16
16
|
updateCameraSource(sourceId: string, source: Partial<CameraConfigInputSettings>, cameraId: string, pluginId: string): Promise<void>;
|
|
17
17
|
removeCameraSource(sourceId: string, cameraId: string, pluginId: string): Promise<void>;
|
|
@@ -7,7 +7,7 @@ export declare class CoreManagerProxy implements CoreManager {
|
|
|
7
7
|
private messageQueue;
|
|
8
8
|
constructor(messageQueue: MessageQueue);
|
|
9
9
|
getFFmpegPath(): Promise<string>;
|
|
10
|
-
getHwaccelInfo(): Promise<FfmpegArgs>;
|
|
10
|
+
getHwaccelInfo(targetCodec: 'h264' | 'h265'): Promise<FfmpegArgs>;
|
|
11
11
|
getServerAddresses(): Promise<string[]>;
|
|
12
12
|
getIceServers(): Promise<IceServer[]>;
|
|
13
13
|
requestHandler(message: ProxyMessageStructure): Promise<void | ProxyMessageStructure>;
|
|
@@ -5,6 +5,7 @@ export * from '../../packages/plugineer/src/polyglot/node/plugins/types.js';
|
|
|
5
5
|
export type * from '../../packages/plugineer/src/utils/messageQueue.js';
|
|
6
6
|
export * from '../../packages/types/src/index.js';
|
|
7
7
|
export type * from '../../server/src/api/database/types.js';
|
|
8
|
+
export type * from '../../server/src/api/go2rtc/types.js';
|
|
8
9
|
export * from '../../server/src/api/schemas/cameras.schema.js';
|
|
9
10
|
export * from '../../server/src/api/schemas/plugins.schema.js';
|
|
10
11
|
export * from '../../server/src/api/schemas/system.schema.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.100",
|
|
4
4
|
"description": "camera.ui browser client",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"module": "./dist/bundle.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@isaacs/ttlcache": "^1.4.1",
|
|
29
29
|
"rxjs": "^7.8.1",
|
|
30
|
-
"socket.io-client": "^4.
|
|
30
|
+
"socket.io-client": "^4.8.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@rushstack/eslint-patch": "^1.10.4",
|
|
34
34
|
"@swc/register": "^0.1.10",
|
|
35
|
-
"@types/webrtc": "^0.0.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
37
|
-
"@typescript-eslint/parser": "^8.
|
|
35
|
+
"@types/webrtc": "^0.0.44",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
|
37
|
+
"@typescript-eslint/parser": "^8.8.0",
|
|
38
38
|
"bufferutil": "^4.0.8",
|
|
39
39
|
"eslint": "^8.57.0",
|
|
40
40
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.6.2",
|
|
46
46
|
"updates": "^16.4.0",
|
|
47
47
|
"utf-8-validate": "^6.0.4",
|
|
48
|
-
"webpack": "^5.
|
|
48
|
+
"webpack": "^5.95.0",
|
|
49
49
|
"webpack-cli": "^5.1.4"
|
|
50
50
|
},
|
|
51
51
|
"bugs": {
|