@awarevue/api-types 2.0.39 → 2.0.41
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/api/agent-protocol/protocol.d.ts +204 -136
- package/dist/api/commands/all.d.ts +135 -92
- package/dist/api/commands/nvr-exporter.d.ts +140 -92
- package/dist/api/commands/nvr-exporter.js +1 -0
- package/dist/api/commands/server.d.ts +130 -92
- package/dist/api/queries/all.d.ts +153 -102
- package/dist/api/queries/nvr-recorder.d.ts +306 -204
- package/dist/api/rest/cast.d.ts +2 -2
- package/dist/api/rest/device.d.ts +18 -0
- package/dist/api/rest/device.js +3 -0
- package/dist/api/rest/media.d.ts +3 -0
- package/dist/api/rest/media.js +1 -0
- package/dist/api/rest/view.d.ts +82 -14
- package/dist/api/rest/webrtc-playback.d.ts +18 -3
- package/dist/api/rest/webrtc-playback.js +5 -1
- package/dist/objects/device/any-device.d.ts +111 -66
- package/dist/objects/device/camera.d.ts +59 -22
- package/dist/objects/device/camera.js +5 -4
- package/dist/objects/device/device-import.d.ts +190 -124
- package/dist/objects/view.d.ts +135 -21
- package/dist/objects/view.js +8 -4
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +74 -44
- package/package.json +1 -1
|
@@ -43,8 +43,6 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
43
43
|
}, {
|
|
44
44
|
type: "alarm";
|
|
45
45
|
}>, z.ZodObject<{
|
|
46
|
-
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
47
|
-
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
48
46
|
ptzCapable: z.ZodBoolean;
|
|
49
47
|
ptzPanSpeed: z.ZodNumber;
|
|
50
48
|
ptzTiltSpeed: z.ZodNumber;
|
|
@@ -55,31 +53,46 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
55
53
|
tiltMax: z.ZodNumber;
|
|
56
54
|
zoomMin: z.ZodNumber;
|
|
57
55
|
zoomMax: z.ZodNumber;
|
|
58
|
-
recordingCapable: z.ZodBoolean;
|
|
59
|
-
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
60
|
-
kind: z.ZodString;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
kind: string;
|
|
63
|
-
}, {
|
|
64
|
-
kind: string;
|
|
65
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
66
56
|
streams: z.ZodArray<z.ZodObject<{
|
|
67
57
|
id: z.ZodString;
|
|
68
58
|
displayName: z.ZodString;
|
|
69
59
|
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
70
60
|
rtspUrl: z.ZodString;
|
|
61
|
+
recordingCapable: z.ZodBoolean;
|
|
62
|
+
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
63
|
+
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
64
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
65
|
+
kind: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
kind: string;
|
|
68
|
+
}, {
|
|
69
|
+
kind: string;
|
|
70
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
72
|
id: string;
|
|
73
73
|
displayName: string;
|
|
74
74
|
externalPlayerUrl: string | null;
|
|
75
75
|
rtspUrl: string;
|
|
76
|
+
recordingCapable: boolean;
|
|
77
|
+
lensType: "flat" | "fisheye";
|
|
78
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
79
|
+
webrtcPlaybackSource: ({
|
|
80
|
+
kind: string;
|
|
81
|
+
} & Record<string, unknown>) | null;
|
|
76
82
|
}, {
|
|
77
83
|
id: string;
|
|
78
84
|
displayName: string;
|
|
79
85
|
externalPlayerUrl: string | null;
|
|
80
86
|
rtspUrl: string;
|
|
87
|
+
recordingCapable: boolean;
|
|
88
|
+
lensType: "flat" | "fisheye";
|
|
89
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
90
|
+
webrtcPlaybackSource: ({
|
|
91
|
+
kind: string;
|
|
92
|
+
} & Record<string, unknown>) | null;
|
|
81
93
|
}>, "many">;
|
|
82
94
|
defaultStreamId: z.ZodString;
|
|
95
|
+
streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
|
|
83
96
|
} & {
|
|
84
97
|
type: z.ZodLiteral<"camera">;
|
|
85
98
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -89,9 +102,13 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
89
102
|
displayName: string;
|
|
90
103
|
externalPlayerUrl: string | null;
|
|
91
104
|
rtspUrl: string;
|
|
105
|
+
recordingCapable: boolean;
|
|
106
|
+
lensType: "flat" | "fisheye";
|
|
107
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
108
|
+
webrtcPlaybackSource: ({
|
|
109
|
+
kind: string;
|
|
110
|
+
} & Record<string, unknown>) | null;
|
|
92
111
|
}[];
|
|
93
|
-
lensType: "flat" | "fisheye";
|
|
94
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
95
112
|
ptzCapable: boolean;
|
|
96
113
|
ptzPanSpeed: number;
|
|
97
114
|
ptzTiltSpeed: number;
|
|
@@ -102,11 +119,8 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
102
119
|
tiltMax: number;
|
|
103
120
|
zoomMin: number;
|
|
104
121
|
zoomMax: number;
|
|
105
|
-
recordingCapable: boolean;
|
|
106
|
-
webrtcPlaybackSource: ({
|
|
107
|
-
kind: string;
|
|
108
|
-
} & Record<string, unknown>) | null;
|
|
109
122
|
defaultStreamId: string;
|
|
123
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
110
124
|
}, {
|
|
111
125
|
type: "camera";
|
|
112
126
|
streams: {
|
|
@@ -114,9 +128,13 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
114
128
|
displayName: string;
|
|
115
129
|
externalPlayerUrl: string | null;
|
|
116
130
|
rtspUrl: string;
|
|
131
|
+
recordingCapable: boolean;
|
|
132
|
+
lensType: "flat" | "fisheye";
|
|
133
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
134
|
+
webrtcPlaybackSource: ({
|
|
135
|
+
kind: string;
|
|
136
|
+
} & Record<string, unknown>) | null;
|
|
117
137
|
}[];
|
|
118
|
-
lensType: "flat" | "fisheye";
|
|
119
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
120
138
|
ptzCapable: boolean;
|
|
121
139
|
ptzPanSpeed: number;
|
|
122
140
|
ptzTiltSpeed: number;
|
|
@@ -127,11 +145,8 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<"type", [z.ZodObje
|
|
|
127
145
|
tiltMax: number;
|
|
128
146
|
zoomMin: number;
|
|
129
147
|
zoomMax: number;
|
|
130
|
-
recordingCapable: boolean;
|
|
131
|
-
webrtcPlaybackSource: ({
|
|
132
|
-
kind: string;
|
|
133
|
-
} & Record<string, unknown>) | null;
|
|
134
148
|
defaultStreamId: string;
|
|
149
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
135
150
|
}>, z.ZodObject<{
|
|
136
151
|
canReportOpenState: z.ZodBoolean;
|
|
137
152
|
canReportLockState: z.ZodBoolean;
|
|
@@ -420,8 +435,6 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
420
435
|
}, {
|
|
421
436
|
type: "alarm";
|
|
422
437
|
}>, z.ZodObject<{
|
|
423
|
-
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
424
|
-
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
425
438
|
ptzCapable: z.ZodBoolean;
|
|
426
439
|
ptzPanSpeed: z.ZodNumber;
|
|
427
440
|
ptzTiltSpeed: z.ZodNumber;
|
|
@@ -432,31 +445,46 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
432
445
|
tiltMax: z.ZodNumber;
|
|
433
446
|
zoomMin: z.ZodNumber;
|
|
434
447
|
zoomMax: z.ZodNumber;
|
|
435
|
-
recordingCapable: z.ZodBoolean;
|
|
436
|
-
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
437
|
-
kind: z.ZodString;
|
|
438
|
-
}, "strip", z.ZodTypeAny, {
|
|
439
|
-
kind: string;
|
|
440
|
-
}, {
|
|
441
|
-
kind: string;
|
|
442
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
443
448
|
streams: z.ZodArray<z.ZodObject<{
|
|
444
449
|
id: z.ZodString;
|
|
445
450
|
displayName: z.ZodString;
|
|
446
451
|
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
447
452
|
rtspUrl: z.ZodString;
|
|
453
|
+
recordingCapable: z.ZodBoolean;
|
|
454
|
+
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
455
|
+
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
456
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
457
|
+
kind: z.ZodString;
|
|
458
|
+
}, "strip", z.ZodTypeAny, {
|
|
459
|
+
kind: string;
|
|
460
|
+
}, {
|
|
461
|
+
kind: string;
|
|
462
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
448
463
|
}, "strip", z.ZodTypeAny, {
|
|
449
464
|
id: string;
|
|
450
465
|
displayName: string;
|
|
451
466
|
externalPlayerUrl: string | null;
|
|
452
467
|
rtspUrl: string;
|
|
468
|
+
recordingCapable: boolean;
|
|
469
|
+
lensType: "flat" | "fisheye";
|
|
470
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
471
|
+
webrtcPlaybackSource: ({
|
|
472
|
+
kind: string;
|
|
473
|
+
} & Record<string, unknown>) | null;
|
|
453
474
|
}, {
|
|
454
475
|
id: string;
|
|
455
476
|
displayName: string;
|
|
456
477
|
externalPlayerUrl: string | null;
|
|
457
478
|
rtspUrl: string;
|
|
479
|
+
recordingCapable: boolean;
|
|
480
|
+
lensType: "flat" | "fisheye";
|
|
481
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
482
|
+
webrtcPlaybackSource: ({
|
|
483
|
+
kind: string;
|
|
484
|
+
} & Record<string, unknown>) | null;
|
|
458
485
|
}>, "many">;
|
|
459
486
|
defaultStreamId: z.ZodString;
|
|
487
|
+
streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
|
|
460
488
|
} & {
|
|
461
489
|
type: z.ZodLiteral<"camera">;
|
|
462
490
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -466,9 +494,13 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
466
494
|
displayName: string;
|
|
467
495
|
externalPlayerUrl: string | null;
|
|
468
496
|
rtspUrl: string;
|
|
497
|
+
recordingCapable: boolean;
|
|
498
|
+
lensType: "flat" | "fisheye";
|
|
499
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
500
|
+
webrtcPlaybackSource: ({
|
|
501
|
+
kind: string;
|
|
502
|
+
} & Record<string, unknown>) | null;
|
|
469
503
|
}[];
|
|
470
|
-
lensType: "flat" | "fisheye";
|
|
471
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
472
504
|
ptzCapable: boolean;
|
|
473
505
|
ptzPanSpeed: number;
|
|
474
506
|
ptzTiltSpeed: number;
|
|
@@ -479,11 +511,8 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
479
511
|
tiltMax: number;
|
|
480
512
|
zoomMin: number;
|
|
481
513
|
zoomMax: number;
|
|
482
|
-
recordingCapable: boolean;
|
|
483
|
-
webrtcPlaybackSource: ({
|
|
484
|
-
kind: string;
|
|
485
|
-
} & Record<string, unknown>) | null;
|
|
486
514
|
defaultStreamId: string;
|
|
515
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
487
516
|
}, {
|
|
488
517
|
type: "camera";
|
|
489
518
|
streams: {
|
|
@@ -491,9 +520,13 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
491
520
|
displayName: string;
|
|
492
521
|
externalPlayerUrl: string | null;
|
|
493
522
|
rtspUrl: string;
|
|
523
|
+
recordingCapable: boolean;
|
|
524
|
+
lensType: "flat" | "fisheye";
|
|
525
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
526
|
+
webrtcPlaybackSource: ({
|
|
527
|
+
kind: string;
|
|
528
|
+
} & Record<string, unknown>) | null;
|
|
494
529
|
}[];
|
|
495
|
-
lensType: "flat" | "fisheye";
|
|
496
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
497
530
|
ptzCapable: boolean;
|
|
498
531
|
ptzPanSpeed: number;
|
|
499
532
|
ptzTiltSpeed: number;
|
|
@@ -504,11 +537,8 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
504
537
|
tiltMax: number;
|
|
505
538
|
zoomMin: number;
|
|
506
539
|
zoomMax: number;
|
|
507
|
-
recordingCapable: boolean;
|
|
508
|
-
webrtcPlaybackSource: ({
|
|
509
|
-
kind: string;
|
|
510
|
-
} & Record<string, unknown>) | null;
|
|
511
540
|
defaultStreamId: string;
|
|
541
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
512
542
|
}>, z.ZodObject<{
|
|
513
543
|
canReportOpenState: z.ZodBoolean;
|
|
514
544
|
canReportLockState: z.ZodBoolean;
|
|
@@ -763,8 +793,6 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
|
|
|
763
793
|
};
|
|
764
794
|
}>>;
|
|
765
795
|
export declare const sCameraDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
766
|
-
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
767
|
-
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
768
796
|
ptzCapable: z.ZodBoolean;
|
|
769
797
|
ptzPanSpeed: z.ZodNumber;
|
|
770
798
|
ptzTiltSpeed: z.ZodNumber;
|
|
@@ -775,31 +803,46 @@ export declare const sCameraDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject
|
|
|
775
803
|
tiltMax: z.ZodNumber;
|
|
776
804
|
zoomMin: z.ZodNumber;
|
|
777
805
|
zoomMax: z.ZodNumber;
|
|
778
|
-
recordingCapable: z.ZodBoolean;
|
|
779
|
-
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
780
|
-
kind: z.ZodString;
|
|
781
|
-
}, "strip", z.ZodTypeAny, {
|
|
782
|
-
kind: string;
|
|
783
|
-
}, {
|
|
784
|
-
kind: string;
|
|
785
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
786
806
|
streams: z.ZodArray<z.ZodObject<{
|
|
787
807
|
id: z.ZodString;
|
|
788
808
|
displayName: z.ZodString;
|
|
789
809
|
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
790
810
|
rtspUrl: z.ZodString;
|
|
811
|
+
recordingCapable: z.ZodBoolean;
|
|
812
|
+
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
813
|
+
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
814
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
815
|
+
kind: z.ZodString;
|
|
816
|
+
}, "strip", z.ZodTypeAny, {
|
|
817
|
+
kind: string;
|
|
818
|
+
}, {
|
|
819
|
+
kind: string;
|
|
820
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
791
821
|
}, "strip", z.ZodTypeAny, {
|
|
792
822
|
id: string;
|
|
793
823
|
displayName: string;
|
|
794
824
|
externalPlayerUrl: string | null;
|
|
795
825
|
rtspUrl: string;
|
|
826
|
+
recordingCapable: boolean;
|
|
827
|
+
lensType: "flat" | "fisheye";
|
|
828
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
829
|
+
webrtcPlaybackSource: ({
|
|
830
|
+
kind: string;
|
|
831
|
+
} & Record<string, unknown>) | null;
|
|
796
832
|
}, {
|
|
797
833
|
id: string;
|
|
798
834
|
displayName: string;
|
|
799
835
|
externalPlayerUrl: string | null;
|
|
800
836
|
rtspUrl: string;
|
|
837
|
+
recordingCapable: boolean;
|
|
838
|
+
lensType: "flat" | "fisheye";
|
|
839
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
840
|
+
webrtcPlaybackSource: ({
|
|
841
|
+
kind: string;
|
|
842
|
+
} & Record<string, unknown>) | null;
|
|
801
843
|
}>, "many">;
|
|
802
844
|
defaultStreamId: z.ZodString;
|
|
845
|
+
streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
|
|
803
846
|
} & {
|
|
804
847
|
type: z.ZodLiteral<"camera">;
|
|
805
848
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -809,9 +852,13 @@ export declare const sCameraDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject
|
|
|
809
852
|
displayName: string;
|
|
810
853
|
externalPlayerUrl: string | null;
|
|
811
854
|
rtspUrl: string;
|
|
855
|
+
recordingCapable: boolean;
|
|
856
|
+
lensType: "flat" | "fisheye";
|
|
857
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
858
|
+
webrtcPlaybackSource: ({
|
|
859
|
+
kind: string;
|
|
860
|
+
} & Record<string, unknown>) | null;
|
|
812
861
|
}[];
|
|
813
|
-
lensType: "flat" | "fisheye";
|
|
814
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
815
862
|
ptzCapable: boolean;
|
|
816
863
|
ptzPanSpeed: number;
|
|
817
864
|
ptzTiltSpeed: number;
|
|
@@ -822,11 +869,8 @@ export declare const sCameraDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject
|
|
|
822
869
|
tiltMax: number;
|
|
823
870
|
zoomMin: number;
|
|
824
871
|
zoomMax: number;
|
|
825
|
-
recordingCapable: boolean;
|
|
826
|
-
webrtcPlaybackSource: ({
|
|
827
|
-
kind: string;
|
|
828
|
-
} & Record<string, unknown>) | null;
|
|
829
872
|
defaultStreamId: string;
|
|
873
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
830
874
|
}, {
|
|
831
875
|
type: "camera";
|
|
832
876
|
streams: {
|
|
@@ -834,9 +878,13 @@ export declare const sCameraDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject
|
|
|
834
878
|
displayName: string;
|
|
835
879
|
externalPlayerUrl: string | null;
|
|
836
880
|
rtspUrl: string;
|
|
881
|
+
recordingCapable: boolean;
|
|
882
|
+
lensType: "flat" | "fisheye";
|
|
883
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
884
|
+
webrtcPlaybackSource: ({
|
|
885
|
+
kind: string;
|
|
886
|
+
} & Record<string, unknown>) | null;
|
|
837
887
|
}[];
|
|
838
|
-
lensType: "flat" | "fisheye";
|
|
839
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
840
888
|
ptzCapable: boolean;
|
|
841
889
|
ptzPanSpeed: number;
|
|
842
890
|
ptzTiltSpeed: number;
|
|
@@ -847,11 +895,8 @@ export declare const sCameraDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject
|
|
|
847
895
|
tiltMax: number;
|
|
848
896
|
zoomMin: number;
|
|
849
897
|
zoomMax: number;
|
|
850
|
-
recordingCapable: boolean;
|
|
851
|
-
webrtcPlaybackSource: ({
|
|
852
|
-
kind: string;
|
|
853
|
-
} & Record<string, unknown>) | null;
|
|
854
898
|
defaultStreamId: string;
|
|
899
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
855
900
|
}>, z.ZodObject<{
|
|
856
901
|
id: z.ZodString;
|
|
857
902
|
presets: z.ZodArray<z.ZodObject<{
|
|
@@ -12,20 +12,40 @@ export declare const sStreamInfo: z.ZodObject<{
|
|
|
12
12
|
displayName: z.ZodString;
|
|
13
13
|
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
14
14
|
rtspUrl: z.ZodString;
|
|
15
|
+
recordingCapable: z.ZodBoolean;
|
|
16
|
+
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
17
|
+
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
18
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
19
|
+
kind: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
kind: string;
|
|
22
|
+
}, {
|
|
23
|
+
kind: string;
|
|
24
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
25
|
}, "strip", z.ZodTypeAny, {
|
|
16
26
|
id: string;
|
|
17
27
|
displayName: string;
|
|
18
28
|
externalPlayerUrl: string | null;
|
|
19
29
|
rtspUrl: string;
|
|
30
|
+
recordingCapable: boolean;
|
|
31
|
+
lensType: "flat" | "fisheye";
|
|
32
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
33
|
+
webrtcPlaybackSource: ({
|
|
34
|
+
kind: string;
|
|
35
|
+
} & Record<string, unknown>) | null;
|
|
20
36
|
}, {
|
|
21
37
|
id: string;
|
|
22
38
|
displayName: string;
|
|
23
39
|
externalPlayerUrl: string | null;
|
|
24
40
|
rtspUrl: string;
|
|
41
|
+
recordingCapable: boolean;
|
|
42
|
+
lensType: "flat" | "fisheye";
|
|
43
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
44
|
+
webrtcPlaybackSource: ({
|
|
45
|
+
kind: string;
|
|
46
|
+
} & Record<string, unknown>) | null;
|
|
25
47
|
}>;
|
|
26
48
|
export declare const sCameraSpecs: z.ZodObject<{
|
|
27
|
-
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
28
|
-
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
29
49
|
ptzCapable: z.ZodBoolean;
|
|
30
50
|
ptzPanSpeed: z.ZodNumber;
|
|
31
51
|
ptzTiltSpeed: z.ZodNumber;
|
|
@@ -36,40 +56,59 @@ export declare const sCameraSpecs: z.ZodObject<{
|
|
|
36
56
|
tiltMax: z.ZodNumber;
|
|
37
57
|
zoomMin: z.ZodNumber;
|
|
38
58
|
zoomMax: z.ZodNumber;
|
|
39
|
-
recordingCapable: z.ZodBoolean;
|
|
40
|
-
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
41
|
-
kind: z.ZodString;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
kind: string;
|
|
44
|
-
}, {
|
|
45
|
-
kind: string;
|
|
46
|
-
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
47
59
|
streams: z.ZodArray<z.ZodObject<{
|
|
48
60
|
id: z.ZodString;
|
|
49
61
|
displayName: z.ZodString;
|
|
50
62
|
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
51
63
|
rtspUrl: z.ZodString;
|
|
64
|
+
recordingCapable: z.ZodBoolean;
|
|
65
|
+
lensType: z.ZodEnum<["flat", "fisheye"]>;
|
|
66
|
+
mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
|
|
67
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
68
|
+
kind: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
kind: string;
|
|
71
|
+
}, {
|
|
72
|
+
kind: string;
|
|
73
|
+
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
74
|
}, "strip", z.ZodTypeAny, {
|
|
53
75
|
id: string;
|
|
54
76
|
displayName: string;
|
|
55
77
|
externalPlayerUrl: string | null;
|
|
56
78
|
rtspUrl: string;
|
|
79
|
+
recordingCapable: boolean;
|
|
80
|
+
lensType: "flat" | "fisheye";
|
|
81
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
82
|
+
webrtcPlaybackSource: ({
|
|
83
|
+
kind: string;
|
|
84
|
+
} & Record<string, unknown>) | null;
|
|
57
85
|
}, {
|
|
58
86
|
id: string;
|
|
59
87
|
displayName: string;
|
|
60
88
|
externalPlayerUrl: string | null;
|
|
61
89
|
rtspUrl: string;
|
|
90
|
+
recordingCapable: boolean;
|
|
91
|
+
lensType: "flat" | "fisheye";
|
|
92
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
93
|
+
webrtcPlaybackSource: ({
|
|
94
|
+
kind: string;
|
|
95
|
+
} & Record<string, unknown>) | null;
|
|
62
96
|
}>, "many">;
|
|
63
97
|
defaultStreamId: z.ZodString;
|
|
98
|
+
streamNaming: z.ZodEnum<["cameraStreamNo", "cameraStream", "stream"]>;
|
|
64
99
|
}, "strip", z.ZodTypeAny, {
|
|
65
100
|
streams: {
|
|
66
101
|
id: string;
|
|
67
102
|
displayName: string;
|
|
68
103
|
externalPlayerUrl: string | null;
|
|
69
104
|
rtspUrl: string;
|
|
105
|
+
recordingCapable: boolean;
|
|
106
|
+
lensType: "flat" | "fisheye";
|
|
107
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
108
|
+
webrtcPlaybackSource: ({
|
|
109
|
+
kind: string;
|
|
110
|
+
} & Record<string, unknown>) | null;
|
|
70
111
|
}[];
|
|
71
|
-
lensType: "flat" | "fisheye";
|
|
72
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
73
112
|
ptzCapable: boolean;
|
|
74
113
|
ptzPanSpeed: number;
|
|
75
114
|
ptzTiltSpeed: number;
|
|
@@ -80,20 +119,21 @@ export declare const sCameraSpecs: z.ZodObject<{
|
|
|
80
119
|
tiltMax: number;
|
|
81
120
|
zoomMin: number;
|
|
82
121
|
zoomMax: number;
|
|
83
|
-
recordingCapable: boolean;
|
|
84
|
-
webrtcPlaybackSource: ({
|
|
85
|
-
kind: string;
|
|
86
|
-
} & Record<string, unknown>) | null;
|
|
87
122
|
defaultStreamId: string;
|
|
123
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
88
124
|
}, {
|
|
89
125
|
streams: {
|
|
90
126
|
id: string;
|
|
91
127
|
displayName: string;
|
|
92
128
|
externalPlayerUrl: string | null;
|
|
93
129
|
rtspUrl: string;
|
|
130
|
+
recordingCapable: boolean;
|
|
131
|
+
lensType: "flat" | "fisheye";
|
|
132
|
+
mountPoint: "wall" | "ceiling" | "floor";
|
|
133
|
+
webrtcPlaybackSource: ({
|
|
134
|
+
kind: string;
|
|
135
|
+
} & Record<string, unknown>) | null;
|
|
94
136
|
}[];
|
|
95
|
-
lensType: "flat" | "fisheye";
|
|
96
|
-
mountPoint: "wall" | "ceiling" | "floor";
|
|
97
137
|
ptzCapable: boolean;
|
|
98
138
|
ptzPanSpeed: number;
|
|
99
139
|
ptzTiltSpeed: number;
|
|
@@ -104,11 +144,8 @@ export declare const sCameraSpecs: z.ZodObject<{
|
|
|
104
144
|
tiltMax: number;
|
|
105
145
|
zoomMin: number;
|
|
106
146
|
zoomMax: number;
|
|
107
|
-
recordingCapable: boolean;
|
|
108
|
-
webrtcPlaybackSource: ({
|
|
109
|
-
kind: string;
|
|
110
|
-
} & Record<string, unknown>) | null;
|
|
111
147
|
defaultStreamId: string;
|
|
148
|
+
streamNaming: "stream" | "cameraStreamNo" | "cameraStream";
|
|
112
149
|
}>;
|
|
113
150
|
export type WebRtcPlaybackSource = z.infer<typeof sWebRtcPlaybackSource>;
|
|
114
151
|
export type CameraSpecs = z.infer<typeof sCameraSpecs>;
|
|
@@ -14,10 +14,12 @@ exports.sStreamInfo = zod_1.z.object({
|
|
|
14
14
|
displayName: zod_1.z.string().nonempty(),
|
|
15
15
|
externalPlayerUrl: zod_1.z.string().nullable(),
|
|
16
16
|
rtspUrl: zod_1.z.string().nonempty(),
|
|
17
|
-
|
|
18
|
-
exports.sCameraSpecs = zod_1.z.object({
|
|
17
|
+
recordingCapable: zod_1.z.boolean(),
|
|
19
18
|
lensType: zod_1.z.enum(['flat', 'fisheye']),
|
|
20
19
|
mountPoint: zod_1.z.enum(['wall', 'ceiling', 'floor']),
|
|
20
|
+
webrtcPlaybackSource: exports.sWebRtcPlaybackSource.nullable(),
|
|
21
|
+
});
|
|
22
|
+
exports.sCameraSpecs = zod_1.z.object({
|
|
21
23
|
ptzCapable: zod_1.z.boolean(),
|
|
22
24
|
ptzPanSpeed: zod_1.z.number(),
|
|
23
25
|
ptzTiltSpeed: zod_1.z.number(),
|
|
@@ -28,8 +30,7 @@ exports.sCameraSpecs = zod_1.z.object({
|
|
|
28
30
|
tiltMax: zod_1.z.number().min(-1).max(1),
|
|
29
31
|
zoomMin: zod_1.z.number().min(0).max(1),
|
|
30
32
|
zoomMax: zod_1.z.number().min(0).max(1),
|
|
31
|
-
recordingCapable: zod_1.z.boolean(),
|
|
32
|
-
webrtcPlaybackSource: exports.sWebRtcPlaybackSource.nullable(),
|
|
33
33
|
streams: zod_1.z.array(exports.sStreamInfo),
|
|
34
34
|
defaultStreamId: zod_1.z.string().nonempty(),
|
|
35
|
+
streamNaming: zod_1.z.enum(['cameraStreamNo', 'cameraStream', 'stream']),
|
|
35
36
|
});
|