@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,892 @@
1
+ import { z } from 'zod';
2
+ export declare const NVR_EXPORTER = "nvr-exporter";
3
+ export declare const sExporterSpecs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4
+ export type ExporterSpecs = z.infer<typeof sExporterSpecs>;
5
+ export declare const sExporterStateDto: z.ZodObject<{
6
+ connected: z.ZodBoolean;
7
+ exportsInProgress: z.ZodArray<z.ZodString, "many">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ connected: boolean;
10
+ exportsInProgress: string[];
11
+ }, {
12
+ connected: boolean;
13
+ exportsInProgress: string[];
14
+ }>;
15
+ export type ExporterStateDto = z.infer<typeof sExporterStateDto>;
16
+ export declare const sStartExportCommand: z.ZodObject<{
17
+ command: z.ZodLiteral<"nvr-exporter.start-export">;
18
+ params: z.ZodObject<{
19
+ requestId: z.ZodString;
20
+ device: z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
21
+ name: z.ZodString;
22
+ foreignRef: z.ZodString;
23
+ provider: z.ZodString;
24
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ name: string;
27
+ foreignRef: string;
28
+ provider: string;
29
+ providerMetadata: {} & {
30
+ [k: string]: unknown;
31
+ };
32
+ }, {
33
+ name: string;
34
+ foreignRef: string;
35
+ provider: string;
36
+ providerMetadata: {} & {
37
+ [k: string]: unknown;
38
+ };
39
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
40
+ type: z.ZodLiteral<"alarm">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "alarm";
43
+ }, {
44
+ type: "alarm";
45
+ }>, z.ZodObject<{
46
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
47
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
48
+ ptzCapable: z.ZodBoolean;
49
+ ptzPanSpeed: z.ZodNumber;
50
+ ptzTiltSpeed: z.ZodNumber;
51
+ ptzZoomSpeed: z.ZodNumber;
52
+ panMin: z.ZodNumber;
53
+ panMax: z.ZodNumber;
54
+ tiltMin: z.ZodNumber;
55
+ tiltMax: z.ZodNumber;
56
+ zoomMin: z.ZodNumber;
57
+ zoomMax: z.ZodNumber;
58
+ recordingCapable: z.ZodBoolean;
59
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
60
+ kind: z.ZodString;
61
+ }, "strip", z.ZodTypeAny, {
62
+ kind: string;
63
+ }, {
64
+ kind: string;
65
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
66
+ streams: z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ displayName: z.ZodString;
69
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ id: string;
72
+ displayName: string;
73
+ externalPlayerUrl: string | null;
74
+ }, {
75
+ id: string;
76
+ displayName: string;
77
+ externalPlayerUrl: string | null;
78
+ }>, "many">;
79
+ defaultStreamId: z.ZodString;
80
+ } & {
81
+ type: z.ZodLiteral<"camera">;
82
+ }, "strip", z.ZodTypeAny, {
83
+ type: "camera";
84
+ streams: {
85
+ id: string;
86
+ displayName: string;
87
+ externalPlayerUrl: string | null;
88
+ }[];
89
+ lensType: "flat" | "fisheye";
90
+ mountPoint: "wall" | "ceiling" | "floor";
91
+ ptzCapable: boolean;
92
+ ptzPanSpeed: number;
93
+ ptzTiltSpeed: number;
94
+ ptzZoomSpeed: number;
95
+ panMin: number;
96
+ panMax: number;
97
+ tiltMin: number;
98
+ tiltMax: number;
99
+ zoomMin: number;
100
+ zoomMax: number;
101
+ recordingCapable: boolean;
102
+ webrtcPlaybackSource: ({
103
+ kind: string;
104
+ } & Record<string, unknown>) | null;
105
+ defaultStreamId: string;
106
+ }, {
107
+ type: "camera";
108
+ streams: {
109
+ id: string;
110
+ displayName: string;
111
+ externalPlayerUrl: string | null;
112
+ }[];
113
+ lensType: "flat" | "fisheye";
114
+ mountPoint: "wall" | "ceiling" | "floor";
115
+ ptzCapable: boolean;
116
+ ptzPanSpeed: number;
117
+ ptzTiltSpeed: number;
118
+ ptzZoomSpeed: number;
119
+ panMin: number;
120
+ panMax: number;
121
+ tiltMin: number;
122
+ tiltMax: number;
123
+ zoomMin: number;
124
+ zoomMax: number;
125
+ recordingCapable: boolean;
126
+ webrtcPlaybackSource: ({
127
+ kind: string;
128
+ } & Record<string, unknown>) | null;
129
+ defaultStreamId: string;
130
+ }>, z.ZodObject<{
131
+ canReportOpenState: z.ZodBoolean;
132
+ canReportLockState: z.ZodBoolean;
133
+ canControlLock: z.ZodBoolean;
134
+ canRelease: z.ZodBoolean;
135
+ } & {
136
+ type: z.ZodLiteral<"door">;
137
+ }, "strip", z.ZodTypeAny, {
138
+ type: "door";
139
+ canReportOpenState: boolean;
140
+ canReportLockState: boolean;
141
+ canControlLock: boolean;
142
+ canRelease: boolean;
143
+ }, {
144
+ type: "door";
145
+ canReportOpenState: boolean;
146
+ canReportLockState: boolean;
147
+ canControlLock: boolean;
148
+ canRelease: boolean;
149
+ }>, z.ZodObject<{
150
+ inputs: z.ZodArray<z.ZodString, "many">;
151
+ outputs: z.ZodArray<z.ZodString, "many">;
152
+ } & {
153
+ type: z.ZodLiteral<"io-board">;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type: "io-board";
156
+ inputs: string[];
157
+ outputs: string[];
158
+ }, {
159
+ type: "io-board";
160
+ inputs: string[];
161
+ outputs: string[];
162
+ }>, z.ZodObject<{
163
+ type: z.ZodLiteral<"camera-lift">;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: "camera-lift";
166
+ }, {
167
+ type: "camera-lift";
168
+ }>, z.ZodObject<{
169
+ type: z.ZodLiteral<"motion-sensor">;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type: "motion-sensor";
172
+ }, {
173
+ type: "motion-sensor";
174
+ }>, z.ZodObject<{
175
+ type: z.ZodLiteral<"panic-button">;
176
+ }, "strip", z.ZodTypeAny, {
177
+ type: "panic-button";
178
+ }, {
179
+ type: "panic-button";
180
+ }>, z.ZodObject<{
181
+ sipUri: z.ZodString;
182
+ sipUser: z.ZodString;
183
+ sipPassword: z.ZodString;
184
+ sipRealm: z.ZodString;
185
+ remoteExtension: z.ZodString;
186
+ } & {
187
+ type: z.ZodLiteral<"intercom-terminal">;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type: "intercom-terminal";
190
+ sipUri: string;
191
+ sipUser: string;
192
+ sipPassword: string;
193
+ sipRealm: string;
194
+ remoteExtension: string;
195
+ }, {
196
+ type: "intercom-terminal";
197
+ sipUri: string;
198
+ sipUser: string;
199
+ sipPassword: string;
200
+ sipRealm: string;
201
+ remoteExtension: string;
202
+ }>, z.ZodObject<{
203
+ sipWsUrl: z.ZodString;
204
+ } & {
205
+ type: z.ZodLiteral<"pbx">;
206
+ }, "strip", z.ZodTypeAny, {
207
+ type: "pbx";
208
+ sipWsUrl: string;
209
+ }, {
210
+ type: "pbx";
211
+ sipWsUrl: string;
212
+ }>, z.ZodObject<{
213
+ type: z.ZodLiteral<"server">;
214
+ }, "strip", z.ZodTypeAny, {
215
+ type: "server";
216
+ }, {
217
+ type: "server";
218
+ }>, z.ZodObject<{
219
+ type: z.ZodLiteral<"intercom-operator">;
220
+ }, "strip", z.ZodTypeAny, {
221
+ type: "intercom-operator";
222
+ }, {
223
+ type: "intercom-operator";
224
+ }>, z.ZodObject<{
225
+ type: z.ZodLiteral<"device-gateway">;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "device-gateway";
228
+ }, {
229
+ type: "device-gateway";
230
+ }>, z.ZodObject<{
231
+ type: z.ZodLiteral<"presence-tracker">;
232
+ }, "strip", z.ZodTypeAny, {
233
+ type: "presence-tracker";
234
+ }, {
235
+ type: "presence-tracker";
236
+ }>, z.ZodObject<{
237
+ type: z.ZodLiteral<"reader">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "reader";
240
+ }, {
241
+ type: "reader";
242
+ }>, z.ZodObject<{
243
+ type: z.ZodLiteral<"display">;
244
+ }, "strip", z.ZodTypeAny, {
245
+ type: "display";
246
+ }, {
247
+ type: "display";
248
+ }>, z.ZodObject<{
249
+ type: z.ZodLiteral<"nvr-recorder">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ type: "nvr-recorder";
252
+ }, {
253
+ type: "nvr-recorder";
254
+ }>, z.ZodObject<{
255
+ type: z.ZodLiteral<"nvr-exporter">;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: "nvr-exporter";
258
+ }, {
259
+ type: "nvr-exporter";
260
+ }>, z.ZodObject<{
261
+ type: z.ZodLiteral<"nvr-analytics-server">;
262
+ }, "strip", z.ZodTypeAny, {
263
+ type: "nvr-analytics-server";
264
+ }, {
265
+ type: "nvr-analytics-server";
266
+ }>]>>, z.ZodObject<{
267
+ presets: z.ZodArray<z.ZodObject<{
268
+ id: z.ZodString;
269
+ name: z.ZodString;
270
+ params: z.ZodUnknown;
271
+ isDefault: z.ZodBoolean;
272
+ assignedRef: z.ZodNullable<z.ZodString>;
273
+ createdOn: z.ZodString;
274
+ lastModifiedOn: z.ZodString;
275
+ }, "strip", z.ZodTypeAny, {
276
+ name: string;
277
+ id: string;
278
+ isDefault: boolean;
279
+ assignedRef: string | null;
280
+ createdOn: string;
281
+ lastModifiedOn: string;
282
+ params?: unknown;
283
+ }, {
284
+ name: string;
285
+ id: string;
286
+ isDefault: boolean;
287
+ assignedRef: string | null;
288
+ createdOn: string;
289
+ lastModifiedOn: string;
290
+ params?: unknown;
291
+ }>, "many">;
292
+ }, "strip", z.ZodTypeAny, {
293
+ presets: {
294
+ name: string;
295
+ id: string;
296
+ isDefault: boolean;
297
+ assignedRef: string | null;
298
+ createdOn: string;
299
+ lastModifiedOn: string;
300
+ params?: unknown;
301
+ }[];
302
+ }, {
303
+ presets: {
304
+ name: string;
305
+ id: string;
306
+ isDefault: boolean;
307
+ assignedRef: string | null;
308
+ createdOn: string;
309
+ lastModifiedOn: string;
310
+ params?: unknown;
311
+ }[];
312
+ }>>]>;
313
+ timeFrom: z.ZodNumber;
314
+ timeTo: z.ZodNumber;
315
+ name: z.ZodString;
316
+ }, "strip", z.ZodTypeAny, {
317
+ name: string;
318
+ requestId: string;
319
+ device: string | (({
320
+ name: string;
321
+ foreignRef: string;
322
+ provider: string;
323
+ providerMetadata: {} & {
324
+ [k: string]: unknown;
325
+ };
326
+ } & ({
327
+ type: "alarm";
328
+ } | {
329
+ type: "camera";
330
+ streams: {
331
+ id: string;
332
+ displayName: string;
333
+ externalPlayerUrl: string | null;
334
+ }[];
335
+ lensType: "flat" | "fisheye";
336
+ mountPoint: "wall" | "ceiling" | "floor";
337
+ ptzCapable: boolean;
338
+ ptzPanSpeed: number;
339
+ ptzTiltSpeed: number;
340
+ ptzZoomSpeed: number;
341
+ panMin: number;
342
+ panMax: number;
343
+ tiltMin: number;
344
+ tiltMax: number;
345
+ zoomMin: number;
346
+ zoomMax: number;
347
+ recordingCapable: boolean;
348
+ webrtcPlaybackSource: ({
349
+ kind: string;
350
+ } & Record<string, unknown>) | null;
351
+ defaultStreamId: string;
352
+ } | {
353
+ type: "door";
354
+ canReportOpenState: boolean;
355
+ canReportLockState: boolean;
356
+ canControlLock: boolean;
357
+ canRelease: boolean;
358
+ } | {
359
+ type: "io-board";
360
+ inputs: string[];
361
+ outputs: string[];
362
+ } | {
363
+ type: "camera-lift";
364
+ } | {
365
+ type: "motion-sensor";
366
+ } | {
367
+ type: "panic-button";
368
+ } | {
369
+ type: "intercom-terminal";
370
+ sipUri: string;
371
+ sipUser: string;
372
+ sipPassword: string;
373
+ sipRealm: string;
374
+ remoteExtension: string;
375
+ } | {
376
+ type: "pbx";
377
+ sipWsUrl: string;
378
+ } | {
379
+ type: "server";
380
+ } | {
381
+ type: "intercom-operator";
382
+ } | {
383
+ type: "device-gateway";
384
+ } | {
385
+ type: "presence-tracker";
386
+ } | {
387
+ type: "reader";
388
+ } | {
389
+ type: "display";
390
+ } | {
391
+ type: "nvr-recorder";
392
+ } | {
393
+ type: "nvr-exporter";
394
+ } | {
395
+ type: "nvr-analytics-server";
396
+ })) & {
397
+ presets: {
398
+ name: string;
399
+ id: string;
400
+ isDefault: boolean;
401
+ assignedRef: string | null;
402
+ createdOn: string;
403
+ lastModifiedOn: string;
404
+ params?: unknown;
405
+ }[];
406
+ });
407
+ timeFrom: number;
408
+ timeTo: number;
409
+ }, {
410
+ name: string;
411
+ requestId: string;
412
+ device: string | (({
413
+ name: string;
414
+ foreignRef: string;
415
+ provider: string;
416
+ providerMetadata: {} & {
417
+ [k: string]: unknown;
418
+ };
419
+ } & ({
420
+ type: "alarm";
421
+ } | {
422
+ type: "camera";
423
+ streams: {
424
+ id: string;
425
+ displayName: string;
426
+ externalPlayerUrl: string | null;
427
+ }[];
428
+ lensType: "flat" | "fisheye";
429
+ mountPoint: "wall" | "ceiling" | "floor";
430
+ ptzCapable: boolean;
431
+ ptzPanSpeed: number;
432
+ ptzTiltSpeed: number;
433
+ ptzZoomSpeed: number;
434
+ panMin: number;
435
+ panMax: number;
436
+ tiltMin: number;
437
+ tiltMax: number;
438
+ zoomMin: number;
439
+ zoomMax: number;
440
+ recordingCapable: boolean;
441
+ webrtcPlaybackSource: ({
442
+ kind: string;
443
+ } & Record<string, unknown>) | null;
444
+ defaultStreamId: string;
445
+ } | {
446
+ type: "door";
447
+ canReportOpenState: boolean;
448
+ canReportLockState: boolean;
449
+ canControlLock: boolean;
450
+ canRelease: boolean;
451
+ } | {
452
+ type: "io-board";
453
+ inputs: string[];
454
+ outputs: string[];
455
+ } | {
456
+ type: "camera-lift";
457
+ } | {
458
+ type: "motion-sensor";
459
+ } | {
460
+ type: "panic-button";
461
+ } | {
462
+ type: "intercom-terminal";
463
+ sipUri: string;
464
+ sipUser: string;
465
+ sipPassword: string;
466
+ sipRealm: string;
467
+ remoteExtension: string;
468
+ } | {
469
+ type: "pbx";
470
+ sipWsUrl: string;
471
+ } | {
472
+ type: "server";
473
+ } | {
474
+ type: "intercom-operator";
475
+ } | {
476
+ type: "device-gateway";
477
+ } | {
478
+ type: "presence-tracker";
479
+ } | {
480
+ type: "reader";
481
+ } | {
482
+ type: "display";
483
+ } | {
484
+ type: "nvr-recorder";
485
+ } | {
486
+ type: "nvr-exporter";
487
+ } | {
488
+ type: "nvr-analytics-server";
489
+ })) & {
490
+ presets: {
491
+ name: string;
492
+ id: string;
493
+ isDefault: boolean;
494
+ assignedRef: string | null;
495
+ createdOn: string;
496
+ lastModifiedOn: string;
497
+ params?: unknown;
498
+ }[];
499
+ });
500
+ timeFrom: number;
501
+ timeTo: number;
502
+ }>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ params: {
505
+ name: string;
506
+ requestId: string;
507
+ device: string | (({
508
+ name: string;
509
+ foreignRef: string;
510
+ provider: string;
511
+ providerMetadata: {} & {
512
+ [k: string]: unknown;
513
+ };
514
+ } & ({
515
+ type: "alarm";
516
+ } | {
517
+ type: "camera";
518
+ streams: {
519
+ id: string;
520
+ displayName: string;
521
+ externalPlayerUrl: string | null;
522
+ }[];
523
+ lensType: "flat" | "fisheye";
524
+ mountPoint: "wall" | "ceiling" | "floor";
525
+ ptzCapable: boolean;
526
+ ptzPanSpeed: number;
527
+ ptzTiltSpeed: number;
528
+ ptzZoomSpeed: number;
529
+ panMin: number;
530
+ panMax: number;
531
+ tiltMin: number;
532
+ tiltMax: number;
533
+ zoomMin: number;
534
+ zoomMax: number;
535
+ recordingCapable: boolean;
536
+ webrtcPlaybackSource: ({
537
+ kind: string;
538
+ } & Record<string, unknown>) | null;
539
+ defaultStreamId: string;
540
+ } | {
541
+ type: "door";
542
+ canReportOpenState: boolean;
543
+ canReportLockState: boolean;
544
+ canControlLock: boolean;
545
+ canRelease: boolean;
546
+ } | {
547
+ type: "io-board";
548
+ inputs: string[];
549
+ outputs: string[];
550
+ } | {
551
+ type: "camera-lift";
552
+ } | {
553
+ type: "motion-sensor";
554
+ } | {
555
+ type: "panic-button";
556
+ } | {
557
+ type: "intercom-terminal";
558
+ sipUri: string;
559
+ sipUser: string;
560
+ sipPassword: string;
561
+ sipRealm: string;
562
+ remoteExtension: string;
563
+ } | {
564
+ type: "pbx";
565
+ sipWsUrl: string;
566
+ } | {
567
+ type: "server";
568
+ } | {
569
+ type: "intercom-operator";
570
+ } | {
571
+ type: "device-gateway";
572
+ } | {
573
+ type: "presence-tracker";
574
+ } | {
575
+ type: "reader";
576
+ } | {
577
+ type: "display";
578
+ } | {
579
+ type: "nvr-recorder";
580
+ } | {
581
+ type: "nvr-exporter";
582
+ } | {
583
+ type: "nvr-analytics-server";
584
+ })) & {
585
+ presets: {
586
+ name: string;
587
+ id: string;
588
+ isDefault: boolean;
589
+ assignedRef: string | null;
590
+ createdOn: string;
591
+ lastModifiedOn: string;
592
+ params?: unknown;
593
+ }[];
594
+ });
595
+ timeFrom: number;
596
+ timeTo: number;
597
+ };
598
+ command: "nvr-exporter.start-export";
599
+ }, {
600
+ params: {
601
+ name: string;
602
+ requestId: string;
603
+ device: string | (({
604
+ name: string;
605
+ foreignRef: string;
606
+ provider: string;
607
+ providerMetadata: {} & {
608
+ [k: string]: unknown;
609
+ };
610
+ } & ({
611
+ type: "alarm";
612
+ } | {
613
+ type: "camera";
614
+ streams: {
615
+ id: string;
616
+ displayName: string;
617
+ externalPlayerUrl: string | null;
618
+ }[];
619
+ lensType: "flat" | "fisheye";
620
+ mountPoint: "wall" | "ceiling" | "floor";
621
+ ptzCapable: boolean;
622
+ ptzPanSpeed: number;
623
+ ptzTiltSpeed: number;
624
+ ptzZoomSpeed: number;
625
+ panMin: number;
626
+ panMax: number;
627
+ tiltMin: number;
628
+ tiltMax: number;
629
+ zoomMin: number;
630
+ zoomMax: number;
631
+ recordingCapable: boolean;
632
+ webrtcPlaybackSource: ({
633
+ kind: string;
634
+ } & Record<string, unknown>) | null;
635
+ defaultStreamId: string;
636
+ } | {
637
+ type: "door";
638
+ canReportOpenState: boolean;
639
+ canReportLockState: boolean;
640
+ canControlLock: boolean;
641
+ canRelease: boolean;
642
+ } | {
643
+ type: "io-board";
644
+ inputs: string[];
645
+ outputs: string[];
646
+ } | {
647
+ type: "camera-lift";
648
+ } | {
649
+ type: "motion-sensor";
650
+ } | {
651
+ type: "panic-button";
652
+ } | {
653
+ type: "intercom-terminal";
654
+ sipUri: string;
655
+ sipUser: string;
656
+ sipPassword: string;
657
+ sipRealm: string;
658
+ remoteExtension: string;
659
+ } | {
660
+ type: "pbx";
661
+ sipWsUrl: string;
662
+ } | {
663
+ type: "server";
664
+ } | {
665
+ type: "intercom-operator";
666
+ } | {
667
+ type: "device-gateway";
668
+ } | {
669
+ type: "presence-tracker";
670
+ } | {
671
+ type: "reader";
672
+ } | {
673
+ type: "display";
674
+ } | {
675
+ type: "nvr-recorder";
676
+ } | {
677
+ type: "nvr-exporter";
678
+ } | {
679
+ type: "nvr-analytics-server";
680
+ })) & {
681
+ presets: {
682
+ name: string;
683
+ id: string;
684
+ isDefault: boolean;
685
+ assignedRef: string | null;
686
+ createdOn: string;
687
+ lastModifiedOn: string;
688
+ params?: unknown;
689
+ }[];
690
+ });
691
+ timeFrom: number;
692
+ timeTo: number;
693
+ };
694
+ command: "nvr-exporter.start-export";
695
+ }>;
696
+ export type StartExportCommand = z.infer<typeof sStartExportCommand>;
697
+ export declare const sDeleteExportCommand: z.ZodObject<{
698
+ command: z.ZodLiteral<"nvr-exporter.delete-export">;
699
+ params: z.ZodObject<{
700
+ exportId: z.ZodString;
701
+ }, "strip", z.ZodTypeAny, {
702
+ exportId: string;
703
+ }, {
704
+ exportId: string;
705
+ }>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ params: {
708
+ exportId: string;
709
+ };
710
+ command: "nvr-exporter.delete-export";
711
+ }, {
712
+ params: {
713
+ exportId: string;
714
+ };
715
+ command: "nvr-exporter.delete-export";
716
+ }>;
717
+ export type DeleteExportCommand = z.infer<typeof sDeleteExportCommand>;
718
+ export declare const sExportStarted: z.ZodObject<{
719
+ kind: z.ZodLiteral<"nvr-export-started">;
720
+ exportId: z.ZodString;
721
+ requestId: z.ZodString;
722
+ }, "strip", z.ZodTypeAny, {
723
+ kind: "nvr-export-started";
724
+ requestId: string;
725
+ exportId: string;
726
+ }, {
727
+ kind: "nvr-export-started";
728
+ requestId: string;
729
+ exportId: string;
730
+ }>;
731
+ export type ExportStarted = z.infer<typeof sExportStarted>;
732
+ export declare const sExportDeleted: z.ZodObject<{
733
+ kind: z.ZodLiteral<"nvr-export-deleted">;
734
+ exportId: z.ZodString;
735
+ }, "strip", z.ZodTypeAny, {
736
+ kind: "nvr-export-deleted";
737
+ exportId: string;
738
+ }, {
739
+ kind: "nvr-export-deleted";
740
+ exportId: string;
741
+ }>;
742
+ export type ExportDeleted = z.infer<typeof sExportDeleted>;
743
+ export type NvrExporterEvent = ExportStarted | ExportDeleted;
744
+ export declare const nvrExporterEventSchemasByKind: {
745
+ readonly 'nvr-export-started': z.ZodObject<{
746
+ kind: z.ZodLiteral<"nvr-export-started">;
747
+ exportId: z.ZodString;
748
+ requestId: z.ZodString;
749
+ }, "strip", z.ZodTypeAny, {
750
+ kind: "nvr-export-started";
751
+ requestId: string;
752
+ exportId: string;
753
+ }, {
754
+ kind: "nvr-export-started";
755
+ requestId: string;
756
+ exportId: string;
757
+ }>;
758
+ readonly 'nvr-export-deleted': z.ZodObject<{
759
+ kind: z.ZodLiteral<"nvr-export-deleted">;
760
+ exportId: z.ZodString;
761
+ }, "strip", z.ZodTypeAny, {
762
+ kind: "nvr-export-deleted";
763
+ exportId: string;
764
+ }, {
765
+ kind: "nvr-export-deleted";
766
+ exportId: string;
767
+ }>;
768
+ };
769
+ export declare const QUERY_GET_EXPORT_LINK = "cctv:get-export-link";
770
+ export declare const sGetExportLinkArgs: z.ZodObject<{
771
+ exportId: z.ZodString;
772
+ }, "strip", z.ZodTypeAny, {
773
+ exportId: string;
774
+ }, {
775
+ exportId: string;
776
+ }>;
777
+ export declare const sGetExportLinkResponse: z.ZodObject<{
778
+ exportLink: z.ZodString;
779
+ }, "strip", z.ZodTypeAny, {
780
+ exportLink: string;
781
+ }, {
782
+ exportLink: string;
783
+ }>;
784
+ export type GetExportLinkArgs = z.infer<typeof sGetExportLinkArgs>;
785
+ export type GetExportLinkResponse = z.infer<typeof sGetExportLinkResponse>;
786
+ export declare const QUERY_GET_EXPORTS = "cctv:get-exports";
787
+ export declare const sGetExportsArgs: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
788
+ export declare const sExportItem: z.ZodObject<{
789
+ name: z.ZodString;
790
+ endTime: z.ZodNumber;
791
+ startTime: z.ZodNumber;
792
+ id: z.ZodString;
793
+ status: z.ZodString;
794
+ size: z.ZodOptional<z.ZodString>;
795
+ expires: z.ZodOptional<z.ZodNumber>;
796
+ }, "strip", z.ZodTypeAny, {
797
+ name: string;
798
+ endTime: number;
799
+ startTime: number;
800
+ id: string;
801
+ status: string;
802
+ size?: string | undefined;
803
+ expires?: number | undefined;
804
+ }, {
805
+ name: string;
806
+ endTime: number;
807
+ startTime: number;
808
+ id: string;
809
+ status: string;
810
+ size?: string | undefined;
811
+ expires?: number | undefined;
812
+ }>;
813
+ export declare const sGetExportsResponse: z.ZodArray<z.ZodObject<{
814
+ name: z.ZodString;
815
+ endTime: z.ZodNumber;
816
+ startTime: z.ZodNumber;
817
+ id: z.ZodString;
818
+ status: z.ZodString;
819
+ size: z.ZodOptional<z.ZodString>;
820
+ expires: z.ZodOptional<z.ZodNumber>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ name: string;
823
+ endTime: number;
824
+ startTime: number;
825
+ id: string;
826
+ status: string;
827
+ size?: string | undefined;
828
+ expires?: number | undefined;
829
+ }, {
830
+ name: string;
831
+ endTime: number;
832
+ startTime: number;
833
+ id: string;
834
+ status: string;
835
+ size?: string | undefined;
836
+ expires?: number | undefined;
837
+ }>, "many">;
838
+ export type GetExportsArgs = z.infer<typeof sGetExportsArgs>;
839
+ export type ExportItem = z.infer<typeof sExportItem>;
840
+ export type GetExportsResponse = z.infer<typeof sGetExportsResponse>;
841
+ export declare const nvrExporterRequestSchemas: {
842
+ readonly "cctv:get-export-link": z.ZodObject<{
843
+ exportId: z.ZodString;
844
+ }, "strip", z.ZodTypeAny, {
845
+ exportId: string;
846
+ }, {
847
+ exportId: string;
848
+ }>;
849
+ readonly "cctv:get-exports": z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
850
+ };
851
+ export declare const nvrExporterResponseSchemas: {
852
+ readonly "cctv:get-export-link": z.ZodObject<{
853
+ exportLink: z.ZodString;
854
+ }, "strip", z.ZodTypeAny, {
855
+ exportLink: string;
856
+ }, {
857
+ exportLink: string;
858
+ }>;
859
+ readonly "cctv:get-exports": z.ZodArray<z.ZodObject<{
860
+ name: z.ZodString;
861
+ endTime: z.ZodNumber;
862
+ startTime: z.ZodNumber;
863
+ id: z.ZodString;
864
+ status: z.ZodString;
865
+ size: z.ZodOptional<z.ZodString>;
866
+ expires: z.ZodOptional<z.ZodNumber>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ name: string;
869
+ endTime: number;
870
+ startTime: number;
871
+ id: string;
872
+ status: string;
873
+ size?: string | undefined;
874
+ expires?: number | undefined;
875
+ }, {
876
+ name: string;
877
+ endTime: number;
878
+ startTime: number;
879
+ id: string;
880
+ status: string;
881
+ size?: string | undefined;
882
+ expires?: number | undefined;
883
+ }>, "many">;
884
+ };
885
+ export type NvrExporterQueryRequestMap = {
886
+ [QUERY_GET_EXPORT_LINK]: GetExportLinkArgs;
887
+ [QUERY_GET_EXPORTS]: GetExportsArgs;
888
+ };
889
+ export type NvrExporterQueryResponseMap = {
890
+ [QUERY_GET_EXPORT_LINK]: GetExportLinkResponse;
891
+ [QUERY_GET_EXPORTS]: GetExportsResponse;
892
+ };