@camera.ui/browser 0.0.102 → 0.0.103
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/types/server/src/api/database/index.d.ts +1 -1
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +24 -24
- package/dist/types/server/src/api/schemas/users.schema.d.ts +48 -48
- package/dist/types/server/src/api/types/index.d.ts +2 -1
- package/dist/types/server/src/camera/controller.d.ts +1 -1
- package/dist/types/server/src/camera/frameWorker.d.ts +1 -1
- package/dist/types/server/src/nats/index.d.ts +3 -2
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +2 -1
- package/dist/types/server/src/nats/proxy/coreManager.d.ts +1 -1
- package/dist/types/server/src/nats/proxy/deviceManager.d.ts +1 -1
- package/dist/types/server/src/nats/types.d.ts +1 -1
- package/dist/types/server/src/nats/utils.d.ts +1 -1
- package/dist/types/server/src/plugins/worker.d.ts +5 -1
- package/dist/types/shared/types/index.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/types/packages/{plugineer/src/utils → common/src/nats}/messageQueue.d.ts +0 -0
- /package/dist/types/packages/{plugineer/src/utils → common/src/nats}/nats.d.ts +0 -0
- /package/dist/types/packages/{plugineer/src/utils → common/src/nats}/packer.d.ts +0 -0
|
@@ -2,7 +2,7 @@ import type { FastifyInstance } from 'fastify';
|
|
|
2
2
|
import type { Database as DB, RootDatabase as RootDB } from 'lmdb';
|
|
3
3
|
import type { DBAuth, DBCamera, DBPlugin, DBSettings, DBSystem, DBUser } from './types.js';
|
|
4
4
|
export declare class Database {
|
|
5
|
-
static readonly VERSION = "1.0.
|
|
5
|
+
static readonly VERSION = "1.0.5";
|
|
6
6
|
authDB: RootDB<DBAuth, 'auth'>;
|
|
7
7
|
camerasDB: DB<DBCamera[], 'cameras'>;
|
|
8
8
|
pluginsDB: DB<DBPlugin[], 'plugins'>;
|
|
@@ -35,8 +35,8 @@ export declare const regionsSchema: zod.ZodObject<{
|
|
|
35
35
|
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
36
36
|
}, "strict", zod.ZodTypeAny, {
|
|
37
37
|
filter: "include" | "exclude";
|
|
38
|
-
type: "intersect" | "contain";
|
|
39
38
|
_id: string;
|
|
39
|
+
type: "intersect" | "contain";
|
|
40
40
|
coords: {
|
|
41
41
|
_id: string;
|
|
42
42
|
points: [number, number];
|
|
@@ -50,8 +50,8 @@ export declare const regionsSchema: zod.ZodObject<{
|
|
|
50
50
|
}[];
|
|
51
51
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
52
52
|
filter?: "include" | "exclude" | undefined;
|
|
53
|
-
type?: "intersect" | "contain" | undefined;
|
|
54
53
|
_id?: string | undefined;
|
|
54
|
+
type?: "intersect" | "contain" | undefined;
|
|
55
55
|
isPrivacyMask?: boolean | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
export declare const cameraZonesSchema: zod.ZodObject<{
|
|
@@ -74,8 +74,8 @@ export declare const cameraZonesSchema: zod.ZodObject<{
|
|
|
74
74
|
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
75
75
|
}, "strict", zod.ZodTypeAny, {
|
|
76
76
|
filter: "include" | "exclude";
|
|
77
|
-
type: "intersect" | "contain";
|
|
78
77
|
_id: string;
|
|
78
|
+
type: "intersect" | "contain";
|
|
79
79
|
coords: {
|
|
80
80
|
_id: string;
|
|
81
81
|
points: [number, number];
|
|
@@ -89,16 +89,16 @@ export declare const cameraZonesSchema: zod.ZodObject<{
|
|
|
89
89
|
}[];
|
|
90
90
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
91
91
|
filter?: "include" | "exclude" | undefined;
|
|
92
|
-
type?: "intersect" | "contain" | undefined;
|
|
93
92
|
_id?: string | undefined;
|
|
93
|
+
type?: "intersect" | "contain" | undefined;
|
|
94
94
|
isPrivacyMask?: boolean | undefined;
|
|
95
95
|
}>, "many">;
|
|
96
96
|
}, "strip", zod.ZodTypeAny, {
|
|
97
97
|
name: string;
|
|
98
98
|
regions: {
|
|
99
99
|
filter: "include" | "exclude";
|
|
100
|
-
type: "intersect" | "contain";
|
|
101
100
|
_id: string;
|
|
101
|
+
type: "intersect" | "contain";
|
|
102
102
|
coords: {
|
|
103
103
|
_id: string;
|
|
104
104
|
points: [number, number];
|
|
@@ -115,8 +115,8 @@ export declare const cameraZonesSchema: zod.ZodObject<{
|
|
|
115
115
|
}[];
|
|
116
116
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
117
117
|
filter?: "include" | "exclude" | undefined;
|
|
118
|
-
type?: "intersect" | "contain" | undefined;
|
|
119
118
|
_id?: string | undefined;
|
|
119
|
+
type?: "intersect" | "contain" | undefined;
|
|
120
120
|
isPrivacyMask?: boolean | undefined;
|
|
121
121
|
}[];
|
|
122
122
|
}>;
|
|
@@ -391,8 +391,8 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
391
391
|
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
392
392
|
}, "strict", zod.ZodTypeAny, {
|
|
393
393
|
filter: "include" | "exclude";
|
|
394
|
-
type: "intersect" | "contain";
|
|
395
394
|
_id: string;
|
|
395
|
+
type: "intersect" | "contain";
|
|
396
396
|
coords: {
|
|
397
397
|
_id: string;
|
|
398
398
|
points: [number, number];
|
|
@@ -406,16 +406,16 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
406
406
|
}[];
|
|
407
407
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
408
408
|
filter?: "include" | "exclude" | undefined;
|
|
409
|
-
type?: "intersect" | "contain" | undefined;
|
|
410
409
|
_id?: string | undefined;
|
|
410
|
+
type?: "intersect" | "contain" | undefined;
|
|
411
411
|
isPrivacyMask?: boolean | undefined;
|
|
412
412
|
}>, "many">;
|
|
413
413
|
}, "strip", zod.ZodTypeAny, {
|
|
414
414
|
name: string;
|
|
415
415
|
regions: {
|
|
416
416
|
filter: "include" | "exclude";
|
|
417
|
-
type: "intersect" | "contain";
|
|
418
417
|
_id: string;
|
|
418
|
+
type: "intersect" | "contain";
|
|
419
419
|
coords: {
|
|
420
420
|
_id: string;
|
|
421
421
|
points: [number, number];
|
|
@@ -432,8 +432,8 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
432
432
|
}[];
|
|
433
433
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
434
434
|
filter?: "include" | "exclude" | undefined;
|
|
435
|
-
type?: "intersect" | "contain" | undefined;
|
|
436
435
|
_id?: string | undefined;
|
|
436
|
+
type?: "intersect" | "contain" | undefined;
|
|
437
437
|
isPrivacyMask?: boolean | undefined;
|
|
438
438
|
}[];
|
|
439
439
|
}>, "many">>;
|
|
@@ -481,8 +481,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
481
481
|
resolution: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180";
|
|
482
482
|
}>>;
|
|
483
483
|
}, "strict", zod.ZodTypeAny, {
|
|
484
|
-
pluginId: string;
|
|
485
|
-
type: "camera" | "doorbell";
|
|
486
484
|
disabled: boolean;
|
|
487
485
|
_id: string;
|
|
488
486
|
name: string;
|
|
@@ -490,8 +488,8 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
490
488
|
name: string;
|
|
491
489
|
regions: {
|
|
492
490
|
filter: "include" | "exclude";
|
|
493
|
-
type: "intersect" | "contain";
|
|
494
491
|
_id: string;
|
|
492
|
+
type: "intersect" | "contain";
|
|
495
493
|
coords: {
|
|
496
494
|
_id: string;
|
|
497
495
|
points: [number, number];
|
|
@@ -500,6 +498,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
500
498
|
isPrivacyMask: boolean;
|
|
501
499
|
}[];
|
|
502
500
|
}[];
|
|
501
|
+
pluginId: string;
|
|
503
502
|
isCloud: boolean;
|
|
504
503
|
hasLight: boolean;
|
|
505
504
|
hasSiren: boolean;
|
|
@@ -513,6 +512,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
513
512
|
firmwareVersion?: string | undefined;
|
|
514
513
|
supportUrl?: string | undefined;
|
|
515
514
|
};
|
|
515
|
+
type: "doorbell" | "camera";
|
|
516
516
|
snapshotTTL: number;
|
|
517
517
|
activitySettings: {
|
|
518
518
|
object: {
|
|
@@ -560,8 +560,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
560
560
|
_id?: string | undefined;
|
|
561
561
|
internal?: boolean | undefined;
|
|
562
562
|
}[];
|
|
563
|
-
pluginId?: string | undefined;
|
|
564
|
-
type?: "camera" | "doorbell" | undefined;
|
|
565
563
|
disabled?: boolean | undefined;
|
|
566
564
|
_id?: string | undefined;
|
|
567
565
|
activityZones?: {
|
|
@@ -573,12 +571,13 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
573
571
|
}[];
|
|
574
572
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
575
573
|
filter?: "include" | "exclude" | undefined;
|
|
576
|
-
type?: "intersect" | "contain" | undefined;
|
|
577
574
|
_id?: string | undefined;
|
|
575
|
+
type?: "intersect" | "contain" | undefined;
|
|
578
576
|
isPrivacyMask?: boolean | undefined;
|
|
579
577
|
}[];
|
|
580
578
|
}[] | undefined;
|
|
581
579
|
nativeId?: string | undefined;
|
|
580
|
+
pluginId?: string | undefined;
|
|
582
581
|
isCloud?: boolean | undefined;
|
|
583
582
|
hasLight?: boolean | undefined;
|
|
584
583
|
hasSiren?: boolean | undefined;
|
|
@@ -592,6 +591,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
592
591
|
firmwareVersion?: string | undefined;
|
|
593
592
|
supportUrl?: string | undefined;
|
|
594
593
|
} | undefined;
|
|
594
|
+
type?: "doorbell" | "camera" | undefined;
|
|
595
595
|
snapshotTTL?: number | undefined;
|
|
596
596
|
activitySettings?: {
|
|
597
597
|
object: {
|
|
@@ -743,8 +743,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
743
743
|
isPrivacyMask: zod.ZodDefault<zod.ZodBoolean>;
|
|
744
744
|
}, "strict", zod.ZodTypeAny, {
|
|
745
745
|
filter: "include" | "exclude";
|
|
746
|
-
type: "intersect" | "contain";
|
|
747
746
|
_id: string;
|
|
747
|
+
type: "intersect" | "contain";
|
|
748
748
|
coords: {
|
|
749
749
|
_id: string;
|
|
750
750
|
points: [number, number];
|
|
@@ -758,16 +758,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
758
758
|
}[];
|
|
759
759
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
760
760
|
filter?: "include" | "exclude" | undefined;
|
|
761
|
-
type?: "intersect" | "contain" | undefined;
|
|
762
761
|
_id?: string | undefined;
|
|
762
|
+
type?: "intersect" | "contain" | undefined;
|
|
763
763
|
isPrivacyMask?: boolean | undefined;
|
|
764
764
|
}>, "many">;
|
|
765
765
|
}, "strip", zod.ZodTypeAny, {
|
|
766
766
|
name: string;
|
|
767
767
|
regions: {
|
|
768
768
|
filter: "include" | "exclude";
|
|
769
|
-
type: "intersect" | "contain";
|
|
770
769
|
_id: string;
|
|
770
|
+
type: "intersect" | "contain";
|
|
771
771
|
coords: {
|
|
772
772
|
_id: string;
|
|
773
773
|
points: [number, number];
|
|
@@ -784,8 +784,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
784
784
|
}[];
|
|
785
785
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
786
786
|
filter?: "include" | "exclude" | undefined;
|
|
787
|
-
type?: "intersect" | "contain" | undefined;
|
|
788
787
|
_id?: string | undefined;
|
|
788
|
+
type?: "intersect" | "contain" | undefined;
|
|
789
789
|
isPrivacyMask?: boolean | undefined;
|
|
790
790
|
}[];
|
|
791
791
|
}>, "many">>;
|
|
@@ -833,15 +833,14 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
833
833
|
resolution?: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180" | undefined;
|
|
834
834
|
}>>;
|
|
835
835
|
}, "strict", zod.ZodTypeAny, {
|
|
836
|
-
type?: "camera" | "doorbell" | undefined;
|
|
837
836
|
disabled?: boolean | undefined;
|
|
838
837
|
name?: string | undefined;
|
|
839
838
|
activityZones?: {
|
|
840
839
|
name: string;
|
|
841
840
|
regions: {
|
|
842
841
|
filter: "include" | "exclude";
|
|
843
|
-
type: "intersect" | "contain";
|
|
844
842
|
_id: string;
|
|
843
|
+
type: "intersect" | "contain";
|
|
845
844
|
coords: {
|
|
846
845
|
_id: string;
|
|
847
846
|
points: [number, number];
|
|
@@ -858,6 +857,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
858
857
|
firmwareVersion?: string | undefined;
|
|
859
858
|
supportUrl?: string | undefined;
|
|
860
859
|
} | undefined;
|
|
860
|
+
type?: "doorbell" | "camera" | undefined;
|
|
861
861
|
snapshotTTL?: number | undefined;
|
|
862
862
|
activitySettings?: {
|
|
863
863
|
object?: {
|
|
@@ -896,7 +896,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
896
896
|
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
897
897
|
} | undefined;
|
|
898
898
|
}, {
|
|
899
|
-
type?: "camera" | "doorbell" | undefined;
|
|
900
899
|
disabled?: boolean | undefined;
|
|
901
900
|
name?: string | undefined;
|
|
902
901
|
activityZones?: {
|
|
@@ -908,8 +907,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
908
907
|
}[];
|
|
909
908
|
classes: ("person" | "bicycle" | "car" | "motorcycle" | "airplane" | "bus" | "train" | "truck" | "boat" | "traffic light" | "fire hydrant" | "stop sign" | "parking meter" | "bench" | "bird" | "cat" | "dog" | "horse" | "sheep" | "cow" | "elephant" | "bear" | "zebra" | "giraffe" | "backpack" | "umbrella" | "handbag" | "tie" | "suitcase" | "frisbee" | "skis" | "snowboard" | "sports ball" | "kite" | "baseball bat" | "baseball glove" | "skateboard" | "surfboard" | "tennis racket" | "bottle" | "wine glass" | "cup" | "fork" | "knife" | "spoon" | "bowl" | "banana" | "apple" | "sandwich" | "orange" | "broccoli" | "carrot" | "hot dog" | "pizza" | "donut" | "cake" | "chair" | "couch" | "potted plant" | "bed" | "dining table" | "toilet" | "tv" | "laptop" | "mouse" | "remote" | "keyboard" | "cell phone" | "microwave" | "oven" | "toaster" | "sink" | "refrigerator" | "book" | "clock" | "vase" | "scissors" | "teddy bear" | "hair drier" | "toothbrush" | "motion")[];
|
|
910
909
|
filter?: "include" | "exclude" | undefined;
|
|
911
|
-
type?: "intersect" | "contain" | undefined;
|
|
912
910
|
_id?: string | undefined;
|
|
911
|
+
type?: "intersect" | "contain" | undefined;
|
|
913
912
|
isPrivacyMask?: boolean | undefined;
|
|
914
913
|
}[];
|
|
915
914
|
}[] | undefined;
|
|
@@ -921,6 +920,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
921
920
|
firmwareVersion?: string | undefined;
|
|
922
921
|
supportUrl?: string | undefined;
|
|
923
922
|
} | undefined;
|
|
923
|
+
type?: "doorbell" | "camera" | undefined;
|
|
924
924
|
snapshotTTL?: number | undefined;
|
|
925
925
|
activitySettings?: {
|
|
926
926
|
object?: {
|
|
@@ -30,17 +30,17 @@ export declare const userPreferencesCamviewViewsLayout: zod.ZodObject<{
|
|
|
30
30
|
}>, "many">;
|
|
31
31
|
type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
|
|
32
32
|
}, "strip", zod.ZodTypeAny, {
|
|
33
|
-
type: "dnd" | "view";
|
|
34
33
|
_id: string;
|
|
35
34
|
name: string;
|
|
35
|
+
type: "dnd" | "view";
|
|
36
36
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
37
37
|
cameras: {
|
|
38
38
|
cameraId: string;
|
|
39
39
|
index: number;
|
|
40
40
|
}[];
|
|
41
41
|
}, {
|
|
42
|
-
type: "dnd" | "view";
|
|
43
42
|
name: string;
|
|
43
|
+
type: "dnd" | "view";
|
|
44
44
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
45
45
|
cameras: {
|
|
46
46
|
cameraId: string;
|
|
@@ -93,17 +93,17 @@ export declare const userPreferencesCamview: zod.ZodObject<{
|
|
|
93
93
|
}>, "many">;
|
|
94
94
|
type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
|
|
95
95
|
}, "strip", zod.ZodTypeAny, {
|
|
96
|
-
type: "dnd" | "view";
|
|
97
96
|
_id: string;
|
|
98
97
|
name: string;
|
|
98
|
+
type: "dnd" | "view";
|
|
99
99
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
100
100
|
cameras: {
|
|
101
101
|
cameraId: string;
|
|
102
102
|
index: number;
|
|
103
103
|
}[];
|
|
104
104
|
}, {
|
|
105
|
-
type: "dnd" | "view";
|
|
106
105
|
name: string;
|
|
106
|
+
type: "dnd" | "view";
|
|
107
107
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
108
108
|
cameras: {
|
|
109
109
|
cameraId: string;
|
|
@@ -113,9 +113,9 @@ export declare const userPreferencesCamview: zod.ZodObject<{
|
|
|
113
113
|
}>, "many">;
|
|
114
114
|
}, "strip", zod.ZodTypeAny, {
|
|
115
115
|
views: {
|
|
116
|
-
type: "dnd" | "view";
|
|
117
116
|
_id: string;
|
|
118
117
|
name: string;
|
|
118
|
+
type: "dnd" | "view";
|
|
119
119
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
120
120
|
cameras: {
|
|
121
121
|
cameraId: string;
|
|
@@ -124,8 +124,8 @@ export declare const userPreferencesCamview: zod.ZodObject<{
|
|
|
124
124
|
}[];
|
|
125
125
|
}, {
|
|
126
126
|
views: {
|
|
127
|
-
type: "dnd" | "view";
|
|
128
127
|
name: string;
|
|
128
|
+
type: "dnd" | "view";
|
|
129
129
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
130
130
|
cameras: {
|
|
131
131
|
cameraId: string;
|
|
@@ -148,8 +148,8 @@ export declare const userPreferencesCameraShortcutLayout: zod.ZodObject<{
|
|
|
148
148
|
_id?: string | undefined;
|
|
149
149
|
}>;
|
|
150
150
|
}, "strip", zod.ZodTypeAny, {
|
|
151
|
-
cameraId: string;
|
|
152
151
|
_id: string;
|
|
152
|
+
cameraId: string;
|
|
153
153
|
coords: {
|
|
154
154
|
_id: string;
|
|
155
155
|
points: [number, number];
|
|
@@ -202,8 +202,8 @@ export declare const userPreferencesCameras: zod.ZodObject<{
|
|
|
202
202
|
_id?: string | undefined;
|
|
203
203
|
}>;
|
|
204
204
|
}, "strip", zod.ZodTypeAny, {
|
|
205
|
-
cameraId: string;
|
|
206
205
|
_id: string;
|
|
206
|
+
cameraId: string;
|
|
207
207
|
coords: {
|
|
208
208
|
_id: string;
|
|
209
209
|
points: [number, number];
|
|
@@ -218,8 +218,8 @@ export declare const userPreferencesCameras: zod.ZodObject<{
|
|
|
218
218
|
}>, "many">;
|
|
219
219
|
}, "strip", zod.ZodTypeAny, {
|
|
220
220
|
shortcuts: {
|
|
221
|
-
cameraId: string;
|
|
222
221
|
_id: string;
|
|
222
|
+
cameraId: string;
|
|
223
223
|
coords: {
|
|
224
224
|
_id: string;
|
|
225
225
|
points: [number, number];
|
|
@@ -253,17 +253,17 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
253
253
|
}>, "many">;
|
|
254
254
|
type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
|
|
255
255
|
}, "strip", zod.ZodTypeAny, {
|
|
256
|
-
type: "dnd" | "view";
|
|
257
256
|
_id: string;
|
|
258
257
|
name: string;
|
|
258
|
+
type: "dnd" | "view";
|
|
259
259
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
260
260
|
cameras: {
|
|
261
261
|
cameraId: string;
|
|
262
262
|
index: number;
|
|
263
263
|
}[];
|
|
264
264
|
}, {
|
|
265
|
-
type: "dnd" | "view";
|
|
266
265
|
name: string;
|
|
266
|
+
type: "dnd" | "view";
|
|
267
267
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
268
268
|
cameras: {
|
|
269
269
|
cameraId: string;
|
|
@@ -273,9 +273,9 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
273
273
|
}>, "many">;
|
|
274
274
|
}, "strip", zod.ZodTypeAny, {
|
|
275
275
|
views: {
|
|
276
|
-
type: "dnd" | "view";
|
|
277
276
|
_id: string;
|
|
278
277
|
name: string;
|
|
278
|
+
type: "dnd" | "view";
|
|
279
279
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
280
280
|
cameras: {
|
|
281
281
|
cameraId: string;
|
|
@@ -284,8 +284,8 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
284
284
|
}[];
|
|
285
285
|
}, {
|
|
286
286
|
views: {
|
|
287
|
-
type: "dnd" | "view";
|
|
288
287
|
name: string;
|
|
288
|
+
type: "dnd" | "view";
|
|
289
289
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
290
290
|
cameras: {
|
|
291
291
|
cameraId: string;
|
|
@@ -309,8 +309,8 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
309
309
|
_id?: string | undefined;
|
|
310
310
|
}>;
|
|
311
311
|
}, "strip", zod.ZodTypeAny, {
|
|
312
|
-
cameraId: string;
|
|
313
312
|
_id: string;
|
|
313
|
+
cameraId: string;
|
|
314
314
|
coords: {
|
|
315
315
|
_id: string;
|
|
316
316
|
points: [number, number];
|
|
@@ -325,8 +325,8 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
325
325
|
}>, "many">;
|
|
326
326
|
}, "strip", zod.ZodTypeAny, {
|
|
327
327
|
shortcuts: {
|
|
328
|
-
cameraId: string;
|
|
329
328
|
_id: string;
|
|
329
|
+
cameraId: string;
|
|
330
330
|
coords: {
|
|
331
331
|
_id: string;
|
|
332
332
|
points: [number, number];
|
|
@@ -345,8 +345,8 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
345
345
|
}, "strip", zod.ZodTypeAny, {
|
|
346
346
|
cameras: Record<string, {
|
|
347
347
|
shortcuts: {
|
|
348
|
-
cameraId: string;
|
|
349
348
|
_id: string;
|
|
349
|
+
cameraId: string;
|
|
350
350
|
coords: {
|
|
351
351
|
_id: string;
|
|
352
352
|
points: [number, number];
|
|
@@ -355,9 +355,9 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
355
355
|
}>;
|
|
356
356
|
camview: {
|
|
357
357
|
views: {
|
|
358
|
-
type: "dnd" | "view";
|
|
359
358
|
_id: string;
|
|
360
359
|
name: string;
|
|
360
|
+
type: "dnd" | "view";
|
|
361
361
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
362
362
|
cameras: {
|
|
363
363
|
cameraId: string;
|
|
@@ -378,8 +378,8 @@ export declare const userPreferences: zod.ZodObject<{
|
|
|
378
378
|
}>;
|
|
379
379
|
camview: {
|
|
380
380
|
views: {
|
|
381
|
-
type: "dnd" | "view";
|
|
382
381
|
name: string;
|
|
382
|
+
type: "dnd" | "view";
|
|
383
383
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
384
384
|
cameras: {
|
|
385
385
|
cameraId: string;
|
|
@@ -417,17 +417,17 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
417
417
|
}>, "many">;
|
|
418
418
|
type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
|
|
419
419
|
}, "strip", zod.ZodTypeAny, {
|
|
420
|
-
type: "dnd" | "view";
|
|
421
420
|
_id: string;
|
|
422
421
|
name: string;
|
|
422
|
+
type: "dnd" | "view";
|
|
423
423
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
424
424
|
cameras: {
|
|
425
425
|
cameraId: string;
|
|
426
426
|
index: number;
|
|
427
427
|
}[];
|
|
428
428
|
}, {
|
|
429
|
-
type: "dnd" | "view";
|
|
430
429
|
name: string;
|
|
430
|
+
type: "dnd" | "view";
|
|
431
431
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
432
432
|
cameras: {
|
|
433
433
|
cameraId: string;
|
|
@@ -437,9 +437,9 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
437
437
|
}>, "many">;
|
|
438
438
|
}, "strip", zod.ZodTypeAny, {
|
|
439
439
|
views: {
|
|
440
|
-
type: "dnd" | "view";
|
|
441
440
|
_id: string;
|
|
442
441
|
name: string;
|
|
442
|
+
type: "dnd" | "view";
|
|
443
443
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
444
444
|
cameras: {
|
|
445
445
|
cameraId: string;
|
|
@@ -448,8 +448,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
448
448
|
}[];
|
|
449
449
|
}, {
|
|
450
450
|
views: {
|
|
451
|
-
type: "dnd" | "view";
|
|
452
451
|
name: string;
|
|
452
|
+
type: "dnd" | "view";
|
|
453
453
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
454
454
|
cameras: {
|
|
455
455
|
cameraId: string;
|
|
@@ -473,8 +473,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
473
473
|
_id?: string | undefined;
|
|
474
474
|
}>;
|
|
475
475
|
}, "strip", zod.ZodTypeAny, {
|
|
476
|
-
cameraId: string;
|
|
477
476
|
_id: string;
|
|
477
|
+
cameraId: string;
|
|
478
478
|
coords: {
|
|
479
479
|
_id: string;
|
|
480
480
|
points: [number, number];
|
|
@@ -489,8 +489,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
489
489
|
}>, "many">;
|
|
490
490
|
}, "strip", zod.ZodTypeAny, {
|
|
491
491
|
shortcuts: {
|
|
492
|
-
cameraId: string;
|
|
493
492
|
_id: string;
|
|
493
|
+
cameraId: string;
|
|
494
494
|
coords: {
|
|
495
495
|
_id: string;
|
|
496
496
|
points: [number, number];
|
|
@@ -509,8 +509,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
509
509
|
}, "strip", zod.ZodTypeAny, {
|
|
510
510
|
cameras: Record<string, {
|
|
511
511
|
shortcuts: {
|
|
512
|
-
cameraId: string;
|
|
513
512
|
_id: string;
|
|
513
|
+
cameraId: string;
|
|
514
514
|
coords: {
|
|
515
515
|
_id: string;
|
|
516
516
|
points: [number, number];
|
|
@@ -519,9 +519,9 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
519
519
|
}>;
|
|
520
520
|
camview: {
|
|
521
521
|
views: {
|
|
522
|
-
type: "dnd" | "view";
|
|
523
522
|
_id: string;
|
|
524
523
|
name: string;
|
|
524
|
+
type: "dnd" | "view";
|
|
525
525
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
526
526
|
cameras: {
|
|
527
527
|
cameraId: string;
|
|
@@ -542,8 +542,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
542
542
|
}>;
|
|
543
543
|
camview: {
|
|
544
544
|
views: {
|
|
545
|
-
type: "dnd" | "view";
|
|
546
545
|
name: string;
|
|
546
|
+
type: "dnd" | "view";
|
|
547
547
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
548
548
|
cameras: {
|
|
549
549
|
cameraId: string;
|
|
@@ -566,8 +566,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
566
566
|
preferences: {
|
|
567
567
|
cameras: Record<string, {
|
|
568
568
|
shortcuts: {
|
|
569
|
-
cameraId: string;
|
|
570
569
|
_id: string;
|
|
570
|
+
cameraId: string;
|
|
571
571
|
coords: {
|
|
572
572
|
_id: string;
|
|
573
573
|
points: [number, number];
|
|
@@ -576,9 +576,9 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
576
576
|
}>;
|
|
577
577
|
camview: {
|
|
578
578
|
views: {
|
|
579
|
-
type: "dnd" | "view";
|
|
580
579
|
_id: string;
|
|
581
580
|
name: string;
|
|
581
|
+
type: "dnd" | "view";
|
|
582
582
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
583
583
|
cameras: {
|
|
584
584
|
cameraId: string;
|
|
@@ -610,8 +610,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
610
610
|
}>;
|
|
611
611
|
camview: {
|
|
612
612
|
views: {
|
|
613
|
-
type: "dnd" | "view";
|
|
614
613
|
name: string;
|
|
614
|
+
type: "dnd" | "view";
|
|
615
615
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
616
616
|
cameras: {
|
|
617
617
|
cameraId: string;
|
|
@@ -634,8 +634,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
634
634
|
preferences: {
|
|
635
635
|
cameras: Record<string, {
|
|
636
636
|
shortcuts: {
|
|
637
|
-
cameraId: string;
|
|
638
637
|
_id: string;
|
|
638
|
+
cameraId: string;
|
|
639
639
|
coords: {
|
|
640
640
|
_id: string;
|
|
641
641
|
points: [number, number];
|
|
@@ -644,9 +644,9 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
644
644
|
}>;
|
|
645
645
|
camview: {
|
|
646
646
|
views: {
|
|
647
|
-
type: "dnd" | "view";
|
|
648
647
|
_id: string;
|
|
649
648
|
name: string;
|
|
649
|
+
type: "dnd" | "view";
|
|
650
650
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
651
651
|
cameras: {
|
|
652
652
|
cameraId: string;
|
|
@@ -678,8 +678,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
678
678
|
}>;
|
|
679
679
|
camview: {
|
|
680
680
|
views: {
|
|
681
|
-
type: "dnd" | "view";
|
|
682
681
|
name: string;
|
|
682
|
+
type: "dnd" | "view";
|
|
683
683
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
684
684
|
cameras: {
|
|
685
685
|
cameraId: string;
|
|
@@ -731,17 +731,17 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
731
731
|
}>, "many">;
|
|
732
732
|
type: zod.ZodUnion<[zod.ZodLiteral<"dnd">, zod.ZodLiteral<"view">]>;
|
|
733
733
|
}, "strip", zod.ZodTypeAny, {
|
|
734
|
-
type: "dnd" | "view";
|
|
735
734
|
_id: string;
|
|
736
735
|
name: string;
|
|
736
|
+
type: "dnd" | "view";
|
|
737
737
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
738
738
|
cameras: {
|
|
739
739
|
cameraId: string;
|
|
740
740
|
index: number;
|
|
741
741
|
}[];
|
|
742
742
|
}, {
|
|
743
|
-
type: "dnd" | "view";
|
|
744
743
|
name: string;
|
|
744
|
+
type: "dnd" | "view";
|
|
745
745
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
746
746
|
cameras: {
|
|
747
747
|
cameraId: string;
|
|
@@ -751,9 +751,9 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
751
751
|
}>, "many">;
|
|
752
752
|
}, "strip", zod.ZodTypeAny, {
|
|
753
753
|
views: {
|
|
754
|
-
type: "dnd" | "view";
|
|
755
754
|
_id: string;
|
|
756
755
|
name: string;
|
|
756
|
+
type: "dnd" | "view";
|
|
757
757
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
758
758
|
cameras: {
|
|
759
759
|
cameraId: string;
|
|
@@ -762,8 +762,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
762
762
|
}[];
|
|
763
763
|
}, {
|
|
764
764
|
views: {
|
|
765
|
-
type: "dnd" | "view";
|
|
766
765
|
name: string;
|
|
766
|
+
type: "dnd" | "view";
|
|
767
767
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
768
768
|
cameras: {
|
|
769
769
|
cameraId: string;
|
|
@@ -787,8 +787,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
787
787
|
_id?: string | undefined;
|
|
788
788
|
}>;
|
|
789
789
|
}, "strip", zod.ZodTypeAny, {
|
|
790
|
-
cameraId: string;
|
|
791
790
|
_id: string;
|
|
791
|
+
cameraId: string;
|
|
792
792
|
coords: {
|
|
793
793
|
_id: string;
|
|
794
794
|
points: [number, number];
|
|
@@ -803,8 +803,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
803
803
|
}>, "many">;
|
|
804
804
|
}, "strip", zod.ZodTypeAny, {
|
|
805
805
|
shortcuts: {
|
|
806
|
-
cameraId: string;
|
|
807
806
|
_id: string;
|
|
807
|
+
cameraId: string;
|
|
808
808
|
coords: {
|
|
809
809
|
_id: string;
|
|
810
810
|
points: [number, number];
|
|
@@ -823,8 +823,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
823
823
|
}, "strip", zod.ZodTypeAny, {
|
|
824
824
|
cameras?: Record<string, {
|
|
825
825
|
shortcuts: {
|
|
826
|
-
cameraId: string;
|
|
827
826
|
_id: string;
|
|
827
|
+
cameraId: string;
|
|
828
828
|
coords: {
|
|
829
829
|
_id: string;
|
|
830
830
|
points: [number, number];
|
|
@@ -833,9 +833,9 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
833
833
|
}> | undefined;
|
|
834
834
|
camview?: {
|
|
835
835
|
views: {
|
|
836
|
-
type: "dnd" | "view";
|
|
837
836
|
_id: string;
|
|
838
837
|
name: string;
|
|
838
|
+
type: "dnd" | "view";
|
|
839
839
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
840
840
|
cameras: {
|
|
841
841
|
cameraId: string;
|
|
@@ -856,8 +856,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
856
856
|
}> | undefined;
|
|
857
857
|
camview?: {
|
|
858
858
|
views: {
|
|
859
|
-
type: "dnd" | "view";
|
|
860
859
|
name: string;
|
|
860
|
+
type: "dnd" | "view";
|
|
861
861
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
862
862
|
cameras: {
|
|
863
863
|
cameraId: string;
|
|
@@ -880,8 +880,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
880
880
|
preferences?: {
|
|
881
881
|
cameras?: Record<string, {
|
|
882
882
|
shortcuts: {
|
|
883
|
-
cameraId: string;
|
|
884
883
|
_id: string;
|
|
884
|
+
cameraId: string;
|
|
885
885
|
coords: {
|
|
886
886
|
_id: string;
|
|
887
887
|
points: [number, number];
|
|
@@ -890,9 +890,9 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
890
890
|
}> | undefined;
|
|
891
891
|
camview?: {
|
|
892
892
|
views: {
|
|
893
|
-
type: "dnd" | "view";
|
|
894
893
|
_id: string;
|
|
895
894
|
name: string;
|
|
895
|
+
type: "dnd" | "view";
|
|
896
896
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
897
897
|
cameras: {
|
|
898
898
|
cameraId: string;
|
|
@@ -924,8 +924,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
924
924
|
}> | undefined;
|
|
925
925
|
camview?: {
|
|
926
926
|
views: {
|
|
927
|
-
type: "dnd" | "view";
|
|
928
927
|
name: string;
|
|
928
|
+
type: "dnd" | "view";
|
|
929
929
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
930
930
|
cameras: {
|
|
931
931
|
cameraId: string;
|
|
@@ -948,8 +948,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
948
948
|
preferences?: {
|
|
949
949
|
cameras?: Record<string, {
|
|
950
950
|
shortcuts: {
|
|
951
|
-
cameraId: string;
|
|
952
951
|
_id: string;
|
|
952
|
+
cameraId: string;
|
|
953
953
|
coords: {
|
|
954
954
|
_id: string;
|
|
955
955
|
points: [number, number];
|
|
@@ -958,9 +958,9 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
958
958
|
}> | undefined;
|
|
959
959
|
camview?: {
|
|
960
960
|
views: {
|
|
961
|
-
type: "dnd" | "view";
|
|
962
961
|
_id: string;
|
|
963
962
|
name: string;
|
|
963
|
+
type: "dnd" | "view";
|
|
964
964
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
965
965
|
cameras: {
|
|
966
966
|
cameraId: string;
|
|
@@ -992,8 +992,8 @@ export declare const patchUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
992
992
|
}> | undefined;
|
|
993
993
|
camview?: {
|
|
994
994
|
views: {
|
|
995
|
-
type: "dnd" | "view";
|
|
996
995
|
name: string;
|
|
996
|
+
type: "dnd" | "view";
|
|
997
997
|
viewSize: 1 | 4 | 6 | 9 | 10 | 16 | 20 | 12 | 7 | 13 | 15 | 26;
|
|
998
998
|
cameras: {
|
|
999
999
|
cameraId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { AuthConfig
|
|
1
|
+
import type { AuthConfig } from '@camera.ui/common';
|
|
2
|
+
import type { PLUGIN_STATUS, PluginContract } from '@camera.ui/plugineer';
|
|
2
3
|
import type { CameraExtension, CameraZone, RootSchema } from '@camera.ui/types';
|
|
3
4
|
import type { Readable } from 'node:stream';
|
|
4
5
|
import type { LoggingLevel } from '../../services/config/types.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CameraDevice, CameraPrebufferInterface, CameraPTZInterface } from '@camera.ui/plugineer';
|
|
2
|
+
import { FrameWorker } from './frameWorker.js';
|
|
2
3
|
import type { Logger } from '@camera.ui/common/logger';
|
|
3
4
|
import type { Camera, CameraConfigInputSettings, CameraDelegate, CameraDeviceInternalSource, CameraDeviceSource, MotionFrame, ProbeStream, SetValues, VideoFrame } from '@camera.ui/types';
|
|
4
|
-
import { FrameWorker } from './frameWorker.js';
|
|
5
5
|
export declare class CameraController extends CameraDevice {
|
|
6
6
|
readonly frameWorker: FrameWorker;
|
|
7
7
|
readonly streamInfos: Map<string, ProbeStream>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subscribed } from '@camera.ui/common';
|
|
2
2
|
import { PLUGIN_STATUS } from '@camera.ui/plugineer';
|
|
3
|
-
import type { AuthConfig } from '@camera.ui/
|
|
3
|
+
import type { AuthConfig } from '@camera.ui/common';
|
|
4
4
|
import type { CameraController } from './controller.js';
|
|
5
5
|
export declare class FrameWorker extends Subscribed {
|
|
6
6
|
readonly frameWorkerId: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ProxyConnection } from '@camera.ui/
|
|
1
|
+
import { ProxyConnection } from '@camera.ui/common';
|
|
2
2
|
import { CameraDeviceProxy } from './proxy/cameraDevice.js';
|
|
3
3
|
import { CoreManagerProxy } from './proxy/coreManager.js';
|
|
4
4
|
import { DeviceManagerProxy } from './proxy/deviceManager.js';
|
|
5
5
|
import { NatsServer } from './server.js';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ProxySubscription } from '@camera.ui/common';
|
|
7
|
+
import type { CameraDeviceListenerMessagePayload, CoreManagerProxyEvents, DeviceManagerProxyEvents } from '@camera.ui/plugineer';
|
|
7
8
|
import type { CameraStorage, StateValues } from '@camera.ui/types';
|
|
8
9
|
import type { MethodKeys, MethodType } from '../types.js';
|
|
9
10
|
import type { PluginMap, ProxyAuth } from './types.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/common';
|
|
2
|
+
import type { CameraDeviceProxyMethods, CameraInterfaces, RefreshedStates } from '@camera.ui/plugineer';
|
|
2
3
|
import type { CameraConfigInputSettings, ProbeStream, SetValues } from '@camera.ui/types';
|
|
3
4
|
import type { MethodKeys, MethodType } from '../../types.js';
|
|
4
5
|
export declare class CameraDeviceProxy implements CameraDeviceProxyMethods {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/
|
|
1
|
+
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/common';
|
|
2
2
|
import type { CoreManager, FfmpegArgs, IceServer } from '@camera.ui/types';
|
|
3
3
|
export declare class CoreManagerProxy implements CoreManager {
|
|
4
4
|
private configService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/
|
|
1
|
+
import type { MessageQueue, ProxyMessageStructure } from '@camera.ui/common';
|
|
2
2
|
import type { Camera, CameraConfig, DeviceManager } from '@camera.ui/types';
|
|
3
3
|
export declare class DeviceManagerProxy implements DeviceManager {
|
|
4
4
|
private camerasService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AuthConfig } from '@camera.ui/
|
|
1
|
+
import type { AuthConfig } from '@camera.ui/common';
|
|
2
2
|
import type { AudioDetectionPlugin, BasePlugin, MotionDetectionPlugin, ObjectDetectionPlugin } from '@camera.ui/types';
|
|
3
3
|
import type { VideoStreamingMode } from '../api/database/types.js';
|
|
4
4
|
export interface ProxyAuth {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AuthConfig } from '@camera.ui/
|
|
1
|
+
import type { AuthConfig } from '@camera.ui/common';
|
|
2
2
|
export declare function generateCredentials(): AuthConfig;
|
|
@@ -20,6 +20,7 @@ export declare class PluginWorker {
|
|
|
20
20
|
private shuttingDown;
|
|
21
21
|
private truncateInterval?;
|
|
22
22
|
private truncateIntervalMs;
|
|
23
|
+
private logBuffer;
|
|
23
24
|
private _status;
|
|
24
25
|
get status(): PLUGIN_STATUS;
|
|
25
26
|
constructor(plugin: Plugin);
|
|
@@ -32,6 +33,7 @@ export declare class PluginWorker {
|
|
|
32
33
|
isRunning(): boolean;
|
|
33
34
|
isReady(): boolean;
|
|
34
35
|
cleanup(): Promise<void>;
|
|
36
|
+
writeLog(...args: any[]): void;
|
|
35
37
|
private gatherDevices;
|
|
36
38
|
private kill;
|
|
37
39
|
private setStatus;
|
|
@@ -41,7 +43,9 @@ export declare class PluginWorker {
|
|
|
41
43
|
private updatePython;
|
|
42
44
|
private onChildMessage;
|
|
43
45
|
private createPythonPath;
|
|
44
|
-
|
|
46
|
+
private handleLogData;
|
|
47
|
+
private processLogEntry;
|
|
48
|
+
private writeProcessLog;
|
|
45
49
|
private internalLog;
|
|
46
50
|
private createLogStream;
|
|
47
51
|
private closeLogStream;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export type * from '../../packages/common/src/nats/messageQueue.js';
|
|
1
2
|
export { Subscribed as SubscribedImp } from '../../packages/common/src/utils/subscribed.js';
|
|
2
3
|
export * from '../../packages/plugineer/src/polyglot/node/camera/polygon.js';
|
|
3
4
|
export * from '../../packages/plugineer/src/polyglot/node/plugins/schema.js';
|
|
4
5
|
export * from '../../packages/plugineer/src/polyglot/node/plugins/types.js';
|
|
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
8
|
export type * from '../../server/src/api/go2rtc/types.js';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|