@awarevue/api-types 2.0.94 → 2.0.96

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.
@@ -68,6 +68,8 @@ export declare const sRegisterRq: z.ZodObject<{
68
68
  card: "card";
69
69
  pin: "pin";
70
70
  fingerprint: "fingerprint";
71
+ face: "face";
72
+ retina: "retina";
71
73
  }>;
72
74
  regex: z.ZodOptional<z.ZodString>;
73
75
  formatDescription: z.ZodOptional<z.ZodString>;
@@ -228,6 +230,13 @@ export declare const sRunCommandRq: z.ZodObject<{
228
230
  }, z.core.$strip>, z.ZodObject<{
229
231
  type: z.ZodLiteral<"presence-tracker">;
230
232
  }, z.core.$strip>, z.ZodObject<{
233
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
234
+ card: "card";
235
+ pin: "pin";
236
+ fingerprint: "fingerprint";
237
+ face: "face";
238
+ retina: "retina";
239
+ }>>>;
231
240
  type: z.ZodLiteral<"reader">;
232
241
  }, z.core.$strip>, z.ZodObject<{
233
242
  type: z.ZodLiteral<"display">;
@@ -349,6 +358,13 @@ export declare const sQueryRq: z.ZodObject<{
349
358
  }, z.core.$strip>, z.ZodObject<{
350
359
  type: z.ZodLiteral<"presence-tracker">;
351
360
  }, z.core.$strip>, z.ZodObject<{
361
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
362
+ card: "card";
363
+ pin: "pin";
364
+ fingerprint: "fingerprint";
365
+ face: "face";
366
+ retina: "retina";
367
+ }>>>;
352
368
  type: z.ZodLiteral<"reader">;
353
369
  }, z.core.$strip>, z.ZodObject<{
354
370
  type: z.ZodLiteral<"display">;
@@ -474,6 +490,13 @@ export declare const sPushFile: z.ZodObject<{
474
490
  }, z.core.$strip>, z.ZodObject<{
475
491
  type: z.ZodLiteral<"presence-tracker">;
476
492
  }, z.core.$strip>, z.ZodObject<{
493
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
494
+ card: "card";
495
+ pin: "pin";
496
+ fingerprint: "fingerprint";
497
+ face: "face";
498
+ retina: "retina";
499
+ }>>>;
477
500
  type: z.ZodLiteral<"reader">;
478
501
  }, z.core.$strip>, z.ZodObject<{
479
502
  type: z.ZodLiteral<"display">;
@@ -610,6 +633,13 @@ export declare const sGetAvailableDevicesRs: z.ZodObject<{
610
633
  }, z.core.$strip>, z.ZodObject<{
611
634
  type: z.ZodLiteral<"presence-tracker">;
612
635
  }, z.core.$strip>, z.ZodObject<{
636
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
637
+ card: "card";
638
+ pin: "pin";
639
+ fingerprint: "fingerprint";
640
+ face: "face";
641
+ retina: "retina";
642
+ }>>>;
613
643
  type: z.ZodLiteral<"reader">;
614
644
  }, z.core.$strip>, z.ZodObject<{
615
645
  type: z.ZodLiteral<"display">;
@@ -661,6 +691,8 @@ export declare const sExternalPersonProps: z.ZodObject<{
661
691
  card: "card";
662
692
  pin: "pin";
663
693
  fingerprint: "fingerprint";
694
+ face: "face";
695
+ retina: "retina";
664
696
  }>;
665
697
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
666
698
  }, z.core.$strip>>;
@@ -719,6 +751,8 @@ export declare const sExternalObjectProps: z.ZodObject<{
719
751
  card: "card";
720
752
  pin: "pin";
721
753
  fingerprint: "fingerprint";
754
+ face: "face";
755
+ retina: "retina";
722
756
  }>;
723
757
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
724
758
  }, z.core.$strip>>;
@@ -865,6 +899,8 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
865
899
  card: "card";
866
900
  pin: "pin";
867
901
  fingerprint: "fingerprint";
902
+ face: "face";
903
+ retina: "retina";
868
904
  }>;
869
905
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
870
906
  }, z.core.$strip>>;
@@ -880,6 +916,8 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
880
916
  card: "card";
881
917
  pin: "pin";
882
918
  fingerprint: "fingerprint";
919
+ face: "face";
920
+ retina: "retina";
883
921
  }>;
884
922
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
885
923
  }, z.core.$strip>>>;
@@ -958,6 +996,8 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
958
996
  card: "card";
959
997
  pin: "pin";
960
998
  fingerprint: "fingerprint";
999
+ face: "face";
1000
+ retina: "retina";
961
1001
  }>;
962
1002
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
963
1003
  }, z.core.$strip>>;
@@ -1070,6 +1110,8 @@ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [
1070
1110
  card: "card";
1071
1111
  pin: "pin";
1072
1112
  fingerprint: "fingerprint";
1113
+ face: "face";
1114
+ retina: "retina";
1073
1115
  }>;
1074
1116
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1075
1117
  }, z.core.$strip>>;
@@ -1085,6 +1127,8 @@ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [
1085
1127
  card: "card";
1086
1128
  pin: "pin";
1087
1129
  fingerprint: "fingerprint";
1130
+ face: "face";
1131
+ retina: "retina";
1088
1132
  }>;
1089
1133
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1090
1134
  }, z.core.$strip>>>;
@@ -1162,6 +1206,8 @@ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [
1162
1206
  card: "card";
1163
1207
  pin: "pin";
1164
1208
  fingerprint: "fingerprint";
1209
+ face: "face";
1210
+ retina: "retina";
1165
1211
  }>;
1166
1212
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1167
1213
  }, z.core.$strip>>;
@@ -1293,6 +1339,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
1293
1339
  card: "card";
1294
1340
  pin: "pin";
1295
1341
  fingerprint: "fingerprint";
1342
+ face: "face";
1343
+ retina: "retina";
1296
1344
  }>;
1297
1345
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1298
1346
  }, z.core.$strip>>;
@@ -1308,6 +1356,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
1308
1356
  card: "card";
1309
1357
  pin: "pin";
1310
1358
  fingerprint: "fingerprint";
1359
+ face: "face";
1360
+ retina: "retina";
1311
1361
  }>;
1312
1362
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1313
1363
  }, z.core.$strip>>>;
@@ -1385,6 +1435,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
1385
1435
  card: "card";
1386
1436
  pin: "pin";
1387
1437
  fingerprint: "fingerprint";
1438
+ face: "face";
1439
+ retina: "retina";
1388
1440
  }>;
1389
1441
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1390
1442
  }, z.core.$strip>>;
@@ -1560,6 +1612,8 @@ export declare const sApplyChange: z.ZodObject<{
1560
1612
  card: "card";
1561
1613
  pin: "pin";
1562
1614
  fingerprint: "fingerprint";
1615
+ face: "face";
1616
+ retina: "retina";
1563
1617
  }>;
1564
1618
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1565
1619
  }, z.core.$strip>>;
@@ -1575,6 +1629,8 @@ export declare const sApplyChange: z.ZodObject<{
1575
1629
  card: "card";
1576
1630
  pin: "pin";
1577
1631
  fingerprint: "fingerprint";
1632
+ face: "face";
1633
+ retina: "retina";
1578
1634
  }>;
