@camera.ui/browser 0.0.55 → 0.0.56
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/server/src/api/schemas/cameras.schema.d.ts +94 -94
- package/dist/types/server/src/api/schemas/config.schema.d.ts +5 -5
- package/dist/types/server/src/api/schemas/users.schema.d.ts +2 -2
- package/dist/types/server/src/plugins/types.d.ts +0 -7
- package/dist/types/shared/types/index.d.ts +6 -6
- package/package.json +1 -1
|
@@ -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">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
95
95
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
96
96
|
}, "strict", zod.ZodTypeAny, {
|
|
97
97
|
_id: string;
|
|
98
98
|
name: string;
|
|
99
|
-
roles: ("
|
|
99
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
100
100
|
urls: string[];
|
|
101
101
|
}, {
|
|
102
102
|
name: string;
|
|
103
|
-
roles: ("
|
|
103
|
+
roles: ("detect" | "record" | "stream" | "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">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
111
111
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
112
112
|
}, "strict", zod.ZodTypeAny, {
|
|
113
113
|
_id: string;
|
|
114
114
|
name: string;
|
|
115
|
-
roles: ("
|
|
115
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
116
116
|
urls: string[];
|
|
117
117
|
}, {
|
|
118
118
|
name: string;
|
|
119
|
-
roles: ("
|
|
119
|
+
roles: ("detect" | "record" | "stream" | "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">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
217
217
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
218
218
|
}, "strict", zod.ZodTypeAny, {
|
|
219
219
|
_id: string;
|
|
220
220
|
name: string;
|
|
221
|
-
roles: ("
|
|
221
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
222
222
|
urls: string[];
|
|
223
223
|
}, {
|
|
224
224
|
name: string;
|
|
225
|
-
roles: ("
|
|
225
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
226
226
|
urls: string[];
|
|
227
227
|
_id?: string | undefined;
|
|
228
228
|
}>, "many">;
|
|
@@ -359,11 +359,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
359
359
|
}>, "many">>;
|
|
360
360
|
motionTimeout: zod.ZodDefault<zod.ZodNumber>;
|
|
361
361
|
}, "strict", zod.ZodTypeAny, {
|
|
362
|
-
|
|
363
|
-
enabled: boolean;
|
|
364
|
-
};
|
|
365
|
-
_id: string;
|
|
366
|
-
name: string;
|
|
362
|
+
disabled: boolean;
|
|
367
363
|
info: {
|
|
368
364
|
model: string;
|
|
369
365
|
manufacturer: string;
|
|
@@ -372,20 +368,36 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
372
368
|
firmwareVersion: string;
|
|
373
369
|
supportUrl: string;
|
|
374
370
|
};
|
|
375
|
-
type: "
|
|
371
|
+
type: "camera" | "doorbell";
|
|
372
|
+
_id: string;
|
|
373
|
+
name: string;
|
|
376
374
|
pluginId: string;
|
|
377
|
-
sources: {
|
|
378
|
-
_id: string;
|
|
379
|
-
name: string;
|
|
380
|
-
roles: ("stream" | "detect" | "record" | "snapshot" | "none")[];
|
|
381
|
-
urls: string[];
|
|
382
|
-
}[];
|
|
383
|
-
disabled: boolean;
|
|
384
375
|
isCloud: boolean;
|
|
385
376
|
hasLight: boolean;
|
|
386
377
|
hasSiren: boolean;
|
|
387
378
|
hasBinarySensor: boolean;
|
|
388
379
|
hasBattery: boolean;
|
|
380
|
+
sources: {
|
|
381
|
+
_id: string;
|
|
382
|
+
name: string;
|
|
383
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
384
|
+
urls: string[];
|
|
385
|
+
}[];
|
|
386
|
+
extensions: {
|
|
387
|
+
plugins: string[];
|
|
388
|
+
hub?: string[] | undefined;
|
|
389
|
+
prebuffer?: string | undefined;
|
|
390
|
+
motionDetection?: string | undefined;
|
|
391
|
+
objectDetection?: string | undefined;
|
|
392
|
+
audioDetection?: string | undefined;
|
|
393
|
+
ptz?: string | undefined;
|
|
394
|
+
};
|
|
395
|
+
recording: {
|
|
396
|
+
enabled: boolean;
|
|
397
|
+
};
|
|
398
|
+
interface: {
|
|
399
|
+
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
400
|
+
};
|
|
389
401
|
motionZones: {
|
|
390
402
|
name: string;
|
|
391
403
|
regions: {
|
|
@@ -407,31 +419,16 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
407
419
|
}[];
|
|
408
420
|
}[];
|
|
409
421
|
motionTimeout: number;
|
|
410
|
-
extensions: {
|
|
411
|
-
plugins: string[];
|
|
412
|
-
hub?: string[] | undefined;
|
|
413
|
-
prebuffer?: string | undefined;
|
|
414
|
-
motionDetection?: string | undefined;
|
|
415
|
-
objectDetection?: string | undefined;
|
|
416
|
-
audioDetection?: string | undefined;
|
|
417
|
-
ptz?: string | undefined;
|
|
418
|
-
};
|
|
419
|
-
interface: {
|
|
420
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
421
|
-
};
|
|
422
422
|
nativeId?: string | undefined;
|
|
423
423
|
}, {
|
|
424
424
|
name: string;
|
|
425
425
|
sources: {
|
|
426
426
|
name: string;
|
|
427
|
-
roles: ("
|
|
427
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
428
428
|
urls: string[];
|
|
429
429
|
_id?: string | undefined;
|
|
430
430
|
}[];
|
|
431
|
-
|
|
432
|
-
enabled?: boolean | undefined;
|
|
433
|
-
} | undefined;
|
|
434
|
-
_id?: string | undefined;
|
|
431
|
+
disabled?: boolean | undefined;
|
|
435
432
|
info?: {
|
|
436
433
|
model: string;
|
|
437
434
|
manufacturer: string;
|
|
@@ -440,15 +437,30 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
440
437
|
firmwareVersion: string;
|
|
441
438
|
supportUrl: string;
|
|
442
439
|
} | undefined;
|
|
443
|
-
type?: "
|
|
440
|
+
type?: "camera" | "doorbell" | undefined;
|
|
441
|
+
_id?: string | undefined;
|
|
444
442
|
nativeId?: string | undefined;
|
|
445
443
|
pluginId?: string | undefined;
|
|
446
|
-
disabled?: boolean | undefined;
|
|
447
444
|
isCloud?: boolean | undefined;
|
|
448
445
|
hasLight?: boolean | undefined;
|
|
449
446
|
hasSiren?: boolean | undefined;
|
|
450
447
|
hasBinarySensor?: boolean | undefined;
|
|
451
448
|
hasBattery?: boolean | undefined;
|
|
449
|
+
extensions?: {
|
|
450
|
+
plugins: string[];
|
|
451
|
+
hub?: string[] | undefined;
|
|
452
|
+
prebuffer?: string | undefined;
|
|
453
|
+
motionDetection?: string | undefined;
|
|
454
|
+
objectDetection?: string | undefined;
|
|
455
|
+
audioDetection?: string | undefined;
|
|
456
|
+
ptz?: string | undefined;
|
|
457
|
+
} | undefined;
|
|
458
|
+
recording?: {
|
|
459
|
+
enabled?: boolean | undefined;
|
|
460
|
+
} | undefined;
|
|
461
|
+
interface?: {
|
|
462
|
+
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
463
|
+
} | undefined;
|
|
452
464
|
motionZones?: {
|
|
453
465
|
name: string;
|
|
454
466
|
regions: {
|
|
@@ -470,18 +482,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
470
482
|
}[];
|
|
471
483
|
}[] | undefined;
|
|
472
484
|
motionTimeout?: number | undefined;
|
|
473
|
-
extensions?: {
|
|
474
|
-
plugins: string[];
|
|
475
|
-
hub?: string[] | undefined;
|
|
476
|
-
prebuffer?: string | undefined;
|
|
477
|
-
motionDetection?: string | undefined;
|
|
478
|
-
objectDetection?: string | undefined;
|
|
479
|
-
audioDetection?: string | undefined;
|
|
480
|
-
ptz?: string | undefined;
|
|
481
|
-
} | undefined;
|
|
482
|
-
interface?: {
|
|
483
|
-
streamingModes: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[];
|
|
484
|
-
} | undefined;
|
|
485
485
|
}>;
|
|
486
486
|
export declare const patchCameraSchema: zod.ZodObject<{
|
|
487
487
|
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
@@ -512,16 +512,16 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
512
512
|
sources: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
513
513
|
_id: zod.ZodEffects<zod.ZodDefault<zod.ZodString>, string, string | undefined>;
|
|
514
514
|
name: zod.ZodEffects<zod.ZodString, string, string>;
|
|
515
|
-
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("
|
|
515
|
+
roles: zod.ZodEffects<zod.ZodArray<zod.ZodUnion<[zod.ZodLiteral<"detect">, zod.ZodLiteral<"record">, zod.ZodLiteral<"stream">, zod.ZodLiteral<"snapshot">, zod.ZodLiteral<"none">]>, "many">, ("detect" | "record" | "stream" | "snapshot" | "none")[], ("detect" | "record" | "stream" | "snapshot" | "none")[]>;
|
|
516
516
|
urls: zod.ZodArray<zod.ZodString, "many">;
|
|
517
517
|
}, "strict", zod.ZodTypeAny, {
|
|
518
518
|
_id: string;
|
|
519
519
|
name: string;
|
|
520
|
-
roles: ("
|
|
520
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
521
521
|
urls: string[];
|
|
522
522
|
}, {
|
|
523
523
|
name: string;
|
|
524
|
-
roles: ("
|
|
524
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
525
525
|
urls: string[];
|
|
526
526
|
_id?: string | undefined;
|
|
527
527
|
}>, "many">>;
|
|
@@ -658,10 +658,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
658
658
|
}>, "many">>;
|
|
659
659
|
motionTimeout: zod.ZodOptional<zod.ZodNumber>;
|
|
660
660
|
}, "strict", zod.ZodTypeAny, {
|
|
661
|
-
|
|
662
|
-
enabled?: boolean | undefined;
|
|
663
|
-
} | undefined;
|
|
664
|
-
name?: string | undefined;
|
|
661
|
+
disabled?: boolean | undefined;
|
|
665
662
|
info?: {
|
|
666
663
|
model?: string | undefined;
|
|
667
664
|
manufacturer?: string | undefined;
|
|
@@ -670,14 +667,29 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
670
667
|
firmwareVersion?: string | undefined;
|
|
671
668
|
supportUrl?: string | undefined;
|
|
672
669
|
} | undefined;
|
|
673
|
-
type?: "
|
|
670
|
+
type?: "camera" | "doorbell" | undefined;
|
|
671
|
+
name?: string | undefined;
|
|
674
672
|
sources?: {
|
|
675
673
|
_id: string;
|
|
676
674
|
name: string;
|
|
677
|
-
roles: ("
|
|
675
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
678
676
|
urls: string[];
|
|
679
677
|
}[] | undefined;
|
|
680
|
-
|
|
678
|
+
extensions?: {
|
|
679
|
+
hub?: string[] | undefined;
|
|
680
|
+
prebuffer?: string | undefined;
|
|
681
|
+
motionDetection?: string | undefined;
|
|
682
|
+
objectDetection?: string | undefined;
|
|
683
|
+
audioDetection?: string | undefined;
|
|
684
|
+
ptz?: string | undefined;
|
|
685
|
+
plugins?: string[] | undefined;
|
|
686
|
+
} | undefined;
|
|
687
|
+
recording?: {
|
|
688
|
+
enabled?: boolean | undefined;
|
|
689
|
+
} | undefined;
|
|
690
|
+
interface?: {
|
|
691
|
+
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[] | undefined;
|
|
692
|
+
} | undefined;
|
|
681
693
|
motionZones?: {
|
|
682
694
|
name: string;
|
|
683
695
|
regions: {
|
|
@@ -699,23 +711,8 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
699
711
|
}[];
|
|
700
712
|
}[] | undefined;
|
|
701
713
|
motionTimeout?: number | undefined;
|
|
702
|
-
extensions?: {
|
|
703
|
-
hub?: string[] | undefined;
|
|
704
|
-
prebuffer?: string | undefined;
|
|
705
|
-
motionDetection?: string | undefined;
|
|
706
|
-
objectDetection?: string | undefined;
|
|
707
|
-
audioDetection?: string | undefined;
|
|
708
|
-
ptz?: string | undefined;
|
|
709
|
-
plugins?: string[] | undefined;
|
|
710
|
-
} | undefined;
|
|
711
|
-
interface?: {
|
|
712
|
-
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[] | undefined;
|
|
713
|
-
} | undefined;
|
|
714
714
|
}, {
|
|
715
|
-
|
|
716
|
-
enabled?: boolean | undefined;
|
|
717
|
-
} | undefined;
|
|
718
|
-
name?: string | undefined;
|
|
715
|
+
disabled?: boolean | undefined;
|
|
719
716
|
info?: {
|
|
720
717
|
model?: string | undefined;
|
|
721
718
|
manufacturer?: string | undefined;
|
|
@@ -724,14 +721,29 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
724
721
|
firmwareVersion?: string | undefined;
|
|
725
722
|
supportUrl?: string | undefined;
|
|
726
723
|
} | undefined;
|
|
727
|
-
type?: "
|
|
724
|
+
type?: "camera" | "doorbell" | undefined;
|
|
725
|
+
name?: string | undefined;
|
|
728
726
|
sources?: {
|
|
729
727
|
name: string;
|
|
730
|
-
roles: ("
|
|
728
|
+
roles: ("detect" | "record" | "stream" | "snapshot" | "none")[];
|
|
731
729
|
urls: string[];
|
|
732
730
|
_id?: string | undefined;
|
|
733
731
|
}[] | undefined;
|
|
734
|
-
|
|
732
|
+
extensions?: {
|
|
733
|
+
hub?: string[] | undefined;
|
|
734
|
+
prebuffer?: string | undefined;
|
|
735
|
+
motionDetection?: string | undefined;
|
|
736
|
+
objectDetection?: string | undefined;
|
|
737
|
+
audioDetection?: string | undefined;
|
|
738
|
+
ptz?: string | undefined;
|
|
739
|
+
plugins?: string[] | undefined;
|
|
740
|
+
} | undefined;
|
|
741
|
+
recording?: {
|
|
742
|
+
enabled?: boolean | undefined;
|
|
743
|
+
} | undefined;
|
|
744
|
+
interface?: {
|
|
745
|
+
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[] | undefined;
|
|
746
|
+
} | undefined;
|
|
735
747
|
motionZones?: {
|
|
736
748
|
name: string;
|
|
737
749
|
regions: {
|
|
@@ -753,18 +765,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
753
765
|
}[];
|
|
754
766
|
}[] | undefined;
|
|
755
767
|
motionTimeout?: number | undefined;
|
|
756
|
-
extensions?: {
|
|
757
|
-
hub?: string[] | undefined;
|
|
758
|
-
prebuffer?: string | undefined;
|
|
759
|
-
motionDetection?: string | undefined;
|
|
760
|
-
objectDetection?: string | undefined;
|
|
761
|
-
audioDetection?: string | undefined;
|
|
762
|
-
ptz?: string | undefined;
|
|
763
|
-
plugins?: string[] | undefined;
|
|
764
|
-
} | undefined;
|
|
765
|
-
interface?: {
|
|
766
|
-
streamingModes?: ("mse" | "webrtc" | "webrtc/tcp" | "mjpeg" | "hls" | "mp4")[] | undefined;
|
|
767
|
-
} | undefined;
|
|
768
768
|
}>;
|
|
769
769
|
export declare const patchExtensionsSchema: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
|
|
770
770
|
export declare const previewCameraSchema: zod.ZodObject<{
|
|
@@ -61,9 +61,9 @@ export declare const mqttSchema: zod.ZodObject<{
|
|
|
61
61
|
key?: string | undefined;
|
|
62
62
|
}>>>;
|
|
63
63
|
}, "strict", zod.ZodTypeAny, {
|
|
64
|
-
port: number;
|
|
65
64
|
enabled: boolean;
|
|
66
65
|
host: string;
|
|
66
|
+
port: number;
|
|
67
67
|
topicPrefix: string;
|
|
68
68
|
clientId: string;
|
|
69
69
|
tls: {
|
|
@@ -74,10 +74,10 @@ export declare const mqttSchema: zod.ZodObject<{
|
|
|
74
74
|
password?: string | undefined;
|
|
75
75
|
user?: string | undefined;
|
|
76
76
|
}, {
|
|
77
|
-
port?: number | undefined;
|
|
78
|
-
enabled?: boolean | undefined;
|
|
79
77
|
password?: string | undefined;
|
|
78
|
+
enabled?: boolean | undefined;
|
|
80
79
|
host?: string | undefined;
|
|
80
|
+
port?: number | undefined;
|
|
81
81
|
topicPrefix?: string | undefined;
|
|
82
82
|
clientId?: string | undefined;
|
|
83
83
|
user?: string | undefined;
|
|
@@ -162,11 +162,11 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
162
162
|
snapshotCache?: number | undefined;
|
|
163
163
|
}>>;
|
|
164
164
|
}, "strict", zod.ZodTypeAny, {
|
|
165
|
-
port: number;
|
|
166
165
|
plugins: {
|
|
167
166
|
sudo?: boolean | undefined;
|
|
168
167
|
disabledPlugins?: string[] | undefined;
|
|
169
168
|
};
|
|
169
|
+
port: number;
|
|
170
170
|
insecurePort: number;
|
|
171
171
|
ssl: {
|
|
172
172
|
certFile: string;
|
|
@@ -191,11 +191,11 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
191
191
|
level?: "error" | "info" | "debug" | "warn" | "trace" | undefined;
|
|
192
192
|
disableTimestamps?: boolean | undefined;
|
|
193
193
|
};
|
|
194
|
-
port?: number | undefined;
|
|
195
194
|
plugins?: {
|
|
196
195
|
sudo?: boolean | undefined;
|
|
197
196
|
disabledPlugins?: string[] | undefined;
|
|
198
197
|
} | undefined;
|
|
198
|
+
port?: number | undefined;
|
|
199
199
|
insecurePort?: number | undefined;
|
|
200
200
|
tempFile?: string | undefined;
|
|
201
201
|
settings?: {
|
|
@@ -243,8 +243,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
243
243
|
};
|
|
244
244
|
}>>;
|
|
245
245
|
}, "strict", zod.ZodTypeAny, {
|
|
246
|
-
_id: string;
|
|
247
246
|
password: string;
|
|
247
|
+
_id: string;
|
|
248
248
|
preferences: {
|
|
249
249
|
camview: {
|
|
250
250
|
grids: {
|
|
@@ -287,8 +287,8 @@ export declare const createUserSchema: zod.ZodEffects<zod.ZodObject<{
|
|
|
287
287
|
oneLogin?: boolean | undefined;
|
|
288
288
|
firstLogin?: boolean | undefined;
|
|
289
289
|
}>, {
|
|
290
|
-
_id: string;
|
|
291
290
|
password: string;
|
|
291
|
+
_id: string;
|
|
292
292
|
preferences: {
|
|
293
293
|
camview: {
|
|
294
294
|
grids: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Camera } from '../api/database/types';
|
|
2
|
-
import type { CameraDevice } from '../camera/base';
|
|
3
2
|
export interface SchemaConfig {
|
|
4
3
|
rootSchema: PluginRootSchema;
|
|
5
4
|
config: Record<string, any>;
|
|
@@ -153,10 +152,4 @@ export interface RootSchema {
|
|
|
153
152
|
export interface PluginRootSchema {
|
|
154
153
|
schema: PluginJsonSchemaForm;
|
|
155
154
|
}
|
|
156
|
-
export interface BasePlugin {
|
|
157
|
-
onFormSubmit(actionId: string, payload: any): Promise<{
|
|
158
|
-
toast?: string;
|
|
159
|
-
} | void>;
|
|
160
|
-
configureCameras(cameras: CameraDevice[]): void;
|
|
161
|
-
}
|
|
162
155
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from '../../server/src/api/database/types';
|
|
2
|
-
export * from '../../server/src/api/types';
|
|
3
|
-
export * from '../../server/src/api/ws/types';
|
|
1
|
+
export type * from '../../server/src/api/database/types';
|
|
2
|
+
export type * from '../../server/src/api/types';
|
|
3
|
+
export type * from '../../server/src/api/ws/types';
|
|
4
4
|
export * from '../../server/src/camera/base/base.browser';
|
|
5
5
|
export * from '../../server/src/camera/streaming/browser/browser-streaming-session';
|
|
6
6
|
export * from '../../server/src/camera/streaming/browser/webrtc-browser-connection';
|
|
7
|
-
export * from '../../server/src/camera/types';
|
|
8
|
-
export * from '../../server/src/detector/types';
|
|
7
|
+
export type * from '../../server/src/camera/types';
|
|
8
|
+
export type * from '../../server/src/detector/types';
|
|
9
9
|
export * from '../../server/src/go2rtc/types';
|
|
10
10
|
export * from '../../server/src/plugins/types';
|
|
11
|
-
export * from '../../server/src/proxy/types';
|
|
11
|
+
export type * from '../../server/src/proxy/types';
|
|
12
12
|
export * from '../../server/src/services/config/types';
|