@awarevue/api-types 2.0.93 → 2.0.95

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>;
@@ -661,6 +663,8 @@ export declare const sExternalPersonProps: z.ZodObject<{
661
663
  card: "card";
662
664
  pin: "pin";
663
665
  fingerprint: "fingerprint";
666
+ face: "face";
667
+ retina: "retina";
664
668
  }>;
665
669
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
666
670
  }, z.core.$strip>>;
@@ -719,6 +723,8 @@ export declare const sExternalObjectProps: z.ZodObject<{
719
723
  card: "card";
720
724
  pin: "pin";
721
725
  fingerprint: "fingerprint";
726
+ face: "face";
727
+ retina: "retina";
722
728
  }>;
723
729
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
724
730
  }, z.core.$strip>>;
@@ -865,6 +871,8 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
865
871
  card: "card";
866
872
  pin: "pin";
867
873
  fingerprint: "fingerprint";
874
+ face: "face";
875
+ retina: "retina";
868
876
  }>;
869
877
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
870
878
  }, z.core.$strip>>;
@@ -880,6 +888,8 @@ export declare const sObjectMerge: z.ZodUnion<readonly [z.ZodObject<{
880
888
  card: "card";
881
889
  pin: "pin";
882
890
  fingerprint: "fingerprint";
891
+ face: "face";
892
+ retina: "retina";
883
893
  }>;
884
894
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
885
895
  }, z.core.$strip>>>;
@@ -958,6 +968,8 @@ export declare const sObjectDelete: z.ZodUnion<readonly [z.ZodObject<{
958
968
  card: "card";
959
969
  pin: "pin";
960
970
  fingerprint: "fingerprint";
971
+ face: "face";
972
+ retina: "retina";
961
973
  }>;
962
974
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
963
975
  }, z.core.$strip>>;
@@ -1070,6 +1082,8 @@ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [
1070
1082
  card: "card";
1071
1083
  pin: "pin";
1072
1084
  fingerprint: "fingerprint";
1085
+ face: "face";
1086
+ retina: "retina";
1073
1087
  }>;
1074
1088
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1075
1089
  }, z.core.$strip>>;
@@ -1085,6 +1099,8 @@ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [
1085
1099
  card: "card";
1086
1100
  pin: "pin";
1087
1101
  fingerprint: "fingerprint";
1102
+ face: "face";
1103
+ retina: "retina";
1088
1104
  }>;
1089
1105
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1090
1106
  }, z.core.$strip>>>;
@@ -1162,6 +1178,8 @@ export declare const sAccessMutation: z.ZodUnion<readonly [z.ZodUnion<readonly [
1162
1178
  card: "card";
1163
1179
  pin: "pin";
1164
1180
  fingerprint: "fingerprint";
1181
+ face: "face";
1182
+ retina: "retina";
1165
1183
  }>;
1166
1184
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1167
1185
  }, z.core.$strip>>;
@@ -1293,6 +1311,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
1293
1311
  card: "card";
1294
1312
  pin: "pin";
1295
1313
  fingerprint: "fingerprint";
1314
+ face: "face";
1315
+ retina: "retina";
1296
1316
  }>;
1297
1317
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1298
1318
  }, z.core.$strip>>;
@@ -1308,6 +1328,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
1308
1328
  card: "card";
1309
1329
  pin: "pin";
1310
1330
  fingerprint: "fingerprint";
1331
+ face: "face";
1332
+ retina: "retina";
1311
1333
  }>;
1312
1334
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1313
1335
  }, z.core.$strip>>>;
@@ -1385,6 +1407,8 @@ export declare const sValidateChangeRq: z.ZodObject<{
1385
1407
  card: "card";
1386
1408
  pin: "pin";
1387
1409
  fingerprint: "fingerprint";
1410
+ face: "face";
1411
+ retina: "retina";
1388
1412
  }>;
1389
1413
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1390
1414
  }, z.core.$strip>>;