1579
1635
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1580
1636
  }, z.core.$strip>>>;
@@ -1652,6 +1708,8 @@ export declare const sApplyChange: z.ZodObject<{
1652
1708
  card: "card";
1653
1709
  pin: "pin";
1654
1710
  fingerprint: "fingerprint";
1711
+ face: "face";
1712
+ retina: "retina";
1655
1713
  }>;
1656
1714
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1657
1715
  }, z.core.$strip>>;
@@ -1759,6 +1817,8 @@ export declare const sDescribeObjectRs: z.ZodObject<{
1759
1817
  card: "card";
1760
1818
  pin: "pin";
1761
1819
  fingerprint: "fingerprint";
1820
+ face: "face";
1821
+ retina: "retina";
1762
1822
  }>;
1763
1823
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1764
1824
  }, z.core.$strip>>;
@@ -125,6 +125,13 @@ export declare const commandSchemas: {
125
125
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
126
126
  type: import("zod").ZodLiteral<"presence-tracker">;
127
127
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
128
+ credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
129
+ card: "card";
130
+ pin: "pin";
131
+ fingerprint: "fingerprint";
132
+ face: "face";
133
+ retina: "retina";
134
+ }>>>;
128
135
  type: import("zod").ZodLiteral<"reader">;
129
136
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
130
137
  type: import("zod").ZodLiteral<"display">;
@@ -250,6 +257,13 @@ export declare const commandSchemas: {
250
257
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
251
258
  type: import("zod").ZodLiteral<"presence-tracker">;
252
259
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
260
+ credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
261
+ card: "card";
262
+ pin: "pin";
263
+ fingerprint: "fingerprint";
264
+ face: "face";
265
+ retina: "retina";
266
+ }>>>;
253
267
  type: import("zod").ZodLiteral<"reader">;
254
268
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
255
269
  type: import("zod").ZodLiteral<"display">;
@@ -375,6 +389,13 @@ export declare const commandSchemas: {
375
389
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
376
390
  type: import("zod").ZodLiteral<"presence-tracker">;
377
391
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
392
+ credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
393
+ card: "card";
394
+ pin: "pin";
395
+ fingerprint: "fingerprint";
396
+ face: "face";
397
+ retina: "retina";
398
+ }>>>;
378
399
  type: import("zod").ZodLiteral<"reader">;
379
400
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
380
401
  type: import("zod").ZodLiteral<"display">;
@@ -491,6 +512,13 @@ export declare const commandSchemas: {
491
512
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
492
513
  type: import("zod").ZodLiteral<"presence-tracker">;
493
514
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
515
+ credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
516
+ card: "card";
517
+ pin: "pin";
518
+ fingerprint: "fingerprint";
519
+ face: "face";
520
+ retina: "retina";
521
+ }>>>;
494
522
  type: import("zod").ZodLiteral<"reader">;
495
523
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
496
524
  type: import("zod").ZodLiteral<"display">;
@@ -607,6 +635,13 @@ export declare const commandSchemas: {
607
635
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
608
636
  type: import("zod").ZodLiteral<"presence-tracker">;
609
637
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
638
+ credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
639
+ card: "card";
640
+ pin: "pin";
641
+ fingerprint: "fingerprint";
642
+ face: "face";
643
+ retina: "retina";
644
+ }>>>;
610
645
  type: import("zod").ZodLiteral<"reader">;
611
646
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
612
647
  type: import("zod").ZodLiteral<"display">;
@@ -726,6 +761,13 @@ export declare const commandSchemas: {
726
761
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
727
762
  type: import("zod").ZodLiteral<"presence-tracker">;
728
763
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
764
+ credentialTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
765
+ card: "card";
766
+ pin: "pin";
767
+ fingerprint: "fingerprint";
768
+ face: "face";
769
+ retina: "retina";
770
+ }>>>;
729
771
  type: import("zod").ZodLiteral<"reader">;
730
772
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
731
773
  type: import("zod").ZodLiteral<"display">;
@@ -101,6 +101,13 @@ export declare const sStartExportCommand: z.ZodObject<{
101
101
  }, z.core.$strip>, z.ZodObject<{
102
102
  type: z.ZodLiteral<"presence-tracker">;
103
103
  }, z.core.$strip>, z.ZodObject<{
104
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
105
+ card: "card";
106
+ pin: "pin";
107
+ fingerprint: "fingerprint";
108
+ face: "face";
109
+ retina: "retina";
110
+ }>>>;
104
111
  type: z.ZodLiteral<"reader">;
