@awarevue/api-types 1.0.9 → 1.0.10
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/access-control/credential.d.ts +4 -4
- package/dist/access-control/credential.js +1 -1
- package/dist/access-control/person.d.ts +15 -15
- package/dist/agent-communication/protocol.d.ts +18 -18
- package/dist/agent-communication/protocol.js +1 -1
- package/dist/device/door.d.ts +6 -6
- package/dist/device-event.d.ts +3 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const sCredentialType: z.ZodEnum<["card", "pin"]>;
|
|
2
|
+
export declare const sCredentialType: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
3
3
|
export declare const sAssignedCredential: z.ZodObject<{
|
|
4
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
4
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
5
5
|
value: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
type: "card" | "pin";
|
|
7
|
+
type: "card" | "pin" | "fingerprint";
|
|
8
8
|
value: string;
|
|
9
9
|
}, {
|
|
10
|
-
type: "card" | "pin";
|
|
10
|
+
type: "card" | "pin" | "fingerprint";
|
|
11
11
|
value: string;
|
|
12
12
|
}>;
|
|
13
13
|
export type CredentialType = z.infer<typeof sCredentialType>;
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.sAssignedCredential = exports.sCredentialType = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.sCredentialType = zod_1.default.enum(['card', 'pin']);
|
|
8
|
+
exports.sCredentialType = zod_1.default.enum(['card', 'pin', 'fingerprint']);
|
|
9
9
|
exports.sAssignedCredential = zod_1.default.object({
|
|
10
10
|
type: exports.sCredentialType,
|
|
11
11
|
value: zod_1.default.string().nonempty(),
|
|
@@ -23,13 +23,13 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
23
23
|
lastModifiedOn: z.ZodString;
|
|
24
24
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
25
25
|
credentials: z.ZodArray<z.ZodObject<{
|
|
26
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
26
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
27
27
|
value: z.ZodString;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
type: "card" | "pin";
|
|
29
|
+
type: "card" | "pin" | "fingerprint";
|
|
30
30
|
value: string;
|
|
31
31
|
}, {
|
|
32
|
-
type: "card" | "pin";
|
|
32
|
+
type: "card" | "pin" | "fingerprint";
|
|
33
33
|
value: string;
|
|
34
34
|
}>, "many">;
|
|
35
35
|
accessRules: z.ZodArray<z.ZodObject<{
|
|
@@ -61,7 +61,7 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
61
61
|
archived: boolean;
|
|
62
62
|
staffMember: boolean;
|
|
63
63
|
credentials: {
|
|
64
|
-
type: "card" | "pin";
|
|
64
|
+
type: "card" | "pin" | "fingerprint";
|
|
65
65
|
value: string;
|
|
66
66
|
}[];
|
|
67
67
|
accessRules: {
|
|
@@ -85,7 +85,7 @@ export declare const sPersonDto: z.ZodObject<{
|
|
|
85
85
|
archived: boolean;
|
|
86
86
|
staffMember: boolean;
|
|
87
87
|
credentials: {
|
|
88
|
-
type: "card" | "pin";
|
|
88
|
+
type: "card" | "pin" | "fingerprint";
|
|
89
89
|
value: string;
|
|
90
90
|
}[];
|
|
91
91
|
accessRules: {
|
|
@@ -104,13 +104,13 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
104
104
|
validTo: z.ZodNullable<z.ZodString>;
|
|
105
105
|
avatarId: z.ZodNullable<z.ZodString>;
|
|
106
106
|
credentials: z.ZodArray<z.ZodObject<{
|
|
107
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
107
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
108
108
|
value: z.ZodString;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
type: "card" | "pin";
|
|
110
|
+
type: "card" | "pin" | "fingerprint";
|
|
111
111
|
value: string;
|
|
112
112
|
}, {
|
|
113
|
-
type: "card" | "pin";
|
|
113
|
+
type: "card" | "pin" | "fingerprint";
|
|
114
114
|
value: string;
|
|
115
115
|
}>, "many">;
|
|
116
116
|
accessRules: z.ZodArray<z.ZodString, "many">;
|
|
@@ -125,7 +125,7 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
125
125
|
accessSuspended: boolean;
|
|
126
126
|
staffMember: boolean;
|
|
127
127
|
credentials: {
|
|
128
|
-
type: "card" | "pin";
|
|
128
|
+
type: "card" | "pin" | "fingerprint";
|
|
129
129
|
value: string;
|
|
130
130
|
}[];
|
|
131
131
|
accessRules: string[];
|
|
@@ -140,7 +140,7 @@ export declare const sCreatePersonRequest: z.ZodObject<{
|
|
|
140
140
|
accessSuspended: boolean;
|
|
141
141
|
staffMember: boolean;
|
|
142
142
|
credentials: {
|
|
143
|
-
type: "card" | "pin";
|
|
143
|
+
type: "card" | "pin" | "fingerprint";
|
|
144
144
|
value: string;
|
|
145
145
|
}[];
|
|
146
146
|
accessRules: string[];
|
|
@@ -156,13 +156,13 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
156
156
|
validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
157
|
avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
158
|
credentials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
159
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
160
160
|
value: z.ZodString;
|
|
161
161
|
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
type: "card" | "pin";
|
|
162
|
+
type: "card" | "pin" | "fingerprint";
|
|
163
163
|
value: string;
|
|
164
164
|
}, {
|
|
165
|
-
type: "card" | "pin";
|
|
165
|
+
type: "card" | "pin" | "fingerprint";
|
|
166
166
|
value: string;
|
|
167
167
|
}>, "many">>;
|
|
168
168
|
accessRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -179,7 +179,7 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
179
179
|
archived?: boolean | undefined;
|
|
180
180
|
staffMember?: boolean | undefined;
|
|
181
181
|
credentials?: {
|
|
182
|
-
type: "card" | "pin";
|
|
182
|
+
type: "card" | "pin" | "fingerprint";
|
|
183
183
|
value: string;
|
|
184
184
|
}[] | undefined;
|
|
185
185
|
accessRules?: string[] | undefined;
|
|
@@ -195,7 +195,7 @@ export declare const sUpdatePersonRequest: z.ZodObject<{
|
|
|
195
195
|
archived?: boolean | undefined;
|
|
196
196
|
staffMember?: boolean | undefined;
|
|
197
197
|
credentials?: {
|
|
198
|
-
type: "card" | "pin";
|
|
198
|
+
type: "card" | "pin" | "fingerprint";
|
|
199
199
|
value: string;
|
|
200
200
|
}[] | undefined;
|
|
201
201
|
accessRules?: string[] | undefined;
|
|
@@ -194,34 +194,34 @@ export declare const sProviderSpecs: z.ZodObject<{
|
|
|
194
194
|
}>;
|
|
195
195
|
export declare const sAccessObjectKind: z.ZodEnum<["access-rule", "schedule", "zone", "person", "reader"]>;
|
|
196
196
|
export declare const sTokenSpecs: z.ZodObject<{
|
|
197
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
197
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
198
198
|
regex: z.ZodOptional<z.ZodString>;
|
|
199
199
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
200
200
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
type: "card" | "pin";
|
|
202
|
+
type: "card" | "pin" | "fingerprint";
|
|
203
203
|
regex?: string | undefined;
|
|
204
204
|
formatDescription?: string | undefined;
|
|
205
205
|
maxPerPerson?: number | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
type: "card" | "pin";
|
|
207
|
+
type: "card" | "pin" | "fingerprint";
|
|
208
208
|
regex?: string | undefined;
|
|
209
209
|
formatDescription?: string | undefined;
|
|
210
210
|
maxPerPerson?: number | undefined;
|
|
211
211
|
}>;
|
|
212
212
|
export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
213
213
|
tokens: z.ZodArray<z.ZodObject<{
|
|
214
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
214
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
215
215
|
regex: z.ZodOptional<z.ZodString>;
|
|
216
216
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
217
217
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
type: "card" | "pin";
|
|
219
|
+
type: "card" | "pin" | "fingerprint";
|
|
220
220
|
regex?: string | undefined;
|
|
221
221
|
formatDescription?: string | undefined;
|
|
222
222
|
maxPerPerson?: number | undefined;
|
|
223
223
|
}, {
|
|
224
|
-
type: "card" | "pin";
|
|
224
|
+
type: "card" | "pin" | "fingerprint";
|
|
225
225
|
regex?: string | undefined;
|
|
226
226
|
formatDescription?: string | undefined;
|
|
227
227
|
maxPerPerson?: number | undefined;
|
|
@@ -230,7 +230,7 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
|
230
230
|
oneSchedulePerDoor: z.ZodBoolean;
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
232
|
tokens: {
|
|
233
|
-
type: "card" | "pin";
|
|
233
|
+
type: "card" | "pin" | "fingerprint";
|
|
234
234
|
regex?: string | undefined;
|
|
235
235
|
formatDescription?: string | undefined;
|
|
236
236
|
maxPerPerson?: number | undefined;
|
|
@@ -239,7 +239,7 @@ export declare const sAccessControlCapabilityReport: z.ZodObject<{
|
|
|
239
239
|
oneSchedulePerDoor: boolean;
|
|
240
240
|
}, {
|
|
241
241
|
tokens: {
|
|
242
|
-
type: "card" | "pin";
|
|
242
|
+
type: "card" | "pin" | "fingerprint";
|
|
243
243
|
regex?: string | undefined;
|
|
244
244
|
formatDescription?: string | undefined;
|
|
245
245
|
maxPerPerson?: number | undefined;
|
|
@@ -317,17 +317,17 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
317
317
|
}>>;
|
|
318
318
|
accessControlProviders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
319
319
|
tokens: z.ZodArray<z.ZodObject<{
|
|
320
|
-
type: z.ZodEnum<["card", "pin"]>;
|
|
320
|
+
type: z.ZodEnum<["card", "pin", "fingerprint"]>;
|
|
321
321
|
regex: z.ZodOptional<z.ZodString>;
|
|
322
322
|
formatDescription: z.ZodOptional<z.ZodString>;
|
|
323
323
|
maxPerPerson: z.ZodOptional<z.ZodNumber>;
|
|
324
324
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
-
type: "card" | "pin";
|
|
325
|
+
type: "card" | "pin" | "fingerprint";
|
|
326
326
|
regex?: string | undefined;
|
|
327
327
|
formatDescription?: string | undefined;
|
|
328
328
|
maxPerPerson?: number | undefined;
|
|
329
329
|
}, {
|
|
330
|
-
type: "card" | "pin";
|
|
330
|
+
type: "card" | "pin" | "fingerprint";
|
|
331
331
|
regex?: string | undefined;
|
|
332
332
|
formatDescription?: string | undefined;
|
|
333
333
|
maxPerPerson?: number | undefined;
|
|
@@ -336,7 +336,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
336
336
|
oneSchedulePerDoor: z.ZodBoolean;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
338
|
tokens: {
|
|
339
|
-
type: "card" | "pin";
|
|
339
|
+
type: "card" | "pin" | "fingerprint";
|
|
340
340
|
regex?: string | undefined;
|
|
341
341
|
formatDescription?: string | undefined;
|
|
342
342
|
maxPerPerson?: number | undefined;
|
|
@@ -345,7 +345,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
345
345
|
oneSchedulePerDoor: boolean;
|
|
346
346
|
}, {
|
|
347
347
|
tokens: {
|
|
348
|
-
type: "card" | "pin";
|
|
348
|
+
type: "card" | "pin" | "fingerprint";
|
|
349
349
|
regex?: string | undefined;
|
|
350
350
|
formatDescription?: string | undefined;
|
|
351
351
|
maxPerPerson?: number | undefined;
|
|
@@ -373,7 +373,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
373
373
|
}>;
|
|
374
374
|
accessControlProviders?: Record<string, {
|
|
375
375
|
tokens: {
|
|
376
|
-
type: "card" | "pin";
|
|
376
|
+
type: "card" | "pin" | "fingerprint";
|
|
377
377
|
regex?: string | undefined;
|
|
378
378
|
formatDescription?: string | undefined;
|
|
379
379
|
maxPerPerson?: number | undefined;
|
|
@@ -401,7 +401,7 @@ export declare const sRegisterRq: z.ZodObject<{
|
|
|
401
401
|
}>;
|
|
402
402
|
accessControlProviders?: Record<string, {
|
|
403
403
|
tokens: {
|
|
404
|
-
type: "card" | "pin";
|
|
404
|
+
type: "card" | "pin" | "fingerprint";
|
|
405
405
|
regex?: string | undefined;
|
|
406
406
|
formatDescription?: string | undefined;
|
|
407
407
|
maxPerPerson?: number | undefined;
|
|
@@ -1493,12 +1493,12 @@ export declare const sApplyChange: z.ZodObject<{
|
|
|
1493
1493
|
}>;
|
|
1494
1494
|
export declare const sApplyChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
1495
1495
|
requestId: z.ZodString;
|
|
1496
|
-
kind: z.ZodLiteral<"apply-change-
|
|
1496
|
+
kind: z.ZodLiteral<"apply-change-rs">;
|
|
1497
1497
|
}, "strip", z.ZodTypeAny, {
|
|
1498
|
-
kind: "apply-change-
|
|
1498
|
+
kind: "apply-change-rs";
|
|
1499
1499
|
requestId: string;
|
|
1500
1500
|
}, {
|
|
1501
|
-
kind: "apply-change-
|
|
1501
|
+
kind: "apply-change-rs";
|
|
1502
1502
|
requestId: string;
|
|
1503
1503
|
}>, z.ZodObject<{
|
|
1504
1504
|
requestId: z.ZodString;
|
|
@@ -246,7 +246,7 @@ exports.sApplyChange = zod_1.z
|
|
|
246
246
|
mutations: zod_1.z.array(exports.sAccessMutation),
|
|
247
247
|
})
|
|
248
248
|
.describe('Request to apply access changes');
|
|
249
|
-
exports.sApplyChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('apply-change-
|
|
249
|
+
exports.sApplyChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('apply-change-rs'), zod_1.z.object({
|
|
250
250
|
requestId: zod_1.z.string().nonempty(),
|
|
251
251
|
//error: z.string().optional().describe('Error message if request failed'),
|
|
252
252
|
refs: exports.sRefMap,
|
package/dist/device/door.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
30
30
|
kind: z.ZodLiteral<"door-access">;
|
|
31
31
|
personId: z.ZodOptional<z.ZodString>;
|
|
32
32
|
token: z.ZodNullable<z.ZodString>;
|
|
33
|
-
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"]>>;
|
|
33
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin", "fingerprint"]>>;
|
|
34
34
|
allowed: z.ZodBoolean;
|
|
35
35
|
doorExit: z.ZodBoolean;
|
|
36
36
|
description: z.ZodString;
|
|
@@ -38,7 +38,7 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
38
38
|
description: string;
|
|
39
39
|
kind: "door-access";
|
|
40
40
|
token: string | null;
|
|
41
|
-
tokenType: "card" | "pin" | null;
|
|
41
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
42
42
|
allowed: boolean;
|
|
43
43
|
doorExit: boolean;
|
|
44
44
|
personId?: string | undefined;
|
|
@@ -46,7 +46,7 @@ export declare const sDoorAccessEvent: z.ZodObject<{
|
|
|
46
46
|
description: string;
|
|
47
47
|
kind: "door-access";
|
|
48
48
|
token: string | null;
|
|
49
|
-
tokenType: "card" | "pin" | null;
|
|
49
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
50
50
|
allowed: boolean;
|
|
51
51
|
doorExit: boolean;
|
|
52
52
|
personId?: string | undefined;
|
|
@@ -119,7 +119,7 @@ export declare const doorEventSchemaByKind: {
|
|
|
119
119
|
kind: z.ZodLiteral<"door-access">;
|
|
120
120
|
personId: z.ZodOptional<z.ZodString>;
|
|
121
121
|
token: z.ZodNullable<z.ZodString>;
|
|
122
|
-
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"]>>;
|
|
122
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin", "fingerprint"]>>;
|
|
123
123
|
allowed: z.ZodBoolean;
|
|
124
124
|
doorExit: z.ZodBoolean;
|
|
125
125
|
description: z.ZodString;
|
|
@@ -127,7 +127,7 @@ export declare const doorEventSchemaByKind: {
|
|
|
127
127
|
description: string;
|
|
128
128
|
kind: "door-access";
|
|
129
129
|
token: string | null;
|
|
130
|
-
tokenType: "card" | "pin" | null;
|
|
130
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
131
131
|
allowed: boolean;
|
|
132
132
|
doorExit: boolean;
|
|
133
133
|
personId?: string | undefined;
|
|
@@ -135,7 +135,7 @@ export declare const doorEventSchemaByKind: {
|
|
|
135
135
|
description: string;
|
|
136
136
|
kind: "door-access";
|
|
137
137
|
token: string | null;
|
|
138
|
-
tokenType: "card" | "pin" | null;
|
|
138
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
139
139
|
allowed: boolean;
|
|
140
140
|
doorExit: boolean;
|
|
141
141
|
personId?: string | undefined;
|
package/dist/device-event.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ export declare const eventSchemaByKind: {
|
|
|
195
195
|
kind: z.ZodLiteral<"door-access">;
|
|
196
196
|
personId: z.ZodOptional<z.ZodString>;
|
|
197
197
|
token: z.ZodNullable<z.ZodString>;
|
|
198
|
-
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin"]>>;
|
|
198
|
+
tokenType: z.ZodNullable<z.ZodEnum<["card", "pin", "fingerprint"]>>;
|
|
199
199
|
allowed: z.ZodBoolean;
|
|
200
200
|
doorExit: z.ZodBoolean;
|
|
201
201
|
description: z.ZodString;
|
|
@@ -203,7 +203,7 @@ export declare const eventSchemaByKind: {
|
|
|
203
203
|
description: string;
|
|
204
204
|
kind: "door-access";
|
|
205
205
|
token: string | null;
|
|
206
|
-
tokenType: "card" | "pin" | null;
|
|
206
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
207
207
|
allowed: boolean;
|
|
208
208
|
doorExit: boolean;
|
|
209
209
|
personId?: string | undefined;
|
|
@@ -211,7 +211,7 @@ export declare const eventSchemaByKind: {
|
|
|
211
211
|
description: string;
|
|
212
212
|
kind: "door-access";
|
|
213
213
|
token: string | null;
|
|
214
|
-
tokenType: "card" | "pin" | null;
|
|
214
|
+
tokenType: "card" | "pin" | "fingerprint" | null;
|
|
215
215
|
allowed: boolean;
|
|
216
216
|
doorExit: boolean;
|
|
217
217
|
personId?: string | undefined;
|
package/dist/package.json
CHANGED