@awarevue/api-types 2.0.99 → 2.0.100
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/commands/all.d.ts +153 -1
- package/dist/api/commands/all.js +6 -0
- package/dist/api/commands/index.d.ts +1 -0
- package/dist/api/commands/index.js +1 -0
- package/dist/api/commands/nvr-analytics-server.d.ts +307 -0
- package/dist/api/commands/nvr-analytics-server.js +19 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,8 @@ import { PresenceTrackerCommand } from './presence-tracker';
|
|
|
10
10
|
import { ServerCommand } from './server';
|
|
11
11
|
import { PermissionId } from '../../permissions';
|
|
12
12
|
import { NvrRecorderCommand } from './nvr-recorder';
|
|
13
|
-
|
|
13
|
+
import { NvrAnalyticsServerCommand } from './nvr-analytics-server';
|
|
14
|
+
export type AnyDeviceCommand = ServerCommand | CameraCommand | DoorCommand | IoBoardCommand | CameraLiftCommand | AlarmCommand | PbxCommand | PresenceTrackerCommand | DisplayCommand | NvrRecorderCommand | NvrExporterCommand | NvrAnalyticsServerCommand;
|
|
14
15
|
export type CommandRun<TCommand extends AnyDeviceCommand = AnyDeviceCommand> = {
|
|
15
16
|
timestamp: number;
|
|
16
17
|
requestId: string;
|
|
@@ -161,6 +162,157 @@ export declare const commandSchemas: {
|
|
|
161
162
|
recipientId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
162
163
|
}, import("zod/v4/core").$strip>;
|
|
163
164
|
}, import("zod/v4/core").$strip>;
|
|
165
|
+
readonly 'nvr-analytics-server.set-stream-analytics': import("zod").ZodObject<{
|
|
166
|
+
command: import("zod").ZodLiteral<"nvr-analytics-server.set-stream-analytics">;
|
|
167
|
+
params: import("zod").ZodObject<{
|
|
168
|
+
device: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
169
|
+
name: import("zod").ZodString;
|
|
170
|
+
foreignRef: import("zod").ZodString;
|
|
171
|
+
provider: import("zod").ZodString;
|
|
172
|
+
providerMetadata: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>;
|
|
173
|
+
presets: import("zod").ZodArray<import("zod").ZodObject<{
|
|
174
|
+
id: import("zod").ZodString;
|
|
175
|
+
name: import("zod").ZodString;
|
|
176
|
+
params: import("zod").ZodUnknown;
|
|
177
|
+
isDefault: import("zod").ZodBoolean;
|
|
178
|
+
assignedRef: import("zod").ZodNullable<import("zod").ZodString>;
|
|
179
|
+
createdOn: import("zod").ZodString;
|
|
180
|
+
lastModifiedOn: import("zod").ZodString;
|
|
181
|
+
}, import("zod/v4/core").$strip>>;
|
|
182
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
183
|
+
type: import("zod").ZodLiteral<"alarm">;
|
|
184
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
185
|
+
ptzCapable: import("zod").ZodBoolean;
|
|
186
|
+
ptzPanSpeed: import("zod").ZodNumber;
|
|
187
|
+
ptzTiltSpeed: import("zod").ZodNumber;
|
|
188
|
+
ptzZoomSpeed: import("zod").ZodNumber;
|
|
189
|
+
panMin: import("zod").ZodNumber;
|
|
190
|
+
panMax: import("zod").ZodNumber;
|
|
191
|
+
tiltMin: import("zod").ZodNumber;
|
|
192
|
+
tiltMax: import("zod").ZodNumber;
|
|
193
|
+
zoomMin: import("zod").ZodNumber;
|
|
194
|
+
zoomMax: import("zod").ZodNumber;
|
|
195
|
+
streams: import("zod").ZodArray<import("zod").ZodObject<{
|
|
196
|
+
id: import("zod").ZodString;
|
|
197
|
+
displayName: import("zod").ZodString;
|
|
198
|
+
externalPlayerUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
199
|
+
rtspUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
200
|
+
width: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
201
|
+
height: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
202
|
+
lensType: import("zod").ZodEnum<{
|
|
203
|
+
flat: "flat";
|
|
204
|
+
fisheye: "fisheye";
|
|
205
|
+
}>;
|
|
206
|
+
mountPoint: import("zod").ZodEnum<{
|
|
207
|
+
wall: "wall";
|
|
208
|
+
ceiling: "ceiling";
|
|
209
|
+
floor: "floor";
|
|
210
|
+
}>;
|
|
211
|
+
webrtcPlaybackSource: import("zod").ZodNullable<import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
212
|
+
kind: import("zod").ZodString;
|
|
213
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
214
|
+
}, import("zod/v4/core").$strip>>;
|
|
215
|
+
defaultStreamId: import("zod").ZodString;
|
|
216
|
+
autoSwitchStreams: import("zod").ZodBoolean;
|
|
217
|
+
streamNaming: import("zod").ZodEnum<{
|
|
218
|
+
cameraStreamNo: "cameraStreamNo";
|
|
219
|
+
cameraStream: "cameraStream";
|
|
220
|
+
stream: "stream";
|
|
221
|
+
}>;
|
|
222
|
+
type: import("zod").ZodLiteral<"camera">;
|
|
223
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
224
|
+
canReportOpenState: import("zod").ZodBoolean;
|
|
225
|
+
canReportLockState: import("zod").ZodBoolean;
|
|
226
|
+
canControlLock: import("zod").ZodBoolean;
|
|
227
|
+
canRelease: import("zod").ZodBoolean;
|
|
228
|
+
style: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
229
|
+
single: "single";
|
|
230
|
+
double: "double";
|
|
231
|
+
sliding: "sliding";
|
|
232
|
+
hatch: "hatch";
|
|
233
|
+
roller: "roller";
|
|
234
|
+
window: "window";
|
|
235
|
+
}>>;
|
|
236
|
+
type: import("zod").ZodLiteral<"door">;
|
|
237
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
238
|
+
inputs: import("zod").ZodArray<import("zod").ZodString>;
|
|
239
|
+
outputs: import("zod").ZodArray<import("zod").ZodString>;
|
|
240
|
+
type: import("zod").ZodLiteral<"io-board">;
|
|
241
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
242
|
+
type: import("zod").ZodLiteral<"camera-lift">;
|
|
243
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
244
|
+
type: import("zod").ZodLiteral<"motion-sensor">;
|
|
245
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
246
|
+
type: import("zod").ZodLiteral<"panic-button">;
|
|
247
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
248
|
+
sipUri: import("zod").ZodString;
|
|
249
|
+
sipUser: import("zod").ZodString;
|
|
250
|
+
sipPassword: import("zod").ZodString;
|
|
251
|
+
sipRealm: import("zod").ZodString;
|
|
252
|
+
remoteExtension: import("zod").ZodString;
|
|
253
|
+
type: import("zod").ZodLiteral<"intercom-terminal">;
|
|
254
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
255
|
+
sipWsUrl: import("zod").ZodString;
|
|
256
|
+
type: import("zod").ZodLiteral<"pbx">;
|
|
257
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
258
|
+
type: import("zod").ZodLiteral<"server">;
|
|
259
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
260
|
+
type: import("zod").ZodLiteral<"intercom-operator">;
|
|
261
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
262
|
+
type: import("zod").ZodLiteral<"device-gateway">;
|
|
263
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
264
|
+
type: import("zod").ZodLiteral<"presence-tracker">;
|
|
265
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
266
|
+
credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
267
|
+
card: "card";
|
|
268
|
+
pin: "pin";
|
|
269
|
+
fingerprint: "fingerprint";
|
|
270
|
+
face: "face";
|
|
271
|
+
retina: "retina";
|
|
272
|
+
}>>>;
|
|
273
|
+
type: import("zod").ZodLiteral<"reader">;
|
|
274
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
275
|
+
type: import("zod").ZodLiteral<"display">;
|
|
276
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
277
|
+
type: import("zod").ZodLiteral<"nvr-recorder">;
|
|
278
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
279
|
+
type: import("zod").ZodLiteral<"nvr-exporter">;
|
|
280
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
281
|
+
capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
282
|
+
motionDetection: "motionDetection";
|
|
283
|
+
labelDetection: "labelDetection";
|
|
284
|
+
faceRecognition: "faceRecognition";
|
|
285
|
+
semanticSearch: "semanticSearch";
|
|
286
|
+
}>>;
|
|
287
|
+
type: import("zod").ZodLiteral<"nvr-analytics-server">;
|
|
288
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
289
|
+
type: import("zod").ZodLiteral<"system">;
|
|
290
|
+
}, import("zod/v4/core").$strip>], "type">>]>, import("zod").ZodTuple<[import("zod").ZodString, import("zod").ZodString], null>]>;
|
|
291
|
+
streamId: import("zod").ZodString;
|
|
292
|
+
motionDetection: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
293
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
294
|
+
enabled: import("zod").ZodBoolean;
|
|
295
|
+
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
296
|
+
}, import("zod/v4/core").$strip>>;
|
|
297
|
+
labelDetection: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
298
|
+
labels: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
299
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
300
|
+
enabled: import("zod").ZodBoolean;
|
|
301
|
+
}, import("zod/v4/core").$strip>>;
|
|
302
|
+
enabled: import("zod").ZodBoolean;
|
|
303
|
+
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
304
|
+
}, import("zod/v4/core").$strip>>;
|
|
305
|
+
faceRecognition: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
306
|
+
threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
307
|
+
enabled: import("zod").ZodBoolean;
|
|
308
|
+
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
309
|
+
}, import("zod/v4/core").$strip>>;
|
|
310
|
+
semanticSearch: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
311
|
+
enabled: import("zod").ZodBoolean;
|
|
312
|
+
fps: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
313
|
+
}, import("zod/v4/core").$strip>>;
|
|
314
|
+
}, import("zod/v4/core").$strip>;
|
|
315
|
+
}, import("zod/v4/core").$strip>;
|
|
164
316
|
readonly 'nvr-exporter.start-export': import("zod").ZodObject<{
|
|
165
317
|
command: import("zod").ZodLiteral<"nvr-exporter.start-export">;
|
|
166
318
|
params: import("zod").ZodObject<{
|
package/dist/api/commands/all.js
CHANGED
|
@@ -12,6 +12,7 @@ const pbx_1 = require("./pbx");
|
|
|
12
12
|
const presence_tracker_1 = require("./presence-tracker");
|
|
13
13
|
const server_1 = require("./server");
|
|
14
14
|
const nvr_recorder_1 = require("./nvr-recorder");
|
|
15
|
+
const nvr_analytics_server_1 = require("./nvr-analytics-server");
|
|
15
16
|
exports.commandSchemas = {
|
|
16
17
|
...alarm_1.alarmCommandSchemas,
|
|
17
18
|
...camera_1.cameraCommands,
|
|
@@ -23,6 +24,7 @@ exports.commandSchemas = {
|
|
|
23
24
|
...display_1.displayCommands,
|
|
24
25
|
...nvr_recorder_1.nvrRecorderCommandSchemas,
|
|
25
26
|
...nvr_exporter_1.nvrExporterCommandSchemas,
|
|
27
|
+
...nvr_analytics_server_1.nvrAnalyticsServerCommandSchemas,
|
|
26
28
|
...server_1.serverCommands,
|
|
27
29
|
};
|
|
28
30
|
exports.commandDescriptions = {
|
|
@@ -155,4 +157,8 @@ exports.commandDescriptions = {
|
|
|
155
157
|
description: 'NVR Recorder Unmount Stream',
|
|
156
158
|
permission: 'camera:record',
|
|
157
159
|
},
|
|
160
|
+
'nvr-analytics-server.set-stream-analytics': {
|
|
161
|
+
description: 'Configure Stream Analytics',
|
|
162
|
+
permission: 'camera:detection',
|
|
163
|
+
},
|
|
158
164
|
};
|
|
@@ -26,4 +26,5 @@ __exportStar(require("./nvr-exporter"), exports);
|
|
|
26
26
|
__exportStar(require("./nvr-recorder"), exports);
|
|
27
27
|
__exportStar(require("./camera-lift"), exports);
|
|
28
28
|
__exportStar(require("./pbx"), exports);
|
|
29
|
+
__exportStar(require("./nvr-analytics-server"), exports);
|
|
29
30
|
__exportStar(require("./all"), exports);
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sSetStreamAnalyticsCommand: z.ZodObject<{
|
|
3
|
+
command: z.ZodLiteral<"nvr-analytics-server.set-stream-analytics">;
|
|
4
|
+
params: z.ZodObject<{
|
|
5
|
+
device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
foreignRef: z.ZodString;
|
|
8
|
+
provider: z.ZodString;
|
|
9
|
+
providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
|
|
10
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
params: z.ZodUnknown;
|
|
14
|
+
isDefault: z.ZodBoolean;
|
|
15
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
16
|
+
createdOn: z.ZodString;
|
|
17
|
+
lastModifiedOn: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
|
+
type: z.ZodLiteral<"alarm">;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
ptzCapable: z.ZodBoolean;
|
|
23
|
+
ptzPanSpeed: z.ZodNumber;
|
|
24
|
+
ptzTiltSpeed: z.ZodNumber;
|
|
25
|
+
ptzZoomSpeed: z.ZodNumber;
|
|
26
|
+
panMin: z.ZodNumber;
|
|
27
|
+
panMax: z.ZodNumber;
|
|
28
|
+
tiltMin: z.ZodNumber;
|
|
29
|
+
tiltMax: z.ZodNumber;
|
|
30
|
+
zoomMin: z.ZodNumber;
|
|
31
|
+
zoomMax: z.ZodNumber;
|
|
32
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
displayName: z.ZodString;
|
|
35
|
+
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
36
|
+
rtspUrl: z.ZodNullable<z.ZodString>;
|
|
37
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
lensType: z.ZodEnum<{
|
|
40
|
+
flat: "flat";
|
|
41
|
+
fisheye: "fisheye";
|
|
42
|
+
}>;
|
|
43
|
+
mountPoint: z.ZodEnum<{
|
|
44
|
+
wall: "wall";
|
|
45
|
+
ceiling: "ceiling";
|
|
46
|
+
floor: "floor";
|
|
47
|
+
}>;
|
|
48
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
49
|
+
kind: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
defaultStreamId: z.ZodString;
|
|
53
|
+
autoSwitchStreams: z.ZodBoolean;
|
|
54
|
+
streamNaming: z.ZodEnum<{
|
|
55
|
+
cameraStreamNo: "cameraStreamNo";
|
|
56
|
+
cameraStream: "cameraStream";
|
|
57
|
+
stream: "stream";
|
|
58
|
+
}>;
|
|
59
|
+
type: z.ZodLiteral<"camera">;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
canReportOpenState: z.ZodBoolean;
|
|
62
|
+
canReportLockState: z.ZodBoolean;
|
|
63
|
+
canControlLock: z.ZodBoolean;
|
|
64
|
+
canRelease: z.ZodBoolean;
|
|
65
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
single: "single";
|
|
67
|
+
double: "double";
|
|
68
|
+
sliding: "sliding";
|
|
69
|
+
hatch: "hatch";
|
|
70
|
+
roller: "roller";
|
|
71
|
+
window: "window";
|
|
72
|
+
}>>;
|
|
73
|
+
type: z.ZodLiteral<"door">;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
inputs: z.ZodArray<z.ZodString>;
|
|
76
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
77
|
+
type: z.ZodLiteral<"io-board">;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<"camera-lift">;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"motion-sensor">;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
type: z.ZodLiteral<"panic-button">;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
sipUri: z.ZodString;
|
|
86
|
+
sipUser: z.ZodString;
|
|
87
|
+
sipPassword: z.ZodString;
|
|
88
|
+
sipRealm: z.ZodString;
|
|
89
|
+
remoteExtension: z.ZodString;
|
|
90
|
+
type: z.ZodLiteral<"intercom-terminal">;
|
|
91
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
+
sipWsUrl: z.ZodString;
|
|
93
|
+
type: z.ZodLiteral<"pbx">;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"server">;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
type: z.ZodLiteral<"intercom-operator">;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"device-gateway">;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"presence-tracker">;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
104
|
+
card: "card";
|
|
105
|
+
pin: "pin";
|
|
106
|
+
fingerprint: "fingerprint";
|
|
107
|
+
face: "face";
|
|
108
|
+
retina: "retina";
|
|
109
|
+
}>>>;
|
|
110
|
+
type: z.ZodLiteral<"reader">;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"display">;
|
|
113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
+
type: z.ZodLiteral<"nvr-recorder">;
|
|
115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
+
type: z.ZodLiteral<"nvr-exporter">;
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
118
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
119
|
+
motionDetection: "motionDetection";
|
|
120
|
+
labelDetection: "labelDetection";
|
|
121
|
+
faceRecognition: "faceRecognition";
|
|
122
|
+
semanticSearch: "semanticSearch";
|
|
123
|
+
}>>;
|
|
124
|
+
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
type: z.ZodLiteral<"system">;
|
|
127
|
+
}, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
|
|
128
|
+
streamId: z.ZodString;
|
|
129
|
+
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
enabled: z.ZodBoolean;
|
|
132
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
136
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
enabled: z.ZodBoolean;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
enabled: z.ZodBoolean;
|
|
140
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
142
|
+
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
enabled: z.ZodBoolean;
|
|
145
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
enabled: z.ZodBoolean;
|
|
149
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export type SetStreamAnalyticsCommand = z.infer<typeof sSetStreamAnalyticsCommand>;
|
|
154
|
+
export type NvrAnalyticsServerCommand = SetStreamAnalyticsCommand;
|
|
155
|
+
export declare const nvrAnalyticsServerCommandSchemas: {
|
|
156
|
+
readonly 'nvr-analytics-server.set-stream-analytics': z.ZodObject<{
|
|
157
|
+
command: z.ZodLiteral<"nvr-analytics-server.set-stream-analytics">;
|
|
158
|
+
params: z.ZodObject<{
|
|
159
|
+
device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
foreignRef: z.ZodString;
|
|
162
|
+
provider: z.ZodString;
|
|
163
|
+
providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
|
|
164
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
params: z.ZodUnknown;
|
|
168
|
+
isDefault: z.ZodBoolean;
|
|
169
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
170
|
+
createdOn: z.ZodString;
|
|
171
|
+
lastModifiedOn: z.ZodString;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<"alarm">;
|
|
175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
+
ptzCapable: z.ZodBoolean;
|
|
177
|
+
ptzPanSpeed: z.ZodNumber;
|
|
178
|
+
ptzTiltSpeed: z.ZodNumber;
|
|
179
|
+
ptzZoomSpeed: z.ZodNumber;
|
|
180
|
+
panMin: z.ZodNumber;
|
|
181
|
+
panMax: z.ZodNumber;
|
|
182
|
+
tiltMin: z.ZodNumber;
|
|
183
|
+
tiltMax: z.ZodNumber;
|
|
184
|
+
zoomMin: z.ZodNumber;
|
|
185
|
+
zoomMax: z.ZodNumber;
|
|
186
|
+
streams: z.ZodArray<z.ZodObject<{
|
|
187
|
+
id: z.ZodString;
|
|
188
|
+
displayName: z.ZodString;
|
|
189
|
+
externalPlayerUrl: z.ZodNullable<z.ZodString>;
|
|
190
|
+
rtspUrl: z.ZodNullable<z.ZodString>;
|
|
191
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
192
|
+
height: z.ZodNullable<z.ZodNumber>;
|
|
193
|
+
lensType: z.ZodEnum<{
|
|
194
|
+
flat: "flat";
|
|
195
|
+
fisheye: "fisheye";
|
|
196
|
+
}>;
|
|
197
|
+
mountPoint: z.ZodEnum<{
|
|
198
|
+
wall: "wall";
|
|
199
|
+
ceiling: "ceiling";
|
|
200
|
+
floor: "floor";
|
|
201
|
+
}>;
|
|
202
|
+
webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
|
|
203
|
+
kind: z.ZodString;
|
|
204
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
defaultStreamId: z.ZodString;
|
|
207
|
+
autoSwitchStreams: z.ZodBoolean;
|
|
208
|
+
streamNaming: z.ZodEnum<{
|
|
209
|
+
cameraStreamNo: "cameraStreamNo";
|
|
210
|
+
cameraStream: "cameraStream";
|
|
211
|
+
stream: "stream";
|
|
212
|
+
}>;
|
|
213
|
+
type: z.ZodLiteral<"camera">;
|
|
214
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
215
|
+
canReportOpenState: z.ZodBoolean;
|
|
216
|
+
canReportLockState: z.ZodBoolean;
|
|
217
|
+
canControlLock: z.ZodBoolean;
|
|
218
|
+
canRelease: z.ZodBoolean;
|
|
219
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
220
|
+
single: "single";
|
|
221
|
+
double: "double";
|
|
222
|
+
sliding: "sliding";
|
|
223
|
+
hatch: "hatch";
|
|
224
|
+
roller: "roller";
|
|
225
|
+
window: "window";
|
|
226
|
+
}>>;
|
|
227
|
+
type: z.ZodLiteral<"door">;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
inputs: z.ZodArray<z.ZodString>;
|
|
230
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
231
|
+
type: z.ZodLiteral<"io-board">;
|
|
232
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
+
type: z.ZodLiteral<"camera-lift">;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"motion-sensor">;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
type: z.ZodLiteral<"panic-button">;
|
|
238
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
|
+
sipUri: z.ZodString;
|
|
240
|
+
sipUser: z.ZodString;
|
|
241
|
+
sipPassword: z.ZodString;
|
|
242
|
+
sipRealm: z.ZodString;
|
|
243
|
+
remoteExtension: z.ZodString;
|
|
244
|
+
type: z.ZodLiteral<"intercom-terminal">;
|
|
245
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
246
|
+
sipWsUrl: z.ZodString;
|
|
247
|
+
type: z.ZodLiteral<"pbx">;
|
|
248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
+
type: z.ZodLiteral<"server">;
|
|
250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<"intercom-operator">;
|
|
252
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"device-gateway">;
|
|
254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
255
|
+
type: z.ZodLiteral<"presence-tracker">;
|
|
256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
+
credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
258
|
+
card: "card";
|
|
259
|
+
pin: "pin";
|
|
260
|
+
fingerprint: "fingerprint";
|
|
261
|
+
face: "face";
|
|
262
|
+
retina: "retina";
|
|
263
|
+
}>>>;
|
|
264
|
+
type: z.ZodLiteral<"reader">;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"display">;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"nvr-recorder">;
|
|
269
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
270
|
+
type: z.ZodLiteral<"nvr-exporter">;
|
|
271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
273
|
+
motionDetection: "motionDetection";
|
|
274
|
+
labelDetection: "labelDetection";
|
|
275
|
+
faceRecognition: "faceRecognition";
|
|
276
|
+
semanticSearch: "semanticSearch";
|
|
277
|
+
}>>;
|
|
278
|
+
type: z.ZodLiteral<"nvr-analytics-server">;
|
|
279
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
280
|
+
type: z.ZodLiteral<"system">;
|
|
281
|
+
}, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
|
|
282
|
+
streamId: z.ZodString;
|
|
283
|
+
motionDetection: z.ZodOptional<z.ZodObject<{
|
|
284
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
enabled: z.ZodBoolean;
|
|
286
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
labelDetection: z.ZodOptional<z.ZodObject<{
|
|
289
|
+
labels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
290
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
enabled: z.ZodBoolean;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
enabled: z.ZodBoolean;
|
|
294
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
faceRecognition: z.ZodOptional<z.ZodObject<{
|
|
297
|
+
threshold: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
enabled: z.ZodBoolean;
|
|
299
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
}, z.core.$strip>>;
|
|
301
|
+
semanticSearch: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
enabled: z.ZodBoolean;
|
|
303
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.nvrAnalyticsServerCommandSchemas = exports.sSetStreamAnalyticsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../../primitives");
|
|
6
|
+
const device_relation_1 = require("../../objects/device/device-relation");
|
|
7
|
+
// COMMANDS
|
|
8
|
+
exports.sSetStreamAnalyticsCommand = zod_1.z.object({
|
|
9
|
+
command: zod_1.z.literal('nvr-analytics-server.set-stream-analytics'),
|
|
10
|
+
params: zod_1.z
|
|
11
|
+
.object({
|
|
12
|
+
device: primitives_1.sDeviceParam,
|
|
13
|
+
streamId: primitives_1.sStreamId,
|
|
14
|
+
})
|
|
15
|
+
.extend(device_relation_1.sAiStreamConfiguration.shape),
|
|
16
|
+
});
|
|
17
|
+
exports.nvrAnalyticsServerCommandSchemas = {
|
|
18
|
+
'nvr-analytics-server.set-stream-analytics': exports.sSetStreamAnalyticsCommand,
|
|
19
|
+
};
|
package/dist/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.100",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.
|
|
7
|
+
"version": "2.0.100",
|
|
8
8
|
"description": "Common types between backend, agent(s) and frontend(s)",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|