@awarevue/api-types 2.0.123 → 2.0.125

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.
Files changed (38) hide show
  1. package/dist/api/agent-protocol/protocol.d.ts +4 -4
  2. package/dist/api/queries/all.d.ts +141 -0
  3. package/dist/api/queries/nvr-recorder.d.ts +287 -0
  4. package/dist/api/queries/nvr-recorder.js +13 -1
  5. package/dist/api/rest/api-keys.d.ts +2 -2
  6. package/dist/api/rest/api-keys.js +2 -2
  7. package/dist/api/rest/macros.d.ts +2 -2
  8. package/dist/api/rest/media.d.ts +23 -0
  9. package/dist/api/rest/media.js +9 -1
  10. package/dist/api/rest/person-type.d.ts +2 -2
  11. package/dist/api/rest/template.d.ts +2 -2
  12. package/dist/api/rest/template.js +2 -2
  13. package/dist/api/ws/trackables.d.ts +8 -8
  14. package/dist/api/ws/trackables.js +4 -4
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +1 -0
  17. package/dist/motion.d.ts +27 -0
  18. package/dist/motion.js +48 -0
  19. package/dist/objects/agreement.d.ts +1 -1
  20. package/dist/objects/agreement.js +1 -1
  21. package/dist/objects/api-key.d.ts +1 -1
  22. package/dist/objects/api-key.js +1 -1
  23. package/dist/objects/custom-field.d.ts +1 -1
  24. package/dist/objects/custom-field.js +1 -1
  25. package/dist/objects/macro.d.ts +2 -2
  26. package/dist/objects/macro.js +1 -1
  27. package/dist/objects/person-type.d.ts +1 -1
  28. package/dist/objects/person-type.js +1 -1
  29. package/dist/objects/role.d.ts +1 -1
  30. package/dist/objects/role.js +1 -1
  31. package/dist/objects/security-level.d.ts +1 -1
  32. package/dist/objects/security-level.js +1 -1
  33. package/dist/objects/template.d.ts +2 -2
  34. package/dist/objects/template.js +2 -2
  35. package/dist/objects/token-conversion.d.ts +1 -1
  36. package/dist/objects/token-conversion.js +1 -1
  37. package/dist/package.json +1 -1
  38. package/package.json +1 -1