105
112
  }, z.core.$strip>, z.ZodObject<{
106
113
  type: z.ZodLiteral<"display">;
@@ -231,6 +238,13 @@ export declare const nvrExporterCommandSchemas: {
231
238
  }, z.core.$strip>, z.ZodObject<{
232
239
  type: z.ZodLiteral<"presence-tracker">;
233
240
  }, z.core.$strip>, z.ZodObject<{
241
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
242
+ card: "card";
243
+ pin: "pin";
244
+ fingerprint: "fingerprint";
245
+ face: "face";
246
+ retina: "retina";
247
+ }>>>;
234
248
  type: z.ZodLiteral<"reader">;
235
249
  }, z.core.$strip>, z.ZodObject<{
236
250
  type: z.ZodLiteral<"display">;
@@ -100,6 +100,13 @@ export declare const sMountStreamCommand: z.ZodObject<{
100
100
  }, z.core.$strip>, z.ZodObject<{
101
101
  type: z.ZodLiteral<"presence-tracker">;
102
102
  }, z.core.$strip>, z.ZodObject<{
103
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
104
+ card: "card";
105
+ pin: "pin";
106
+ fingerprint: "fingerprint";
107
+ face: "face";
108
+ retina: "retina";
109
+ }>>>;
103
110
  type: z.ZodLiteral<"reader">;
104
111
  }, z.core.$strip>, z.ZodObject<{
105
112
  type: z.ZodLiteral<"display">;
@@ -220,6 +227,13 @@ export declare const sUnmountStreamCommand: z.ZodObject<{
220
227
  }, z.core.$strip>, z.ZodObject<{
221
228
  type: z.ZodLiteral<"presence-tracker">;
222
229
  }, z.core.$strip>, z.ZodObject<{
230
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
231
+ card: "card";
232
+ pin: "pin";
233
+ fingerprint: "fingerprint";
234
+ face: "face";
235
+ retina: "retina";
236
+ }>>>;
223
237
  type: z.ZodLiteral<"reader">;
224
238
  }, z.core.$strip>, z.ZodObject<{
225
239
  type: z.ZodLiteral<"display">;
@@ -337,6 +351,13 @@ export declare const sStartRecordingCommand: z.ZodObject<{
337
351
  }, z.core.$strip>, z.ZodObject<{
338
352
  type: z.ZodLiteral<"presence-tracker">;
339
353
  }, z.core.$strip>, z.ZodObject<{
354
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
355
+ card: "card";
356
+ pin: "pin";
357
+ fingerprint: "fingerprint";
358
+ face: "face";
359
+ retina: "retina";
360
+ }>>>;
340
361
  type: z.ZodLiteral<"reader">;
341
362
  }, z.core.$strip>, z.ZodObject<{
342
363
  type: z.ZodLiteral<"display">;
@@ -454,6 +475,13 @@ export declare const sStopRecordingCommand: z.ZodObject<{
454
475
  }, z.core.$strip>, z.ZodObject<{
455
476
  type: z.ZodLiteral<"presence-tracker">;
456
477
  }, z.core.$strip>, z.ZodObject<{
478
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
479
+ card: "card";
480
+ pin: "pin";
481
+ fingerprint: "fingerprint";
482
+ face: "face";
483
+ retina: "retina";
484
+ }>>>;
457
485
  type: z.ZodLiteral<"reader">;
458
486
  }, z.core.$strip>, z.ZodObject<{
459
487
  type: z.ZodLiteral<"display">;
@@ -573,6 +601,13 @@ export declare const nvrRecorderCommandSchemas: {
573
601
  }, z.core.$strip>, z.ZodObject<{
574
602
  type: z.ZodLiteral<"presence-tracker">;
575
603
  }, z.core.$strip>, z.ZodObject<{
604
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
605
+ card: "card";
606
+ pin: "pin";
607
+ fingerprint: "fingerprint";
608
+ face: "face";
609
+ retina: "retina";
610
+ }>>>;
576
611
  type: z.ZodLiteral<"reader">;
577
612
  }, z.core.$strip>, z.ZodObject<{
578
613
  type: z.ZodLiteral<"display">;
@@ -689,6 +724,13 @@ export declare const nvrRecorderCommandSchemas: {
689
724
  }, z.core.$strip>, z.ZodObject<{
690
725
  type: z.ZodLiteral<"presence-tracker">;
691
726
  }, z.core.$strip>, z.ZodObject<{
727
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
728
+ card: "card";
729
+ pin: "pin";
730
+ fingerprint: "fingerprint";
731
+ face: "face";
732
+ retina: "retina";
733
+ }>>>;
692
734
  type: z.ZodLiteral<"reader">;
693
735
  }, z.core.$strip>, z.ZodObject<{
694
736
  type: z.ZodLiteral<"display">;
@@ -805,6 +847,13 @@ export declare const nvrRecorderCommandSchemas: {
805
847
  }, z.core.$strip>, z.ZodObject<{
806
848
  type: z.ZodLiteral<"presence-tracker">;
807
849
  }, z.core.$strip>, z.ZodObject<{
850
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
851
+ card: "card";
852
+ pin: "pin";
853
+ fingerprint: "fingerprint";
854
+ face: "face";
855
+ retina: "retina";
856
+ }>>>;
808
857
  type: z.ZodLiteral<"reader">;
809
858
  }, z.core.$strip>, z.ZodObject<{
810
859
  type: z.ZodLiteral<"display">;
@@ -924,6 +973,13 @@ export declare const nvrRecorderCommandSchemas: {
924
973
  }, z.core.$strip>, z.ZodObject<{
925
974
  type: z.ZodLiteral<"presence-tracker">;
926
975
  }, z.core.$strip>, z.ZodObject<{
976
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
977
+ card: "card";
978
+ pin: "pin";
979
+ fingerprint: "fingerprint";
980
+ face: "face";
981
+ retina: "retina";
982
+ }>>>;
927
983
  type: z.ZodLiteral<"reader">;
928
984
  }, z.core.$strip>, z.ZodObject<{
929
985
  type: z.ZodLiteral<"display">;
@@ -106,6 +106,13 @@ export declare const sNotify: z.ZodObject<{
106
106
  }, z.core.$strip>, z.ZodObject<{
107
107
  type: z.ZodLiteral<"presence-tracker">;
108
108
  }, z.core.$strip>, z.ZodObject<{
109
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
110
+ card: "card";
111
+ pin: "pin";
112
+ fingerprint: "fingerprint";
113
+ face: "face";
114
+ retina: "retina";
115
+ }>>>;
109
116
  type: z.ZodLiteral<"reader">;
110
117
  }, z.core.$strip>, z.ZodObject<{
111
118
  type: z.ZodLiteral<"display">;
@@ -239,6 +246,13 @@ export declare const serverCommands: {
239
246
  }, z.core.$strip>, z.ZodObject<{
240
247
  type: z.ZodLiteral<"presence-tracker">;
241
248
  }, z.core.$strip>, z.ZodObject<{
249
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
250
+ card: "card";
251
+ pin: "pin";
252
+ fingerprint: "fingerprint";
253
+ face: "face";
254
+ retina: "retina";
255
+ }>>>;
242
256
  type: z.ZodLiteral<"reader">;
243
257
  }, z.core.$strip>, z.ZodObject<{
244
258
  type: z.ZodLiteral<"display">;
@@ -38,6 +38,8 @@ export declare const sTokenLimitExceededMeta: z.ZodObject<{
38
38
  card: "card";
39
39
  pin: "pin";
40
40
  fingerprint: "fingerprint";
41
+ face: "face";
42
+ retina: "retina";
41
43
  }>;
42
44
  }, z.core.$strip>;
43
45
  export type VoidMeta = z.infer<typeof sVoidMeta>;
@@ -180,6 +182,8 @@ export declare const errorMetadataSchemas: {
180
182
  card: "card";
181
183
  pin: "pin";
182
184
  fingerprint: "fingerprint";
185
+ face: "face";
186
+ retina: "retina";
183
187
  }>;
184
188
  }, z.core.$strip>;
