@awarevue/api-types 1.0.9 → 1.0.11
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 +51 -26
- package/dist/agent-communication/protocol.js +25 -4
- 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;
|
|
@@ -1319,14 +1319,24 @@ export declare const sValidateChangeRq: z.ZodObject<{
|
|
|
1319
1319
|
linkExists: boolean;
|
|
1320
1320
|
})[];
|
|
1321
1321
|
}>;
|
|
1322
|
+
export declare const sChangeIssueCode: z.ZodEnum<["BAD_REFERENCE", "NOT_FOUND", "NOT_UNIQUE", "INVALID", "NOT_SUPPORTED"]>;
|
|
1322
1323
|
export declare const sChangeIssue: z.ZodObject<{
|
|
1323
1324
|
objectId: z.ZodOptional<z.ZodString>;
|
|
1324
|
-
|
|
1325
|
+
code: z.ZodOptional<z.ZodEnum<["BAD_REFERENCE", "NOT_FOUND", "NOT_UNIQUE", "INVALID", "NOT_SUPPORTED"]>>;
|
|
1326
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1327
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
1328
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1325
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1326
|
-
|
|
1330
|
+
index?: number | undefined;
|
|
1331
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1332
|
+
message?: string | undefined;
|
|
1333
|
+
path?: string | undefined;
|
|
1327
1334
|
objectId?: string | undefined;
|
|
1328
1335
|
}, {
|
|
1329
|
-
|
|
1336
|
+
index?: number | undefined;
|
|
1337
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1338
|
+
message?: string | undefined;
|
|
1339
|
+
path?: string | undefined;
|
|
1330
1340
|
objectId?: string | undefined;
|
|
1331
1341
|
}>;
|
|
1332
1342
|
export declare const sValidateChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
@@ -1341,22 +1351,37 @@ export declare const sValidateChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
|
1341
1351
|
}>, z.ZodObject<{
|
|
1342
1352
|
issues: z.ZodArray<z.ZodObject<{
|
|
1343
1353
|
objectId: z.ZodOptional<z.ZodString>;
|
|
1344
|
-
|
|
1354
|
+
code: z.ZodOptional<z.ZodEnum<["BAD_REFERENCE", "NOT_FOUND", "NOT_UNIQUE", "INVALID", "NOT_SUPPORTED"]>>;
|
|
1355
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
1357
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1345
1358
|
}, "strip", z.ZodTypeAny, {
|
|
1346
|
-
|
|
1359
|
+
index?: number | undefined;
|
|
1360
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1361
|
+
message?: string | undefined;
|
|
1362
|
+
path?: string | undefined;
|
|
1347
1363
|
objectId?: string | undefined;
|
|
1348
1364
|
}, {
|
|
1349
|
-
|
|
1365
|
+
index?: number | undefined;
|
|
1366
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1367
|
+
message?: string | undefined;
|
|
1368
|
+
path?: string | undefined;
|
|
1350
1369
|
objectId?: string | undefined;
|
|
1351
1370
|
}>, "many">;
|
|
1352
1371
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1353
1372
|
issues: {
|
|
1354
|
-
|
|
1373
|
+
index?: number | undefined;
|
|
1374
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1375
|
+
message?: string | undefined;
|
|
1376
|
+
path?: string | undefined;
|
|
1355
1377
|
objectId?: string | undefined;
|
|
1356
1378
|
}[];
|
|
1357
1379
|
}, {
|
|
1358
1380
|
issues: {
|
|
1359
|
-
|
|
1381
|
+
index?: number | undefined;
|
|
1382
|
+
code?: "BAD_REFERENCE" | "NOT_FOUND" | "NOT_UNIQUE" | "INVALID" | "NOT_SUPPORTED" | undefined;
|
|
1383
|
+
message?: string | undefined;
|
|
1384
|
+
path?: string | undefined;
|
|
1360
1385
|
objectId?: string | undefined;
|
|
1361
1386
|
}[];
|
|
1362
1387
|
}>>;
|
|
@@ -1493,12 +1518,12 @@ export declare const sApplyChange: z.ZodObject<{
|
|
|
1493
1518
|
}>;
|
|
1494
1519
|
export declare const sApplyChangeRs: z.ZodIntersection<z.ZodObject<{
|
|
1495
1520
|
requestId: z.ZodString;
|
|
1496
|
-
kind: z.ZodLiteral<"apply-change-
|
|
1521
|
+
kind: z.ZodLiteral<"apply-change-rs">;
|
|
1497
1522
|
}, "strip", z.ZodTypeAny, {
|
|
1498
|
-
kind: "apply-change-
|
|
1523
|
+
kind: "apply-change-rs";
|
|
1499
1524
|
requestId: string;
|
|
1500
1525
|
}, {
|
|
1501
|
-
kind: "apply-change-
|
|
1526
|
+
kind: "apply-change-rs";
|
|
1502
1527
|
requestId: string;
|
|
1503
1528
|
}>, z.ZodObject<{
|
|
1504
1529
|
requestId: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sRelationMerge = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
|
|
3
|
+
exports.isMessageFromAgent = exports.getAgentMessageIssues = exports.sAbortChange = exports.sApplyChangeProgress = exports.sApplyChangeRs = exports.sApplyChange = exports.sValidateChangeRs = exports.sChangeIssue = exports.sChangeIssueCode = exports.sValidateChangeRq = exports.sRefMap = exports.sDeviceMap = exports.sAccessMutation = exports.sRelationMerge = exports.sObjectDelete = exports.sObjectMerge = exports.sGetAvailableDevicesRs = exports.sGetAvailableDevicesRq = exports.sPushEventRs = exports.sPushEventRq = exports.sPushStateUpdateRs = exports.sPushStateUpdateRq = exports.sRunCommandRs = exports.sRunCommandRq = exports.sStopServiceRs = exports.sStopServiceRq = exports.sStartServiceRs = exports.sStartServiceRq = exports.sValidateProviderConfigRs = exports.sConfigurationIssue = exports.sValidateProviderConfigRq = exports.sUnregister = exports.sRegisterRs = exports.sRegisterRq = exports.sAccessControlCapabilityReport = exports.sTokenSpecs = exports.sAccessObjectKind = exports.sProviderSpecs = exports.sUiHint = exports.sUiWidgetHint = exports.sUiOrderHint = exports.sErrorPayload = exports.sResponsePayload = exports.sMessageWithPayload = exports.sMessageHeader = void 0;
|
|
4
4
|
const device_1 = require("../device");
|
|
5
5
|
const device_import_1 = require("../device-import");
|
|
6
6
|
const credential_1 = require("../access-control/credential");
|
|
@@ -227,10 +227,31 @@ exports.sValidateChangeRq = zod_1.z
|
|
|
227
227
|
mutations: zod_1.z.array(exports.sAccessMutation),
|
|
228
228
|
})
|
|
229
229
|
.describe('Request to validate access changes');
|
|
230
|
+
exports.sChangeIssueCode = zod_1.z.enum([
|
|
231
|
+
'BAD_REFERENCE',
|
|
232
|
+
'NOT_FOUND',
|
|
233
|
+
'NOT_UNIQUE',
|
|
234
|
+
'INVALID',
|
|
235
|
+
'NOT_SUPPORTED',
|
|
236
|
+
]);
|
|
230
237
|
exports.sChangeIssue = zod_1.z
|
|
231
238
|
.object({
|
|
232
|
-
objectId: zod_1.z.string().optional(),
|
|
233
|
-
|
|
239
|
+
objectId: zod_1.z.string().optional().describe('Object ID as in backend'),
|
|
240
|
+
code: exports.sChangeIssueCode
|
|
241
|
+
.optional()
|
|
242
|
+
.describe('Issue code that describes the issue to UI agent(s) or bots'),
|
|
243
|
+
path: zod_1.z
|
|
244
|
+
.string()
|
|
245
|
+
.optional()
|
|
246
|
+
.describe('Path - inside object referenced by ObjectID, points to a field or a related object'),
|
|
247
|
+
index: zod_1.z
|
|
248
|
+
.number()
|
|
249
|
+
.optional()
|
|
250
|
+
.describe('Index ofa value in field pointed at by path'),
|
|
251
|
+
message: zod_1.z
|
|
252
|
+
.string()
|
|
253
|
+
.optional()
|
|
254
|
+
.describe('Message that describes the issue to user or the details of what went wrong'),
|
|
234
255
|
})
|
|
235
256
|
.describe('Access change issue description');
|
|
236
257
|
exports.sValidateChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('validate-change-rs'), zod_1.z.object({
|
|
@@ -246,7 +267,7 @@ exports.sApplyChange = zod_1.z
|
|
|
246
267
|
mutations: zod_1.z.array(exports.sAccessMutation),
|
|
247
268
|
})
|
|
248
269
|
.describe('Request to apply access changes');
|
|
249
|
-
exports.sApplyChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('apply-change-
|
|
270
|
+
exports.sApplyChangeRs = (0, exports.sResponsePayload)(zod_1.z.literal('apply-change-rs'), zod_1.z.object({
|
|
250
271
|
requestId: zod_1.z.string().nonempty(),
|
|
251
272
|
//error: z.string().optional().describe('Error message if request failed'),
|
|
252
273
|
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