@@ -522,11 +522,11 @@ export declare const sPushTrackableUpdate: z.ZodObject<{
522
522
  updates: z.ZodRecord<z.ZodString, z.ZodObject<{
523
523
  timestamp: z.ZodNumber;
524
524
  objectId: z.ZodString;
525
- objectName: z.ZodString;
526
- objectKind: z.ZodNullable<z.ZodString>;
525
+ objectName: z.ZodOptional<z.ZodString>;
526
+ objectKind: z.ZodOptional<z.ZodString>;
527
527
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
528
- longitude: z.ZodNumber;
529
- latitude: z.ZodNumber;
528
+ longitude: z.ZodOptional<z.ZodNumber>;
529
+ latitude: z.ZodOptional<z.ZodNumber>;
530
530
  altitude: z.ZodOptional<z.ZodNumber>;
531
531
  speed: z.ZodOptional<z.ZodObject<{
532
532
  value: z.ZodNumber;
@@ -196,6 +196,130 @@ export declare const requestSchemasByType: {
196
196
  timeFrom: z.ZodNumber;
197
197
  timeTo: z.ZodNumber;
198
198
  }, z.core.$strip>;
199
+ readonly "cctv:motion-stats-by-time-range": z.ZodObject<{
200
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
201
+ name: z.ZodString;
202
+ foreignRef: z.ZodString;
203
+ provider: z.ZodString;
204
+ providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
205
+ presets: z.ZodArray<z.ZodObject<{
206
+ id: z.ZodString;
207
+ name: z.ZodString;
208
+ params: z.ZodUnknown;
209
+ isDefault: z.ZodBoolean;
210
+ assignedRef: z.ZodNullable<z.ZodString>;
211
+ createdOn: z.ZodString;
212
+ lastModifiedOn: z.ZodString;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
215
+ type: z.ZodLiteral<"alarm">;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ ptzCapable: z.ZodBoolean;
218
+ ptzPanSpeed: z.ZodNumber;
219
+ ptzTiltSpeed: z.ZodNumber;
220
+ ptzZoomSpeed: z.ZodNumber;
221
+ panMin: z.ZodNumber;
222
+ panMax: z.ZodNumber;
223
+ tiltMin: z.ZodNumber;
224
+ tiltMax: z.ZodNumber;
225
+ zoomMin: z.ZodNumber;
226
+ zoomMax: z.ZodNumber;
227
+ streams: z.ZodArray<z.ZodObject<{
228
+ id: z.ZodString;
229
+ displayName: z.ZodString;
230
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
231
+ rtspUrl: z.ZodNullable<z.ZodString>;
232
+ width: z.ZodNullable<z.ZodNumber>;
233
+ height: z.ZodNullable<z.ZodNumber>;
234
+ lensType: z.ZodEnum<{
235
+ flat: "flat";
236
+ fisheye: "fisheye";
237
+ }>;
238
+ mountPoint: z.ZodEnum<{
239
+ wall: "wall";
240
+ ceiling: "ceiling";
241
+ floor: "floor";
242
+ }>;
243
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
244
+ kind: z.ZodString;
245
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
246
+ }, z.core.$strip>>;
247
+ defaultStreamId: z.ZodString;
248
+ autoSwitchStreams: z.ZodBoolean;
249
+ streamNaming: z.ZodEnum<{
250
+ cameraStreamNo: "cameraStreamNo";
251
+ cameraStream: "cameraStream";
252
+ stream: "stream";
253
+ }>;
254
+ type: z.ZodLiteral<"camera">;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ canReportOpenState: z.ZodBoolean;
257
+ canReportLockState: z.ZodBoolean;
258
+ canControlLock: z.ZodBoolean;
259
+ canRelease: z.ZodBoolean;
260
+ type: z.ZodLiteral<"door">;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ inputs: z.ZodArray<z.ZodString>;
263
+ outputs: z.ZodArray<z.ZodString>;
264
+ type: z.ZodLiteral<"io-board">;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ type: z.ZodLiteral<"camera-lift">;
267
+ }, z.core.$strip>, z.ZodObject<{
268
+ type: z.ZodLiteral<"motion-sensor">;
269
+ }, z.core.$strip>, z.ZodObject<{
270
+ type: z.ZodLiteral<"generic-sensor">;
271
+ }, z.core.$strip>, z.ZodObject<{
272
+ type: z.ZodLiteral<"panic-button">;
273
+ }, z.core.$strip>, z.ZodObject<{
274
+ sipUri: z.ZodString;
275
+ sipUser: z.ZodString;
276
+ sipPassword: z.ZodString;
277
+ sipRealm: z.ZodString;
278
+ remoteExtension: z.ZodString;
279
+ type: z.ZodLiteral<"intercom-terminal">;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ sipWsUrl: z.ZodString;
282
+ type: z.ZodLiteral<"pbx">;
283
+ }, z.core.$strip>, z.ZodObject<{
284
+ type: z.ZodLiteral<"server">;
285
+ }, z.core.$strip>, z.ZodObject<{
286
+ type: z.ZodLiteral<"intercom-operator">;
287
+ }, z.core.$strip>, z.ZodObject<{
288
+ type: z.ZodLiteral<"device-gateway">;
289
+ }, z.core.$strip>, z.ZodObject<{
290
+ type: z.ZodLiteral<"presence-tracker">;
291
+ }, z.core.$strip>, z.ZodObject<{
292
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
293
+ card: "card";
294
+ pin: "pin";
295
+ fingerprint: "fingerprint";
296
+ face: "face";
297
+ retina: "retina";
298
+ }>>>;
299
+ type: z.ZodLiteral<"reader">;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ type: z.ZodLiteral<"display">;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ type: z.ZodLiteral<"nvr-recorder">;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ type: z.ZodLiteral<"nvr-exporter">;
306
+ }, z.core.$strip>, z.ZodObject<{
307
+ capabilities: z.ZodArray<z.ZodEnum<{
308
+ motionDetection: "motionDetection";
309
+ labelDetection: "labelDetection";
310
+ faceRecognition: "faceRecognition";
311
+ semanticSearch: "semanticSearch";
312
+ }>>;
313
+ type: z.ZodLiteral<"nvr-analytics-server">;
314
+ }, z.core.$strip>, z.ZodObject<{
315
+ type: z.ZodLiteral<"system">;
316
+ }, z.core.$strip>, z.ZodObject<{
317
+ type: z.ZodLiteral<"position-tracker">;
318
+ }, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
319
+ streamId: z.ZodString;
320
+ timeFrom: z.ZodNumber;
321
+ timeTo: z.ZodNumber;
322
+ }, z.core.$strip>;
199
323
  readonly "cctv:preview-image": z.ZodObject<{
200
324
  device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
201
325
  name: z.ZodString;
@@ -518,6 +642,23 @@ export declare const responseSchemasByType: {
518
642
  motion: z.ZodOptional<z.ZodNumber>;
519
643
  objects: z.ZodOptional<z.ZodNumber>;
520
644
  }, z.core.$strip>>;
645
+ readonly "cctv:motion-stats-by-time-range": z.ZodObject<{
646
+ streamId: z.ZodString;
647
+ from: z.ZodNumber;
648
+ to: z.ZodNumber;
649
+ bucketMs: z.ZodNumber;
650
+ baseline: z.ZodObject<{
651
+ floor: z.ZodNumber;
652
+ ceiling: z.ZodNumber;
653
+ }, z.core.$strip>;
654
+ samples: z.ZodArray<z.ZodObject<{
655
+ t: z.ZodNumber;
656
+ avg: z.ZodNumber;
657
+ max: z.ZodNumber;
658
+ rms: z.ZodNumber;
659
+ n: z.ZodNumber;
660
+ }, z.core.$strip>>;
661
+ }, z.core.$strip>;
521
662
  readonly "cctv:preview-image": z.ZodNullable<z.ZodObject<{
522
663
  mimeType: z.ZodString;
523
664
  data: z.ZodString;
@@ -132,6 +132,150 @@ export declare const sRecordingsResponse: z.ZodArray<z.ZodObject<{
132
132
  }, z.core.$strip>>;
133
133
  export type RecordingsByTimeRangeArgs = z.infer<typeof sRecordingsByTimeRangeArgs>;
134
134
  export type RecordingsResponse = z.infer<typeof sRecordingsResponse>;
135
+ export declare const QUERY_MOTION_STATS_BY_TIME_RANGE = "cctv:motion-stats-by-time-range";
136
+ export declare const sMotionStatsByTimeRangeArgs: z.ZodObject<{
137
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
138
+ name: z.ZodString;
139
+ foreignRef: z.ZodString;
140
+ provider: z.ZodString;
141
+ providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
142
+ presets: z.ZodArray<z.ZodObject<{
143
+ id: z.ZodString;
144
+ name: z.ZodString;
145
+ params: z.ZodUnknown;
146
+ isDefault: z.ZodBoolean;
147
+ assignedRef: z.ZodNullable<z.ZodString>;
148
+ createdOn: z.ZodString;
149
+ lastModifiedOn: z.ZodString;
150
+ }, z.core.$strip>>;
151
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
152
+ type: z.ZodLiteral<"alarm">;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ ptzCapable: z.ZodBoolean;
155
+ ptzPanSpeed: z.ZodNumber;
156
+ ptzTiltSpeed: z.ZodNumber;
157
+ ptzZoomSpeed: z.ZodNumber;
158
+ panMin: z.ZodNumber;
159
+ panMax: z.ZodNumber;
160
+ tiltMin: z.ZodNumber;
161
+ tiltMax: z.ZodNumber;
162
+ zoomMin: z.ZodNumber;
163
+ zoomMax: z.ZodNumber;
164
+ streams: z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ displayName: z.ZodString;
167
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
168
+ rtspUrl: z.ZodNullable<z.ZodString>;
169
+ width: z.ZodNullable<z.ZodNumber>;
170
+ height: z.ZodNullable<z.ZodNumber>;
171
+ lensType: z.ZodEnum<{
172
+ flat: "flat";
173
+ fisheye: "fisheye";
174
+ }>;
175
+ mountPoint: z.ZodEnum<{
176
+ wall: "wall";
177
+ ceiling: "ceiling";
178
+ floor: "floor";
179
+ }>;
180
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
181
+ kind: z.ZodString;
182
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
183
+ }, z.core.$strip>>;
184
+ defaultStreamId: z.ZodString;
185
+ autoSwitchStreams: z.ZodBoolean;
186
+ streamNaming: z.ZodEnum<{
187
+ cameraStreamNo: "cameraStreamNo";
188
+ cameraStream: "cameraStream";
189
+ stream: "stream";
190
+ }>;
191
+ type: z.ZodLiteral<"camera">;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ canReportOpenState: z.ZodBoolean;
194
+ canReportLockState: z.ZodBoolean;
195
+ canControlLock: z.ZodBoolean;
196
+ canRelease: z.ZodBoolean;
197
+ type: z.ZodLiteral<"door">;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ inputs: z.ZodArray<z.ZodString>;
200
+ outputs: z.ZodArray<z.ZodString>;
201
+ type: z.ZodLiteral<"io-board">;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ type: z.ZodLiteral<"camera-lift">;
204
+ }, z.core.$strip>, z.ZodObject<{
205
+ type: z.ZodLiteral<"motion-sensor">;
206
+ }, z.core.$strip>, z.ZodObject<{
207
+ type: z.ZodLiteral<"generic-sensor">;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ type: z.ZodLiteral<"panic-button">;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ sipUri: z.ZodString;
212
+ sipUser: z.ZodString;
213
+ sipPassword: z.ZodString;
214
+ sipRealm: z.ZodString;
215
+ remoteExtension: z.ZodString;
216
+ type: z.ZodLiteral<"intercom-terminal">;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ sipWsUrl: z.ZodString;
219
+ type: z.ZodLiteral<"pbx">;
220
+ }, z.core.$strip>, z.ZodObject<{
221
+ type: z.ZodLiteral<"server">;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ type: z.ZodLiteral<"intercom-operator">;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ type: z.ZodLiteral<"device-gateway">;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ type: z.ZodLiteral<"presence-tracker">;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
230
+ card: "card";
231
+ pin: "pin";
232
+ fingerprint: "fingerprint";
233
+ face: "face";
234
+ retina: "retina";
235
+ }>>>;
236
+ type: z.ZodLiteral<"reader">;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ type: z.ZodLiteral<"display">;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodLiteral<"nvr-recorder">;
241
+ }, z.core.$strip>, z.ZodObject<{
242
+ type: z.ZodLiteral<"nvr-exporter">;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ capabilities: z.ZodArray<z.ZodEnum<{
245
+ motionDetection: "motionDetection";
246
+ labelDetection: "labelDetection";
247
+ faceRecognition: "faceRecognition";
248
+ semanticSearch: "semanticSearch";
249
+ }>>;
250
+ type: z.ZodLiteral<"nvr-analytics-server">;
251
+ }, z.core.$strip>, z.ZodObject<{
252
+ type: z.ZodLiteral<"system">;
253
+ }, z.core.$strip>, z.ZodObject<{
254
+ type: z.ZodLiteral<"position-tracker">;
255
+ }, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
256
+ streamId: z.ZodString;
257
+ timeFrom: z.ZodNumber;
258
+ timeTo: z.ZodNumber;
259
+ }, z.core.$strip>;
260
+ export declare const sMotionStatsResponse: z.ZodObject<{
261
+ streamId: z.ZodString;
262
+ from: z.ZodNumber;
263
+ to: z.ZodNumber;
264
+ bucketMs: z.ZodNumber;
265
+ baseline: z.ZodObject<{
266
+ floor: z.ZodNumber;
267
+ ceiling: z.ZodNumber;
268
+ }, z.core.$strip>;
269
+ samples: z.ZodArray<z.ZodObject<{
270
+ t: z.ZodNumber;
271
+ avg: z.ZodNumber;
272
+ max: z.ZodNumber;
273
+ rms: z.ZodNumber;
274
+ n: z.ZodNumber;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>;
277
+ export type MotionStatsByTimeRangeArgs = z.infer<typeof sMotionStatsByTimeRangeArgs>;
278
+ export type MotionStatsResponse = z.infer<typeof sMotionStatsResponse>;
135
279
  export declare const QUERY_PREVIEW_IMAGE = "cctv:preview-image";
136
280
  export declare const sPreviewImageArgs: z.ZodObject<{
137
281
  device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
@@ -519,6 +663,130 @@ export declare const nvrRecorderRequestSchemas: {
519
663
  timeFrom: z.ZodNumber;
520
664
  timeTo: z.ZodNumber;
521
665
  }, z.core.$strip>;
666
+ readonly "cctv:motion-stats-by-time-range": z.ZodObject<{
667
+ device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
668
+ name: z.ZodString;
669
+ foreignRef: z.ZodString;
670
+ provider: z.ZodString;
671
+ providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
672
+ presets: z.ZodArray<z.ZodObject<{
673
+ id: z.ZodString;
674
+ name: z.ZodString;
675
+ params: z.ZodUnknown;
676
+ isDefault: z.ZodBoolean;
677
+ assignedRef: z.ZodNullable<z.ZodString>;
678
+ createdOn: z.ZodString;
679
+ lastModifiedOn: z.ZodString;
680
+ }, z.core.$strip>>;
681
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
682
+ type: z.ZodLiteral<"alarm">;
683
+ }, z.core.$strip>, z.ZodObject<{
684
+ ptzCapable: z.ZodBoolean;
685
+ ptzPanSpeed: z.ZodNumber;
686
+ ptzTiltSpeed: z.ZodNumber;
687
+ ptzZoomSpeed: z.ZodNumber;
688
+ panMin: z.ZodNumber;
689
+ panMax: z.ZodNumber;
690
+ tiltMin: z.ZodNumber;
691
+ tiltMax: z.ZodNumber;
692
+ zoomMin: z.ZodNumber;
693
+ zoomMax: z.ZodNumber;
694
+ streams: z.ZodArray<z.ZodObject<{
695
+ id: z.ZodString;
696
+ displayName: z.ZodString;
697
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
698
+ rtspUrl: z.ZodNullable<z.ZodString>;
699
+ width: z.ZodNullable<z.ZodNumber>;
700
+ height: z.ZodNullable<z.ZodNumber>;
701
+ lensType: z.ZodEnum<{
702
+ flat: "flat";
703
+ fisheye: "fisheye";
704
+ }>;
705
+ mountPoint: z.ZodEnum<{
706
+ wall: "wall";
707
+ ceiling: "ceiling";
708
+ floor: "floor";
709
+ }>;
710
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
711
+ kind: z.ZodString;
712
+ }, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
713
+ }, z.core.$strip>>;
714
+ defaultStreamId: z.ZodString;
715
+ autoSwitchStreams: z.ZodBoolean;
716
+ streamNaming: z.ZodEnum<{
717
+ cameraStreamNo: "cameraStreamNo";
718
+ cameraStream: "cameraStream";
719
+ stream: "stream";
720
+ }>;
721
+ type: z.ZodLiteral<"camera">;
722
+ }, z.core.$strip>, z.ZodObject<{
723
+ canReportOpenState: z.ZodBoolean;
724
+ canReportLockState: z.ZodBoolean;
725
+ canControlLock: z.ZodBoolean;
726
+ canRelease: z.ZodBoolean;
727
+ type: z.ZodLiteral<"door">;
728
+ }, z.core.$strip>, z.ZodObject<{
729
+ inputs: z.ZodArray<z.ZodString>;
730
+ outputs: z.ZodArray<z.ZodString>;
731
+ type: z.ZodLiteral<"io-board">;
732
+ }, z.core.$strip>, z.ZodObject<{
733
+ type: z.ZodLiteral<"camera-lift">;
734
+ }, z.core.$strip>, z.ZodObject<{
735
+ type: z.ZodLiteral<"motion-sensor">;
736
+ }, z.core.$strip>, z.ZodObject<{
737
+ type: z.ZodLiteral<"generic-sensor">;
738
+ }, z.core.$strip>, z.ZodObject<{
739
+ type: z.ZodLiteral<"panic-button">;
740
+ }, z.core.$strip>, z.ZodObject<{
741
+ sipUri: z.ZodString;
742
+ sipUser: z.ZodString;
743
+ sipPassword: z.ZodString;
744
+ sipRealm: z.ZodString;
745
+ remoteExtension: z.ZodString;
746
+ type: z.ZodLiteral<"intercom-terminal">;
747
+ }, z.core.$strip>, z.ZodObject<{
748
+ sipWsUrl: z.ZodString;
749
+ type: z.ZodLiteral<"pbx">;
750
+ }, z.core.$strip>, z.ZodObject<{
751
+ type: z.ZodLiteral<"server">;
752
+ }, z.core.$strip>, z.ZodObject<{
753
+ type: z.ZodLiteral<"intercom-operator">;
754
+ }, z.core.$strip>, z.ZodObject<{
755
+ type: z.ZodLiteral<"device-gateway">;
756
+ }, z.core.$strip>, z.ZodObject<{
757
+ type: z.ZodLiteral<"presence-tracker">;
758
+ }, z.core.$strip>, z.ZodObject<{
759
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
760
+ card: "card";
761
+ pin: "pin";
762
+ fingerprint: "fingerprint";
763
+ face: "face";
764
+ retina: "retina";
765
+ }>>>;
766
+ type: z.ZodLiteral<"reader">;
767
+ }, z.core.$strip>, z.ZodObject<{
768
+ type: z.ZodLiteral<"display">;
769
+ }, z.core.$strip>, z.ZodObject<{
770
+ type: z.ZodLiteral<"nvr-recorder">;
771
+ }, z.core.$strip>, z.ZodObject<{
772
+ type: z.ZodLiteral<"nvr-exporter">;
773
+ }, z.core.$strip>, z.ZodObject<{
774
+ capabilities: z.ZodArray<z.ZodEnum<{
775
+ motionDetection: "motionDetection";
776
+ labelDetection: "labelDetection";
777
+ faceRecognition: "faceRecognition";
778
+ semanticSearch: "semanticSearch";
779
+ }>>;
780
+ type: z.ZodLiteral<"nvr-analytics-server">;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ type: z.ZodLiteral<"system">;
783
+ }, z.core.$strip>, z.ZodObject<{
784
+ type: z.ZodLiteral<"position-tracker">;
785
+ }, z.core.$strip>], "type">>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
786
+ streamId: z.ZodString;
787
+ timeFrom: z.ZodNumber;
788
+ timeTo: z.ZodNumber;
789
+ }, z.core.$strip>;
522
790
  readonly "cctv:preview-image": z.ZodObject<{
523
791
  device: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
524
792
  name: z.ZodString;
@@ -775,6 +1043,23 @@ export declare const nvrRecorderResponseSchemas: {
775
1043
  motion: z.ZodOptional<z.ZodNumber>;
776
1044
  objects: z.ZodOptional<z.ZodNumber>;
777
1045
  }, z.core.$strip>>;
1046
+ readonly "cctv:motion-stats-by-time-range": z.ZodObject<{
1047
+ streamId: z.ZodString;
1048
+ from: z.ZodNumber;
1049
+ to: z.ZodNumber;
1050
+ bucketMs: z.ZodNumber;
1051
+ baseline: z.ZodObject<{
1052
+ floor: z.ZodNumber;
1053
+ ceiling: z.ZodNumber;
1054
+ }, z.core.$strip>;
1055
+ samples: z.ZodArray<z.ZodObject<{
1056
+ t: z.ZodNumber;
1057
+ avg: z.ZodNumber;
1058
+ max: z.ZodNumber;
1059
+ rms: z.ZodNumber;
1060
+ n: z.ZodNumber;
1061
+ }, z.core.$strip>>;
1062
+ }, z.core.$strip>;
778
1063
  readonly "cctv:preview-image": z.ZodNullable<z.ZodObject<{
779
1064
  mimeType: z.ZodString;
780
1065
  data: z.ZodString;
@@ -786,11 +1071,13 @@ export declare const nvrRecorderResponseSchemas: {
786
1071
  };
787
1072
  export type NvrRecorderQueryRequestMap = {
788
1073
  [QUERY_RECORDINGS_BY_TIME_RANGE]: RecordingsByTimeRangeArgs;
1074
+ [QUERY_MOTION_STATS_BY_TIME_RANGE]: MotionStatsByTimeRangeArgs;
789
1075
  [QUERY_PREVIEW_IMAGE]: PreviewImageArgs;
790
1076
  [QUERY_CAMERA_LATEST_FRAME]: CameraLatestFrameArgs;
791
1077
  };
792
1078
  export type NvrRecorderQueryResponseMap = {
793
1079
  [QUERY_RECORDINGS_BY_TIME_RANGE]: RecordingsResponse;
1080
+ [QUERY_MOTION_STATS_BY_TIME_RANGE]: MotionStatsResponse;
794
1081
  [QUERY_PREVIEW_IMAGE]: PreviewImageResponse;
795
1082
  [QUERY_CAMERA_LATEST_FRAME]: CameraLatestFrameResponse;
796
1083
  };
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nvrRecorderResponseSchemas = exports.nvrRecorderRequestSchemas = exports.sCameraLatestFrameResponse = exports.sCameraLatestFrameArgs = exports.QUERY_CAMERA_LATEST_FRAME = exports.sPreviewImageResponse = exports.sPreviewImageArgs = exports.QUERY_PREVIEW_IMAGE = exports.sRecordingsResponse = exports.sRecordingsByTimeRangeArgs = exports.QUERY_RECORDINGS_BY_TIME_RANGE = void 0;
3
+ exports.nvrRecorderResponseSchemas = exports.nvrRecorderRequestSchemas = exports.sCameraLatestFrameResponse = exports.sCameraLatestFrameArgs = exports.QUERY_CAMERA_LATEST_FRAME = exports.sPreviewImageResponse = exports.sPreviewImageArgs = exports.QUERY_PREVIEW_IMAGE = exports.sMotionStatsResponse = exports.sMotionStatsByTimeRangeArgs = exports.QUERY_MOTION_STATS_BY_TIME_RANGE = exports.sRecordingsResponse = exports.sRecordingsByTimeRangeArgs = exports.QUERY_RECORDINGS_BY_TIME_RANGE = void 0;
4
4
  const primitives_1 = require("../../primitives");
5
5
  const zod_1 = require("zod");
6
6
  const media_1 = require("../rest/media");
7
+ const motion_1 = require("../../motion");
7
8
  // QUERIES
8
9
  // -- Recordings by Time Range
9
10
  exports.QUERY_RECORDINGS_BY_TIME_RANGE = 'cctv:recordings-by-time-range';
@@ -14,6 +15,15 @@ exports.sRecordingsByTimeRangeArgs = zod_1.z.object({
14
15
  timeTo: zod_1.z.number(),
15
16
  });
16
17
  exports.sRecordingsResponse = zod_1.z.array(media_1.sRecordingSequence);
18
+ // -- Motion Stats by Time Range
19
+ exports.QUERY_MOTION_STATS_BY_TIME_RANGE = 'cctv:motion-stats-by-time-range';
20
+ exports.sMotionStatsByTimeRangeArgs = zod_1.z.object({
21
+ device: primitives_1.sDeviceParam,
22
+ streamId: zod_1.z.string().nonempty(),
23
+ timeFrom: zod_1.z.number(),
24
+ timeTo: zod_1.z.number(),
25
+ });
26
+ exports.sMotionStatsResponse = motion_1.sStreamMotionStats;
17
27
  // -- Preview Image
18
28
  exports.QUERY_PREVIEW_IMAGE = 'cctv:preview-image';
19
29
  exports.sPreviewImageArgs = zod_1.z.object({
@@ -34,12 +44,14 @@ exports.sCameraLatestFrameArgs = zod_1.z.object({
34
44
  exports.sCameraLatestFrameResponse = primitives_1.sFileResponse;
35
45
  exports.nvrRecorderRequestSchemas = {
36
46
  [exports.QUERY_RECORDINGS_BY_TIME_RANGE]: exports.sRecordingsByTimeRangeArgs,
47
+ [exports.QUERY_MOTION_STATS_BY_TIME_RANGE]: exports.sMotionStatsByTimeRangeArgs,
37
48
  [exports.QUERY_PREVIEW_IMAGE]: exports.sPreviewImageArgs,
38
49
  [exports.QUERY_CAMERA_LATEST_FRAME]: exports.sCameraLatestFrameArgs,
39
50
  };
40
51
  // Dictionary of response schemas by query type
41
52
  exports.nvrRecorderResponseSchemas = {
42
53
  [exports.QUERY_RECORDINGS_BY_TIME_RANGE]: exports.sRecordingsResponse,
54
+ [exports.QUERY_MOTION_STATS_BY_TIME_RANGE]: exports.sMotionStatsResponse,
43
55
  [exports.QUERY_PREVIEW_IMAGE]: exports.sPreviewImageResponse,
44
56
  [exports.QUERY_CAMERA_LATEST_FRAME]: exports.sCameraLatestFrameResponse,
45
57
  };
@@ -3,11 +3,11 @@ export declare const sCreateApiKeyRequest: z.ZodObject<{
3
3
  displayName: z.ZodString;
4
4
  }, z.core.$strip>;
5
5
  export declare const sCreateApiKeyResponse: z.ZodObject<{
6
- id: z.ZodString;
6
+ id: z.ZodUUID;
7
7
  apiKey: z.ZodString;
8
8
  }, z.core.$strip>;
9
9
  export declare const sRevokeApiKeyRequest: z.ZodObject<{
10
- id: z.ZodString;
10
+ id: z.ZodUUID;
11
11
  }, z.core.$strip>;
12
12
  export type CreateApiKeyRequest = z.infer<typeof sCreateApiKeyRequest>;
13
13
  export type CreateApiKeyResponse = z.infer<typeof sCreateApiKeyResponse>;
@@ -6,9 +6,9 @@ exports.sCreateApiKeyRequest = zod_1.z.object({
6
6
  displayName: zod_1.z.string().min(1).max(128),
7
7
  });
8
8
  exports.sCreateApiKeyResponse = zod_1.z.object({
9
- id: zod_1.z.string().uuid(),
9
+ id: zod_1.z.uuid(),
10
10
  apiKey: zod_1.z.string().min(32).max(1024),
11
11
  });
12
12
  exports.sRevokeApiKeyRequest = zod_1.z.object({
13
- id: zod_1.z.string().uuid(),
13
+ id: zod_1.z.uuid(),
14
14
  });
@@ -7,7 +7,7 @@ export declare const sAddMacroRequest: z.ZodObject<{
7
7
  items: z.ZodArray<z.ZodObject<{
8
8
  id: z.ZodNullable<z.ZodString>;
9
9
  stepId: z.ZodString;
10
- deviceId: z.ZodString;
10
+ deviceId: z.ZodUUID;
11
11
  command: z.ZodString;
12
12
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
13
  }, z.core.$strip>>;
@@ -20,7 +20,7 @@ export declare const sUpdateMacroRequest: z.ZodObject<{
20
20
  items: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
21
  id: z.ZodNullable<z.ZodString>;
22
22
  stepId: z.ZodString;
23
- deviceId: z.ZodString;
23
+ deviceId: z.ZodUUID;
24
24
  command: z.ZodString;
25
25
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
26
26
  }, z.core.$strip>>>;
@@ -30,6 +30,29 @@ export declare const sGetRecordingsResponse: z.ZodObject<{
30
30
  }, z.core.$strip>>;
31
31
  total: z.ZodNumber;
32
32
  }, z.core.$strip>;
33
+ export declare const sGetMotionStatsRequest: z.ZodObject<{
34
+ deviceId: z.ZodString;
35
+ streamId: z.ZodString;
36
+ timeFrom: z.ZodNumber;
37
+ timeTo: z.ZodNumber;
38
+ }, z.core.$strip>;
39
+ export declare const sGetMotionStatsResponse: z.ZodObject<{
40
+ streamId: z.ZodString;
41
+ from: z.ZodNumber;
42
+ to: z.ZodNumber;
43
+ bucketMs: z.ZodNumber;
44
+ baseline: z.ZodObject<{
45
+ floor: z.ZodNumber;
46
+ ceiling: z.ZodNumber;
47
+ }, z.core.$strip>;
48
+ samples: z.ZodArray<z.ZodObject<{
49
+ t: z.ZodNumber;
50
+ avg: z.ZodNumber;
51
+ max: z.ZodNumber;
52
+ rms: z.ZodNumber;
53
+ n: z.ZodNumber;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
33
56
  export declare const sGetPreviewImageRequest: z.ZodObject<{
34
57
  deviceId: z.ZodString;
35
58
  time: z.ZodNumber;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sGetLatestFrameRequest = exports.sMediaSearchQueryDto = exports.sSortOptions = exports.sGetObjectThumbnailRequest = exports.sGetObjectSnapshotRequest = exports.sGetScenePreviewClipRequest = exports.sGetPreviewImageRequest = exports.sGetRecordingsResponse = exports.sGetRecordingsRequest = exports.sRecordingSequence = exports.sCreateExportResponse = exports.sCreateExportRequest = void 0;
3
+ exports.sGetLatestFrameRequest = exports.sMediaSearchQueryDto = exports.sSortOptions = exports.sGetObjectThumbnailRequest = exports.sGetObjectSnapshotRequest = exports.sGetScenePreviewClipRequest = exports.sGetPreviewImageRequest = exports.sGetMotionStatsResponse = exports.sGetMotionStatsRequest = exports.sGetRecordingsResponse = exports.sGetRecordingsRequest = exports.sRecordingSequence = exports.sCreateExportResponse = exports.sCreateExportRequest = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const query_1 = require("./query");
6
+ const motion_1 = require("../../motion");
6
7
  exports.sCreateExportRequest = zod_1.z.object({
7
8
  name: zod_1.z.string().nonempty(),
8
9
  deviceId: zod_1.z.string().nonempty(),
@@ -26,6 +27,13 @@ exports.sGetRecordingsRequest = zod_1.z.object({
26
27
  timeTo: zod_1.z.number().nonnegative(),
27
28
  });
28
29
  exports.sGetRecordingsResponse = (0, query_1.sPaginatedQueryResponseOf)(exports.sRecordingSequence);
30
+ exports.sGetMotionStatsRequest = zod_1.z.object({
31
+ deviceId: zod_1.z.string().nonempty(),
32
+ streamId: zod_1.z.string().nonempty(),
33
+ timeFrom: zod_1.z.number().nonnegative(),
34
+ timeTo: zod_1.z.number().nonnegative(),
35
+ });
36
+ exports.sGetMotionStatsResponse = motion_1.sStreamMotionStats;
29
37
  exports.sGetPreviewImageRequest = zod_1.z.object({
30
38
  deviceId: zod_1.z.string().nonempty(),
31
39
  time: zod_1.z.number().nonnegative(),
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const sCreatePersonTypeRequest: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  displayName: z.ZodString;
5
- agreements: z.ZodArray<z.ZodString>;
5
+ agreements: z.ZodArray<z.ZodUUID>;
6
6
  accessControlUser: z.ZodBoolean;
7
7
  systemUser: z.ZodBoolean;
8
8
  securityCheck: z.ZodBoolean;
@@ -11,7 +11,7 @@ export declare const sCreatePersonTypeRequest: z.ZodObject<{
11
11
  export type CreatePersonTypeRequest = z.infer<typeof sCreatePersonTypeRequest>;
12
12
  export declare const sUpdatePersonTypeRequest: z.ZodObject<{
13
13
  displayName: z.ZodOptional<z.ZodString>;
14
- agreements: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ agreements: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
15
15
  accessControlUser: z.ZodOptional<z.ZodBoolean>;
16
16
  systemUser: z.ZodOptional<z.ZodBoolean>;
17
17
  securityCheck: z.ZodOptional<z.ZodBoolean>;
@@ -6,7 +6,7 @@ export declare const sNewTemplateRequest: z.ZodObject<{
6
6
  id: "id";
7
7
  report: "report";
8
8
  }>;
9
- templateHtmlId: z.ZodString;
9
+ templateHtmlId: z.ZodUUID;
10
10
  }, z.core.$strip>;
11
11
  export declare const sUpdateTemplateRequest: z.ZodObject<{
12
12
  name: z.ZodOptional<z.ZodString>;
@@ -14,7 +14,7 @@ export declare const sUpdateTemplateRequest: z.ZodObject<{
14
14
  id: "id";
15
15
  report: "report";
16
16
  }>>;
17
- templateHtmlId: z.ZodOptional<z.ZodString>;
17
+ templateHtmlId: z.ZodOptional<z.ZodUUID>;
18
18
  }, z.core.$strip>;
19
19
  export type NewTemplateRequest = z.infer<typeof sNewTemplateRequest>;
20
20
  export type UpdateTemplateRequest = z.infer<typeof sUpdateTemplateRequest>;
@@ -6,10 +6,10 @@ const zod_1 = require("zod");
6
6
  exports.sNewTemplateRequest = zod_1.z.object({
7
7
  name: zod_1.z.string().min(1).max(64),
8
8
  type: template_1.sTemplateTypeEnum,
9
- templateHtmlId: zod_1.z.string().uuid(),
9
+ templateHtmlId: zod_1.z.uuid(),
10
10
  });
11
11
  exports.sUpdateTemplateRequest = zod_1.z.object({
12
12
  name: zod_1.z.string().min(1).max(64).optional(),
13
13
  type: template_1.sTemplateTypeEnum.optional(),
14
- templateHtmlId: zod_1.z.string().uuid().optional(),
14
+ templateHtmlId: zod_1.z.uuid().optional(),
15
15
  });
@@ -3,11 +3,11 @@ import { WebSocketMessage } from './web-socket';
3
3
  export declare const sTrackableUpdate: z.ZodObject<{
4
4
  timestamp: z.ZodNumber;
5
5
  objectId: z.ZodString;
6
- objectName: z.ZodString;
7
- objectKind: z.ZodNullable<z.ZodString>;
6
+ objectName: z.ZodOptional<z.ZodString>;
7
+ objectKind: z.ZodOptional<z.ZodString>;
8
8
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- longitude: z.ZodNumber;
10
- latitude: z.ZodNumber;
9
+ longitude: z.ZodOptional<z.ZodNumber>;
10
+ latitude: z.ZodOptional<z.ZodNumber>;
11
11
  altitude: z.ZodOptional<z.ZodNumber>;
12
12
  speed: z.ZodOptional<z.ZodObject<{
13
13
  value: z.ZodNumber;
@@ -25,11 +25,11 @@ export declare const sTrackableUpdatePayload: z.ZodObject<{
25
25
  updates: z.ZodRecord<z.ZodString, z.ZodObject<{
26
26
  timestamp: z.ZodNumber;
27
27
  objectId: z.ZodString;
28
- objectName: z.ZodString;
29
- objectKind: z.ZodNullable<z.ZodString>;
28
+ objectName: z.ZodOptional<z.ZodString>;
29
+ objectKind: z.ZodOptional<z.ZodString>;
30
30
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
- longitude: z.ZodNumber;
32
- latitude: z.ZodNumber;
31
+ longitude: z.ZodOptional<z.ZodNumber>;
32
+ latitude: z.ZodOptional<z.ZodNumber>;
33
33
  altitude: z.ZodOptional<z.ZodNumber>;
34
34
  speed: z.ZodOptional<z.ZodObject<{
35
35
  value: z.ZodNumber;
@@ -6,11 +6,11 @@ const primitives_1 = require("../../primitives");
6
6
  exports.sTrackableUpdate = zod_1.z.object({
7
7
  timestamp: zod_1.z.number(),
8
8
  objectId: zod_1.z.string().nonempty(),
9
- objectName: zod_1.z.string().nonempty(),
10
- objectKind: primitives_1.sWorldObjectId.nullable(),
9
+ objectName: zod_1.z.string().optional(),
10
+ objectKind: primitives_1.sWorldObjectId.optional(),
11
11
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
12
- longitude: zod_1.z.number().min(-180).max(180),
13
- latitude: zod_1.z.number().min(-90).max(90),
12
+ longitude: zod_1.z.number().min(-180).max(180).optional(),
13
+ latitude: zod_1.z.number().min(-90).max(90).optional(),
14
14
  altitude: zod_1.z.number().optional(),
15
15
  speed: primitives_1.sSpeed.optional(),
16
16
  heading: zod_1.z.number().optional(),
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './objects';
5
5
  export * from './primitives';
6
6
  export * from './primitives/credential-type';
7
7
  export * from './_legacy';
8
+ export * from './motion';
package/dist/index.js CHANGED
@@ -21,3 +21,4 @@ __exportStar(require("./objects"), exports);
21
21
  __exportStar(require("./primitives"), exports);
22
22
  __exportStar(require("./primitives/credential-type"), exports);
23
23
  __exportStar(require("./_legacy"), exports);
24
+ __exportStar(require("./motion"), exports);
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ export declare const sStreamMotionStatsSample: z.ZodObject<{
3
+ t: z.ZodNumber;
4
+ avg: z.ZodNumber;
5
+ max: z.ZodNumber;
6
+ rms: z.ZodNumber;
7
+ n: z.ZodNumber;
8
+ }, z.core.$strip>;
9
+ export declare const sStreamMotionStats: z.ZodObject<{
10
+ streamId: z.ZodString;
11
+ from: z.ZodNumber;
12
+ to: z.ZodNumber;
13
+ bucketMs: z.ZodNumber;
14
+ baseline: z.ZodObject<{
15
+ floor: z.ZodNumber;
16
+ ceiling: z.ZodNumber;
17
+ }, z.core.$strip>;
18
+ samples: z.ZodArray<z.ZodObject<{
19
+ t: z.ZodNumber;
20
+ avg: z.ZodNumber;
21
+ max: z.ZodNumber;
22
+ rms: z.ZodNumber;
23
+ n: z.ZodNumber;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ export type StreamMotionStatsSample = z.infer<typeof sStreamMotionStatsSample>;
27
+ export type StreamMotionStats = z.infer<typeof sStreamMotionStats>;
package/dist/motion.js ADDED
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // {
3
+ // "streamId": "60d0d4ba-a90b-4a00-9ceb-b05838f81651-3632e728-5481-4f2f-8bb8-0e78dfff1a22",
4
+ // "from": 1786355101000,
5
+ // "to": 1786527901000,
6
+ // "bucketMs": 34560,
7
+ // "baseline": {
8
+ // "floor": 0.93,
9
+ // "ceiling": 3.04
10
+ // },
11
+ // "samples": [
12
+ // {
13
+ // "t": 1786447284480,
14
+ // "avg": 0.37579882,
15
+ // "max": 2.23,
16
+ // "rms": 0.27923077,
17
+ // "n": 169
18
+ // },
19
+ // {
20
+ // "t": 1786447319040,
21
+ // "avg": 0.8835294,
22
+ // "max": 1.84,
23
+ // "rms": 0.4920588,
24
+ // "n": 34
25
+ // }
26
+ // ]
27
+ // }
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.sStreamMotionStats = exports.sStreamMotionStatsSample = void 0;
30
+ const zod_1 = require("zod");
31
+ exports.sStreamMotionStatsSample = zod_1.z.object({
32
+ t: zod_1.z.number().int().nonnegative(),
33
+ avg: zod_1.z.number(),
34
+ max: zod_1.z.number(),
35
+ rms: zod_1.z.number(),
36
+ n: zod_1.z.number().int().nonnegative(),
37
+ });
38
+ exports.sStreamMotionStats = zod_1.z.object({
39
+ streamId: zod_1.z.string(),
40
+ from: zod_1.z.number().int().nonnegative(),
41
+ to: zod_1.z.number().int().nonnegative(),
42
+ bucketMs: zod_1.z.number().int().nonnegative(),
43
+ baseline: zod_1.z.object({
44
+ floor: zod_1.z.number(),
45
+ ceiling: zod_1.z.number(),
46
+ }),
47
+ samples: zod_1.z.array(exports.sStreamMotionStatsSample),
48
+ });
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sAgreementDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  displayName: z.ZodString;
5
5
  content: z.ZodString;
6
6
  createdOn: z.ZodString;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sAgreementDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sAgreementDto = zod_1.z.object({
6
- id: zod_1.z.string().uuid(),
6
+ id: zod_1.z.uuid(),
7
7
  displayName: zod_1.z.string().min(1).max(64),
8
8
  content: zod_1.z.string().min(1),
9
9
  createdOn: zod_1.z.string().date(),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sApiKeyDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  displayName: z.ZodString;
5
5
  prefix: z.ZodString;
6
6
  createdOn: z.ZodString;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sApiKeyDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sApiKeyDto = zod_1.z.object({
6
- id: zod_1.z.string().uuid(),
6
+ id: zod_1.z.uuid(),
7
7
  displayName: zod_1.z.string().min(1).max(128),
8
8
  prefix: zod_1.z.string().min(8).max(16),
9
9
  createdOn: zod_1.z.string().datetime(),
@@ -9,7 +9,7 @@ export declare const CustomFieldExtendsTypeEnum: z.ZodEnum<{
9
9
  person: "person";
10
10
  }>;
11
11
  export declare const sCustomFieldDto: z.ZodObject<{
12
- id: z.ZodString;
12
+ id: z.ZodUUID;
13
13
  name: z.ZodString;
14
14
  type: z.ZodEnum<{
15
15
  string: "string";
@@ -10,7 +10,7 @@ exports.CustomFieldTypeEnum = zod_1.z.enum([
10
10
  ]);
11
11
  exports.CustomFieldExtendsTypeEnum = zod_1.z.enum(['person']);
12
12
  exports.sCustomFieldDto = zod_1.z.object({
13
- id: zod_1.z.string().uuid(),
13
+ id: zod_1.z.uuid(),
14
14
  name: zod_1.z.string().min(1).max(64),
15
15
  type: exports.CustomFieldTypeEnum,
16
16
  extendsType: exports.CustomFieldExtendsTypeEnum,
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const sMacroItemDto: z.ZodObject<{
3
3
  id: z.ZodNullable<z.ZodString>;
4
4
  stepId: z.ZodString;
5
- deviceId: z.ZodString;
5
+ deviceId: z.ZodUUID;
6
6
  command: z.ZodString;
7
7
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8
8
  }, z.core.$strip>;
@@ -18,7 +18,7 @@ export declare const sMacroDto: z.ZodObject<{
18
18
  items: z.ZodArray<z.ZodObject<{
19
19
  id: z.ZodNullable<z.ZodString>;
20
20
  stepId: z.ZodString;
21
- deviceId: z.ZodString;
21
+ deviceId: z.ZodUUID;
22
22
  command: z.ZodString;
23
23
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
24
  }, z.core.$strip>>;
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  exports.sMacroItemDto = zod_1.z.object({
6
6
  id: zod_1.z.string().nullable(),
7
7
  stepId: zod_1.z.string().nonempty(),
8
- deviceId: zod_1.z.string().uuid().nonempty(),
8
+ deviceId: zod_1.z.uuid().nonempty(),
9
9
  command: zod_1.z.string().nonempty(),
10
10
  params: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
11
11
  });
@@ -4,7 +4,7 @@ export declare const sPersonTypeDto: z.ZodObject<{
4
4
  displayName: z.ZodString;
5
5
  accessControlUser: z.ZodBoolean;
6
6
  systemUser: z.ZodBoolean;
7
- agreements: z.ZodArray<z.ZodString>;
7
+ agreements: z.ZodArray<z.ZodUUID>;
8
8
  securityCheck: z.ZodBoolean;
9
9
  inOnCreation: z.ZodBoolean;
10
10
  createdOn: z.ZodString;
@@ -14,7 +14,7 @@ exports.sPersonTypeDto = zod_1.default.object({
14
14
  displayName: zod_1.default.string().min(1).max(64),
15
15
  accessControlUser: zod_1.default.boolean(),
16
16
  systemUser: zod_1.default.boolean(),
17
- agreements: zod_1.default.array(zod_1.default.string().uuid()),
17
+ agreements: zod_1.default.array(zod_1.default.uuid()),
18
18
  securityCheck: zod_1.default.boolean(),
19
19
  inOnCreation: zod_1.default.boolean(),
20
20
  createdOn: zod_1.default.string().date(),
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sRoleDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  displayName: z.ZodString;
5
5
  systemName: z.ZodString;
6
6
  description: z.ZodString;
@@ -4,7 +4,7 @@ exports.sRoleDto = void 0;
4
4
  const permissions_1 = require("../permissions");
5
5
  const zod_1 = require("zod");
6
6
  exports.sRoleDto = zod_1.z.object({
7
- id: zod_1.z.string().uuid(),
7
+ id: zod_1.z.uuid(),
8
8
  displayName: zod_1.z.string().nonempty().max(100),
9
9
  systemName: zod_1.z
10
10
  .string()
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const sSecurityLevelDto: z.ZodObject<{
3
- id: z.ZodString;
3
+ id: z.ZodUUID;
4
4
  order: z.ZodNumber;
5
5
  name: z.ZodString;
6
6
  active: z.ZodBoolean;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sSecurityLevelDto = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sSecurityLevelDto = zod_1.z.object({
6
- id: zod_1.z.string().uuid(),
6
+ id: zod_1.z.uuid(),
7
7
  order: zod_1.z.number().int().min(0),
8
8
  name: zod_1.z.string().max(64),
9
9
  active: zod_1.z.boolean(),
@@ -5,12 +5,12 @@ export declare const sTemplateTypeEnum: z.ZodEnum<{
5
5
  }>;
6
6
  export type TemplateTypeEnum = z.infer<typeof sTemplateTypeEnum>;
7
7
  export declare const sTemplateDto: z.ZodObject<{
8
- id: z.ZodString;
8
+ id: z.ZodUUID;
9
9
  name: z.ZodString;
10
10
  type: z.ZodEnum<{
11
11
  id: "id";
12
12
  report: "report";
13
13
  }>;
14
- templateHtmlId: z.ZodString;
14
+ templateHtmlId: z.ZodUUID;
15
15
  }, z.core.$strip>;
16
16
  export type TemplateDto = z.infer<typeof sTemplateDto>;
@@ -4,8 +4,8 @@ exports.sTemplateDto = exports.sTemplateTypeEnum = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sTemplateTypeEnum = zod_1.z.enum(['id', 'report']);
6
6
  exports.sTemplateDto = zod_1.z.object({
7
- id: zod_1.z.string().uuid(),
7
+ id: zod_1.z.uuid(),
8
8
  name: zod_1.z.string(),
9
9
  type: exports.sTemplateTypeEnum,
10
- templateHtmlId: zod_1.z.string().uuid(),
10
+ templateHtmlId: zod_1.z.uuid(),
11
11
  });
@@ -3,7 +3,7 @@ export declare const sConversionTypeEnum: z.ZodEnum<{
3
3
  "hex-to-decimal": "hex-to-decimal";
4
4
  }>;
5
5
  export declare const sTokenConversionDto: z.ZodObject<{
6
- id: z.ZodString;
6
+ id: z.ZodUUID;
7
7
  name: z.ZodString;
8
8
  type: z.ZodEnum<{
9
9
  "hex-to-decimal": "hex-to-decimal";
@@ -4,7 +4,7 @@ exports.sTokenConversionDto = exports.sConversionTypeEnum = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.sConversionTypeEnum = zod_1.z.enum(['hex-to-decimal']);
6
6
  exports.sTokenConversionDto = zod_1.z.object({
7
- id: zod_1.z.string().uuid(),
7
+ id: zod_1.z.uuid(),
8
8
  name: zod_1.z.string().min(1).max(64),
9
9
  type: exports.sConversionTypeEnum,
10
10
  jsonData: zod_1.z.object({}).passthrough(), // Allows any JSON object structure
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.123",
7
+ "version": "2.0.125",
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.123",
7
+ "version": "2.0.125",
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",