@awarevue/api-types 2.0.15 → 2.0.17
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.
- package/dist/agent-communication/protocol.d.ts +186 -2
- package/dist/commands/all.d.ts +160 -0
- package/dist/commands/nvr-exporter.d.ts +160 -0
- package/dist/commands/server.d.ts +160 -0
- package/dist/events/all.d.ts +87 -12
- package/dist/events/all.js +20 -1
- package/dist/package.json +1 -1
- package/dist/primitives.d.ts +89 -0
- package/dist/primitives.js +2 -2
- package/dist/queries/all.d.ts +186 -0
- package/dist/queries/nvr-recorder.d.ts +372 -0
- package/package.json +1 -1
|
@@ -8,6 +8,32 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
8
8
|
foreignRef: z.ZodString;
|
|
9
9
|
provider: z.ZodString;
|
|
10
10
|
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
11
|
+
} & {
|
|
12
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
params: z.ZodUnknown;
|
|
16
|
+
isDefault: z.ZodBoolean;
|
|
17
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
18
|
+
createdOn: z.ZodString;
|
|
19
|
+
lastModifiedOn: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
name: string;
|
|
22
|
+
id: string;
|
|
23
|
+
isDefault: boolean;
|
|
24
|
+
assignedRef: string | null;
|
|
25
|
+
createdOn: string;
|
|
26
|
+
lastModifiedOn: string;
|
|
27
|
+
params?: unknown;
|
|
28
|
+
}, {
|
|
29
|
+
name: string;
|
|
30
|
+
id: string;
|
|
31
|
+
isDefault: boolean;
|
|
32
|
+
assignedRef: string | null;
|
|
33
|
+
createdOn: string;
|
|
34
|
+
lastModifiedOn: string;
|
|
35
|
+
params?: unknown;
|
|
36
|
+
}>, "many">;
|
|
11
37
|
}, "strip", z.ZodTypeAny, {
|
|
12
38
|
name: string;
|
|
13
39
|
foreignRef: string;
|
|
@@ -15,6 +41,15 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
15
41
|
providerMetadata: {} & {
|
|
16
42
|
[k: string]: unknown;
|
|
17
43
|
};
|
|
44
|
+
presets: {
|
|
45
|
+
name: string;
|
|
46
|
+
id: string;
|
|
47
|
+
isDefault: boolean;
|
|
48
|
+
assignedRef: string | null;
|
|
49
|
+
createdOn: string;
|
|
50
|
+
lastModifiedOn: string;
|
|
51
|
+
params?: unknown;
|
|
52
|
+
}[];
|
|
18
53
|
}, {
|
|
19
54
|
name: string;
|
|
20
55
|
foreignRef: string;
|
|
@@ -22,6 +57,15 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
22
57
|
providerMetadata: {} & {
|
|
23
58
|
[k: string]: unknown;
|
|
24
59
|
};
|
|
60
|
+
presets: {
|
|
61
|
+
name: string;
|
|
62
|
+
id: string;
|
|
63
|
+
isDefault: boolean;
|
|
64
|
+
assignedRef: string | null;
|
|
65
|
+
createdOn: string;
|
|
66
|
+
lastModifiedOn: string;
|
|
67
|
+
params?: unknown;
|
|
68
|
+
}[];
|
|
25
69
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
26
70
|
type: z.ZodLiteral<"alarm">;
|
|
27
71
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -269,6 +313,15 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
269
313
|
providerMetadata: {} & {
|
|
270
314
|
[k: string]: unknown;
|
|
271
315
|
};
|
|
316
|
+
presets: {
|
|
317
|
+
name: string;
|
|
318
|
+
id: string;
|
|
319
|
+
isDefault: boolean;
|
|
320
|
+
assignedRef: string | null;
|
|
321
|
+
createdOn: string;
|
|
322
|
+
lastModifiedOn: string;
|
|
323
|
+
params?: unknown;
|
|
324
|
+
}[];
|
|
272
325
|
} & ({
|
|
273
326
|
type: "alarm";
|
|
274
327
|
} | {
|
|
@@ -354,6 +407,15 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
354
407
|
providerMetadata: {} & {
|
|
355
408
|
[k: string]: unknown;
|
|
356
409
|
};
|
|
410
|
+
presets: {
|
|
411
|
+
name: string;
|
|
412
|
+
id: string;
|
|
413
|
+
isDefault: boolean;
|
|
414
|
+
assignedRef: string | null;
|
|
415
|
+
createdOn: string;
|
|
416
|
+
lastModifiedOn: string;
|
|
417
|
+
params?: unknown;
|
|
418
|
+
}[];
|
|
357
419
|
} & ({
|
|
358
420
|
type: "alarm";
|
|
359
421
|
} | {
|
|
@@ -441,6 +503,15 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
441
503
|
providerMetadata: {} & {
|
|
442
504
|
[k: string]: unknown;
|
|
443
505
|
};
|
|
506
|
+
presets: {
|
|
507
|
+
name: string;
|
|
508
|
+
id: string;
|
|
509
|
+
isDefault: boolean;
|
|
510
|
+
assignedRef: string | null;
|
|
511
|
+
createdOn: string;
|
|
512
|
+
lastModifiedOn: string;
|
|
513
|
+
params?: unknown;
|
|
514
|
+
}[];
|
|
444
515
|
} & ({
|
|
445
516
|
type: "alarm";
|
|
446
517
|
} | {
|
|
@@ -529,6 +600,15 @@ export declare const sStartExportCommand: z.ZodObject<{
|
|
|
529
600
|
providerMetadata: {} & {
|
|
530
601
|
[k: string]: unknown;
|
|
531
602
|
};
|
|
603
|
+
presets: {
|
|
604
|
+
name: string;
|
|
605
|
+
id: string;
|
|
606
|
+
isDefault: boolean;
|
|
607
|
+
assignedRef: string | null;
|
|
608
|
+
createdOn: string;
|
|
609
|
+
lastModifiedOn: string;
|
|
610
|
+
params?: unknown;
|
|
611
|
+
}[];
|
|
532
612
|
} & ({
|
|
533
613
|
type: "alarm";
|
|
534
614
|
} | {
|
|
@@ -640,6 +720,32 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
640
720
|
foreignRef: z.ZodString;
|
|
641
721
|
provider: z.ZodString;
|
|
642
722
|
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
723
|
+
} & {
|
|
724
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
725
|
+
id: z.ZodString;
|
|
726
|
+
name: z.ZodString;
|
|
727
|
+
params: z.ZodUnknown;
|
|
728
|
+
isDefault: z.ZodBoolean;
|
|
729
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
730
|
+
createdOn: z.ZodString;
|
|
731
|
+
lastModifiedOn: z.ZodString;
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
|
+
name: string;
|
|
734
|
+
id: string;
|
|
735
|
+
isDefault: boolean;
|
|
736
|
+
assignedRef: string | null;
|
|
737
|
+
createdOn: string;
|
|
738
|
+
lastModifiedOn: string;
|
|
739
|
+
params?: unknown;
|
|
740
|
+
}, {
|
|
741
|
+
name: string;
|
|
742
|
+
id: string;
|
|
743
|
+
isDefault: boolean;
|
|
744
|
+
assignedRef: string | null;
|
|
745
|
+
createdOn: string;
|
|
746
|
+
lastModifiedOn: string;
|
|
747
|
+
params?: unknown;
|
|
748
|
+
}>, "many">;
|
|
643
749
|
}, "strip", z.ZodTypeAny, {
|
|
644
750
|
name: string;
|
|
645
751
|
foreignRef: string;
|
|
@@ -647,6 +753,15 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
647
753
|
providerMetadata: {} & {
|
|
648
754
|
[k: string]: unknown;
|
|
649
755
|
};
|
|
756
|
+
presets: {
|
|
757
|
+
name: string;
|
|
758
|
+
id: string;
|
|
759
|
+
isDefault: boolean;
|
|
760
|
+
assignedRef: string | null;
|
|
761
|
+
createdOn: string;
|
|
762
|
+
lastModifiedOn: string;
|
|
763
|
+
params?: unknown;
|
|
764
|
+
}[];
|
|
650
765
|
}, {
|
|
651
766
|
name: string;
|
|
652
767
|
foreignRef: string;
|
|
@@ -654,6 +769,15 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
654
769
|
providerMetadata: {} & {
|
|
655
770
|
[k: string]: unknown;
|
|
656
771
|
};
|
|
772
|
+
presets: {
|
|
773
|
+
name: string;
|
|
774
|
+
id: string;
|
|
775
|
+
isDefault: boolean;
|
|
776
|
+
assignedRef: string | null;
|
|
777
|
+
createdOn: string;
|
|
778
|
+
lastModifiedOn: string;
|
|
779
|
+
params?: unknown;
|
|
780
|
+
}[];
|
|
657
781
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
658
782
|
type: z.ZodLiteral<"alarm">;
|
|
659
783
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -901,6 +1025,15 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
901
1025
|
providerMetadata: {} & {
|
|
902
1026
|
[k: string]: unknown;
|
|
903
1027
|
};
|
|
1028
|
+
presets: {
|
|
1029
|
+
name: string;
|
|
1030
|
+
id: string;
|
|
1031
|
+
isDefault: boolean;
|
|
1032
|
+
assignedRef: string | null;
|
|
1033
|
+
createdOn: string;
|
|
1034
|
+
lastModifiedOn: string;
|
|
1035
|
+
params?: unknown;
|
|
1036
|
+
}[];
|
|
904
1037
|
} & ({
|
|
905
1038
|
type: "alarm";
|
|
906
1039
|
} | {
|
|
@@ -986,6 +1119,15 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
986
1119
|
providerMetadata: {} & {
|
|
987
1120
|
[k: string]: unknown;
|
|
988
1121
|
};
|
|
1122
|
+
presets: {
|
|
1123
|
+
name: string;
|
|
1124
|
+
id: string;
|
|
1125
|
+
isDefault: boolean;
|
|
1126
|
+
assignedRef: string | null;
|
|
1127
|
+
createdOn: string;
|
|
1128
|
+
lastModifiedOn: string;
|
|
1129
|
+
params?: unknown;
|
|
1130
|
+
}[];
|
|
989
1131
|
} & ({
|
|
990
1132
|
type: "alarm";
|
|
991
1133
|
} | {
|
|
@@ -1073,6 +1215,15 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1073
1215
|
providerMetadata: {} & {
|
|
1074
1216
|
[k: string]: unknown;
|
|
1075
1217
|
};
|
|
1218
|
+
presets: {
|
|
1219
|
+
name: string;
|
|
1220
|
+
id: string;
|
|
1221
|
+
isDefault: boolean;
|
|
1222
|
+
assignedRef: string | null;
|
|
1223
|
+
createdOn: string;
|
|
1224
|
+
lastModifiedOn: string;
|
|
1225
|
+
params?: unknown;
|
|
1226
|
+
}[];
|
|
1076
1227
|
} & ({
|
|
1077
1228
|
type: "alarm";
|
|
1078
1229
|
} | {
|
|
@@ -1161,6 +1312,15 @@ export declare const nvrExporterCommandSchemas: {
|
|
|
1161
1312
|
providerMetadata: {} & {
|
|
1162
1313
|
[k: string]: unknown;
|
|
1163
1314
|
};
|
|
1315
|
+
presets: {
|
|
1316
|
+
name: string;
|
|
1317
|
+
id: string;
|
|
1318
|
+
isDefault: boolean;
|
|
1319
|
+
assignedRef: string | null;
|
|
1320
|
+
createdOn: string;
|
|
1321
|
+
lastModifiedOn: string;
|
|
1322
|
+
params?: unknown;
|
|
1323
|
+
}[];
|
|
1164
1324
|
} & ({
|
|
1165
1325
|
type: "alarm";
|
|
1166
1326
|
} | {
|
|
@@ -27,6 +27,32 @@ export declare const sNotify: z.ZodObject<{
|
|
|
27
27
|
foreignRef: z.ZodString;
|
|
28
28
|
provider: z.ZodString;
|
|
29
29
|
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
30
|
+
} & {
|
|
31
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
params: z.ZodUnknown;
|
|
35
|
+
isDefault: z.ZodBoolean;
|
|
36
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
37
|
+
createdOn: z.ZodString;
|
|
38
|
+
lastModifiedOn: z.ZodString;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
name: string;
|
|
41
|
+
id: string;
|
|
42
|
+
isDefault: boolean;
|
|
43
|
+
assignedRef: string | null;
|
|
44
|
+
createdOn: string;
|
|
45
|
+
lastModifiedOn: string;
|
|
46
|
+
params?: unknown;
|
|
47
|
+
}, {
|
|
48
|
+
name: string;
|
|
49
|
+
id: string;
|
|
50
|
+
isDefault: boolean;
|
|
51
|
+
assignedRef: string | null;
|
|
52
|
+
createdOn: string;
|
|
53
|
+
lastModifiedOn: string;
|
|
54
|
+
params?: unknown;
|
|
55
|
+
}>, "many">;
|
|
30
56
|
}, "strip", z.ZodTypeAny, {
|
|
31
57
|
name: string;
|
|
32
58
|
foreignRef: string;
|
|
@@ -34,6 +60,15 @@ export declare const sNotify: z.ZodObject<{
|
|
|
34
60
|
providerMetadata: {} & {
|
|
35
61
|
[k: string]: unknown;
|
|
36
62
|
};
|
|
63
|
+
presets: {
|
|
64
|
+
name: string;
|
|
65
|
+
id: string;
|
|
66
|
+
isDefault: boolean;
|
|
67
|
+
assignedRef: string | null;
|
|
68
|
+
createdOn: string;
|
|
69
|
+
lastModifiedOn: string;
|
|
70
|
+
params?: unknown;
|
|
71
|
+
}[];
|
|
37
72
|
}, {
|
|
38
73
|
name: string;
|
|
39
74
|
foreignRef: string;
|
|
@@ -41,6 +76,15 @@ export declare const sNotify: z.ZodObject<{
|
|
|
41
76
|
providerMetadata: {} & {
|
|
42
77
|
[k: string]: unknown;
|
|
43
78
|
};
|
|
79
|
+
presets: {
|
|
80
|
+
name: string;
|
|
81
|
+
id: string;
|
|
82
|
+
isDefault: boolean;
|
|
83
|
+
assignedRef: string | null;
|
|
84
|
+
createdOn: string;
|
|
85
|
+
lastModifiedOn: string;
|
|
86
|
+
params?: unknown;
|
|
87
|
+
}[];
|
|
44
88
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
45
89
|
type: z.ZodLiteral<"alarm">;
|
|
46
90
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -289,6 +333,15 @@ export declare const sNotify: z.ZodObject<{
|
|
|
289
333
|
providerMetadata: {} & {
|
|
290
334
|
[k: string]: unknown;
|
|
291
335
|
};
|
|
336
|
+
presets: {
|
|
337
|
+
name: string;
|
|
338
|
+
id: string;
|
|
339
|
+
isDefault: boolean;
|
|
340
|
+
assignedRef: string | null;
|
|
341
|
+
createdOn: string;
|
|
342
|
+
lastModifiedOn: string;
|
|
343
|
+
params?: unknown;
|
|
344
|
+
}[];
|
|
292
345
|
} & ({
|
|
293
346
|
type: "alarm";
|
|
294
347
|
} | {
|
|
@@ -375,6 +428,15 @@ export declare const sNotify: z.ZodObject<{
|
|
|
375
428
|
providerMetadata: {} & {
|
|
376
429
|
[k: string]: unknown;
|
|
377
430
|
};
|
|
431
|
+
presets: {
|
|
432
|
+
name: string;
|
|
433
|
+
id: string;
|
|
434
|
+
isDefault: boolean;
|
|
435
|
+
assignedRef: string | null;
|
|
436
|
+
createdOn: string;
|
|
437
|
+
lastModifiedOn: string;
|
|
438
|
+
params?: unknown;
|
|
439
|
+
}[];
|
|
378
440
|
} & ({
|
|
379
441
|
type: "alarm";
|
|
380
442
|
} | {
|
|
@@ -463,6 +525,15 @@ export declare const sNotify: z.ZodObject<{
|
|
|
463
525
|
providerMetadata: {} & {
|
|
464
526
|
[k: string]: unknown;
|
|
465
527
|
};
|
|
528
|
+
presets: {
|
|
529
|
+
name: string;
|
|
530
|
+
id: string;
|
|
531
|
+
isDefault: boolean;
|
|
532
|
+
assignedRef: string | null;
|
|
533
|
+
createdOn: string;
|
|
534
|
+
lastModifiedOn: string;
|
|
535
|
+
params?: unknown;
|
|
536
|
+
}[];
|
|
466
537
|
} & ({
|
|
467
538
|
type: "alarm";
|
|
468
539
|
} | {
|
|
@@ -552,6 +623,15 @@ export declare const sNotify: z.ZodObject<{
|
|
|
552
623
|
providerMetadata: {} & {
|
|
553
624
|
[k: string]: unknown;
|
|
554
625
|
};
|
|
626
|
+
presets: {
|
|
627
|
+
name: string;
|
|
628
|
+
id: string;
|
|
629
|
+
isDefault: boolean;
|
|
630
|
+
assignedRef: string | null;
|
|
631
|
+
createdOn: string;
|
|
632
|
+
lastModifiedOn: string;
|
|
633
|
+
params?: unknown;
|
|
634
|
+
}[];
|
|
555
635
|
} & ({
|
|
556
636
|
type: "alarm";
|
|
557
637
|
} | {
|
|
@@ -663,6 +743,32 @@ export declare const serverCommands: {
|
|
|
663
743
|
foreignRef: z.ZodString;
|
|
664
744
|
provider: z.ZodString;
|
|
665
745
|
providerMetadata: z.ZodObject<{}, "strip", z.ZodUnknown, z.objectOutputType<{}, z.ZodUnknown, "strip">, z.objectInputType<{}, z.ZodUnknown, "strip">>;
|
|
746
|
+
} & {
|
|
747
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
748
|
+
id: z.ZodString;
|
|
749
|
+
name: z.ZodString;
|
|
750
|
+
params: z.ZodUnknown;
|
|
751
|
+
isDefault: z.ZodBoolean;
|
|
752
|
+
assignedRef: z.ZodNullable<z.ZodString>;
|
|
753
|
+
createdOn: z.ZodString;
|
|
754
|
+
lastModifiedOn: z.ZodString;
|
|
755
|
+
}, "strip", z.ZodTypeAny, {
|
|
756
|
+
name: string;
|
|
757
|
+
id: string;
|
|
758
|
+
isDefault: boolean;
|
|
759
|
+
assignedRef: string | null;
|
|
760
|
+
createdOn: string;
|
|
761
|
+
lastModifiedOn: string;
|
|
762
|
+
params?: unknown;
|
|
763
|
+
}, {
|
|
764
|
+
name: string;
|
|
765
|
+
id: string;
|
|
766
|
+
isDefault: boolean;
|
|
767
|
+
assignedRef: string | null;
|
|
768
|
+
createdOn: string;
|
|
769
|
+
lastModifiedOn: string;
|
|
770
|
+
params?: unknown;
|
|
771
|
+
}>, "many">;
|
|
666
772
|
}, "strip", z.ZodTypeAny, {
|
|
667
773
|
name: string;
|
|
668
774
|
foreignRef: string;
|
|
@@ -670,6 +776,15 @@ export declare const serverCommands: {
|
|
|
670
776
|
providerMetadata: {} & {
|
|
671
777
|
[k: string]: unknown;
|
|
672
778
|
};
|
|
779
|
+
presets: {
|
|
780
|
+
name: string;
|
|
781
|
+
id: string;
|
|
782
|
+
isDefault: boolean;
|
|
783
|
+
assignedRef: string | null;
|
|
784
|
+
createdOn: string;
|
|
785
|
+
lastModifiedOn: string;
|
|
786
|
+
params?: unknown;
|
|
787
|
+
}[];
|
|
673
788
|
}, {
|
|
674
789
|
name: string;
|
|
675
790
|
foreignRef: string;
|
|
@@ -677,6 +792,15 @@ export declare const serverCommands: {
|
|
|
677
792
|
providerMetadata: {} & {
|
|
678
793
|
[k: string]: unknown;
|
|
679
794
|
};
|
|
795
|
+
presets: {
|
|
796
|
+
name: string;
|
|
797
|
+
id: string;
|
|
798
|
+
isDefault: boolean;
|
|
799
|
+
assignedRef: string | null;
|
|
800
|
+
createdOn: string;
|
|
801
|
+
lastModifiedOn: string;
|
|
802
|
+
params?: unknown;
|
|
803
|
+
}[];
|
|
680
804
|
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
681
805
|
type: z.ZodLiteral<"alarm">;
|
|
682
806
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -925,6 +1049,15 @@ export declare const serverCommands: {
|
|
|
925
1049
|
providerMetadata: {} & {
|
|
926
1050
|
[k: string]: unknown;
|
|
927
1051
|
};
|
|
1052
|
+
presets: {
|
|
1053
|
+
name: string;
|
|
1054
|
+
id: string;
|
|
1055
|
+
isDefault: boolean;
|
|
1056
|
+
assignedRef: string | null;
|
|
1057
|
+
createdOn: string;
|
|
1058
|
+
lastModifiedOn: string;
|
|
1059
|
+
params?: unknown;
|
|
1060
|
+
}[];
|
|
928
1061
|
} & ({
|
|
929
1062
|
type: "alarm";
|
|
930
1063
|
} | {
|
|
@@ -1011,6 +1144,15 @@ export declare const serverCommands: {
|
|
|
1011
1144
|
providerMetadata: {} & {
|
|
1012
1145
|
[k: string]: unknown;
|
|
1013
1146
|
};
|
|
1147
|
+
presets: {
|
|
1148
|
+
name: string;
|
|
1149
|
+
id: string;
|
|
1150
|
+
isDefault: boolean;
|
|
1151
|
+
assignedRef: string | null;
|
|
1152
|
+
createdOn: string;
|
|
1153
|
+
lastModifiedOn: string;
|
|
1154
|
+
params?: unknown;
|
|
1155
|
+
}[];
|
|
1014
1156
|
} & ({
|
|
1015
1157
|
type: "alarm";
|
|
1016
1158
|
} | {
|
|
@@ -1099,6 +1241,15 @@ export declare const serverCommands: {
|
|
|
1099
1241
|
providerMetadata: {} & {
|
|
1100
1242
|
[k: string]: unknown;
|
|
1101
1243
|
};
|
|
1244
|
+
presets: {
|
|
1245
|
+
name: string;
|
|
1246
|
+
id: string;
|
|
1247
|
+
isDefault: boolean;
|
|
1248
|
+
assignedRef: string | null;
|
|
1249
|
+
createdOn: string;
|
|
1250
|
+
lastModifiedOn: string;
|
|
1251
|
+
params?: unknown;
|
|
1252
|
+
}[];
|
|
1102
1253
|
} & ({
|
|
1103
1254
|
type: "alarm";
|
|
1104
1255
|
} | {
|
|
@@ -1188,6 +1339,15 @@ export declare const serverCommands: {
|
|
|
1188
1339
|
providerMetadata: {} & {
|
|
1189
1340
|
[k: string]: unknown;
|
|
1190
1341
|
};
|
|
1342
|
+
presets: {
|
|
1343
|
+
name: string;
|
|
1344
|
+
id: string;
|
|
1345
|
+
isDefault: boolean;
|
|
1346
|
+
assignedRef: string | null;
|
|
1347
|
+
createdOn: string;
|
|
1348
|
+
lastModifiedOn: string;
|
|
1349
|
+
params?: unknown;
|
|
1350
|
+
}[];
|
|
1191
1351
|
} & ({
|
|
1192
1352
|
type: "alarm";
|
|
1193
1353
|
} | {
|
package/dist/events/all.d.ts
CHANGED
|
@@ -10,12 +10,24 @@ import { ReaderEvent } from './reader';
|
|
|
10
10
|
import { ServerEvent } from './server';
|
|
11
11
|
import { NvrExporterEvent } from './nvr-exporter';
|
|
12
12
|
import { DeviceType } from '../device';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
import { NotificationSeverity } from 'src/primitives';
|
|
14
|
+
export declare const sDeviceCommandTriggered: z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"device-command">;
|
|
16
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
command: z.ZodString;
|
|
18
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
args: Record<string, unknown>;
|
|
21
|
+
kind: "device-command";
|
|
16
22
|
command: string;
|
|
17
|
-
|
|
18
|
-
}
|
|
23
|
+
userId?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
args: Record<string, unknown>;
|
|
26
|
+
kind: "device-command";
|
|
27
|
+
command: string;
|
|
28
|
+
userId?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type DeviceCommandTriggered = z.infer<typeof sDeviceCommandTriggered>;
|
|
19
31
|
export declare const sMotionDetected: z.ZodObject<{
|
|
20
32
|
kind: z.ZodLiteral<"motion-detected">;
|
|
21
33
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -24,15 +36,42 @@ export declare const sMotionDetected: z.ZodObject<{
|
|
|
24
36
|
kind: "motion-detected";
|
|
25
37
|
}>;
|
|
26
38
|
export type MotionDetectedEvent = z.infer<typeof sMotionDetected>;
|
|
27
|
-
export
|
|
28
|
-
kind:
|
|
29
|
-
clientId
|
|
39
|
+
export declare const sDeviceConnectedEvent: z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"device-connected">;
|
|
41
|
+
clientId: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
kind: "device-connected";
|
|
44
|
+
clientId?: number | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
kind: "device-connected";
|
|
47
|
+
clientId?: number | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export type DeviceConnectedEvent = z.infer<typeof sDeviceConnectedEvent>;
|
|
50
|
+
export declare const sDeviceDisconnectedEvent: z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"device-disconnected">;
|
|
52
|
+
clientId: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
kind: "device-disconnected";
|
|
55
|
+
clientId?: number | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
kind: "device-disconnected";
|
|
58
|
+
clientId?: number | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export type DeviceDisconnectedEvent = z.infer<typeof sDeviceDisconnectedEvent>;
|
|
61
|
+
export interface NotificationCreatedEvent {
|
|
62
|
+
kind: 'notification-created';
|
|
63
|
+
notificationId: string;
|
|
64
|
+
message: string;
|
|
65
|
+
severity: NotificationSeverity;
|
|
66
|
+
metadata: Record<string, unknown>;
|
|
67
|
+
notificationRef: string | null;
|
|
68
|
+
recipientId: string | null;
|
|
30
69
|
}
|
|
31
|
-
export interface
|
|
32
|
-
kind: '
|
|
33
|
-
|
|
70
|
+
export interface NotificationAcknowledgedEvent {
|
|
71
|
+
kind: 'notification-acknowledged';
|
|
72
|
+
notificationId: string;
|
|
34
73
|
}
|
|
35
|
-
export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | IntercomTerminalEvent | ServerEvent | PresenceTrackerEvent | IoBoardEvent | NvrExporterEvent;
|
|
74
|
+
export type AnyDeviceEvent = DeviceCommandTriggered | CameraEvent | DoorEvent | AlarmEvent | MotionDetectedEvent | ReaderEvent | PanicButtonEvent | DeviceConnectedEvent | DeviceDisconnectedEvent | NotificationCreatedEvent | NotificationAcknowledgedEvent | IntercomTerminalEvent | ServerEvent | PresenceTrackerEvent | IoBoardEvent | NvrExporterEvent;
|
|
36
75
|
export declare const sEventHeader: z.ZodObject<{
|
|
37
76
|
id: z.ZodString;
|
|
38
77
|
timestamp: z.ZodNumber;
|
|
@@ -60,6 +99,42 @@ export declare const eventSchemaByKind: {
|
|
|
60
99
|
}, {
|
|
61
100
|
kind: "motion-detected";
|
|
62
101
|
}>;
|
|
102
|
+
'device-command': z.ZodObject<{
|
|
103
|
+
kind: z.ZodLiteral<"device-command">;
|
|
104
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
command: z.ZodString;
|
|
106
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
args: Record<string, unknown>;
|
|
109
|
+
kind: "device-command";
|
|
110
|
+
command: string;
|
|
111
|
+
userId?: string | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
args: Record<string, unknown>;
|
|
114
|
+
kind: "device-command";
|
|
115
|
+
command: string;
|
|
116
|
+
userId?: string | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
'device-connected': z.ZodObject<{
|
|
119
|
+
kind: z.ZodLiteral<"device-connected">;
|
|
120
|
+
clientId: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
kind: "device-connected";
|
|
123
|
+
clientId?: number | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
kind: "device-connected";
|
|
126
|
+
clientId?: number | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
'device-disconnected': z.ZodObject<{
|
|
129
|
+
kind: z.ZodLiteral<"device-disconnected">;
|
|
130
|
+
clientId: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
kind: "device-disconnected";
|
|
133
|
+
clientId?: number | undefined;
|
|
134
|
+
}, {
|
|
135
|
+
kind: "device-disconnected";
|
|
136
|
+
clientId?: number | undefined;
|
|
137
|
+
}>;
|
|
63
138
|
'nvr-export-started': z.ZodObject<{
|
|
64
139
|
kind: z.ZodLiteral<"nvr-export-started">;
|
|
65
140
|
exportId: z.ZodString;
|
package/dist/events/all.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDeviceEvent = exports.eventsByDeviceType = exports.eventSchemaByKind = exports.eventKindLabels = exports.sEventHeader = exports.sMotionDetected = void 0;
|
|
3
|
+
exports.isDeviceEvent = exports.eventsByDeviceType = exports.eventSchemaByKind = exports.eventKindLabels = exports.sEventHeader = exports.sDeviceDisconnectedEvent = exports.sDeviceConnectedEvent = exports.sMotionDetected = exports.sDeviceCommandTriggered = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const alarm_1 = require("./alarm");
|
|
6
6
|
const camera_1 = require("./camera");
|
|
@@ -11,9 +11,23 @@ const panic_button_1 = require("./panic-button");
|
|
|
11
11
|
const presence_tracker_1 = require("./presence-tracker");
|
|
12
12
|
const reader_1 = require("./reader");
|
|
13
13
|
const nvr_exporter_1 = require("./nvr-exporter");
|
|
14
|
+
exports.sDeviceCommandTriggered = zod_1.z.object({
|
|
15
|
+
kind: zod_1.z.literal('device-command'),
|
|
16
|
+
userId: zod_1.z.string().nonempty().optional(),
|
|
17
|
+
command: zod_1.z.string().nonempty(),
|
|
18
|
+
args: zod_1.z.record(zod_1.z.unknown()),
|
|
19
|
+
});
|
|
14
20
|
exports.sMotionDetected = zod_1.z.object({
|
|
15
21
|
kind: zod_1.z.literal('motion-detected'),
|
|
16
22
|
});
|
|
23
|
+
exports.sDeviceConnectedEvent = zod_1.z.object({
|
|
24
|
+
kind: zod_1.z.literal('device-connected'),
|
|
25
|
+
clientId: zod_1.z.number().int().positive().optional(),
|
|
26
|
+
});
|
|
27
|
+
exports.sDeviceDisconnectedEvent = zod_1.z.object({
|
|
28
|
+
kind: zod_1.z.literal('device-disconnected'),
|
|
29
|
+
clientId: zod_1.z.number().int().positive().optional(),
|
|
30
|
+
});
|
|
17
31
|
exports.sEventHeader = zod_1.z.object({
|
|
18
32
|
id: zod_1.z.string().nonempty(),
|
|
19
33
|
timestamp: zod_1.z.number().int().positive(),
|
|
@@ -65,6 +79,8 @@ exports.eventKindLabels = {
|
|
|
65
79
|
'door-closed': 'Door Closed',
|
|
66
80
|
'nvr-export-started': 'NVR Export Started',
|
|
67
81
|
'nvr-export-deleted': 'NVR Export Deleted',
|
|
82
|
+
'notification-created': 'Notification Created',
|
|
83
|
+
'notification-acknowledged': 'Notification Acknowledged',
|
|
68
84
|
};
|
|
69
85
|
exports.eventSchemaByKind = {
|
|
70
86
|
...alarm_1.alarmEventSchemasByKind,
|
|
@@ -77,6 +93,9 @@ exports.eventSchemaByKind = {
|
|
|
77
93
|
...reader_1.readerEventSchemaByKind,
|
|
78
94
|
...nvr_exporter_1.nvrExporterEventSchemasByKind,
|
|
79
95
|
'motion-detected': exports.sMotionDetected,
|
|
96
|
+
'device-command': exports.sDeviceCommandTriggered,
|
|
97
|
+
'device-connected': exports.sDeviceConnectedEvent,
|
|
98
|
+
'device-disconnected': exports.sDeviceDisconnectedEvent,
|
|
80
99
|
};
|
|
81
100
|
exports.eventsByDeviceType = {
|
|
82
101
|
camera: [
|