@awarevue/api-types 2.0.99 → 2.0.101

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.
@@ -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;
@@ -161,6 +162,158 @@ 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
+ rtspUrl: import("zod").ZodString;
293
+ motionDetection: import("zod").ZodOptional<import("zod").ZodObject<{
294
+ threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
295
+ enabled: import("zod").ZodBoolean;
296
+ fps: import("zod").ZodOptional<import("zod").ZodNumber>;
297
+ }, import("zod/v4/core").$strip>>;
298
+ labelDetection: import("zod").ZodOptional<import("zod").ZodObject<{
299
+ labels: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
300
+ threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
301
+ enabled: import("zod").ZodBoolean;
302
+ }, import("zod/v4/core").$strip>>;
303
+ enabled: import("zod").ZodBoolean;
304
+ fps: import("zod").ZodOptional<import("zod").ZodNumber>;
305
+ }, import("zod/v4/core").$strip>>;
306
+ faceRecognition: import("zod").ZodOptional<import("zod").ZodObject<{
307
+ threshold: import("zod").ZodOptional<import("zod").ZodNumber>;
308
+ enabled: import("zod").ZodBoolean;
309
+ fps: import("zod").ZodOptional<import("zod").ZodNumber>;
310
+ }, import("zod/v4/core").$strip>>;
311
+ semanticSearch: import("zod").ZodOptional<import("zod").ZodObject<{
312
+ enabled: import("zod").ZodBoolean;
313
+ fps: import("zod").ZodOptional<import("zod").ZodNumber>;
314
+ }, import("zod/v4/core").$strip>>;
315
+ }, import("zod/v4/core").$strip>;
316
+ }, import("zod/v4/core").$strip>;
164
317
  readonly 'nvr-exporter.start-export': import("zod").ZodObject<{
165
318
  command: import("zod").ZodLiteral<"nvr-exporter.start-export">;
166
319
  params: import("zod").ZodObject<{
@@ -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,309 @@
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
+ rtspUrl: z.ZodString;
130
+ motionDetection: z.ZodOptional<z.ZodObject<{
131
+ threshold: z.ZodOptional<z.ZodNumber>;
132
+ enabled: z.ZodBoolean;
133
+ fps: z.ZodOptional<z.ZodNumber>;
134
+ }, z.core.$strip>>;
135
+ labelDetection: z.ZodOptional<z.ZodObject<{
136
+ labels: z.ZodRecord<z.ZodString, z.ZodObject<{
137
+ threshold: z.ZodOptional<z.ZodNumber>;
138
+ enabled: z.ZodBoolean;
139
+ }, z.core.$strip>>;
140
+ enabled: z.ZodBoolean;
141
+ fps: z.ZodOptional<z.ZodNumber>;
142
+ }, z.core.$strip>>;
143
+ faceRecognition: z.ZodOptional<z.ZodObject<{
144
+ threshold: z.ZodOptional<z.ZodNumber>;
145
+ enabled: z.ZodBoolean;
146
+ fps: z.ZodOptional<z.ZodNumber>;
147
+ }, z.core.$strip>>;
148
+ semanticSearch: z.ZodOptional<z.ZodObject<{
149
+ enabled: z.ZodBoolean;
150
+ fps: z.ZodOptional<z.ZodNumber>;
151
+ }, z.core.$strip>>;
152
+ }, z.core.$strip>;
153
+ }, z.core.$strip>;
154
+ export type SetStreamAnalyticsCommand = z.infer<typeof sSetStreamAnalyticsCommand>;
155
+ export type NvrAnalyticsServerCommand = SetStreamAnalyticsCommand;
156
+ export declare const nvrAnalyticsServerCommandSchemas: {
157
+ readonly 'nvr-analytics-server.set-stream-analytics': z.ZodObject<{
158
+ command: z.ZodLiteral<"nvr-analytics-server.set-stream-analytics">;
159
+ params: z.ZodObject<{
160
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
161
+ name: z.ZodString;
162
+ foreignRef: z.ZodString;
163
+ provider: z.ZodString;
164
+ providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
165
+ presets: z.ZodArray<z.ZodObject<{
166
+ id: z.ZodString;
167
+ name: z.ZodString;
168
+ params: z.ZodUnknown;
169
+ isDefault: z.ZodBoolean;
170
+ assignedRef: z.ZodNullable<z.ZodString>;
171
+ createdOn: z.ZodString;
172
+ lastModifiedOn: z.ZodString;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
175
+ type: z.ZodLiteral<"alarm">;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ ptzCapable: z.ZodBoolean;
178
+ ptzPanSpeed: z.ZodNumber;
179
+ ptzTiltSpeed: z.ZodNumber;
180
+ ptzZoomSpeed: z.ZodNumber;
181
+ panMin: z.ZodNumber;
182
+ panMax: z.ZodNumber;
183
+ tiltMin: z.ZodNumber;
184
+ tiltMax: z.ZodNumber;
185
+ zoomMin: z.ZodNumber;
186
+ zoomMax: z.ZodNumber;
187
+ streams: z.ZodArray<z.ZodObject<{
188
+ id: z.ZodString;
189
+ displayName: z.ZodString;
190
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
191
+ rtspUrl: z.ZodNullable<z.ZodString>;
192
+ width: z.ZodNullable<z.ZodNumber>;
193
+ height: z.ZodNullable<z.ZodNumber>;
194
+ lensType: z.ZodEnum<{
195
+ flat: "flat";
196
+ fisheye: "fisheye";
197
+ }>;
198
+ mountPoint: z.ZodEnum<{
199
+ wall: "wall";
200
+ ceiling: "ceiling";
201
+ floor: "floor";
202
+ }>;
203
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
204
+ kind: z.ZodString;
205
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
206
+ }, z.core.$strip>>;
207
+ defaultStreamId: z.ZodString;
208
+ autoSwitchStreams: z.ZodBoolean;
209
+ streamNaming: z.ZodEnum<{
210
+ cameraStreamNo: "cameraStreamNo";
211
+ cameraStream: "cameraStream";
212
+ stream: "stream";
213
+ }>;
214
+ type: z.ZodLiteral<"camera">;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ canReportOpenState: z.ZodBoolean;
217
+ canReportLockState: z.ZodBoolean;
218
+ canControlLock: z.ZodBoolean;
219
+ canRelease: z.ZodBoolean;
220
+ style: z.ZodOptional<z.ZodEnum<{
221
+ single: "single";
222
+ double: "double";
223
+ sliding: "sliding";
224
+ hatch: "hatch";
225
+ roller: "roller";
226
+ window: "window";
227
+ }>>;
228
+ type: z.ZodLiteral<"door">;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ inputs: z.ZodArray<z.ZodString>;
231
+ outputs: z.ZodArray<z.ZodString>;
232
+ type: z.ZodLiteral<"io-board">;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ type: z.ZodLiteral<"camera-lift">;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ type: z.ZodLiteral<"motion-sensor">;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ type: z.ZodLiteral<"panic-button">;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ sipUri: z.ZodString;
241
+ sipUser: z.ZodString;
242
+ sipPassword: z.ZodString;
243
+ sipRealm: z.ZodString;
244
+ remoteExtension: z.ZodString;
245
+ type: z.ZodLiteral<"intercom-terminal">;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ sipWsUrl: z.ZodString;
248
+ type: z.ZodLiteral<"pbx">;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"server">;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ type: z.ZodLiteral<"intercom-operator">;
253
+ }, z.core.$strip>, z.ZodObject<{
254
+ type: z.ZodLiteral<"device-gateway">;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ type: z.ZodLiteral<"presence-tracker">;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
259
+ card: "card";
260
+ pin: "pin";
261
+ fingerprint: "fingerprint";
262
+ face: "face";
263
+ retina: "retina";
264
+ }>>>;
265
+ type: z.ZodLiteral<"reader">;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ type: z.ZodLiteral<"display">;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ type: z.ZodLiteral<"nvr-recorder">;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ type: z.ZodLiteral<"nvr-exporter">;
272
+ }, z.core.$strip>, z.ZodObject<{
273
+ capabilities: z.ZodArray<z.ZodEnum<{
274
+ motionDetection: "motionDetection";
275
+ labelDetection: "labelDetection";
276
+ faceRecognition: "faceRecognition";
277
+ semanticSearch: "semanticSearch";
278
+ }>>;
279
+ type: z.ZodLiteral<"nvr-analytics-server">;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ type: z.ZodLiteral<"system">;
282
+ }, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
283
+ streamId: z.ZodString;
284
+ rtspUrl: z.ZodString;
285
+ motionDetection: z.ZodOptional<z.ZodObject<{
286
+ threshold: z.ZodOptional<z.ZodNumber>;
287
+ enabled: z.ZodBoolean;
288
+ fps: z.ZodOptional<z.ZodNumber>;
289
+ }, z.core.$strip>>;
290
+ labelDetection: z.ZodOptional<z.ZodObject<{
291
+ labels: z.ZodRecord<z.ZodString, z.ZodObject<{
292
+ threshold: z.ZodOptional<z.ZodNumber>;
293
+ enabled: z.ZodBoolean;
294
+ }, z.core.$strip>>;
295
+ enabled: z.ZodBoolean;
296
+ fps: z.ZodOptional<z.ZodNumber>;
297
+ }, z.core.$strip>>;
298
+ faceRecognition: z.ZodOptional<z.ZodObject<{
299
+ threshold: z.ZodOptional<z.ZodNumber>;
300
+ enabled: z.ZodBoolean;
301
+ fps: z.ZodOptional<z.ZodNumber>;
302
+ }, z.core.$strip>>;
303
+ semanticSearch: z.ZodOptional<z.ZodObject<{
304
+ enabled: z.ZodBoolean;
305
+ fps: z.ZodOptional<z.ZodNumber>;
306
+ }, z.core.$strip>>;
307
+ }, z.core.$strip>;
308
+ }, z.core.$strip>;
309
+ };
@@ -0,0 +1,20 @@
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
+ rtspUrl: zod_1.z.string().nonempty(),
15
+ })
16
+ .extend(device_relation_1.sAiStreamConfiguration.shape),
17
+ });
18
+ exports.nvrAnalyticsServerCommandSchemas = {
19
+ 'nvr-analytics-server.set-stream-analytics': exports.sSetStreamAnalyticsCommand,
20
+ };
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.99",
7
+ "version": "2.0.101",
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.99",
7
+ "version": "2.0.101",
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",