@awarevue/api-types 2.0.39 → 2.0.40
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 +68 -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 +114 -21
- package/dist/objects/view.js +7 -4
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +74 -44
- package/package.json +1 -1
|
@@ -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
|
});
|