185
189
  readonly TOKEN_IN_USE: z.ZodObject<{
package/dist/api/error.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.errorMetadataSchemas = exports.AppErrorCode = exports.sTokenLimitExceededMeta = exports.sTokenInvalidFormatMeta = exports.sZoneAccessRuleConflictMeta = exports.sAccessRuleConflictMeta = exports.sVoidMeta = exports.sConflictMeta = exports.sInvalidMeta = exports.sNotFoundMeta = exports.sDuplicateMeta = void 0;
4
4
  exports.isErrorResponse = isErrorResponse;
5
5
  const zod_1 = require("zod");
6
- const credential_1 = require("../objects/credential");
6
+ const primitives_1 = require("../primitives");
7
7
  // METADATA
8
8
  exports.sDuplicateMeta = zod_1.z.object({
9
9
  subject: zod_1.z.string(),
@@ -40,7 +40,7 @@ exports.sTokenInvalidFormatMeta = zod_1.z.object({
40
40
  });
41
41
  exports.sTokenLimitExceededMeta = zod_1.z.object({
42
42
  limit: zod_1.z.number(),
43
- type: credential_1.sCredentialType,
43
+ type: primitives_1.sCredentialType,
44
44
  });
45
45
  // ERROR CODES
46
46
  var AppErrorCode;
@@ -145,6 +145,8 @@ export declare const eventSchemaByKind: {
145
145
  card: "card";
146
146
  pin: "pin";
147
147
  fingerprint: "fingerprint";
148
+ face: "face";
149
+ retina: "retina";
148
150
  }>>;
149
151
  allowed: z.ZodBoolean;
150
152
  doorExit: z.ZodBoolean;
@@ -7,6 +7,8 @@ export declare const sDoorAccessEvent: z.ZodObject<{
7
7
  card: "card";
8
8
  pin: "pin";
9
9
  fingerprint: "fingerprint";
10
+ face: "face";
11
+ retina: "retina";
10
12
  }>>;
11
13
  allowed: z.ZodBoolean;
12
14
  doorExit: z.ZodBoolean;
@@ -54,6 +56,8 @@ export declare const doorEventSchemaByKind: {
54
56
  card: "card";
55
57
  pin: "pin";
56
58
  fingerprint: "fingerprint";
59
+ face: "face";
60
+ retina: "retina";
57
61
  }>>;
58
62
  allowed: z.ZodBoolean;
59
63
  doorExit: z.ZodBoolean;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.doorEventSchemaByKind = exports.sDoorTamperRestoredEvent = exports.sDoorAcuOnlineEvent = exports.sDoorMainsRestoredEvent = exports.sDoorAcuNotRespondingEvent = exports.sDoorMainsFailedEvent = exports.sDoorRelockEvent = exports.sDoorLeftOpenEvent = exports.sDoorTamperEvent = exports.sDoorForceEvent = exports.sDoorClosed = exports.sDoorOpened = exports.sDoorAccessEvent = void 0;
4
- const credential_1 = require("../../objects/credential");
5
4
  const zod_1 = require("zod");
6
5
  const primitives_1 = require("../../primitives");
7
6
  // EVENTS
@@ -9,7 +8,7 @@ exports.sDoorAccessEvent = zod_1.z.object({
9
8
  kind: zod_1.z.literal('door-access'),
10
9
  personId: primitives_1.sPersonId.optional(),
11
10
  token: zod_1.z.string().nullable(),
12
- tokenType: credential_1.sCredentialType.nullable(),
11
+ tokenType: primitives_1.sCredentialType.nullable(),
13
12
  allowed: zod_1.z.boolean(),
14
13
  doorExit: zod_1.z.boolean(),
15
14
  description: zod_1.z.string(),
@@ -3,6 +3,7 @@ import { CameraQueryRequestMap, CameraQueryResponseMap } from './camera';
3
3
  import { NvrAnalyticsQueryRequestMap, NvrAnalyticsQueryResponseMap } from './nvr-analytics-server';
4
4
  import { NvrExporterQueryRequestMap, NvrExporterQueryResponseMap } from './nvr-exporter';
5
5
  import { NvrRecorderQueryRequestMap, NvrRecorderQueryResponseMap } from './nvr-recorder';
6
+ import { ReaderQueryRequestMap, ReaderQueryResponseMap } from './reader';
6
7
  export declare const sEventCapsQueryArgs: z.ZodObject<{}, z.core.$strip>;
7
8
  export type EventCapsQueryArgs = z.infer<typeof sEventCapsQueryArgs>;
8
9
  export declare const QUERY_EVENT_CAPS = "device:event-caps";
@@ -10,6 +11,10 @@ export declare const sEventCapsQueryResponse: z.ZodArray<z.ZodString>;
10
11
  export type EventCapsQueryResponse = z.infer<typeof sEventCapsQueryResponse>;
11
12
  export declare const requestSchemasByType: {
12
13
  readonly "device:event-caps": z.ZodObject<{}, z.core.$strip>;
14
+ readonly "device:capture": z.ZodObject<{
15
+ type: z.ZodString;
16
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17
+ }, z.core.$strip>;
13
18
  readonly "cctv:media-search": z.ZodObject<{
14
19
  devices: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodAny>>>;
15
20
  limit: z.ZodOptional<z.ZodNumber>;
@@ -162,6 +167,13 @@ export declare const requestSchemasByType: {
162
167
  }, z.core.$strip>, z.ZodObject<{
163
168
  type: z.ZodLiteral<"presence-tracker">;
164
169
  }, z.core.$strip>, z.ZodObject<{
170
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
171
+ card: "card";
172
+ pin: "pin";
173
+ fingerprint: "fingerprint";
174
+ face: "face";
175
+ retina: "retina";
176
+ }>>>;
165
177
  type: z.ZodLiteral<"reader">;
166
178
  }, z.core.$strip>, z.ZodObject<{
167
179
  type: z.ZodLiteral<"display">;
@@ -277,6 +289,13 @@ export declare const requestSchemasByType: {
277
289
  }, z.core.$strip>, z.ZodObject<{
278
290
  type: z.ZodLiteral<"presence-tracker">;
279
291
  }, z.core.$strip>, z.ZodObject<{
292
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
293
+ card: "card";
294
+ pin: "pin";
295
+ fingerprint: "fingerprint";
296
+ face: "face";
297
+ retina: "retina";
298
+ }>>>;
280
299
  type: z.ZodLiteral<"reader">;
281
300
  }, z.core.$strip>, z.ZodObject<{
282
301
  type: z.ZodLiteral<"display">;
@@ -392,6 +411,13 @@ export declare const requestSchemasByType: {
392
411
  }, z.core.$strip>, z.ZodObject<{
393
412
  type: z.ZodLiteral<"presence-tracker">;
394
413
  }, z.core.$strip>, z.ZodObject<{
414
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
415
+ card: "card";
416
+ pin: "pin";
417
+ fingerprint: "fingerprint";
418
+ face: "face";
419
+ retina: "retina";
420
+ }>>>;
395
421
  type: z.ZodLiteral<"reader">;
396
422
  }, z.core.$strip>, z.ZodObject<{
397
423
  type: z.ZodLiteral<"display">;
@@ -411,6 +437,7 @@ export declare const requestSchemasByType: {
411
437
  };
412
438
  export declare const responseSchemasByType: {
413
439
  readonly "device:event-caps": z.ZodArray<z.ZodString>;
440
+ readonly "device:capture": z.ZodRecord<z.ZodString, z.ZodAny>;
414
441
  readonly "cctv:media-search": z.ZodArray<z.ZodObject<{
415
442
  relevance: z.ZodNumber;
416
443
  providerAssignedRef: z.ZodString;
@@ -488,10 +515,10 @@ export declare const responseSchemasByType: {
488
515
  data: z.ZodString;
489
516
  }, z.core.$strip>>;
490
517
  };
491
- export type QueryRequestMap = NvrAnalyticsQueryRequestMap & NvrRecorderQueryRequestMap & CameraQueryRequestMap & NvrExporterQueryRequestMap & {
518
+ export type QueryRequestMap = NvrAnalyticsQueryRequestMap & NvrRecorderQueryRequestMap & CameraQueryRequestMap & ReaderQueryRequestMap & NvrExporterQueryRequestMap & {
492
519
  [QUERY_EVENT_CAPS]: EventCapsQueryArgs;
493
520
  };
494
- export type QueryResponseMap = NvrAnalyticsQueryResponseMap & NvrRecorderQueryResponseMap & CameraQueryResponseMap & NvrExporterQueryResponseMap & {
521
+ export type QueryResponseMap = NvrAnalyticsQueryResponseMap & NvrRecorderQueryResponseMap & CameraQueryResponseMap & ReaderQueryResponseMap & NvrExporterQueryResponseMap & {
495
522
  [QUERY_EVENT_CAPS]: EventCapsQueryResponse;
496
523
  };
497
524
  export type QueryType = keyof QueryRequestMap;
@@ -6,6 +6,7 @@ const camera_1 = require("./camera");
6
6
  const nvr_analytics_server_1 = require("./nvr-analytics-server");
7
7
  const nvr_exporter_1 = require("./nvr-exporter");
8
8
  const nvr_recorder_1 = require("./nvr-recorder");
9
+ const reader_1 = require("./reader");
9
10
  // queries that apply to all devices
10
11
  exports.sEventCapsQueryArgs = zod_1.z.object({});
11
12
  exports.QUERY_EVENT_CAPS = 'device:event-caps';
@@ -16,6 +17,7 @@ exports.requestSchemasByType = {
16
17
  ...nvr_exporter_1.nvrExporterRequestSchemas,
17
18
  ...nvr_analytics_server_1.nvrAnalyticsRequestSchemas,
18
19
  ...camera_1.cameraRequestSchemas,
20
+ ...reader_1.readerRequestSchemas,
19
21
  [exports.QUERY_EVENT_CAPS]: exports.sEventCapsQueryArgs,
20
22
  };
21
23
  // Dictionary of response schemas by query type
@@ -24,5 +26,6 @@ exports.responseSchemasByType = {
24
26
  ...nvr_exporter_1.nvrExporterResponseSchemas,
25
27
  ...nvr_analytics_server_1.nvrAnalyticsResponseSchemas,
26
28
  ...camera_1.cameraResponseSchemas,
29
+ ...reader_1.readerResponseSchemas,
27
30
  [exports.QUERY_EVENT_CAPS]: exports.sEventCapsQueryResponse,
28
31
  };
@@ -2,4 +2,5 @@ export * from './camera';
2
2
  export * from './nvr-analytics-server';
3
3
  export * from './nvr-exporter';
4
4
  export * from './nvr-recorder';
5
+ export * from './reader';
5
6
  export * from './all';
@@ -18,4 +18,5 @@ __exportStar(require("./camera"), exports);
18
18
  __exportStar(require("./nvr-analytics-server"), exports);
19
19
  __exportStar(require("./nvr-exporter"), exports);
20
20
  __exportStar(require("./nvr-recorder"), exports);
21
+ __exportStar(require("./reader"), exports);
21
22
  __exportStar(require("./all"), exports);
@@ -99,6 +99,13 @@ export declare const sRecordingsByTimeRangeArgs: z.ZodObject<{
99
99
  }, z.core.$strip>, z.ZodObject<{
100
100
  type: z.ZodLiteral<"presence-tracker">;
101
101
  }, z.core.$strip>, z.ZodObject<{
102
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
103
+ card: "card";
104
+ pin: "pin";
105
+ fingerprint: "fingerprint";
106
+ face: "face";
107
+ retina: "retina";
108
+ }>>>;
102
109
  type: z.ZodLiteral<"reader">;
103
110
  }, z.core.$strip>, z.ZodObject<{
104
111
  type: z.ZodLiteral<"display">;
@@ -223,6 +230,13 @@ export declare const sPreviewImageArgs: z.ZodObject<{
223
230
  }, z.core.$strip>, z.ZodObject<{
224
231
  type: z.ZodLiteral<"presence-tracker">;
225
232
  }, z.core.$strip>, z.ZodObject<{
233
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
234
+ card: "card";
235
+ pin: "pin";
236
+ fingerprint: "fingerprint";
237
+ face: "face";
238
+ retina: "retina";
239
+ }>>>;
226
240
  type: z.ZodLiteral<"reader">;
227
241
  }, z.core.$strip>, z.ZodObject<{
228
242
  type: z.ZodLiteral<"display">;
@@ -345,6 +359,13 @@ export declare const sCameraLatestFrameArgs: z.ZodObject<{
345
359
  }, z.core.$strip>, z.ZodObject<{
346
360
  type: z.ZodLiteral<"presence-tracker">;
347
361
  }, z.core.$strip>, z.ZodObject<{
362
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
363
+ card: "card";
364
+ pin: "pin";
365
+ fingerprint: "fingerprint";
366
+ face: "face";
367
+ retina: "retina";
368
+ }>>>;
348
369
  type: z.ZodLiteral<"reader">;
349
370
  }, z.core.$strip>, z.ZodObject<{
350
371
  type: z.ZodLiteral<"display">;
@@ -467,6 +488,13 @@ export declare const nvrRecorderRequestSchemas: {
467
488
  }, z.core.$strip>, z.ZodObject<{
468
489
  type: z.ZodLiteral<"presence-tracker">;
469
490
  }, z.core.$strip>, z.ZodObject<{
491
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
492
+ card: "card";
493
+ pin: "pin";
494
+ fingerprint: "fingerprint";
495
+ face: "face";
496
+ retina: "retina";
497
+ }>>>;
470
498
  type: z.ZodLiteral<"reader">;
471
499
  }, z.core.$strip>, z.ZodObject<{
472
500
  type: z.ZodLiteral<"display">;
@@ -582,6 +610,13 @@ export declare const nvrRecorderRequestSchemas: {
582
610
  }, z.core.$strip>, z.ZodObject<{
583
611
  type: z.ZodLiteral<"presence-tracker">;
584
612
  }, z.core.$strip>, z.ZodObject<{
613
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
614
+ card: "card";
615
+ pin: "pin";
616
+ fingerprint: "fingerprint";
617
+ face: "face";
618
+ retina: "retina";
619
+ }>>>;
585
620
  type: z.ZodLiteral<"reader">;
586
621
  }, z.core.$strip>, z.ZodObject<{
587
622
  type: z.ZodLiteral<"display">;
@@ -697,6 +732,13 @@ export declare const nvrRecorderRequestSchemas: {
697
732
  }, z.core.$strip>, z.ZodObject<{
698
733
  type: z.ZodLiteral<"presence-tracker">;
699
734
  }, z.core.$strip>, z.ZodObject<{
735
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
736
+ card: "card";
737
+ pin: "pin";
738
+ fingerprint: "fingerprint";
739
+ face: "face";
740
+ retina: "retina";
741
+ }>>>;
700
742
  type: z.ZodLiteral<"reader">;
701
743
  }, z.core.$strip>, z.ZodObject<{
702
744
  type: z.ZodLiteral<"display">;
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const QUERY_CAPTURE = "device:capture";
3
+ export declare const sCaptureQueryArgs: z.ZodObject<{
4
+ type: z.ZodString;
5
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6
+ }, z.core.$strip>;
7
+ export declare const sCaptureQueryResponse: z.ZodRecord<z.ZodString, z.ZodAny>;
8
+ export type CaptureQueryArgs = z.infer<typeof sCaptureQueryArgs>;
9
+ export type CaptureQueryResponse = z.infer<typeof sCaptureQueryResponse>;
10
+ export declare const readerRequestSchemas: {
11
+ readonly "device:capture": z.ZodObject<{
12
+ type: z.ZodString;
13
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14
+ }, z.core.$strip>;
15
+ };
16
+ export declare const readerResponseSchemas: {
17
+ readonly "device:capture": z.ZodRecord<z.ZodString, z.ZodAny>;
18
+ };
19
+ export type ReaderQueryRequestMap = {
20
+ [QUERY_CAPTURE]: CaptureQueryArgs;
21
+ };
22
+ export type ReaderQueryResponseMap = {
23
+ [QUERY_CAPTURE]: CaptureQueryResponse;
24
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readerResponseSchemas = exports.readerRequestSchemas = exports.sCaptureQueryResponse = exports.sCaptureQueryArgs = exports.QUERY_CAPTURE = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.QUERY_CAPTURE = 'device:capture';
6
+ exports.sCaptureQueryArgs = zod_1.z.object({
7
+ type: zod_1.z.string(),
8
+ metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
9
+ });
10
+ exports.sCaptureQueryResponse = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
11
+ exports.readerRequestSchemas = {
12
+ [exports.QUERY_CAPTURE]: exports.sCaptureQueryArgs,
13
+ };
14
+ // Dictionary of response schemas by query type
15
+ exports.readerResponseSchemas = {
16
+ [exports.QUERY_CAPTURE]: exports.sCaptureQueryResponse,
17
+ };
@@ -13,6 +13,8 @@ export declare const sCreatePersonRequest: z.ZodObject<{
13
13
  card: "card";
14
14
  pin: "pin";
15
15
  fingerprint: "fingerprint";
16
+ face: "face";
17
+ retina: "retina";
16
18
  }>;
17
19
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
18
20
  note: z.ZodNullable<z.ZodString>;
@@ -35,6 +37,8 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
35
37
  card: "card";
36
38
  pin: "pin";
37
39
  fingerprint: "fingerprint";
40
+ face: "face";
41
+ retina: "retina";
38
42
  }>;
39
43
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
40
44
  note: z.ZodNullable<z.ZodString>;
@@ -50,6 +50,8 @@ export declare const sTokenSpecs: z.ZodObject<{
50
50
  card: "card";
51
51
  pin: "pin";
52
52
  fingerprint: "fingerprint";
53
+ face: "face";
54
+ retina: "retina";
53
55
  }>;
54
56
  regex: z.ZodOptional<z.ZodString>;
55
57
  formatDescription: z.ZodOptional<z.ZodString>;
@@ -61,6 +63,8 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
61
63
  card: "card";
62
64
  pin: "pin";
63
65
  fingerprint: "fingerprint";
66
+ face: "face";
67
+ retina: "retina";
64
68
  }>;
65
69
  regex: z.ZodOptional<z.ZodString>;
66
70
  formatDescription: z.ZodOptional<z.ZodString>;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = void 0;
4
4
  const zod_1 = require("zod");
5
- const credential_1 = require("./credential");
5
+ const primitives_1 = require("../primitives");
6
6
  exports.sUiOrderHint = zod_1.z.object({
7
7
  kind: zod_1.z.literal('order'),
8
8
  path: zod_1.z.string(),
@@ -40,7 +40,7 @@ exports.sAccessObjectKind = zod_1.z.enum([
40
40
  'device',
41
41
  ]);
42
42
  exports.sTokenSpecs = zod_1.z.object({
43
- type: credential_1.sCredentialType, // etc, those map to a AWARE-standardized set of token types
43
+ type: primitives_1.sCredentialType, // etc, those map to a AWARE-standardized set of token types
44
44
  regex: zod_1.z.string().optional(),
45
45
  formatDescription: zod_1.z.string().optional(),
46
46
  maxPerPerson: zod_1.z.number().optional(),
@@ -1,19 +1,15 @@
1
1
  import z from 'zod';
2
- export declare const sCredentialType: z.ZodEnum<{
3
- card: "card";
4
- pin: "pin";
5
- fingerprint: "fingerprint";
6
- }>;
7
2
  export declare const sCredentialValue: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
8
3
  export declare const sAssignedCredential: z.ZodObject<{
9
4
  type: z.ZodEnum<{
10
5
  card: "card";
11
6
  pin: "pin";
12
7
  fingerprint: "fingerprint";
8
+ face: "face";
9
+ retina: "retina";
13
10
  }>;
14
11
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
15
12
  note: z.ZodNullable<z.ZodString>;
16
13
  }, z.core.$strip>;
17
- export type CredentialType = z.infer<typeof sCredentialType>;
18
14
  export type CredentialValue = z.infer<typeof sCredentialValue>;
19
15
  export type AssignedCredential = z.infer<typeof sAssignedCredential>;
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.sAssignedCredential = exports.sCredentialValue = exports.sCredentialType = void 0;
6
+ exports.sAssignedCredential = exports.sCredentialValue = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
- exports.sCredentialType = zod_1.default.enum(['card', 'pin', 'fingerprint']);
8
+ const primitives_1 = require("../primitives");
9
9
  exports.sCredentialValue = zod_1.default.union([
10
10
  zod_1.default.string().nonempty(),
11
11
  zod_1.default.record(zod_1.default.string(), zod_1.default.unknown()),
12
12
  ]);
13
13
  exports.sAssignedCredential = zod_1.default.object({
14
- type: exports.sCredentialType,
14
+ type: primitives_1.sCredentialType,
15
15
  value: exports.sCredentialValue,
16
16
  note: zod_1.default.string().nullable(),
17
17
  });
@@ -138,6 +138,13 @@ export declare const sAnyDeviceSpecs: z.ZodDiscriminatedUnion<[z.ZodObject<{
138
138
  }, z.core.$strip>, z.ZodObject<{
139
139
  type: z.ZodLiteral<"presence-tracker">;
140
140
  }, z.core.$strip>, z.ZodObject<{
141
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
142
+ card: "card";
143
+ pin: "pin";
144
+ fingerprint: "fingerprint";
145
+ face: "face";
146
+ retina: "retina";
147
+ }>>>;
141
148
  type: z.ZodLiteral<"reader">;
142
149
  }, z.core.$strip>, z.ZodObject<{
143
150
  type: z.ZodLiteral<"display">;
@@ -293,6 +300,13 @@ export declare const sDeviceDto: z.ZodIntersection<z.ZodIntersection<z.ZodDiscri
293
300
  }, z.core.$strip>, z.ZodObject<{
294
301
  type: z.ZodLiteral<"presence-tracker">;
295
302
  }, z.core.$strip>, z.ZodObject<{
303
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
304
+ card: "card";
305
+ pin: "pin";
306
+ fingerprint: "fingerprint";
307
+ face: "face";
308
+ retina: "retina";
309
+ }>>>;
296
310
  type: z.ZodLiteral<"reader">;
297
311
  }, z.core.$strip>, z.ZodObject<{
298
312
  type: z.ZodLiteral<"display">;
@@ -502,6 +516,13 @@ export declare const sDoorDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
502
516
  providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
503
517
  }, z.core.$strip>>;
504
518
  export declare const sReaderDto: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
519
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
520
+ card: "card";
521
+ pin: "pin";
522
+ fingerprint: "fingerprint";
523
+ face: "face";
524
+ retina: "retina";
525
+ }>>>;
505
526
  type: z.ZodLiteral<"reader">;
506
527
  }, z.core.$strip>, z.ZodObject<{
507
528
  id: z.ZodString;
@@ -1623,6 +1644,13 @@ export declare const deviceDtoSchemaMap: {
1623
1644
  providerMetadata: z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>;
1624
1645
  }, z.core.$strip>>;
1625
1646
  readonly reader: z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
1647
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1648
+ card: "card";
1649
+ pin: "pin";
1650
+ fingerprint: "fingerprint";
1651
+ face: "face";
1652
+ retina: "retina";
1653
+ }>>>;
1626
1654
  type: z.ZodLiteral<"reader">;
1627
1655
  }, z.core.$strip>, z.ZodObject<{
1628
1656
  id: z.ZodString;
@@ -21,6 +21,7 @@ const nvr_recorder_1 = require("./nvr-recorder");
21
21
  const nvr_exporter_1 = require("./nvr-exporter");
22
22
  const nvr_analytics_server_1 = require("./nvr-analytics-server");
23
23
  const system_1 = require("./system");
24
+ const reader_1 = require("./reader");
24
25
  exports.DEVICE_TYPES = [
25
26
  alarm_1.ALARM,
26
27
  server_1.SERVER,
@@ -43,15 +44,25 @@ exports.DEVICE_TYPES = [
43
44
  system_1.SYSTEM,
44
45
  ];
45
46
  exports.sDeviceType = zod_1.z.enum(exports.DEVICE_TYPES);
46
- const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(alarm_1.ALARM) }));
47
- const sCameraSpecsWithType = camera_1.sCameraSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(camera_1.CAMERA) }));
48
- const sDoorSpecsWithType = door_1.sDoorSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(door_1.DOOR) }));
49
- const sIoBoardSpecsWithType = io_board_1.sIoBoardSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(io_board_1.IO_BOARD) }));
50
- const sCameraLiftSpecsWithType = camera_lift_1.sCameraLiftSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(camera_lift_1.CAMERA_LIFT) }));
51
- const sMotionSensorSpecsWithType = motion_sensor_1.sMotionSensorSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(motion_sensor_1.MOTION_SENSOR) }));
52
- const sPanicButtonSpecsWithType = panic_button_1.sPanicButtonSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(panic_button_1.PANIC_BUTTON) }));
53
- const sIntercomTerminalSpecsWithType = intercom_terminal_1.sIntercomTerminalSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(intercom_terminal_1.INTERCOM_TERMINAL) }));
54
- const sPbxSpecsWithType = pbx_1.sPbxSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(pbx_1.PBX) }));
47
+ const sAlarmSpecsWithType = alarm_1.sAlarmSpecs.extend({ type: zod_1.z.literal(alarm_1.ALARM) });
48
+ const sCameraSpecsWithType = camera_1.sCameraSpecs.extend({ type: zod_1.z.literal(camera_1.CAMERA) });
49
+ const sDoorSpecsWithType = door_1.sDoorSpecs.extend({ type: zod_1.z.literal(door_1.DOOR) });
50
+ const sIoBoardSpecsWithType = io_board_1.sIoBoardSpecs.extend({
51
+ type: zod_1.z.literal(io_board_1.IO_BOARD),
52
+ });
53
+ const sCameraLiftSpecsWithType = camera_lift_1.sCameraLiftSpecs.extend({
54
+ type: zod_1.z.literal(camera_lift_1.CAMERA_LIFT),
55
+ });
56
+ const sMotionSensorSpecsWithType = motion_sensor_1.sMotionSensorSpecs.extend({
57
+ type: zod_1.z.literal(motion_sensor_1.MOTION_SENSOR),
58
+ });
59
+ const sPanicButtonSpecsWithType = panic_button_1.sPanicButtonSpecs.extend({
60
+ type: zod_1.z.literal(panic_button_1.PANIC_BUTTON),
61
+ });
62
+ const sIntercomTerminalSpecsWithType = intercom_terminal_1.sIntercomTerminalSpecs.extend({
63
+ type: zod_1.z.literal(intercom_terminal_1.INTERCOM_TERMINAL),
64
+ });
65
+ const sPbxSpecsWithType = pbx_1.sPbxSpecs.extend({ type: zod_1.z.literal(pbx_1.PBX) });
55
66
  const sServerSpecsWithType = zod_1.z.object({ type: zod_1.z.literal(server_1.SERVER) });
