@awarevue/api-types 2.0.11 → 2.0.13

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.
@@ -26,7 +26,259 @@ export declare const sRunMacroCommand: z.ZodObject<{
26
26
  export declare const sNotify: z.ZodObject<{
27
27
  command: z.ZodLiteral<"server.notify">;
28
28
  params: z.ZodObject<{
29
- source: z.ZodString;
29
+ source: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
30
+ name: z.ZodString;
31
+ foreignRef: z.ZodString;
32
+ provider: z.ZodString;
33
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ name: string;
36
+ foreignRef: string;
37
+ provider: string;
38
+ providerMetadata: {} & {
39
+ [k: string]: unknown;
40
+ };
41
+ }, {
42
+ name: string;
43
+ foreignRef: string;
44
+ provider: string;
45
+ providerMetadata: {} & {
46
+ [k: string]: unknown;
47
+ };
48
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
49
+ type: z.ZodLiteral<"alarm">;
50
+ }, "strip", z.ZodTypeAny, {
51
+ type: "alarm";
52
+ }, {
53
+ type: "alarm";
54
+ }>, z.ZodObject<{
55
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
56
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
57
+ ptzCapable: z.ZodBoolean;
58
+ ptzPanSpeed: z.ZodNumber;
59
+ ptzTiltSpeed: z.ZodNumber;
60
+ ptzZoomSpeed: z.ZodNumber;
61
+ panMin: z.ZodNumber;
62
+ panMax: z.ZodNumber;
63
+ tiltMin: z.ZodNumber;
64
+ tiltMax: z.ZodNumber;
65
+ zoomMin: z.ZodNumber;
66
+ zoomMax: z.ZodNumber;
67
+ recordingCapable: z.ZodBoolean;
68
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
69
+ kind: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ kind: string;
72
+ }, {
73
+ kind: string;
74
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
75
+ streams: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ displayName: z.ZodString;
78
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ id: string;
81
+ displayName: string;
82
+ externalPlayerUrl: string | null;
83
+ }, {
84
+ id: string;
85
+ displayName: string;
86
+ externalPlayerUrl: string | null;
87
+ }>, "many">;
88
+ defaultStreamId: z.ZodString;
89
+ } & {
90
+ type: z.ZodLiteral<"camera">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ type: "camera";
93
+ streams: {
94
+ id: string;
95
+ displayName: string;
96
+ externalPlayerUrl: string | null;
97
+ }[];
98
+ lensType: "flat" | "fisheye";
99
+ mountPoint: "wall" | "ceiling" | "floor";
100
+ ptzCapable: boolean;
101
+ ptzPanSpeed: number;
102
+ ptzTiltSpeed: number;
103
+ ptzZoomSpeed: number;
104
+ panMin: number;
105
+ panMax: number;
106
+ tiltMin: number;
107
+ tiltMax: number;
108
+ zoomMin: number;
109
+ zoomMax: number;
110
+ recordingCapable: boolean;
111
+ webrtcPlaybackSource: ({
112
+ kind: string;
113
+ } & Record<string, unknown>) | null;
114
+ defaultStreamId: string;
115
+ }, {
116
+ type: "camera";
117
+ streams: {
118
+ id: string;
119
+ displayName: string;
120
+ externalPlayerUrl: string | null;
121
+ }[];
122
+ lensType: "flat" | "fisheye";
123
+ mountPoint: "wall" | "ceiling" | "floor";
124
+ ptzCapable: boolean;
125
+ ptzPanSpeed: number;
126
+ ptzTiltSpeed: number;
127
+ ptzZoomSpeed: number;
128
+ panMin: number;
129
+ panMax: number;
130
+ tiltMin: number;
131
+ tiltMax: number;
132
+ zoomMin: number;
133
+ zoomMax: number;
134
+ recordingCapable: boolean;
135
+ webrtcPlaybackSource: ({
136
+ kind: string;
137
+ } & Record<string, unknown>) | null;
138
+ defaultStreamId: string;
139
+ }>, z.ZodObject<{
140
+ canReportOpenState: z.ZodBoolean;
141
+ canReportLockState: z.ZodBoolean;
142
+ canControlLock: z.ZodBoolean;
143
+ canRelease: z.ZodBoolean;
144
+ } & {
145
+ type: z.ZodLiteral<"door">;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type: "door";
148
+ canReportOpenState: boolean;
149
+ canReportLockState: boolean;
150
+ canControlLock: boolean;
151
+ canRelease: boolean;
152
+ }, {
153
+ type: "door";
154
+ canReportOpenState: boolean;
155
+ canReportLockState: boolean;
156
+ canControlLock: boolean;
157
+ canRelease: boolean;
158
+ }>, z.ZodObject<{
159
+ inputs: z.ZodArray<z.ZodString, "many">;
160
+ outputs: z.ZodArray<z.ZodString, "many">;
161
+ } & {
162
+ type: z.ZodLiteral<"io-board">;
163
+ }, "strip", z.ZodTypeAny, {
164
+ type: "io-board";
165
+ inputs: string[];
166
+ outputs: string[];
167
+ }, {
168
+ type: "io-board";
169
+ inputs: string[];
170
+ outputs: string[];
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"camera-lift">;
173
+ }, "strip", z.ZodTypeAny, {
174
+ type: "camera-lift";
175
+ }, {
176
+ type: "camera-lift";
177
+ }>, z.ZodObject<{
178
+ type: z.ZodLiteral<"motion-sensor">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "motion-sensor";
181
+ }, {
182
+ type: "motion-sensor";
183
+ }>, z.ZodObject<{
184
+ type: z.ZodLiteral<"panic-button">;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "panic-button";
187
+ }, {
188
+ type: "panic-button";
189
+ }>, z.ZodObject<{
190
+ sipUri: z.ZodString;
191
+ sipUser: z.ZodString;
192
+ sipPassword: z.ZodString;
193
+ sipRealm: z.ZodString;
194
+ remoteExtension: z.ZodString;
195
+ } & {
196
+ type: z.ZodLiteral<"intercom-terminal">;
197
+ }, "strip", z.ZodTypeAny, {
198
+ type: "intercom-terminal";
199
+ sipUri: string;
200
+ sipUser: string;
201
+ sipPassword: string;
202
+ sipRealm: string;
203
+ remoteExtension: string;
204
+ }, {
205
+ type: "intercom-terminal";
206
+ sipUri: string;
207
+ sipUser: string;
208
+ sipPassword: string;
209
+ sipRealm: string;
210
+ remoteExtension: string;
211
+ }>, z.ZodObject<{
212
+ sipWsUrl: z.ZodString;
213
+ } & {
214
+ type: z.ZodLiteral<"pbx">;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "pbx";
217
+ sipWsUrl: string;
218
+ }, {
219
+ type: "pbx";
220
+ sipWsUrl: string;
221
+ }>, z.ZodObject<{
222
+ type: z.ZodLiteral<"server">;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "server";
225
+ }, {
226
+ type: "server";
227
+ }>, z.ZodObject<{
228
+ type: z.ZodLiteral<"intercom-operator">;
229
+ }, "strip", z.ZodTypeAny, {
230
+ type: "intercom-operator";
231
+ }, {
232
+ type: "intercom-operator";
233
+ }>, z.ZodObject<{
234
+ type: z.ZodLiteral<"device-gateway">;
235
+ }, "strip", z.ZodTypeAny, {
236
+ type: "device-gateway";
237
+ }, {
238
+ type: "device-gateway";
239
+ }>, z.ZodObject<{
240
+ type: z.ZodLiteral<"presence-tracker">;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: "presence-tracker";
243
+ }, {
244
+ type: "presence-tracker";
245
+ }>, z.ZodObject<{
246
+ type: z.ZodLiteral<"reader">;
247
+ }, "strip", z.ZodTypeAny, {
248
+ type: "reader";
249
+ }, {
250
+ type: "reader";
251
+ }>, z.ZodObject<{
252
+ type: z.ZodLiteral<"display">;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: "display";
255
+ }, {
256
+ type: "display";
257
+ }>, z.ZodObject<{
258
+ type: z.ZodLiteral<"nvr-recorder">;
259
+ }, "strip", z.ZodTypeAny, {
260
+ type: "nvr-recorder";
261
+ }, {
262
+ type: "nvr-recorder";
263
+ }>, z.ZodObject<{
264
+ type: z.ZodLiteral<"nvr-exporter">;
265
+ }, "strip", z.ZodTypeAny, {
266
+ type: "nvr-exporter";
267
+ }, {
268
+ type: "nvr-exporter";
269
+ }>, z.ZodObject<{
270
+ type: z.ZodLiteral<"nvr-analytics-server">;
271
+ }, "strip", z.ZodTypeAny, {
272
+ type: "nvr-analytics-server";
273
+ }, {
274
+ type: "nvr-analytics-server";
275
+ }>, z.ZodObject<{
276
+ type: z.ZodLiteral<"system">;
277
+ }, "strip", z.ZodTypeAny, {
278
+ type: "system";
279
+ }, {
280
+ type: "system";
281
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
30
282
  message: z.ZodString;
31
283
  severity: z.ZodEnum<["info", "warning", "critical"]>;
32
284
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -34,14 +286,172 @@ export declare const sNotify: z.ZodObject<{
34
286
  recipientId: z.ZodNullable<z.ZodString>;
35
287
  }, "strip", z.ZodTypeAny, {
36
288
  message: string;
37
- source: string;
289
+ source: string | [string, string] | ({
290
+ name: string;
291
+ foreignRef: string;
292
+ provider: string;
293
+ providerMetadata: {} & {
294
+ [k: string]: unknown;
295
+ };
296
+ } & ({
297
+ type: "alarm";
298
+ } | {
299
+ type: "camera";
300
+ streams: {
301
+ id: string;
302
+ displayName: string;
303
+ externalPlayerUrl: string | null;
304
+ }[];
305
+ lensType: "flat" | "fisheye";
306
+ mountPoint: "wall" | "ceiling" | "floor";
307
+ ptzCapable: boolean;
308
+ ptzPanSpeed: number;
309
+ ptzTiltSpeed: number;
310
+ ptzZoomSpeed: number;
311
+ panMin: number;
312
+ panMax: number;
313
+ tiltMin: number;
314
+ tiltMax: number;
315
+ zoomMin: number;
316
+ zoomMax: number;
317
+ recordingCapable: boolean;
318
+ webrtcPlaybackSource: ({
319
+ kind: string;
320
+ } & Record<string, unknown>) | null;
321
+ defaultStreamId: string;
322
+ } | {
323
+ type: "door";
324
+ canReportOpenState: boolean;
325
+ canReportLockState: boolean;
326
+ canControlLock: boolean;
327
+ canRelease: boolean;
328
+ } | {
329
+ type: "io-board";
330
+ inputs: string[];
331
+ outputs: string[];
332
+ } | {
333
+ type: "camera-lift";
334
+ } | {
335
+ type: "motion-sensor";
336
+ } | {
337
+ type: "panic-button";
338
+ } | {
339
+ type: "intercom-terminal";
340
+ sipUri: string;
341
+ sipUser: string;
342
+ sipPassword: string;
343
+ sipRealm: string;
344
+ remoteExtension: string;
345
+ } | {
346
+ type: "pbx";
347
+ sipWsUrl: string;
348
+ } | {
349
+ type: "server";
350
+ } | {
351
+ type: "intercom-operator";
352
+ } | {
353
+ type: "device-gateway";
354
+ } | {
355
+ type: "presence-tracker";
356
+ } | {
357
+ type: "reader";
358
+ } | {
359
+ type: "display";
360
+ } | {
361
+ type: "nvr-recorder";
362
+ } | {
363
+ type: "nvr-exporter";
364
+ } | {
365
+ type: "nvr-analytics-server";
366
+ } | {
367
+ type: "system";
368
+ }));
38
369
  metadata: Record<string, unknown>;
39
370
  notificationRef: string | null;
40
371
  severity: "info" | "warning" | "critical";
41
372
  recipientId: string | null;
42
373
  }, {
43
374
  message: string;
44
- source: string;
375
+ source: string | [string, string] | ({
376
+ name: string;
377
+ foreignRef: string;
378
+ provider: string;
379
+ providerMetadata: {} & {
380
+ [k: string]: unknown;
381
+ };
382
+ } & ({
383
+ type: "alarm";
384
+ } | {
385
+ type: "camera";
386
+ streams: {
387
+ id: string;
388
+ displayName: string;
389
+ externalPlayerUrl: string | null;
390
+ }[];
391
+ lensType: "flat" | "fisheye";
392
+ mountPoint: "wall" | "ceiling" | "floor";
393
+ ptzCapable: boolean;
394
+ ptzPanSpeed: number;
395
+ ptzTiltSpeed: number;
396
+ ptzZoomSpeed: number;
397
+ panMin: number;
398
+ panMax: number;
399
+ tiltMin: number;
400
+ tiltMax: number;
401
+ zoomMin: number;
402
+ zoomMax: number;
403
+ recordingCapable: boolean;
404
+ webrtcPlaybackSource: ({
405
+ kind: string;
406
+ } & Record<string, unknown>) | null;
407
+ defaultStreamId: string;
408
+ } | {
409
+ type: "door";
410
+ canReportOpenState: boolean;
411
+ canReportLockState: boolean;
412
+ canControlLock: boolean;
413
+ canRelease: boolean;
414
+ } | {
415
+ type: "io-board";
416
+ inputs: string[];
417
+ outputs: string[];
418
+ } | {
419
+ type: "camera-lift";
420
+ } | {
421
+ type: "motion-sensor";
422
+ } | {
423
+ type: "panic-button";
424
+ } | {
425
+ type: "intercom-terminal";
426
+ sipUri: string;
427
+ sipUser: string;
428
+ sipPassword: string;
429
+ sipRealm: string;
430
+ remoteExtension: string;
431
+ } | {
432
+ type: "pbx";
433
+ sipWsUrl: string;
434
+ } | {
435
+ type: "server";
436
+ } | {
437
+ type: "intercom-operator";
438
+ } | {
439
+ type: "device-gateway";
440
+ } | {
441
+ type: "presence-tracker";
442
+ } | {
443
+ type: "reader";
444
+ } | {
445
+ type: "display";
446
+ } | {
447
+ type: "nvr-recorder";
448
+ } | {
449
+ type: "nvr-exporter";
450
+ } | {
451
+ type: "nvr-analytics-server";
452
+ } | {
453
+ type: "system";
454
+ }));
45
455
  metadata: Record<string, unknown>;
46
456
  notificationRef: string | null;
47
457
  severity: "info" | "warning" | "critical";
@@ -50,7 +460,86 @@ export declare const sNotify: z.ZodObject<{
50
460
  }, "strip", z.ZodTypeAny, {
51
461
  params: {
52
462
  message: string;
53
- source: string;
463
+ source: string | [string, string] | ({
464
+ name: string;
465
+ foreignRef: string;
466
+ provider: string;
467
+ providerMetadata: {} & {
468
+ [k: string]: unknown;
469
+ };
470
+ } & ({
471
+ type: "alarm";
472
+ } | {
473
+ type: "camera";
474
+ streams: {
475
+ id: string;
476
+ displayName: string;
477
+ externalPlayerUrl: string | null;
478
+ }[];
479
+ lensType: "flat" | "fisheye";
480
+ mountPoint: "wall" | "ceiling" | "floor";
481
+ ptzCapable: boolean;
482
+ ptzPanSpeed: number;
483
+ ptzTiltSpeed: number;
484
+ ptzZoomSpeed: number;
485
+ panMin: number;
486
+ panMax: number;
487
+ tiltMin: number;
488
+ tiltMax: number;
489
+ zoomMin: number;
490
+ zoomMax: number;
491
+ recordingCapable: boolean;
492
+ webrtcPlaybackSource: ({
493
+ kind: string;
494
+ } & Record<string, unknown>) | null;
495
+ defaultStreamId: string;
496
+ } | {
497
+ type: "door";
498
+ canReportOpenState: boolean;
499
+ canReportLockState: boolean;
500
+ canControlLock: boolean;
501
+ canRelease: boolean;
502
+ } | {
503
+ type: "io-board";
504
+ inputs: string[];
505
+ outputs: string[];
506
+ } | {
507
+ type: "camera-lift";
508
+ } | {
509
+ type: "motion-sensor";
510
+ } | {
511
+ type: "panic-button";
512
+ } | {
513
+ type: "intercom-terminal";
514
+ sipUri: string;
515
+ sipUser: string;
516
+ sipPassword: string;
517
+ sipRealm: string;
518
+ remoteExtension: string;
519
+ } | {
520
+ type: "pbx";
521
+ sipWsUrl: string;
522
+ } | {
523
+ type: "server";
524
+ } | {
525
+ type: "intercom-operator";
526
+ } | {
527
+ type: "device-gateway";
528
+ } | {
529
+ type: "presence-tracker";
530
+ } | {
531
+ type: "reader";
532
+ } | {
533
+ type: "display";
534
+ } | {
535
+ type: "nvr-recorder";
536
+ } | {
537
+ type: "nvr-exporter";
538
+ } | {
539
+ type: "nvr-analytics-server";
540
+ } | {
541
+ type: "system";
542
+ }));
54
543
  metadata: Record<string, unknown>;
55
544
  notificationRef: string | null;
56
545
  severity: "info" | "warning" | "critical";
@@ -60,7 +549,86 @@ export declare const sNotify: z.ZodObject<{
60
549
  }, {
61
550
  params: {
62
551
  message: string;
63
- source: string;
552
+ source: string | [string, string] | ({
553
+ name: string;
554
+ foreignRef: string;
555
+ provider: string;
556
+ providerMetadata: {} & {
557
+ [k: string]: unknown;
558
+ };
559
+ } & ({
560
+ type: "alarm";
561
+ } | {
562
+ type: "camera";
563
+ streams: {
564
+ id: string;
565
+ displayName: string;
566
+ externalPlayerUrl: string | null;
567
+ }[];
568
+ lensType: "flat" | "fisheye";
569
+ mountPoint: "wall" | "ceiling" | "floor";
570
+ ptzCapable: boolean;
571
+ ptzPanSpeed: number;
572
+ ptzTiltSpeed: number;
573
+ ptzZoomSpeed: number;
574
+ panMin: number;
575
+ panMax: number;
576
+ tiltMin: number;
577
+ tiltMax: number;
578
+ zoomMin: number;
579
+ zoomMax: number;
580
+ recordingCapable: boolean;
581
+ webrtcPlaybackSource: ({
582
+ kind: string;
583
+ } & Record<string, unknown>) | null;
584
+ defaultStreamId: string;
585
+ } | {
586
+ type: "door";
587
+ canReportOpenState: boolean;
588
+ canReportLockState: boolean;
589
+ canControlLock: boolean;
590
+ canRelease: boolean;
591
+ } | {
592
+ type: "io-board";
593
+ inputs: string[];
594
+ outputs: string[];
595
+ } | {
596
+ type: "camera-lift";
597
+ } | {
598
+ type: "motion-sensor";
599
+ } | {
600
+ type: "panic-button";
601
+ } | {
602
+ type: "intercom-terminal";
603
+ sipUri: string;
604
+ sipUser: string;
605
+ sipPassword: string;
606
+ sipRealm: string;
607
+ remoteExtension: string;
608
+ } | {
609
+ type: "pbx";
610
+ sipWsUrl: string;
611
+ } | {
612
+ type: "server";
613
+ } | {
614
+ type: "intercom-operator";
615
+ } | {
616
+ type: "device-gateway";
617
+ } | {
618
+ type: "presence-tracker";
619
+ } | {
620
+ type: "reader";
621
+ } | {
622
+ type: "display";
623
+ } | {
624
+ type: "nvr-recorder";
625
+ } | {
626
+ type: "nvr-exporter";
627
+ } | {
628
+ type: "nvr-analytics-server";
629
+ } | {
630
+ type: "system";
631
+ }));
64
632
  metadata: Record<string, unknown>;
65
633
  notificationRef: string | null;
66
634
  severity: "info" | "warning" | "critical";
@@ -94,7 +662,259 @@ export declare const serverCommands: {
94
662
  readonly 'server.notify': z.ZodObject<{
95
663
  command: z.ZodLiteral<"server.notify">;
96
664
  params: z.ZodObject<{
97
- source: z.ZodString;
665
+ source: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodIntersection<z.ZodObject<{
666
+ name: z.ZodString;
667
+ foreignRef: z.ZodString;
668
+ provider: z.ZodString;
669
+ providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ name: string;
672
+ foreignRef: string;
673
+ provider: string;
674
+ providerMetadata: {} & {
675
+ [k: string]: unknown;
676
+ };
677
+ }, {
678
+ name: string;
679
+ foreignRef: string;
680
+ provider: string;
681
+ providerMetadata: {} & {
682
+ [k: string]: unknown;
683
+ };
684
+ }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
685
+ type: z.ZodLiteral<"alarm">;
686
+ }, "strip", z.ZodTypeAny, {
687
+ type: "alarm";
688
+ }, {
689
+ type: "alarm";
690
+ }>, z.ZodObject<{
691
+ lensType: z.ZodEnum<["flat", "fisheye"]>;
692
+ mountPoint: z.ZodEnum<["wall", "ceiling", "floor"]>;
693
+ ptzCapable: z.ZodBoolean;
694
+ ptzPanSpeed: z.ZodNumber;
695
+ ptzTiltSpeed: z.ZodNumber;
696
+ ptzZoomSpeed: z.ZodNumber;
697
+ panMin: z.ZodNumber;
698
+ panMax: z.ZodNumber;
699
+ tiltMin: z.ZodNumber;
700
+ tiltMax: z.ZodNumber;
701
+ zoomMin: z.ZodNumber;
702
+ zoomMax: z.ZodNumber;
703
+ recordingCapable: z.ZodBoolean;
704
+ webrtcPlaybackSource: z.ZodNullable<z.ZodIntersection<z.ZodObject<{
705
+ kind: z.ZodString;
706
+ }, "strip", z.ZodTypeAny, {
707
+ kind: string;
708
+ }, {
709
+ kind: string;
710
+ }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
711
+ streams: z.ZodArray<z.ZodObject<{
712
+ id: z.ZodString;
713
+ displayName: z.ZodString;
714
+ externalPlayerUrl: z.ZodNullable<z.ZodString>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ id: string;
717
+ displayName: string;
718
+ externalPlayerUrl: string | null;
719
+ }, {
720
+ id: string;
721
+ displayName: string;
722
+ externalPlayerUrl: string | null;
723
+ }>, "many">;
724
+ defaultStreamId: z.ZodString;
725
+ } & {
726
+ type: z.ZodLiteral<"camera">;
727
+ }, "strip", z.ZodTypeAny, {
728
+ type: "camera";
729
+ streams: {
730
+ id: string;
731
+ displayName: string;
732
+ externalPlayerUrl: string | null;
733
+ }[];
734
+ lensType: "flat" | "fisheye";
735
+ mountPoint: "wall" | "ceiling" | "floor";
736
+ ptzCapable: boolean;
737
+ ptzPanSpeed: number;
738
+ ptzTiltSpeed: number;
739
+ ptzZoomSpeed: number;
740
+ panMin: number;
741
+ panMax: number;
742
+ tiltMin: number;
743
+ tiltMax: number;
744
+ zoomMin: number;
745
+ zoomMax: number;
746
+ recordingCapable: boolean;
747
+ webrtcPlaybackSource: ({
748
+ kind: string;
749
+ } & Record<string, unknown>) | null;
750
+ defaultStreamId: string;
751
+ }, {
752
+ type: "camera";
753
+ streams: {
754
+ id: string;
755
+ displayName: string;
756
+ externalPlayerUrl: string | null;
757
+ }[];
758
+ lensType: "flat" | "fisheye";
759
+ mountPoint: "wall" | "ceiling" | "floor";
760
+ ptzCapable: boolean;
761
+ ptzPanSpeed: number;
762
+ ptzTiltSpeed: number;
763
+ ptzZoomSpeed: number;
764
+ panMin: number;
765
+ panMax: number;
766
+ tiltMin: number;
767
+ tiltMax: number;
768
+ zoomMin: number;
769
+ zoomMax: number;
770
+ recordingCapable: boolean;
771
+ webrtcPlaybackSource: ({
772
+ kind: string;
773
+ } & Record<string, unknown>) | null;
774
+ defaultStreamId: string;
775
+ }>, z.ZodObject<{
776
+ canReportOpenState: z.ZodBoolean;
777
+ canReportLockState: z.ZodBoolean;
778
+ canControlLock: z.ZodBoolean;
779
+ canRelease: z.ZodBoolean;
780
+ } & {
781
+ type: z.ZodLiteral<"door">;
782
+ }, "strip", z.ZodTypeAny, {
783
+ type: "door";
784
+ canReportOpenState: boolean;
785
+ canReportLockState: boolean;
786
+ canControlLock: boolean;
787
+ canRelease: boolean;
788
+ }, {
789
+ type: "door";
790
+ canReportOpenState: boolean;
791
+ canReportLockState: boolean;
792
+ canControlLock: boolean;
793
+ canRelease: boolean;
794
+ }>, z.ZodObject<{
795
+ inputs: z.ZodArray<z.ZodString, "many">;
796
+ outputs: z.ZodArray<z.ZodString, "many">;
797
+ } & {
798
+ type: z.ZodLiteral<"io-board">;
799
+ }, "strip", z.ZodTypeAny, {
800
+ type: "io-board";
801
+ inputs: string[];
802
+ outputs: string[];
803
+ }, {
804
+ type: "io-board";
805
+ inputs: string[];
806
+ outputs: string[];
807
+ }>, z.ZodObject<{
808
+ type: z.ZodLiteral<"camera-lift">;
809
+ }, "strip", z.ZodTypeAny, {
810
+ type: "camera-lift";
811
+ }, {
812
+ type: "camera-lift";
813
+ }>, z.ZodObject<{
814
+ type: z.ZodLiteral<"motion-sensor">;
815
+ }, "strip", z.ZodTypeAny, {
816
+ type: "motion-sensor";
817
+ }, {
818
+ type: "motion-sensor";
819
+ }>, z.ZodObject<{
820
+ type: z.ZodLiteral<"panic-button">;
821
+ }, "strip", z.ZodTypeAny, {
822
+ type: "panic-button";
823
+ }, {
824
+ type: "panic-button";
825
+ }>, z.ZodObject<{
826
+ sipUri: z.ZodString;
827
+ sipUser: z.ZodString;
828
+ sipPassword: z.ZodString;
829
+ sipRealm: z.ZodString;
830
+ remoteExtension: z.ZodString;
831
+ } & {
832
+ type: z.ZodLiteral<"intercom-terminal">;
833
+ }, "strip", z.ZodTypeAny, {
834
+ type: "intercom-terminal";
835
+ sipUri: string;
836
+ sipUser: string;
837
+ sipPassword: string;
838
+ sipRealm: string;
839
+ remoteExtension: string;
840
+ }, {
841
+ type: "intercom-terminal";
842
+ sipUri: string;
843
+ sipUser: string;
844
+ sipPassword: string;
845
+ sipRealm: string;
846
+ remoteExtension: string;
847
+ }>, z.ZodObject<{
848
+ sipWsUrl: z.ZodString;
849
+ } & {
850
+ type: z.ZodLiteral<"pbx">;
851
+ }, "strip", z.ZodTypeAny, {
852
+ type: "pbx";
853
+ sipWsUrl: string;
854
+ }, {
855
+ type: "pbx";
856
+ sipWsUrl: string;
857
+ }>, z.ZodObject<{
858
+ type: z.ZodLiteral<"server">;
859
+ }, "strip", z.ZodTypeAny, {
860
+ type: "server";
861
+ }, {
862
+ type: "server";
863
+ }>, z.ZodObject<{
864
+ type: z.ZodLiteral<"intercom-operator">;
865
+ }, "strip", z.ZodTypeAny, {
866
+ type: "intercom-operator";
867
+ }, {
868
+ type: "intercom-operator";
869
+ }>, z.ZodObject<{
870
+ type: z.ZodLiteral<"device-gateway">;
871
+ }, "strip", z.ZodTypeAny, {
872
+ type: "device-gateway";
873
+ }, {
874
+ type: "device-gateway";
875
+ }>, z.ZodObject<{
876
+ type: z.ZodLiteral<"presence-tracker">;
877
+ }, "strip", z.ZodTypeAny, {
878
+ type: "presence-tracker";
879
+ }, {
880
+ type: "presence-tracker";
881
+ }>, z.ZodObject<{
882
+ type: z.ZodLiteral<"reader">;
883
+ }, "strip", z.ZodTypeAny, {
884
+ type: "reader";
885
+ }, {
886
+ type: "reader";
887
+ }>, z.ZodObject<{
888
+ type: z.ZodLiteral<"display">;
889
+ }, "strip", z.ZodTypeAny, {
890
+ type: "display";
891
+ }, {
892
+ type: "display";
893
+ }>, z.ZodObject<{
894
+ type: z.ZodLiteral<"nvr-recorder">;
895
+ }, "strip", z.ZodTypeAny, {
896
+ type: "nvr-recorder";
897
+ }, {
898
+ type: "nvr-recorder";
899
+ }>, z.ZodObject<{
900
+ type: z.ZodLiteral<"nvr-exporter">;
901
+ }, "strip", z.ZodTypeAny, {
902
+ type: "nvr-exporter";
903
+ }, {
904
+ type: "nvr-exporter";
905
+ }>, z.ZodObject<{
906
+ type: z.ZodLiteral<"nvr-analytics-server">;
907
+ }, "strip", z.ZodTypeAny, {
908
+ type: "nvr-analytics-server";
909
+ }, {
910
+ type: "nvr-analytics-server";
911
+ }>, z.ZodObject<{
912
+ type: z.ZodLiteral<"system">;
913
+ }, "strip", z.ZodTypeAny, {
914
+ type: "system";
915
+ }, {
916
+ type: "system";
917
+ }>]>>]>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
98
918
  message: z.ZodString;
99
919
  severity: z.ZodEnum<["info", "warning", "critical"]>;
100
920
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -102,14 +922,172 @@ export declare const serverCommands: {
102
922
  recipientId: z.ZodNullable<z.ZodString>;
103
923
  }, "strip", z.ZodTypeAny, {
104
924
  message: string;
105
- source: string;
925
+ source: string | [string, string] | ({
926
+ name: string;
927
+ foreignRef: string;
928
+ provider: string;
929
+ providerMetadata: {} & {
930
+ [k: string]: unknown;
931
+ };
932
+ } & ({
933
+ type: "alarm";
934
+ } | {
935
+ type: "camera";
936
+ streams: {
937
+ id: string;
938
+ displayName: string;
939
+ externalPlayerUrl: string | null;
940
+ }[];
941
+ lensType: "flat" | "fisheye";
942
+ mountPoint: "wall" | "ceiling" | "floor";
943
+ ptzCapable: boolean;
944
+ ptzPanSpeed: number;
945
+ ptzTiltSpeed: number;
946
+ ptzZoomSpeed: number;
947
+ panMin: number;
948
+ panMax: number;
949
+ tiltMin: number;
950
+ tiltMax: number;
951
+ zoomMin: number;
952
+ zoomMax: number;
953
+ recordingCapable: boolean;
954
+ webrtcPlaybackSource: ({
955
+ kind: string;
956
+ } & Record<string, unknown>) | null;
957
+ defaultStreamId: string;
958
+ } | {
959
+ type: "door";
960
+ canReportOpenState: boolean;
961
+ canReportLockState: boolean;
962
+ canControlLock: boolean;
963
+ canRelease: boolean;
964
+ } | {
965
+ type: "io-board";
966
+ inputs: string[];
967
+ outputs: string[];
968
+ } | {
969
+ type: "camera-lift";
970
+ } | {
971
+ type: "motion-sensor";
972
+ } | {
973
+ type: "panic-button";
974
+ } | {
975
+ type: "intercom-terminal";
976
+ sipUri: string;
977
+ sipUser: string;
978
+ sipPassword: string;
979
+ sipRealm: string;
980
+ remoteExtension: string;
981
+ } | {
982
+ type: "pbx";
983
+ sipWsUrl: string;
984
+ } | {
985
+ type: "server";
986
+ } | {
987
+ type: "intercom-operator";
988
+ } | {
989
+ type: "device-gateway";
990
+ } | {
991
+ type: "presence-tracker";
992
+ } | {
993
+ type: "reader";
994
+ } | {
995
+ type: "display";
996
+ } | {
997
+ type: "nvr-recorder";
998
+ } | {
999
+ type: "nvr-exporter";
1000
+ } | {
1001
+ type: "nvr-analytics-server";
1002
+ } | {
1003
+ type: "system";
1004
+ }));
106
1005
  metadata: Record<string, unknown>;
107
1006
  notificationRef: string | null;
108
1007
  severity: "info" | "warning" | "critical";
109
1008
  recipientId: string | null;
110
1009
  }, {
111
1010
  message: string;
112
- source: string;
1011
+ source: string | [string, string] | ({
1012
+ name: string;
1013
+ foreignRef: string;
1014
+ provider: string;
1015
+ providerMetadata: {} & {
1016
+ [k: string]: unknown;
1017
+ };
1018
+ } & ({
1019
+ type: "alarm";
1020
+ } | {
1021
+ type: "camera";
1022
+ streams: {
1023
+ id: string;
1024
+ displayName: string;
1025
+ externalPlayerUrl: string | null;
1026
+ }[];
1027
+ lensType: "flat" | "fisheye";
1028
+ mountPoint: "wall" | "ceiling" | "floor";
1029
+ ptzCapable: boolean;
1030
+ ptzPanSpeed: number;
1031
+ ptzTiltSpeed: number;
1032
+ ptzZoomSpeed: number;
1033
+ panMin: number;
1034
+ panMax: number;
1035
+ tiltMin: number;
1036
+ tiltMax: number;
1037
+ zoomMin: number;
1038
+ zoomMax: number;
1039
+ recordingCapable: boolean;
1040
+ webrtcPlaybackSource: ({
1041
+ kind: string;
1042
+ } & Record<string, unknown>) | null;
1043
+ defaultStreamId: string;
1044
+ } | {
1045
+ type: "door";
1046
+ canReportOpenState: boolean;
1047
+ canReportLockState: boolean;
1048
+ canControlLock: boolean;
1049
+ canRelease: boolean;
1050
+ } | {
1051
+ type: "io-board";
1052
+ inputs: string[];
1053
+ outputs: string[];
1054
+ } | {
1055
+ type: "camera-lift";
1056
+ } | {
1057
+ type: "motion-sensor";
1058
+ } | {
1059
+ type: "panic-button";
1060
+ } | {
1061
+ type: "intercom-terminal";
1062
+ sipUri: string;
1063
+ sipUser: string;
1064
+ sipPassword: string;
1065
+ sipRealm: string;
1066
+ remoteExtension: string;
1067
+ } | {
1068
+ type: "pbx";
1069
+ sipWsUrl: string;
1070
+ } | {
1071
+ type: "server";
1072
+ } | {
1073
+ type: "intercom-operator";
1074
+ } | {
1075
+ type: "device-gateway";
1076
+ } | {
1077
+ type: "presence-tracker";
1078
+ } | {
1079
+ type: "reader";
1080
+ } | {
1081
+ type: "display";
1082
+ } | {
1083
+ type: "nvr-recorder";
1084
+ } | {
1085
+ type: "nvr-exporter";
1086
+ } | {
1087
+ type: "nvr-analytics-server";
1088
+ } | {
1089
+ type: "system";
1090
+ }));
113
1091
  metadata: Record<string, unknown>;
114
1092
  notificationRef: string | null;
115
1093
  severity: "info" | "warning" | "critical";
@@ -118,7 +1096,86 @@ export declare const serverCommands: {
118
1096
  }, "strip", z.ZodTypeAny, {
119
1097
  params: {
120
1098
  message: string;
121
- source: string;
1099
+ source: string | [string, string] | ({
1100
+ name: string;
1101
+ foreignRef: string;
1102
+ provider: string;
1103
+ providerMetadata: {} & {
1104
+ [k: string]: unknown;
1105
+ };
1106
+ } & ({
1107
+ type: "alarm";
1108
+ } | {
1109
+ type: "camera";
1110
+ streams: {
1111
+ id: string;
1112
+ displayName: string;
1113
+ externalPlayerUrl: string | null;
1114
+ }[];
1115
+ lensType: "flat" | "fisheye";
1116
+ mountPoint: "wall" | "ceiling" | "floor";
1117
+ ptzCapable: boolean;
1118
+ ptzPanSpeed: number;
1119
+ ptzTiltSpeed: number;
1120
+ ptzZoomSpeed: number;
1121
+ panMin: number;
1122
+ panMax: number;
1123
+ tiltMin: number;
1124
+ tiltMax: number;
1125
+ zoomMin: number;
1126
+ zoomMax: number;
1127
+ recordingCapable: boolean;
1128
+ webrtcPlaybackSource: ({
1129
+ kind: string;
1130
+ } & Record<string, unknown>) | null;
1131
+ defaultStreamId: string;
1132
+ } | {
1133
+ type: "door";
1134
+ canReportOpenState: boolean;
1135
+ canReportLockState: boolean;
1136
+ canControlLock: boolean;
1137
+ canRelease: boolean;
1138
+ } | {
1139
+ type: "io-board";
1140
+ inputs: string[];
1141
+ outputs: string[];
1142
+ } | {
1143
+ type: "camera-lift";
1144
+ } | {
1145
+ type: "motion-sensor";
1146
+ } | {
1147
+ type: "panic-button";
1148
+ } | {
1149
+ type: "intercom-terminal";
1150
+ sipUri: string;
1151
+ sipUser: string;
1152
+ sipPassword: string;
1153
+ sipRealm: string;
1154
+ remoteExtension: string;
1155
+ } | {
1156
+ type: "pbx";
1157
+ sipWsUrl: string;
1158
+ } | {
1159
+ type: "server";
1160
+ } | {
1161
+ type: "intercom-operator";
1162
+ } | {
1163
+ type: "device-gateway";
1164
+ } | {
1165
+ type: "presence-tracker";
1166
+ } | {
1167
+ type: "reader";
1168
+ } | {
1169
+ type: "display";
1170
+ } | {
1171
+ type: "nvr-recorder";
1172
+ } | {
1173
+ type: "nvr-exporter";
1174
+ } | {
1175
+ type: "nvr-analytics-server";
1176
+ } | {
1177
+ type: "system";
1178
+ }));
122
1179
  metadata: Record<string, unknown>;
123
1180
  notificationRef: string | null;
124
1181
  severity: "info" | "warning" | "critical";
@@ -128,7 +1185,86 @@ export declare const serverCommands: {
128
1185
  }, {
129
1186
  params: {
130
1187
  message: string;
131
- source: string;
1188
+ source: string | [string, string] | ({
1189
+ name: string;
1190
+ foreignRef: string;
1191
+ provider: string;
1192
+ providerMetadata: {} & {
1193
+ [k: string]: unknown;
1194
+ };
1195
+ } & ({
1196
+ type: "alarm";
1197
+ } | {
1198
+ type: "camera";
1199
+ streams: {
1200
+ id: string;
1201
+ displayName: string;
1202
+ externalPlayerUrl: string | null;
1203
+ }[];
1204
+ lensType: "flat" | "fisheye";
1205
+ mountPoint: "wall" | "ceiling" | "floor";
1206
+ ptzCapable: boolean;
1207
+ ptzPanSpeed: number;
1208
+ ptzTiltSpeed: number;
1209
+ ptzZoomSpeed: number;
1210
+ panMin: number;
1211
+ panMax: number;
1212
+ tiltMin: number;
1213
+ tiltMax: number;
1214
+ zoomMin: number;
1215
+ zoomMax: number;
1216
+ recordingCapable: boolean;
1217
+ webrtcPlaybackSource: ({
1218
+ kind: string;
1219
+ } & Record<string, unknown>) | null;
1220
+ defaultStreamId: string;
1221
+ } | {
1222
+ type: "door";
1223
+ canReportOpenState: boolean;
1224
+ canReportLockState: boolean;
1225
+ canControlLock: boolean;
1226
+ canRelease: boolean;
1227
+ } | {
1228
+ type: "io-board";
1229
+ inputs: string[];
1230
+ outputs: string[];
1231
+ } | {
1232
+ type: "camera-lift";
1233
+ } | {
1234
+ type: "motion-sensor";
1235
+ } | {
1236
+ type: "panic-button";
1237
+ } | {
1238
+ type: "intercom-terminal";
1239
+ sipUri: string;
1240
+ sipUser: string;
1241
+ sipPassword: string;
1242
+ sipRealm: string;
1243
+ remoteExtension: string;
1244
+ } | {
1245
+ type: "pbx";
1246
+ sipWsUrl: string;
1247
+ } | {
1248
+ type: "server";
1249
+ } | {
1250
+ type: "intercom-operator";
1251
+ } | {
1252
+ type: "device-gateway";
1253
+ } | {
1254
+ type: "presence-tracker";
1255
+ } | {
1256
+ type: "reader";
1257
+ } | {
1258
+ type: "display";
1259
+ } | {
1260
+ type: "nvr-recorder";
1261
+ } | {
1262
+ type: "nvr-exporter";
1263
+ } | {
1264
+ type: "nvr-analytics-server";
1265
+ } | {
1266
+ type: "system";
1267
+ }));
132
1268
  metadata: Record<string, unknown>;
133
1269
  notificationRef: string | null;
134
1270
  severity: "info" | "warning" | "critical";