@camera.ui/browser 0.0.44 → 0.0.45
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/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.browser.d.ts +2 -2
- package/dist/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.node.d.ts +2 -2
- package/dist/{client → packages/client}/node/src/proxy/deviceManager.d.ts +3 -2
- package/dist/{client → packages/client}/node/src/proxy/pluginsManager.d.ts +3 -2
- package/dist/{client → packages/client}/node/src/proxy/systemManager.d.ts +3 -2
- package/dist/{client → packages/client}/node/src/socket.d.ts +1 -1
- package/dist/{client → packages/client}/node/src/types.d.ts +3 -3
- package/dist/server/bin/python.d.ts +26 -0
- package/dist/{src → server/src}/api/database/index.d.ts +1 -1
- package/dist/{src → server/src}/api/database/types.d.ts +1 -1
- package/dist/{src → server/src}/api/go2rtc/api/streams.d.ts +1 -1
- package/dist/{src → server/src}/api/schemas/cameras.schema.d.ts +39 -39
- package/dist/{src → server/src}/api/schemas/users.schema.d.ts +84 -84
- package/dist/{src → server/src}/api/services/cameras.service.d.ts +1 -1
- package/dist/{src → server/src}/api/types/index.d.ts +8 -7
- package/dist/{src → server/src}/api/ws/nsp/logs.d.ts +1 -1
- package/dist/{src → server/src}/api/ws/nsp/main.d.ts +1 -1
- package/dist/{src → server/src}/api/ws/nsp/metrics.d.ts +2 -2
- package/dist/{src → server/src}/api/ws/nsp/notifications.d.ts +1 -1
- package/dist/{src → server/src}/api/ws/nsp/plugins.d.ts +2 -2
- package/dist/{src → server/src}/api/ws/nsp/status.d.ts +2 -2
- package/dist/{src → server/src}/api/ws/nsp/streams.d.ts +1 -1
- package/dist/{src → server/src}/api.d.ts +4 -6
- package/dist/{src → server/src}/camera/index.d.ts +3 -4
- package/dist/{src → server/src}/camera/streaming/browser/browser-peer-connection.d.ts +1 -1
- package/dist/{src → server/src}/camera/streaming/browser/browser-streaming-session.d.ts +1 -1
- package/dist/{src → server/src}/camera/streaming/browser/webrtc-browser-connection.d.ts +1 -1
- package/dist/{src → server/src}/camera/streaming/peer-connection.d.ts +3 -3
- package/dist/{src → server/src}/camera/streaming/streaming-session.d.ts +2 -2
- package/dist/{src → server/src}/camera/streaming/webrtc-connection.d.ts +1 -1
- package/dist/{src → server/src}/camera/types.d.ts +3 -3
- package/dist/{src → server/src}/go2rtc/index.d.ts +2 -1
- package/dist/{src → server/src}/plugins/index.d.ts +4 -9
- package/dist/{src/plugins → server/src/plugins/node}/api.d.ts +13 -7
- package/dist/{src/plugins → server/src/plugins/node}/cameraStorage.d.ts +3 -3
- package/dist/{src/plugins → server/src/plugins/node}/config.d.ts +1 -10
- package/dist/server/src/plugins/node/logger.d.ts +11 -0
- package/dist/{src/proxy/client → server/src/plugins/node/proxy}/cameraDevice.d.ts +8 -7
- package/dist/server/src/plugins/node/proxy/deviceManager.d.ts +45 -0
- package/dist/server/src/plugins/node/proxy/pluginsManager.d.ts +36 -0
- package/dist/{src/proxy/client → server/src/plugins/node/proxy}/queue.d.ts +4 -3
- package/dist/server/src/plugins/node/proxy/systemManager.d.ts +34 -0
- package/dist/{src/plugins → server/src/plugins/node}/schema.d.ts +4 -4
- package/dist/{src/plugins → server/src/plugins/node}/storageController.d.ts +3 -3
- package/dist/{src → server/src}/plugins/plugin.d.ts +13 -8
- package/dist/{src → server/src}/plugins/types.d.ts +14 -8
- package/dist/server/src/plugins/worker-ipc.d.ts +16 -0
- package/dist/{src → server/src}/plugins/worker.d.ts +5 -1
- package/dist/{src/proxy/proxies/server.d.ts → server/src/proxy/api.d.ts} +5 -5
- package/dist/{src/proxy/proxies → server/src/proxy}/camera.d.ts +5 -6
- package/dist/{src → server/src}/proxy/constants.d.ts +1 -1
- package/dist/{src → server/src}/proxy/index.d.ts +8 -8
- package/dist/{src/proxy/proxies → server/src/proxy}/plugin.d.ts +4 -4
- package/dist/{src → server/src}/proxy/types.d.ts +1 -6
- package/dist/{src/proxy/ws/index.d.ts → server/src/proxy/ws.d.ts} +2 -2
- package/dist/{src → server/src}/services/config/constants.d.ts +1 -1
- package/dist/{src → server/src}/services/config/index.d.ts +2 -4
- package/dist/{src → server/src}/services/logger/index.d.ts +0 -12
- package/dist/shared/common/utils.d.ts +2 -2
- package/dist/shared/types/index.d.ts +10 -10
- package/package.json +7 -6
- package/dist/src/plugins/base.d.ts +0 -15
- package/dist/src/proxy/client/deviceManager.d.ts +0 -35
- package/dist/src/proxy/client/pluginsManager.d.ts +0 -26
- package/dist/src/proxy/client/systemManager.d.ts +0 -24
- package/dist/{client → packages/client}/node/src/api.d.ts +0 -0
- package/dist/{client → packages/client}/node/src/client.d.ts +0 -0
- package/dist/{client → packages/client}/node/src/index.d.ts +1 -1
- package/dist/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.mock.d.ts +0 -0
- package/dist/{client → packages/client}/node/src/proxy/cameraDevice/index.d.ts +0 -0
- package/dist/{client → packages/client}/node/src/proxy/index.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/api/application.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/api/config.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/api/index.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/api/snapshot.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/index.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/queue.d.ts +0 -0
- package/dist/{src → server/src}/api/go2rtc/types.d.ts +0 -0
- package/dist/{src → server/src}/api/middlewares/socketAuth.middleware.d.ts +0 -0
- package/dist/{src → server/src}/api/schemas/backup.schema.d.ts +36 -36
- package/dist/{src → server/src}/api/schemas/config.schema.d.ts +2 -2
- package/dist/{src → server/src}/api/schemas/go2rtc.schema.d.ts +16 -16
- package/dist/{src → server/src}/api/services/auth.service.d.ts +0 -0
- package/dist/{src → server/src}/api/services/plugins.service.d.ts +0 -0
- package/dist/{src → server/src}/api/services/users.service.d.ts +0 -0
- package/dist/{src → server/src}/api/utils/constants.d.ts +0 -0
- package/dist/{src → server/src}/api/ws/index.d.ts +0 -0
- package/dist/{src → server/src}/api/ws/types.d.ts +0 -0
- package/dist/{src → server/src}/camera/utils/subscribed.d.ts +0 -0
- package/dist/{src → server/src}/go2rtc/types.d.ts +0 -0
- package/dist/{src/proxy/client → server/src/plugins/node/proxy}/index.d.ts +0 -0
- package/dist/{src → server/src}/proxy/queue.d.ts +1 -1
- /package/dist/{src → server/src}/proxy/utils/generateKeys.d.ts +0 -0
- /package/dist/{src → server/src}/services/config/types.d.ts +0 -0
package/dist/{client → packages/client}/node/src/proxy/cameraDevice/cameraDevice.browser.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { BrowserStreamingSession } from '
|
|
2
|
+
import { BrowserStreamingSession } from '../../../../../../shared/types';
|
|
3
|
+
import type { AudioState, BaseLogger, BatteryState, Camera, CameraDelegate, CameraDevice, CameraInformation, CameraPrebufferDelegate, CameraPublicProperties, CameraSource, CameraType, CameraZone, DoorbellState, FfmpegOptions, IceServer, LightState, MotionState, ObjectState, OnSetEvent, SirenState, StateValue, StateValues } from '../../../../../../shared/types';
|
|
3
4
|
import type { SocketService } from '../../socket';
|
|
4
|
-
import type { Camera, CameraDevice, StateValue, StateValues, OnSetEvent, LightState, MotionState, AudioState, ObjectState, DoorbellState, SirenState, BatteryState, BaseLogger, FfmpegOptions, CameraDelegate, CameraZone, CameraSource, CameraPublicProperties, CameraType, CameraInformation, CameraPrebufferDelegate, IceServer } from '../../../../../shared/types';
|
|
5
5
|
export declare class CameraDeviceClient implements CameraDevice {
|
|
6
6
|
private log;
|
|
7
7
|
private socketService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CameraController } from '
|
|
1
|
+
import { CameraController } from '../../../../../../server/src/camera';
|
|
2
|
+
import type { BaseLogger, Camera, CameraSource, IceServer, OnSetEvent, StateValues } from '../../../../../../shared/types';
|
|
2
3
|
import type { SocketService } from '../../socket';
|
|
3
|
-
import type { Camera, StateValues, OnSetEvent, BaseLogger, IceServer, CameraSource } from '../../../../../shared/types';
|
|
4
4
|
export declare class CameraDeviceClient extends CameraController {
|
|
5
5
|
private socketService;
|
|
6
6
|
private logger;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { BaseLogger, CameraConfig, CameraDevice, DeviceManagerProxyEventCallbacks, DeviceManagerProxyMethods } from '../../../../../shared/types';
|
|
1
2
|
import type { SocketService } from '../socket';
|
|
2
|
-
import type { DeviceManagerProxyMethods, DeviceManagerProxyEventCallbacks, CameraConfig, CameraDevice, BaseLogger } from '../../../../shared/types';
|
|
3
3
|
export declare class DeviceManagerClient implements DeviceManagerProxyMethods {
|
|
4
4
|
private socketService;
|
|
5
5
|
private devices;
|
|
@@ -10,7 +10,8 @@ export declare class DeviceManagerClient implements DeviceManagerProxyMethods {
|
|
|
10
10
|
createCamera(camera: CameraConfig): Promise<CameraDevice>;
|
|
11
11
|
removeCameraByName(name: string): Promise<void>;
|
|
12
12
|
removeCameraById(id: string): Promise<void>;
|
|
13
|
-
|
|
13
|
+
on<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callback: DeviceManagerProxyEventCallbacks[E]): void;
|
|
14
|
+
once<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callback: DeviceManagerProxyEventCallbacks[E]): void;
|
|
14
15
|
removeListener<E extends keyof DeviceManagerProxyEventCallbacks>(eventType: E, callback: DeviceManagerProxyEventCallbacks[E]): void;
|
|
15
16
|
removeAllListeners<E extends keyof DeviceManagerProxyEventCallbacks>(eventType?: E): void;
|
|
16
17
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { PluginsManagerProxyEventCallbacks, PluginsManagerProxyMethods } from '../../../../../shared/types';
|
|
1
2
|
import type { SocketService } from '../socket';
|
|
2
|
-
import type { PluginsManagerProxyMethods, PluginsManagerProxyEventCallbacks } from '../../../../shared/types';
|
|
3
3
|
export declare class PluginsManagerClient implements PluginsManagerProxyMethods {
|
|
4
4
|
private socketService;
|
|
5
5
|
constructor(socketService: SocketService);
|
|
6
|
-
|
|
6
|
+
on<E extends keyof PluginsManagerProxyEventCallbacks>(eventType: E, callback: PluginsManagerProxyEventCallbacks[E]): void;
|
|
7
|
+
once<E extends keyof PluginsManagerProxyEventCallbacks>(eventType: E, callback: PluginsManagerProxyEventCallbacks[E]): void;
|
|
7
8
|
removeListener<E extends keyof PluginsManagerProxyEventCallbacks>(eventType: E, callback: PluginsManagerProxyEventCallbacks[E]): void;
|
|
8
9
|
removeAllListeners<E extends keyof PluginsManagerProxyEventCallbacks>(eventType?: E): void;
|
|
9
10
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { SystemManagerProxyEventCallbacks, SystemManagerProxyMethods } from '../../../../../shared/types';
|
|
1
2
|
import type { SocketService } from '../socket';
|
|
2
|
-
import type { SystemManagerProxyMethods, SystemManagerProxyEventCallbacks } from '../../../../shared/types';
|
|
3
3
|
export declare class SystemManagerClient implements SystemManagerProxyMethods {
|
|
4
4
|
private socketService;
|
|
5
5
|
constructor(socketService: SocketService);
|
|
6
|
-
|
|
6
|
+
on<E extends keyof SystemManagerProxyEventCallbacks>(eventType: E, callback: SystemManagerProxyEventCallbacks[E]): void;
|
|
7
|
+
once<E extends keyof SystemManagerProxyEventCallbacks>(eventType: E, callback: SystemManagerProxyEventCallbacks[E]): void;
|
|
7
8
|
removeListener<E extends keyof SystemManagerProxyEventCallbacks>(eventType: E, callback: SystemManagerProxyEventCallbacks[E]): void;
|
|
8
9
|
removeAllListeners<E extends keyof SystemManagerProxyEventCallbacks>(eventType?: E): void;
|
|
9
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Manager, type Socket } from 'socket.io-client';
|
|
2
|
-
import type { CameraDeviceProxyMethodNames, DeviceManagerProxyMethodNames, PluginsManagerProxyMethodNames, SystemManagerProxyMethodNames } from '
|
|
2
|
+
import type { CameraDeviceProxyMethodNames, DeviceManagerProxyMethodNames, PluginsManagerProxyMethodNames, SystemManagerProxyMethodNames } from '../../../../shared/types';
|
|
3
3
|
type ManagerMethodNames = DeviceManagerProxyMethodNames | SystemManagerProxyMethodNames | PluginsManagerProxyMethodNames;
|
|
4
4
|
type MethodNames<T> = T extends 'manager' ? ManagerMethodNames : T extends 'cameraDevice' ? CameraDeviceProxyMethodNames : never;
|
|
5
5
|
export declare class SocketService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { BaseLogger, CameraDevice } from '../../../../shared/types';
|
|
1
2
|
import type { DeviceManagerClient, PluginsManagerClient, SystemManagerClient } from './proxy';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export { BrowserStreamingSession } from '../../../shared/types';
|
|
3
|
+
export type { AudioState, BaseLogger, BasicPeerConnection, Camera, CameraConfig, CameraDevice, CameraInput, DoorbellState, FfmpegOptions, Go2RtcAnswerMessage, Go2RtcIceCandidateMessage, Go2RtcIncomingMessage, Go2RtcOfferMessage, Go2RtcOutgoingMessage, LightState, MotionState, ObjectState, SirenState, } from '../../../../shared/types';
|
|
4
|
+
export { BrowserStreamingSession } from '../../../../shared/types';
|
|
5
5
|
export interface ICameraDeviceClient extends CameraDevice {
|
|
6
6
|
refreshStates(): Promise<void>;
|
|
7
7
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PortablePython } from '@bjia56/portable-python';
|
|
2
|
+
export declare const SERVER_PY_VERSION = "3.11";
|
|
3
|
+
export declare const SERVER_PY_DEPS: string[];
|
|
4
|
+
export declare class PythonInstaller {
|
|
5
|
+
static readonly versions: string[];
|
|
6
|
+
private _version;
|
|
7
|
+
readonly python: PortablePython;
|
|
8
|
+
readonly venvPath: string;
|
|
9
|
+
get isInstalled(): boolean;
|
|
10
|
+
get execPath(): string;
|
|
11
|
+
get pipPath(): string;
|
|
12
|
+
get version(): string;
|
|
13
|
+
constructor(venvDir: string, version?: string);
|
|
14
|
+
install(): Promise<void>;
|
|
15
|
+
uninstall(): Promise<void>;
|
|
16
|
+
updateDependencies(requirementsPath: string): Promise<void>;
|
|
17
|
+
installPackages(pkgs: string[]): Promise<string>;
|
|
18
|
+
uninstallPackages(pkgs: string[]): Promise<string>;
|
|
19
|
+
ensureServerDepsAndVenv(): Promise<void>;
|
|
20
|
+
private installRequirements;
|
|
21
|
+
private areServerDepsInstalled;
|
|
22
|
+
private ensureVenv;
|
|
23
|
+
private createVenv;
|
|
24
|
+
private removeVenv;
|
|
25
|
+
private recreateVenv;
|
|
26
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/// <reference types="pouchdb-mapreduce" />
|
|
4
4
|
/// <reference types="pouchdb-replication" />
|
|
5
5
|
import type { FastifyInstance } from 'fastify';
|
|
6
|
-
import type { DBTokens, DBCameras, DBUsers, DBSettings, DBPlugins } from './types';
|
|
7
6
|
import type { Plugin } from '../../plugins/plugin';
|
|
7
|
+
import type { DBCameras, DBPlugins, DBSettings, DBTokens, DBUsers } from './types';
|
|
8
8
|
export declare class Database {
|
|
9
9
|
private _db;
|
|
10
10
|
private _tokensDb;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestQueue } from '../queue';
|
|
2
2
|
import type { AxiosResponse } from 'axios';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SourceData, StreamData } from '../types';
|
|
4
4
|
export declare class StreamsApi {
|
|
5
5
|
private requestQueue;
|
|
6
6
|
constructor(requestQueue: RequestQueue);
|
|
@@ -91,32 +91,32 @@ export declare const inputRoleSchema: zod.ZodUnion<[zod.ZodLiteral<"detect">, zo
|
|
|
91
91
|
export declare const inputSchema: zod.ZodObject<{
|
|
92
92
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
93
93
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
94
|
-
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("
|
|
94
|
+
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("stream" | "detect" | "record" | "snapshot" | "none")[], ("stream" | "detect" | "record" | "snapshot" | "none")[]>;
|
|
95
95
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
96
96
|
}, "strict", zod.ZodTypeAny, {
|
|
97
|
-
_id: string;
|
|
98
97
|
name: string;
|
|
99
|
-
|
|
98
|
+
_id: string;
|
|
99
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
100
100
|
urls: string[];
|
|
101
101
|
}, {
|
|
102
102
|
name: string;
|
|
103
|
-
roles: ("
|
|
103
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
104
104
|
urls: string[];
|
|
105
105
|
_id?: string | undefined;
|
|
106
106
|
}>;
|
|
107
107
|
export declare const patchInputSchema: zod.ZodObject<{
|
|
108
108
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
109
109
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
110
|
-
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("
|
|
110
|
+
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("stream" | "detect" | "record" | "snapshot" | "none")[], ("stream" | "detect" | "record" | "snapshot" | "none")[]>;
|
|
111
111
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
112
112
|
}, "strict", zod.ZodTypeAny, {
|
|
113
|
-
_id: string;
|
|
114
113
|
name: string;
|
|
115
|
-
|
|
114
|
+
_id: string;
|
|
115
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
116
116
|
urls: string[];
|
|
117
117
|
}, {
|
|
118
118
|
name: string;
|
|
119
|
-
roles: ("
|
|
119
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
120
120
|
urls: string[];
|
|
121
121
|
_id?: string | undefined;
|
|
122
122
|
}>;
|
|
@@ -213,16 +213,16 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
213
213
|
sources: zod.ZodArray<zod.ZodObject<{
|
|
214
214
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
215
215
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
216
|
-
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("
|
|
216
|
+
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("stream" | "detect" | "record" | "snapshot" | "none")[], ("stream" | "detect" | "record" | "snapshot" | "none")[]>;
|
|
217
217
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
218
218
|
}, "strict", zod.ZodTypeAny, {
|
|
219
|
-
_id: string;
|
|
220
219
|
name: string;
|
|
221
|
-
|
|
220
|
+
_id: string;
|
|
221
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
222
222
|
urls: string[];
|
|
223
223
|
}, {
|
|
224
224
|
name: string;
|
|
225
|
-
roles: ("
|
|
225
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
226
226
|
urls: string[];
|
|
227
227
|
_id?: string | undefined;
|
|
228
228
|
}>, "many">;
|
|
@@ -358,16 +358,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
358
358
|
}[];
|
|
359
359
|
}>, "many">>;
|
|
360
360
|
}, "strict", zod.ZodTypeAny, {
|
|
361
|
-
_id: string;
|
|
362
|
-
name: string;
|
|
363
|
-
type: "camera" | "doorbell";
|
|
364
|
-
pluginId: string;
|
|
365
|
-
disabled: boolean;
|
|
366
|
-
isCloud: boolean;
|
|
367
|
-
hasLight: boolean;
|
|
368
|
-
hasSiren: boolean;
|
|
369
|
-
hasBinarySensor: boolean;
|
|
370
|
-
hasBattery: boolean;
|
|
371
361
|
info: {
|
|
372
362
|
model: string;
|
|
373
363
|
manufacturer: string;
|
|
@@ -376,12 +366,8 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
376
366
|
firmwareVersion: string;
|
|
377
367
|
supportUrl: string;
|
|
378
368
|
};
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
name: string;
|
|
382
|
-
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
383
|
-
urls: string[];
|
|
384
|
-
}[];
|
|
369
|
+
type: "camera" | "doorbell";
|
|
370
|
+
name: string;
|
|
385
371
|
extensions: {
|
|
386
372
|
plugins: string[];
|
|
387
373
|
hub?: string[] | undefined;
|
|
@@ -394,9 +380,20 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
394
380
|
recording: {
|
|
395
381
|
enabled: boolean;
|
|
396
382
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
383
|
+
_id: string;
|
|
384
|
+
pluginId: string;
|
|
385
|
+
sources: {
|
|
386
|
+
name: string;
|
|
387
|
+
_id: string;
|
|
388
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
389
|
+
urls: string[];
|
|
390
|
+
}[];
|
|
391
|
+
disabled: boolean;
|
|
392
|
+
isCloud: boolean;
|
|
393
|
+
hasLight: boolean;
|
|
394
|
+
hasSiren: boolean;
|
|
395
|
+
hasBinarySensor: boolean;
|
|
396
|
+
hasBattery: boolean;
|
|
400
397
|
motionZones: {
|
|
401
398
|
name: string;
|
|
402
399
|
regions: {
|
|
@@ -417,12 +414,15 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
417
414
|
}[];
|
|
418
415
|
}[];
|
|
419
416
|
}[];
|
|
417
|
+
interface: {
|
|
418
|
+
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
419
|
+
};
|
|
420
420
|
nativeId?: string | undefined;
|
|
421
421
|
}, {
|
|
422
422
|
name: string;
|
|
423
423
|
sources: {
|
|
424
424
|
name: string;
|
|
425
|
-
roles: ("
|
|
425
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
426
426
|
urls: string[];
|
|
427
427
|
_id?: string | undefined;
|
|
428
428
|
}[];
|
|
@@ -509,16 +509,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
509
509
|
sources: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
510
510
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
511
511
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
512
|
-
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("
|
|
512
|
+
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("stream" | "detect" | "record" | "snapshot" | "none")[], ("stream" | "detect" | "record" | "snapshot" | "none")[]>;
|
|
513
513
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
514
514
|
}, "strict", zod.ZodTypeAny, {
|
|
515
|
-
_id: string;
|
|
516
515
|
name: string;
|
|
517
|
-
|
|
516
|
+
_id: string;
|
|
517
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
518
518
|
urls: string[];
|
|
519
519
|
}, {
|
|
520
520
|
name: string;
|
|
521
|
-
roles: ("
|
|
521
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
522
522
|
urls: string[];
|
|
523
523
|
_id?: string | undefined;
|
|
524
524
|
}>, "many">>;
|
|
@@ -666,9 +666,9 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
666
666
|
supportUrl?: string | undefined;
|
|
667
667
|
} | undefined;
|
|
668
668
|
sources?: {
|
|
669
|
-
_id: string;
|
|
670
669
|
name: string;
|
|
671
|
-
|
|
670
|
+
_id: string;
|
|
671
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
672
672
|
urls: string[];
|
|
673
673
|
}[] | undefined;
|
|
674
674
|
extensions?: {
|
|
@@ -720,7 +720,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
720
720
|
} | undefined;
|
|
721
721
|
sources?: {
|
|
722
722
|
name: string;
|
|
723
|
-
roles: ("
|
|
723
|
+
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
724
724
|
urls: string[];
|
|
725
725
|
_id?: string | undefined;
|
|
726
726
|
}[] | undefined;
|