@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
package/dist/api/rest/cast.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const sCastCamerasRequest: z.ZodArray<z.ZodObject<{
|
|
|
3
3
|
cameraId: z.ZodString;
|
|
4
4
|
streamId: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
cameraId: string;
|
|
7
6
|
streamId: string;
|
|
8
|
-
}, {
|
|
9
7
|
cameraId: string;
|
|
8
|
+
}, {
|
|
10
9
|
streamId: string;
|
|
10
|
+
cameraId: string;
|
|
11
11
|
}>, "many">;
|
|
12
12
|
export type CastCamerasRequest = z.infer<typeof sCastCamerasRequest>;
|
|
@@ -96,16 +96,34 @@ export declare const sUpdateDeviceRequest: z.ZodObject<{
|
|
|
96
96
|
export declare const sOverrideDeviceSpecsRequest: z.ZodObject<{
|
|
97
97
|
id: z.ZodString;
|
|
98
98
|
specs: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
99
|
+
specUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
value: z.ZodUnknown;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
path: string;
|
|
104
|
+
value?: unknown;
|
|
105
|
+
}, {
|
|
106
|
+
path: string;
|
|
107
|
+
value?: unknown;
|
|
108
|
+
}>, "many">>;
|
|
99
109
|
}, "strip", z.ZodTypeAny, {
|
|
100
110
|
id: string;
|
|
101
111
|
specs: {} & {
|
|
102
112
|
[k: string]: unknown;
|
|
103
113
|
};
|
|
114
|
+
specUpdates?: {
|
|
115
|
+
path: string;
|
|
116
|
+
value?: unknown;
|
|
117
|
+
}[] | undefined;
|
|
104
118
|
}, {
|
|
105
119
|
id: string;
|
|
106
120
|
specs: {} & {
|
|
107
121
|
[k: string]: unknown;
|
|
108
122
|
};
|
|
123
|
+
specUpdates?: {
|
|
124
|
+
path: string;
|
|
125
|
+
value?: unknown;
|
|
126
|
+
}[] | undefined;
|
|
109
127
|
}>;
|
|
110
128
|
export declare const sAddDevicePresetRequest: z.ZodObject<{
|
|
111
129
|
name: z.ZodString;
|
package/dist/api/rest/device.js
CHANGED
|
@@ -27,6 +27,9 @@ exports.sUpdateDeviceRequest = zod_1.z.object({
|
|
|
27
27
|
exports.sOverrideDeviceSpecsRequest = zod_1.z.object({
|
|
28
28
|
id: zod_1.z.string(),
|
|
29
29
|
specs: zod_1.z.object({}).catchall(zod_1.z.unknown()),
|
|
30
|
+
specUpdates: zod_1.z
|
|
31
|
+
.array(zod_1.z.object({ path: zod_1.z.string(), value: zod_1.z.unknown() }))
|
|
32
|
+
.optional(),
|
|
30
33
|
});
|
|
31
34
|
exports.sAddDevicePresetRequest = zod_1.z.object({
|
|
32
35
|
name: zod_1.z.string().nonempty(),
|
package/dist/api/rest/media.d.ts
CHANGED
|
@@ -2,16 +2,19 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const sCreateExportRequest: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
deviceId: z.ZodString;
|
|
5
|
+
streamId: z.ZodString;
|
|
5
6
|
timeFrom: z.ZodNumber;
|
|
6
7
|
timeTo: z.ZodNumber;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
name: string;
|
|
9
10
|
deviceId: string;
|
|
11
|
+
streamId: string;
|
|
10
12
|
timeFrom: number;
|
|
11
13
|
timeTo: number;
|
|
12
14
|
}, {
|
|
13
15
|
name: string;
|
|
14
16
|
deviceId: string;
|
|
17
|
+
streamId: string;
|
|
15
18
|
timeFrom: number;
|
|
16
19
|
timeTo: number;
|
|
17
20
|
}>;
|
package/dist/api/rest/media.js
CHANGED
|
@@ -6,6 +6,7 @@ const query_1 = require("./query");
|
|
|
6
6
|
exports.sCreateExportRequest = zod_1.z.object({
|
|
7
7
|
name: zod_1.z.string().nonempty(),
|
|
8
8
|
deviceId: zod_1.z.string().nonempty(),
|
|
9
|
+
streamId: zod_1.z.string().nonempty(),
|
|
9
10
|
timeFrom: zod_1.z.number().nonnegative(),
|
|
10
11
|
timeTo: zod_1.z.number().nonnegative(),
|
|
11
12
|
});
|
package/dist/api/rest/view.d.ts
CHANGED
|
@@ -61,15 +61,30 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
61
61
|
area: z.ZodString;
|
|
62
62
|
type: z.ZodLiteral<"playbackTrack">;
|
|
63
63
|
controllerId: z.ZodString;
|
|
64
|
-
source: z.
|
|
64
|
+
source: z.ZodObject<{
|
|
65
|
+
deviceId: z.ZodString;
|
|
66
|
+
streamId: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
deviceId: string;
|
|
69
|
+
streamId: string;
|
|
70
|
+
}, {
|
|
71
|
+
deviceId: string;
|
|
72
|
+
streamId: string;
|
|
73
|
+
}>;
|
|
65
74
|
}, "strip", z.ZodTypeAny, {
|
|
66
75
|
type: "playbackTrack";
|
|
67
|
-
source:
|
|
76
|
+
source: {
|
|
77
|
+
deviceId: string;
|
|
78
|
+
streamId: string;
|
|
79
|
+
};
|
|
68
80
|
area: string;
|
|
69
81
|
controllerId: string;
|
|
70
82
|
}, {
|
|
71
83
|
type: "playbackTrack";
|
|
72
|
-
source:
|
|
84
|
+
source: {
|
|
85
|
+
deviceId: string;
|
|
86
|
+
streamId: string;
|
|
87
|
+
};
|
|
73
88
|
area: string;
|
|
74
89
|
controllerId: string;
|
|
75
90
|
}>]>, "many">;
|
|
@@ -95,7 +110,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
95
110
|
timeIntervalMs: number;
|
|
96
111
|
} | {
|
|
97
112
|
type: "playbackTrack";
|
|
98
|
-
source:
|
|
113
|
+
source: {
|
|
114
|
+
deviceId: string;
|
|
115
|
+
streamId: string;
|
|
116
|
+
};
|
|
99
117
|
area: string;
|
|
100
118
|
controllerId: string;
|
|
101
119
|
})[];
|
|
@@ -122,7 +140,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
122
140
|
timeIntervalMs: number;
|
|
123
141
|
} | {
|
|
124
142
|
type: "playbackTrack";
|
|
125
|
-
source:
|
|
143
|
+
source: {
|
|
144
|
+
deviceId: string;
|
|
145
|
+
streamId: string;
|
|
146
|
+
};
|
|
126
147
|
area: string;
|
|
127
148
|
controllerId: string;
|
|
128
149
|
})[];
|
|
@@ -153,7 +174,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
153
174
|
timeIntervalMs: number;
|
|
154
175
|
} | {
|
|
155
176
|
type: "playbackTrack";
|
|
156
|
-
source:
|
|
177
|
+
source: {
|
|
178
|
+
deviceId: string;
|
|
179
|
+
streamId: string;
|
|
180
|
+
};
|
|
157
181
|
area: string;
|
|
158
182
|
controllerId: string;
|
|
159
183
|
})[];
|
|
@@ -186,7 +210,10 @@ export declare const sAddViewRequest: z.ZodObject<{
|
|
|
186
210
|
timeIntervalMs: number;
|
|
187
211
|
} | {
|
|
188
212
|
type: "playbackTrack";
|
|
189
|
-
source:
|
|
213
|
+
source: {
|
|
214
|
+
deviceId: string;
|
|
215
|
+
streamId: string;
|
|
216
|
+
};
|
|
190
217
|
area: string;
|
|
191
218
|
controllerId: string;
|
|
192
219
|
})[];
|
|
@@ -257,15 +284,30 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
257
284
|
area: z.ZodString;
|
|
258
285
|
type: z.ZodLiteral<"playbackTrack">;
|
|
259
286
|
controllerId: z.ZodString;
|
|
260
|
-
source: z.
|
|
287
|
+
source: z.ZodObject<{
|
|
288
|
+
deviceId: z.ZodString;
|
|
289
|
+
streamId: z.ZodString;
|
|
290
|
+
}, "strip", z.ZodTypeAny, {
|
|
291
|
+
deviceId: string;
|
|
292
|
+
streamId: string;
|
|
293
|
+
}, {
|
|
294
|
+
deviceId: string;
|
|
295
|
+
streamId: string;
|
|
296
|
+
}>;
|
|
261
297
|
}, "strip", z.ZodTypeAny, {
|
|
262
298
|
type: "playbackTrack";
|
|
263
|
-
source:
|
|
299
|
+
source: {
|
|
300
|
+
deviceId: string;
|
|
301
|
+
streamId: string;
|
|
302
|
+
};
|
|
264
303
|
area: string;
|
|
265
304
|
controllerId: string;
|
|
266
305
|
}, {
|
|
267
306
|
type: "playbackTrack";
|
|
268
|
-
source:
|
|
307
|
+
source: {
|
|
308
|
+
deviceId: string;
|
|
309
|
+
streamId: string;
|
|
310
|
+
};
|
|
269
311
|
area: string;
|
|
270
312
|
controllerId: string;
|
|
271
313
|
}>]>, "many">;
|
|
@@ -291,7 +333,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
291
333
|
timeIntervalMs: number;
|
|
292
334
|
} | {
|
|
293
335
|
type: "playbackTrack";
|
|
294
|
-
source:
|
|
336
|
+
source: {
|
|
337
|
+
deviceId: string;
|
|
338
|
+
streamId: string;
|
|
339
|
+
};
|
|
295
340
|
area: string;
|
|
296
341
|
controllerId: string;
|
|
297
342
|
})[];
|
|
@@ -318,7 +363,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
318
363
|
timeIntervalMs: number;
|
|
319
364
|
} | {
|
|
320
365
|
type: "playbackTrack";
|
|
321
|
-
source:
|
|
366
|
+
source: {
|
|
367
|
+
deviceId: string;
|
|
368
|
+
streamId: string;
|
|
369
|
+
};
|
|
322
370
|
area: string;
|
|
323
371
|
controllerId: string;
|
|
324
372
|
})[];
|
|
@@ -351,7 +399,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
351
399
|
timeIntervalMs: number;
|
|
352
400
|
} | {
|
|
353
401
|
type: "playbackTrack";
|
|
354
|
-
source:
|
|
402
|
+
source: {
|
|
403
|
+
deviceId: string;
|
|
404
|
+
streamId: string;
|
|
405
|
+
};
|
|
355
406
|
area: string;
|
|
356
407
|
controllerId: string;
|
|
357
408
|
})[];
|
|
@@ -384,7 +435,10 @@ export declare const sUpdateViewRequest: z.ZodObject<{
|
|
|
384
435
|
timeIntervalMs: number;
|
|
385
436
|
} | {
|
|
386
437
|
type: "playbackTrack";
|
|
387
|
-
source:
|
|
438
|
+
source: {
|
|
439
|
+
deviceId: string;
|
|
440
|
+
streamId: string;
|
|
441
|
+
};
|
|
388
442
|
area: string;
|
|
389
443
|
controllerId: string;
|
|
390
444
|
})[];
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
2
|
export declare const sCreatePlaybackControllerRequest: z.ZodObject<{
|
|
3
|
-
sources: z.ZodArray<z.
|
|
3
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
4
|
+
deviceId: z.ZodString;
|
|
5
|
+
streamId: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
deviceId: string;
|
|
8
|
+
streamId: string;
|
|
9
|
+
}, {
|
|
10
|
+
deviceId: string;
|
|
11
|
+
streamId: string;
|
|
12
|
+
}>, "many">;
|
|
4
13
|
initTime: z.ZodNumber;
|
|
5
14
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
sources:
|
|
15
|
+
sources: {
|
|
16
|
+
deviceId: string;
|
|
17
|
+
streamId: string;
|
|
18
|
+
}[];
|
|
7
19
|
initTime: number;
|
|
8
20
|
}, {
|
|
9
|
-
sources:
|
|
21
|
+
sources: {
|
|
22
|
+
deviceId: string;
|
|
23
|
+
streamId: string;
|
|
24
|
+
}[];
|
|
10
25
|
initTime: number;
|
|
11
26
|
}>;
|
|
12
27
|
export type CreatePlaybackControllerRequest = z.infer<typeof sCreatePlaybackControllerRequest>;
|
|
@@ -5,8 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.sCreatePlaybackControllerResponse = exports.sCreatePlaybackControllerRequest = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const playbackSource = zod_1.default.object({
|
|
9
|
+
deviceId: zod_1.default.string().nonempty(),
|
|
10
|
+
streamId: zod_1.default.string().nonempty(),
|
|
11
|
+
});
|
|
8
12
|
exports.sCreatePlaybackControllerRequest = zod_1.default.object({
|
|
9
|
-
sources: zod_1.default.array(
|
|
13
|
+
sources: zod_1.default.array(playbackSource),
|
|
10
14
|
initTime: zod_1.default.number().nonnegative(),
|
|
11
15
|
});
|
|
12
16
|
exports.sCreatePlaybackControllerResponse = zod_1.default.object({
|
|
@@ -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<{
|