@@ -1560,6 +1584,8 @@ export declare const sApplyChange: z.ZodObject<{
1560
1584
  card: "card";
1561
1585
  pin: "pin";
1562
1586
  fingerprint: "fingerprint";
1587
+ face: "face";
1588
+ retina: "retina";
1563
1589
  }>;
1564
1590
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1565
1591
  }, z.core.$strip>>;
@@ -1575,6 +1601,8 @@ export declare const sApplyChange: z.ZodObject<{
1575
1601
  card: "card";
1576
1602
  pin: "pin";
1577
1603
  fingerprint: "fingerprint";
1604
+ face: "face";
1605
+ retina: "retina";
1578
1606
  }>;
1579
1607
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1580
1608
  }, z.core.$strip>>>;
@@ -1652,6 +1680,8 @@ export declare const sApplyChange: z.ZodObject<{
1652
1680
  card: "card";
1653
1681
  pin: "pin";
1654
1682
  fingerprint: "fingerprint";
1683
+ face: "face";
1684
+ retina: "retina";
1655
1685
  }>;
1656
1686
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1657
1687
  }, z.core.$strip>>;
@@ -1759,6 +1789,8 @@ export declare const sDescribeObjectRs: z.ZodObject<{
1759
1789
  card: "card";
1760
1790
  pin: "pin";
1761
1791
  fingerprint: "fingerprint";
1792
+ face: "face";
1793
+ retina: "retina";
1762
1794
  }>;
1763
1795
  value: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1764
1796
  }, z.core.$strip>>;
@@ -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>;
@@ -411,6 +416,7 @@ export declare const requestSchemasByType: {
411
416
  };
412
417
  export declare const responseSchemasByType: {
413
418
  readonly "device:event-caps": z.ZodArray<z.ZodString>;
419
+ readonly "device:capture": z.ZodRecord<z.ZodString, z.ZodAny>;
414
420
  readonly "cctv:media-search": z.ZodArray<z.ZodObject<{
415
421
  relevance: z.ZodNumber;
416
422
  providerAssignedRef: z.ZodString;
@@ -488,10 +494,10 @@ export declare const responseSchemasByType: {
488
494
  data: z.ZodString;
489
495
  }, z.core.$strip>>;
490
496
  };
491
- export type QueryRequestMap = NvrAnalyticsQueryRequestMap & NvrRecorderQueryRequestMap & CameraQueryRequestMap & NvrExporterQueryRequestMap & {
497
+ export type QueryRequestMap = NvrAnalyticsQueryRequestMap & NvrRecorderQueryRequestMap & CameraQueryRequestMap & ReaderQueryRequestMap & NvrExporterQueryRequestMap & {
492
498
  [QUERY_EVENT_CAPS]: EventCapsQueryArgs;
493
499
  };
494
- export type QueryResponseMap = NvrAnalyticsQueryResponseMap & NvrRecorderQueryResponseMap & CameraQueryResponseMap & NvrExporterQueryResponseMap & {
500
+ export type QueryResponseMap = NvrAnalyticsQueryResponseMap & NvrRecorderQueryResponseMap & CameraQueryResponseMap & ReaderQueryResponseMap & NvrExporterQueryResponseMap & {
495
501
  [QUERY_EVENT_CAPS]: EventCapsQueryResponse;
496
502
  };
497
503
  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);
@@ -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
  });
@@ -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.93",
7
+ "version": "2.0.95",
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",
@@ -272,3 +272,11 @@ export declare const sCallDirection: z.ZodEnum<{
272
272
  incoming: "incoming";
273
273
  outgoing: "outgoing";
274
274
  }>;
275
+ export declare const sCredentialType: z.ZodEnum<{
276
+ card: "card";
277
+ pin: "pin";
278
+ fingerprint: "fingerprint";
279
+ face: "face";
280
+ retina: "retina";
281
+ }>;
282
+ 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.93",
7
+ "version": "2.0.95",
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",