@awarevue/api-types 1.1.15 → 2.0.2

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 (42) hide show
  1. package/dist/access-control/person-agreement.d.ts +2 -2
  2. package/dist/access-control/person.d.ts +4 -4
  3. package/dist/agent-communication/protocol.d.ts +108 -308
  4. package/dist/agent-communication/protocol.js +5 -8
  5. package/dist/agent-communication/queries.d.ts +1312 -1045
  6. package/dist/agent-communication/queries.js +11 -109
  7. package/dist/api/media.d.ts +6 -14
  8. package/dist/api/media.js +1 -4
  9. package/dist/device/alarm.d.ts +24 -24
  10. package/dist/device/any-device.d.ts +537 -269
  11. package/dist/device/any-device.js +22 -4
  12. package/dist/device/camera.d.ts +97 -0
  13. package/dist/device/camera.js +24 -1
  14. package/dist/device/index.d.ts +3 -1
  15. package/dist/device/index.js +3 -1
  16. package/dist/device/intercom-terminal.d.ts +4 -4
  17. package/dist/device/nvr-analytics-server.d.ts +307 -0
  18. package/dist/device/nvr-analytics-server.js +73 -0
  19. package/dist/device/nvr-exporter.d.ts +892 -0
  20. package/dist/device/nvr-exporter.js +77 -0
  21. package/dist/device/nvr-recorder.d.ts +2981 -0
  22. package/dist/device/nvr-recorder.js +47 -0
  23. package/dist/device/presence-tracker.d.ts +8 -8
  24. package/dist/device-event.d.ts +43 -19
  25. package/dist/device-event.js +5 -0
  26. package/dist/device-import.d.ts +123 -51
  27. package/dist/device-relation.d.ts +7 -7
  28. package/dist/device-relation.js +12 -0
  29. package/dist/index.d.ts +0 -1
  30. package/dist/index.js +0 -1
  31. package/dist/messages/web-rtc-signaling.d.ts +10 -10
  32. package/dist/package.json +1 -1
  33. package/dist/permissions.d.ts +3 -3
  34. package/dist/permissions.js +9 -1
  35. package/dist/primitives.d.ts +596 -0
  36. package/dist/primitives.js +13 -1
  37. package/dist/user.d.ts +16 -16
  38. package/package.json +1 -1
  39. package/dist/device/recorder.d.ts +0 -12
  40. package/dist/device/recorder.js +0 -9
  41. package/dist/export.d.ts +0 -30
  42. package/dist/export.js +0 -14
