@camera.ui/browser 0.0.52 → 0.0.53
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.
|
@@ -359,6 +359,11 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
359
359
|
}>, "many">>;
|
|
360
360
|
motionTimeout: zod.ZodDefault<zod.ZodNumber>;
|
|
361
361
|
}, "strict", zod.ZodTypeAny, {
|
|
362
|
+
recording: {
|
|
363
|
+
enabled: boolean;
|
|
364
|
+
};
|
|
365
|
+
_id: string;
|
|
366
|
+
name: string;
|
|
362
367
|
info: {
|
|
363
368
|
model: string;
|
|
364
369
|
manufacturer: string;
|
|
@@ -367,11 +372,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
367
372
|
firmwareVersion: string;
|
|
368
373
|
supportUrl: string;
|
|
369
374
|
};
|
|
370
|
-
|
|
371
|
-
enabled: boolean;
|
|
372
|
-
};
|
|
373
|
-
_id: string;
|
|
374
|
-
name: string;
|
|
375
|
+
type: "doorbell" | "camera";
|
|
375
376
|
extensions: {
|
|
376
377
|
plugins: string[];
|
|
377
378
|
hub?: string[] | undefined;
|
|
@@ -381,7 +382,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
381
382
|
audioDetection?: string | undefined;
|
|
382
383
|
ptz?: string | undefined;
|
|
383
384
|
};
|
|
384
|
-
type: "doorbell" | "camera";
|
|
385
385
|
pluginId: string;
|
|
386
386
|
sources: {
|
|
387
387
|
_id: string;
|
|
@@ -428,6 +428,10 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
428
428
|
urls: string[];
|
|
429
429
|
_id?: string | undefined;
|
|
430
430
|
}[];
|
|
431
|
+
recording?: {
|
|
432
|
+
enabled?: boolean | undefined;
|
|
433
|
+
} | undefined;
|
|
434
|
+
_id?: string | undefined;
|
|
431
435
|
info?: {
|
|
432
436
|
model: string;
|
|
433
437
|
manufacturer: string;
|
|
@@ -436,10 +440,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
436
440
|
firmwareVersion: string;
|
|
437
441
|
supportUrl: string;
|
|
438
442
|
} | undefined;
|
|
439
|
-
|
|
440
|
-
enabled?: boolean | undefined;
|
|
441
|
-
} | undefined;
|
|
442
|
-
_id?: string | undefined;
|
|
443
|
+
type?: "doorbell" | "camera" | undefined;
|
|
443
444
|
extensions?: {
|
|
444
445
|
plugins: string[];
|
|
445
446
|
hub?: string[] | undefined;
|
|
@@ -449,7 +450,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
449
450
|
audioDetection?: string | undefined;
|
|
450
451
|
ptz?: string | undefined;
|
|
451
452
|
} | undefined;
|
|
452
|
-
type?: "doorbell" | "camera" | undefined;
|
|
453
453
|
nativeId?: string | undefined;
|
|
454
454
|
pluginId?: string | undefined;
|
|
455
455
|
disabled?: boolean | undefined;
|
|
@@ -658,6 +658,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
658
658
|
}>, "many">>;
|
|
659
659
|
motionTimeout: zod.ZodOptional<zod.ZodNumber>;
|
|
660
660
|
}, "strict", zod.ZodTypeAny, {
|
|
661
|
+
recording?: {
|
|
662
|
+
enabled?: boolean | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
name?: string | undefined;
|
|
661
665
|
info?: {
|
|
662
666
|
model?: string | undefined;
|
|
663
667
|
manufacturer?: string | undefined;
|
|
@@ -666,10 +670,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
666
670
|
firmwareVersion?: string | undefined;
|
|
667
671
|
supportUrl?: string | undefined;
|
|
668
672
|
} | undefined;
|
|
669
|
-
|
|
670
|
-
enabled?: boolean | undefined;
|
|
671
|
-
} | undefined;
|
|
672
|
-
name?: string | undefined;
|
|
673
|
+
type?: "doorbell" | "camera" | undefined;
|
|
673
674
|
extensions?: {
|
|
674
675
|
hub?: string[] | undefined;
|
|
675
676
|
prebuffer?: string | undefined;
|
|
@@ -679,7 +680,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
679
680
|
ptz?: string | undefined;
|
|
680
681
|
plugins?: string[] | undefined;
|
|
681
682
|
} | undefined;
|
|
682
|
-
type?: "doorbell" | "camera" | undefined;
|
|
683
683
|
sources?: {
|
|
684
684
|
_id: string;
|
|
685
685
|
name: string;
|
|
@@ -712,6 +712,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
712
712
|
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[] | undefined;
|
|
713
713
|
} | undefined;
|
|
714
714
|
}, {
|
|
715
|
+
recording?: {
|
|
716
|
+
enabled?: boolean | undefined;
|
|
717
|
+
} | undefined;
|
|
718
|
+
name?: string | undefined;
|
|
715
719
|
info?: {
|
|
716
720
|
model?: string | undefined;
|
|
717
721
|
manufacturer?: string | undefined;
|
|
@@ -720,10 +724,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
720
724
|
firmwareVersion?: string | undefined;
|
|
721
725
|
supportUrl?: string | undefined;
|
|
722
726
|
} | undefined;
|
|
723
|
-
|
|
724
|
-
enabled?: boolean | undefined;
|
|
725
|
-
} | undefined;
|
|
726
|
-
name?: string | undefined;
|
|
727
|
+
type?: "doorbell" | "camera" | undefined;
|
|
727
728
|
extensions?: {
|
|
728
729
|
hub?: string[] | undefined;
|
|
729
730
|
prebuffer?: string | undefined;
|
|
@@ -733,7 +734,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
733
734
|
ptz?: string | undefined;
|
|
734
735
|
plugins?: string[] | undefined;
|
|
735
736
|
} | undefined;
|
|
736
|
-
type?: "doorbell" | "camera" | undefined;
|
|
737
737
|
sources?: {
|
|
738
738
|
name: string;
|
|
739
739
|
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
@@ -61,8 +61,8 @@ export declare const mqttSchema: zod.ZodObject<{
|
|
|
61
61
|
key?: string | undefined;
|
|
62
62
|
}>>>;
|
|
63
63
|
}, "strict", zod.ZodTypeAny, {
|
|
64
|
-
enabled: boolean;
|
|
65
64
|
port: number;
|
|
65
|
+
enabled: boolean;
|
|
66
66
|
host: string;
|
|
67
67
|
topicPrefix: string;
|
|
68
68
|
clientId: string;
|
|
@@ -74,8 +74,8 @@ export declare const mqttSchema: zod.ZodObject<{
|
|
|
74
74
|
password?: string | undefined;
|
|
75
75
|
user?: string | undefined;
|
|
76
76
|
}, {
|
|
77
|
-
enabled?: boolean | undefined;
|
|
78
77
|
port?: number | undefined;
|
|
78
|
+
enabled?: boolean | undefined;
|
|
79
79
|
password?: string | undefined;
|
|
80
80
|
host?: string | undefined;
|
|
81
81
|
topicPrefix?: string | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { BrowserStreamingSession } from './streaming/browser/browser-streaming-session';
|
|
2
3
|
import { Subscribed } from './utils/subscribed';
|
|
3
4
|
import type { Camera, CameraInformation, CameraPublicProperties, CameraType, CameraZone } from '../api/database/types';
|
|
4
5
|
import type { Frame } from '../detector/types';
|
|
5
6
|
import type { IceServer } from '../services/config/types';
|
|
6
7
|
import type { AudioState, BaseLogger, BatteryState, CameraDelegate, CameraPrebufferDelegate, CameraSource, DoorbellState, FfmpegOptions, LightState, MotionState, ObjectState, OnSetEvent, SirenState, StateValues, StreamingConnectionOptions } from './types';
|
|
7
8
|
type StreamingSession = InstanceType<typeof import('./streaming/streaming-session').StreamingSession>;
|
|
8
|
-
type BrowserStreamingSession = InstanceType<typeof import('./streaming/browser/browser-streaming-session').BrowserStreamingSession>;
|
|
9
9
|
export type CameraDevice = ServerCameraDeviceBase | BrowserCameraDeviceBase;
|
|
10
10
|
export declare abstract class CameraDeviceBase extends Subscribed {
|
|
11
11
|
protected logger: BaseLogger;
|