@awarevue/api-types 2.0.98 → 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.
@@ -245,6 +245,12 @@ export declare const sRunCommandRq: z.ZodObject<{
245
245
  }, z.core.$strip>, z.ZodObject<{
246
246
  type: z.ZodLiteral<"nvr-exporter">;
247
247
  }, z.core.$strip>, z.ZodObject<{
248
+ capabilities: z.ZodArray<z.ZodEnum<{
249
+ motionDetection: "motionDetection";
250
+ labelDetection: "labelDetection";
251
+ faceRecognition: "faceRecognition";
252
+ semanticSearch: "semanticSearch";
253
+ }>>;
248
254
  type: z.ZodLiteral<"nvr-analytics-server">;
249
255
  }, z.core.$strip>, z.ZodObject<{
250
256
  type: z.ZodLiteral<"system">;
@@ -373,6 +379,12 @@ export declare const sQueryRq: z.ZodObject<{
373
379
  }, z.core.$strip>, z.ZodObject<{
374
380
  type: z.ZodLiteral<"nvr-exporter">;
375
381
  }, z.core.$strip>, z.ZodObject<{
382
+ capabilities: z.ZodArray<z.ZodEnum<{
383
+ motionDetection: "motionDetection";
384
+ labelDetection: "labelDetection";
385
+ faceRecognition: "faceRecognition";
386
+ semanticSearch: "semanticSearch";
387
+ }>>;
376
388
  type: z.ZodLiteral<"nvr-analytics-server">;
377
389
  }, z.core.$strip>, z.ZodObject<{
378
390
  type: z.ZodLiteral<"system">;
@@ -505,6 +517,12 @@ export declare const sPushFile: z.ZodObject<{
505
517
  }, z.core.$strip>, z.ZodObject<{
506
518
  type: z.ZodLiteral<"nvr-exporter">;
507
519
  }, z.core.$strip>, z.ZodObject<{
520
+ capabilities: z.ZodArray<z.ZodEnum<{
521
+ motionDetection: "motionDetection";
522
+ labelDetection: "labelDetection";
523
+ faceRecognition: "faceRecognition";
524
+ semanticSearch: "semanticSearch";
525
+ }>>;
508
526
  type: z.ZodLiteral<"nvr-analytics-server">;
509
527
  }, z.core.$strip>, z.ZodObject<{
510
528
  type: z.ZodLiteral<"system">;
@@ -648,6 +666,12 @@ export declare const sGetAvailableDevicesRs: z.ZodObject<{
648
666
  }, z.core.$strip>, z.ZodObject<{
649
667
  type: z.ZodLiteral<"nvr-exporter">;
650
668
  }, z.core.$strip>, z.ZodObject<{
669
+ capabilities: z.ZodArray<z.ZodEnum<{
670
+ motionDetection: "motionDetection";
671
+ labelDetection: "labelDetection";
672
+ faceRecognition: "faceRecognition";
673
+ semanticSearch: "semanticSearch";
674
+ }>>;
651
675
  type: z.ZodLiteral<"nvr-analytics-server">;
652
676
  }, z.core.$strip>, z.ZodObject<{
653
677
  type: z.ZodLiteral<"system">;
@@ -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
- export type AnyDeviceCommand = ServerCommand | CameraCommand | DoorCommand | IoBoardCommand | CameraLiftCommand | AlarmCommand | PbxCommand | PresenceTrackerCommand | DisplayCommand | NvrRecorderCommand | NvrExporterCommand;
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;
@@ -140,6 +141,12 @@ export declare const commandSchemas: {
140
141
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
141
142
  type: import("zod").ZodLiteral<"nvr-exporter">;
142
143
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
144
+ capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
145
+ motionDetection: "motionDetection";
146
+ labelDetection: "labelDetection";
147
+ faceRecognition: "faceRecognition";
148
+ semanticSearch: "semanticSearch";
149
+ }>>;
143
150
  type: import("zod").ZodLiteral<"nvr-analytics-server">;
144
151
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
145
152
  type: import("zod").ZodLiteral<"system">;
@@ -155,6 +162,157 @@ export declare const commandSchemas: {
155
162
  recipientId: import("zod").ZodNullable<import("zod").ZodString>;
156
163
  }, import("zod/v4/core").$strip>;
157
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>;
158
316
  readonly 'nvr-exporter.start-export': import("zod").ZodObject<{
159
317
  command: import("zod").ZodLiteral<"nvr-exporter.start-export">;
160
318
  params: import("zod").ZodObject<{
@@ -272,6 +430,12 @@ export declare const commandSchemas: {
272
430
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
273
431
  type: import("zod").ZodLiteral<"nvr-exporter">;
274
432
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
433
+ capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
434
+ motionDetection: "motionDetection";
435
+ labelDetection: "labelDetection";
436
+ faceRecognition: "faceRecognition";
437
+ semanticSearch: "semanticSearch";
438
+ }>>;
275
439
  type: import("zod").ZodLiteral<"nvr-analytics-server">;
276
440
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
277
441
  type: import("zod").ZodLiteral<"system">;
@@ -404,6 +568,12 @@ export declare const commandSchemas: {
404
568
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
405
569
  type: import("zod").ZodLiteral<"nvr-exporter">;
406
570
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
571
+ capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
572
+ motionDetection: "motionDetection";
573
+ labelDetection: "labelDetection";
574
+ faceRecognition: "faceRecognition";
575
+ semanticSearch: "semanticSearch";
576
+ }>>;
407
577
  type: import("zod").ZodLiteral<"nvr-analytics-server">;
408
578
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
409
579
  type: import("zod").ZodLiteral<"system">;
@@ -527,6 +697,12 @@ export declare const commandSchemas: {
527
697
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
528
698
  type: import("zod").ZodLiteral<"nvr-exporter">;
529
699
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
700
+ capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
701
+ motionDetection: "motionDetection";
702
+ labelDetection: "labelDetection";
703
+ faceRecognition: "faceRecognition";
704
+ semanticSearch: "semanticSearch";
705
+ }>>;
530
706
  type: import("zod").ZodLiteral<"nvr-analytics-server">;
531
707
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
532
708
  type: import("zod").ZodLiteral<"system">;
@@ -650,6 +826,12 @@ export declare const commandSchemas: {
650
826
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
651
827
  type: import("zod").ZodLiteral<"nvr-exporter">;
652
828
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
829
+ capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
830
+ motionDetection: "motionDetection";
831
+ labelDetection: "labelDetection";
832
+ faceRecognition: "faceRecognition";
833
+ semanticSearch: "semanticSearch";
834
+ }>>;
653
835
  type: import("zod").ZodLiteral<"nvr-analytics-server">;
654
836
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
655
837
  type: import("zod").ZodLiteral<"system">;
@@ -776,6 +958,12 @@ export declare const commandSchemas: {
776
958
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
777
959
  type: import("zod").ZodLiteral<"nvr-exporter">;
778
960
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
961
+ capabilities: import("zod").ZodArray<import("zod").ZodEnum<{
962
+ motionDetection: "motionDetection";
963
+ labelDetection: "labelDetection";
964
+ faceRecognition: "faceRecognition";
965
+ semanticSearch: "semanticSearch";
966
+ }>>;
779
967
  type: import("zod").ZodLiteral<"nvr-analytics-server">;
780
968
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
781
969
  type: import("zod").ZodLiteral<"system">;
@@ -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
  };
@@ -10,4 +10,5 @@ export * from './nvr-exporter';
10
10
  export * from './nvr-recorder';
11
11
  export * from './camera-lift';
12
12
  export * from './pbx';
13
+ export * from './nvr-analytics-server';
13
14
  export * from './all';
@@ -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
+ };
@@ -116,6 +116,12 @@ export declare const sStartExportCommand: z.ZodObject<{
116
116
  }, z.core.$strip>, z.ZodObject<{
117
117
  type: z.ZodLiteral<"nvr-exporter">;
118
118
  }, z.core.$strip>, z.ZodObject<{
119
+ capabilities: z.ZodArray<z.ZodEnum<{
120
+ motionDetection: "motionDetection";
121
+ labelDetection: "labelDetection";
122
+ faceRecognition: "faceRecognition";
123
+ semanticSearch: "semanticSearch";
124
+ }>>;
119
125
  type: z.ZodLiteral<"nvr-analytics-server">;
120
126
  }, z.core.$strip>, z.ZodObject<{
121
127
  type: z.ZodLiteral<"system">;
@@ -253,6 +259,12 @@ export declare const nvrExporterCommandSchemas: {
253
259
  }, z.core.$strip>, z.ZodObject<{
254
260
  type: z.ZodLiteral<"nvr-exporter">;
255
261
  }, z.core.$strip>, z.ZodObject<{
262
+ capabilities: z.ZodArray<z.ZodEnum<{
263
+ motionDetection: "motionDetection";
264
+ labelDetection: "labelDetection";
265
+ faceRecognition: "faceRecognition";
266
+ semanticSearch: "semanticSearch";
267
+ }>>;
256
268
  type: z.ZodLiteral<"nvr-analytics-server">;
257
269
  }, z.core.$strip>, z.ZodObject<{
258
270
  type: z.ZodLiteral<"system">;
@@ -115,6 +115,12 @@ export declare const sMountStreamCommand: z.ZodObject<{
115
115
  }, z.core.$strip>, z.ZodObject<{
116
116
  type: z.ZodLiteral<"nvr-exporter">;
117
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
+ }>>;
118
124
  type: z.ZodLiteral<"nvr-analytics-server">;
119
125
  }, z.core.$strip>, z.ZodObject<{
120
126
  type: z.ZodLiteral<"system">;
@@ -242,6 +248,12 @@ export declare const sUnmountStreamCommand: z.ZodObject<{
242
248
  }, z.core.$strip>, z.ZodObject<{
243
249
  type: z.ZodLiteral<"nvr-exporter">;
244
250
  }, z.core.$strip>, z.ZodObject<{
251
+ capabilities: z.ZodArray<z.ZodEnum<{
252
+ motionDetection: "motionDetection";
253
+ labelDetection: "labelDetection";
254
+ faceRecognition: "faceRecognition";
255
+ semanticSearch: "semanticSearch";
256
+ }>>;
245
257
  type: z.ZodLiteral<"nvr-analytics-server">;
246
258
  }, z.core.$strip>, z.ZodObject<{
247
259
  type: z.ZodLiteral<"system">;
@@ -366,6 +378,12 @@ export declare const sStartRecordingCommand: z.ZodObject<{
366
378
  }, z.core.$strip>, z.ZodObject<{
367
379
  type: z.ZodLiteral<"nvr-exporter">;
368
380
  }, z.core.$strip>, z.ZodObject<{
381
+ capabilities: z.ZodArray<z.ZodEnum<{
382
+ motionDetection: "motionDetection";
383
+ labelDetection: "labelDetection";
384
+ faceRecognition: "faceRecognition";
385
+ semanticSearch: "semanticSearch";
386
+ }>>;
369
387
  type: z.ZodLiteral<"nvr-analytics-server">;
370
388
  }, z.core.$strip>, z.ZodObject<{
371
389
  type: z.ZodLiteral<"system">;
@@ -490,6 +508,12 @@ export declare const sStopRecordingCommand: z.ZodObject<{
490
508
  }, z.core.$strip>, z.ZodObject<{
491
509
  type: z.ZodLiteral<"nvr-exporter">;
492
510
  }, z.core.$strip>, z.ZodObject<{
511
+ capabilities: z.ZodArray<z.ZodEnum<{
512
+ motionDetection: "motionDetection";
513
+ labelDetection: "labelDetection";
514
+ faceRecognition: "faceRecognition";
515
+ semanticSearch: "semanticSearch";
516
+ }>>;
493
517
  type: z.ZodLiteral<"nvr-analytics-server">;
494
518
  }, z.core.$strip>, z.ZodObject<{
495
519
  type: z.ZodLiteral<"system">;
@@ -616,6 +640,12 @@ export declare const nvrRecorderCommandSchemas: {
616
640
  }, z.core.$strip>, z.ZodObject<{
617
641
  type: z.ZodLiteral<"nvr-exporter">;
618
642
  }, z.core.$strip>, z.ZodObject<{
643
+ capabilities: z.ZodArray<z.ZodEnum<{
644
+ motionDetection: "motionDetection";
645
+ labelDetection: "labelDetection";
646
+ faceRecognition: "faceRecognition";
647
+ semanticSearch: "semanticSearch";
648
+ }>>;
619
649
  type: z.ZodLiteral<"nvr-analytics-server">;
620
650
  }, z.core.$strip>, z.ZodObject<{
621
651
  type: z.ZodLiteral<"system">;
@@ -739,6 +769,12 @@ export declare const nvrRecorderCommandSchemas: {
739
769
  }, z.core.$strip>, z.ZodObject<{
740
770
  type: z.ZodLiteral<"nvr-exporter">;
741
771
  }, z.core.$strip>, z.ZodObject<{
772
+ capabilities: z.ZodArray<z.ZodEnum<{
773
+ motionDetection: "motionDetection";
774
+ labelDetection: "labelDetection";
775
+ faceRecognition: "faceRecognition";
776
+ semanticSearch: "semanticSearch";
777
+ }>>;
742
778
  type: z.ZodLiteral<"nvr-analytics-server">;
743
779
  }, z.core.$strip>, z.ZodObject<{
744
780
  type: z.ZodLiteral<"system">;
@@ -862,6 +898,12 @@ export declare const nvrRecorderCommandSchemas: {
862
898
  }, z.core.$strip>, z.ZodObject<{
863
899
  type: z.ZodLiteral<"nvr-exporter">;
864
900
  }, z.core.$strip>, z.ZodObject<{
901
+ capabilities: z.ZodArray<z.ZodEnum<{
902
+ motionDetection: "motionDetection";
903
+ labelDetection: "labelDetection";
904
+ faceRecognition: "faceRecognition";
905
+ semanticSearch: "semanticSearch";
906
+ }>>;
865
907
  type: z.ZodLiteral<"nvr-analytics-server">;
866
908
  }, z.core.$strip>, z.ZodObject<{
867
909
  type: z.ZodLiteral<"system">;
@@ -988,6 +1030,12 @@ export declare const nvrRecorderCommandSchemas: {
988
1030
  }, z.core.$strip>, z.ZodObject<{
989
1031
  type: z.ZodLiteral<"nvr-exporter">;
990
1032
  }, z.core.$strip>, z.ZodObject<{
1033
+ capabilities: z.ZodArray<z.ZodEnum<{
1034
+ motionDetection: "motionDetection";
1035
+ labelDetection: "labelDetection";
1036
+ faceRecognition: "faceRecognition";
1037
+ semanticSearch: "semanticSearch";
1038
+ }>>;
991
1039
  type: z.ZodLiteral<"nvr-analytics-server">;
992
1040
  }, z.core.$strip>, z.ZodObject<{
993
1041
  type: z.ZodLiteral<"system">;
@@ -121,6 +121,12 @@ export declare const sNotify: z.ZodObject<{
121
121
  }, z.core.$strip>, z.ZodObject<{
122
122
  type: z.ZodLiteral<"nvr-exporter">;
123
123
  }, z.core.$strip>, z.ZodObject<{
124
+ capabilities: z.ZodArray<z.ZodEnum<{
125
+ motionDetection: "motionDetection";
126
+ labelDetection: "labelDetection";
127
+ faceRecognition: "faceRecognition";
128
+ semanticSearch: "semanticSearch";
129
+ }>>;
124
130
  type: z.ZodLiteral<"nvr-analytics-server">;
125
131
  }, z.core.$strip>, z.ZodObject<{
126
132
  type: z.ZodLiteral<"system">;
@@ -261,6 +267,12 @@ export declare const serverCommands: {
261
267
  }, z.core.$strip>, z.ZodObject<{
262
268
  type: z.ZodLiteral<"nvr-exporter">;
263
269
  }, z.core.$strip>, z.ZodObject<{
270
+ capabilities: z.ZodArray<z.ZodEnum<{
271
+ motionDetection: "motionDetection";
272
+ labelDetection: "labelDetection";
273
+ faceRecognition: "faceRecognition";
274
+ semanticSearch: "semanticSearch";
275
+ }>>;
264
276
  type: z.ZodLiteral<"nvr-analytics-server">;
265
277
  }, z.core.$strip>, z.ZodObject<{
266
278
  type: z.ZodLiteral<"system">;
@@ -182,6 +182,12 @@ export declare const requestSchemasByType: {
182
182
  }, z.core.$strip>, z.ZodObject<{
183
183
  type: z.ZodLiteral<"nvr-exporter">;
184
184
  }, z.core.$strip>, z.ZodObject<{
185
+ capabilities: z.ZodArray<z.ZodEnum<{
186
+ motionDetection: "motionDetection";
187
+ labelDetection: "labelDetection";
188
+ faceRecognition: "faceRecognition";
189
+ semanticSearch: "semanticSearch";
190
+ }>>;
185
191
  type: z.ZodLiteral<"nvr-analytics-server">;
186
192
  }, z.core.$strip>, z.ZodObject<{
187
193
  type: z.ZodLiteral<"system">;
@@ -304,6 +310,12 @@ export declare const requestSchemasByType: {
304
310
  }, z.core.$strip>, z.ZodObject<{
305
311
  type: z.ZodLiteral<"nvr-exporter">;
306
312
  }, z.core.$strip>, z.ZodObject<{
313
+ capabilities: z.ZodArray<z.ZodEnum<{
314
+ motionDetection: "motionDetection";
315
+ labelDetection: "labelDetection";
316
+ faceRecognition: "faceRecognition";
317
+ semanticSearch: "semanticSearch";
318
+ }>>;
307
319
  type: z.ZodLiteral<"nvr-analytics-server">;
308
320
  }, z.core.$strip>, z.ZodObject<{
309
321
  type: z.ZodLiteral<"system">;
@@ -426,6 +438,12 @@ export declare const requestSchemasByType: {
426
438
  }, z.core.$strip>, z.ZodObject<{
427
439
  type: z.ZodLiteral<"nvr-exporter">;
428
440
  }, z.core.$strip>, z.ZodObject<{
441
+ capabilities: z.ZodArray<z.ZodEnum<{
442
+ motionDetection: "motionDetection";
443
+ labelDetection: "labelDetection";
444
+ faceRecognition: "faceRecognition";
445
+ semanticSearch: "semanticSearch";
446
+ }>>;
429
447
  type: z.ZodLiteral<"nvr-analytics-server">;
430
448
  }, z.core.$strip>, z.ZodObject<{
431
449
  type: z.ZodLiteral<"system">;
@@ -114,6 +114,12 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
114
114
  }, z.core.$strip>, z.ZodObject<{
115
115
  type: z.ZodLiteral<"nvr-exporter">;
116
116
  }, z.core.$strip>, z.ZodObject<{
117
+ capabilities: z.ZodArray<z.ZodEnum<{
118
+ motionDetection: "motionDetection";
119
+ labelDetection: "labelDetection";
120
+ faceRecognition: "faceRecognition";
121
+ semanticSearch: "semanticSearch";
122
+ }>>;
117
123
  type: z.ZodLiteral<"nvr-analytics-server">;
118
124
  }, z.core.$strip>, z.ZodObject<{
119
125
  type: z.ZodLiteral<"system">;
@@ -245,6 +251,12 @@ export declare const sPreviewImageArgs: z.ZodObject<{
245
251
  }, z.core.$strip>, z.ZodObject<{
246
252
  type: z.ZodLiteral<"nvr-exporter">;
247
253
  }, z.core.$strip>, z.ZodObject<{
254
+ capabilities: z.ZodArray<z.ZodEnum<{
255
+ motionDetection: "motionDetection";
256
+ labelDetection: "labelDetection";
257
+ faceRecognition: "faceRecognition";
258
+ semanticSearch: "semanticSearch";
259
+ }>>;
248
260
  type: z.ZodLiteral<"nvr-analytics-server">;
249
261
  }, z.core.$strip>, z.ZodObject<{
250
262
  type: z.ZodLiteral<"system">;
@@ -374,6 +386,12 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
374
386
  }, z.core.$strip>, z.ZodObject<{
375
387
  type: z.ZodLiteral<"nvr-exporter">;
376
388
  }, z.core.$strip>, z.ZodObject<{
389
+ capabilities: z.ZodArray<z.ZodEnum<{
390
+ motionDetection: "motionDetection";
391
+ labelDetection: "labelDetection";
392
+ faceRecognition: "faceRecognition";
393
+ semanticSearch: "semanticSearch";
394
+ }>>;
377
395
  type: z.ZodLiteral<"nvr-analytics-server">;
378
396
  }, z.core.$strip>, z.ZodObject<{
379
397
  type: z.ZodLiteral<"system">;
@@ -503,6 +521,12 @@ export declare const nvrRecorderRequestSchemas: {
503
521
  }, z.core.$strip>, z.ZodObject<{
504
522
  type: z.ZodLiteral<"nvr-exporter">;
505
523
  }, z.core.$strip>, z.ZodObject<{
524
+ capabilities: z.ZodArray<z.ZodEnum<{
525
+ motionDetection: "motionDetection";
526
+ labelDetection: "labelDetection";
527
+ faceRecognition: "faceRecognition";
528
+ semanticSearch: "semanticSearch";
529
+ }>>;
506
530
  type: z.ZodLiteral<"nvr-analytics-server">;
507
531
  }, z.core.$strip>, z.ZodObject<{
508
532
  type: z.ZodLiteral<"system">;
@@ -625,6 +649,12 @@ export declare const nvrRecorderRequestSchemas: {
625
649
  }, z.core.$strip>, z.ZodObject<{
626
650
  type: z.ZodLiteral<"nvr-exporter">;
627
651
  }, z.core.$strip>, z.ZodObject<{
652
+ capabilities: z.ZodArray<z.ZodEnum<{
653
+ motionDetection: "motionDetection";
654
+ labelDetection: "labelDetection";
655
+ faceRecognition: "faceRecognition";
656
+ semanticSearch: "semanticSearch";
657
+ }>>;
628
658
  type: z.ZodLiteral<"nvr-analytics-server">;
629
659
  }, z.core.$strip>, z.ZodObject<{
630
660
  type: z.ZodLiteral<"system">;
@@ -747,6 +777,12 @@ export declare const nvrRecorderRequestSchemas: {
747
777
  }, z.core.$strip>, z.ZodObject<{
748
778
  type: z.ZodLiteral<"nvr-exporter">;
749
779
  }, z.core.$strip>, z.ZodObject<{
780
+ capabilities: z.ZodArray<z.ZodEnum<{
781
+ motionDetection: "motionDetection";
782
+ labelDetection: "labelDetection";
783
+ faceRecognition: "faceRecognition";
784
+ semanticSearch: "semanticSearch";
785
+ }>>;
750
786
  type: z.ZodLiteral<"nvr-analytics-server">;
751
787
  }, z.core.$strip>, z.ZodObject<{
752
788
  type: z.ZodLiteral<"system">;
@@ -49,6 +49,12 @@ export declare const sNvrExporterSpecsWithType: z.ZodObject<{
49
49
  type: z.ZodLiteral<"nvr-exporter">;
50
50
  }, z.core.$strip>;
51
51
  export declare const sNvrAnalyticsServerSpecsWithType: z.ZodObject<{
52
+ capabilities: z.ZodArray<z.ZodEnum<{
53
+ motionDetection: "motionDetection";
54
+ labelDetection: "labelDetection";
55
+ faceRecognition: "faceRecognition";
56
+ semanticSearch: "semanticSearch";
57
+ }>>;
52
58
  type: z.ZodLiteral<"nvr-analytics-server">;
53
59
  }, z.core.$strip>;
54
60
  export declare const sSystemDeviceSpecsWithType: z.ZodObject<{
@@ -153,6 +159,12 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<[z.ZodObject<{
153
159
  }, z.core.$strip>, z.ZodObject<{
154
160
  type: z.ZodLiteral<"nvr-exporter">;
155
161
  }, z.core.$strip>, z.ZodObject<{
162
+ capabilities: z.ZodArray<z.ZodEnum<{
163
+ motionDetection: "motionDetection";
164
+ labelDetection: "labelDetection";
165
+ faceRecognition: "faceRecognition";
166
+ semanticSearch: "semanticSearch";
167
+ }>>;
156
168
  type: z.ZodLiteral<"nvr-analytics-server">;
157
169
  }, z.core.$strip>, z.ZodObject<{
158
170
  type: z.ZodLiteral<"system">;
@@ -317,6 +329,12 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
317
329
  }, z.core.$strip>, z.ZodObject<{
318
330
  type: z.ZodLiteral<"nvr-exporter">;
319
331
  }, z.core.$strip>, z.ZodObject<{
332
+ capabilities: z.ZodArray<z.ZodEnum<{
333
+ motionDetection: "motionDetection";
334
+ labelDetection: "labelDetection";
335
+ faceRecognition: "faceRecognition";
336
+ semanticSearch: "semanticSearch";
337
+ }>>;
320
338
  type: z.ZodLiteral<"nvr-analytics-server">;
321
339
  }, z.core.$strip>, z.ZodObject<{
322
340
  type: z.ZodLiteral<"system">;
@@ -1319,6 +1337,12 @@ export declare const sNvrExporterDto: z.ZodIntersection<z.ZodIntersection<z.ZodO
1319
1337
  providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
1320
1338
  }, z.core.$strip>>;
1321
1339
  export declare const sNvrAnalyticsServerDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1340
+ capabilities: z.ZodArray<z.ZodEnum<{
1341
+ motionDetection: "motionDetection";
1342
+ labelDetection: "labelDetection";
1343
+ faceRecognition: "faceRecognition";
1344
+ semanticSearch: "semanticSearch";
1345
+ }>>;
1322
1346
  type: z.ZodLiteral<"nvr-analytics-server">;
1323
1347
  }, z.core.$strip>, z.ZodObject<{
1324
1348
  id: z.ZodString;
@@ -2435,6 +2459,12 @@ export declare const deviceDtoSchemaMap: {
2435
2459
  providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
2436
2460
  }, z.core.$strip>>;
2437
2461
  readonly "nvr-analytics-server": z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2462
+ capabilities: z.ZodArray<z.ZodEnum<{
2463
+ motionDetection: "motionDetection";
2464
+ labelDetection: "labelDetection";
2465
+ faceRecognition: "faceRecognition";
2466
+ semanticSearch: "semanticSearch";
2467
+ }>>;
2438
2468
  type: z.ZodLiteral<"nvr-analytics-server">;
2439
2469
  }, z.core.$strip>, z.ZodObject<{
2440
2470
  id: z.ZodString;
@@ -106,6 +106,12 @@ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodO
106
106
  }, z.core.$strip>, z.ZodObject<{
107
107
  type: z.ZodLiteral<"nvr-exporter">;
108
108
  }, z.core.$strip>, z.ZodObject<{
109
+ capabilities: z.ZodArray<z.ZodEnum<{
110
+ motionDetection: "motionDetection";
111
+ labelDetection: "labelDetection";
112
+ faceRecognition: "faceRecognition";
113
+ semanticSearch: "semanticSearch";
114
+ }>>;
109
115
  type: z.ZodLiteral<"nvr-analytics-server">;
110
116
  }, z.core.$strip>, z.ZodObject<{
111
117
  type: z.ZodLiteral<"system">;
@@ -221,6 +227,12 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
221
227
  }, z.core.$strip>, z.ZodObject<{
222
228
  type: z.ZodLiteral<"nvr-exporter">;
223
229
  }, z.core.$strip>, z.ZodObject<{
230
+ capabilities: z.ZodArray<z.ZodEnum<{
231
+ motionDetection: "motionDetection";
232
+ labelDetection: "labelDetection";
233
+ faceRecognition: "faceRecognition";
234
+ semanticSearch: "semanticSearch";
235
+ }>>;
224
236
  type: z.ZodLiteral<"nvr-analytics-server">;
225
237
  }, z.core.$strip>, z.ZodObject<{
226
238
  type: z.ZodLiteral<"system">;
@@ -397,6 +409,12 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
397
409
  }, z.core.$strip>, z.ZodObject<{
398
410
  type: z.ZodLiteral<"nvr-exporter">;
399
411
  }, z.core.$strip>, z.ZodObject<{
412
+ capabilities: z.ZodArray<z.ZodEnum<{
413
+ motionDetection: "motionDetection";
414
+ labelDetection: "labelDetection";
415
+ faceRecognition: "faceRecognition";
416
+ semanticSearch: "semanticSearch";
417
+ }>>;
400
418
  type: z.ZodLiteral<"nvr-analytics-server">;
401
419
  }, z.core.$strip>, z.ZodObject<{
402
420
  type: z.ZodLiteral<"system">;
@@ -505,6 +523,12 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
505
523
  }, z.core.$strip>, z.ZodObject<{
506
524
  type: z.ZodLiteral<"nvr-exporter">;
507
525
  }, z.core.$strip>, z.ZodObject<{
526
+ capabilities: z.ZodArray<z.ZodEnum<{
527
+ motionDetection: "motionDetection";
528
+ labelDetection: "labelDetection";
529
+ faceRecognition: "faceRecognition";
530
+ semanticSearch: "semanticSearch";
531
+ }>>;
508
532
  type: z.ZodLiteral<"nvr-analytics-server">;
509
533
  }, z.core.$strip>, z.ZodObject<{
510
534
  type: z.ZodLiteral<"system">;
@@ -147,6 +147,13 @@ export declare const sAiStreamConfiguration: z.ZodObject<{
147
147
  fps: z.ZodOptional<z.ZodNumber>;
148
148
  }, z.core.$strip>>;
149
149
  }, z.core.$strip>;
150
+ export declare const sAiCapability: z.ZodEnum<{
151
+ motionDetection: "motionDetection";
152
+ labelDetection: "labelDetection";
153
+ faceRecognition: "faceRecognition";
154
+ semanticSearch: "semanticSearch";
155
+ }>;
156
+ export type AiCapability = z.infer<typeof sAiCapability>;
150
157
  export type AiStreamConfiguration = z.infer<typeof sAiStreamConfiguration>;
151
158
  export declare const sAiInferenceRelationData: z.ZodObject<{
152
159
  streams: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sDeviceRelationDataMap = exports.sIoBoardRelationData = exports.sAiInferenceRelationData = exports.sAiStreamConfiguration = exports.sAiSemanticSearchConfiguration = exports.sAiFaceRecognitionConfiguration = exports.sAiDetectionConfiguration = exports.sAiLabelConfiguration = exports.sMotionDetectionConfiguration = exports.sRecordingRelationData = exports.sStreamRecorderSettings = exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
3
+ exports.sDeviceRelationDataMap = exports.sIoBoardRelationData = exports.sAiInferenceRelationData = exports.sAiCapability = exports.sAiStreamConfiguration = exports.sAiSemanticSearchConfiguration = exports.sAiFaceRecognitionConfiguration = exports.sAiDetectionConfiguration = exports.sAiLabelConfiguration = exports.sMotionDetectionConfiguration = exports.sRecordingRelationData = exports.sStreamRecorderSettings = exports.inverseRelationKinds = exports.relationKinds = exports.sDeviceRelationSide = exports.sDeviceRelationDto = exports.sDeviceRelationKind = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sDeviceRelationKind = zod_1.z.enum([
6
6
  'attachedTo',
@@ -127,6 +127,12 @@ exports.sAiStreamConfiguration = zod_1.z.object({
127
127
  faceRecognition: exports.sAiFaceRecognitionConfiguration.optional(),
128
128
  semanticSearch: exports.sAiSemanticSearchConfiguration.optional(),
129
129
  });
130
+ exports.sAiCapability = zod_1.z.enum([
131
+ 'motionDetection',
132
+ 'labelDetection',
133
+ 'faceRecognition',
134
+ 'semanticSearch',
135
+ ]);
130
136
  // all together now: AI inference relation data
131
137
  exports.sAiInferenceRelationData = zod_1.z.object({
132
138
  streams: zod_1.z.record(zod_1.z.string(), exports.sAiStreamConfiguration),
@@ -1,6 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const NVR_ANALYTICS_SERVER = "nvr-analytics-server";
3
- export declare const sAnalyticsServerSpecs: z.ZodObject<{}, z.core.$strip>;
3
+ export declare const sAnalyticsServerSpecs: z.ZodObject<{
4
+ capabilities: z.ZodArray<z.ZodEnum<{
5
+ motionDetection: "motionDetection";
6
+ labelDetection: "labelDetection";
7
+ faceRecognition: "faceRecognition";
8
+ semanticSearch: "semanticSearch";
9
+ }>>;
10
+ }, z.core.$strip>;
4
11
  export type AnalyticsServerSpecs = z.infer<typeof sAnalyticsServerSpecs>;
5
12
  export declare const sAnalyticsServerStateDto: z.ZodObject<{
6
13
  connected: z.ZodBoolean;
@@ -2,8 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sAnalyticsServerStateDto = exports.sAnalyticsServerSpecs = exports.NVR_ANALYTICS_SERVER = void 0;
4
4
  const zod_1 = require("zod");
5
+ const device_relation_1 = require("./device-relation");
5
6
  exports.NVR_ANALYTICS_SERVER = 'nvr-analytics-server';
6
- exports.sAnalyticsServerSpecs = zod_1.z.object({});
7
+ exports.sAnalyticsServerSpecs = zod_1.z.object({
8
+ capabilities: zod_1.z.array(device_relation_1.sAiCapability),
9
+ });
7
10
  exports.sAnalyticsServerStateDto = zod_1.z.object({
8
11
  connected: zod_1.z.boolean(),
9
12
  });
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sReaderSpecs = exports.READER = void 0;
4
4
  const zod_1 = require("zod");
5
- const credential_type_1 = require("../../primitives/credential-type");
5
+ const primitives_1 = require("../../primitives");
6
6
  exports.READER = 'reader';
7
7
  // SPECS
8
8
  exports.sReaderSpecs = zod_1.z.object({
9
- credentialTypes: zod_1.z.array(credential_type_1.sCredentialType).optional(),
9
+ credentialTypes: zod_1.z.array(primitives_1.sCredentialType).optional(),
10
10
  });
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.98",
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",
@@ -138,6 +138,12 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
138
138
  }, z.core.$strip>, z.ZodObject<{
139
139
  type: z.ZodLiteral<"nvr-exporter">;
140
140
  }, z.core.$strip>, z.ZodObject<{
141
+ capabilities: z.ZodArray<z.ZodEnum<{
142
+ motionDetection: "motionDetection";
143
+ labelDetection: "labelDetection";
144
+ faceRecognition: "faceRecognition";
145
+ semanticSearch: "semanticSearch";
146
+ }>>;
141
147
  type: z.ZodLiteral<"nvr-analytics-server">;
142
148
  }, z.core.$strip>, z.ZodObject<{
143
149
  type: z.ZodLiteral<"system">;
@@ -257,6 +263,12 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
257
263
  }, z.core.$strip>, z.ZodObject<{
258
264
  type: z.ZodLiteral<"nvr-exporter">;
259
265
  }, z.core.$strip>, z.ZodObject<{
266
+ capabilities: z.ZodArray<z.ZodEnum<{
267
+ motionDetection: "motionDetection";
268
+ labelDetection: "labelDetection";
269
+ faceRecognition: "faceRecognition";
270
+ semanticSearch: "semanticSearch";
271
+ }>>;
260
272
  type: z.ZodLiteral<"nvr-analytics-server">;
261
273
  }, z.core.$strip>, z.ZodObject<{
262
274
  type: z.ZodLiteral<"system">;
@@ -286,4 +298,11 @@ export declare const sCallDirection: z.ZodEnum<{
286
298
  incoming: "incoming";
287
299
  outgoing: "outgoing";
288
300
  }>;
289
- export { sCredentialType, type CredentialType, } from './primitives/credential-type';
301
+ export declare const sCredentialType: z.ZodEnum<{
302
+ card: "card";
303
+ pin: "pin";
304
+ fingerprint: "fingerprint";
305
+ face: "face";
306
+ retina: "retina";
307
+ }>;
308
+ export type CredentialType = z.infer<typeof sCredentialType>;
@@ -53,5 +53,10 @@ exports.sCallState = zod_1.z.enum([
53
53
  'terminated',
54
54
  ]);
55
55
  exports.sCallDirection = zod_1.z.enum(['incoming', 'outgoing']);
56
- var credential_type_1 = require("./primitives/credential-type");
57
- Object.defineProperty(exports, "sCredentialType", { enumerable: true, get: function () { return credential_type_1.sCredentialType; } });
56
+ exports.sCredentialType = zod_1.z.enum([
57
+ 'card',
58
+ 'pin',
59
+ 'fingerprint',
60
+ 'face',
61
+ 'retina',
62
+ ]);
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.98",
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",
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const sCredentialType: z.ZodEnum<{
3
- card: "card";
4
- pin: "pin";
5
- fingerprint: "fingerprint";
6
- face: "face";
7
- retina: "retina";
8
- }>;
9
- export type CredentialType = z.infer<typeof sCredentialType>;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sCredentialType = void 0;
4
- const zod_1 = require("zod");
5
- exports.sCredentialType = zod_1.z.enum([
6
- 'card',
7
- 'pin',
8
- 'fingerprint',
9
- 'face',
10
- 'retina',
11
- ]);
@@ -1 +0,0 @@
1
- export * from './credential-type';
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./credential-type"), exports);