56
67
  const sIntercomOperatorSpecsWithType = zod_1.z.object({
57
68
  type: zod_1.z.literal(intercom_operator_1.INTERCOM_OPERATOR),
@@ -62,18 +73,22 @@ const sDeviceGatewaySpecsWithType = zod_1.z.object({
62
73
  const sPresenceTrackerSpecsWithType = zod_1.z.object({
63
74
  type: zod_1.z.literal(presence_tracker_1.PRESENCE_TRACKER),
64
75
  });
65
- const sReaderSpecsWithType = zod_1.z.object({ type: zod_1.z.literal('reader') });
76
+ const sReaderSpecsWithType = reader_1.sReaderSpecs.extend({
77
+ type: zod_1.z.literal('reader'),
78
+ });
66
79
  exports.sDisplaySpecsWithType = zod_1.z.object({ type: zod_1.z.literal(display_1.DISPLAY) });
67
- exports.sRecorderSpecsWithType = nvr_recorder_1.sRecorderSpecs.merge(zod_1.z.object({ type: zod_1.z.literal(nvr_recorder_1.NVR_RECORDER) }));
68
- exports.sNvrExporterSpecsWithType = nvr_exporter_1.sExporterSpecs.merge(zod_1.z.object({
80
+ exports.sRecorderSpecsWithType = nvr_recorder_1.sRecorderSpecs.extend({
81
+ type: zod_1.z.literal(nvr_recorder_1.NVR_RECORDER),
82
+ });
83
+ exports.sNvrExporterSpecsWithType = nvr_exporter_1.sExporterSpecs.extend({
69
84
  type: zod_1.z.literal(nvr_exporter_1.NVR_EXPORTER),
70
- }));
71
- exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.merge(zod_1.z.object({
85
+ });
86
+ exports.sNvrAnalyticsServerSpecsWithType = nvr_analytics_server_1.sAnalyticsServerSpecs.extend({
72
87
  type: zod_1.z.literal(nvr_analytics_server_1.NVR_ANALYTICS_SERVER),
73
- }));
74
- exports.sSystemDeviceSpecsWithType = zod_1.z
75
- .object({ type: zod_1.z.literal(system_1.SYSTEM) })
76
- .merge(system_1.sSystemDeviceSpecs);
88
+ });
89
+ exports.sSystemDeviceSpecsWithType = system_1.sSystemDeviceSpecs.extend({
90
+ type: zod_1.z.literal(system_1.SYSTEM),
91
+ });
77
92
  exports.sAnyDeviceSpecs = zod_1.z.discriminatedUnion('type', [
78
93
  sAlarmSpecsWithType,
79
94
  sCameraSpecsWithType,
@@ -91,6 +91,13 @@ export declare const sImportedDevice: z.ZodIntersection<z.ZodIntersection<z.ZodO
91
91
  }, z.core.$strip>, z.ZodObject<{
92
92
  type: z.ZodLiteral<"presence-tracker">;
93
93
  }, z.core.$strip>, z.ZodObject<{
94
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
95
+ card: "card";
96
+ pin: "pin";
97
+ fingerprint: "fingerprint";
98
+ face: "face";
99
+ retina: "retina";
100
+ }>>>;
94
101
  type: z.ZodLiteral<"reader">;
95
102
  }, z.core.$strip>, z.ZodObject<{
96
103
  type: z.ZodLiteral<"display">;
@@ -199,6 +206,13 @@ export declare const sDeviceDiscoveryDto: z.ZodObject<{
199
206
  }, z.core.$strip>, z.ZodObject<{
200
207
  type: z.ZodLiteral<"presence-tracker">;
201
208
  }, z.core.$strip>, z.ZodObject<{
209
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
210
+ card: "card";
211
+ pin: "pin";
212
+ fingerprint: "fingerprint";
213
+ face: "face";
214
+ retina: "retina";
215
+ }>>>;
202
216
  type: z.ZodLiteral<"reader">;
203
217
  }, z.core.$strip>, z.ZodObject<{
204
218
  type: z.ZodLiteral<"display">;
@@ -364,6 +378,13 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
364
378
  }, z.core.$strip>, z.ZodObject<{
365
379
  type: z.ZodLiteral<"presence-tracker">;
366
380
  }, z.core.$strip>, z.ZodObject<{
381
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
382
+ card: "card";
383
+ pin: "pin";
384
+ fingerprint: "fingerprint";
385
+ face: "face";
386
+ retina: "retina";
387
+ }>>>;
367
388
  type: z.ZodLiteral<"reader">;
368
389
  }, z.core.$strip>, z.ZodObject<{
369
390
  type: z.ZodLiteral<"display">;
@@ -465,6 +486,13 @@ export declare const sDeviceGetChangesDto: z.ZodObject<{
465
486
  }, z.core.$strip>, z.ZodObject<{
466
487
  type: z.ZodLiteral<"presence-tracker">;
467
488
  }, z.core.$strip>, z.ZodObject<{
489
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
490
+ card: "card";
491
+ pin: "pin";
492
+ fingerprint: "fingerprint";
493
+ face: "face";
494
+ retina: "retina";
495
+ }>>>;
468
496
  type: z.ZodLiteral<"reader">;
469
497
  }, z.core.$strip>, z.ZodObject<{
470
498
  type: z.ZodLiteral<"display">;
@@ -1,2 +1,12 @@
1
+ import { z } from 'zod';
1
2
  export declare const READER: "reader";
2
- export type ReaderSpecs = object;
3
+ export declare const sReaderSpecs: z.ZodObject<{
4
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5
+ card: "card";
6
+ pin: "pin";
7
+ fingerprint: "fingerprint";
8
+ face: "face";
9
+ retina: "retina";
10
+ }>>>;
11
+ }, z.core.$strip>;
12
+ export type ReaderSpecs = z.infer<typeof sReaderSpecs>;
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.READER = void 0;
3
+ exports.sReaderSpecs = exports.READER = void 0;
4
+ const zod_1 = require("zod");
5
+ const primitives_1 = require("../../primitives");
4
6
  exports.READER = 'reader';
7
+ // SPECS
8
+ exports.sReaderSpecs = zod_1.z.object({
9
+ credentialTypes: zod_1.z.array(primitives_1.sCredentialType).optional(),
10
+ });
@@ -17,6 +17,8 @@ export declare const sPersonProps: z.ZodObject<{
17
17
  card: "card";
18
18
  pin: "pin";
19
19
  fingerprint: "fingerprint";
20
+ face: "face";
21
+ retina: "retina";
20
22
  }>;
21
23
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
22
24
  note: z.ZodNullable<z.ZodString>;
@@ -43,6 +45,8 @@ export declare const sPersonDto: z.ZodObject<{
43
45
  card: "card";
44
46
  pin: "pin";
45
47
  fingerprint: "fingerprint";
48
+ face: "face";
49
+ retina: "retina";
46
50
  }>;
47
51
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
48
52
  note: z.ZodNullable<z.ZodString>;
package/dist/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.94",
7
+ "version": "2.0.96",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
@@ -123,6 +123,13 @@ export declare const sAgentDeviceInfo: z.ZodIntersection<z.ZodObject<{
123
123
  }, z.core.$strip>, z.ZodObject<{
124
124
  type: z.ZodLiteral<"presence-tracker">;
125
125
  }, z.core.$strip>, z.ZodObject<{
126
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
127
+ card: "card";
128
+ pin: "pin";
129
+ fingerprint: "fingerprint";
130
+ face: "face";
131
+ retina: "retina";
132
+ }>>>;
126
133
  type: z.ZodLiteral<"reader">;
127
134
  }, z.core.$strip>, z.ZodObject<{
128
135
  type: z.ZodLiteral<"display">;
@@ -235,6 +242,13 @@ export declare const sDeviceParam: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodInt
235
242
  }, z.core.$strip>, z.ZodObject<{
236
243
  type: z.ZodLiteral<"presence-tracker">;
237
244
  }, z.core.$strip>, z.ZodObject<{
245
+ credentialTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
246
+ card: "card";
247
+ pin: "pin";
248
+ fingerprint: "fingerprint";
249
+ face: "face";
250
+ retina: "retina";
251
+ }>>>;
238
252
  type: z.ZodLiteral<"reader">;
239
253
  }, z.core.$strip>, z.ZodObject<{
240
254
  type: z.ZodLiteral<"display">;
@@ -272,3 +286,11 @@ export declare const sCallDirection: z.ZodEnum<{
272
286
  incoming: "incoming";
273
287
  outgoing: "outgoing";
274
288
  }>;
289
+ export declare const sCredentialType: z.ZodEnum<{
290
+ card: "card";
291
+ pin: "pin";
292
+ fingerprint: "fingerprint";
293
+ face: "face";
294
+ retina: "retina";
295
+ }>;
296
+ export type CredentialType = z.infer<typeof sCredentialType>;
@@ -7,7 +7,7 @@
7
7
  * domain-specific types like DeviceId, PresetId, Duration, URL, etc.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sStreamId = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sUserId = exports.sMacroId = exports.sZoneId = exports.sPersonTypeId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
10
+ exports.sCredentialType = exports.sCallDirection = exports.sCallState = exports.sCameraPresetInfo = exports.sNotificationSeverity = exports.sStreamId = exports.sDeviceParam = exports.sForeignDeviceId = exports.sAgentDeviceInfo = exports.sFileResponse = exports.sUrl = exports.sDuration = exports.sIoOutputSlotId = exports.sIoInputSlotId = exports.sWorldObjectId = exports.sUserId = exports.sMacroId = exports.sZoneId = exports.sPersonTypeId = exports.sPersonId = exports.sDeviceEvent = exports.sPresetId = exports.sDeviceId = void 0;
11
11
  const zod_1 = require("zod");
12
12
  const device_1 = require("./objects/device");
13
13
  exports.sDeviceId = zod_1.z.string().nonempty();
@@ -53,3 +53,10 @@ exports.sCallState = zod_1.z.enum([
53
53
  'terminated',
54
54
  ]);
55
55
  exports.sCallDirection = zod_1.z.enum(['incoming', 'outgoing']);
56
+ exports.sCredentialType = zod_1.z.enum([
57
+ 'card',
58
+ 'pin',
59
+ 'fingerprint',
60
+ 'face',
61
+ 'retina',
62
+ ]);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/Linc-Security-Systems/aware-essentials.git"
6
6
  },
7
- "version": "2.0.94",
7
+ "version": "2.0.96",
8
8
  "description": "Common types between backend, agent(s) and frontend(s)",
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",