@@ -0,0 +1,2981 @@
1
+ import { z } from 'zod';
2
+ export declare const NVR_RECORDER = "nvr-recorder";
3
+ export declare const sRecorderSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
+ export type RecorderSpecs = z.infer<typeof sRecorderSpecs>;
5
+ export declare const sRecorderStateDto: z.ZodObject<{
6
+ connected: z.ZodBoolean;
7
+ }, "strip", z.ZodTypeAny, {
8
+ connected: boolean;
9
+ }, {
10
+ connected: boolean;
11
+ }>;
12
+ export type RecorderStateDto = z.infer<typeof sRecorderStateDto>;
13
+ export declare const QUERY_RECORDINGS_BY_TIME_RANGE = "cctv:recordings-by-time-range";
14
+ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
15
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
16
+ name: z.ZodString;
17
+ foreignRef: z.ZodString;
18
+ provider: z.ZodString;
19
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ name: string;
22
+ foreignRef: string;
23
+ provider: string;
24
+ providerMetadata: {} & {
25
+ [k: string]: unknown;
26
+ };
27
+ }, {
28
+ name: string;
29
+ foreignRef: string;
30
+ provider: string;
31
+ providerMetadata: {} & {
32
+ [k: string]: unknown;
33
+ };
34
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
35
+ type: z.ZodLiteral<"alarm">;
36
+ }, "strip", z.ZodTypeAny, {
37
+ type: "alarm";
38
+ }, {
39
+ type: "alarm";
40
+ }>, z.ZodObject<{
41
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
42
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
43
+ ptzCapable: z.ZodBoolean;
44
+ ptzPanSpeed: z.ZodNumber;
45
+ ptzTiltSpeed: z.ZodNumber;
46
+ ptzZoomSpeed: z.ZodNumber;
47
+ panMin: z.ZodNumber;
48
+ panMax: z.ZodNumber;
49
+ tiltMin: z.ZodNumber;
50
+ tiltMax: z.ZodNumber;
51
+ zoomMin: z.ZodNumber;
52
+ zoomMax: z.ZodNumber;
53
+ recordingCapable: z.ZodBoolean;
54
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
55
+ kind: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ kind: string;
58
+ }, {
59
+ kind: string;
60
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
61
+ streams: z.ZodArray<z.ZodObject<{
62
+ id: z.ZodString;
63
+ displayName: z.ZodString;
64
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ id: string;
67
+ displayName: string;
68
+ externalPlayerUrl: string | null;
69
+ }, {
70
+ id: string;
71
+ displayName: string;
72
+ externalPlayerUrl: string | null;
73
+ }>, "many">;
74
+ defaultStreamId: z.ZodString;
75
+ } & {
76
+ type: z.ZodLiteral<"camera">;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: "camera";
79
+ streams: {
80
+ id: string;
81
+ displayName: string;
82
+ externalPlayerUrl: string | null;
83
+ }[];
84
+ lensType: "flat" | "fisheye";
85
+ mountPoint: "wall" | "ceiling" | "floor";
86
+ ptzCapable: boolean;
87
+ ptzPanSpeed: number;
88
+ ptzTiltSpeed: number;
89
+ ptzZoomSpeed: number;
90
+ panMin: number;
91
+ panMax: number;
92
+ tiltMin: number;
93
+ tiltMax: number;
94
+ zoomMin: number;
95
+ zoomMax: number;
96
+ recordingCapable: boolean;
97
+ webrtcPlaybackSource: ({
98
+ kind: string;
99
+ } & Record<string, unknown>) | null;
100
+ defaultStreamId: string;
101
+ }, {
102
+ type: "camera";
103
+ streams: {
104
+ id: string;
105
+ displayName: string;
106
+ externalPlayerUrl: string | null;
107
+ }[];
108
+ lensType: "flat" | "fisheye";
109
+ mountPoint: "wall" | "ceiling" | "floor";
110
+ ptzCapable: boolean;
111
+ ptzPanSpeed: number;
112
+ ptzTiltSpeed: number;
113
+ ptzZoomSpeed: number;
114
+ panMin: number;
115
+ panMax: number;
116
+ tiltMin: number;
117
+ tiltMax: number;
118
+ zoomMin: number;
119
+ zoomMax: number;
120
+ recordingCapable: boolean;
121
+ webrtcPlaybackSource: ({
122
+ kind: string;
123
+ } & Record<string, unknown>) | null;
124
+ defaultStreamId: string;
125
+ }>, z.ZodObject<{
126
+ canReportOpenState: z.ZodBoolean;
127
+ canReportLockState: z.ZodBoolean;
128
+ canControlLock: z.ZodBoolean;
129
+ canRelease: z.ZodBoolean;
130
+ } & {
131
+ type: z.ZodLiteral<"door">;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: "door";
134
+ canReportOpenState: boolean;
135
+ canReportLockState: boolean;
136
+ canControlLock: boolean;
137
+ canRelease: boolean;
138
+ }, {
139
+ type: "door";
140
+ canReportOpenState: boolean;
141
+ canReportLockState: boolean;
142
+ canControlLock: boolean;
143
+ canRelease: boolean;
144
+ }>, z.ZodObject<{
145
+ inputs: z.ZodArray<z.ZodString, "many">;
146
+ outputs: z.ZodArray<z.ZodString, "many">;
147
+ } & {
148
+ type: z.ZodLiteral<"io-board">;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type: "io-board";
151
+ inputs: string[];
152
+ outputs: string[];
153
+ }, {
154
+ type: "io-board";
155
+ inputs: string[];
156
+ outputs: string[];
157
+ }>, z.ZodObject<{
158
+ type: z.ZodLiteral<"camera-lift">;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: "camera-lift";
161
+ }, {
162
+ type: "camera-lift";
163
+ }>, z.ZodObject<{
164
+ type: z.ZodLiteral<"motion-sensor">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ type: "motion-sensor";
167
+ }, {
168
+ type: "motion-sensor";
169
+ }>, z.ZodObject<{
170
+ type: z.ZodLiteral<"panic-button">;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "panic-button";
173
+ }, {
174
+ type: "panic-button";
175
+ }>, z.ZodObject<{
176
+ sipUri: z.ZodString;
177
+ sipUser: z.ZodString;
178
+ sipPassword: z.ZodString;
179
+ sipRealm: z.ZodString;
180
+ remoteExtension: z.ZodString;
181
+ } & {
182
+ type: z.ZodLiteral<"intercom-terminal">;
183
+ }, "strip", z.ZodTypeAny, {
184
+ type: "intercom-terminal";
185
+ sipUri: string;
186
+ sipUser: string;
187
+ sipPassword: string;
188
+ sipRealm: string;
189
+ remoteExtension: string;
190
+ }, {
191
+ type: "intercom-terminal";
192
+ sipUri: string;
193
+ sipUser: string;
194
+ sipPassword: string;
195
+ sipRealm: string;
196
+ remoteExtension: string;
197
+ }>, z.ZodObject<{
198
+ sipWsUrl: z.ZodString;
199
+ } & {
200
+ type: z.ZodLiteral<"pbx">;
201
+ }, "strip", z.ZodTypeAny, {
202
+ type: "pbx";
203
+ sipWsUrl: string;
204
+ }, {
205
+ type: "pbx";
206
+ sipWsUrl: string;
207
+ }>, z.ZodObject<{
208
+ type: z.ZodLiteral<"server">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "server";
211
+ }, {
212
+ type: "server";
213
+ }>, z.ZodObject<{
214
+ type: z.ZodLiteral<"intercom-operator">;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "intercom-operator";
217
+ }, {
218
+ type: "intercom-operator";
219
+ }>, z.ZodObject<{
220
+ type: z.ZodLiteral<"device-gateway">;
221
+ }, "strip", z.ZodTypeAny, {
222
+ type: "device-gateway";
223
+ }, {
224
+ type: "device-gateway";
225
+ }>, z.ZodObject<{
226
+ type: z.ZodLiteral<"presence-tracker">;
227
+ }, "strip", z.ZodTypeAny, {
228
+ type: "presence-tracker";
229
+ }, {
230
+ type: "presence-tracker";
231
+ }>, z.ZodObject<{
232
+ type: z.ZodLiteral<"reader">;
233
+ }, "strip", z.ZodTypeAny, {
234
+ type: "reader";
235
+ }, {
236
+ type: "reader";
237
+ }>, z.ZodObject<{
238
+ type: z.ZodLiteral<"display">;
239
+ }, "strip", z.ZodTypeAny, {
240
+ type: "display";
241
+ }, {
242
+ type: "display";
243
+ }>, z.ZodObject<{
244
+ type: z.ZodLiteral<"nvr-recorder">;
245
+ }, "strip", z.ZodTypeAny, {
246
+ type: "nvr-recorder";
247
+ }, {
248
+ type: "nvr-recorder";
249
+ }>, z.ZodObject<{
250
+ type: z.ZodLiteral<"nvr-exporter">;
251
+ }, "strip", z.ZodTypeAny, {
252
+ type: "nvr-exporter";
253
+ }, {
254
+ type: "nvr-exporter";
255
+ }>, z.ZodObject<{
256
+ type: z.ZodLiteral<"nvr-analytics-server">;
257
+ }, "strip", z.ZodTypeAny, {
258
+ type: "nvr-analytics-server";
259
+ }, {
260
+ type: "nvr-analytics-server";
261
+ }>]>>, z.ZodObject<{
262
+ presets: z.ZodArray<z.ZodObject<{
263
+ id: z.ZodString;
264
+ name: z.ZodString;
265
+ params: z.ZodUnknown;
266
+ isDefault: z.ZodBoolean;
267
+ assignedRef: z.ZodNullable<z.ZodString>;
268
+ createdOn: z.ZodString;
269
+ lastModifiedOn: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ name: string;
272
+ id: string;
273
+ isDefault: boolean;
274
+ assignedRef: string | null;
275
+ createdOn: string;
276
+ lastModifiedOn: string;
277
+ params?: unknown;
278
+ }, {
279
+ name: string;
280
+ id: string;
281
+ isDefault: boolean;
282
+ assignedRef: string | null;
283
+ createdOn: string;
284
+ lastModifiedOn: string;
285
+ params?: unknown;
286
+ }>, "many">;
287
+ }, "strip", z.ZodTypeAny, {
288
+ presets: {
289
+ name: string;
290
+ id: string;
291
+ isDefault: boolean;
292
+ assignedRef: string | null;
293
+ createdOn: string;
294
+ lastModifiedOn: string;
295
+ params?: unknown;
296
+ }[];
297
+ }, {
298
+ presets: {
299
+ name: string;
300
+ id: string;
301
+ isDefault: boolean;
302
+ assignedRef: string | null;
303
+ createdOn: string;
304
+ lastModifiedOn: string;
305
+ params?: unknown;
306
+ }[];
307
+ }>>]>;
308
+ timeFrom: z.ZodNumber;
309
+ timeTo: z.ZodNumber;
310
+ }, "strip", z.ZodTypeAny, {
311
+ device: string | (({
312
+ name: string;
313
+ foreignRef: string;
314
+ provider: string;
315
+ providerMetadata: {} & {
316
+ [k: string]: unknown;
317
+ };
318
+ } & ({
319
+ type: "alarm";
320
+ } | {
321
+ type: "camera";
322
+ streams: {
323
+ id: string;
324
+ displayName: string;
325
+ externalPlayerUrl: string | null;
326
+ }[];
327
+ lensType: "flat" | "fisheye";
328
+ mountPoint: "wall" | "ceiling" | "floor";
329
+ ptzCapable: boolean;
330
+ ptzPanSpeed: number;
331
+ ptzTiltSpeed: number;
332
+ ptzZoomSpeed: number;
333
+ panMin: number;
334
+ panMax: number;
335
+ tiltMin: number;
336
+ tiltMax: number;
337
+ zoomMin: number;
338
+ zoomMax: number;
339
+ recordingCapable: boolean;
340
+ webrtcPlaybackSource: ({
341
+ kind: string;
342
+ } & Record<string, unknown>) | null;
343
+ defaultStreamId: string;
344
+ } | {
345
+ type: "door";
346
+ canReportOpenState: boolean;
347
+ canReportLockState: boolean;
348
+ canControlLock: boolean;
349
+ canRelease: boolean;
350
+ } | {
351
+ type: "io-board";
352
+ inputs: string[];
353
+ outputs: string[];
354
+ } | {
355
+ type: "camera-lift";
356
+ } | {
357
+ type: "motion-sensor";
358
+ } | {
359
+ type: "panic-button";
360
+ } | {
361
+ type: "intercom-terminal";
362
+ sipUri: string;
363
+ sipUser: string;
364
+ sipPassword: string;
365
+ sipRealm: string;
366
+ remoteExtension: string;
367
+ } | {
368
+ type: "pbx";
369
+ sipWsUrl: string;
370
+ } | {
371
+ type: "server";
372
+ } | {
373
+ type: "intercom-operator";
374
+ } | {
375
+ type: "device-gateway";
376
+ } | {
377
+ type: "presence-tracker";
378
+ } | {
379
+ type: "reader";
380
+ } | {
381
+ type: "display";
382
+ } | {
383
+ type: "nvr-recorder";
384
+ } | {
385
+ type: "nvr-exporter";
386
+ } | {
387
+ type: "nvr-analytics-server";
388
+ })) & {
389
+ presets: {
390
+ name: string;
391
+ id: string;
392
+ isDefault: boolean;
393
+ assignedRef: string | null;
394
+ createdOn: string;
395
+ lastModifiedOn: string;
396
+ params?: unknown;
397
+ }[];
398
+ });
399
+ timeFrom: number;
400
+ timeTo: number;
401
+ }, {
402
+ device: string | (({
403
+ name: string;
404
+ foreignRef: string;
405
+ provider: string;
406
+ providerMetadata: {} & {
407
+ [k: string]: unknown;
408
+ };
409
+ } & ({
410
+ type: "alarm";
411
+ } | {
412
+ type: "camera";
413
+ streams: {
414
+ id: string;
415
+ displayName: string;
416
+ externalPlayerUrl: string | null;
417
+ }[];
418
+ lensType: "flat" | "fisheye";
419
+ mountPoint: "wall" | "ceiling" | "floor";
420
+ ptzCapable: boolean;
421
+ ptzPanSpeed: number;
422
+ ptzTiltSpeed: number;
423
+ ptzZoomSpeed: number;
424
+ panMin: number;
425
+ panMax: number;
426
+ tiltMin: number;
427
+ tiltMax: number;
428
+ zoomMin: number;
429
+ zoomMax: number;
430
+ recordingCapable: boolean;
431
+ webrtcPlaybackSource: ({
432
+ kind: string;
433
+ } & Record<string, unknown>) | null;
434
+ defaultStreamId: string;
435
+ } | {
436
+ type: "door";
437
+ canReportOpenState: boolean;
438
+ canReportLockState: boolean;
439
+ canControlLock: boolean;
440
+ canRelease: boolean;
441
+ } | {
442
+ type: "io-board";
443
+ inputs: string[];
444
+ outputs: string[];
445
+ } | {
446
+ type: "camera-lift";
447
+ } | {
448
+ type: "motion-sensor";
449
+ } | {
450
+ type: "panic-button";
451
+ } | {
452
+ type: "intercom-terminal";
453
+ sipUri: string;
454
+ sipUser: string;
455
+ sipPassword: string;
456
+ sipRealm: string;
457
+ remoteExtension: string;
458
+ } | {
459
+ type: "pbx";
460
+ sipWsUrl: string;
461
+ } | {
462
+ type: "server";
463
+ } | {
464
+ type: "intercom-operator";
465
+ } | {
466
+ type: "device-gateway";
467
+ } | {
468
+ type: "presence-tracker";
469
+ } | {
470
+ type: "reader";
471
+ } | {
472
+ type: "display";
473
+ } | {
474
+ type: "nvr-recorder";
475
+ } | {
476
+ type: "nvr-exporter";
477
+ } | {
478
+ type: "nvr-analytics-server";
479
+ })) & {
480
+ presets: {
481
+ name: string;
482
+ id: string;
483
+ isDefault: boolean;
484
+ assignedRef: string | null;
485
+ createdOn: string;
486
+ lastModifiedOn: string;
487
+ params?: unknown;
488
+ }[];
489
+ });
490
+ timeFrom: number;
491
+ timeTo: number;
492
+ }>;
493
+ export declare const sRecordingsResponse: z.ZodArray<z.ZodObject<{
494
+ start: z.ZodNumber;
495
+ end: z.ZodNumber;
496
+ motion: z.ZodOptional<z.ZodNumber>;
497
+ objects: z.ZodOptional<z.ZodNumber>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ end: number;
500
+ start: number;
501
+ motion?: number | undefined;
502
+ objects?: number | undefined;
503
+ }, {
504
+ end: number;
505
+ start: number;
506
+ motion?: number | undefined;
507
+ objects?: number | undefined;
508
+ }>, "many">;
509
+ export type RecordingsByTimeRangeArgs = z.infer<typeof sRecordingsByTimeRangeArgs>;
510
+ export type RecordingsResponse = z.infer<typeof sRecordingsResponse>;
511
+ export declare const QUERY_PREVIEW_IMAGE = "cctv:preview-image";
512
+ export declare const sPreviewImageArgs: z.ZodObject<{
513
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
514
+ name: z.ZodString;
515
+ foreignRef: z.ZodString;
516
+ provider: z.ZodString;
517
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ name: string;
520
+ foreignRef: string;
521
+ provider: string;
522
+ providerMetadata: {} & {
523
+ [k: string]: unknown;
524
+ };
525
+ }, {
526
+ name: string;
527
+ foreignRef: string;
528
+ provider: string;
529
+ providerMetadata: {} & {
530
+ [k: string]: unknown;
531
+ };
532
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
533
+ type: z.ZodLiteral<"alarm">;
534
+ }, "strip", z.ZodTypeAny, {
535
+ type: "alarm";
536
+ }, {
537
+ type: "alarm";
538
+ }>, z.ZodObject<{
539
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
540
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
541
+ ptzCapable: z.ZodBoolean;
542
+ ptzPanSpeed: z.ZodNumber;
543
+ ptzTiltSpeed: z.ZodNumber;
544
+ ptzZoomSpeed: z.ZodNumber;
545
+ panMin: z.ZodNumber;
546
+ panMax: z.ZodNumber;
547
+ tiltMin: z.ZodNumber;
548
+ tiltMax: z.ZodNumber;
549
+ zoomMin: z.ZodNumber;
550
+ zoomMax: z.ZodNumber;
551
+ recordingCapable: z.ZodBoolean;
552
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
553
+ kind: z.ZodString;
554
+ }, "strip", z.ZodTypeAny, {
555
+ kind: string;
556
+ }, {
557
+ kind: string;
558
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
559
+ streams: z.ZodArray<z.ZodObject<{
560
+ id: z.ZodString;
561
+ displayName: z.ZodString;
562
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ id: string;
565
+ displayName: string;
566
+ externalPlayerUrl: string | null;
567
+ }, {
568
+ id: string;
569
+ displayName: string;
570
+ externalPlayerUrl: string | null;
571
+ }>, "many">;
572
+ defaultStreamId: z.ZodString;
573
+ } & {
574
+ type: z.ZodLiteral<"camera">;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: "camera";
577
+ streams: {
578
+ id: string;
579
+ displayName: string;
580
+ externalPlayerUrl: string | null;
581
+ }[];
582
+ lensType: "flat" | "fisheye";
583
+ mountPoint: "wall" | "ceiling" | "floor";
584
+ ptzCapable: boolean;
585
+ ptzPanSpeed: number;
586
+ ptzTiltSpeed: number;
587
+ ptzZoomSpeed: number;
588
+ panMin: number;
589
+ panMax: number;
590
+ tiltMin: number;
591
+ tiltMax: number;
592
+ zoomMin: number;
593
+ zoomMax: number;
594
+ recordingCapable: boolean;
595
+ webrtcPlaybackSource: ({
596
+ kind: string;
597
+ } & Record<string, unknown>) | null;
598
+ defaultStreamId: string;
599
+ }, {
600
+ type: "camera";
601
+ streams: {
602
+ id: string;
603
+ displayName: string;
604
+ externalPlayerUrl: string | null;
605
+ }[];
606
+ lensType: "flat" | "fisheye";
607
+ mountPoint: "wall" | "ceiling" | "floor";
608
+ ptzCapable: boolean;
609
+ ptzPanSpeed: number;
610
+ ptzTiltSpeed: number;
611
+ ptzZoomSpeed: number;
612
+ panMin: number;
613
+ panMax: number;
614
+ tiltMin: number;
615
+ tiltMax: number;
616
+ zoomMin: number;
617
+ zoomMax: number;
618
+ recordingCapable: boolean;
619
+ webrtcPlaybackSource: ({
620
+ kind: string;
621
+ } & Record<string, unknown>) | null;
622
+ defaultStreamId: string;
623
+ }>, z.ZodObject<{
624
+ canReportOpenState: z.ZodBoolean;
625
+ canReportLockState: z.ZodBoolean;
626
+ canControlLock: z.ZodBoolean;
627
+ canRelease: z.ZodBoolean;
628
+ } & {
629
+ type: z.ZodLiteral<"door">;
630
+ }, "strip", z.ZodTypeAny, {
631
+ type: "door";
632
+ canReportOpenState: boolean;
633
+ canReportLockState: boolean;
634
+ canControlLock: boolean;
635
+ canRelease: boolean;
636
+ }, {
637
+ type: "door";
638
+ canReportOpenState: boolean;
639
+ canReportLockState: boolean;
640
+ canControlLock: boolean;
641
+ canRelease: boolean;
642
+ }>, z.ZodObject<{
643
+ inputs: z.ZodArray<z.ZodString, "many">;
644
+ outputs: z.ZodArray<z.ZodString, "many">;
645
+ } & {
646
+ type: z.ZodLiteral<"io-board">;
647
+ }, "strip", z.ZodTypeAny, {
648
+ type: "io-board";
649
+ inputs: string[];
650
+ outputs: string[];
651
+ }, {
652
+ type: "io-board";
653
+ inputs: string[];
654
+ outputs: string[];
655
+ }>, z.ZodObject<{
656
+ type: z.ZodLiteral<"camera-lift">;
657
+ }, "strip", z.ZodTypeAny, {
658
+ type: "camera-lift";
659
+ }, {
660
+ type: "camera-lift";
661
+ }>, z.ZodObject<{
662
+ type: z.ZodLiteral<"motion-sensor">;
663
+ }, "strip", z.ZodTypeAny, {
664
+ type: "motion-sensor";
665
+ }, {
666
+ type: "motion-sensor";
667
+ }>, z.ZodObject<{
668
+ type: z.ZodLiteral<"panic-button">;
669
+ }, "strip", z.ZodTypeAny, {
670
+ type: "panic-button";
671
+ }, {
672
+ type: "panic-button";
673
+ }>, z.ZodObject<{
674
+ sipUri: z.ZodString;
675
+ sipUser: z.ZodString;
676
+ sipPassword: z.ZodString;
677
+ sipRealm: z.ZodString;
678
+ remoteExtension: z.ZodString;
679
+ } & {
680
+ type: z.ZodLiteral<"intercom-terminal">;
681
+ }, "strip", z.ZodTypeAny, {
682
+ type: "intercom-terminal";
683
+ sipUri: string;
684
+ sipUser: string;
685
+ sipPassword: string;
686
+ sipRealm: string;
687
+ remoteExtension: string;
688
+ }, {
689
+ type: "intercom-terminal";
690
+ sipUri: string;
691
+ sipUser: string;
692
+ sipPassword: string;
693
+ sipRealm: string;
694
+ remoteExtension: string;
695
+ }>, z.ZodObject<{
696
+ sipWsUrl: z.ZodString;
697
+ } & {
698
+ type: z.ZodLiteral<"pbx">;
699
+ }, "strip", z.ZodTypeAny, {
700
+ type: "pbx";
701
+ sipWsUrl: string;
702
+ }, {
703
+ type: "pbx";
704
+ sipWsUrl: string;
705
+ }>, z.ZodObject<{
706
+ type: z.ZodLiteral<"server">;
707
+ }, "strip", z.ZodTypeAny, {
708
+ type: "server";
709
+ }, {
710
+ type: "server";
711
+ }>, z.ZodObject<{
712
+ type: z.ZodLiteral<"intercom-operator">;
713
+ }, "strip", z.ZodTypeAny, {
714
+ type: "intercom-operator";
715
+ }, {
716
+ type: "intercom-operator";
717
+ }>, z.ZodObject<{
718
+ type: z.ZodLiteral<"device-gateway">;
719
+ }, "strip", z.ZodTypeAny, {
720
+ type: "device-gateway";
721
+ }, {
722
+ type: "device-gateway";
723
+ }>, z.ZodObject<{
724
+ type: z.ZodLiteral<"presence-tracker">;
725
+ }, "strip", z.ZodTypeAny, {
726
+ type: "presence-tracker";
727
+ }, {
728
+ type: "presence-tracker";
729
+ }>, z.ZodObject<{
730
+ type: z.ZodLiteral<"reader">;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "reader";
733
+ }, {
734
+ type: "reader";
735
+ }>, z.ZodObject<{
736
+ type: z.ZodLiteral<"display">;
737
+ }, "strip", z.ZodTypeAny, {
738
+ type: "display";
739
+ }, {
740
+ type: "display";
741
+ }>, z.ZodObject<{
742
+ type: z.ZodLiteral<"nvr-recorder">;
743
+ }, "strip", z.ZodTypeAny, {
744
+ type: "nvr-recorder";
745
+ }, {
746
+ type: "nvr-recorder";
747
+ }>, z.ZodObject<{
748
+ type: z.ZodLiteral<"nvr-exporter">;
749
+ }, "strip", z.ZodTypeAny, {
750
+ type: "nvr-exporter";
751
+ }, {
752
+ type: "nvr-exporter";
753
+ }>, z.ZodObject<{
754
+ type: z.ZodLiteral<"nvr-analytics-server">;
755
+ }, "strip", z.ZodTypeAny, {
756
+ type: "nvr-analytics-server";
757
+ }, {
758
+ type: "nvr-analytics-server";
759
+ }>]>>, z.ZodObject<{
760
+ presets: z.ZodArray<z.ZodObject<{
761
+ id: z.ZodString;
762
+ name: z.ZodString;
763
+ params: z.ZodUnknown;
764
+ isDefault: z.ZodBoolean;
765
+ assignedRef: z.ZodNullable<z.ZodString>;
766
+ createdOn: z.ZodString;
767
+ lastModifiedOn: z.ZodString;
768
+ }, "strip", z.ZodTypeAny, {
769
+ name: string;
770
+ id: string;
771
+ isDefault: boolean;
772
+ assignedRef: string | null;
773
+ createdOn: string;
774
+ lastModifiedOn: string;
775
+ params?: unknown;
776
+ }, {
777
+ name: string;
778
+ id: string;
779
+ isDefault: boolean;
780
+ assignedRef: string | null;
781
+ createdOn: string;
782
+ lastModifiedOn: string;
783
+ params?: unknown;
784
+ }>, "many">;
785
+ }, "strip", z.ZodTypeAny, {
786
+ presets: {
787
+ name: string;
788
+ id: string;
789
+ isDefault: boolean;
790
+ assignedRef: string | null;
791
+ createdOn: string;
792
+ lastModifiedOn: string;
793
+ params?: unknown;
794
+ }[];
795
+ }, {
796
+ presets: {
797
+ name: string;
798
+ id: string;
799
+ isDefault: boolean;
800
+ assignedRef: string | null;
801
+ createdOn: string;
802
+ lastModifiedOn: string;
803
+ params?: unknown;
804
+ }[];
805
+ }>>]>;
806
+ time: z.ZodNumber;
807
+ height: z.ZodNumber;
808
+ }, "strip", z.ZodTypeAny, {
809
+ time: number;
810
+ height: number;
811
+ device: string | (({
812
+ name: string;
813
+ foreignRef: string;
814
+ provider: string;
815
+ providerMetadata: {} & {
816
+ [k: string]: unknown;
817
+ };
818
+ } & ({
819
+ type: "alarm";
820
+ } | {
821
+ type: "camera";
822
+ streams: {
823
+ id: string;
824
+ displayName: string;
825
+ externalPlayerUrl: string | null;
826
+ }[];
827
+ lensType: "flat" | "fisheye";
828
+ mountPoint: "wall" | "ceiling" | "floor";
829
+ ptzCapable: boolean;
830
+ ptzPanSpeed: number;
831
+ ptzTiltSpeed: number;
832
+ ptzZoomSpeed: number;
833
+ panMin: number;
834
+ panMax: number;
835
+ tiltMin: number;
836
+ tiltMax: number;
837
+ zoomMin: number;
838
+ zoomMax: number;
839
+ recordingCapable: boolean;
840
+ webrtcPlaybackSource: ({
841
+ kind: string;
842
+ } & Record<string, unknown>) | null;
843
+ defaultStreamId: string;
844
+ } | {
845
+ type: "door";
846
+ canReportOpenState: boolean;
847
+ canReportLockState: boolean;
848
+ canControlLock: boolean;
849
+ canRelease: boolean;
850
+ } | {
851
+ type: "io-board";
852
+ inputs: string[];
853
+ outputs: string[];
854
+ } | {
855
+ type: "camera-lift";
856
+ } | {
857
+ type: "motion-sensor";
858
+ } | {
859
+ type: "panic-button";
860
+ } | {
861
+ type: "intercom-terminal";
862
+ sipUri: string;
863
+ sipUser: string;
864
+ sipPassword: string;
865
+ sipRealm: string;
866
+ remoteExtension: string;
867
+ } | {
868
+ type: "pbx";
869
+ sipWsUrl: string;
870
+ } | {
871
+ type: "server";
872
+ } | {
873
+ type: "intercom-operator";
874
+ } | {
875
+ type: "device-gateway";
876
+ } | {
877
+ type: "presence-tracker";
878
+ } | {
879
+ type: "reader";
880
+ } | {
881
+ type: "display";
882
+ } | {
883
+ type: "nvr-recorder";
884
+ } | {
885
+ type: "nvr-exporter";
886
+ } | {
887
+ type: "nvr-analytics-server";
888
+ })) & {
889
+ presets: {
890
+ name: string;
891
+ id: string;
892
+ isDefault: boolean;
893
+ assignedRef: string | null;
894
+ createdOn: string;
895
+ lastModifiedOn: string;
896
+ params?: unknown;
897
+ }[];
898
+ });
899
+ }, {
900
+ time: number;
901
+ height: number;
902
+ device: string | (({
903
+ name: string;
904
+ foreignRef: string;
905
+ provider: string;
906
+ providerMetadata: {} & {
907
+ [k: string]: unknown;
908
+ };
909
+ } & ({
910
+ type: "alarm";
911
+ } | {
912
+ type: "camera";
913
+ streams: {
914
+ id: string;
915
+ displayName: string;
916
+ externalPlayerUrl: string | null;
917
+ }[];
918
+ lensType: "flat" | "fisheye";
919
+ mountPoint: "wall" | "ceiling" | "floor";
920
+ ptzCapable: boolean;
921
+ ptzPanSpeed: number;
922
+ ptzTiltSpeed: number;
923
+ ptzZoomSpeed: number;
924
+ panMin: number;
925
+ panMax: number;
926
+ tiltMin: number;
927
+ tiltMax: number;
928
+ zoomMin: number;
929
+ zoomMax: number;
930
+ recordingCapable: boolean;
931
+ webrtcPlaybackSource: ({
932
+ kind: string;
933
+ } & Record<string, unknown>) | null;
934
+ defaultStreamId: string;
935
+ } | {
936
+ type: "door";
937
+ canReportOpenState: boolean;
938
+ canReportLockState: boolean;
939
+ canControlLock: boolean;
940
+ canRelease: boolean;
941
+ } | {
942
+ type: "io-board";
943
+ inputs: string[];
944
+ outputs: string[];
945
+ } | {
946
+ type: "camera-lift";
947
+ } | {
948
+ type: "motion-sensor";
949
+ } | {
950
+ type: "panic-button";
951
+ } | {
952
+ type: "intercom-terminal";
953
+ sipUri: string;
954
+ sipUser: string;
955
+ sipPassword: string;
956
+ sipRealm: string;
957
+ remoteExtension: string;
958
+ } | {
959
+ type: "pbx";
960
+ sipWsUrl: string;
961
+ } | {
962
+ type: "server";
963
+ } | {
964
+ type: "intercom-operator";
965
+ } | {
966
+ type: "device-gateway";
967
+ } | {
968
+ type: "presence-tracker";
969
+ } | {
970
+ type: "reader";
971
+ } | {
972
+ type: "display";
973
+ } | {
974
+ type: "nvr-recorder";
975
+ } | {
976
+ type: "nvr-exporter";
977
+ } | {
978
+ type: "nvr-analytics-server";
979
+ })) & {
980
+ presets: {
981
+ name: string;
982
+ id: string;
983
+ isDefault: boolean;
984
+ assignedRef: string | null;
985
+ createdOn: string;
986
+ lastModifiedOn: string;
987
+ params?: unknown;
988
+ }[];
989
+ });
990
+ }>;
991
+ export declare const sPreviewImageResponse: z.ZodNullable<z.ZodObject<{
992
+ mimeType: z.ZodString;
993
+ data: z.ZodString;
994
+ }, "strip", z.ZodTypeAny, {
995
+ data: string;
996
+ mimeType: string;
997
+ }, {
998
+ data: string;
999
+ mimeType: string;
1000
+ }>>;
1001
+ export type PreviewImageArgs = z.infer<typeof sPreviewImageArgs>;
1002
+ export type PreviewImageResponse = z.infer<typeof sPreviewImageResponse>;
1003
+ export declare const QUERY_CAMERA_LATEST_FRAME = "cctv:latest-frame";
1004
+ export declare const sCameraLatestFrameArgs: z.ZodObject<{
1005
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1006
+ name: z.ZodString;
1007
+ foreignRef: z.ZodString;
1008
+ provider: z.ZodString;
1009
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ name: string;
1012
+ foreignRef: string;
1013
+ provider: string;
1014
+ providerMetadata: {} & {
1015
+ [k: string]: unknown;
1016
+ };
1017
+ }, {
1018
+ name: string;
1019
+ foreignRef: string;
1020
+ provider: string;
1021
+ providerMetadata: {} & {
1022
+ [k: string]: unknown;
1023
+ };
1024
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1025
+ type: z.ZodLiteral<"alarm">;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type: "alarm";
1028
+ }, {
1029
+ type: "alarm";
1030
+ }>, z.ZodObject<{
1031
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
1032
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
1033
+ ptzCapable: z.ZodBoolean;
1034
+ ptzPanSpeed: z.ZodNumber;
1035
+ ptzTiltSpeed: z.ZodNumber;
1036
+ ptzZoomSpeed: z.ZodNumber;
1037
+ panMin: z.ZodNumber;
1038
+ panMax: z.ZodNumber;
1039
+ tiltMin: z.ZodNumber;
1040
+ tiltMax: z.ZodNumber;
1041
+ zoomMin: z.ZodNumber;
1042
+ zoomMax: z.ZodNumber;
1043
+ recordingCapable: z.ZodBoolean;
1044
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
1045
+ kind: z.ZodString;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ kind: string;
1048
+ }, {
1049
+ kind: string;
1050
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1051
+ streams: z.ZodArray<z.ZodObject<{
1052
+ id: z.ZodString;
1053
+ displayName: z.ZodString;
1054
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ id: string;
1057
+ displayName: string;
1058
+ externalPlayerUrl: string | null;
1059
+ }, {
1060
+ id: string;
1061
+ displayName: string;
1062
+ externalPlayerUrl: string | null;
1063
+ }>, "many">;
1064
+ defaultStreamId: z.ZodString;
1065
+ } & {
1066
+ type: z.ZodLiteral<"camera">;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ type: "camera";
1069
+ streams: {
1070
+ id: string;
1071
+ displayName: string;
1072
+ externalPlayerUrl: string | null;
1073
+ }[];
1074
+ lensType: "flat" | "fisheye";
1075
+ mountPoint: "wall" | "ceiling" | "floor";
1076
+ ptzCapable: boolean;
1077
+ ptzPanSpeed: number;
1078
+ ptzTiltSpeed: number;
1079
+ ptzZoomSpeed: number;
1080
+ panMin: number;
1081
+ panMax: number;
1082
+ tiltMin: number;
1083
+ tiltMax: number;
1084
+ zoomMin: number;
1085
+ zoomMax: number;
1086
+ recordingCapable: boolean;
1087
+ webrtcPlaybackSource: ({
1088
+ kind: string;
1089
+ } & Record<string, unknown>) | null;
1090
+ defaultStreamId: string;
1091
+ }, {
1092
+ type: "camera";
1093
+ streams: {
1094
+ id: string;
1095
+ displayName: string;
1096
+ externalPlayerUrl: string | null;
1097
+ }[];
1098
+ lensType: "flat" | "fisheye";
1099
+ mountPoint: "wall" | "ceiling" | "floor";
1100
+ ptzCapable: boolean;
1101
+ ptzPanSpeed: number;
1102
+ ptzTiltSpeed: number;
1103
+ ptzZoomSpeed: number;
1104
+ panMin: number;
1105
+ panMax: number;
1106
+ tiltMin: number;
1107
+ tiltMax: number;
1108
+ zoomMin: number;
1109
+ zoomMax: number;
1110
+ recordingCapable: boolean;
1111
+ webrtcPlaybackSource: ({
1112
+ kind: string;
1113
+ } & Record<string, unknown>) | null;
1114
+ defaultStreamId: string;
1115
+ }>, z.ZodObject<{
1116
+ canReportOpenState: z.ZodBoolean;
1117
+ canReportLockState: z.ZodBoolean;
1118
+ canControlLock: z.ZodBoolean;
1119
+ canRelease: z.ZodBoolean;
1120
+ } & {
1121
+ type: z.ZodLiteral<"door">;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ type: "door";
1124
+ canReportOpenState: boolean;
1125
+ canReportLockState: boolean;
1126
+ canControlLock: boolean;
1127
+ canRelease: boolean;
1128
+ }, {
1129
+ type: "door";
1130
+ canReportOpenState: boolean;
1131
+ canReportLockState: boolean;
1132
+ canControlLock: boolean;
1133
+ canRelease: boolean;
1134
+ }>, z.ZodObject<{
1135
+ inputs: z.ZodArray<z.ZodString, "many">;
1136
+ outputs: z.ZodArray<z.ZodString, "many">;
1137
+ } & {
1138
+ type: z.ZodLiteral<"io-board">;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ type: "io-board";
1141
+ inputs: string[];
1142
+ outputs: string[];
1143
+ }, {
1144
+ type: "io-board";
1145
+ inputs: string[];
1146
+ outputs: string[];
1147
+ }>, z.ZodObject<{
1148
+ type: z.ZodLiteral<"camera-lift">;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ type: "camera-lift";
1151
+ }, {
1152
+ type: "camera-lift";
1153
+ }>, z.ZodObject<{
1154
+ type: z.ZodLiteral<"motion-sensor">;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ type: "motion-sensor";
1157
+ }, {
1158
+ type: "motion-sensor";
1159
+ }>, z.ZodObject<{
1160
+ type: z.ZodLiteral<"panic-button">;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ type: "panic-button";
1163
+ }, {
1164
+ type: "panic-button";
1165
+ }>, z.ZodObject<{
1166
+ sipUri: z.ZodString;
1167
+ sipUser: z.ZodString;
1168
+ sipPassword: z.ZodString;
1169
+ sipRealm: z.ZodString;
1170
+ remoteExtension: z.ZodString;
1171
+ } & {
1172
+ type: z.ZodLiteral<"intercom-terminal">;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ type: "intercom-terminal";
1175
+ sipUri: string;
1176
+ sipUser: string;
1177
+ sipPassword: string;
1178
+ sipRealm: string;
1179
+ remoteExtension: string;
1180
+ }, {
1181
+ type: "intercom-terminal";
1182
+ sipUri: string;
1183
+ sipUser: string;
1184
+ sipPassword: string;
1185
+ sipRealm: string;
1186
+ remoteExtension: string;
1187
+ }>, z.ZodObject<{
1188
+ sipWsUrl: z.ZodString;
1189
+ } & {
1190
+ type: z.ZodLiteral<"pbx">;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ type: "pbx";
1193
+ sipWsUrl: string;
1194
+ }, {
1195
+ type: "pbx";
1196
+ sipWsUrl: string;
1197
+ }>, z.ZodObject<{
1198
+ type: z.ZodLiteral<"server">;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ type: "server";
1201
+ }, {
1202
+ type: "server";
1203
+ }>, z.ZodObject<{
1204
+ type: z.ZodLiteral<"intercom-operator">;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ type: "intercom-operator";
1207
+ }, {
1208
+ type: "intercom-operator";
1209
+ }>, z.ZodObject<{
1210
+ type: z.ZodLiteral<"device-gateway">;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ type: "device-gateway";
1213
+ }, {
1214
+ type: "device-gateway";
1215
+ }>, z.ZodObject<{
1216
+ type: z.ZodLiteral<"presence-tracker">;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ type: "presence-tracker";
1219
+ }, {
1220
+ type: "presence-tracker";
1221
+ }>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"reader">;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ type: "reader";
1225
+ }, {
1226
+ type: "reader";
1227
+ }>, z.ZodObject<{
1228
+ type: z.ZodLiteral<"display">;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ type: "display";
1231
+ }, {
1232
+ type: "display";
1233
+ }>, z.ZodObject<{
1234
+ type: z.ZodLiteral<"nvr-recorder">;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ type: "nvr-recorder";
1237
+ }, {
1238
+ type: "nvr-recorder";
1239
+ }>, z.ZodObject<{
1240
+ type: z.ZodLiteral<"nvr-exporter">;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ type: "nvr-exporter";
1243
+ }, {
1244
+ type: "nvr-exporter";
1245
+ }>, z.ZodObject<{
1246
+ type: z.ZodLiteral<"nvr-analytics-server">;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ type: "nvr-analytics-server";
1249
+ }, {
1250
+ type: "nvr-analytics-server";
1251
+ }>]>>, z.ZodObject<{
1252
+ presets: z.ZodArray<z.ZodObject<{
1253
+ id: z.ZodString;
1254
+ name: z.ZodString;
1255
+ params: z.ZodUnknown;
1256
+ isDefault: z.ZodBoolean;
1257
+ assignedRef: z.ZodNullable<z.ZodString>;
1258
+ createdOn: z.ZodString;
1259
+ lastModifiedOn: z.ZodString;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ name: string;
1262
+ id: string;
1263
+ isDefault: boolean;
1264
+ assignedRef: string | null;
1265
+ createdOn: string;
1266
+ lastModifiedOn: string;
1267
+ params?: unknown;
1268
+ }, {
1269
+ name: string;
1270
+ id: string;
1271
+ isDefault: boolean;
1272
+ assignedRef: string | null;
1273
+ createdOn: string;
1274
+ lastModifiedOn: string;
1275
+ params?: unknown;
1276
+ }>, "many">;
1277
+ }, "strip", z.ZodTypeAny, {
1278
+ presets: {
1279
+ name: string;
1280
+ id: string;
1281
+ isDefault: boolean;
1282
+ assignedRef: string | null;
1283
+ createdOn: string;
1284
+ lastModifiedOn: string;
1285
+ params?: unknown;
1286
+ }[];
1287
+ }, {
1288
+ presets: {
1289
+ name: string;
1290
+ id: string;
1291
+ isDefault: boolean;
1292
+ assignedRef: string | null;
1293
+ createdOn: string;
1294
+ lastModifiedOn: string;
1295
+ params?: unknown;
1296
+ }[];
1297
+ }>>]>;
1298
+ width: z.ZodNumber;
1299
+ height: z.ZodNumber;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ height: number;
1302
+ width: number;
1303
+ device: string | (({
1304
+ name: string;
1305
+ foreignRef: string;
1306
+ provider: string;
1307
+ providerMetadata: {} & {
1308
+ [k: string]: unknown;
1309
+ };
1310
+ } & ({
1311
+ type: "alarm";
1312
+ } | {
1313
+ type: "camera";
1314
+ streams: {
1315
+ id: string;
1316
+ displayName: string;
1317
+ externalPlayerUrl: string | null;
1318
+ }[];
1319
+ lensType: "flat" | "fisheye";
1320
+ mountPoint: "wall" | "ceiling" | "floor";
1321
+ ptzCapable: boolean;
1322
+ ptzPanSpeed: number;
1323
+ ptzTiltSpeed: number;
1324
+ ptzZoomSpeed: number;
1325
+ panMin: number;
1326
+ panMax: number;
1327
+ tiltMin: number;
1328
+ tiltMax: number;
1329
+ zoomMin: number;
1330
+ zoomMax: number;
1331
+ recordingCapable: boolean;
1332
+ webrtcPlaybackSource: ({
1333
+ kind: string;
1334
+ } & Record<string, unknown>) | null;
1335
+ defaultStreamId: string;
1336
+ } | {
1337
+ type: "door";
1338
+ canReportOpenState: boolean;
1339
+ canReportLockState: boolean;
1340
+ canControlLock: boolean;
1341
+ canRelease: boolean;
1342
+ } | {
1343
+ type: "io-board";
1344
+ inputs: string[];
1345
+ outputs: string[];
1346
+ } | {
1347
+ type: "camera-lift";
1348
+ } | {
1349
+ type: "motion-sensor";
1350
+ } | {
1351
+ type: "panic-button";
1352
+ } | {
1353
+ type: "intercom-terminal";
1354
+ sipUri: string;
1355
+ sipUser: string;
1356
+ sipPassword: string;
1357
+ sipRealm: string;
1358
+ remoteExtension: string;
1359
+ } | {
1360
+ type: "pbx";
1361
+ sipWsUrl: string;
1362
+ } | {
1363
+ type: "server";
1364
+ } | {
1365
+ type: "intercom-operator";
1366
+ } | {
1367
+ type: "device-gateway";
1368
+ } | {
1369
+ type: "presence-tracker";
1370
+ } | {
1371
+ type: "reader";
1372
+ } | {
1373
+ type: "display";
1374
+ } | {
1375
+ type: "nvr-recorder";
1376
+ } | {
1377
+ type: "nvr-exporter";
1378
+ } | {
1379
+ type: "nvr-analytics-server";
1380
+ })) & {
1381
+ presets: {
1382
+ name: string;
1383
+ id: string;
1384
+ isDefault: boolean;
1385
+ assignedRef: string | null;
1386
+ createdOn: string;
1387
+ lastModifiedOn: string;
1388
+ params?: unknown;
1389
+ }[];
1390
+ });
1391
+ }, {
1392
+ height: number;
1393
+ width: number;
1394
+ device: string | (({
1395
+ name: string;
1396
+ foreignRef: string;
1397
+ provider: string;
1398
+ providerMetadata: {} & {
1399
+ [k: string]: unknown;
1400
+ };
1401
+ } & ({
1402
+ type: "alarm";
1403
+ } | {
1404
+ type: "camera";
1405
+ streams: {
1406
+ id: string;
1407
+ displayName: string;
1408
+ externalPlayerUrl: string | null;
1409
+ }[];
1410
+ lensType: "flat" | "fisheye";
1411
+ mountPoint: "wall" | "ceiling" | "floor";
1412
+ ptzCapable: boolean;
1413
+ ptzPanSpeed: number;
1414
+ ptzTiltSpeed: number;
1415
+ ptzZoomSpeed: number;
1416
+ panMin: number;
1417
+ panMax: number;
1418
+ tiltMin: number;
1419
+ tiltMax: number;
1420
+ zoomMin: number;
1421
+ zoomMax: number;
1422
+ recordingCapable: boolean;
1423
+ webrtcPlaybackSource: ({
1424
+ kind: string;
1425
+ } & Record<string, unknown>) | null;
1426
+ defaultStreamId: string;
1427
+ } | {
1428
+ type: "door";
1429
+ canReportOpenState: boolean;
1430
+ canReportLockState: boolean;
1431
+ canControlLock: boolean;
1432
+ canRelease: boolean;
1433
+ } | {
1434
+ type: "io-board";
1435
+ inputs: string[];
1436
+ outputs: string[];
1437
+ } | {
1438
+ type: "camera-lift";
1439
+ } | {
1440
+ type: "motion-sensor";
1441
+ } | {
1442
+ type: "panic-button";
1443
+ } | {
1444
+ type: "intercom-terminal";
1445
+ sipUri: string;
1446
+ sipUser: string;
1447
+ sipPassword: string;
1448
+ sipRealm: string;
1449
+ remoteExtension: string;
1450
+ } | {
1451
+ type: "pbx";
1452
+ sipWsUrl: string;
1453
+ } | {
1454
+ type: "server";
1455
+ } | {
1456
+ type: "intercom-operator";
1457
+ } | {
1458
+ type: "device-gateway";
1459
+ } | {
1460
+ type: "presence-tracker";
1461
+ } | {
1462
+ type: "reader";
1463
+ } | {
1464
+ type: "display";
1465
+ } | {
1466
+ type: "nvr-recorder";
1467
+ } | {
1468
+ type: "nvr-exporter";
1469
+ } | {
1470
+ type: "nvr-analytics-server";
1471
+ })) & {
1472
+ presets: {
1473
+ name: string;
1474
+ id: string;
1475
+ isDefault: boolean;
1476
+ assignedRef: string | null;
1477
+ createdOn: string;
1478
+ lastModifiedOn: string;
1479
+ params?: unknown;
1480
+ }[];
1481
+ });
1482
+ }>;
1483
+ export declare const sCameraLatestFrameResponse: z.ZodNullable<z.ZodObject<{
1484
+ mimeType: z.ZodString;
1485
+ data: z.ZodString;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ data: string;
1488
+ mimeType: string;
1489
+ }, {
1490
+ data: string;
1491
+ mimeType: string;
1492
+ }>>;
1493
+ export type CameraLatestFrameArgs = z.infer<typeof sCameraLatestFrameArgs>;
1494
+ export type CameraLatestFrameResponse = z.infer<typeof sCameraLatestFrameResponse>;
1495
+ export declare const nvrRecorderRequestSchemas: {
1496
+ readonly "cctv:recordings-by-time-range": z.ZodObject<{
1497
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1498
+ name: z.ZodString;
1499
+ foreignRef: z.ZodString;
1500
+ provider: z.ZodString;
1501
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ name: string;
1504
+ foreignRef: string;
1505
+ provider: string;
1506
+ providerMetadata: {} & {
1507
+ [k: string]: unknown;
1508
+ };
1509
+ }, {
1510
+ name: string;
1511
+ foreignRef: string;
1512
+ provider: string;
1513
+ providerMetadata: {} & {
1514
+ [k: string]: unknown;
1515
+ };
1516
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1517
+ type: z.ZodLiteral<"alarm">;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ type: "alarm";
1520
+ }, {
1521
+ type: "alarm";
1522
+ }>, z.ZodObject<{
1523
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
1524
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
1525
+ ptzCapable: z.ZodBoolean;
1526
+ ptzPanSpeed: z.ZodNumber;
1527
+ ptzTiltSpeed: z.ZodNumber;
1528
+ ptzZoomSpeed: z.ZodNumber;
1529
+ panMin: z.ZodNumber;
1530
+ panMax: z.ZodNumber;
1531
+ tiltMin: z.ZodNumber;
1532
+ tiltMax: z.ZodNumber;
1533
+ zoomMin: z.ZodNumber;
1534
+ zoomMax: z.ZodNumber;
1535
+ recordingCapable: z.ZodBoolean;
1536
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
1537
+ kind: z.ZodString;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ kind: string;
1540
+ }, {
1541
+ kind: string;
1542
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1543
+ streams: z.ZodArray<z.ZodObject<{
1544
+ id: z.ZodString;
1545
+ displayName: z.ZodString;
1546
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ id: string;
1549
+ displayName: string;
1550
+ externalPlayerUrl: string | null;
1551
+ }, {
1552
+ id: string;
1553
+ displayName: string;
1554
+ externalPlayerUrl: string | null;
1555
+ }>, "many">;
1556
+ defaultStreamId: z.ZodString;
1557
+ } & {
1558
+ type: z.ZodLiteral<"camera">;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ type: "camera";
1561
+ streams: {
1562
+ id: string;
1563
+ displayName: string;
1564
+ externalPlayerUrl: string | null;
1565
+ }[];
1566
+ lensType: "flat" | "fisheye";
1567
+ mountPoint: "wall" | "ceiling" | "floor";
1568
+ ptzCapable: boolean;
1569
+ ptzPanSpeed: number;
1570
+ ptzTiltSpeed: number;
1571
+ ptzZoomSpeed: number;
1572
+ panMin: number;
1573
+ panMax: number;
1574
+ tiltMin: number;
1575
+ tiltMax: number;
1576
+ zoomMin: number;
1577
+ zoomMax: number;
1578
+ recordingCapable: boolean;
1579
+ webrtcPlaybackSource: ({
1580
+ kind: string;
1581
+ } & Record<string, unknown>) | null;
1582
+ defaultStreamId: string;
1583
+ }, {
1584
+ type: "camera";
1585
+ streams: {
1586
+ id: string;
1587
+ displayName: string;
1588
+ externalPlayerUrl: string | null;
1589
+ }[];
1590
+ lensType: "flat" | "fisheye";
1591
+ mountPoint: "wall" | "ceiling" | "floor";
1592
+ ptzCapable: boolean;
1593
+ ptzPanSpeed: number;
1594
+ ptzTiltSpeed: number;
1595
+ ptzZoomSpeed: number;
1596
+ panMin: number;
1597
+ panMax: number;
1598
+ tiltMin: number;
1599
+ tiltMax: number;
1600
+ zoomMin: number;
1601
+ zoomMax: number;
1602
+ recordingCapable: boolean;
1603
+ webrtcPlaybackSource: ({
1604
+ kind: string;
1605
+ } & Record<string, unknown>) | null;
1606
+ defaultStreamId: string;
1607
+ }>, z.ZodObject<{
1608
+ canReportOpenState: z.ZodBoolean;
1609
+ canReportLockState: z.ZodBoolean;
1610
+ canControlLock: z.ZodBoolean;
1611
+ canRelease: z.ZodBoolean;
1612
+ } & {
1613
+ type: z.ZodLiteral<"door">;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ type: "door";
1616
+ canReportOpenState: boolean;
1617
+ canReportLockState: boolean;
1618
+ canControlLock: boolean;
1619
+ canRelease: boolean;
1620
+ }, {
1621
+ type: "door";
1622
+ canReportOpenState: boolean;
1623
+ canReportLockState: boolean;
1624
+ canControlLock: boolean;
1625
+ canRelease: boolean;
1626
+ }>, z.ZodObject<{
1627
+ inputs: z.ZodArray<z.ZodString, "many">;
1628
+ outputs: z.ZodArray<z.ZodString, "many">;
1629
+ } & {
1630
+ type: z.ZodLiteral<"io-board">;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ type: "io-board";
1633
+ inputs: string[];
1634
+ outputs: string[];
1635
+ }, {
1636
+ type: "io-board";
1637
+ inputs: string[];
1638
+ outputs: string[];
1639
+ }>, z.ZodObject<{
1640
+ type: z.ZodLiteral<"camera-lift">;
1641
+ }, "strip", z.ZodTypeAny, {
1642
+ type: "camera-lift";
1643
+ }, {
1644
+ type: "camera-lift";
1645
+ }>, z.ZodObject<{
1646
+ type: z.ZodLiteral<"motion-sensor">;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ type: "motion-sensor";
1649
+ }, {
1650
+ type: "motion-sensor";
1651
+ }>, z.ZodObject<{
1652
+ type: z.ZodLiteral<"panic-button">;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ type: "panic-button";
1655
+ }, {
1656
+ type: "panic-button";
1657
+ }>, z.ZodObject<{
1658
+ sipUri: z.ZodString;
1659
+ sipUser: z.ZodString;
1660
+ sipPassword: z.ZodString;
1661
+ sipRealm: z.ZodString;
1662
+ remoteExtension: z.ZodString;
1663
+ } & {
1664
+ type: z.ZodLiteral<"intercom-terminal">;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ type: "intercom-terminal";
1667
+ sipUri: string;
1668
+ sipUser: string;
1669
+ sipPassword: string;
1670
+ sipRealm: string;
1671
+ remoteExtension: string;
1672
+ }, {
1673
+ type: "intercom-terminal";
1674
+ sipUri: string;
1675
+ sipUser: string;
1676
+ sipPassword: string;
1677
+ sipRealm: string;
1678
+ remoteExtension: string;
1679
+ }>, z.ZodObject<{
1680
+ sipWsUrl: z.ZodString;
1681
+ } & {
1682
+ type: z.ZodLiteral<"pbx">;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ type: "pbx";
1685
+ sipWsUrl: string;
1686
+ }, {
1687
+ type: "pbx";
1688
+ sipWsUrl: string;
1689
+ }>, z.ZodObject<{
1690
+ type: z.ZodLiteral<"server">;
1691
+ }, "strip", z.ZodTypeAny, {
1692
+ type: "server";
1693
+ }, {
1694
+ type: "server";
1695
+ }>, z.ZodObject<{
1696
+ type: z.ZodLiteral<"intercom-operator">;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ type: "intercom-operator";
1699
+ }, {
1700
+ type: "intercom-operator";
1701
+ }>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"device-gateway">;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ type: "device-gateway";
1705
+ }, {
1706
+ type: "device-gateway";
1707
+ }>, z.ZodObject<{
1708
+ type: z.ZodLiteral<"presence-tracker">;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ type: "presence-tracker";
1711
+ }, {
1712
+ type: "presence-tracker";
1713
+ }>, z.ZodObject<{
1714
+ type: z.ZodLiteral<"reader">;
1715
+ }, "strip", z.ZodTypeAny, {
1716
+ type: "reader";
1717
+ }, {
1718
+ type: "reader";
1719
+ }>, z.ZodObject<{
1720
+ type: z.ZodLiteral<"display">;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ type: "display";
1723
+ }, {
1724
+ type: "display";
1725
+ }>, z.ZodObject<{
1726
+ type: z.ZodLiteral<"nvr-recorder">;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ type: "nvr-recorder";
1729
+ }, {
1730
+ type: "nvr-recorder";
1731
+ }>, z.ZodObject<{
1732
+ type: z.ZodLiteral<"nvr-exporter">;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ type: "nvr-exporter";
1735
+ }, {
1736
+ type: "nvr-exporter";
1737
+ }>, z.ZodObject<{
1738
+ type: z.ZodLiteral<"nvr-analytics-server">;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ type: "nvr-analytics-server";
1741
+ }, {
1742
+ type: "nvr-analytics-server";
1743
+ }>]>>, z.ZodObject<{
1744
+ presets: z.ZodArray<z.ZodObject<{
1745
+ id: z.ZodString;
1746
+ name: z.ZodString;
1747
+ params: z.ZodUnknown;
1748
+ isDefault: z.ZodBoolean;
1749
+ assignedRef: z.ZodNullable<z.ZodString>;
1750
+ createdOn: z.ZodString;
1751
+ lastModifiedOn: z.ZodString;
1752
+ }, "strip", z.ZodTypeAny, {
1753
+ name: string;
1754
+ id: string;
1755
+ isDefault: boolean;
1756
+ assignedRef: string | null;
1757
+ createdOn: string;
1758
+ lastModifiedOn: string;
1759
+ params?: unknown;
1760
+ }, {
1761
+ name: string;
1762
+ id: string;
1763
+ isDefault: boolean;
1764
+ assignedRef: string | null;
1765
+ createdOn: string;
1766
+ lastModifiedOn: string;
1767
+ params?: unknown;
1768
+ }>, "many">;
1769
+ }, "strip", z.ZodTypeAny, {
1770
+ presets: {
1771
+ name: string;
1772
+ id: string;
1773
+ isDefault: boolean;
1774
+ assignedRef: string | null;
1775
+ createdOn: string;
1776
+ lastModifiedOn: string;
1777
+ params?: unknown;
1778
+ }[];
1779
+ }, {
1780
+ presets: {
1781
+ name: string;
1782
+ id: string;
1783
+ isDefault: boolean;
1784
+ assignedRef: string | null;
1785
+ createdOn: string;
1786
+ lastModifiedOn: string;
1787
+ params?: unknown;
1788
+ }[];
1789
+ }>>]>;
1790
+ timeFrom: z.ZodNumber;
1791
+ timeTo: z.ZodNumber;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ device: string | (({
1794
+ name: string;
1795
+ foreignRef: string;
1796
+ provider: string;
1797
+ providerMetadata: {} & {
1798
+ [k: string]: unknown;
1799
+ };
1800
+ } & ({
1801
+ type: "alarm";
1802
+ } | {
1803
+ type: "camera";
1804
+ streams: {
1805
+ id: string;
1806
+ displayName: string;
1807
+ externalPlayerUrl: string | null;
1808
+ }[];
1809
+ lensType: "flat" | "fisheye";
1810
+ mountPoint: "wall" | "ceiling" | "floor";
1811
+ ptzCapable: boolean;
1812
+ ptzPanSpeed: number;
1813
+ ptzTiltSpeed: number;
1814
+ ptzZoomSpeed: number;
1815
+ panMin: number;
1816
+ panMax: number;
1817
+ tiltMin: number;
1818
+ tiltMax: number;
1819
+ zoomMin: number;
1820
+ zoomMax: number;
1821
+ recordingCapable: boolean;
1822
+ webrtcPlaybackSource: ({
1823
+ kind: string;
1824
+ } & Record<string, unknown>) | null;
1825
+ defaultStreamId: string;
1826
+ } | {
1827
+ type: "door";
1828
+ canReportOpenState: boolean;
1829
+ canReportLockState: boolean;
1830
+ canControlLock: boolean;
1831
+ canRelease: boolean;
1832
+ } | {
1833
+ type: "io-board";
1834
+ inputs: string[];
1835
+ outputs: string[];
1836
+ } | {
1837
+ type: "camera-lift";
1838
+ } | {
1839
+ type: "motion-sensor";
1840
+ } | {
1841
+ type: "panic-button";
1842
+ } | {
1843
+ type: "intercom-terminal";
1844
+ sipUri: string;
1845
+ sipUser: string;
1846
+ sipPassword: string;
1847
+ sipRealm: string;
1848
+ remoteExtension: string;
1849
+ } | {
1850
+ type: "pbx";
1851
+ sipWsUrl: string;
1852
+ } | {
1853
+ type: "server";
1854
+ } | {
1855
+ type: "intercom-operator";
1856
+ } | {
1857
+ type: "device-gateway";
1858
+ } | {
1859
+ type: "presence-tracker";
1860
+ } | {
1861
+ type: "reader";
1862
+ } | {
1863
+ type: "display";
1864
+ } | {
1865
+ type: "nvr-recorder";
1866
+ } | {
1867
+ type: "nvr-exporter";
1868
+ } | {
1869
+ type: "nvr-analytics-server";
1870
+ })) & {
1871
+ presets: {
1872
+ name: string;
1873
+ id: string;
1874
+ isDefault: boolean;
1875
+ assignedRef: string | null;
1876
+ createdOn: string;
1877
+ lastModifiedOn: string;
1878
+ params?: unknown;
1879
+ }[];
1880
+ });
1881
+ timeFrom: number;
1882
+ timeTo: number;
1883
+ }, {
1884
+ device: string | (({
1885
+ name: string;
1886
+ foreignRef: string;
1887
+ provider: string;
1888
+ providerMetadata: {} & {
1889
+ [k: string]: unknown;
1890
+ };
1891
+ } & ({
1892
+ type: "alarm";
1893
+ } | {
1894
+ type: "camera";
1895
+ streams: {
1896
+ id: string;
1897
+ displayName: string;
1898
+ externalPlayerUrl: string | null;
1899
+ }[];
1900
+ lensType: "flat" | "fisheye";
1901
+ mountPoint: "wall" | "ceiling" | "floor";
1902
+ ptzCapable: boolean;
1903
+ ptzPanSpeed: number;
1904
+ ptzTiltSpeed: number;
1905
+ ptzZoomSpeed: number;
1906
+ panMin: number;
1907
+ panMax: number;
1908
+ tiltMin: number;
1909
+ tiltMax: number;
1910
+ zoomMin: number;
1911
+ zoomMax: number;
1912
+ recordingCapable: boolean;
1913
+ webrtcPlaybackSource: ({
1914
+ kind: string;
1915
+ } & Record<string, unknown>) | null;
1916
+ defaultStreamId: string;
1917
+ } | {
1918
+ type: "door";
1919
+ canReportOpenState: boolean;
1920
+ canReportLockState: boolean;
1921
+ canControlLock: boolean;
1922
+ canRelease: boolean;
1923
+ } | {
1924
+ type: "io-board";
1925
+ inputs: string[];
1926
+ outputs: string[];
1927
+ } | {
1928
+ type: "camera-lift";
1929
+ } | {
1930
+ type: "motion-sensor";
1931
+ } | {
1932
+ type: "panic-button";
1933
+ } | {
1934
+ type: "intercom-terminal";
1935
+ sipUri: string;
1936
+ sipUser: string;
1937
+ sipPassword: string;
1938
+ sipRealm: string;
1939
+ remoteExtension: string;
1940
+ } | {
1941
+ type: "pbx";
1942
+ sipWsUrl: string;
1943
+ } | {
1944
+ type: "server";
1945
+ } | {
1946
+ type: "intercom-operator";
1947
+ } | {
1948
+ type: "device-gateway";
1949
+ } | {
1950
+ type: "presence-tracker";
1951
+ } | {
1952
+ type: "reader";
1953
+ } | {
1954
+ type: "display";
1955
+ } | {
1956
+ type: "nvr-recorder";
1957
+ } | {
1958
+ type: "nvr-exporter";
1959
+ } | {
1960
+ type: "nvr-analytics-server";
1961
+ })) & {
1962
+ presets: {
1963
+ name: string;
1964
+ id: string;
1965
+ isDefault: boolean;
1966
+ assignedRef: string | null;
1967
+ createdOn: string;
1968
+ lastModifiedOn: string;
1969
+ params?: unknown;
1970
+ }[];
1971
+ });
1972
+ timeFrom: number;
1973
+ timeTo: number;
1974
+ }>;
1975
+ readonly "cctv:preview-image": z.ZodObject<{
1976
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1977
+ name: z.ZodString;
1978
+ foreignRef: z.ZodString;
1979
+ provider: z.ZodString;
1980
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
1981
+ }, "strip", z.ZodTypeAny, {
1982
+ name: string;
1983
+ foreignRef: string;
1984
+ provider: string;
1985
+ providerMetadata: {} & {
1986
+ [k: string]: unknown;
1987
+ };
1988
+ }, {
1989
+ name: string;
1990
+ foreignRef: string;
1991
+ provider: string;
1992
+ providerMetadata: {} & {
1993
+ [k: string]: unknown;
1994
+ };
1995
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1996
+ type: z.ZodLiteral<"alarm">;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ type: "alarm";
1999
+ }, {
2000
+ type: "alarm";
2001
+ }>, z.ZodObject<{
2002
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
2003
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
2004
+ ptzCapable: z.ZodBoolean;
2005
+ ptzPanSpeed: z.ZodNumber;
2006
+ ptzTiltSpeed: z.ZodNumber;
2007
+ ptzZoomSpeed: z.ZodNumber;
2008
+ panMin: z.ZodNumber;
2009
+ panMax: z.ZodNumber;
2010
+ tiltMin: z.ZodNumber;
2011
+ tiltMax: z.ZodNumber;
2012
+ zoomMin: z.ZodNumber;
2013
+ zoomMax: z.ZodNumber;
2014
+ recordingCapable: z.ZodBoolean;
2015
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
2016
+ kind: z.ZodString;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ kind: string;
2019
+ }, {
2020
+ kind: string;
2021
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2022
+ streams: z.ZodArray<z.ZodObject<{
2023
+ id: z.ZodString;
2024
+ displayName: z.ZodString;
2025
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
2026
+ }, "strip", z.ZodTypeAny, {
2027
+ id: string;
2028
+ displayName: string;
2029
+ externalPlayerUrl: string | null;
2030
+ }, {
2031
+ id: string;
2032
+ displayName: string;
2033
+ externalPlayerUrl: string | null;
2034
+ }>, "many">;
2035
+ defaultStreamId: z.ZodString;
2036
+ } & {
2037
+ type: z.ZodLiteral<"camera">;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ type: "camera";
2040
+ streams: {
2041
+ id: string;
2042
+ displayName: string;
2043
+ externalPlayerUrl: string | null;
2044
+ }[];
2045
+ lensType: "flat" | "fisheye";
2046
+ mountPoint: "wall" | "ceiling" | "floor";
2047
+ ptzCapable: boolean;
2048
+ ptzPanSpeed: number;
2049
+ ptzTiltSpeed: number;
2050
+ ptzZoomSpeed: number;
2051
+ panMin: number;
2052
+ panMax: number;
2053
+ tiltMin: number;
2054
+ tiltMax: number;
2055
+ zoomMin: number;
2056
+ zoomMax: number;
2057
+ recordingCapable: boolean;
2058
+ webrtcPlaybackSource: ({
2059
+ kind: string;
2060
+ } & Record<string, unknown>) | null;
2061
+ defaultStreamId: string;
2062
+ }, {
2063
+ type: "camera";
2064
+ streams: {
2065
+ id: string;
2066
+ displayName: string;
2067
+ externalPlayerUrl: string | null;
2068
+ }[];
2069
+ lensType: "flat" | "fisheye";
2070
+ mountPoint: "wall" | "ceiling" | "floor";
2071
+ ptzCapable: boolean;
2072
+ ptzPanSpeed: number;
2073
+ ptzTiltSpeed: number;
2074
+ ptzZoomSpeed: number;
2075
+ panMin: number;
2076
+ panMax: number;
2077
+ tiltMin: number;
2078
+ tiltMax: number;
2079
+ zoomMin: number;
2080
+ zoomMax: number;
2081
+ recordingCapable: boolean;
2082
+ webrtcPlaybackSource: ({
2083
+ kind: string;
2084
+ } & Record<string, unknown>) | null;
2085
+ defaultStreamId: string;
2086
+ }>, z.ZodObject<{
2087
+ canReportOpenState: z.ZodBoolean;
2088
+ canReportLockState: z.ZodBoolean;
2089
+ canControlLock: z.ZodBoolean;
2090
+ canRelease: z.ZodBoolean;
2091
+ } & {
2092
+ type: z.ZodLiteral<"door">;
2093
+ }, "strip", z.ZodTypeAny, {
2094
+ type: "door";
2095
+ canReportOpenState: boolean;
2096
+ canReportLockState: boolean;
2097
+ canControlLock: boolean;
2098
+ canRelease: boolean;
2099
+ }, {
2100
+ type: "door";
2101
+ canReportOpenState: boolean;
2102
+ canReportLockState: boolean;
2103
+ canControlLock: boolean;
2104
+ canRelease: boolean;
2105
+ }>, z.ZodObject<{
2106
+ inputs: z.ZodArray<z.ZodString, "many">;
2107
+ outputs: z.ZodArray<z.ZodString, "many">;
2108
+ } & {
2109
+ type: z.ZodLiteral<"io-board">;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ type: "io-board";
2112
+ inputs: string[];
2113
+ outputs: string[];
2114
+ }, {
2115
+ type: "io-board";
2116
+ inputs: string[];
2117
+ outputs: string[];
2118
+ }>, z.ZodObject<{
2119
+ type: z.ZodLiteral<"camera-lift">;
2120
+ }, "strip", z.ZodTypeAny, {
2121
+ type: "camera-lift";
2122
+ }, {
2123
+ type: "camera-lift";
2124
+ }>, z.ZodObject<{
2125
+ type: z.ZodLiteral<"motion-sensor">;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ type: "motion-sensor";
2128
+ }, {
2129
+ type: "motion-sensor";
2130
+ }>, z.ZodObject<{
2131
+ type: z.ZodLiteral<"panic-button">;
2132
+ }, "strip", z.ZodTypeAny, {
2133
+ type: "panic-button";
2134
+ }, {
2135
+ type: "panic-button";
2136
+ }>, z.ZodObject<{
2137
+ sipUri: z.ZodString;
2138
+ sipUser: z.ZodString;
2139
+ sipPassword: z.ZodString;
2140
+ sipRealm: z.ZodString;
2141
+ remoteExtension: z.ZodString;
2142
+ } & {
2143
+ type: z.ZodLiteral<"intercom-terminal">;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ type: "intercom-terminal";
2146
+ sipUri: string;
2147
+ sipUser: string;
2148
+ sipPassword: string;
2149
+ sipRealm: string;
2150
+ remoteExtension: string;
2151
+ }, {
2152
+ type: "intercom-terminal";
2153
+ sipUri: string;
2154
+ sipUser: string;
2155
+ sipPassword: string;
2156
+ sipRealm: string;
2157
+ remoteExtension: string;
2158
+ }>, z.ZodObject<{
2159
+ sipWsUrl: z.ZodString;
2160
+ } & {
2161
+ type: z.ZodLiteral<"pbx">;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ type: "pbx";
2164
+ sipWsUrl: string;
2165
+ }, {
2166
+ type: "pbx";
2167
+ sipWsUrl: string;
2168
+ }>, z.ZodObject<{
2169
+ type: z.ZodLiteral<"server">;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ type: "server";
2172
+ }, {
2173
+ type: "server";
2174
+ }>, z.ZodObject<{
2175
+ type: z.ZodLiteral<"intercom-operator">;
2176
+ }, "strip", z.ZodTypeAny, {
2177
+ type: "intercom-operator";
2178
+ }, {
2179
+ type: "intercom-operator";
2180
+ }>, z.ZodObject<{
2181
+ type: z.ZodLiteral<"device-gateway">;
2182
+ }, "strip", z.ZodTypeAny, {
2183
+ type: "device-gateway";
2184
+ }, {
2185
+ type: "device-gateway";
2186
+ }>, z.ZodObject<{
2187
+ type: z.ZodLiteral<"presence-tracker">;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ type: "presence-tracker";
2190
+ }, {
2191
+ type: "presence-tracker";
2192
+ }>, z.ZodObject<{
2193
+ type: z.ZodLiteral<"reader">;
2194
+ }, "strip", z.ZodTypeAny, {
2195
+ type: "reader";
2196
+ }, {
2197
+ type: "reader";
2198
+ }>, z.ZodObject<{
2199
+ type: z.ZodLiteral<"display">;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ type: "display";
2202
+ }, {
2203
+ type: "display";
2204
+ }>, z.ZodObject<{
2205
+ type: z.ZodLiteral<"nvr-recorder">;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ type: "nvr-recorder";
2208
+ }, {
2209
+ type: "nvr-recorder";
2210
+ }>, z.ZodObject<{
2211
+ type: z.ZodLiteral<"nvr-exporter">;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ type: "nvr-exporter";
2214
+ }, {
2215
+ type: "nvr-exporter";
2216
+ }>, z.ZodObject<{
2217
+ type: z.ZodLiteral<"nvr-analytics-server">;
2218
+ }, "strip", z.ZodTypeAny, {
2219
+ type: "nvr-analytics-server";
2220
+ }, {
2221
+ type: "nvr-analytics-server";
2222
+ }>]>>, z.ZodObject<{
2223
+ presets: z.ZodArray<z.ZodObject<{
2224
+ id: z.ZodString;
2225
+ name: z.ZodString;
2226
+ params: z.ZodUnknown;
2227
+ isDefault: z.ZodBoolean;
2228
+ assignedRef: z.ZodNullable<z.ZodString>;
2229
+ createdOn: z.ZodString;
2230
+ lastModifiedOn: z.ZodString;
2231
+ }, "strip", z.ZodTypeAny, {
2232
+ name: string;
2233
+ id: string;
2234
+ isDefault: boolean;
2235
+ assignedRef: string | null;
2236
+ createdOn: string;
2237
+ lastModifiedOn: string;
2238
+ params?: unknown;
2239
+ }, {
2240
+ name: string;
2241
+ id: string;
2242
+ isDefault: boolean;
2243
+ assignedRef: string | null;
2244
+ createdOn: string;
2245
+ lastModifiedOn: string;
2246
+ params?: unknown;
2247
+ }>, "many">;
2248
+ }, "strip", z.ZodTypeAny, {
2249
+ presets: {
2250
+ name: string;
2251
+ id: string;
2252
+ isDefault: boolean;
2253
+ assignedRef: string | null;
2254
+ createdOn: string;
2255
+ lastModifiedOn: string;
2256
+ params?: unknown;
2257
+ }[];
2258
+ }, {
2259
+ presets: {
2260
+ name: string;
2261
+ id: string;
2262
+ isDefault: boolean;
2263
+ assignedRef: string | null;
2264
+ createdOn: string;
2265
+ lastModifiedOn: string;
2266
+ params?: unknown;
2267
+ }[];
2268
+ }>>]>;
2269
+ time: z.ZodNumber;
2270
+ height: z.ZodNumber;
2271
+ }, "strip", z.ZodTypeAny, {
2272
+ time: number;
2273
+ height: number;
2274
+ device: string | (({
2275
+ name: string;
2276
+ foreignRef: string;
2277
+ provider: string;
2278
+ providerMetadata: {} & {
2279
+ [k: string]: unknown;
2280
+ };
2281
+ } & ({
2282
+ type: "alarm";
2283
+ } | {
2284
+ type: "camera";
2285
+ streams: {
2286
+ id: string;
2287
+ displayName: string;
2288
+ externalPlayerUrl: string | null;
2289
+ }[];
2290
+ lensType: "flat" | "fisheye";
2291
+ mountPoint: "wall" | "ceiling" | "floor";
2292
+ ptzCapable: boolean;
2293
+ ptzPanSpeed: number;
2294
+ ptzTiltSpeed: number;
2295
+ ptzZoomSpeed: number;
2296
+ panMin: number;
2297
+ panMax: number;
2298
+ tiltMin: number;
2299
+ tiltMax: number;
2300
+ zoomMin: number;
2301
+ zoomMax: number;
2302
+ recordingCapable: boolean;
2303
+ webrtcPlaybackSource: ({
2304
+ kind: string;
2305
+ } & Record<string, unknown>) | null;
2306
+ defaultStreamId: string;
2307
+ } | {
2308
+ type: "door";
2309
+ canReportOpenState: boolean;
2310
+ canReportLockState: boolean;
2311
+ canControlLock: boolean;
2312
+ canRelease: boolean;
2313
+ } | {
2314
+ type: "io-board";
2315
+ inputs: string[];
2316
+ outputs: string[];
2317
+ } | {
2318
+ type: "camera-lift";
2319
+ } | {
2320
+ type: "motion-sensor";
2321
+ } | {
2322
+ type: "panic-button";
2323
+ } | {
2324
+ type: "intercom-terminal";
2325
+ sipUri: string;
2326
+ sipUser: string;
2327
+ sipPassword: string;
2328
+ sipRealm: string;
2329
+ remoteExtension: string;
2330
+ } | {
2331
+ type: "pbx";
2332
+ sipWsUrl: string;
2333
+ } | {
2334
+ type: "server";
2335
+ } | {
2336
+ type: "intercom-operator";
2337
+ } | {
2338
+ type: "device-gateway";
2339
+ } | {
2340
+ type: "presence-tracker";
2341
+ } | {
2342
+ type: "reader";
2343
+ } | {
2344
+ type: "display";
2345
+ } | {
2346
+ type: "nvr-recorder";
2347
+ } | {
2348
+ type: "nvr-exporter";
2349
+ } | {
2350
+ type: "nvr-analytics-server";
2351
+ })) & {
2352
+ presets: {
2353
+ name: string;
2354
+ id: string;
2355
+ isDefault: boolean;
2356
+ assignedRef: string | null;
2357
+ createdOn: string;
2358
+ lastModifiedOn: string;
2359
+ params?: unknown;
2360
+ }[];
2361
+ });
2362
+ }, {
2363
+ time: number;
2364
+ height: number;
2365
+ device: string | (({
2366
+ name: string;
2367
+ foreignRef: string;
2368
+ provider: string;
2369
+ providerMetadata: {} & {
2370
+ [k: string]: unknown;
2371
+ };
2372
+ } & ({
2373
+ type: "alarm";
2374
+ } | {
2375
+ type: "camera";
2376
+ streams: {
2377
+ id: string;
2378
+ displayName: string;
2379
+ externalPlayerUrl: string | null;
2380
+ }[];
2381
+ lensType: "flat" | "fisheye";
2382
+ mountPoint: "wall" | "ceiling" | "floor";
2383
+ ptzCapable: boolean;
2384
+ ptzPanSpeed: number;
2385
+ ptzTiltSpeed: number;
2386
+ ptzZoomSpeed: number;
2387
+ panMin: number;
2388
+ panMax: number;
2389
+ tiltMin: number;
2390
+ tiltMax: number;
2391
+ zoomMin: number;
2392
+ zoomMax: number;
2393
+ recordingCapable: boolean;
2394
+ webrtcPlaybackSource: ({
2395
+ kind: string;
2396
+ } & Record<string, unknown>) | null;
2397
+ defaultStreamId: string;
2398
+ } | {
2399
+ type: "door";
2400
+ canReportOpenState: boolean;
2401
+ canReportLockState: boolean;
2402
+ canControlLock: boolean;
2403
+ canRelease: boolean;
2404
+ } | {
2405
+ type: "io-board";
2406
+ inputs: string[];
2407
+ outputs: string[];
2408
+ } | {
2409
+ type: "camera-lift";
2410
+ } | {
2411
+ type: "motion-sensor";
2412
+ } | {
2413
+ type: "panic-button";
2414
+ } | {
2415
+ type: "intercom-terminal";
2416
+ sipUri: string;
2417
+ sipUser: string;
2418
+ sipPassword: string;
2419
+ sipRealm: string;
2420
+ remoteExtension: string;
2421
+ } | {
2422
+ type: "pbx";
2423
+ sipWsUrl: string;
2424
+ } | {
2425
+ type: "server";
2426
+ } | {
2427
+ type: "intercom-operator";
2428
+ } | {
2429
+ type: "device-gateway";
2430
+ } | {
2431
+ type: "presence-tracker";
2432
+ } | {
2433
+ type: "reader";
2434
+ } | {
2435
+ type: "display";
2436
+ } | {
2437
+ type: "nvr-recorder";
2438
+ } | {
2439
+ type: "nvr-exporter";
2440
+ } | {
2441
+ type: "nvr-analytics-server";
2442
+ })) & {
2443
+ presets: {
2444
+ name: string;
2445
+ id: string;
2446
+ isDefault: boolean;
2447
+ assignedRef: string | null;
2448
+ createdOn: string;
2449
+ lastModifiedOn: string;
2450
+ params?: unknown;
2451
+ }[];
2452
+ });
2453
+ }>;
2454
+ readonly "cctv:latest-frame": z.ZodObject<{
2455
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
2456
+ name: z.ZodString;
2457
+ foreignRef: z.ZodString;
2458
+ provider: z.ZodString;
2459
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ name: string;
2462
+ foreignRef: string;
2463
+ provider: string;
2464
+ providerMetadata: {} & {
2465
+ [k: string]: unknown;
2466
+ };
2467
+ }, {
2468
+ name: string;
2469
+ foreignRef: string;
2470
+ provider: string;
2471
+ providerMetadata: {} & {
2472
+ [k: string]: unknown;
2473
+ };
2474
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2475
+ type: z.ZodLiteral<"alarm">;
2476
+ }, "strip", z.ZodTypeAny, {
2477
+ type: "alarm";
2478
+ }, {
2479
+ type: "alarm";
2480
+ }>, z.ZodObject<{
2481
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
2482
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
2483
+ ptzCapable: z.ZodBoolean;
2484
+ ptzPanSpeed: z.ZodNumber;
2485
+ ptzTiltSpeed: z.ZodNumber;
2486
+ ptzZoomSpeed: z.ZodNumber;
2487
+ panMin: z.ZodNumber;
2488
+ panMax: z.ZodNumber;
2489
+ tiltMin: z.ZodNumber;
2490
+ tiltMax: z.ZodNumber;
2491
+ zoomMin: z.ZodNumber;
2492
+ zoomMax: z.ZodNumber;
2493
+ recordingCapable: z.ZodBoolean;
2494
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
2495
+ kind: z.ZodString;
2496
+ }, "strip", z.ZodTypeAny, {
2497
+ kind: string;
2498
+ }, {
2499
+ kind: string;
2500
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2501
+ streams: z.ZodArray<z.ZodObject<{
2502
+ id: z.ZodString;
2503
+ displayName: z.ZodString;
2504
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
2505
+ }, "strip", z.ZodTypeAny, {
2506
+ id: string;
2507
+ displayName: string;
2508
+ externalPlayerUrl: string | null;
2509
+ }, {
2510
+ id: string;
2511
+ displayName: string;
2512
+ externalPlayerUrl: string | null;
2513
+ }>, "many">;
2514
+ defaultStreamId: z.ZodString;
2515
+ } & {
2516
+ type: z.ZodLiteral<"camera">;
2517
+ }, "strip", z.ZodTypeAny, {
2518
+ type: "camera";
2519
+ streams: {
2520
+ id: string;
2521
+ displayName: string;
2522
+ externalPlayerUrl: string | null;
2523
+ }[];
2524
+ lensType: "flat" | "fisheye";
2525
+ mountPoint: "wall" | "ceiling" | "floor";
2526
+ ptzCapable: boolean;
2527
+ ptzPanSpeed: number;
2528
+ ptzTiltSpeed: number;
2529
+ ptzZoomSpeed: number;
2530
+ panMin: number;
2531
+ panMax: number;
2532
+ tiltMin: number;
2533
+ tiltMax: number;
2534
+ zoomMin: number;
2535
+ zoomMax: number;
2536
+ recordingCapable: boolean;
2537
+ webrtcPlaybackSource: ({
2538
+ kind: string;
2539
+ } & Record<string, unknown>) | null;
2540
+ defaultStreamId: string;
2541
+ }, {
2542
+ type: "camera";
2543
+ streams: {
2544
+ id: string;
2545
+ displayName: string;
2546
+ externalPlayerUrl: string | null;
2547
+ }[];
2548
+ lensType: "flat" | "fisheye";
2549
+ mountPoint: "wall" | "ceiling" | "floor";
2550
+ ptzCapable: boolean;
2551
+ ptzPanSpeed: number;
2552
+ ptzTiltSpeed: number;
2553
+ ptzZoomSpeed: number;
2554
+ panMin: number;
2555
+ panMax: number;
2556
+ tiltMin: number;
2557
+ tiltMax: number;
2558
+ zoomMin: number;
2559
+ zoomMax: number;
2560
+ recordingCapable: boolean;
2561
+ webrtcPlaybackSource: ({
2562
+ kind: string;
2563
+ } & Record<string, unknown>) | null;
2564
+ defaultStreamId: string;
2565
+ }>, z.ZodObject<{
2566
+ canReportOpenState: z.ZodBoolean;
2567
+ canReportLockState: z.ZodBoolean;
2568
+ canControlLock: z.ZodBoolean;
2569
+ canRelease: z.ZodBoolean;
2570
+ } & {
2571
+ type: z.ZodLiteral<"door">;
2572
+ }, "strip", z.ZodTypeAny, {
2573
+ type: "door";
2574
+ canReportOpenState: boolean;
2575
+ canReportLockState: boolean;
2576
+ canControlLock: boolean;
2577
+ canRelease: boolean;
2578
+ }, {
2579
+ type: "door";
2580
+ canReportOpenState: boolean;
2581
+ canReportLockState: boolean;
2582
+ canControlLock: boolean;
2583
+ canRelease: boolean;
2584
+ }>, z.ZodObject<{
2585
+ inputs: z.ZodArray<z.ZodString, "many">;
2586
+ outputs: z.ZodArray<z.ZodString, "many">;
2587
+ } & {
2588
+ type: z.ZodLiteral<"io-board">;
2589
+ }, "strip", z.ZodTypeAny, {
2590
+ type: "io-board";
2591
+ inputs: string[];
2592
+ outputs: string[];
2593
+ }, {
2594
+ type: "io-board";
2595
+ inputs: string[];
2596
+ outputs: string[];
2597
+ }>, z.ZodObject<{
2598
+ type: z.ZodLiteral<"camera-lift">;
2599
+ }, "strip", z.ZodTypeAny, {
2600
+ type: "camera-lift";
2601
+ }, {
2602
+ type: "camera-lift";
2603
+ }>, z.ZodObject<{
2604
+ type: z.ZodLiteral<"motion-sensor">;
2605
+ }, "strip", z.ZodTypeAny, {
2606
+ type: "motion-sensor";
2607
+ }, {
2608
+ type: "motion-sensor";
2609
+ }>, z.ZodObject<{
2610
+ type: z.ZodLiteral<"panic-button">;
2611
+ }, "strip", z.ZodTypeAny, {
2612
+ type: "panic-button";
2613
+ }, {
2614
+ type: "panic-button";
2615
+ }>, z.ZodObject<{
2616
+ sipUri: z.ZodString;
2617
+ sipUser: z.ZodString;
2618
+ sipPassword: z.ZodString;
2619
+ sipRealm: z.ZodString;
2620
+ remoteExtension: z.ZodString;
2621
+ } & {
2622
+ type: z.ZodLiteral<"intercom-terminal">;
2623
+ }, "strip", z.ZodTypeAny, {
2624
+ type: "intercom-terminal";
2625
+ sipUri: string;
2626
+ sipUser: string;
2627
+ sipPassword: string;
2628
+ sipRealm: string;
2629
+ remoteExtension: string;
2630
+ }, {
2631
+ type: "intercom-terminal";
2632
+ sipUri: string;
2633
+ sipUser: string;
2634
+ sipPassword: string;
2635
+ sipRealm: string;
2636
+ remoteExtension: string;
2637
+ }>, z.ZodObject<{
2638
+ sipWsUrl: z.ZodString;
2639
+ } & {
2640
+ type: z.ZodLiteral<"pbx">;
2641
+ }, "strip", z.ZodTypeAny, {
2642
+ type: "pbx";
2643
+ sipWsUrl: string;
2644
+ }, {
2645
+ type: "pbx";
2646
+ sipWsUrl: string;
2647
+ }>, z.ZodObject<{
2648
+ type: z.ZodLiteral<"server">;
2649
+ }, "strip", z.ZodTypeAny, {
2650
+ type: "server";
2651
+ }, {
2652
+ type: "server";
2653
+ }>, z.ZodObject<{
2654
+ type: z.ZodLiteral<"intercom-operator">;
2655
+ }, "strip", z.ZodTypeAny, {
2656
+ type: "intercom-operator";
2657
+ }, {
2658
+ type: "intercom-operator";
2659
+ }>, z.ZodObject<{
2660
+ type: z.ZodLiteral<"device-gateway">;
2661
+ }, "strip", z.ZodTypeAny, {
2662
+ type: "device-gateway";
2663
+ }, {
2664
+ type: "device-gateway";
2665
+ }>, z.ZodObject<{
2666
+ type: z.ZodLiteral<"presence-tracker">;
2667
+ }, "strip", z.ZodTypeAny, {
2668
+ type: "presence-tracker";
2669
+ }, {
2670
+ type: "presence-tracker";
2671
+ }>, z.ZodObject<{
2672
+ type: z.ZodLiteral<"reader">;
2673
+ }, "strip", z.ZodTypeAny, {
2674
+ type: "reader";
2675
+ }, {
2676
+ type: "reader";
2677
+ }>, z.ZodObject<{
2678
+ type: z.ZodLiteral<"display">;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ type: "display";
2681
+ }, {
2682
+ type: "display";
2683
+ }>, z.ZodObject<{
2684
+ type: z.ZodLiteral<"nvr-recorder">;
2685
+ }, "strip", z.ZodTypeAny, {
2686
+ type: "nvr-recorder";
2687
+ }, {
2688
+ type: "nvr-recorder";
2689
+ }>, z.ZodObject<{
2690
+ type: z.ZodLiteral<"nvr-exporter">;
2691
+ }, "strip", z.ZodTypeAny, {
2692
+ type: "nvr-exporter";
2693
+ }, {
2694
+ type: "nvr-exporter";
2695
+ }>, z.ZodObject<{
2696
+ type: z.ZodLiteral<"nvr-analytics-server">;
2697
+ }, "strip", z.ZodTypeAny, {
2698
+ type: "nvr-analytics-server";
2699
+ }, {
2700
+ type: "nvr-analytics-server";
2701
+ }>]>>, z.ZodObject<{
2702
+ presets: z.ZodArray<z.ZodObject<{
2703
+ id: z.ZodString;
2704
+ name: z.ZodString;
2705
+ params: z.ZodUnknown;
2706
+ isDefault: z.ZodBoolean;
2707
+ assignedRef: z.ZodNullable<z.ZodString>;
2708
+ createdOn: z.ZodString;
2709
+ lastModifiedOn: z.ZodString;
2710
+ }, "strip", z.ZodTypeAny, {
2711
+ name: string;
2712
+ id: string;
2713
+ isDefault: boolean;
2714
+ assignedRef: string | null;
2715
+ createdOn: string;
2716
+ lastModifiedOn: string;
2717
+ params?: unknown;
2718
+ }, {
2719
+ name: string;
2720
+ id: string;
2721
+ isDefault: boolean;
2722
+ assignedRef: string | null;
2723
+ createdOn: string;
2724
+ lastModifiedOn: string;
2725
+ params?: unknown;
2726
+ }>, "many">;
2727
+ }, "strip", z.ZodTypeAny, {
2728
+ presets: {
2729
+ name: string;
2730
+ id: string;
2731
+ isDefault: boolean;
2732
+ assignedRef: string | null;
2733
+ createdOn: string;
2734
+ lastModifiedOn: string;
2735
+ params?: unknown;
2736
+ }[];
2737
+ }, {
2738
+ presets: {
2739
+ name: string;
2740
+ id: string;
2741
+ isDefault: boolean;
2742
+ assignedRef: string | null;
2743
+ createdOn: string;
2744
+ lastModifiedOn: string;
2745
+ params?: unknown;
2746
+ }[];
2747
+ }>>]>;
2748
+ width: z.ZodNumber;
2749
+ height: z.ZodNumber;
2750
+ }, "strip", z.ZodTypeAny, {
2751
+ height: number;
2752
+ width: number;
2753
+ device: string | (({
2754
+ name: string;
2755
+ foreignRef: string;
2756
+ provider: string;
2757
+ providerMetadata: {} & {
2758
+ [k: string]: unknown;
2759
+ };
2760
+ } & ({
2761
+ type: "alarm";
2762
+ } | {
2763
+ type: "camera";
2764
+ streams: {
2765
+ id: string;
2766
+ displayName: string;
2767
+ externalPlayerUrl: string | null;
2768
+ }[];
2769
+ lensType: "flat" | "fisheye";
2770
+ mountPoint: "wall" | "ceiling" | "floor";
2771
+ ptzCapable: boolean;
2772
+ ptzPanSpeed: number;
2773
+ ptzTiltSpeed: number;
2774
+ ptzZoomSpeed: number;
2775
+ panMin: number;
2776
+ panMax: number;
2777
+ tiltMin: number;
2778
+ tiltMax: number;
2779
+ zoomMin: number;
2780
+ zoomMax: number;
2781
+ recordingCapable: boolean;
2782
+ webrtcPlaybackSource: ({
2783
+ kind: string;
2784
+ } & Record<string, unknown>) | null;
2785
+ defaultStreamId: string;
2786
+ } | {
2787
+ type: "door";
2788
+ canReportOpenState: boolean;
2789
+ canReportLockState: boolean;
2790
+ canControlLock: boolean;
2791
+ canRelease: boolean;
2792
+ } | {
2793
+ type: "io-board";
2794
+ inputs: string[];
2795
+ outputs: string[];
2796
+ } | {
2797
+ type: "camera-lift";
2798
+ } | {
2799
+ type: "motion-sensor";
2800
+ } | {
2801
+ type: "panic-button";
2802
+ } | {
2803
+ type: "intercom-terminal";
2804
+ sipUri: string;
2805
+ sipUser: string;
2806
+ sipPassword: string;
2807
+ sipRealm: string;
2808
+ remoteExtension: string;
2809
+ } | {
2810
+ type: "pbx";
2811
+ sipWsUrl: string;
2812
+ } | {
2813
+ type: "server";
2814
+ } | {
2815
+ type: "intercom-operator";
2816
+ } | {
2817
+ type: "device-gateway";
2818
+ } | {
2819
+ type: "presence-tracker";
2820
+ } | {
2821
+ type: "reader";
2822
+ } | {
2823
+ type: "display";
2824
+ } | {
2825
+ type: "nvr-recorder";
2826
+ } | {
2827
+ type: "nvr-exporter";
2828
+ } | {
2829
+ type: "nvr-analytics-server";
2830
+ })) & {
2831
+ presets: {
2832
+ name: string;
2833
+ id: string;
2834
+ isDefault: boolean;
2835
+ assignedRef: string | null;
2836
+ createdOn: string;
2837
+ lastModifiedOn: string;
2838
+ params?: unknown;
2839
+ }[];
2840
+ });
2841
+ }, {
2842
+ height: number;
2843
+ width: number;
2844
+ device: string | (({
2845
+ name: string;
2846
+ foreignRef: string;
2847
+ provider: string;
2848
+ providerMetadata: {} & {
2849
+ [k: string]: unknown;
2850
+ };
2851
+ } & ({
2852
+ type: "alarm";
2853
+ } | {
2854
+ type: "camera";
2855
+ streams: {
2856
+ id: string;
2857
+ displayName: string;
2858
+ externalPlayerUrl: string | null;
2859
+ }[];
2860
+ lensType: "flat" | "fisheye";
2861
+ mountPoint: "wall" | "ceiling" | "floor";
2862
+ ptzCapable: boolean;
2863
+ ptzPanSpeed: number;
2864
+ ptzTiltSpeed: number;
2865
+ ptzZoomSpeed: number;
2866
+ panMin: number;
2867
+ panMax: number;
2868
+ tiltMin: number;
2869
+ tiltMax: number;
2870
+ zoomMin: number;
2871
+ zoomMax: number;
2872
+ recordingCapable: boolean;
2873
+ webrtcPlaybackSource: ({
2874
+ kind: string;
2875
+ } & Record<string, unknown>) | null;
2876
+ defaultStreamId: string;
2877
+ } | {
2878
+ type: "door";
2879
+ canReportOpenState: boolean;
2880
+ canReportLockState: boolean;
2881
+ canControlLock: boolean;
2882
+ canRelease: boolean;
2883
+ } | {
2884
+ type: "io-board";
2885
+ inputs: string[];
2886
+ outputs: string[];
2887
+ } | {
2888
+ type: "camera-lift";
2889
+ } | {
2890
+ type: "motion-sensor";
2891
+ } | {
2892
+ type: "panic-button";
2893
+ } | {
2894
+ type: "intercom-terminal";
2895
+ sipUri: string;
2896
+ sipUser: string;
2897
+ sipPassword: string;
2898
+ sipRealm: string;
2899
+ remoteExtension: string;
2900
+ } | {
2901
+ type: "pbx";
2902
+ sipWsUrl: string;
2903
+ } | {
2904
+ type: "server";
2905
+ } | {
2906
+ type: "intercom-operator";
2907
+ } | {
2908
+ type: "device-gateway";
2909
+ } | {
2910
+ type: "presence-tracker";
2911
+ } | {
2912
+ type: "reader";
2913
+ } | {
2914
+ type: "display";
2915
+ } | {
2916
+ type: "nvr-recorder";
2917
+ } | {
2918
+ type: "nvr-exporter";
2919
+ } | {
2920
+ type: "nvr-analytics-server";
2921
+ })) & {
2922
+ presets: {
2923
+ name: string;
2924
+ id: string;
2925
+ isDefault: boolean;
2926
+ assignedRef: string | null;
2927
+ createdOn: string;
2928
+ lastModifiedOn: string;
2929
+ params?: unknown;
2930
+ }[];
2931
+ });
2932
+ }>;
2933
+ };
2934
+ export declare const nvrRecorderResponseSchemas: {
2935
+ readonly "cctv:recordings-by-time-range": z.ZodArray<z.ZodObject<{
2936
+ start: z.ZodNumber;
2937
+ end: z.ZodNumber;
2938
+ motion: z.ZodOptional<z.ZodNumber>;
2939
+ objects: z.ZodOptional<z.ZodNumber>;
2940
+ }, "strip", z.ZodTypeAny, {
2941
+ end: number;
2942
+ start: number;
2943
+ motion?: number | undefined;
2944
+ objects?: number | undefined;
2945
+ }, {
2946
+ end: number;
2947
+ start: number;
2948
+ motion?: number | undefined;
2949
+ objects?: number | undefined;
2950
+ }>, "many">;
2951
+ readonly "cctv:preview-image": z.ZodNullable<z.ZodObject<{
2952
+ mimeType: z.ZodString;
2953
+ data: z.ZodString;
2954
+ }, "strip", z.ZodTypeAny, {
2955
+ data: string;
2956
+ mimeType: string;
2957
+ }, {
2958
+ data: string;
2959
+ mimeType: string;
2960
+ }>>;
2961
+ readonly "cctv:latest-frame": z.ZodNullable<z.ZodObject<{
2962
+ mimeType: z.ZodString;
2963
+ data: z.ZodString;
2964
+ }, "strip", z.ZodTypeAny, {
2965
+ data: string;
2966
+ mimeType: string;
2967
+ }, {
2968
+ data: string;
2969
+ mimeType: string;
2970
+ }>>;
2971
+ };
2972
+ export type NvrRecorderQueryRequestMap = {
2973
+ [QUERY_RECORDINGS_BY_TIME_RANGE]: RecordingsByTimeRangeArgs;
2974
+ [QUERY_PREVIEW_IMAGE]: PreviewImageArgs;
2975
+ [QUERY_CAMERA_LATEST_FRAME]: CameraLatestFrameArgs;
2976
+ };
2977
+ export type NvrRecorderQueryResponseMap = {
2978
+ [QUERY_RECORDINGS_BY_TIME_RANGE]: RecordingsResponse;
2979
+ [QUERY_PREVIEW_IMAGE]: PreviewImageResponse;
2980
+ [QUERY_CAMERA_LATEST_FRAME]: CameraLatestFrameResponse;
2981
+ };